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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0e37c29ae910b5b1c1a2e7299a235d591ee4782a | 11,658 | cpp | C++ | kit_parser.cpp | xxxrioxxx/rio-csgo-paste | f1fe92ee0a9b29e137e07d8a16b91411fcaa42e1 | [
"MIT"
] | 1 | 2021-11-26T00:25:32.000Z | 2021-11-26T00:25:32.000Z | kit_parser.cpp | xxxrioxxx/rio-csgo-paste | f1fe92ee0a9b29e137e07d8a16b91411fcaa42e1 | [
"MIT"
] | null | null | null | kit_parser.cpp | xxxrioxxx/rio-csgo-paste | f1fe92ee0a9b29e137e07d8a16b91411fcaa42e1 | [
"MIT"
] | null | null | null | #include <algorithm>
#include "kit_parser.h"
#include "../helpers/utils.hpp"
#include <iostream>
#include <sstream>
#include <algorithm>
#include <vector>
#include <string>
#include "parser.h"
#include <set>
#include <map>
#include "../options.hpp"
#include <array>
struct skin_info
{
int seed = -1;
... | 28.785185 | 170 | 0.656716 | xxxrioxxx |
0e38bae1f2fa73dec34122540a84ccb6138f2fc3 | 2,002 | cpp | C++ | common/Teachers.cpp | Blackhol3/kholgen | 658a961765481acb8c15620010dba6e7c8e45d5c | [
"CC-BY-3.0",
"Apache-2.0"
] | null | null | null | common/Teachers.cpp | Blackhol3/kholgen | 658a961765481acb8c15620010dba6e7c8e45d5c | [
"CC-BY-3.0",
"Apache-2.0"
] | null | null | null | common/Teachers.cpp | Blackhol3/kholgen | 658a961765481acb8c15620010dba6e7c8e45d5c | [
"CC-BY-3.0",
"Apache-2.0"
] | null | null | null | #include "Teachers.h"
#include "Teacher.h"
void Teachers::append(Teacher *const teacher)
{
insert(teachers.size(), teacher);
}
Teacher* Teachers::at(int i) const
{
return teachers.at(i);
}
QVector<Teacher const*>::const_iterator Teachers::begin() const
{
return teachers.begin();
}
QVector<Tea... | 20.854167 | 161 | 0.693307 | Blackhol3 |
0e3916f5d1235f915f804160843bc3d7796919a0 | 4,275 | cpp | C++ | src/AppSettings.cpp | faesong/treegen | 289345d47cd85245eebd4d6c62927f71ac5f6279 | [
"MIT"
] | 7 | 2020-07-25T16:05:13.000Z | 2020-07-28T02:13:51.000Z | src/AppSettings.cpp | faesong/treegen | 289345d47cd85245eebd4d6c62927f71ac5f6279 | [
"MIT"
] | null | null | null | src/AppSettings.cpp | faesong/treegen | 289345d47cd85245eebd4d6c62927f71ac5f6279 | [
"MIT"
] | 1 | 2022-02-05T13:25:47.000Z | 2022-02-05T13:25:47.000Z | // This is an independent project of an individual developer. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com
#include "AppSettings.hpp"
#include <Urho3D/Math/Vector3.h>
#include "TranslationIds.hpp"
#include <VcppBits/Translation/Translation.hpp>
... | 40.714286 | 95 | 0.496374 | faesong |
0e39b26fae1ae5934a7151207f4c3f5089620fd7 | 17,385 | cc | C++ | lite/core/mir/fusion/__xpu__consecutive_block_fuse_pass.cc | DrRyanHuang/Paddle-Lite | 7b74d76e466629209e1e2e666f228e6af8d51766 | [
"Apache-2.0"
] | null | null | null | lite/core/mir/fusion/__xpu__consecutive_block_fuse_pass.cc | DrRyanHuang/Paddle-Lite | 7b74d76e466629209e1e2e666f228e6af8d51766 | [
"Apache-2.0"
] | null | null | null | lite/core/mir/fusion/__xpu__consecutive_block_fuse_pass.cc | DrRyanHuang/Paddle-Lite | 7b74d76e466629209e1e2e666f228e6af8d51766 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2019 PaddlePaddle 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... | 42.925926 | 80 | 0.550532 | DrRyanHuang |
0e3f8fc60f2211931273a0b9597f246844a684f7 | 1,060 | hh | C++ | Digit_Example/opt_two_step/gen/opt/J_swing_toe_angular_velocity_z_LeftStance.hh | prem-chand/Cassie_CFROST | da4bd51442f86e852cbb630cc91c9a380a10b66d | [
"BSD-3-Clause"
] | null | null | null | Digit_Example/opt_two_step/gen/opt/J_swing_toe_angular_velocity_z_LeftStance.hh | prem-chand/Cassie_CFROST | da4bd51442f86e852cbb630cc91c9a380a10b66d | [
"BSD-3-Clause"
] | null | null | null | Digit_Example/opt_two_step/gen/opt/J_swing_toe_angular_velocity_z_LeftStance.hh | prem-chand/Cassie_CFROST | da4bd51442f86e852cbb630cc91c9a380a10b66d | [
"BSD-3-Clause"
] | null | null | null | /*
* Automatically Generated from Mathematica.
* Fri 5 Nov 2021 16:29:46 GMT-04:00
*/
#ifndef J_SWING_TOE_ANGULAR_VELOCITY_Z_LEFTSTANCE_HH
#define J_SWING_TOE_ANGULAR_VELOCITY_Z_LEFTSTANCE_HH
#ifdef MATLAB_MEX_FILE
// No need for external definitions
#else // MATLAB_MEX_FILE
#include "math2mat.hpp"
#include "mde... | 22.083333 | 140 | 0.74434 | prem-chand |
0e422b218d8de51dcdd70195192e31841ed8fe23 | 879 | hpp | C++ | include/events/signal_fwd.hpp | jamespeapen/polybar | 1ee11f7c9e72719f62981167a24fe7239774fa69 | [
"MIT"
] | null | null | null | include/events/signal_fwd.hpp | jamespeapen/polybar | 1ee11f7c9e72719f62981167a24fe7239774fa69 | [
"MIT"
] | null | null | null | include/events/signal_fwd.hpp | jamespeapen/polybar | 1ee11f7c9e72719f62981167a24fe7239774fa69 | [
"MIT"
] | null | null | null | #pragma once
#include "common.hpp"
POLYBAR_NS
class signal_emitter;
class signal_receiver_interface;
template <int Priority, typename Signal, typename... Signals>
class signal_receiver;
namespace signals {
namespace detail {
class signal;
}
namespace eventqueue {
struct exit_reload;
struct notify... | 19.533333 | 61 | 0.724687 | jamespeapen |
0e4268c7a078069a8dc419135720aa263dfe6014 | 13,238 | cpp | C++ | src/LAVG/LuaFuncRegister.cpp | lewes6369/LAVG-GAME-ENGINE | e0145d03584015c610ea4ec6564577382df8e362 | [
"MIT"
] | 3 | 2017-07-04T12:13:23.000Z | 2020-10-25T16:07:23.000Z | src/LAVG/LuaFuncRegister.cpp | IceCubePill/LAVG-GAME-ENGINE | e0145d03584015c610ea4ec6564577382df8e362 | [
"MIT"
] | null | null | null | src/LAVG/LuaFuncRegister.cpp | IceCubePill/LAVG-GAME-ENGINE | e0145d03584015c610ea4ec6564577382df8e362 | [
"MIT"
] | 3 | 2018-04-27T04:08:27.000Z | 2021-04-30T07:01:58.000Z | #include "LuaFuncRegister.h"
static void SetConsoleColor(WORD wAttribute)
{
HANDLE handle = GetStdHandle(STD_OUTPUT_HANDLE);
SetConsoleTextAttribute(handle, wAttribute);
}
inline std::ostream& COLOR_DEF(std::ostream& ostr)
{
SetConsoleColor(FOREGROUND_BLUE | FOREGROUND_GREEN | FOREGROUND_RED);
return ... | 22.248739 | 104 | 0.632044 | lewes6369 |
0e429f1b28d4a2fe0e1f491c1e9aac4318536914 | 2,743 | cpp | C++ | example/example_base64.cpp | clown/clx | 6c36249f814df393b2244da8ff52ade2f1726e19 | [
"BSD-3-Clause"
] | 9 | 2016-04-09T10:03:14.000Z | 2021-07-05T15:03:04.000Z | example/example_base64.cpp | clown/clx | 6c36249f814df393b2244da8ff52ade2f1726e19 | [
"BSD-3-Clause"
] | null | null | null | example/example_base64.cpp | clown/clx | 6c36249f814df393b2244da8ff52ade2f1726e19 | [
"BSD-3-Clause"
] | 3 | 2016-04-09T10:03:20.000Z | 2021-06-09T09:39:26.000Z | /* ------------------------------------------------------------------------- */
/*
* example_base64.cpp
*
* Copyright (c) 2004 - 2008, clown. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
... | 42.2 | 80 | 0.646373 | clown |
0e44e740e6a3810949cc5f57bf4aff7e5b7a5361 | 1,321 | cpp | C++ | bt-maxsat/maxsat_interface.cpp | Laakeri/phylogeny-aaai | 4b97a6da97fc2be0e466c2197fbd4b51c036cb5f | [
"MIT"
] | null | null | null | bt-maxsat/maxsat_interface.cpp | Laakeri/phylogeny-aaai | 4b97a6da97fc2be0e466c2197fbd4b51c036cb5f | [
"MIT"
] | null | null | null | bt-maxsat/maxsat_interface.cpp | Laakeri/phylogeny-aaai | 4b97a6da97fc2be0e466c2197fbd4b51c036cb5f | [
"MIT"
] | null | null | null | #include "maxsat_interface.hpp"
#include <set>
#include <vector>
#include <cassert>
namespace triangulator {
MaxSatInterface::~MaxSatInterface() { }
uint64_t const MaxSatInterface::kTopWeight = 1e9;
Lit::Lit() {
value_ = 0;
}
Lit::Lit(int value) : value_(value) {}
Lit Lit::TrueLit() {
return Lit(kTrueVal);
}
Li... | 21.306452 | 75 | 0.65405 | Laakeri |
0e46dc0fe8c353522954bf21b326e2dcd0fd6b2e | 1,498 | cpp | C++ | src/Graphics/D3D12/D3D12CommandAllocatorPool.cpp | caioteixeira/ToyEngine | 7dc8b39ec7075eb90cb437dfcbe57769279d1d60 | [
"MIT"
] | 7 | 2018-02-14T14:44:47.000Z | 2021-06-28T11:42:03.000Z | src/Graphics/D3D12/D3D12CommandAllocatorPool.cpp | caioteixeira/ToyEngine | 7dc8b39ec7075eb90cb437dfcbe57769279d1d60 | [
"MIT"
] | null | null | null | src/Graphics/D3D12/D3D12CommandAllocatorPool.cpp | caioteixeira/ToyEngine | 7dc8b39ec7075eb90cb437dfcbe57769279d1d60 | [
"MIT"
] | null | null | null | #include "D3D12CommandAllocatorPool.h"
D3D12CommandAllocatorPool::D3D12CommandAllocatorPool(D3D12_COMMAND_LIST_TYPE type, ID3D12Device* device) :
mCommandListType(type), mDevice(device)
{
}
D3D12CommandAllocatorPool::~D3D12CommandAllocatorPool()
{
for (auto i = 0; i < mAllocatorPool.size(); ++i)
{
... | 26.75 | 106 | 0.689586 | caioteixeira |
0e4aec00e905f5b63bffe6834874e2a77d9a1686 | 456 | cpp | C++ | dataset/test/1624A/18.cpp | Karina5005/Plagiarism | ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb | [
"MIT"
] | 3 | 2022-02-15T00:29:39.000Z | 2022-03-15T08:36:44.000Z | dataset/test/1624A/18.cpp | Kira5005-code/Plagiarism | ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb | [
"MIT"
] | null | null | null | dataset/test/1624A/18.cpp | Kira5005-code/Plagiarism | ce11f72ba21a754ca84a27e5f26a31a19d6cb6fb | [
"MIT"
] | null | null | null | #include <iostream>
#include <math.h>
#include <string>
#include <cstring>
typedef long long ll;
const int N=100010;
using namespace std;
int a[N];
int main(){
int t,n;
cin>>t;
while(t--){
cin>>n;
ll x;
ll maxn=0,minn=1e9;
for(int i=0;i<n;i++){
cin>>x;
if(x>maxn)
maxn=x;
if(x... | 15.2 | 24 | 0.54386 | Karina5005 |
0e4f489177d4060e0d7498da8797805505d7a1b3 | 1,141 | cpp | C++ | src/lib/file/win32/FileFlags.cpp | ryancalhoun/fit | dbe8bdf2d700981cd76fc0ed5c0946856ae785de | [
"MIT"
] | null | null | null | src/lib/file/win32/FileFlags.cpp | ryancalhoun/fit | dbe8bdf2d700981cd76fc0ed5c0946856ae785de | [
"MIT"
] | null | null | null | src/lib/file/win32/FileFlags.cpp | ryancalhoun/fit | dbe8bdf2d700981cd76fc0ed5c0946856ae785de | [
"MIT"
] | null | null | null | #include "FileFlags.h"
#include <windows.h>
int FileFlags::openFlags() const
{
DWORD cflags = 0;
if((_flags & File::Read) != 0)
{
cflags |= FILE_READ_DATA | FILE_READ_ATTRIBUTES | STANDARD_RIGHTS_READ;
}
if((_flags & File::Write) != 0)
{
cflags |= FILE_WRITE_ATTRIBUTES | STANDARD_RIGHTS_WRITE | WRITE_OWNER;
... | 24.804348 | 73 | 0.63716 | ryancalhoun |
0e503ea8b2c92c00eeaec39ef55814d61c3ea4db | 8,518 | cpp | C++ | src/herder/Upgrades.cpp | payshares/stellar-core | 0735cdc22f81e7f9d86fdd3ca83237a92c7b29ee | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | src/herder/Upgrades.cpp | payshares/stellar-core | 0735cdc22f81e7f9d86fdd3ca83237a92c7b29ee | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | src/herder/Upgrades.cpp | payshares/stellar-core | 0735cdc22f81e7f9d86fdd3ca83237a92c7b29ee | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | // Copyright 2017 Stellar Development Foundation and contributors. Licensed
// under the Apache License, Version 2.0. See the COPYING file at the root
// of this distribution or at http://www.apache.org/licenses/LICENSE-2.0
#include "herder/Upgrades.h"
#include "main/Config.h"
#include "util/Logging.h"
#include "util/... | 26.535826 | 80 | 0.615168 | payshares |
0e550fcbd7d342ae53c17b686ec79cade52cb492 | 2,523 | hpp | C++ | src/mfx/dsp/iir/OnePole.hpp | mikelange49/pedalevite | a81bd8a6119c5920995ec91b9f70e11e9379580e | [
"WTFPL"
] | null | null | null | src/mfx/dsp/iir/OnePole.hpp | mikelange49/pedalevite | a81bd8a6119c5920995ec91b9f70e11e9379580e | [
"WTFPL"
] | null | null | null | src/mfx/dsp/iir/OnePole.hpp | mikelange49/pedalevite | a81bd8a6119c5920995ec91b9f70e11e9379580e | [
"WTFPL"
] | null | null | null | /*****************************************************************************
OnePole.hpp
Author: Laurent de Soras, 2016
--- Legal stuff ---
This program is free software. It comes without any warranty, to
the extent permitted by applicable law. You can redistribute it
and/or modify it under the ter... | 17.893617 | 85 | 0.507333 | mikelange49 |
0e5945c610a9dacf50057b22bd981faafb06a730 | 2,062 | cpp | C++ | getversion.cpp | timnbraun/hpduplexfix | 1110641c23cd469c5fa1a88eebad375fbc83f4b9 | [
"Apache-2.0"
] | null | null | null | getversion.cpp | timnbraun/hpduplexfix | 1110641c23cd469c5fa1a88eebad375fbc83f4b9 | [
"Apache-2.0"
] | null | null | null | getversion.cpp | timnbraun/hpduplexfix | 1110641c23cd469c5fa1a88eebad375fbc83f4b9 | [
"Apache-2.0"
] | null | null | null | //
// getversion.cpp
//
// Get the product name and version from the VERSIONINFO structure
//
// Copyright (c) 2022 Tim Braun <tim.n.braun@gmail.com>
//
#include <windows.h>
#include <winver.h>
#include <string>
#include <iostream>
#include <vector>
using std::string, std::vector, std::cerr, std::endl;
#include "... | 30.323529 | 123 | 0.673618 | timnbraun |
0e5a7c3db2236244c783c005fb1c8b7130034687 | 492 | hpp | C++ | src/api/wayfire/idle.hpp | manttari/wayfire | a8259cb92be599fa9a1956fb133d7f5d0eb4bf9b | [
"MIT"
] | 1 | 2020-05-28T22:28:49.000Z | 2020-05-28T22:28:49.000Z | src/api/wayfire/idle.hpp | damianatorrpm/wayfire | 6bde5fdcf2270c9d9efd7c4202becb333f4de3a6 | [
"MIT"
] | null | null | null | src/api/wayfire/idle.hpp | damianatorrpm/wayfire | 6bde5fdcf2270c9d9efd7c4202becb333f4de3a6 | [
"MIT"
] | null | null | null | #pragma once
namespace wf
{
/**
* Dummy non-copyable type that increments the global inhibitor count when created,
* and decrements when destroyed. These changes influence wlroots idle enablement.
*/
class idle_inhibitor_t
{
public:
idle_inhibitor_t();
~idle_inhibitor_t();
idle_inhibitor_t(const idle_... | 22.363636 | 83 | 0.735772 | manttari |
0e5bd33350219b29c412694ee6f1ea8d740a1952 | 4,522 | cpp | C++ | src/libtsduck/base/xml/tsxmlRunningDocument.cpp | harmonicinc-com/tsduck | 67f25161a3b37b1f3c486d5ef2e013486c3d9893 | [
"BSD-2-Clause"
] | 542 | 2017-06-21T07:40:10.000Z | 2022-03-29T13:44:39.000Z | src/libtsduck/base/xml/tsxmlRunningDocument.cpp | harmonicinc-com/tsduck | 67f25161a3b37b1f3c486d5ef2e013486c3d9893 | [
"BSD-2-Clause"
] | 939 | 2017-09-01T21:00:42.000Z | 2022-03-31T14:39:27.000Z | src/libtsduck/base/xml/tsxmlRunningDocument.cpp | harmonicinc-com/tsduck | 67f25161a3b37b1f3c486d5ef2e013486c3d9893 | [
"BSD-2-Clause"
] | 167 | 2017-10-30T12:07:29.000Z | 2022-03-23T11:36:10.000Z | //----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2021, Thierry Lelegard
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the f... | 35.328125 | 146 | 0.563246 | harmonicinc-com |
0e5d222e5eda6731b3b8d050a7de63699e86638d | 1,081 | cpp | C++ | src/animal.cpp | larissajales/Pet-Fera | 295a1c53dfd32f24bb83a12c0450e9d6eaa65df4 | [
"MIT"
] | null | null | null | src/animal.cpp | larissajales/Pet-Fera | 295a1c53dfd32f24bb83a12c0450e9d6eaa65df4 | [
"MIT"
] | null | null | null | src/animal.cpp | larissajales/Pet-Fera | 295a1c53dfd32f24bb83a12c0450e9d6eaa65df4 | [
"MIT"
] | null | null | null | #include "animal.hpp"
Animal::Animal()
{
}
Animal::Animal(int m_id, string m_classe, string m_nome_cientifico, string m_nome_batismo, char m_sexo, double m_tamanho, string m_dieta)
{
id = m_id;
classe = m_classe;
nome_cientifico = m_nome_cientifico;
nome_batismo = m_nome_batismo;
sexo = m_sexo;
tamanho = m_tam... | 13.182927 | 137 | 0.725254 | larissajales |
0e5d74f80b98aeffe1b9820aeff96a7cb66f7cb2 | 13,140 | cc | C++ | addons/balance/tests/testBalanceToolkit.cc | ju6ge/rbdl-orb | 321e20e80e2859a3a2ab43629c7c26c1020cb6f6 | [
"Zlib"
] | null | null | null | addons/balance/tests/testBalanceToolkit.cc | ju6ge/rbdl-orb | 321e20e80e2859a3a2ab43629c7c26c1020cb6f6 | [
"Zlib"
] | null | null | null | addons/balance/tests/testBalanceToolkit.cc | ju6ge/rbdl-orb | 321e20e80e2859a3a2ab43629c7c26c1020cb6f6 | [
"Zlib"
] | null | null | null | /*
*
* Copyright (c) 2020 Matthew Millard <millard.matthew@gmail.com>
*
* Licensed under the zlib license. See LICENSE for more details.
*/
//==============================================================================
// INCLUDES
//=====================================================================... | 36.5 | 92 | 0.636225 | ju6ge |
0e664e9e74002f0021b3efdad34cf188a66e1886 | 1,185 | cc | C++ | main.cc | Dark-CodeX/BinarySearch | 68756d5c1af628dd4373d9bc5758c65109774cd2 | [
"MIT"
] | 1 | 2022-01-04T16:19:26.000Z | 2022-01-04T16:19:26.000Z | main.cc | Dark-CodeX/BinarySearch | 68756d5c1af628dd4373d9bc5758c65109774cd2 | [
"MIT"
] | null | null | null | main.cc | Dark-CodeX/BinarySearch | 68756d5c1af628dd4373d9bc5758c65109774cd2 | [
"MIT"
] | null | null | null | #include <iostream>
template <class T>
/*
Time complexity: O(log(n)), where n is the length of the array.
Best Case: O(1), where 1 is the first index of the array.
Wrost Case: O(log(n)), where n is the length of the array.
Average / Expected Case: O(log(n)), where n is the length of the array.
Works only... | 28.214286 | 114 | 0.546835 | Dark-CodeX |
0e665504aac0a8d0a3f232d5f2d6edf6e271dfba | 2,571 | cpp | C++ | test/btunittest/NodeTest/ParallelNodeUnitTest.cpp | nefeithu/behaviac | 3c8b09b5dc64e0090bf02e273687c6d94f328ad3 | [
"BSD-3-Clause"
] | 2,504 | 2016-11-11T17:12:12.000Z | 2022-03-30T10:39:05.000Z | test/btunittest/NodeTest/ParallelNodeUnitTest.cpp | mlik5hao/behaviac | a280fe24b3e7c357e607c397287a76a8bec33de3 | [
"BSD-3-Clause"
] | 127 | 2016-12-28T04:54:08.000Z | 2022-03-17T10:26:55.000Z | test/btunittest/NodeTest/ParallelNodeUnitTest.cpp | mlik5hao/behaviac | a280fe24b3e7c357e607c397287a76a8bec33de3 | [
"BSD-3-Clause"
] | 821 | 2016-11-11T11:15:24.000Z | 2022-03-30T15:06:18.000Z | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// Tencent is pleased to support the open source community by making behaviac available.
//
// Copyright (C) 2015-2017 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3... | 38.373134 | 113 | 0.68417 | nefeithu |
0e66bc8f03ace1419970663d5192644cd4521c49 | 2,962 | cpp | C++ | src/peersafe/rpc/impl/TxSingleTransPrepare.cpp | AgreeTechnology/ABC | fe4ee88efc7419c2275cc6f6d9a4a03b9e3ccf9c | [
"BSL-1.0"
] | null | null | null | src/peersafe/rpc/impl/TxSingleTransPrepare.cpp | AgreeTechnology/ABC | fe4ee88efc7419c2275cc6f6d9a4a03b9e3ccf9c | [
"BSL-1.0"
] | null | null | null | src/peersafe/rpc/impl/TxSingleTransPrepare.cpp | AgreeTechnology/ABC | fe4ee88efc7419c2275cc6f6d9a4a03b9e3ccf9c | [
"BSL-1.0"
] | null | null | null | //------------------------------------------------------------------------------
/*
This file is part of chainsqld: https://github.com/chainsql/chainsqld
Copyright (c) 2016-2018 Peersafe Technology Co., Ltd.
chainsqld is free software: you can redistribute it and/or modify
it under the terms of the GNU General Pu... | 39.493333 | 132 | 0.735989 | AgreeTechnology |
0e684d12613672f91d914f010e7baecffc0b3382 | 244 | cpp | C++ | Source/PluginDevelopment/PluginDevelopment.cpp | bawboc/PluginDevelopment | 1c92f5912a434902dbf6612962f0a39161610b23 | [
"MIT"
] | 1 | 2018-01-31T04:17:56.000Z | 2018-01-31T04:17:56.000Z | Source/PluginDevelopment/PluginDevelopment.cpp | bawboc/PluginDevelopment | 1c92f5912a434902dbf6612962f0a39161610b23 | [
"MIT"
] | null | null | null | Source/PluginDevelopment/PluginDevelopment.cpp | bawboc/PluginDevelopment | 1c92f5912a434902dbf6612962f0a39161610b23 | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "PluginDevelopment.h"
#include "Modules/ModuleManager.h"
IMPLEMENT_PRIMARY_GAME_MODULE( FDefaultGameModuleImpl, PluginDevelopment, "PluginDevelopment" );
| 34.857143 | 96 | 0.82377 | bawboc |
0e6c14deff1c2038b4dc5f77d2dd808ac16e757d | 491 | cpp | C++ | firmware/examples/ch_03_SOS_Function.cpp | cripple92/photonbook | c11547de8f9a0aafd326ffd040ae2a8e439d9b3a | [
"MIT"
] | 38 | 2015-05-26T02:05:34.000Z | 2020-12-03T17:33:01.000Z | firmware/examples/ch_03_SOS_Function.cpp | cripple92/photonbook | c11547de8f9a0aafd326ffd040ae2a8e439d9b3a | [
"MIT"
] | null | null | null | firmware/examples/ch_03_SOS_Function.cpp | cripple92/photonbook | c11547de8f9a0aafd326ffd040ae2a8e439d9b3a | [
"MIT"
] | 52 | 2015-05-26T05:39:46.000Z | 2021-09-06T11:31:02.000Z | void setup() {
RGB.control(true);
}
void loop() {
// flash S
flash(200, 200);
flash(200, 200);
flash(200, 600);
// flash O
flash(600, 200);
flash(600, 200);
flash(600, 600);
// flash S
flash(200, 200);
flash(200, 200);
flash(200, 600);
dela... | 18.185185 | 40 | 0.507128 | cripple92 |
0e6e5f158e13c6bfa7db523b45be33c4798eb0e5 | 2,803 | cpp | C++ | tests/src/test_linear_allocator.cpp | ddembner/gf3d_plusplus | cc426866bdf210645ad0e1d42056170a81083cec | [
"MIT"
] | null | null | null | tests/src/test_linear_allocator.cpp | ddembner/gf3d_plusplus | cc426866bdf210645ad0e1d42056170a81083cec | [
"MIT"
] | null | null | null | tests/src/test_linear_allocator.cpp | ddembner/gf3d_plusplus | cc426866bdf210645ad0e1d42056170a81083cec | [
"MIT"
] | null | null | null | #include "test_linear_allocator.hpp"
#include "test_manager.hpp"
#include "test_macros.hpp"
#include <memory/LinearAllocator.hpp>
u8 LinearCreateAndDestroy()
{
gf3d::LinearAllocator allocator;
const u64 size = sizeof(u64);
allocator.init(size);
void* memory = allocator.allocate(size);
should_not_be_equal(null... | 24.373913 | 100 | 0.751338 | ddembner |
0e6ec8f140a926dccba5cd3eac364ab835743b75 | 3,087 | cpp | C++ | ql/experimental/variancegamma/fftvariancegammaengine.cpp | mshojatalab/QuantLib | 7801a0fb3226bc1b001e310bacdd35ddb2e51661 | [
"BSD-3-Clause"
] | 1 | 2015-09-21T12:21:33.000Z | 2015-09-21T12:21:33.000Z | ql/experimental/variancegamma/fftvariancegammaengine.cpp | mshojatalab/QuantLib | 7801a0fb3226bc1b001e310bacdd35ddb2e51661 | [
"BSD-3-Clause"
] | 3 | 2022-03-09T16:19:13.000Z | 2022-03-29T07:33:42.000Z | ql/experimental/variancegamma/fftvariancegammaengine.cpp | sweemer/QuantLib | 1341223e3d839dd77bb7231d0913809f01437740 | [
"BSD-3-Clause"
] | null | null | null | /* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2010 Adrian O' Neill
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free software: you can redistribute it and/or ... | 35.895349 | 109 | 0.676385 | mshojatalab |
0e708231d086acc38f8e59fba51beb3781345551 | 1,815 | cpp | C++ | estrutura de dados/fila e pilha/pilha_dinamica.cpp | Lucas-MSF/Cpp | 8eaac18aaef5edf6127a7b3da6af9cc6de7748d4 | [
"MIT"
] | null | null | null | estrutura de dados/fila e pilha/pilha_dinamica.cpp | Lucas-MSF/Cpp | 8eaac18aaef5edf6127a7b3da6af9cc6de7748d4 | [
"MIT"
] | null | null | null | estrutura de dados/fila e pilha/pilha_dinamica.cpp | Lucas-MSF/Cpp | 8eaac18aaef5edf6127a7b3da6af9cc6de7748d4 | [
"MIT"
] | null | null | null | #include <iostream>
#include "pilha_dinamica.h"
#include <cstddef>
using namespace std;
Dinamic_stack::Dinamic_stack() //contrução da pilha
{
NoTopo= NULL;
tamanho=0;
}
Dinamic_stack::~Dinamic_stack() //deletar pilha
{
pilha_dinamica* Notemp;
tamanho=0;
while(NoTopo!=NULL){
Notemp= NoTopo... | 21.607143 | 78 | 0.601102 | Lucas-MSF |
0e74c23bc4bc72b9e3c5c285b142bcce88a3c88d | 8,291 | cpp | C++ | src/game/world/animations/animation_presenter.cpp | jdmclark/gorc | a03d6a38ab7684860c418dd3d2e77cbe6a6d9fc8 | [
"Apache-2.0"
] | 97 | 2015-02-24T05:09:24.000Z | 2022-01-23T12:08:22.000Z | src/game/world/animations/animation_presenter.cpp | annnoo/gorc | 1889b4de6380c30af6c58a8af60ecd9c816db91d | [
"Apache-2.0"
] | 8 | 2015-03-27T23:03:23.000Z | 2020-12-21T02:34:33.000Z | src/game/world/animations/animation_presenter.cpp | annnoo/gorc | 1889b4de6380c30af6c58a8af60ecd9c816db91d | [
"Apache-2.0"
] | 10 | 2016-03-24T14:32:50.000Z | 2021-11-13T02:38:53.000Z | #include "game/level_state.hpp"
#include "animation_presenter.hpp"
#include "game/world/level_model.hpp"
#include "game/world/level_presenter.hpp"
#include "aspects/update_surface_material_aspect.hpp"
#include "aspects/update_slide_ceiling_sky_aspect.hpp"
#include "aspects/update_surface_light_aspect.hpp"
#include "as... | 43.182292 | 172 | 0.73417 | jdmclark |
0e75b5dfb13ce56d4446e2bd0c632fa28bd4307e | 4,358 | cpp | C++ | trunk/src/app/srs_app_thread.cpp | chundonglinlin/srs.win | 0e45a27ebf0df35509cac33741d4e3e8454d83fa | [
"MIT"
] | 9 | 2016-02-04T02:09:25.000Z | 2019-08-11T15:11:44.000Z | trunk/src/app/srs_app_thread.cpp | suhetao/srs.win | 0e45a27ebf0df35509cac33741d4e3e8454d83fa | [
"MIT"
] | null | null | null | trunk/src/app/srs_app_thread.cpp | suhetao/srs.win | 0e45a27ebf0df35509cac33741d4e3e8454d83fa | [
"MIT"
] | 23 | 2015-12-06T15:18:41.000Z | 2021-12-23T13:59:25.000Z | /*
The MIT License (MIT)
Copyright (c) 2013-2014 winlin
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... | 23.180851 | 91 | 0.64938 | chundonglinlin |
0e78ac2787f026b3bc53e3403536b7a7c3e32369 | 1,895 | cpp | C++ | editnotecomponent.cpp | zavidnyi/Fox_DB | ba059d882df78fd9bbb032bdc023e8d98a2a2a85 | [
"MIT"
] | null | null | null | editnotecomponent.cpp | zavidnyi/Fox_DB | ba059d882df78fd9bbb032bdc023e8d98a2a2a85 | [
"MIT"
] | null | null | null | editnotecomponent.cpp | zavidnyi/Fox_DB | ba059d882df78fd9bbb032bdc023e8d98a2a2a85 | [
"MIT"
] | null | null | null | #include "editnotecomponent.h"
#include <QFontMetrics>
#include <QVariantMap>
#include <QJsonDocument>
EditNoteComponent::EditNoteComponent(
QWidget *parent,
DatabaseHandler *_dbHandler,
const QString &curId,
const QString &curTitle,
const QString &curText
... | 29.153846 | 103 | 0.655409 | zavidnyi |
0e7be090d620be6d693cbae0f78d354ce2f3de00 | 3,466 | cc | C++ | src/hsa/hsa_region.cc | pjaaskel/phsa-runtime | b37cd9bd8085632e89b02861da193bbd0fa25c5b | [
"MIT"
] | 7 | 2016-04-17T20:38:36.000Z | 2017-12-28T17:46:21.000Z | src/hsa/hsa_region.cc | pjaaskel/phsa-runtime | b37cd9bd8085632e89b02861da193bbd0fa25c5b | [
"MIT"
] | 6 | 2016-03-11T15:54:28.000Z | 2016-11-22T13:20:11.000Z | src/hsa/hsa_region.cc | pjaaskel/phsa-runtime | b37cd9bd8085632e89b02861da193bbd0fa25c5b | [
"MIT"
] | 4 | 2016-03-10T14:27:53.000Z | 2020-05-03T22:16:51.000Z | /*
Copyright (c) 2016 General Processor Tech.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, ... | 30.946429 | 80 | 0.706867 | pjaaskel |
0e7f1e19420ec065e20e9cd88e7347e9317121d2 | 11,792 | cc | C++ | src/utils/MessageQueue.cc | ryecrow/ScriptX | 0aed611e7a7d543014b73c2a71ff415a6e8e8460 | [
"BSL-1.0"
] | 1 | 2022-02-11T07:51:30.000Z | 2022-02-11T07:51:30.000Z | src/utils/MessageQueue.cc | qicosmos/ScriptX | 6e8a433d5898cfdf9a088b88f67e5a2bef0dc686 | [
"BSL-1.0"
] | null | null | null | src/utils/MessageQueue.cc | qicosmos/ScriptX | 6e8a433d5898cfdf9a088b88f67e5a2bef0dc686 | [
"BSL-1.0"
] | null | null | null | /*
* Tencent is pleased to support the open source community by making ScriptX available.
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ... | 27.943128 | 100 | 0.680631 | ryecrow |
0e820fbeaafe581cbab6dd6fbe1c5782353e79aa | 854 | cpp | C++ | Bison Virtual Machine Source/strings.cpp | kpatel122/Bison-Virtual-Machine | 45a8364edd0b1782bfb167b61c444501625876b4 | [
"MIT"
] | null | null | null | Bison Virtual Machine Source/strings.cpp | kpatel122/Bison-Virtual-Machine | 45a8364edd0b1782bfb167b61c444501625876b4 | [
"MIT"
] | null | null | null | Bison Virtual Machine Source/strings.cpp | kpatel122/Bison-Virtual-Machine | 45a8364edd0b1782bfb167b61c444501625876b4 | [
"MIT"
] | null | null | null | #include <stdlib.h>
#include <stdio.h>
#include <malloc.h>
#include <string.h>
#include <vector>
#include "strings.h"
int CStringTable::DoesStringExist(char *s)
{
if(!s)
{
return -1;
}
for(int i=0; i<numStrings; i++)
{
if(strcmp(strings[i],s) == 0)
return i;
}
return -1;
}
char *CStringTabl... | 11.236842 | 46 | 0.588993 | kpatel122 |
0e8766d660845ec221d351e6cef0217a1a973d8c | 37,482 | cpp | C++ | src/cgame/cg_localents.cpp | jackeri/etjump | e17545b994b9edca8b2d11cba90fc311c9843bd8 | [
"BSL-1.0",
"MIT"
] | null | null | null | src/cgame/cg_localents.cpp | jackeri/etjump | e17545b994b9edca8b2d11cba90fc311c9843bd8 | [
"BSL-1.0",
"MIT"
] | null | null | null | src/cgame/cg_localents.cpp | jackeri/etjump | e17545b994b9edca8b2d11cba90fc311c9843bd8 | [
"BSL-1.0",
"MIT"
] | null | null | null |
// cg_localents.c -- every frame, generate renderer commands for locally
// processed entities, like smoke puffs, gibs, shells, etc.
#include "cg_local.h"
// Ridah, increased this
//#define MAX_LOCAL_ENTITIES 512
#define MAX_LOCAL_ENTITIES 768 // renderer can only handle 1024 entities max, so we should avoid
... | 25.088353 | 196 | 0.601435 | jackeri |
0e887c2d7111dae53890943c17444e27a21d4efb | 6,821 | hpp | C++ | include/ez/input/intern/enumerations.hpp | errata-c/ez-input | f3feb0c8ea6ef8918e6babee4abd1168a42c6a27 | [
"MIT"
] | null | null | null | include/ez/input/intern/enumerations.hpp | errata-c/ez-input | f3feb0c8ea6ef8918e6babee4abd1168a42c6a27 | [
"MIT"
] | null | null | null | include/ez/input/intern/enumerations.hpp | errata-c/ez-input | f3feb0c8ea6ef8918e6babee4abd1168a42c6a27 | [
"MIT"
] | null | null | null | #pragma once
#include <iosfwd>
#include <cinttypes>
#include <string>
#include <string_view>
namespace ez {
/*
Enum discriminator for input events, used to determine the type of the event recieved.
Note that it is undefined behaviour to access the data of an event whose type it not active.
The naming scheme here ... | 20.795732 | 164 | 0.692567 | errata-c |
0e8883ee8e777703dfa6ab841c4944212facca18 | 1,030 | cpp | C++ | FinalCPP_Semester2/TaxDeclaration.cpp | KostasAndrianos/UniversityWork | df07200f534611096a060dec401de13b2ef1c841 | [
"MIT"
] | 1 | 2020-01-04T23:26:32.000Z | 2020-01-04T23:26:32.000Z | FinalCPP_Semester2/TaxDeclaration.cpp | KostasAndrianos/UniversityWork | df07200f534611096a060dec401de13b2ef1c841 | [
"MIT"
] | null | null | null | FinalCPP_Semester2/TaxDeclaration.cpp | KostasAndrianos/UniversityWork | df07200f534611096a060dec401de13b2ef1c841 | [
"MIT"
] | null | null | null | TaxDeclaration::TaxDeclaration(const char* n, const char* a, const char* afm, int y, double t){
strncpy(Name,n,51); // using strncpy instead of strcpy for safety
strncpy(Address,a,51);
strncpy(AFM,afm,8);
cancelled = 0;
Dyear=y;
total_income=t;
}
TaxDeclaration::TaxDeclaration(){
//Just for the sake of... | 30.294118 | 105 | 0.646602 | KostasAndrianos |
0e899cd7ccf2f1353a571a97f2502745491cda79 | 526 | cpp | C++ | android-31/android/net/wifi/aware/PeerHandle.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-31/android/net/wifi/aware/PeerHandle.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-29/android/net/wifi/aware/PeerHandle.cpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #include "../../../../JObject.hpp"
#include "./PeerHandle.hpp"
namespace android::net::wifi::aware
{
// Fields
// QJniObject forward
PeerHandle::PeerHandle(QJniObject obj) : JObject(obj) {}
// Constructors
// Methods
jboolean PeerHandle::equals(JObject arg0) const
{
return callMethod<jboolean>(
"equa... | 16.967742 | 57 | 0.640684 | YJBeetle |
0e8eb358ea842f6146d05b610423fb7f252d296d | 682 | cpp | C++ | src/stp/evaluations/global/WeHaveBallGlobalEvaluation.cpp | maxthielen/yml | 58f5a1707f1034eb4e24c305e416def1e5cbf50b | [
"MIT"
] | 16 | 2018-10-10T09:55:22.000Z | 2021-04-26T09:58:47.000Z | src/stp/evaluations/global/WeHaveBallGlobalEvaluation.cpp | maxthielen/yml | 58f5a1707f1034eb4e24c305e416def1e5cbf50b | [
"MIT"
] | 688 | 2018-09-26T11:42:21.000Z | 2022-03-17T09:32:25.000Z | src/stp/evaluations/global/WeHaveBallGlobalEvaluation.cpp | maxthielen/yml | 58f5a1707f1034eb4e24c305e416def1e5cbf50b | [
"MIT"
] | 5 | 2018-12-25T12:45:56.000Z | 2020-09-25T07:51:02.000Z | //
// Created by ratoone on 27-03-20.
/// T/F Invariant if FRIENDLY has BALL
//
#include "stp/evaluations/global/WeHaveBallGlobalEvaluation.h"
namespace rtt::ai::stp::evaluation {
uint8_t WeHaveBallGlobalEvaluation::metricCheck(const world::World* world, const world::Field* field) const noexcept {
auto& us = worl... | 35.894737 | 165 | 0.692082 | maxthielen |
0e984036cb87548266fe103852a1b38a1f911622 | 3,071 | cpp | C++ | src/string_manip.cpp | zborffs/AsterionEngine | 029624cba19cd7fbc407bb24b9beb33efd089c5b | [
"MIT"
] | 1 | 2018-12-29T10:39:56.000Z | 2018-12-29T10:39:56.000Z | src/string_manip.cpp | zborffs/AsterionEngine | 029624cba19cd7fbc407bb24b9beb33efd089c5b | [
"MIT"
] | 3 | 2021-11-12T06:44:46.000Z | 2021-11-12T06:47:56.000Z | src/string_manip.cpp | zborffs/AsterionEngine | 029624cba19cd7fbc407bb24b9beb33efd089c5b | [
"MIT"
] | null | null | null | #include "string_manip.hpp"
/**
* splits a string by some delimiting character
* @param str input string to be delimited
* @param delim delimiting charater
* @return std::vector<std::string> of all substrings having been split
*/
std::vector<std::string> split(const std::string& str, char delim) {
std:... | 27.918182 | 128 | 0.549007 | zborffs |
0e99a7839cbd7680e7c057282c5c5fb0b3f91fa2 | 9,205 | cpp | C++ | Runtime/Core/Settings.cpp | PanosK92/Directus3D | 2220548d87ef2795d54f739ab84121d4fb3b7ca2 | [
"MIT"
] | 278 | 2016-06-19T16:48:31.000Z | 2019-04-10T05:52:47.000Z | Runtime/Core/Settings.cpp | PanosK92/Directus3D | 2220548d87ef2795d54f739ab84121d4fb3b7ca2 | [
"MIT"
] | 22 | 2016-09-11T20:57:56.000Z | 2019-04-04T00:10:58.000Z | Runtime/Core/Settings.cpp | PanosK92/Directus3D | 2220548d87ef2795d54f739ab84121d4fb3b7ca2 | [
"MIT"
] | 31 | 2016-08-09T13:15:51.000Z | 2019-03-27T13:25:07.000Z | /*
Copyright(c) 2016-2022 Panos Karabelas
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distrib... | 42.419355 | 134 | 0.654101 | PanosK92 |
0e9a3000daf75244f19ebd1e0e1c6abc5bd17a94 | 4,551 | cpp | C++ | src/bm_runtime/server.cpp | liusheng198933/behavioral-model | c713879458e4d97266ba36ea1c18475490e8382d | [
"Apache-2.0"
] | 1 | 2021-02-18T15:43:04.000Z | 2021-02-18T15:43:04.000Z | src/bm_runtime/server.cpp | liusheng198933/behavioral-model | c713879458e4d97266ba36ea1c18475490e8382d | [
"Apache-2.0"
] | null | null | null | src/bm_runtime/server.cpp | liusheng198933/behavioral-model | c713879458e4d97266ba36ea1c18475490e8382d | [
"Apache-2.0"
] | null | null | null | /* Copyright 2013-present Barefoot Networks, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | 29.36129 | 82 | 0.730169 | liusheng198933 |
0e9c91fcf11f0b2db3a1a7314e5e8626b1df4df1 | 19,944 | cpp | C++ | AudioRenderAPI/WASAPIRenderer.cpp | ptimonen/AudioRender | 1a75c168b418608370053530a09b19ff653af5eb | [
"MIT"
] | null | null | null | AudioRenderAPI/WASAPIRenderer.cpp | ptimonen/AudioRender | 1a75c168b418608370053530a09b19ff653af5eb | [
"MIT"
] | null | null | null | AudioRenderAPI/WASAPIRenderer.cpp | ptimonen/AudioRender | 1a75c168b418608370053530a09b19ff653af5eb | [
"MIT"
] | null | null | null | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
/... | 31.407874 | 155 | 0.674539 | ptimonen |
0e9cee232f66de09c81f286ebc155f5bbcac09e2 | 3,871 | cpp | C++ | src/betomnita/layout/MainMenuLayout.cpp | bilbosz/Betomnita | 23c4679a591bc64c40193fe0e661f35eec85f1b7 | [
"MIT"
] | null | null | null | src/betomnita/layout/MainMenuLayout.cpp | bilbosz/Betomnita | 23c4679a591bc64c40193fe0e661f35eec85f1b7 | [
"MIT"
] | 1 | 2018-04-14T08:12:58.000Z | 2018-04-14T08:12:58.000Z | src/betomnita/layout/MainMenuLayout.cpp | bilbosz/Betomnita | 23c4679a591bc64c40193fe0e661f35eec85f1b7 | [
"MIT"
] | null | null | null | #include "betomnita/layout/MainMenuLayout.hpp"
#include "app/Application.hpp"
#include "betomnita/event/EventRegistration.hpp"
#include "betomnita/resources/Resources.hpp"
#include "betomnita/state/MainMenuState.hpp"
#include "game/graphics/Text.hpp"
#include <functional>
namespace Betomnita::Layouts
{
MainMenuL... | 40.322917 | 152 | 0.57427 | bilbosz |
0e9d2befd3d87bdf56a508c74c3b635d5995e2a8 | 60,317 | cpp | C++ | src/openms/source/ANALYSIS/SVM/SVMWrapper.cpp | Togepitsch/OpenMS | b4bd89fbbcc0d56143eb5a0145ba847210fb3aaa | [
"BSL-1.0",
"Zlib",
"Apache-2.0"
] | 1 | 2017-12-18T09:01:54.000Z | 2017-12-18T09:01:54.000Z | src/openms/source/ANALYSIS/SVM/SVMWrapper.cpp | Togepitsch/OpenMS | b4bd89fbbcc0d56143eb5a0145ba847210fb3aaa | [
"BSL-1.0",
"Zlib",
"Apache-2.0"
] | 4 | 2016-03-03T09:42:34.000Z | 2019-05-22T14:30:06.000Z | src/openms/source/ANALYSIS/SVM/SVMWrapper.cpp | timosachsenberg/OpenMS | fe62fff281daa2623977a1f2aafb4444b2c36513 | [
"BSL-1.0",
"Zlib",
"Apache-2.0"
] | null | null | null | // --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... | 29.45166 | 156 | 0.515874 | Togepitsch |
0e9e2d88dbe3192a91d9bf4673aef35ab8818dd0 | 354 | cc | C++ | lib/src/util/config/posix/config.cc | mihaibuzgau/facter | 451ee4288c61c6185295b454339801b84b8242ef | [
"Apache-2.0"
] | null | null | null | lib/src/util/config/posix/config.cc | mihaibuzgau/facter | 451ee4288c61c6185295b454339801b84b8242ef | [
"Apache-2.0"
] | null | null | null | lib/src/util/config/posix/config.cc | mihaibuzgau/facter | 451ee4288c61c6185295b454339801b84b8242ef | [
"Apache-2.0"
] | null | null | null | #include <facter/util/config.hpp>
namespace facter { namespace util { namespace config {
hocon::shared_config load_default_config_file() {
return load_config_from(default_config_location());
}
std::string default_config_location() {
return "/etc/puppetlabs/facter/facter.conf";
}
}}} ... | 27.230769 | 59 | 0.700565 | mihaibuzgau |
0ea0036e8bcf31c4c8680dd5290e983ae89eab6c | 1,274 | cpp | C++ | updateStatus.cpp | sidvishnoi/filesystem-simulation | d1534795736c5938eba07a288e9996236211025b | [
"MIT"
] | 4 | 2018-01-24T22:21:29.000Z | 2021-03-21T18:14:57.000Z | updateStatus.cpp | sidvishnoi/filesystem-simulation | d1534795736c5938eba07a288e9996236211025b | [
"MIT"
] | null | null | null | updateStatus.cpp | sidvishnoi/filesystem-simulation | d1534795736c5938eba07a288e9996236211025b | [
"MIT"
] | 1 | 2017-04-18T10:24:51.000Z | 2017-04-18T10:24:51.000Z | #include "filesystem.h"
int FileSystem::updateStatus(int sector_no, int x) {
/*
objective: to update status of a given sector
input:
sector_no = sector number
x = status (0 = FREE, 1 = BUSY, other: continuation sector number)
return:
(failure) -1
(success) otherwise
... | 30.333333 | 77 | 0.570644 | sidvishnoi |
0ea0c616ef1b2b843cc259f0b50811599bbb1a35 | 2,807 | hpp | C++ | include/eve/module/real/core/function/regular/simd/x86/trunc.hpp | leha-bot/eve | 30e7a7f6bcc5cf524a6c2cc624234148eee847be | [
"MIT"
] | 340 | 2020-09-16T21:12:48.000Z | 2022-03-28T15:40:33.000Z | include/eve/module/real/core/function/regular/simd/x86/trunc.hpp | leha-bot/eve | 30e7a7f6bcc5cf524a6c2cc624234148eee847be | [
"MIT"
] | 383 | 2020-09-17T06:56:35.000Z | 2022-03-13T15:58:53.000Z | include/eve/module/real/core/function/regular/simd/x86/trunc.hpp | leha-bot/eve | 30e7a7f6bcc5cf524a6c2cc624234148eee847be | [
"MIT"
] | 28 | 2021-02-27T23:11:23.000Z | 2022-03-25T12:31:29.000Z | //==================================================================================================
/*
EVE - Expressive Vector Engine
Copyright : EVE Contributors & Maintainers
SPDX-License-Identifier: MIT
*/
//==================================================================================================
#pr... | 44.555556 | 114 | 0.622373 | leha-bot |
0ea31cad5d8c9e888402599430e236b66da859c1 | 14,463 | cpp | C++ | data/508.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | data/508.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | data/508.cpp | TianyiChen/rdcpp-data | 75c6868c876511e3ce143fdc3c08ddd74c7aa4ea | [
"MIT"
] | null | null | null | int XbWK , wvV
, oVi
,mGz
, dO
,vyX3
, W9iP,VJ
, /*nNS*/TFPu ,zYr,
DD,
Wk ,K3KM,ZGgO,
mb6,ZId, us,//9V67t
/*3*/ipn , eE , rx, B,jtp ,
cIJ
,
w5I
,
x ,l7Q,
WDU
,
aUVm , db1
, ex9 , krIj, opY,
lU0 , HZ,
s1Enj ,IDh1
,kE ,ImZM ,
kmSJ,Nu
, oGGof, etAp, gfMs/*iVIP*/
, //n
ck, NMVO, JW7s,ibLy ,wOW
,... | 10.793284 | 82 | 0.464288 | TianyiChen |
0ea469082309937aee2c5adc0c61038f852c2686 | 2,867 | cpp | C++ | io/output/mongodb_outputformat.cpp | OwenDeng1993/Husky | 61ba0e8fc2a0ab025e89307de07a1c6833227857 | [
"Apache-2.0"
] | 117 | 2016-08-31T04:05:08.000Z | 2021-12-18T15:05:38.000Z | io/output/mongodb_outputformat.cpp | OwenDeng1993/Husky | 61ba0e8fc2a0ab025e89307de07a1c6833227857 | [
"Apache-2.0"
] | 223 | 2016-09-12T05:32:44.000Z | 2020-05-22T02:51:21.000Z | io/output/mongodb_outputformat.cpp | OwenDeng1993/Husky | 61ba0e8fc2a0ab025e89307de07a1c6833227857 | [
"Apache-2.0"
] | 77 | 2016-08-31T04:02:57.000Z | 2020-04-08T09:23:46.000Z | // Copyright 2016 Husky Team
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writi... | 26.546296 | 104 | 0.700732 | OwenDeng1993 |
0ea8bce5170a8dc156014eff544711880597c2ca | 11,464 | cpp | C++ | dp/third-party/hyperscan/unit/hyperscan/expr_info.cpp | jtravee/neuvector | a88b9363108fc5c412be3007c3d4fb700d18decc | [
"Apache-2.0"
] | 2,868 | 2017-10-26T02:25:23.000Z | 2022-03-31T23:24:16.000Z | unit/hyperscan/expr_info.cpp | kuangxiaohong/phytium-hyperscan | ae1932734859906278dba623b77f99bba1010d5c | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 270 | 2017-10-30T19:53:54.000Z | 2022-03-30T22:03:17.000Z | unit/hyperscan/expr_info.cpp | kuangxiaohong/phytium-hyperscan | ae1932734859906278dba623b77f99bba1010d5c | [
"BSD-2-Clause",
"BSD-3-Clause"
] | 403 | 2017-11-02T01:18:22.000Z | 2022-03-14T08:46:20.000Z | /*
* Copyright (c) 2015-2017, Intel Corporation
*
* 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 list of conditions and the f... | 39.395189 | 90 | 0.592638 | jtravee |
0ea8dadc61adbb716bf78de02a39904a628cc2ad | 664 | cpp | C++ | UVA10264.cpp | MaSteve/UVA-problems | 3a240fcca02e24a9c850b7e86062f8581df6f95f | [
"MIT"
] | 17 | 2015-12-08T18:50:03.000Z | 2022-03-16T01:23:20.000Z | UVA10264.cpp | MaSteve/UVA-problems | 3a240fcca02e24a9c850b7e86062f8581df6f95f | [
"MIT"
] | null | null | null | UVA10264.cpp | MaSteve/UVA-problems | 3a240fcca02e24a9c850b7e86062f8581df6f95f | [
"MIT"
] | 6 | 2017-04-04T18:16:23.000Z | 2020-06-28T11:07:22.000Z | #include <iostream>
#include <unordered_map>
using namespace std;
int main() {
unordered_map<int, int> v, p;
int N;
while (cin >> N) {
for (int i = 0; i < (1<<N); i++) {
cin >> v[i];
}
for (int i = 0; i < (1<<N); i++) {
p[i] = 0;
for (int j = 0; j... | 23.714286 | 81 | 0.322289 | MaSteve |
0eb205443d3eac70b4bd81621aa8edb2ae86ba26 | 3,622 | cpp | C++ | Foundation/Source/Platform/OpenGL/OpenGLVertexArray.cpp | TrashCoder94/Foundation | 431e4b2b6d01fea570942dc40c93a3a08d23890f | [
"Apache-2.0"
] | null | null | null | Foundation/Source/Platform/OpenGL/OpenGLVertexArray.cpp | TrashCoder94/Foundation | 431e4b2b6d01fea570942dc40c93a3a08d23890f | [
"Apache-2.0"
] | null | null | null | Foundation/Source/Platform/OpenGL/OpenGLVertexArray.cpp | TrashCoder94/Foundation | 431e4b2b6d01fea570942dc40c93a3a08d23890f | [
"Apache-2.0"
] | null | null | null | #include "fdpch.h"
#include "OpenGLVertexArray.h"
#include <glad/glad.h>
namespace Foundation
{
static GLenum ShaderDataTypeToOpenGLBaseType(ShaderDataType type)
{
switch (type)
{
case ShaderDataType::Float: return GL_FLOAT;
case ShaderDataType::Float2: return GL_FLOAT;
case ShaderDataType::Float3: re... | 24.146667 | 97 | 0.711485 | TrashCoder94 |
0eb478ce3bf0683f7b2c1d4e54af22a4de15acba | 3,577 | hpp | C++ | boost/boost_1_56_0/lockfree/detail/tagged_ptr_ptrcompression.hpp | ashgen/reckless | a50429f3819c92b1276c6023f3befafd90ab25b6 | [
"MIT"
] | null | null | null | boost/boost_1_56_0/lockfree/detail/tagged_ptr_ptrcompression.hpp | ashgen/reckless | a50429f3819c92b1276c6023f3befafd90ab25b6 | [
"MIT"
] | null | null | null | boost/boost_1_56_0/lockfree/detail/tagged_ptr_ptrcompression.hpp | ashgen/reckless | a50429f3819c92b1276c6023f3befafd90ab25b6 | [
"MIT"
] | null | null | null | // tagged pointer, for aba prevention
//
// Copyright (C) 2008, 2009 Tim Blechmann, based on code by Cory Nelson
//
// 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)
#ifndef BOOST_LOCKFREE_TAGGED_PTR_PTRCOMPR... | 20.323864 | 77 | 0.588202 | ashgen |
0eb96f489f5e0784b00c65a738fecd8e90d5dccb | 836 | cpp | C++ | src/esbmc/main.cpp | correcthorsebatterystaple/esbmc | 1fc1aed3b7a4aa3a16c3fcd4a4f67f477da0c4cc | [
"BSD-3-Clause"
] | null | null | null | src/esbmc/main.cpp | correcthorsebatterystaple/esbmc | 1fc1aed3b7a4aa3a16c3fcd4a4f67f477da0c4cc | [
"BSD-3-Clause"
] | null | null | null | src/esbmc/main.cpp | correcthorsebatterystaple/esbmc | 1fc1aed3b7a4aa3a16c3fcd4a4f67f477da0c4cc | [
"BSD-3-Clause"
] | null | null | null | /*******************************************************************\
Module: Main Module
Author: Lucas Cordeiro, lcc08r@ecs.soton.ac.uk
Jeremy Morse, jcmm106@ecs.soton.ac.uk
\*******************************************************************/
/*
ESBMC
SMT-based Context-Bounded Model Checking for ANSI-C/C++... | 25.333333 | 73 | 0.623206 | correcthorsebatterystaple |
0eb98ddd7975327ac7e82dcb91fd6d9df2e478e3 | 33,421 | hxx | C++ | Modules/Filtering/ImageGrid/include/itkMirrorPadImageFilter.hxx | akenmorris/ITK | 5ea53b877f51aba42d47bf12b5726c72d356b3aa | [
"Apache-2.0"
] | 1 | 2019-05-31T13:50:41.000Z | 2019-05-31T13:50:41.000Z | Modules/Filtering/ImageGrid/include/itkMirrorPadImageFilter.hxx | akenmorris/ITK | 5ea53b877f51aba42d47bf12b5726c72d356b3aa | [
"Apache-2.0"
] | null | null | null | Modules/Filtering/ImageGrid/include/itkMirrorPadImageFilter.hxx | akenmorris/ITK | 5ea53b877f51aba42d47bf12b5726c72d356b3aa | [
"Apache-2.0"
] | null | null | null | /*=========================================================================
*
* Copyright NumFOCUS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.or... | 41.568408 | 120 | 0.601837 | akenmorris |
0ebb02548418dac4a68d31b56886318089fc7f08 | 560 | cpp | C++ | Structural-patterns/6_Flyweight/src/modelsfactory/factory.cpp | PP189B/Design-patterns-practice | 3fd7f9a3fa85dcf1e48680662d9bc3ac41796b69 | [
"MIT"
] | null | null | null | Structural-patterns/6_Flyweight/src/modelsfactory/factory.cpp | PP189B/Design-patterns-practice | 3fd7f9a3fa85dcf1e48680662d9bc3ac41796b69 | [
"MIT"
] | null | null | null | Structural-patterns/6_Flyweight/src/modelsfactory/factory.cpp | PP189B/Design-patterns-practice | 3fd7f9a3fa85dcf1e48680662d9bc3ac41796b69 | [
"MIT"
] | null | null | null | #include "factory.hpp"
namespace Models
{
/// Singleton
BasicModelsFactory BasicModelsFactory::Instance;
/// Logic
BasicModelsFactory::model_ptr_t BasicModelsFactory::getModel(const std::string label, const std::string& type, const std::string& texture)
{
Models::BasicModel tmp(label, type, text... | 20.740741 | 141 | 0.655357 | PP189B |
0ebb18f6e9dbd425e60d398a366772c7771a751e | 5,109 | cpp | C++ | graph-source-code/320-B/10804081.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/320-B/10804081.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/320-B/10804081.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | //Language: GNU C++11
//#include <bits/stdc++.h>
//using namespace std;
//const double pi = 3.14159265359;
//int arr[100005], arr2[200005], cnt = 0;
//
//struct node {
// int l, r, mx, indx;
// node *nextl, *nextr;
// node(int a, int b) {
// mx = -1;
// nextl = nextr = 0;
// l = a, r = b;... | 27.467742 | 92 | 0.414563 | AmrARaouf |
0ebbd71b5b69be9dfdc36fcfd1f2bbd709af0f9f | 5,535 | hpp | C++ | include/Pomdog/Math/detail/FloatingPointMatrix3x3.hpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | include/Pomdog/Math/detail/FloatingPointMatrix3x3.hpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | include/Pomdog/Math/detail/FloatingPointMatrix3x3.hpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | // Copyright (c) 2013-2018 mogemimi. Distributed under the MIT license.
#pragma once
#include "Pomdog/Basic/Export.hpp"
#include "Pomdog/Math/detail/ForwardDeclarations.hpp"
#include <cstddef>
#include <cstdint>
#include <type_traits>
namespace Pomdog {
namespace Detail {
template <typename T>
class POMDOG_EXPORT F... | 32.946429 | 117 | 0.75664 | ValtoForks |
0ebbfa7ef01671686c704edf2881343c87a8a03e | 6,353 | cpp | C++ | src/algorithms/Ilona/Browerfs.cpp | av-elier/fast-exponentiation-algs | 1d6393021583686372564a7ca52b09dc7013fb38 | [
"MIT"
] | 2 | 2016-10-17T20:30:05.000Z | 2020-03-24T19:52:14.000Z | src/algorithms/Ilona/Browerfs.cpp | av-elier/fast-exponentiation-algs | 1d6393021583686372564a7ca52b09dc7013fb38 | [
"MIT"
] | null | null | null | src/algorithms/Ilona/Browerfs.cpp | av-elier/fast-exponentiation-algs | 1d6393021583686372564a7ca52b09dc7013fb38 | [
"MIT"
] | null | null | null |
#include <stdio.h>
#include <locale>
#include <time.h>
#include "algorithms/Ilona/Browerfs.h"
#include "ExpAlgInterfaces.h"
using namespace std;
using namespace Ilona;
//NTL_CLIENT
BrowerSigned::BrowerSigned()
{
setAuthor(L"Ilona Vinnichuk");
setMethod(L"BrowerSigned");
vecx[conv<ZZ>(0)]=conv<ZZ_p>(0)... | 17.74581 | 110 | 0.491264 | av-elier |
0ebc53b44bf97dcfb8f6e6256441209fd25c92bd | 1,705 | cc | C++ | src/systems/tilemap.cc | MobSlicer152/rp4k_game_engine_em | 5e331d832174e66befa148c52334b51cd225f821 | [
"Zlib"
] | null | null | null | src/systems/tilemap.cc | MobSlicer152/rp4k_game_engine_em | 5e331d832174e66befa148c52334b51cd225f821 | [
"Zlib"
] | null | null | null | src/systems/tilemap.cc | MobSlicer152/rp4k_game_engine_em | 5e331d832174e66befa148c52334b51cd225f821 | [
"Zlib"
] | null | null | null | #include "systems/tilemap.h"
tilemap_system::tilemap_system(void)
{
}
tilemap_system::~tilemap_system(void)
{
}
void tilemap_system::tick(ECS::World *world, float delta)
{
if (!states::get_paused()) {
engine::get_inst().world->each<struct tilemap>(
[&](ECS::Entity *entity,
ECS::ComponentHandle<struct ti... | 26.230769 | 71 | 0.645748 | MobSlicer152 |
0ebdfb2ea360d4b8ba1ab507406942e268ff13cd | 2,924 | cpp | C++ | solved/10992.cpp | goutomroy/uva.onlinejudge | 5ce09d9e370ad78eabd0fd500ef77ce804e2d0f2 | [
"MIT"
] | null | null | null | solved/10992.cpp | goutomroy/uva.onlinejudge | 5ce09d9e370ad78eabd0fd500ef77ce804e2d0f2 | [
"MIT"
] | null | null | null | solved/10992.cpp | goutomroy/uva.onlinejudge | 5ce09d9e370ad78eabd0fd500ef77ce804e2d0f2 | [
"MIT"
] | null | null | null | #include<stdio.h>
#include<string.h>
#include<math.h>
#define swap(a,b) a^=b^=a^=b
long divide(long divisor);
void substract(char x[],char y[]);
char number[100],ch[100],tem[110];
long tt;
long toint(char x);
char tochar(long x);
void reverse(char x[]);
void main( )
{
long k,r,len,sum,l,p,x,y,i;
while(scanf("%s",ch)... | 17.099415 | 51 | 0.589261 | goutomroy |
0ec01db686c2efb18c4efac14304f6141426fca2 | 652 | cc | C++ | 1_Basics/ConsoleInput.cc | FabKes/UdemyCpp_Template | 9e48bcfa76ccf0e64332bb16c6eca65174920a3e | [
"MIT"
] | null | null | null | 1_Basics/ConsoleInput.cc | FabKes/UdemyCpp_Template | 9e48bcfa76ccf0e64332bb16c6eca65174920a3e | [
"MIT"
] | null | null | null | 1_Basics/ConsoleInput.cc | FabKes/UdemyCpp_Template | 9e48bcfa76ccf0e64332bb16c6eca65174920a3e | [
"MIT"
] | null | null | null | #include <iostream>
int main()
{
double number1;
double number2;
double result = 0.0;
std::cout << "please enter a number: ";
std::cin >> number1;
std::cout << "please enter another number: ";
std::cin >> number2;
result = number1 * number2;
std::cout << "number1 * number2 = " ... | 21.032258 | 63 | 0.562883 | FabKes |
b1bff778fb373087f81ea3b497d48aca1a56fb14 | 1,193 | cpp | C++ | 410.cpp | felikjunvianto/kfile-uvaoj-submissions | 5bd8b3b413ca8523abe412b0a0545f766f70ce63 | [
"MIT"
] | null | null | null | 410.cpp | felikjunvianto/kfile-uvaoj-submissions | 5bd8b3b413ca8523abe412b0a0545f766f70ce63 | [
"MIT"
] | null | null | null | 410.cpp | felikjunvianto/kfile-uvaoj-submissions | 5bd8b3b413ca8523abe412b0a0545f766f70ce63 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cmath>
#include <iostream>
#include <string>
#include <cstring>
#include <algorithm>
#include <vector>
#include <utility>
#include <stack>
#include <queue>
#include <map>
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define pi 2*acos(0.0)
#de... | 17.80597 | 52 | 0.527242 | felikjunvianto |
b1c3069065068ab14d098048ccf3cd659ebf1ebb | 11,271 | cpp | C++ | src/threepp/renderers/gl/ProgramParameters.cpp | maidamai0/threepp | 9b50e2c0f2a7bb3ebfd3ffeef61dbefcd54c7071 | [
"MIT"
] | null | null | null | src/threepp/renderers/gl/ProgramParameters.cpp | maidamai0/threepp | 9b50e2c0f2a7bb3ebfd3ffeef61dbefcd54c7071 | [
"MIT"
] | null | null | null | src/threepp/renderers/gl/ProgramParameters.cpp | maidamai0/threepp | 9b50e2c0f2a7bb3ebfd3ffeef61dbefcd54c7071 | [
"MIT"
] | null | null | null |
#include "ProgramParameters.hpp"
#include "threepp/renderers/GLRenderer.hpp"
#include "threepp/renderers/shaders/ShaderLib.hpp"
#include <sstream>
using namespace threepp;
using namespace threepp::gl;
namespace {
int getTextureEncodingFromMap(const std::shared_ptr<Texture> &map) {
return map ? map->e... | 39.826855 | 107 | 0.673587 | maidamai0 |
b1cacabcc0b69e6241cdc73a9addd28f30471207 | 18,425 | cpp | C++ | src/module/vep/vep_container.cpp | extester/carbon | ef3e51e35359a648c2b6f1ea119cf5acbcdf15c7 | [
"Apache-2.0"
] | 1 | 2019-12-25T17:38:30.000Z | 2019-12-25T17:38:30.000Z | src/module/vep/vep_container.cpp | extester/carbon | ef3e51e35359a648c2b6f1ea119cf5acbcdf15c7 | [
"Apache-2.0"
] | null | null | null | src/module/vep/vep_container.cpp | extester/carbon | ef3e51e35359a648c2b6f1ea119cf5acbcdf15c7 | [
"Apache-2.0"
] | null | null | null | /*
* Carbon/Vep module
* Verinet Exchange Protocol container
*
* Copyright (c) 2015 Softland. All rights reserved.
* Licensed under the Apache License, Version 2.0
*/
/*
* Revision history:
*
* Revision 1.0, 04.05.2015 19:32:07
* Initial revision.
*/
#include <new>
#include "shell/dec_ptr.h"
#i... | 22.360437 | 93 | 0.670773 | extester |
b1cd9a274ea8f7b44617ec1fba1da54f565b6a88 | 289 | cpp | C++ | old-nocheatz3/NczThreads.cpp | somsom37/https-github.com-kanekikun420-NoCheatZ-3 | 3dbc2d0f0b9722d5ad015a41415bdad25f3786c1 | [
"Apache-2.0"
] | 2 | 2020-07-30T00:11:24.000Z | 2022-03-27T12:41:17.000Z | old-nocheatz3/NczThreads.cpp | somsom37/https-github.com-kanekikun420-NoCheatZ-3 | 3dbc2d0f0b9722d5ad015a41415bdad25f3786c1 | [
"Apache-2.0"
] | null | null | null | old-nocheatz3/NczThreads.cpp | somsom37/https-github.com-kanekikun420-NoCheatZ-3 | 3dbc2d0f0b9722d5ad015a41415bdad25f3786c1 | [
"Apache-2.0"
] | 2 | 2019-01-07T16:21:26.000Z | 2020-12-03T00:05:41.000Z | #include "NczThread.h"
#include <stdio.h>
NczThread::NczThread() :
mustbekilled(false)
{
}
NczThread::~NczThread()
{
}
int NczThread::Run()
{
mustbekilled = false;
int res = WebThread();
mustbekilled = true;
return res;
}
bool NczThread::MustBeKilled()
{
return mustbekilled;
}
| 11.56 | 30 | 0.685121 | somsom37 |
b1d0164bf4cf0e61150b725ec290597310561783 | 474 | cpp | C++ | codeforces/950D.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | 3 | 2017-09-17T09:12:50.000Z | 2018-04-06T01:18:17.000Z | codeforces/950D.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | codeforces/950D.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;
}
int main(int argc, char const *argv[]) {
ll n = ... | 23.7 | 61 | 0.50211 | swwind |
b1d12fdf841c293fc8c33d98068bdc5286c19c86 | 4,091 | cpp | C++ | Coin3D/src/elements/SoCreaseAngleElement.cpp | pniaz20/inventor-utils | 2306b758b15bd1a0df3fb9bd250215b7bb7fac3f | [
"MIT"
] | null | null | null | Coin3D/src/elements/SoCreaseAngleElement.cpp | pniaz20/inventor-utils | 2306b758b15bd1a0df3fb9bd250215b7bb7fac3f | [
"MIT"
] | null | null | null | Coin3D/src/elements/SoCreaseAngleElement.cpp | pniaz20/inventor-utils | 2306b758b15bd1a0df3fb9bd250215b7bb7fac3f | [
"MIT"
] | null | null | null | /**************************************************************************\
* Copyright (c) Kongsberg Oil & Gas Technologies AS
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* Red... | 29.014184 | 95 | 0.720851 | pniaz20 |
b1d621ae5a5e166413713448e01b5453a2a3bc4b | 477 | cpp | C++ | Graph/Kruskal.cpp | maguroplusia/Library | 02e0e277986833fe1c12e20b3677a553b7b27346 | [
"CC0-1.0"
] | null | null | null | Graph/Kruskal.cpp | maguroplusia/Library | 02e0e277986833fe1c12e20b3677a553b7b27346 | [
"CC0-1.0"
] | null | null | null | Graph/Kruskal.cpp | maguroplusia/Library | 02e0e277986833fe1c12e20b3677a553b7b27346 | [
"CC0-1.0"
] | null | null | null | #include"../DataStructure/UnionFind.cpp"
struct edge {
int u,v;
long long cost;
bool operator<(const edge& b) const {
return cost < b.cost;
}
};
int N,M;
edge graph[200010];
long long Kruskal() {
sort(graph,graph + M);
UnionFind uf(N);
long long ret = 0;
for(int i = 0;i < M;i... | 17.035714 | 41 | 0.496855 | maguroplusia |
b1d633c884b139bcdc057769899e1087d3e5356e | 1,267 | cpp | C++ | HelloCinder043/src/ParticleController.cpp | davidbeermann/cinder-flocking-tutorial | 74c7ecd2cd99c128d50d8007a185deababec9c8d | [
"MIT"
] | 1 | 2021-12-10T23:37:59.000Z | 2021-12-10T23:37:59.000Z | HelloCinder043/src/ParticleController.cpp | davidbeermann/cinder-flocking-tutorial | 74c7ecd2cd99c128d50d8007a185deababec9c8d | [
"MIT"
] | 1 | 2017-06-10T11:35:31.000Z | 2017-06-10T12:48:56.000Z | HelloCinder043/src/ParticleController.cpp | davidbeermann/cinder-flocking-tutorial | 74c7ecd2cd99c128d50d8007a185deababec9c8d | [
"MIT"
] | 2 | 2019-08-31T08:28:09.000Z | 2020-08-03T06:52:28.000Z | #include <cinder/Rand.h>
#include "ParticleController.h"
ParticleController::ParticleController() {
}
void ParticleController::update(const Perlin &perlin, const vec2 &mouseLocation) {
// the for loop has no iteration statement!!!
// this is because we only iterate in the list after a particle update.
//... | 25.34 | 95 | 0.617995 | davidbeermann |
b1dd3de554db2354f65b018f2af3fb7da2a793db | 1,559 | cpp | C++ | cpp11_std/basic_tuple.cpp | gaotianpeng/gtp_snippets | 40d0868263edba057d8e0b696ebd724ee1fb5677 | [
"MIT"
] | 1 | 2021-07-07T09:36:43.000Z | 2021-07-07T09:36:43.000Z | cpp11_std/basic_tuple.cpp | gaotianpeng/gtp_snippets | 40d0868263edba057d8e0b696ebd724ee1fb5677 | [
"MIT"
] | null | null | null | cpp11_std/basic_tuple.cpp | gaotianpeng/gtp_snippets | 40d0868263edba057d8e0b696ebd724ee1fb5677 | [
"MIT"
] | null | null | null | #include <tuple>
#include <iostream>
#include <complex>
#include <string>
#include <vector>
using namespace std;
int main(int argc, char* argv[]) {
tuple<string, int, int, complex<double>> t;
tuple<int, float, string> t1(41, 6.3, "nice");
cout << get<0>(t1) << " ";
cout << get<1>(t1) << " ";
cou... | 24.746032 | 78 | 0.508018 | gaotianpeng |
b1ddae087821f0e1c2d2a2b720fc8528a643dc15 | 761 | hpp | C++ | pythran/pythonic/include/numpy/array_split.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/include/numpy/array_split.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/include/numpy/array_split.hpp | xmar/pythran | dbf2e8b70ed1e4d4ac6b5f26ead4add940a72592 | [
"BSD-3-Clause"
] | null | null | null | #ifndef PYTHONIC_INCLUDE_NUMPY_ARRAYSPLIT_HPP
#define PYTHONIC_INCLUDE_NUMPY_ARRAYSPLIT_HPP
#include "pythonic/include/utils/functor.hpp"
#include "pythonic/include/types/ndarray.hpp"
namespace pythonic
{
namespace numpy
{
template <class T, size_t N>
types::list<types::ndarray<T, N>> array_split(types::... | 28.185185 | 80 | 0.660972 | xmar |
b1e06f52e843a765c99f5dc0b36374d044dfd6fc | 1,810 | cpp | C++ | third_party/boost/libs/throw_exception/test/throw_exception_test3.cpp | Jackarain/tinyrpc | 07060e3466776aa992df8574ded6c1616a1a31af | [
"BSL-1.0"
] | 32 | 2019-02-27T06:57:07.000Z | 2021-08-29T10:56:19.000Z | third_party/boost/libs/throw_exception/test/throw_exception_test3.cpp | avplayer/cxxrpc | 7049b4079fac78b3828e68f787d04d699ce52f6d | [
"BSL-1.0"
] | 1 | 2019-04-04T18:00:00.000Z | 2019-04-04T18:00:00.000Z | third_party/boost/libs/throw_exception/test/throw_exception_test3.cpp | avplayer/cxxrpc | 7049b4079fac78b3828e68f787d04d699ce52f6d | [
"BSL-1.0"
] | 5 | 2019-08-20T13:45:04.000Z | 2022-03-01T18:23:49.000Z | // Copyright 2018 Peter Dimov
//
// Distributed under the Boost Software License, Version 1.0.
//
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt
#include <boost/throw_exception.hpp>
#include <boost/exception_ptr.hpp>
#include <boost/detail/lightweight_test.hpp>
... | 25.138889 | 78 | 0.614365 | Jackarain |
b1e0dc396dd71fe09940bd225b00caaea614a977 | 3,741 | cpp | C++ | core/umc/src/umc_splitter.cpp | viticm/ipp-media | 1d942e8b04ce1e4e02787e2f451b2091061e1b4d | [
"MIT"
] | 1 | 2022-03-02T20:23:13.000Z | 2022-03-02T20:23:13.000Z | core/umc/src/umc_splitter.cpp | viticm/ipp-media | 1d942e8b04ce1e4e02787e2f451b2091061e1b4d | [
"MIT"
] | null | null | null | core/umc/src/umc_splitter.cpp | viticm/ipp-media | 1d942e8b04ce1e4e02787e2f451b2091061e1b4d | [
"MIT"
] | null | null | null | /*
//
// INTEL CORPORATION PROPRIETARY INFORMATION
// This software is supplied under the terms of a license agreement or
// nondisclosure agreement with Intel Corporation and may not be copied
// or disclosed except in accordance with the terms of that agreement.
// Copyright(c) 2003... | 23.236025 | 96 | 0.537022 | viticm |
b1e1c0d5416d6bd2e7b14ab0a506ff0d7d03b8df | 2,065 | hpp | C++ | spike/models/compound/PartlyKnownCompound_to_CompletedCompound_test.hpp | davidson16807/libtectonics | aa0ae2b8a4a1d2a9a346bbdeb334be876ad75646 | [
"CC-BY-4.0"
] | 7 | 2020-06-09T19:56:55.000Z | 2021-02-17T01:53:30.000Z | spike/models/compound/PartlyKnownCompound_to_CompletedCompound_test.hpp | davidson16807/tectonics.cpp | c40278dba14260c598764467c7abf23b190e676b | [
"CC-BY-4.0"
] | null | null | null | spike/models/compound/PartlyKnownCompound_to_CompletedCompound_test.hpp | davidson16807/tectonics.cpp | c40278dba14260c598764467c7abf23b190e676b | [
"CC-BY-4.0"
] | null | null | null |
// 3rd party libraries
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include <catch/catch.hpp>
// in house libraries
#include <units/si.hpp>
#include "units/si_test_utils.hpp"
#include "PartlyKnownCompound_to_CompletedCompound.hpp"
#include "PartlyKnownCompound_t... | 42.142857 | 149 | 0.753027 | davidson16807 |
b1e846fa6e692060d8e2be85fc130fff0c08aca7 | 6,108 | cpp | C++ | TestSrc/TestCompressedSparse.cpp | dirkcgrunwald/SAM | 0478925c506ad38fd405954cc4415a3e96e77d90 | [
"MIT"
] | null | null | null | TestSrc/TestCompressedSparse.cpp | dirkcgrunwald/SAM | 0478925c506ad38fd405954cc4415a3e96e77d90 | [
"MIT"
] | null | null | null | TestSrc/TestCompressedSparse.cpp | dirkcgrunwald/SAM | 0478925c506ad38fd405954cc4415a3e96e77d90 | [
"MIT"
] | null | null | null | #define BOOST_TEST_MAIN TestCompressedSparse
#include <boost/test/unit_test.hpp>
#include <stdexcept>
#include <string>
#include <vector>
#include <zmq.hpp>
#include <thread>
#include <atomic>
#include <sam/Edge.hpp>
#include <sam/VastNetflow.hpp>
#include <sam/VastNetflowGenerators.hpp>
#include <sam/CompressedSparse.... | 28.811321 | 79 | 0.626228 | dirkcgrunwald |
b1ea3b58857198b30535fa50c3b5a78d6e2dc4c6 | 329 | hpp | C++ | SpaceInvaders/SpaceInvaders/Nodriza.hpp | CarlosIzarra09/Space_Invaders_Cplusplus | a7bd70fcab5156f23f92505b523140b8123a3ac9 | [
"Unlicense"
] | null | null | null | SpaceInvaders/SpaceInvaders/Nodriza.hpp | CarlosIzarra09/Space_Invaders_Cplusplus | a7bd70fcab5156f23f92505b523140b8123a3ac9 | [
"Unlicense"
] | null | null | null | SpaceInvaders/SpaceInvaders/Nodriza.hpp | CarlosIzarra09/Space_Invaders_Cplusplus | a7bd70fcab5156f23f92505b523140b8123a3ac9 | [
"Unlicense"
] | null | null | null | #ifndef _Nodriza_H_
#define _Nodriza_H_
#include "Base.hpp"
class Nodriza :public Base
{
private:
public:
Nodriza()
{
alto = 50;
ancho = 100;
}
~Nodriza(){}
void Mover(System::Drawing::Graphics^g)
{
if (x + ancho + dx > 3000
|| x + dx < -3000)
{
dx = dx * -1;
}
x += dx;
}
};
#endif // !_No... | 10.966667 | 40 | 0.568389 | CarlosIzarra09 |
b1f25143731ac9dac17bbabdcda0b5e6d2ff608b | 2,936 | hpp | C++ | libs/fnd/algorithm/include/bksge/fnd/algorithm/partial_sort_copy.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/fnd/algorithm/include/bksge/fnd/algorithm/partial_sort_copy.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/fnd/algorithm/include/bksge/fnd/algorithm/partial_sort_copy.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file partial_sort_copy.hpp
*
* @brief partial_sort_copy の定義
*
* @author myoukaku
*/
#ifndef BKSGE_FND_ALGORITHM_PARTIAL_SORT_COPY_HPP
#define BKSGE_FND_ALGORITHM_PARTIAL_SORT_COPY_HPP
#include <bksge/fnd/algorithm/config.hpp>
#if defined(BKSGE_USE_STD_ALGORITHM)
#include <algorithm>
... | 25.982301 | 96 | 0.715599 | myoukaku |
b1f3e4e3041c14a15be4659fa5a7a715eac0447a | 3,113 | cpp | C++ | toonz/sources/stdfx/igs_motion_wind_table.cpp | wofogen/tahoma2d | ce5a89a7b1027b2c1769accb91184a2ee6442b4d | [
"BSD-3-Clause"
] | 3,710 | 2016-03-26T00:40:48.000Z | 2022-03-31T21:35:12.000Z | toonz/sources/stdfx/igs_motion_wind_table.cpp | wofogen/tahoma2d | ce5a89a7b1027b2c1769accb91184a2ee6442b4d | [
"BSD-3-Clause"
] | 4,246 | 2016-03-26T01:21:45.000Z | 2022-03-31T23:10:47.000Z | toonz/sources/stdfx/igs_motion_wind_table.cpp | wofogen/tahoma2d | ce5a89a7b1027b2c1769accb91184a2ee6442b4d | [
"BSD-3-Clause"
] | 633 | 2016-03-26T00:42:25.000Z | 2022-03-17T02:55:13.000Z | // #include <iostream>
#include <cmath> /* pow(), ceil() */
#include "igs_motion_wind_table.h"
int igs::motion_wind::table_size(const double length_min,
const double length_max) {
if (length_min < length_max) {
return static_cast<int>(ceil(length_max));
}
return static_cast<i... | 32.092784 | 71 | 0.563444 | wofogen |
b1f87fb9bbdb896eb3b6adf087b39058fa02b28f | 1,366 | cpp | C++ | Common/Packets/GCCityAttr.cpp | hackerlank/SourceCode | b702c9e0a9ca5d86933f3c827abb02a18ffc9a59 | [
"MIT"
] | 4 | 2021-07-31T13:56:01.000Z | 2021-11-13T02:55:10.000Z | Common/Packets/GCCityAttr.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | null | null | null | Common/Packets/GCCityAttr.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | 7 | 2021-08-31T14:34:23.000Z | 2022-01-19T08:25:58.000Z | #include "stdafx.h"
#include "GCCityAttr.h"
BOOL GCCityAttr::Read( SocketInputStream& iStream )
{
__ENTER_FUNCTION
iStream.Read( (CHAR*)(&m_uFlags), sizeof(UINT));
if ( m_uFlags & (1 << CITY_UPDATE_CITY_LEVEL) )
{
iStream.Read( (CHAR*)(&m_Level), sizeof(BYTE));
}
if ( m_uFlags & (1 << CITY_UPDATE_CITY_NAME)... | 18.972222 | 67 | 0.689605 | hackerlank |
b1fc3acff80d90c7b6992898313d75d19b5aad4c | 2,238 | cpp | C++ | kdiff3/src-QT4/gnudiff_xmalloc.cpp | michaelxzhang/kdiff3 | 471a343af7e2ec3a5f9cd31828b290309959f508 | [
"Intel"
] | 3 | 2021-02-25T14:12:14.000Z | 2021-10-29T22:44:26.000Z | kdiff3/src-QT4/gnudiff_xmalloc.cpp | michaelxzhang/kdiff3 | 471a343af7e2ec3a5f9cd31828b290309959f508 | [
"Intel"
] | 3 | 2020-05-16T05:28:21.000Z | 2020-05-26T20:40:25.000Z | kdiff3/src-QT4/gnudiff_xmalloc.cpp | michaelxzhang/kdiff3 | 471a343af7e2ec3a5f9cd31828b290309959f508 | [
"Intel"
] | null | null | null | /* xmalloc.c -- malloc with out of memory checking
Modified for KDiff3 by Joachim Eibl 2003.
The original file was part of GNU DIFF.
Copyright (C) 1990-1999, 2000, 2002 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Gen... | 25.724138 | 84 | 0.690349 | michaelxzhang |
b1fcda2461a72df9b30b3cdc4b23ece4dbfbf8c3 | 4,491 | cpp | C++ | common/test_net.cpp | ZmnSCPxj/cldcb | 4375d95cacee2a51fe5c4c1accc9fc616474bd41 | [
"MIT"
] | 9 | 2020-06-02T16:40:40.000Z | 2021-10-03T15:22:40.000Z | common/test_net.cpp | ZmnSCPxj/cldcb | 4375d95cacee2a51fe5c4c1accc9fc616474bd41 | [
"MIT"
] | 2 | 2020-11-06T00:00:24.000Z | 2022-02-14T01:59:08.000Z | common/test_net.cpp | ZmnSCPxj/cldcb | 4375d95cacee2a51fe5c4c1accc9fc616474bd41 | [
"MIT"
] | 2 | 2021-01-02T15:29:50.000Z | 2022-02-23T07:26:00.000Z | #include<assert.h>
#include<cstdint>
#include<fcntl.h>
#include<future>
#include<sys/stat.h>
#include<sys/types.h>
#include<thread>
#include<unistd.h>
#include<vector>
#include"Net/DirectConnector.hpp"
#include"Net/Fd.hpp"
#include"Net/Listener.hpp"
#include"Net/ProxyConnector.hpp"
#include"Net/SocketFd.hpp"
#include"N... | 26.110465 | 90 | 0.623024 | ZmnSCPxj |
b1ff0de87368a7ec809fd9e2f8bcdfe5949f93e4 | 1,454 | cc | C++ | EvtGenBase/EvtDalitzCoord.cc | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | EvtGenBase/EvtDalitzCoord.cc | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | EvtGenBase/EvtDalitzCoord.cc | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | #include "Experiment/Experiment.hh"
/*******************************************************************************
* Project: BaBar detector at the SLAC PEP-II B-factory
* Package: EvtGenBase
* File: $Id: EvtDalitzCoord.cc 427 2010-01-14 13:25:53Z stroili $
* Author: Alexei Dvoretskii, dvoretsk@slac.stanford.... | 24.644068 | 81 | 0.605915 | brownd1978 |
b1fff2ed8ef30e0b75378323a0c0fb103117dcd2 | 495 | cpp | C++ | nd-coursework/books/cpp/C++20Recipes/Chapter01/Recipe1_07/HelloWorld.cpp | crdrisko/nd-grad | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | 1 | 2020-09-26T12:38:55.000Z | 2020-09-26T12:38:55.000Z | nd-coursework/books/cpp/C++20Recipes/Chapter01/Recipe1_07/HelloWorld.cpp | crdrisko/nd-research | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | null | null | null | nd-coursework/books/cpp/C++20Recipes/Chapter01/Recipe1_07/HelloWorld.cpp | crdrisko/nd-research | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | null | null | null | // Copyright (c) 2020 J. Burton Browning and Bruce Sutherland. Some rights reserved.
// Licensed under the Freeware License. See the LICENSE file in the project root for more information.
//
// Name: HelloWorld.cpp
// Author: crdrisko
// Date: 10/12/2020-18:09:51
// Description: Your first C++20 program
#include <iost... | 23.571429 | 102 | 0.69697 | crdrisko |
b1fff55d078377e5b85492c2ef2318e8b43a6fca | 1,399 | cc | C++ | src/ScheduleHandler.cc | maruinen/FullereneViewer | da1554af2de21e90bfa0380a5b635f8bab8e2d8c | [
"Apache-2.0"
] | null | null | null | src/ScheduleHandler.cc | maruinen/FullereneViewer | da1554af2de21e90bfa0380a5b635f8bab8e2d8c | [
"Apache-2.0"
] | null | null | null | src/ScheduleHandler.cc | maruinen/FullereneViewer | da1554af2de21e90bfa0380a5b635f8bab8e2d8c | [
"Apache-2.0"
] | null | null | null | /*
* Project: FullereneViewer
* Version: 1.0
* Copyright: (C) 2011-14 Dr.Sc.KAWAMOTO,Takuji (Ext)
*/
#include <unistd.h>
#include <signal.h>
#include <assert.h>
#include <sys/types.h>
#include <sys/time.h>
#include "ScheduleHandler.h"
bool ScheduleHandler::p_receive()
{
char work[1];
int red_len;
red_len = ... | 19.164384 | 53 | 0.675482 | maruinen |
5900dfd0101690b4045d4d8694860e5110d0de3b | 3,344 | cpp | C++ | Opengl-Toolkit/Mesh.cpp | Ultranull/visualglfwtest | 41b759d40463c4e9108b2f044144421c16450907 | [
"MIT"
] | 1 | 2019-02-18T22:20:13.000Z | 2019-02-18T22:20:13.000Z | Opengl-Toolkit/Mesh.cpp | Ultranull/visualglfwtest | 41b759d40463c4e9108b2f044144421c16450907 | [
"MIT"
] | null | null | null | Opengl-Toolkit/Mesh.cpp | Ultranull/visualglfwtest | 41b759d40463c4e9108b2f044144421c16450907 | [
"MIT"
] | null | null | null | #include "Mesh.h"
#include <glm/glm.hpp>
#include <gl/glew.h>
#include <iostream>
#include <string>
#include <fstream>
#include <sstream>
#include <vector>
using namespace std;
using namespace glm;
void Mesh::bindbuffers() {
vector<vec3> verts =getVertexes();
vector<vec2> uvs = getUVs();
vector<vec3> norms = ge... | 23.062069 | 96 | 0.64384 | Ultranull |
5903d3c9da43da2c0f93ccac8d0a137a63952aec | 766 | cpp | C++ | SourceCode/Chapter 18/Pr18-4.cpp | aceiro/poo2019 | 0f93d22296f43a8b024a346f510c00314817d2cf | [
"MIT"
] | 1 | 2019-04-09T18:29:38.000Z | 2019-04-09T18:29:38.000Z | SourceCode/Chapter 18/Pr18-4.cpp | aceiro/poo2019 | 0f93d22296f43a8b024a346f510c00314817d2cf | [
"MIT"
] | null | null | null | SourceCode/Chapter 18/Pr18-4.cpp | aceiro/poo2019 | 0f93d22296f43a8b024a346f510c00314817d2cf | [
"MIT"
] | null | null | null | // This program demonstrates the dynamic stack
// class DynIntClass.
#include <iostream>
#include "DynIntStack.h"
using namespace std;
int main()
{
int catchVar; // To hold values popped off the stack
// Create a DynIntStack object.
DynIntStack stack;
// Push 5, 10, and 15 onto the stack.
cout << "Pushing 5\n";... | 21.885714 | 53 | 0.669713 | aceiro |
5904c04530dab8f16dff5f4a21862a1299c309ae | 4,370 | cpp | C++ | sources/RFDataImport/S500_CFMRawDataDisplay.cpp | Center-of-Diagnostics-and-Telemedicine/TwinklingDatasetDisplay | cab5acd85483fbd0508a6c042b05ff529f06b41b | [
"BSD-3-Clause"
] | null | null | null | sources/RFDataImport/S500_CFMRawDataDisplay.cpp | Center-of-Diagnostics-and-Telemedicine/TwinklingDatasetDisplay | cab5acd85483fbd0508a6c042b05ff529f06b41b | [
"BSD-3-Clause"
] | null | null | null | sources/RFDataImport/S500_CFMRawDataDisplay.cpp | Center-of-Diagnostics-and-Telemedicine/TwinklingDatasetDisplay | cab5acd85483fbd0508a6c042b05ff529f06b41b | [
"BSD-3-Clause"
] | 1 | 2021-09-23T09:41:45.000Z | 2021-09-23T09:41:45.000Z | #include "pre.h"
#include <XRADBasic/MathFunctionTypesMD.h>
#include "S500_CFMFrameSet.h"
#include "S500_CFMRawDataDisplay.h"
#include <XRADGUI/Sources/Gui/MathFunctionGUIMD.h>
#if RUN_CFM_MODES
#include <DopplerBasics/CFM/WallFilters/WallFiltersInteractive.h>
#endif
XRAD_BEGIN
void ApplyWallFilter(cfm_container_t... | 26.484848 | 132 | 0.70984 | Center-of-Diagnostics-and-Telemedicine |
590675b46c0de44689ff85b075c59018bb493bad | 2,264 | cpp | C++ | src/armnnTfLiteParser/test/OutputShapeOfSqueeze.cpp | KevinRodrigues05/armnn_caffe2_parser | c577f2c6a3b4ddb6ba87a882723c53a248afbeba | [
"MIT"
] | null | null | null | src/armnnTfLiteParser/test/OutputShapeOfSqueeze.cpp | KevinRodrigues05/armnn_caffe2_parser | c577f2c6a3b4ddb6ba87a882723c53a248afbeba | [
"MIT"
] | null | null | null | src/armnnTfLiteParser/test/OutputShapeOfSqueeze.cpp | KevinRodrigues05/armnn_caffe2_parser | c577f2c6a3b4ddb6ba87a882723c53a248afbeba | [
"MIT"
] | null | null | null | //
// Copyright © 2017 Arm Ltd. All rights reserved.
// See LICENSE file in the project root for full license information.
//
#include <boost/test/unit_test.hpp>
#include "../TfLiteParser.hpp"
#include <iostream>
#include <string>
struct TfLiteParserFixture
{
armnnTfLiteParser::TfLiteParser m_Parser;
unsigne... | 37.114754 | 117 | 0.746908 | KevinRodrigues05 |
5909bcd4eaae4063c77590fd63c6e3b15f496dcb | 4,538 | cpp | C++ | dct8x8-sycl/DCT8x8_gold.cpp | BeauJoh/HeCBench | 594b845171d686dc951971ce36ed59cf114dd2b4 | [
"BSD-3-Clause"
] | 58 | 2020-08-06T18:53:44.000Z | 2021-10-01T07:59:46.000Z | dct8x8-sycl/DCT8x8_gold.cpp | BeauJoh/HeCBench | 594b845171d686dc951971ce36ed59cf114dd2b4 | [
"BSD-3-Clause"
] | 2 | 2020-12-04T12:35:02.000Z | 2021-03-04T22:49:25.000Z | dct8x8-sycl/DCT8x8_gold.cpp | BeauJoh/HeCBench | 594b845171d686dc951971ce36ed59cf114dd2b4 | [
"BSD-3-Clause"
] | 13 | 2020-08-19T13:44:18.000Z | 2021-09-08T04:25:34.000Z | /*
* Copyright 1993-2010 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this software. Any use, reproduction, disclosure, or distribution of
* this software and related... | 46.306122 | 123 | 0.571617 | BeauJoh |
590a87f91a11c8cba145c69b9688805d585af28b | 235 | hpp | C++ | src/tests/src/BitStreamTest.hpp | rolfwr/HuffmanCompression | c8d8501b076bcb193ce1df48ec86f7dfa4fa8331 | [
"MIT"
] | null | null | null | src/tests/src/BitStreamTest.hpp | rolfwr/HuffmanCompression | c8d8501b076bcb193ce1df48ec86f7dfa4fa8331 | [
"MIT"
] | null | null | null | src/tests/src/BitStreamTest.hpp | rolfwr/HuffmanCompression | c8d8501b076bcb193ce1df48ec86f7dfa4fa8331 | [
"MIT"
] | null | null | null | #include <cppunit/TestCase.h>
#include <cppunit/TestCaller.h>
#include <cppunit/TestSuite.h>
using namespace CppUnit;
class BitStreamTest : public TestCase
{
public:
static Test* Suite();
void WriteTest();
void ReadTest();
};
| 13.055556 | 37 | 0.72766 | rolfwr |
590ca68f1208e8d4c6771c132285ecacb48f40d3 | 831 | hpp | C++ | src/Pulse.hpp | zhang-ray/audio-out-accessor | 9f025c77b5cf3bfac9f98108c805177a5557be59 | [
"MIT"
] | 15 | 2018-10-11T10:43:47.000Z | 2019-01-21T07:16:04.000Z | src/Pulse.hpp | zhang-ray/audio-out-accessor | 9f025c77b5cf3bfac9f98108c805177a5557be59 | [
"MIT"
] | 2 | 2018-09-01T13:39:35.000Z | 2018-10-16T17:23:18.000Z | src/Pulse.hpp | zhang-ray/audio-out-accessor | 9f025c77b5cf3bfac9f98108c805177a5557be59 | [
"MIT"
] | null | null | null | #pragma once
#include "aoa/AOA.hpp"
#include "aoa/Singleton.hpp"
#include "PulseImpl.hpp"
#include <memory>
class Pulse : public AOA, public Singleton<Pulse> {
public:
ReturnType init(DeviceInfo &deviceInfo) override {
if (pulseImpl_){
return "isInited";
}
pulseImpl_.reset(new... | 18.886364 | 89 | 0.610108 | zhang-ray |
590decdd405b9f8114cd1b78ec86d91dbac237f1 | 63,068 | cpp | C++ | Official Windows Driver Kit Sample/Windows Driver Kit (WDK) 8.1 Samples/[C++]-windows-driver-kit-81-cpp/WDK 8.1 C++ Samples/Device Console (DevCon) Tool/C++/cmds.cpp | zzgchina888/msdn-code-gallery-microsoft | 21cb9b6bc0da3b234c5854ecac449cb3bd261f29 | [
"MIT"
] | 3 | 2018-07-08T05:02:05.000Z | 2022-02-18T15:46:28.000Z | setup/devcon/cmds.cpp | gilson27/Windows-driver-samples | 6e1115d6af3c22b693eccc472ebb0d53a1905cd9 | [
"MS-PL"
] | 1 | 2022-03-15T04:21:41.000Z | 2022-03-15T04:21:41.000Z | setup/devcon/cmds.cpp | gilson27/Windows-driver-samples | 6e1115d6af3c22b693eccc472ebb0d53a1905cd9 | [
"MS-PL"
] | 5 | 2017-10-21T11:01:08.000Z | 2021-06-06T19:27:56.000Z | /*++
Copyright (c) Microsoft Corporation. All rights reserved.
Module Name:
devcon.cpp
Abstract:
Device Console
command-line interface for managing devices
--*/
#include "devcon.h"
struct GenericContext {
DWORD count;
DWORD control;
BOOL reboot;
LPCTSTR strSuccess;
LPCTSTR strR... | 26.180158 | 133 | 0.603856 | zzgchina888 |
590e70dc48835252d98a7430b0e795fa9aca78c2 | 855 | cpp | C++ | class 09 - totient function, combinatorics, recursion, backtracking/backtracking.cpp | pioneerAlpha/CP_Beginner_B2_Amar_iSchool | 8033e255e075f96ad13c3fd16ea0785f206b67fb | [
"Apache-2.0"
] | null | null | null | class 09 - totient function, combinatorics, recursion, backtracking/backtracking.cpp | pioneerAlpha/CP_Beginner_B2_Amar_iSchool | 8033e255e075f96ad13c3fd16ea0785f206b67fb | [
"Apache-2.0"
] | null | null | null | class 09 - totient function, combinatorics, recursion, backtracking/backtracking.cpp | pioneerAlpha/CP_Beginner_B2_Amar_iSchool | 8033e255e075f96ad13c3fd16ea0785f206b67fb | [
"Apache-2.0"
] | null | null | null | #include<bits/stdc++.h>
#define N ((int)1e5 + 5)
#define MOD ((int)1e9 + 7)
#define ll long long
#define fastio ios_base::sync_with_stdio(false),cin.tie(NULL)
#define MAXP ((int)(1e6))
#define endl "\n"
using namespace std;
vector < string > vec;
bool vis[30];
void backt(string str , int rem)
{
if(rem == 0){
... | 17.8125 | 61 | 0.48655 | pioneerAlpha |
590f143ced2f4813e7b0ac848e8af6cfcdf78374 | 3,464 | hxx | C++ | qi/type/detail/type.hxx | arntanguy/libqi | 7f3e1394cb26126b26fa7ff54d2de1371a1c9f96 | [
"BSD-3-Clause"
] | 61 | 2015-01-08T08:05:28.000Z | 2022-01-07T16:47:47.000Z | qi/type/detail/type.hxx | arntanguy/libqi | 7f3e1394cb26126b26fa7ff54d2de1371a1c9f96 | [
"BSD-3-Clause"
] | 30 | 2015-04-06T21:41:18.000Z | 2021-08-18T13:24:51.000Z | qi/type/detail/type.hxx | arntanguy/libqi | 7f3e1394cb26126b26fa7ff54d2de1371a1c9f96 | [
"BSD-3-Clause"
] | 64 | 2015-02-23T20:01:11.000Z | 2022-03-14T13:31:20.000Z | #pragma once
/*
** Copyright (C) 2013 Aldebaran Robotics
** See COPYING for the license
*/
#ifndef _QITYPE_DETAIL_TYPE_HXX_
#define _QITYPE_DETAIL_TYPE_HXX_
#include <qi/atomic.hpp>
#include <qi/types.hpp>
#include <cstring>
#include <map>
#include <vector>
#include <list>
#include <qi/type/detail/bindtype.hxx>
#in... | 24.223776 | 109 | 0.657333 | arntanguy |
5912228180691de5c5755e95088c0fbfe984ff9b | 281 | cpp | C++ | curves/src/SE3Curve.cpp | ANYbotics/curves | c3bf8e45760d4822cc3b8d8f20ea73eb47be669e | [
"BSD-3-Clause"
] | 2 | 2020-01-29T19:49:28.000Z | 2021-05-06T01:41:28.000Z | curves/src/SE3Curve.cpp | ANYbotics/curves | c3bf8e45760d4822cc3b8d8f20ea73eb47be669e | [
"BSD-3-Clause"
] | null | null | null | curves/src/SE3Curve.cpp | ANYbotics/curves | c3bf8e45760d4822cc3b8d8f20ea73eb47be669e | [
"BSD-3-Clause"
] | 4 | 2019-09-28T05:29:52.000Z | 2021-11-12T07:22:14.000Z |
/*
* SE3Curve.cpp
*
* Created on: Oct 03, 2014
* Author: Paul Furgale, Péter Fankhauser
* Institute: ETH Zurich, Autonomous Systems Lab
*/
#include <curves/SE3Curve.hpp>
namespace curves {
SE3Curve::SE3Curve() {}
SE3Curve::~SE3Curve() {}
} // namespace curves
| 14.789474 | 50 | 0.658363 | ANYbotics |
5912a774a76ec2c0a22f00f4dc5250ed15cfb4f2 | 1,403 | hpp | C++ | ccurl.hpp | hstejas/ccurl | 66c383e5f848c0f2670482d58fbe353fcee1af0a | [
"MIT"
] | null | null | null | ccurl.hpp | hstejas/ccurl | 66c383e5f848c0f2670482d58fbe353fcee1af0a | [
"MIT"
] | null | null | null | ccurl.hpp | hstejas/ccurl | 66c383e5f848c0f2670482d58fbe353fcee1af0a | [
"MIT"
] | null | null | null | #ifndef CCURL_CURL_HPP
#define CCURL_CURL_HPP
#include <iostream>
#include <string>
#include <vector>
#include <curl/curl.h>
#define CERROR(x) do{std::cerr << "[ERROR] " << x << std::endl;}while(0);
#define CWARN(x) do{std::cout << "[WARN] " << x << std::endl;}while(0)
#define CINFO(x) do{std::cout << "[INFO] " << x... | 28.632653 | 137 | 0.680684 | hstejas |
59135cf01dc37e2924929a2459fdabc63322b2c7 | 228 | cpp | C++ | src/main.cpp | LuckyCode7/bowling | 9d00f5b2509a975143b73ef9460cd047f0bd3136 | [
"MIT"
] | null | null | null | src/main.cpp | LuckyCode7/bowling | 9d00f5b2509a975143b73ef9460cd047f0bd3136 | [
"MIT"
] | 33 | 2018-08-27T20:12:23.000Z | 2018-09-17T09:12:26.000Z | src/main.cpp | LuckyCode7/bowling | 9d00f5b2509a975143b73ef9460cd047f0bd3136 | [
"MIT"
] | 2 | 2018-08-28T12:05:55.000Z | 2018-08-30T14:45:14.000Z | #include <../inc/BowlingManagmentSystem.hpp>
#include <fstream>
#include <iostream>
int main(int argc, char* argv[])
{
try
{
BowlingManagmentSystem::run(argc, argv);
}
catch(...)
{
}
return 0;
}
| 14.25 | 44 | 0.587719 | LuckyCode7 |
5915bad2296c1a6803ce7692a45aa6be8bff45c4 | 1,306 | hpp | C++ | include/oglplus/images/brushed_metal.hpp | Extrunder/oglplus | c7c8266a1571d0b4c8b02d9c8ca6a7b6a6f51791 | [
"BSL-1.0"
] | 459 | 2016-03-16T04:11:37.000Z | 2022-03-31T08:05:21.000Z | include/oglplus/images/brushed_metal.hpp | Extrunder/oglplus | c7c8266a1571d0b4c8b02d9c8ca6a7b6a6f51791 | [
"BSL-1.0"
] | 2 | 2016-08-08T18:26:27.000Z | 2017-05-08T23:42:22.000Z | include/oglplus/images/brushed_metal.hpp | Extrunder/oglplus | c7c8266a1571d0b4c8b02d9c8ca6a7b6a6f51791 | [
"BSL-1.0"
] | 47 | 2016-05-31T15:55:52.000Z | 2022-03-28T14:49:40.000Z | /**
* @file oglplus/images/brushed_metal.hpp
* @brief Brushed metal texture generator
*
* @author Matus Chochlik
*
* Copyright 2010-2015 Matus Chochlik. 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)
*... | 18.394366 | 82 | 0.723583 | Extrunder |
5918d14c0e25325728c7e5496bb33d46dd1c826f | 644 | hpp | C++ | sycl/include/CL/sycl/ONEAPI/group_algorithm.hpp | kathywar/llvm | 5589fdd236b26340d86b3558480296b90bbf744a | [
"Apache-2.0"
] | 61 | 2019-04-12T18:49:57.000Z | 2022-03-19T22:23:16.000Z | sycl/include/CL/sycl/ONEAPI/group_algorithm.hpp | kathywar/llvm | 5589fdd236b26340d86b3558480296b90bbf744a | [
"Apache-2.0"
] | 127 | 2019-04-09T00:55:50.000Z | 2022-03-21T15:35:41.000Z | sycl/include/CL/sycl/ONEAPI/group_algorithm.hpp | kathywar/llvm | 5589fdd236b26340d86b3558480296b90bbf744a | [
"Apache-2.0"
] | 10 | 2019-04-02T18:25:40.000Z | 2022-02-15T07:11:37.000Z | //==----------- group_algorithm.hpp --- SYCL group algorithm----------------==//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 35.777778 | 80 | 0.596273 | kathywar |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.