hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
56b2bc669d91a122c84bea08820dd50197ea6bf0 | 921 | cpp | C++ | PAT/PAT-B/CPP/1018.锤子剪刀布.cpp | hao14293/2021-Postgraduate-408 | 70e1c40e6bcf0c5afe4a4638a7c168069d9c8319 | [
"MIT"
] | 950 | 2020-02-21T02:39:18.000Z | 2022-03-31T07:27:36.000Z | PAT/PAT-B/CPP/1018.锤子剪刀布.cpp | RestmeF/2021-Postgraduate-408 | 70e1c40e6bcf0c5afe4a4638a7c168069d9c8319 | [
"MIT"
] | 6 | 2020-04-03T13:08:47.000Z | 2022-03-07T08:54:56.000Z | PAT/PAT-B/CPP/1018.锤子剪刀布.cpp | RestmeF/2021-Postgraduate-408 | 70e1c40e6bcf0c5afe4a4638a7c168069d9c8319 | [
"MIT"
] | 131 | 2020-02-22T15:35:59.000Z | 2022-03-21T04:23:57.000Z | #include <iostream>
using namespace std;
int main(){
int n;
cin >> n;
int jiawin = 0, yiwin = 0;
int jia[3] = {0}, yi[3] = {0};
for(int i = 0; i < n; i++ ){
char s, t;
cin >> s >> t;
if(s == 'B' && t == 'C'){
jiawin++;
jia[0]++;
}else if(s == 'B' && t == 'J'){
yiwin++;
yi[2]++;
}else if(s == ... | 23.025 | 131 | 0.41911 | hao14293 |
56b4562ba33037a991b47c5762bdae6abfc75b3c | 3,988 | cpp | C++ | src/libraries/dynamicMesh/dynamicMesh/fvMeshAdder/fvMeshAdder.cpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | src/libraries/dynamicMesh/dynamicMesh/fvMeshAdder/fvMeshAdder.cpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | src/libraries/dynamicMesh/dynamicMesh/fvMeshAdder/fvMeshAdder.cpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | /*---------------------------------------------------------------------------*\
Copyright (C) 2011-2016 OpenFOAM Foundation
-------------------------------------------------------------------------------
License
This file is part of CAELUS.
CAELUS is free software: you can redistribute it and/or modify it
... | 31.650794 | 79 | 0.601053 | MrAwesomeRocks |
56b62e1763a4f5e43ae82a84346cf85b52005e93 | 6,284 | cpp | C++ | Acorn/src/Acorn/gui/ImGuiLayer.cpp | IcyTv/Acorn | 3068d9fd54401b310d42ef81277aab3d0ade0a0a | [
"Apache-2.0"
] | null | null | null | Acorn/src/Acorn/gui/ImGuiLayer.cpp | IcyTv/Acorn | 3068d9fd54401b310d42ef81277aab3d0ade0a0a | [
"Apache-2.0"
] | null | null | null | Acorn/src/Acorn/gui/ImGuiLayer.cpp | IcyTv/Acorn | 3068d9fd54401b310d42ef81277aab3d0ade0a0a | [
"Apache-2.0"
] | null | null | null | #include "gui/ImGuiLayer.h"
#include "acpch.h"
#include "core/Application.h"
#include "input/KeyCodes.h"
#include "imgui.h"
#include "imgui_impl_glfw.h"
#include "imgui_impl_opengl3.h"
#include "Acorn/utils/FileUtils.h"
#include "renderer/RenderCommand.h"
#include "utils/fonts/IconsFontAwesome4.h"
#include <ImGuizm... | 26.854701 | 133 | 0.70958 | IcyTv |
56b72c30a89a25778718b0884eb43aa18dcb125f | 1,939 | cpp | C++ | fastjoin/FastJoinCmd.cpp | TsinghuaDatabaseGroup/Similarity-Search-and-Join | 0fba32f030ca9e466d1aed9d3c7dcf59ea3e88dc | [
"BSD-2-Clause"
] | 14 | 2018-01-29T06:54:06.000Z | 2021-07-09T18:18:51.000Z | fastjoin/FastJoinCmd.cpp | TsinghuaDatabaseGroup/similarity | 0fba32f030ca9e466d1aed9d3c7dcf59ea3e88dc | [
"BSD-2-Clause"
] | null | null | null | fastjoin/FastJoinCmd.cpp | TsinghuaDatabaseGroup/similarity | 0fba32f030ca9e466d1aed9d3c7dcf59ea3e88dc | [
"BSD-2-Clause"
] | 11 | 2018-04-11T04:56:40.000Z | 2021-12-17T04:00:22.000Z | #include "FastJoin.h"
#include "TokenSigScheme/TokenSigSchemeFactory.h"
#include "TokenSigScheme/TokenSigScheme.h"
#include "TokenSetSigScheme/JaccardTokenSetSigScheme.h"
#include "TokenSetSigScheme/DiceTokenSetSigScheme.h"
#include "TokenSetSigScheme/CosinTokenSetSigScheme.h"
#include "Tokenizer/StandardTokenizer.h"
#... | 31.786885 | 103 | 0.726663 | TsinghuaDatabaseGroup |
56b952fa74e4edebe7258994257dcacf14ab957d | 8,494 | cc | C++ | RecoTracker/DeDx/plugins/HLTDeDxFilter.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 3 | 2018-08-24T19:10:26.000Z | 2019-02-19T11:45:32.000Z | RecoTracker/DeDx/plugins/HLTDeDxFilter.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 3 | 2018-08-23T13:40:24.000Z | 2019-12-05T21:16:03.000Z | RecoTracker/DeDx/plugins/HLTDeDxFilter.cc | nistefan/cmssw | ea13af97f7f2117a4f590a5e654e06ecd9825a5b | [
"Apache-2.0"
] | 5 | 2018-08-21T16:37:52.000Z | 2020-01-09T13:33:17.000Z | /** \class HLTDeDxFilter
*
*
* \author Claude Nuttens
*
*/
#include "RecoTracker/DeDx/plugins/HLTDeDxFilter.h"
#include "DataFormats/Common/interface/Handle.h"
#include "DataFormats/HLTReco/interface/TriggerFilterObjectWithRefs.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
//#include "DataFormats/J... | 43.116751 | 162 | 0.707911 | nistefan |
56bccc252675fd7781e195c0e5ae15833837e4f8 | 189 | hpp | C++ | lib/src/backend/cuda/deviceHostBuffer.hpp | tlalexander/stitchEm | cdff821ad2c500703e6cb237ec61139fce7bf11c | [
"MIT"
] | 182 | 2019-04-19T12:38:30.000Z | 2022-03-20T16:48:20.000Z | lib/src/backend/cuda/deviceHostBuffer.hpp | tlalexander/stitchEm | cdff821ad2c500703e6cb237ec61139fce7bf11c | [
"MIT"
] | 107 | 2019-04-23T10:49:35.000Z | 2022-03-02T18:12:28.000Z | lib/src/backend/cuda/deviceHostBuffer.hpp | tlalexander/stitchEm | cdff821ad2c500703e6cb237ec61139fce7bf11c | [
"MIT"
] | 59 | 2019-06-04T11:27:25.000Z | 2022-03-17T23:49:49.000Z | // Copyright (c) 2012-2017 VideoStitch SAS
// Copyright (c) 2018 stitchEm
#pragma once
#include "gpu/hostBuffer.hpp"
namespace VideoStitch {
namespace GPU {}
} // namespace VideoStitch
| 17.181818 | 42 | 0.73545 | tlalexander |
56c1b0a833b492e6f545340d6fab31648eb920b3 | 1,649 | cpp | C++ | cpp/segment_trees_2017/segtree.cpp | petuhovskiy/Templates-CP | 7419d5b5c6a92a98ba4d93525f6db22b7c3afa9e | [
"MIT"
] | 8 | 2016-06-05T19:19:27.000Z | 2019-05-14T10:33:37.000Z | cpp/segment_trees_2017/segtree.cpp | petuhovskiy/Templates-CP | 7419d5b5c6a92a98ba4d93525f6db22b7c3afa9e | [
"MIT"
] | 2 | 2017-02-21T12:38:27.000Z | 2018-01-28T20:05:00.000Z | cpp/segment_trees_2017/segtree.cpp | petuhovskiy/Templates-CP | 7419d5b5c6a92a98ba4d93525f6db22b7c3afa9e | [
"MIT"
] | 6 | 2015-12-26T21:12:17.000Z | 2022-03-26T21:40:17.000Z | template<typename T, typename U>
struct segtree {
int n;
int h;
std::vector<T> t;
std::vector<U> u;
template<typename U2>
void apply(int x, U2 upd) {
t[x].apply(upd);
if (x < n) u[x].apply(upd);
}
void push(int x) {
for (int i = h; i > 0; i--) {
in... | 23.557143 | 71 | 0.363857 | petuhovskiy |
56c7bc9c5e57bde17ed2ebe4aee5336406aa3e5c | 142 | cpp | C++ | contest/yukicoder/159.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 7 | 2018-04-14T14:55:51.000Z | 2022-01-31T10:49:49.000Z | contest/yukicoder/159.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 5 | 2018-04-14T14:28:49.000Z | 2019-05-11T02:22:10.000Z | contest/yukicoder/159.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | null | null | null | #include "template.hpp"
int main() {
setBoolName("YES", "NO");
double p(in), q(in);
cout << ((1 - p) * q < p * (1 - q) * q) << endl;
}
| 17.75 | 50 | 0.478873 | not522 |
56cabcde658758a8006e3c4a5288675ffed5efc0 | 2,060 | cpp | C++ | tests/3rdparty/testngpp/tests/3rdparty/mockcpp/src/DecoratedConstraint.cpp | chencang1980/mockcpp | 45660e7bcf0a6cf8edce3c6a736e4b168acc016e | [
"Apache-2.0"
] | 30 | 2015-04-16T02:42:36.000Z | 2022-03-19T02:53:43.000Z | tests/3rdparty/testngpp/tests/3rdparty/mockcpp/src/DecoratedConstraint.cpp | chencang1980/mockcpp | 45660e7bcf0a6cf8edce3c6a736e4b168acc016e | [
"Apache-2.0"
] | 21 | 2021-03-17T06:41:56.000Z | 2022-02-01T12:27:28.000Z | tests/3rdparty/testngpp/tests/3rdparty/mockcpp/src/DecoratedConstraint.cpp | chencang1980/mockcpp | 45660e7bcf0a6cf8edce3c6a736e4b168acc016e | [
"Apache-2.0"
] | 23 | 2015-04-16T02:44:30.000Z | 2021-12-21T09:50:24.000Z | /***
mockcpp is a C/C++ mock framework.
Copyright [2008] [Darwin Yuan <darwin.yuan@gmail.com>]
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/LI... | 28.219178 | 75 | 0.569903 | chencang1980 |
08cadafc7c226980ddb194838ebce4d1b761edbc | 39,388 | cpp | C++ | blast/src/objmgr/seq_loc_mapper.cpp | mycolab/ncbi-blast | e59746cec78044d2bf6d65de644717c42f80b098 | [
"Apache-2.0"
] | null | null | null | blast/src/objmgr/seq_loc_mapper.cpp | mycolab/ncbi-blast | e59746cec78044d2bf6d65de644717c42f80b098 | [
"Apache-2.0"
] | null | null | null | blast/src/objmgr/seq_loc_mapper.cpp | mycolab/ncbi-blast | e59746cec78044d2bf6d65de644717c42f80b098 | [
"Apache-2.0"
] | null | null | null | /* $Id: seq_loc_mapper.cpp 591839 2019-08-21 15:03:00Z grichenk $
* ===========================================================================
*
* PUBLIC DOMAIN NOTICE
* National Center for Biotechnology Information
*
* This software/database is a "United States Government Wo... | 37.405508 | 101 | 0.540901 | mycolab |
08cbc5884ae6e5a991bbf315d056721f69138e0d | 1,507 | cpp | C++ | breeze/text/test/string_builder_test.cpp | gennaroprota/breeze | f1dfd7154222ae358f5ece936c2897a3ae110003 | [
"BSD-3-Clause"
] | 1 | 2021-04-03T22:35:52.000Z | 2021-04-03T22:35:52.000Z | breeze/text/test/string_builder_test.cpp | gennaroprota/breeze | f1dfd7154222ae358f5ece936c2897a3ae110003 | [
"BSD-3-Clause"
] | null | null | null | breeze/text/test/string_builder_test.cpp | gennaroprota/breeze | f1dfd7154222ae358f5ece936c2897a3ae110003 | [
"BSD-3-Clause"
] | 1 | 2021-10-01T04:26:48.000Z | 2021-10-01T04:26:48.000Z | // ===========================================================================
// Copyright 2021 Gennaro Prota
//
// Licensed under the 3-Clause BSD License.
// (See accompanying file 3_CLAUSE_BSD_LICENSE.txt or
// <https://opensource.org/licenses/BSD-3-C... | 25.542373 | 78 | 0.512276 | gennaroprota |
08e150cb96743d39c259b66326e3235961fdfd70 | 8,644 | cc | C++ | tests/ut/cpp/serving/acl_session_test_two_input_output.cc | dongkcs/mindspore | cd7df6dbf463ff3128e9181e9d0c779cecb81320 | [
"Apache-2.0"
] | 2 | 2020-11-23T13:46:37.000Z | 2020-12-20T02:02:38.000Z | tests/ut/cpp/serving/acl_session_test_two_input_output.cc | dilingsong/mindspore | 4276050f2494cfbf8682560a1647576f859991e8 | [
"Apache-2.0"
] | 1 | 2020-12-29T06:46:38.000Z | 2020-12-29T06:46:38.000Z | tests/ut/cpp/serving/acl_session_test_two_input_output.cc | dilingsong/mindspore | 4276050f2494cfbf8682560a1647576f859991e8 | [
"Apache-2.0"
] | 1 | 2021-01-01T08:35:01.000Z | 2021-01-01T08:35:01.000Z | /**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 38.247788 | 110 | 0.748033 | dongkcs |
08e4befafcd01ec4d1f9b8754ad89c8c78b6f882 | 4,740 | cpp | C++ | grasp_generation/graspitmodified_lm/Coin-3.1.3/src/vrml97/NormalInterpolator.cpp | KraftOreo/EBM_Hand | 9ab1722c196b7eb99b4c3ecc85cef6e8b1887053 | [
"MIT"
] | null | null | null | grasp_generation/graspitmodified_lm/Coin-3.1.3/src/vrml97/NormalInterpolator.cpp | KraftOreo/EBM_Hand | 9ab1722c196b7eb99b4c3ecc85cef6e8b1887053 | [
"MIT"
] | null | null | null | grasp_generation/graspitmodified_lm/Coin-3.1.3/src/vrml97/NormalInterpolator.cpp | KraftOreo/EBM_Hand | 9ab1722c196b7eb99b4c3ecc85cef6e8b1887053 | [
"MIT"
] | null | null | null | /**************************************************************************\
*
* This file is part of the Coin 3D visualization library.
* Copyright (C) by Kongsberg Oil & Gas Technologies.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public ... | 30.980392 | 106 | 0.722152 | KraftOreo |
08e53a94f9e8106f79cd21ed214e95e628393d72 | 122 | hpp | C++ | source/code/utilities/graphics/x11/xdo/lib.hpp | luxe/CodeLang-compiler | 78837d90bdd09c4b5aabbf0586a5d8f8f0c1e76a | [
"MIT"
] | 33 | 2019-05-30T07:43:32.000Z | 2021-12-30T13:12:32.000Z | source/code/utilities/graphics/x11/xdo/lib.hpp | luxe/CodeLang-compiler | 78837d90bdd09c4b5aabbf0586a5d8f8f0c1e76a | [
"MIT"
] | 371 | 2019-05-16T15:23:50.000Z | 2021-09-04T15:45:27.000Z | source/code/utilities/graphics/x11/xdo/lib.hpp | UniLang/compiler | c338ee92994600af801033a37dfb2f1a0c9ca897 | [
"MIT"
] | 6 | 2019-08-22T17:37:36.000Z | 2020-11-07T07:15:32.000Z | #pragma once
#ifdef __cplusplus
extern "C"
{
#endif
#include "xdo.h"
#ifdef __cplusplus
} // extern "C"
#endif
| 9.384615 | 18 | 0.631148 | luxe |
08eccc436ec610da1ebbe503ed6e5fcd5fb7399d | 434 | cpp | C++ | src/commands/ServerDeviceListCommand.cpp | jalowiczor/beeon-gateway-with-nemea-sources | 195d8209302a42e03bafe33811236d7aeedb188d | [
"BSD-3-Clause"
] | 7 | 2018-06-09T05:55:59.000Z | 2021-01-05T05:19:02.000Z | src/commands/ServerDeviceListCommand.cpp | jalowiczor/beeon-gateway-with-nemea-sources | 195d8209302a42e03bafe33811236d7aeedb188d | [
"BSD-3-Clause"
] | 1 | 2019-12-25T10:39:06.000Z | 2020-01-03T08:35:29.000Z | src/commands/ServerDeviceListCommand.cpp | jalowiczor/beeon-gateway-with-nemea-sources | 195d8209302a42e03bafe33811236d7aeedb188d | [
"BSD-3-Clause"
] | 11 | 2018-05-10T08:29:05.000Z | 2020-01-22T20:49:32.000Z | #include "commands/ServerDeviceListCommand.h"
using namespace BeeeOn;
using namespace std;
ServerDeviceListCommand::ServerDeviceListCommand(
const DevicePrefix &prefix):
m_prefix(prefix)
{
}
ServerDeviceListCommand::~ServerDeviceListCommand()
{
}
DevicePrefix ServerDeviceListCommand::devicePrefix() const
{
retu... | 17.36 | 58 | 0.781106 | jalowiczor |
08f1142801945f003535a870a05b21a6a8b3fe44 | 2,089 | cpp | C++ | src/zwave/ZWaveDriverEvent.cpp | jalowiczor/beeon-gateway-with-nemea-sources | 195d8209302a42e03bafe33811236d7aeedb188d | [
"BSD-3-Clause"
] | 7 | 2018-06-09T05:55:59.000Z | 2021-01-05T05:19:02.000Z | src/zwave/ZWaveDriverEvent.cpp | jalowiczor/beeon-gateway-with-nemea-sources | 195d8209302a42e03bafe33811236d7aeedb188d | [
"BSD-3-Clause"
] | 1 | 2019-12-25T10:39:06.000Z | 2020-01-03T08:35:29.000Z | src/zwave/ZWaveDriverEvent.cpp | jalowiczor/beeon-gateway-with-nemea-sources | 195d8209302a42e03bafe33811236d7aeedb188d | [
"BSD-3-Clause"
] | 11 | 2018-05-10T08:29:05.000Z | 2020-01-22T20:49:32.000Z | #include <Poco/Exception.h>
#include "zwave/ZWaveDriverEvent.h"
using namespace std;
using namespace Poco;
using namespace BeeeOn;
ZWaveDriverEvent::ZWaveDriverEvent(const map<string, uint32_t> &stats):
m_stats(stats)
{
}
uint32_t ZWaveDriverEvent::lookup(const string &key) const
{
auto it = m_stats.find(key);
if... | 16.579365 | 71 | 0.746769 | jalowiczor |
08f27218e1d7766b91876bd6e2836fd0aec7beb2 | 1,428 | cpp | C++ | Practice/2018/2018.8.15/HDU5608.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | 4 | 2017-10-31T14:25:18.000Z | 2018-06-10T16:10:17.000Z | Practice/2018/2018.8.15/HDU5608.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | Practice/2018/2018.8.15/HDU5608.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<algorithm>
#include<map>
using namespace std;
#define ll long long
#define mem(Arr,x) memset(Arr,x,sizeof(Arr))
const int maxN=1000000;
const int Mod=1e9+7;
const int inf=2147483647;
bool notprime[maxN];
int pcnt,Prime[maxN],Mu[maxN];
i... | 18.075949 | 63 | 0.584734 | SYCstudio |
08f41bb96ec1e898fbcac9a8e314b2486240411c | 335 | hpp | C++ | external/boost/logging/boost/logging/detail/raw_doc/customize_manipulator.hpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | 5 | 2015-09-15T16:24:14.000Z | 2021-08-12T11:05:55.000Z | external/boost/logging/boost/logging/detail/raw_doc/customize_manipulator.hpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | null | null | null | external/boost/logging/boost/logging/detail/raw_doc/customize_manipulator.hpp | saga-project/saga-cpp | 7376c0de0529e7d7b80cf08b94ec484c2e56d38e | [
"BSL-1.0"
] | 3 | 2016-11-17T04:38:38.000Z | 2021-04-10T17:23:52.000Z | namespace boost { namespace logging {
/**
@page customize_manipulator Customizing manipulator arguments (Advanced)
FIXME
optimize::cache_string_on_str
optimize::cache_string_several_str
@section customize_optimize Optimizing manipulator arguments
optimize::cache_string_on_str
optimize::cache_string_several_str
... | 14.565217 | 72 | 0.826866 | saga-project |
08fbf28b60491927237ba1a957ca35654ce85c51 | 1,481 | hpp | C++ | app_config.hpp | rockonedege/ADS | 655684d98013056b07f17c846656823625824ab4 | [
"MIT"
] | null | null | null | app_config.hpp | rockonedege/ADS | 655684d98013056b07f17c846656823625824ab4 | [
"MIT"
] | null | null | null | app_config.hpp | rockonedege/ADS | 655684d98013056b07f17c846656823625824ab4 | [
"MIT"
] | null | null | null | #pragma once
#if !defined(__ADSDEF_H__)
#pragma message("must #include <AdsLib.h> before this file if using AdsLib or TcAdsDef.h if TWinCAT ADS-DLL")
#endif
namespace appinfo
{
struct {
const int major = 0;
const int minor = 0;
const int patch = 0;
const int build = 1;
cons... | 26.446429 | 109 | 0.46185 | rockonedege |
08fcbb24991ab9a054938e8cfde53ec259afe217 | 942 | cpp | C++ | metagen/meta_gincugconfiginfo.cpp | wqking/gincu | dd9d83cc75561d873fc396d009436ba07219ff4d | [
"Apache-2.0"
] | 51 | 2017-02-01T14:50:03.000Z | 2022-01-14T11:19:51.000Z | metagen/meta_gincugconfiginfo.cpp | wqking/gincu | dd9d83cc75561d873fc396d009436ba07219ff4d | [
"Apache-2.0"
] | null | null | null | metagen/meta_gincugconfiginfo.cpp | wqking/gincu | dd9d83cc75561d873fc396d009436ba07219ff4d | [
"Apache-2.0"
] | 9 | 2018-07-20T07:47:39.000Z | 2020-10-31T16:26:08.000Z | // Auto generated file, don't modify.
#include "gincu/gincuall.h"
#include "cpgf/metatraits/gmetasharedptrtraits_cpp11_shared_ptr.h"
#include "gincu/gconfiginfo.h"
#include "meta_gincugconfiginfo.h"
using namespace cpgf;
namespace meta_gincu {
#ifdef CPGF_METAGEN_LINKAGE_SPEC
CPGF_METAGEN_LINKAGE_SPEC
#endif
GD... | 21.906977 | 145 | 0.779193 | wqking |
08ffd660c5269eee13ef98ace59083cf438ac180 | 6,995 | cpp | C++ | Wml/Source/Graphics/WmlSpotLight.cpp | 1iyiwei/deform2d | 1a350dd20f153e72de1ea9cffb873eb67bf3d668 | [
"MIT"
] | 26 | 2018-07-04T15:31:11.000Z | 2021-09-23T02:43:46.000Z | Wml/Source/Graphics/WmlSpotLight.cpp | 1iyiwei/deform2d | 1a350dd20f153e72de1ea9cffb873eb67bf3d668 | [
"MIT"
] | null | null | null | Wml/Source/Graphics/WmlSpotLight.cpp | 1iyiwei/deform2d | 1a350dd20f153e72de1ea9cffb873eb67bf3d668 | [
"MIT"
] | 1 | 2019-06-11T03:20:28.000Z | 2019-06-11T03:20:28.000Z | // Magic Software, Inc.
// http://www.magic-software.com
// http://www.wild-magic.com
// Copyright (c) 2004. All Rights Reserved
//
// The Wild Magic Library (WML) source code is supplied under the terms of
// the license agreement http://www.magic-software.com/License/WildMagic.pdf
// and may not be copied or ... | 36.056701 | 79 | 0.521658 | 1iyiwei |
1c0bc29f6f372f1a32d6571391dd1bcac5fb73da | 1,633 | hpp | C++ | Node/Software/ShellMMap.hpp | UofT-HPRC/FFIVE | 4bb17f9669b0c731fe23ea06de26a8921c708ab5 | [
"BSD-Source-Code"
] | 3 | 2021-08-17T11:07:32.000Z | 2022-01-14T15:52:23.000Z | Node/Software/ShellMMap.hpp | UofT-HPRC/FFIVE | 4bb17f9669b0c731fe23ea06de26a8921c708ab5 | [
"BSD-Source-Code"
] | null | null | null | Node/Software/ShellMMap.hpp | UofT-HPRC/FFIVE | 4bb17f9669b0c731fe23ea06de26a8921c708ab5 | [
"BSD-Source-Code"
] | null | null | null | #ifndef SHELL_MMAP_HPP
#define SHELL_MMAP_HPP
#include <iostream>
#include <cstdint>
#include <fcntl.h>
#include <sys/mman.h>
#include <unistd.h>
#include "ShellUtils.hpp"
namespace FPGA_SHELL
{
// Open /dev/mem, if not already done, to give access to physical addresses
int32_t OpenPhysical(int32_t fd)
{... | 25.515625 | 91 | 0.568279 | UofT-HPRC |
1c136acbf99428c3715e72a45f52aa31e837c7b2 | 3,461 | cpp | C++ | src/core/util/DenseFlagArray.cpp | Kelan0/WorldEngine | e76e7ff47278e837f4d1b9216773dd79eeee1b52 | [
"MIT"
] | null | null | null | src/core/util/DenseFlagArray.cpp | Kelan0/WorldEngine | e76e7ff47278e837f4d1b9216773dd79eeee1b52 | [
"MIT"
] | null | null | null | src/core/util/DenseFlagArray.cpp | Kelan0/WorldEngine | e76e7ff47278e837f4d1b9216773dd79eeee1b52 | [
"MIT"
] | null | null | null |
#include "DenseFlagArray.h"
#define BIT(bitIndex) (1 << (bitIndex))
#define SET_BIT(val, bitIndex, isSet) if (isSet) val |= BIT(bitIndex); else val &= ~BIT(bitIndex);
#define GET_BIT(val, bitIndex) (((val) >> (bitIndex)) & 1)
DenseFlagArray::DenseFlagArray():
m_size(0) {
}
DenseFlagArray::~DenseFlagArray() {
}... | 26.419847 | 122 | 0.625253 | Kelan0 |
1c1374a5937184a0749c23e341dea52f0f75a73a | 8,431 | cpp | C++ | src/ObjectPool.cpp | 9chu/Moe.Core | 24fc7701fe8f4b70911fac18438b8f7557aa1773 | [
"MIT"
] | 29 | 2018-09-05T09:50:32.000Z | 2021-04-19T15:39:38.000Z | src/ObjectPool.cpp | 9chu/Moe.Core | 24fc7701fe8f4b70911fac18438b8f7557aa1773 | [
"MIT"
] | 1 | 2017-09-12T09:07:51.000Z | 2017-12-08T15:49:24.000Z | src/ObjectPool.cpp | 9chu/MOE.Core | 24fc7701fe8f4b70911fac18438b8f7557aa1773 | [
"MIT"
] | 2 | 2018-09-19T13:49:23.000Z | 2021-01-13T08:52:35.000Z | /**
* @file
* @author chu
* @date 2018/8/2
*/
#include <Moe.Core/ObjectPool.hpp>
using namespace std;
using namespace moe;
//////////////////////////////////////////////////////////////////////////////// Node
#ifndef NDEBUG
void ObjectPool::Node::Attach(Node* node)noexcept
{
assert(node);
... | 25.394578 | 102 | 0.56316 | 9chu |
1c140d3dbcbc615613735a575bfeef40d18ce949 | 2,535 | cpp | C++ | Seagull-Core/src/Platform/DirectX/DirectX12CommandList.cpp | ILLmew/Seagull-Engine | fb51b66812eca6b70ed0e35ecba091e9874b5bea | [
"MIT"
] | null | null | null | Seagull-Core/src/Platform/DirectX/DirectX12CommandList.cpp | ILLmew/Seagull-Engine | fb51b66812eca6b70ed0e35ecba091e9874b5bea | [
"MIT"
] | null | null | null | Seagull-Core/src/Platform/DirectX/DirectX12CommandList.cpp | ILLmew/Seagull-Engine | fb51b66812eca6b70ed0e35ecba091e9874b5bea | [
"MIT"
] | null | null | null | #include "sgpch.h"
#include "DirectX12CommandList.h"
#include "DirectX12RenderQueue.h"
#include "DirectXHelper.h"
#include "d3dx12.h"
namespace SG
{
DirectX12CommandList::DirectX12CommandList(ID3D12Device1* device, const Ref<DirectX12RenderQueue>& renderQueue)
{
ThrowIfFailed(device->CreateCommandList(0, D3D12_CO... | 35.704225 | 118 | 0.810651 | ILLmew |
1c149f33f40239012576dde0f10ec4b3223387f2 | 35,500 | cc | C++ | src/tag.cc | mavit/loudgain | 0ff67eec6cc2d37df1cd9d0bd95c5076604a23bc | [
"BSD-2-Clause"
] | 125 | 2019-07-09T18:28:32.000Z | 2022-03-21T03:35:09.000Z | src/tag.cc | mavit/loudgain | 0ff67eec6cc2d37df1cd9d0bd95c5076604a23bc | [
"BSD-2-Clause"
] | 40 | 2019-07-31T15:34:32.000Z | 2022-02-28T21:39:05.000Z | src/tag.cc | mavit/loudgain | 0ff67eec6cc2d37df1cd9d0bd95c5076604a23bc | [
"BSD-2-Clause"
] | 33 | 2019-08-04T18:35:54.000Z | 2022-03-21T03:49:50.000Z | /*
* Loudness normalizer based on the EBU R128 standard
*
* Copyright (c) 2014, Alessandro Ghedini
* All rights reserved.
* 2019-06-30 - Matthias C. Hormann
* - Tag format in accordance with ReplayGain 2.0 spec
* https://wiki.hydrogenaud.io/index.php?title=ReplayGain_2.0_specification
* - Add Ogg Vorbis... | 34.466019 | 89 | 0.68107 | mavit |
1c15e45d2310aaee410919816d445b997d345c38 | 990 | cpp | C++ | design_pattern/2_Structural_Patterns/2.3_CompositePattern/main.cpp | guangjung/linux_cplusplus | 3000303c6680db17715c4802fd05c84a4ce84c1e | [
"MIT"
] | null | null | null | design_pattern/2_Structural_Patterns/2.3_CompositePattern/main.cpp | guangjung/linux_cplusplus | 3000303c6680db17715c4802fd05c84a4ce84c1e | [
"MIT"
] | null | null | null | design_pattern/2_Structural_Patterns/2.3_CompositePattern/main.cpp | guangjung/linux_cplusplus | 3000303c6680db17715c4802fd05c84a4ce84c1e | [
"MIT"
] | null | null | null |
//https://blog.csdn.net/liang19890820/article/details/71240662
//main.cpp
#include "composite.h"
#include "leaf.h"
int main()
{
// 创建一个树形结构
// 创建根节点
Composite *pRoot = new Composite("江湖公司(任我行)");
// 创建分支
Composite *pDepart1 = new Composite("日月神教(东方不败)");
pDepart1->Add(new Leaf("光明左使(向问天)"))... | 21.521739 | 63 | 0.590909 | guangjung |
1c1dbe3a713c269519a286b0765fcf6c0b2034bc | 329 | cpp | C++ | test/Test.cpp | mzh19940817/MyAllocator | 5ff72b13775caf76cd30cc232dcd9542427f4ea3 | [
"MIT"
] | null | null | null | test/Test.cpp | mzh19940817/MyAllocator | 5ff72b13775caf76cd30cc232dcd9542427f4ea3 | [
"MIT"
] | null | null | null | test/Test.cpp | mzh19940817/MyAllocator | 5ff72b13775caf76cd30cc232dcd9542427f4ea3 | [
"MIT"
] | null | null | null | #include "MyAllocator.h"
#include <vector>
#include "gtest/gtest.h"
struct MyAllocatorTest : testing::Test
{
};
TEST_F(MyAllocatorTest, test_for_my_allocator)
{
int arr[3] {1, 2, 3};
std::vector<int, MA::allocator<int>> vec{arr, arr + 3};
ASSERT_EQ(1, vec[0]);
ASSERT_EQ(2, vec[1]);
ASSERT_EQ(3, ve... | 19.352941 | 59 | 0.644377 | mzh19940817 |
1c1edeb88af89469bc4a2daa83fc3fd7e244ed21 | 483 | cpp | C++ | Activities With Pointers/4.cpp | SauloCav/C-and-Cpp-Experiments | c71d9a4ace958eb1248ddd9daf288b5b8fb12d6d | [
"MIT"
] | null | null | null | Activities With Pointers/4.cpp | SauloCav/C-and-Cpp-Experiments | c71d9a4ace958eb1248ddd9daf288b5b8fb12d6d | [
"MIT"
] | null | null | null | Activities With Pointers/4.cpp | SauloCav/C-and-Cpp-Experiments | c71d9a4ace958eb1248ddd9daf288b5b8fb12d6d | [
"MIT"
] | null | null | null | #include<stdio.h>
#include<stdlib.h>
#include<math.h>
#include<iostream>
int main(){
int *a, *b, *c, d=12, e=4, f=0;
a=&d;
b=&e;
c=&f;
*a=5;
*c=1;
++*c;
(*a)+=10;
*b=*a;
c=b;
*a=25;
*c=3;
printf("a=%d\n", a);
printf("b=%d\n", b);
printf("c=%d\n", c);
printf("d=%d\n", d);
printf("e=%d\n", e);
prin... | 13.416667 | 32 | 0.451346 | SauloCav |
1c1ee7480aa05d516af8d3e8eebbfd42381e8be6 | 2,691 | cpp | C++ | src/trap.cpp | prinsij/RogueReborn | 20e6ba4d2e61a47283747ba207a758e604fa89d9 | [
"BSD-3-Clause"
] | null | null | null | src/trap.cpp | prinsij/RogueReborn | 20e6ba4d2e61a47283747ba207a758e604fa89d9 | [
"BSD-3-Clause"
] | null | null | null | src/trap.cpp | prinsij/RogueReborn | 20e6ba4d2e61a47283747ba207a758e604fa89d9 | [
"BSD-3-Clause"
] | null | null | null | /**
* @file trap.cpp
* @author Team Rogue++
* @date December 08, 2016
*
* @brief Member definitions for the Trap class
*/
#include "include/armor.h"
#include "include/coord.h"
#include "include/feature.h"
#include "include/level.h"
#include "include/playerchar.h"
#include "include/random.h"
#include "include/tr... | 26.126214 | 97 | 0.665552 | prinsij |
1c1fb1d5403fb66c37df0bc71ecaff089225c783 | 2,380 | cpp | C++ | cc/TextureCopierTest.cpp | quisquous/chromium | b25660e05cddc9d0c3053b3514f07037acc69a10 | [
"BSD-3-Clause"
] | 2 | 2020-06-10T07:15:26.000Z | 2020-12-13T19:44:12.000Z | cc/TextureCopierTest.cpp | quisquous/chromium | b25660e05cddc9d0c3053b3514f07037acc69a10 | [
"BSD-3-Clause"
] | null | null | null | cc/TextureCopierTest.cpp | quisquous/chromium | b25660e05cddc9d0c3053b3514f07037acc69a10 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "config.h"
#include "TextureCopier.h"
#include "FakeWebGraphicsContext3D.h"
#include "GraphicsContext3D.h"
#include "testing/gmock/include/gmoc... | 39.666667 | 147 | 0.758403 | quisquous |
1c2076f3c2443d007c280d234ac4862564d868b5 | 2,305 | cpp | C++ | VulkanTutorials/Plugins/VulkanRendering/VulkanDynamicRenderBuilder.cpp | RichDavisonNCL/VulkanTutorialsRelease | a26b053b170fafa764dee6a575695ff9c3495640 | [
"MIT"
] | null | null | null | VulkanTutorials/Plugins/VulkanRendering/VulkanDynamicRenderBuilder.cpp | RichDavisonNCL/VulkanTutorialsRelease | a26b053b170fafa764dee6a575695ff9c3495640 | [
"MIT"
] | null | null | null | VulkanTutorials/Plugins/VulkanRendering/VulkanDynamicRenderBuilder.cpp | RichDavisonNCL/VulkanTutorialsRelease | a26b053b170fafa764dee6a575695ff9c3495640 | [
"MIT"
] | null | null | null | /******************************************************************************
This file is part of the Newcastle Vulkan Tutorial Series
Author:Rich Davison
Contact:richgdavison@gmail.com
License: MIT (see LICENSE file at the top of the source tree)
*///////////////////////////////////////////////////////////////////... | 29.177215 | 103 | 0.746204 | RichDavisonNCL |
1c215b01709cf6e871ea75c953a511b6e09fcfd8 | 378 | cpp | C++ | core/Source/CodaStringTransform.cpp | paxbun/dear-my-prof | a1e0032f17d9a62a58673b5dbe2de1446006e528 | [
"MIT"
] | 1 | 2020-01-19T14:14:13.000Z | 2020-01-19T14:14:13.000Z | core/Source/CodaStringTransform.cpp | paxbun/dear-my-prof | a1e0032f17d9a62a58673b5dbe2de1446006e528 | [
"MIT"
] | null | null | null | core/Source/CodaStringTransform.cpp | paxbun/dear-my-prof | a1e0032f17d9a62a58673b5dbe2de1446006e528 | [
"MIT"
] | 1 | 2020-11-18T05:24:38.000Z | 2020-11-18T05:24:38.000Z | // Copyright (c) 2019 Dear My Professor Authors
// Author: paxbun
#include <core/CodaStringTransform.hpp>
#include <boost/locale.hpp>
bool CodaStringTransform::_EndsWithCoda(std::string const& input)
{
auto conv = boost::locale::conv::utf_to_utf<wchar_t>(input);
auto back = conv.back();
return back >= 0... | 25.2 | 75 | 0.679894 | paxbun |
1c26d8f2c8f8524fe4bfce4920a1b730f97794d8 | 432 | cpp | C++ | tests/server/TcpConnection/tests.cpp | batburger/Native-Backend | aaed26851e09f9e110061025fb2140aed1b4f9b5 | [
"Apache-2.0"
] | null | null | null | tests/server/TcpConnection/tests.cpp | batburger/Native-Backend | aaed26851e09f9e110061025fb2140aed1b4f9b5 | [
"Apache-2.0"
] | null | null | null | tests/server/TcpConnection/tests.cpp | batburger/Native-Backend | aaed26851e09f9e110061025fb2140aed1b4f9b5 | [
"Apache-2.0"
] | null | null | null | #define BOOST_TEST_MODULE server_TcpConnection_tests
#include <boost/test/unit_test.hpp>
#include <native-backend/server/Server.h>
BOOST_AUTO_TEST_SUITE(server_TcpConnection_tests)
/*There's no use full way of testing this class outside of the
* Server class, because one would require to mimic all behavior
... | 33.230769 | 68 | 0.773148 | batburger |
1c28030c10638c5d3e753a08b69b10f3acd790e4 | 2,755 | cpp | C++ | src/Server/REPL.cpp | wiltonlazary/Nidium | 2ed34f350115290e4fe67cbade6c7e2b7c9de430 | [
"Apache-2.0",
"BSD-2-Clause"
] | 1,223 | 2016-06-28T17:54:08.000Z | 2022-03-16T10:27:03.000Z | src/Server/REPL.cpp | wiltonlazary/Nidium | 2ed34f350115290e4fe67cbade6c7e2b7c9de430 | [
"Apache-2.0",
"BSD-2-Clause"
] | 84 | 2016-07-26T13:22:05.000Z | 2018-09-13T12:04:23.000Z | src/Server/REPL.cpp | wiltonlazary/Nidium | 2ed34f350115290e4fe67cbade6c7e2b7c9de430 | [
"Apache-2.0",
"BSD-2-Clause"
] | 77 | 2016-07-26T13:13:13.000Z | 2022-01-24T02:24:53.000Z | /*
Copyright 2016 Nidium Inc. All rights reserved.
Use of this source code is governed by a MIT license
that can be found in the LICENSE file.
*/
#include "Server/REPL.h"
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <pwd.h>
#include <errno.h>
#include <signal.h>
#include <unistd.h>
#in... | 20.407407 | 75 | 0.618512 | wiltonlazary |
1c29af64cae69959b521a29b13c9a4d1321134eb | 5,217 | hpp | C++ | matrix_inverse.hpp | janezz55/vxl | 415bdcb7d5304c6229ac2c910fbdc2988103fdba | [
"Unlicense"
] | 28 | 2016-11-15T09:16:43.000Z | 2021-04-12T15:38:46.000Z | matrix_inverse.hpp | janezz55/vxl | 415bdcb7d5304c6229ac2c910fbdc2988103fdba | [
"Unlicense"
] | null | null | null | matrix_inverse.hpp | janezz55/vxl | 415bdcb7d5304c6229ac2c910fbdc2988103fdba | [
"Unlicense"
] | 1 | 2020-09-04T22:27:20.000Z | 2020-09-04T22:27:20.000Z | #ifndef VXL_MATRIX_INVERSE_HPP
# define VXL_MATRIX_INVERSE_HPP
# pragma once
#include "matrix_determinant.hpp"
namespace vxl
{
//////////////////////////////////////////////////////////////////////////////
template <class T>
//__attribute__ ((noinline))
inline matrix<T, 2, 2> inv(matrix<T, 2, 2> const& ma) noexcept
... | 36.739437 | 78 | 0.379337 | janezz55 |
1c2fccf62da3e58f82082e09b5e3398d05384f15 | 51,411 | hpp | C++ | glfw3_app/ignitor/wave_cap.hpp | hirakuni45/glfw3_app | d9ceeef6d398229fda4849afe27f8b48d1597fcf | [
"BSD-3-Clause"
] | 9 | 2015-09-22T21:36:57.000Z | 2021-04-01T09:16:53.000Z | glfw3_app/ignitor/wave_cap.hpp | hirakuni45/glfw3_app | d9ceeef6d398229fda4849afe27f8b48d1597fcf | [
"BSD-3-Clause"
] | null | null | null | glfw3_app/ignitor/wave_cap.hpp | hirakuni45/glfw3_app | d9ceeef6d398229fda4849afe27f8b48d1597fcf | [
"BSD-3-Clause"
] | 2 | 2019-02-21T04:22:13.000Z | 2021-03-02T17:24:32.000Z | #pragma once
//=====================================================================//
/*! @file
@brief 波形キャプチャー・クラス
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2018 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/RX/blob/master/LICENSE
*/
//========... | 29.128045 | 87 | 0.570053 | hirakuni45 |
1c335d8ac66d30a5efbf1793619b536b257d977d | 4,640 | cc | C++ | cpp/common/protocol-extension-manager_test.cc | nathanawmk/SPARTA | 6eeb28b2dd147088b6e851876b36eeba3e700f16 | [
"BSD-2-Clause"
] | 37 | 2017-06-09T13:55:23.000Z | 2022-01-28T12:51:17.000Z | cpp/common/protocol-extension-manager_test.cc | nathanawmk/SPARTA | 6eeb28b2dd147088b6e851876b36eeba3e700f16 | [
"BSD-2-Clause"
] | null | null | null | cpp/common/protocol-extension-manager_test.cc | nathanawmk/SPARTA | 6eeb28b2dd147088b6e851876b36eeba3e700f16 | [
"BSD-2-Clause"
] | 5 | 2017-06-09T13:55:26.000Z | 2021-11-11T03:51:56.000Z | //*****************************************************************
// Copyright 2015 MIT Lincoln Laboratory
// Project: SPAR
// Authors: OMD
// Description: Unit tests for ProtocolExtensionManager
//
// Modifications:
// Date Name Modification
// ---- ---- ... | 29.935484 | 80 | 0.706466 | nathanawmk |
1c35877c5304425b196fab15bcc321748b2c5c27 | 1,186 | cpp | C++ | 3rd-party/gloox/src/tests/vcard/vcard_test.cpp | ForNeVeR/cthulhu-bot | bee022cf03c17c75d01cbc8c2cdb5c888859fbc0 | [
"MIT"
] | null | null | null | 3rd-party/gloox/src/tests/vcard/vcard_test.cpp | ForNeVeR/cthulhu-bot | bee022cf03c17c75d01cbc8c2cdb5c888859fbc0 | [
"MIT"
] | 1 | 2017-07-22T04:10:51.000Z | 2017-07-22T04:10:51.000Z | 3rd-party/gloox/src/tests/vcard/vcard_test.cpp | ForNeVeR/cthulhu-bot | bee022cf03c17c75d01cbc8c2cdb5c888859fbc0 | [
"MIT"
] | null | null | null | #include "../../tag.h"
#define VCARD_TEST
#include "../../vcard.h"
#include "../../iq.h"
#include "../../stanzaextensionfactory.h"
using namespace gloox;
#include <stdio.h>
#include <locale.h>
#include <string>
#include <cstdio> // [s]print[f]
int main( int /*argc*/, char** /*argv*/ )
{
int fail = 0;
std::string ... | 18.825397 | 85 | 0.524452 | ForNeVeR |
1c40415d373b86ce2e000fe8d3cd0e1c51117f3c | 977 | cpp | C++ | UnitTests/TestApp/ActionCreateData.cpp | lmj0591/mygui | 311fb9d07089f64558eb7f77e9b37c4cb91e3559 | [
"MIT"
] | 590 | 2015-01-06T09:22:06.000Z | 2022-03-21T18:23:02.000Z | UnitTests/TestApp/ActionCreateData.cpp | lmj0591/mygui | 311fb9d07089f64558eb7f77e9b37c4cb91e3559 | [
"MIT"
] | 159 | 2015-01-07T03:34:23.000Z | 2022-02-21T21:28:51.000Z | UnitTests/TestApp/ActionCreateData.cpp | lmj0591/mygui | 311fb9d07089f64558eb7f77e9b37c4cb91e3559 | [
"MIT"
] | 212 | 2015-01-05T07:33:33.000Z | 2022-03-28T22:11:51.000Z | /*!
@file
@author Albert Semenov
@date 07/2012
*/
#include "ActionCreateData.h"
#include "DataManager.h"
#include "DataInfoManager.h"
namespace tools
{
ActionCreateData::ActionCreateData() :
mData(nullptr),
mComplete(false)
{
}
ActionCreateData::~ActionCreateData()
{
if (mData != nullptr && !mComplet... | 17.446429 | 78 | 0.685773 | lmj0591 |
1c411dcc0af191b98cd80279397079a8023804be | 1,889 | hh | C++ | third_party/gst-plugins-bad/ext/soundtouch/gstbpmdetect.hh | isabella232/aistreams | 209f4385425405676a581a749bb915e257dbc1c1 | [
"Apache-2.0"
] | 6 | 2020-09-22T18:07:15.000Z | 2021-10-21T01:34:04.000Z | third_party/gst-plugins-bad/ext/soundtouch/gstbpmdetect.hh | isabella232/aistreams | 209f4385425405676a581a749bb915e257dbc1c1 | [
"Apache-2.0"
] | 2 | 2020-11-10T13:17:39.000Z | 2022-03-30T11:22:14.000Z | third_party/gst-plugins-bad/ext/soundtouch/gstbpmdetect.hh | isabella232/aistreams | 209f4385425405676a581a749bb915e257dbc1c1 | [
"Apache-2.0"
] | 3 | 2020-09-26T08:40:35.000Z | 2021-10-21T01:33:56.000Z | /* GStreamer
* Copyright (C) 2008 Sebastian Dröge <slomo@circular-chaos.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your optio... | 32.016949 | 112 | 0.779248 | isabella232 |
1c4334b8a676fe4fac0b81940104cb3ec6a43d1a | 1,930 | cpp | C++ | example/op_zip_iterator.cpp | aguinet/llvm-intptrcleanup | 9b1267dc9752922143965f1103288f6899f9415f | [
"BSD-3-Clause"
] | null | null | null | example/op_zip_iterator.cpp | aguinet/llvm-intptrcleanup | 9b1267dc9752922143965f1103288f6899f9415f | [
"BSD-3-Clause"
] | null | null | null | example/op_zip_iterator.cpp | aguinet/llvm-intptrcleanup | 9b1267dc9752922143965f1103288f6899f9415f | [
"BSD-3-Clause"
] | null | null | null | #include <algorithm>
#include <iterator>
#define RANDOM_IT
#ifdef RANDOM_IT
struct add_zip_iterator: public std::iterator<std::random_access_iterator_tag, int>
#else
struct add_zip_iterator: public std::iterator<std::forward_iterator_tag, int>
#endif
{
int* a;
int* b;
using traits = std::iterator_traits<add_zi... | 21.685393 | 84 | 0.665803 | aguinet |
1c440155b03beee5ee8039970d6cad6fe77ce1a8 | 792 | hpp | C++ | book/not_so_basics/testing/Dealer.hpp | luanics/cpp-illustrated | 6049de2119a53d656a63b65d9441e680355ef196 | [
"MIT"
] | null | null | null | book/not_so_basics/testing/Dealer.hpp | luanics/cpp-illustrated | 6049de2119a53d656a63b65d9441e680355ef196 | [
"MIT"
] | null | null | null | book/not_so_basics/testing/Dealer.hpp | luanics/cpp-illustrated | 6049de2119a53d656a63b65d9441e680355ef196 | [
"MIT"
] | null | null | null | #pragma once
#include "Action.hpp"
#include "Hand.hpp"
namespace luanics::cards::blackjack {
/////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////
///
/// @class Dealer
///
/// @brief Following standard rules, hits until 17 reached... | 23.294118 | 69 | 0.431818 | luanics |
1c44630469d3718b7cca2a5836a6ccebe4c1ea7c | 304 | cpp | C++ | Tasks/year3-demo-workspace/Lecture01-PortOut/main.cpp | ConnorD02/Embedded-Systems | 3e42b3da487fbe3bf7cfa897a6dd4cdb568d97e1 | [
"Apache-2.0"
] | 33 | 2020-08-05T12:58:51.000Z | 2022-03-28T12:00:20.000Z | Tasks/year3-demo-workspace/Lecture01-PortOut/main.cpp | ConnorD02/Embedded-Systems | 3e42b3da487fbe3bf7cfa897a6dd4cdb568d97e1 | [
"Apache-2.0"
] | 37 | 2020-08-05T12:53:22.000Z | 2022-03-04T10:24:47.000Z | Tasks/year3-demo-workspace/Lecture01-PortOut/main.cpp | ConnorD02/Embedded-Systems | 3e42b3da487fbe3bf7cfa897a6dd4cdb568d97e1 | [
"Apache-2.0"
] | 51 | 2020-10-06T11:04:40.000Z | 2022-03-28T12:00:11.000Z | #include "mbed.h"
//BusOut leds(PC_2, PC_3, PC_6, PB_0, PB_7, PB_14);
PortOut portc(PortC, 0b0000000001001100);
PortOut portb(PortB, 0b0100000010000001);
int main() {
while (true) {
portb = 0;
portc = 0xFFFF;
wait_us(500000);
portb = 0xFFFF;
portc = 0;
wait_us(500000);
}
}
| 17.882353 | 51 | 0.634868 | ConnorD02 |
1c4bd5c65e452ac1098540af96b4d75f1d6b1ef9 | 41,013 | cxx | C++ | inetsrv/query/web/dll/ida.cxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | inetsrv/query/web/dll/ida.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | inetsrv/query/web/dll/ida.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1996 - 2001.
//
// File: ida.cxx
//
// Contents: Parser for an IDQ file
//
// History: 96/Jan/3 DwightKr Created
//
//------------------------------... | 31.891913 | 110 | 0.481896 | npocmaka |
1c53515e3246478705be1230553cd8c4a047ce17 | 11,666 | cc | C++ | NS3-master/src/traffic-control/test/cobalt-queue-disc-test-suite.cc | legendPerceptor/blockchain | 615ba331ae5ec53c683dfe6a16992a5181be0fea | [
"Apache-2.0"
] | 1 | 2021-09-20T07:05:25.000Z | 2021-09-20T07:05:25.000Z | NS3-master/src/traffic-control/test/cobalt-queue-disc-test-suite.cc | legendPerceptor/blockchain | 615ba331ae5ec53c683dfe6a16992a5181be0fea | [
"Apache-2.0"
] | null | null | null | NS3-master/src/traffic-control/test/cobalt-queue-disc-test-suite.cc | legendPerceptor/blockchain | 615ba331ae5ec53c683dfe6a16992a5181be0fea | [
"Apache-2.0"
] | 2 | 2021-09-02T08:25:16.000Z | 2022-01-03T08:48:38.000Z | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2019 NITK Surathkal
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This program is di... | 34.211144 | 172 | 0.698097 | legendPerceptor |
1c5896613fd7ca847a9e50fb748a1504eea02048 | 4,459 | cpp | C++ | test/plugins/where.cpp | tkerola/chainer-trt | 4e1adc0370e11ad7736a5fafdfd5aeca168c700e | [
"MIT"
] | null | null | null | test/plugins/where.cpp | tkerola/chainer-trt | 4e1adc0370e11ad7736a5fafdfd5aeca168c700e | [
"MIT"
] | null | null | null | test/plugins/where.cpp | tkerola/chainer-trt | 4e1adc0370e11ad7736a5fafdfd5aeca168c700e | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2018 Preferred Networks, Inc. All rights reserved.
*/
#include <fstream>
#include <cuda_runtime_api.h>
#include "chainer_trt/chainer_trt.hpp"
#include "include/chainer_trt_impl.hpp"
#include "include/cuda/cuda_kernels.hpp"
#include "test_helper.hpp"
// TODO: Merge to run_plugin_assert_core (nee... | 38.773913 | 80 | 0.647006 | tkerola |
1c62982fa529dc9f0dd8cee2272f4cded59f225d | 1,795 | cpp | C++ | leetcode/_236_lowest_common_ancestor_of_a_binary_tree_2.cpp | WindyDarian/OJ_Submissions | a323595c3a32ed2e07af65374ef90c81d5333f96 | [
"Apache-2.0"
] | 3 | 2017-02-19T14:38:32.000Z | 2017-07-22T17:06:55.000Z | leetcode/_236_lowest_common_ancestor_of_a_binary_tree_2.cpp | WindyDarian/OJ_Submissions | a323595c3a32ed2e07af65374ef90c81d5333f96 | [
"Apache-2.0"
] | null | null | null | leetcode/_236_lowest_common_ancestor_of_a_binary_tree_2.cpp | WindyDarian/OJ_Submissions | a323595c3a32ed2e07af65374ef90c81d5333f96 | [
"Apache-2.0"
] | null | null | null | //==============================================================================
// Copyright 2016 Windy Darian (Ruoyu Fan)
//
// 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:... | 28.046875 | 80 | 0.545404 | WindyDarian |
1c642e5240299f7957100128a66766d7a36ff332 | 639 | cc | C++ | src/ui/views/win/hwnd_util_win.cc | jxjnjjn/chromium | 435c1d02fd1b99001dc9e1e831632c894523580d | [
"Apache-2.0"
] | 9 | 2018-09-21T05:36:12.000Z | 2021-11-15T15:14:36.000Z | src/ui/views/win/hwnd_util_win.cc | jxjnjjn/chromium | 435c1d02fd1b99001dc9e1e831632c894523580d | [
"Apache-2.0"
] | null | null | null | src/ui/views/win/hwnd_util_win.cc | jxjnjjn/chromium | 435c1d02fd1b99001dc9e1e831632c894523580d | [
"Apache-2.0"
] | 3 | 2018-11-28T14:54:13.000Z | 2020-07-02T07:36:07.000Z | // Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/views/win/hwnd_util.h"
#include "ui/views/widget/widget.h"
namespace views {
HWND HWNDForView(View* view) {
return view->GetWidget()... | 22.034483 | 73 | 0.735524 | jxjnjjn |
1c69f258ce1678b411fbd075d2a9e588dd6cd5e1 | 2,515 | cpp | C++ | uva/11743 - Credit Check.cpp | taufique71/sports-programming | c29a92b5e5424c7de6f94e302fc6783561de9b3d | [
"MIT"
] | null | null | null | uva/11743 - Credit Check.cpp | taufique71/sports-programming | c29a92b5e5424c7de6f94e302fc6783561de9b3d | [
"MIT"
] | null | null | null | uva/11743 - Credit Check.cpp | taufique71/sports-programming | c29a92b5e5424c7de6f94e302fc6783561de9b3d | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
char credit_no[20];
int dbl[10];
int non_dbl[10];
int count = 0;
char gar[5];
int n_case;
int i,j,k;
cin >> n_case;
gets(gar);
while(n_case--)
{
gets(credit_no);
j = 0;
k = 0;
... | 23.287037 | 55 | 0.300596 | taufique71 |
1c6acf7ce271c21eb9918c68cce3d24bd9d1333f | 3,130 | hpp | C++ | library/inc/argo/action/Callback.hpp | phforest/Argo | bd45b2bf53f88fbd9f6215dc6293bbb3614e37d8 | [
"MIT"
] | null | null | null | library/inc/argo/action/Callback.hpp | phforest/Argo | bd45b2bf53f88fbd9f6215dc6293bbb3614e37d8 | [
"MIT"
] | null | null | null | library/inc/argo/action/Callback.hpp | phforest/Argo | bd45b2bf53f88fbd9f6215dc6293bbb3614e37d8 | [
"MIT"
] | null | null | null | #ifndef HEADER_argo_action_Callback_hpp_INCLUDE_GUARD
#define HEADER_argo_action_Callback_hpp_INCLUDE_GUARD
#include "argo/Context.hpp"
#include "argo/action/IAction.hpp"
#include "argo/details/log.hpp"
#include "argo/details/mss.hpp"
#include "argo/details/optional.hpp"
#include "argo/traits/conversion.hpp"
#include ... | 41.733333 | 169 | 0.650799 | phforest |
1c6b0464f5d4891666abda68087b97aec4fdcefa | 2,618 | cpp | C++ | src/hypro/representations/Box/intervalMethods.cpp | hypro/hypro | 52ae4ffe0a8427977fce8d7979fffb82a1bc28f6 | [
"MIT"
] | 22 | 2016-10-05T12:19:01.000Z | 2022-01-23T09:14:41.000Z | src/hypro/representations/Box/intervalMethods.cpp | hypro/hypro | 52ae4ffe0a8427977fce8d7979fffb82a1bc28f6 | [
"MIT"
] | 23 | 2017-05-08T15:02:39.000Z | 2021-11-03T16:43:39.000Z | src/hypro/representations/Box/intervalMethods.cpp | hypro/hypro | 52ae4ffe0a8427977fce8d7979fffb82a1bc28f6 | [
"MIT"
] | 12 | 2017-06-07T23:51:09.000Z | 2022-01-04T13:06:21.000Z | #include "intervalMethods.h"
namespace hypro {
void reduceIntervalsNumberRepresentation( std::vector<carl::Interval<mpq_class>>& intervals, unsigned limit ) {
mpq_class limit2 = mpq_class( limit ) * mpq_class( limit );
for ( unsigned d = 0; d < intervals.size(); ++d ) {
//std::cout << "(Upper Bound) mpq_class: " ... | 42.918033 | 128 | 0.606188 | hypro |
1c6b174fe3f09f24791256d816f186d05fa4c68e | 2,513 | cpp | C++ | phxqueue/config/utils/consumer_group_util.cpp | huayl/phxqueue | 733ada547a3b483b536cc3d401766af7b4c17dbe | [
"Apache-2.0"
] | 2,032 | 2017-09-12T02:29:42.000Z | 2022-03-23T07:14:56.000Z | phxqueue/config/utils/consumer_group_util.cpp | huayl/phxqueue | 733ada547a3b483b536cc3d401766af7b4c17dbe | [
"Apache-2.0"
] | 57 | 2017-09-12T03:36:39.000Z | 2020-12-16T08:59:09.000Z | phxqueue/config/utils/consumer_group_util.cpp | huayl/phxqueue | 733ada547a3b483b536cc3d401766af7b4c17dbe | [
"Apache-2.0"
] | 370 | 2017-09-12T03:09:04.000Z | 2022-03-13T14:01:55.000Z | #include <string>
#include "phxqueue/comm.h"
#include "phxqueue/config/globalconfig.h"
#include "phxqueue/config/storeconfig.h"
#include "phxqueue/config/topicconfig.h"
namespace phxqueue {
namespace config {
namespace utils {
using namespace std;
comm::RetCode GetConsumerGroupIDsByConsumerAddr(const int topi... | 32.217949 | 162 | 0.691604 | huayl |
1c6cd514bbb1e87b74a40651a751a12f92307405 | 3,332 | hh | C++ | src/Xi-Crypto/include/Xi/Crypto/Hash/Sha2.hh | ElSamaritan/blockchain-OLD | ca3422c8873613226db99b7e6735c5ea1fac9f1a | [
"Apache-2.0"
] | null | null | null | src/Xi-Crypto/include/Xi/Crypto/Hash/Sha2.hh | ElSamaritan/blockchain-OLD | ca3422c8873613226db99b7e6735c5ea1fac9f1a | [
"Apache-2.0"
] | null | null | null | src/Xi-Crypto/include/Xi/Crypto/Hash/Sha2.hh | ElSamaritan/blockchain-OLD | ca3422c8873613226db99b7e6735c5ea1fac9f1a | [
"Apache-2.0"
] | null | null | null | /* ============================================================================================== *
* *
* Galaxia Blockchain *
* ... | 49.731343 | 100 | 0.444778 | ElSamaritan |
1c6decced6b95828faadcfa02c3abc1cb3df1155 | 2,854 | cpp | C++ | modules/SofaPreconditioner/JacobiPreconditioner.cpp | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | modules/SofaPreconditioner/JacobiPreconditioner.cpp | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | modules/SofaPreconditioner/JacobiPreconditioner.cpp | sofa-framework/issofa | 94855f488465bc3ed41223cbde987581dfca5389 | [
"OML"
] | null | null | null | /******************************************************************************
* SOFA, Simulation Open-Framework Architecture, development version *
* (c) 2006-2017 INRIA, USTL, UJF, CNRS, MGH *
* *
... | 49.206897 | 125 | 0.55431 | sofa-framework |
1c6dfcba405fcbc6ada048b7837745a2a6b620f1 | 201 | cpp | C++ | examples/s3/boo.cpp | Costallat/hunter | dc0d79cb37b30cad6d6472d7143fe27be67e26d5 | [
"BSD-2-Clause"
] | 2,146 | 2015-01-10T07:26:58.000Z | 2022-03-21T02:28:01.000Z | examples/s3/boo.cpp | koinos/hunter | fc17bc391210bf139c55df7f947670c5dff59c57 | [
"BSD-2-Clause"
] | 1,778 | 2015-01-03T11:50:30.000Z | 2019-12-26T05:31:20.000Z | examples/s3/boo.cpp | koinos/hunter | fc17bc391210bf139c55df7f947670c5dff59c57 | [
"BSD-2-Clause"
] | 734 | 2015-03-05T19:52:34.000Z | 2022-02-22T23:18:54.000Z | #include <libs3.h>
int main() {
const char *userAgentInfo = "";
int flags = 0;
const char *defaultS3HostName = "";
S3Status result = S3_initialize(userAgentInfo, flags, defaultS3HostName);
}
| 20.1 | 75 | 0.691542 | Costallat |
1c711df3cda5e748049a893729f39a16bfcf6ab8 | 920 | cpp | C++ | Lydsy/P2705 [SDOI2012]Longge的问题/P2705.cpp | Wycers/Codelib | 86d83787aa577b8f2d66b5410e73102411c45e46 | [
"MIT"
] | 22 | 2018-08-07T06:55:10.000Z | 2021-06-12T02:12:19.000Z | Lydsy/P2705 [SDOI2012]Longge的问题/P2705.cpp | Wycers/Codelib | 86d83787aa577b8f2d66b5410e73102411c45e46 | [
"MIT"
] | 28 | 2020-03-04T23:47:22.000Z | 2022-02-26T18:50:00.000Z | Lydsy/P2705 [SDOI2012]Longge的问题/P2705.cpp | Wycers/Codelib | 86d83787aa577b8f2d66b5410e73102411c45e46 | [
"MIT"
] | 4 | 2019-11-09T15:41:26.000Z | 2021-10-10T08:56:57.000Z | #include <iostream>
#include <cmath>
#include <cstdio>
#include <algorithm>
#include <cstring>
#include <queue>
#define Clr(x, t) memset(x,t,sizeof(x))
typedef long long ll;
using namespace std;
const int N = 1e5 + 10;
const int Inf = 0x3f3f3f3f;
ll read()
{
ll x = 0,f = 1;char ch = getchar();
while (ch < '0' ... | 17.037037 | 73 | 0.476087 | Wycers |
1c713bf86cd2476cd6b5989c4f99cac1d348ef4b | 4,053 | cc | C++ | src/vw/Camera/Extrinsics.cc | digimatronics/ComputerVision | 2af5da17dfd277f0cb3f19a97e3d49ba19cc9d24 | [
"NASA-1.3"
] | 1 | 2021-05-16T23:57:32.000Z | 2021-05-16T23:57:32.000Z | src/vw/Camera/Extrinsics.cc | rkrishnasanka/visionworkbench | 2af5da17dfd277f0cb3f19a97e3d49ba19cc9d24 | [
"NASA-1.3"
] | null | null | null | src/vw/Camera/Extrinsics.cc | rkrishnasanka/visionworkbench | 2af5da17dfd277f0cb3f19a97e3d49ba19cc9d24 | [
"NASA-1.3"
] | 2 | 2017-03-18T04:06:32.000Z | 2019-01-17T10:34:39.000Z | // __BEGIN_LICENSE__
// Copyright (C) 2006-2011 United States Government as represented by
// the Administrator of the National Aeronautics and Space Administration.
// All Rights Reserved.
// __END_LICENSE__
#include <vw/Core/Log.h>
#include <vw/Camera/Extrinsics.h>
using namespace vw;
using namespace vw::camera;
... | 32.95122 | 112 | 0.5623 | digimatronics |
1c75dcd317cdbd39b51445c4fe9ee4827b2851e3 | 4,830 | cpp | C++ | src/uscxml/plugins/datamodel/ecmascript/JavaScriptCore/dom/JSCDocumentType.cpp | sradomski/uscxml | b8ba0e7c31f397a66f9d509ff20a85b33619475a | [
"W3C",
"BSD-2-Clause"
] | null | null | null | src/uscxml/plugins/datamodel/ecmascript/JavaScriptCore/dom/JSCDocumentType.cpp | sradomski/uscxml | b8ba0e7c31f397a66f9d509ff20a85b33619475a | [
"W3C",
"BSD-2-Clause"
] | null | null | null | src/uscxml/plugins/datamodel/ecmascript/JavaScriptCore/dom/JSCDocumentType.cpp | sradomski/uscxml | b8ba0e7c31f397a66f9d509ff20a85b33619475a | [
"W3C",
"BSD-2-Clause"
] | null | null | null | /**
* @file
* @author This file has been generated by generate-bindings.pl. DO NOT MODIFY!
* @copyright Simplified BSD
*
* @cond
* This program is free software: you can redistribute it and/or modify
* it under the terms of the FreeBSD license as published by the FreeBSD
* project.
*
* This progr... | 40.588235 | 141 | 0.798758 | sradomski |
1c78a06ce6df0438fcb3464340f1c05f56aff8d2 | 7,774 | cpp | C++ | vm/src/vm/Core.cpp | lordadamson/tethys | 8bad2155462fb436a3da6ce1c69242486f62fe9f | [
"BSD-3-Clause"
] | null | null | null | vm/src/vm/Core.cpp | lordadamson/tethys | 8bad2155462fb436a3da6ce1c69242486f62fe9f | [
"BSD-3-Clause"
] | null | null | null | vm/src/vm/Core.cpp | lordadamson/tethys | 8bad2155462fb436a3da6ce1c69242486f62fe9f | [
"BSD-3-Clause"
] | null | null | null | #include "vm/Core.h"
#include "vm/Op.h"
#include "vm/Util.h"
namespace vm
{
inline static Op
pop_op(Core& self, const mn::Buf<uint8_t>& code)
{
return Op(pop8(code, self.r[Reg_IP].u64));
}
inline static Reg
pop_reg(Core& self, const mn::Buf<uint8_t>& code)
{
return Reg(pop8(code, self.r[Reg_IP].u64));
}
... | 19.882353 | 68 | 0.583483 | lordadamson |
cc5f0159c6737950cf8497fcaf3281e8eca65677 | 93 | cpp | C++ | CsCoreDEPRECATED/Source/CsCoreDEPRECATED/AI/CsTypes_AI.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | 2 | 2019-03-17T10:43:53.000Z | 2021-04-20T21:24:19.000Z | CsCoreDEPRECATED/Source/CsCoreDEPRECATED/AI/CsTypes_AI.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | null | null | null | CsCoreDEPRECATED/Source/CsCoreDEPRECATED/AI/CsTypes_AI.cpp | closedsum/core | c3cae44a177b9684585043a275130f9c7b67fef0 | [
"Unlicense"
] | null | null | null | // Copyright 2017-2019 Closed Sum Games, LLC. All Rights Reserved.
#include "AI/CsTypes_AI.h" | 46.5 | 66 | 0.763441 | closedsum |
cc627050e0e714ef8651548e2e4d95e7cd33a3ff | 1,064 | cc | C++ | tests/unit/mathematics/linalg/LinalgBackendBase_unittest.cc | ShankarNara/shogun | 8ab196de16b8d8917e5c84770924c8d0f5a3d17c | [
"BSD-3-Clause"
] | 2,753 | 2015-01-02T11:34:13.000Z | 2022-03-25T07:04:27.000Z | tests/unit/mathematics/linalg/LinalgBackendBase_unittest.cc | ShankarNara/shogun | 8ab196de16b8d8917e5c84770924c8d0f5a3d17c | [
"BSD-3-Clause"
] | 2,404 | 2015-01-02T19:31:41.000Z | 2022-03-09T10:58:22.000Z | tests/unit/mathematics/linalg/LinalgBackendBase_unittest.cc | ShankarNara/shogun | 8ab196de16b8d8917e5c84770924c8d0f5a3d17c | [
"BSD-3-Clause"
] | 1,156 | 2015-01-03T01:57:21.000Z | 2022-03-26T01:06:28.000Z | #include <gtest/gtest.h>
#include <shogun/base/ShogunEnv.h>
#include <shogun/lib/config.h>
#include <shogun/lib/SGVector.h>
#include <shogun/mathematics/linalg/LinalgNamespace.h>
using namespace shogun;
using namespace linalg;
TEST(LinalgBackendBase, SGVector_to_gpu_without_gpu_backend)
{
env()->linalg()->set_gpu_ba... | 23.130435 | 60 | 0.684211 | ShankarNara |
cc644814ced864e55f84434873e4d5590205f56e | 7,856 | cc | C++ | chapter-casa/exp-6/main.cc | Mark1626/road-to-plus-plus | 500db757051e32e6ccd144b70171c826527610d4 | [
"CC0-1.0"
] | 1 | 2021-07-04T12:41:16.000Z | 2021-07-04T12:41:16.000Z | chapter-casa/exp-6/main.cc | Mark1626/road-to-plus-plus | 500db757051e32e6ccd144b70171c826527610d4 | [
"CC0-1.0"
] | null | null | null | chapter-casa/exp-6/main.cc | Mark1626/road-to-plus-plus | 500db757051e32e6ccd144b70171c826527610d4 | [
"CC0-1.0"
] | null | null | null | #include <casacore/casa/Arrays/IPosition.h>
#include <casacore/casa/Arrays/Matrix.h>
#include <casacore/casa/Containers/Record.h>
#include <casacore/casa/Quanta/MVTime.h>
#include <casacore/coordinates/Coordinates/Coordinate.h>
#include <casacore/coordinates/Coordinates/CoordinateSystem.h>
#include <casacore/coordinate... | 28.671533 | 79 | 0.60998 | Mark1626 |
cc64622fa8d7d1e7841169261090f4849e8d0586 | 13,023 | cpp | C++ | src/renderer/base/characters.cpp | nomadsinteractive/ark | 52f84c6dbd5ca6bdd07d450b3911be1ffd995922 | [
"Apache-2.0"
] | 5 | 2018-03-28T09:14:55.000Z | 2018-04-02T11:54:33.000Z | src/renderer/base/characters.cpp | nomadsinteractive/ark | 52f84c6dbd5ca6bdd07d450b3911be1ffd995922 | [
"Apache-2.0"
] | null | null | null | src/renderer/base/characters.cpp | nomadsinteractive/ark | 52f84c6dbd5ca6bdd07d450b3911be1ffd995922 | [
"Apache-2.0"
] | null | null | null | #include "renderer/base/characters.h"
#include <cwctype>
#include "core/ark.h"
#include "core/inf/array.h"
#include "core/inf/variable.h"
#include "core/impl/boolean/boolean_by_weak_ref.h"
#include "core/util/bean_utils.h"
#include "core/util/math.h"
#include "graphics/base/layer.h"
#include "graphics/base/layer_con... | 37.857558 | 200 | 0.681794 | nomadsinteractive |
cc6824e011dd554b562ed3a9c271513e5d2cf604 | 2,469 | cc | C++ | services/service_manager/public/cpp/test/test_service_decorator.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | services/service_manager/public/cpp/test/test_service_decorator.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | services/service_manager/public/cpp/test/test_service_decorator.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "services/service_manager/public/cpp/test/test_service_decorator.h"
#include "base/memory/ptr_util.h"
namespace service_manager {
// static
st... | 34.774648 | 80 | 0.731065 | zipated |
cc68b4d592dcc1af1ee09b0268027738819e754c | 728 | cpp | C++ | src/opt/ssa/ssa.cpp | robtaylor/iroha | e7713910ee64ca98f999b98b0c77c02fcfe2da09 | [
"BSD-3-Clause"
] | 34 | 2016-02-07T17:43:55.000Z | 2021-12-18T12:01:08.000Z | src/opt/ssa/ssa.cpp | robtaylor/iroha | e7713910ee64ca98f999b98b0c77c02fcfe2da09 | [
"BSD-3-Clause"
] | 5 | 2016-04-12T09:27:31.000Z | 2021-06-29T10:59:18.000Z | src/opt/ssa/ssa.cpp | robtaylor/iroha | e7713910ee64ca98f999b98b0c77c02fcfe2da09 | [
"BSD-3-Clause"
] | 5 | 2015-12-26T10:58:46.000Z | 2021-06-25T18:58:40.000Z | #include "opt/ssa/ssa.h"
#include "opt/ssa/phi_cleaner.h"
#include "opt/ssa/ssa_converter.h"
namespace iroha {
namespace opt {
namespace ssa {
SSAConverterPass::~SSAConverterPass() {}
Pass *SSAConverterPass::Create() { return new SSAConverterPass(); }
bool SSAConverterPass::ApplyForTable(const string &key, ITable ... | 22.060606 | 72 | 0.729396 | robtaylor |
cc6afdc7e2218b1cca270b0afddac755fd9e52fb | 1,639 | cpp | C++ | Engine/Plugins/Runtime/Synthesis/Source/Synthesis/Private/SourceEffectChorus.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | 1 | 2022-01-29T18:36:12.000Z | 2022-01-29T18:36:12.000Z | Engine/Plugins/Runtime/Synthesis/Source/Synthesis/Private/SourceEffectChorus.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | Engine/Plugins/Runtime/Synthesis/Source/Synthesis/Private/SourceEffectChorus.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "SourceEffects/SourceEffectChorus.h"
void FSourceEffectChorus::Init(const FSoundEffectSourceInitData& InitData)
{
bIsActive = true;
Chorus.Init(InitData.SampleRate, 2.0f, 64);
}
void FSourceEffectChorus::OnPresetChanged()
{
GET_EFFECT_SETTINGS... | 32.78 | 120 | 0.785845 | windystrife |
cc7017dda9b6c5b938f6d22364ea0d0ab6dbd4a6 | 44,110 | cpp | C++ | unittest/obproxy/test_event_processor.cpp | stutiredboy/obproxy | b5f98a6e1c45e6a878376df49b9c10b4249d3626 | [
"Apache-2.0"
] | 74 | 2021-05-31T15:23:49.000Z | 2022-03-12T04:46:39.000Z | unittest/obproxy/test_event_processor.cpp | stutiredboy/obproxy | b5f98a6e1c45e6a878376df49b9c10b4249d3626 | [
"Apache-2.0"
] | 16 | 2021-05-31T15:26:38.000Z | 2022-03-30T06:02:43.000Z | unittest/obproxy/test_event_processor.cpp | stutiredboy/obproxy | b5f98a6e1c45e6a878376df49b9c10b4249d3626 | [
"Apache-2.0"
] | 64 | 2021-05-31T15:25:36.000Z | 2022-02-23T08:43:58.000Z | /**
* Copyright (c) 2021 OceanBase
* OceanBase Database Proxy(ODP) is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* http://license.coscl.org.cn/MulanPubL-2.0
* THIS SOFTWARE IS PROVIDED ... | 40.880445 | 115 | 0.683428 | stutiredboy |
cc70e6c4befbc4621a267274e49806a5a78331b1 | 2,690 | cpp | C++ | AlphaEngine/Source/Math/Vector4.cpp | Sh1ft0/alpha | 6726d366f0c8d2e1434b87f815b2644ebf170adf | [
"Apache-2.0"
] | null | null | null | AlphaEngine/Source/Math/Vector4.cpp | Sh1ft0/alpha | 6726d366f0c8d2e1434b87f815b2644ebf170adf | [
"Apache-2.0"
] | null | null | null | AlphaEngine/Source/Math/Vector4.cpp | Sh1ft0/alpha | 6726d366f0c8d2e1434b87f815b2644ebf170adf | [
"Apache-2.0"
] | null | null | null | /**
Copyright 2014-2015 Jason R. Wendlandt
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 writing, sof... | 28.020833 | 72 | 0.51487 | Sh1ft0 |
cc71ca850c8d94a413d3537d9a6677411b073e79 | 471 | hpp | C++ | src/internal/compiler_specifics.hpp | bmknecht/palnatoki | 0522d690f034d9f52730f9666731c3376dd33405 | [
"MIT"
] | null | null | null | src/internal/compiler_specifics.hpp | bmknecht/palnatoki | 0522d690f034d9f52730f9666731c3376dd33405 | [
"MIT"
] | null | null | null | src/internal/compiler_specifics.hpp | bmknecht/palnatoki | 0522d690f034d9f52730f9666731c3376dd33405 | [
"MIT"
] | null | null | null | #ifndef PALNATOKI_COMPILER_SPECIFICS_HPP
#define PALNATOKI_COMPILER_SPECIFICS_HPP
/** This file is part of the Palnatoki optimization library. For licensing
* information refer to the LICENSE file that is included in the project.
*
* This file in particular contains compiler specific defines.
*/
// On my system... | 29.4375 | 74 | 0.796178 | bmknecht |
cc734a5f8a6328bfefc86ac8a7d925ceee9f70f6 | 4,589 | hpp | C++ | cpp_algs/data_structures/tree/trie.hpp | pskrunner14/cpp-practice | c59928bb9b91204588a0bafdc9f42deaacc64d29 | [
"MIT"
] | 2 | 2018-09-14T14:17:27.000Z | 2020-01-02T00:20:52.000Z | cpp_algs/data_structures/tree/trie.hpp | pskrunner14/cpp-practice | c59928bb9b91204588a0bafdc9f42deaacc64d29 | [
"MIT"
] | 1 | 2018-10-28T19:45:20.000Z | 2018-10-28T19:50:02.000Z | cpp_algs/data_structures/tree/trie.hpp | pskrunner14/cpp-practice | c59928bb9b91204588a0bafdc9f42deaacc64d29 | [
"MIT"
] | 1 | 2019-12-29T19:58:08.000Z | 2019-12-29T19:58:08.000Z | /**
* MIT License
*
* Copyright (c) 2018 Prabhsimran Singh
*
* 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, co... | 28.68125 | 115 | 0.594247 | pskrunner14 |
cc77f3e8f23ca5abef0546d9387061bf4cd532c0 | 2,160 | cpp | C++ | Engine/src/Components/UI/LayoutComponent.cpp | SpectralCascade/ossium | f9d00de8313c0f91942eb311c20de8d74aa41735 | [
"MIT"
] | 1 | 2019-01-02T15:35:05.000Z | 2019-01-02T15:35:05.000Z | Engine/src/Components/UI/LayoutComponent.cpp | SpectralCascade/ossium | f9d00de8313c0f91942eb311c20de8d74aa41735 | [
"MIT"
] | 2 | 2018-11-11T21:29:05.000Z | 2019-01-02T15:34:10.000Z | Engine/src/Components/UI/LayoutComponent.cpp | SpectralCascade/ossium | f9d00de8313c0f91942eb311c20de8d74aa41735 | [
"MIT"
] | null | null | null | #include "LayoutComponent.h"
#include "LayoutSurface.h"
using namespace std;
namespace Ossium
{
BaseComponent* LayoutComponent::ComponentFactory(void* target_entity)
{
return nullptr;
}
LayoutComponent::LayoutComponent() {}
LayoutComponent::~LayoutComponent() {}
void LayoutComponent::... | 33.230769 | 115 | 0.649074 | SpectralCascade |
cc79a10f195b24ee64dee6b05423e5d472e61e41 | 1,790 | hpp | C++ | libember/Headers/ember/glow/GlowSignal.hpp | purefunsolutions/ember-plus | d022732f2533ad697238c6b5210d7fc3eb231bfc | [
"BSL-1.0"
] | 78 | 2015-07-31T14:46:38.000Z | 2022-03-28T09:28:28.000Z | libember/Headers/ember/glow/GlowSignal.hpp | purefunsolutions/ember-plus | d022732f2533ad697238c6b5210d7fc3eb231bfc | [
"BSL-1.0"
] | 81 | 2015-08-03T07:58:19.000Z | 2022-02-28T16:21:19.000Z | libember/Headers/ember/glow/GlowSignal.hpp | purefunsolutions/ember-plus | d022732f2533ad697238c6b5210d7fc3eb231bfc | [
"BSL-1.0"
] | 49 | 2015-08-03T12:53:10.000Z | 2022-03-17T17:25:49.000Z | /*
libember -- C++ 03 implementation of the Ember+ Protocol
Copyright (C) 2012-2016 Lawo GmbH (http://www.lawo.com).
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 __LIBEMBER_GLOW_GLOWSIGNAL_... | 30.338983 | 91 | 0.6 | purefunsolutions |
cc7b8e491205d45097cb667f8eabebbe167534ac | 4,818 | hpp | C++ | source/GcLib/directx/VertexBuffer.hpp | Mugenri/Touhou-Danmakufu-ph3sx-2 | 4ab7e40682341ff41d7467b83bb64c9a669a6064 | [
"MIT"
] | null | null | null | source/GcLib/directx/VertexBuffer.hpp | Mugenri/Touhou-Danmakufu-ph3sx-2 | 4ab7e40682341ff41d7467b83bb64c9a669a6064 | [
"MIT"
] | null | null | null | source/GcLib/directx/VertexBuffer.hpp | Mugenri/Touhou-Danmakufu-ph3sx-2 | 4ab7e40682341ff41d7467b83bb64c9a669a6064 | [
"MIT"
] | null | null | null | #pragma once
#include "../pch.h"
#include "DxConstant.hpp"
namespace directx {
struct BufferLockParameter {
UINT lockOffset = 0U;
DWORD lockFlag = 0U;
void* data = nullptr;
size_t dataCount = 0U;
size_t dataStride = 1U;
BufferLockParameter() {
lockOffset = 0U;
lockFlag = 0U;
data = nullptr;
... | 28.011628 | 110 | 0.74616 | Mugenri |
cc7fa0fdb0833c69c92b3315963a928e6b6b5e23 | 4,967 | cpp | C++ | Css343Lab4/Classic.cpp | Whompithian/css343-project4 | b527c4a35126c0be41bf0a2c0d70d1a2d986b164 | [
"MIT"
] | null | null | null | Css343Lab4/Classic.cpp | Whompithian/css343-project4 | b527c4a35126c0be41bf0a2c0d70d1a2d986b164 | [
"MIT"
] | null | null | null | Css343Lab4/Classic.cpp | Whompithian/css343-project4 | b527c4a35126c0be41bf0a2c0d70d1a2d986b164 | [
"MIT"
] | null | null | null | /*
* @file Classic.cpp
* @brief This class represents a classic movie. It is a type of DVD media
* that is categorized, or sorted, by date then famous actor. It also
* allows comparison operations, as well as assignment.
* @author Brendan Sweeney, SID 1161836
* @date March 9, 2012
*/
... | 23.21028 | 79 | 0.601369 | Whompithian |
cc808f61475662d3cc8815b2816b27415f5377ea | 2,234 | cpp | C++ | datastructures/binarytrees/largest_nonadj_sum.cpp | oishikm12/cpp-collection | 4a454a6ed5b24570c7df0d4f0b692ae98c1ffa97 | [
"MIT"
] | 5 | 2021-05-17T12:32:42.000Z | 2021-12-12T21:09:55.000Z | datastructures/binarytrees/largest_nonadj_sum.cpp | oishikm12/cpp-collection | 4a454a6ed5b24570c7df0d4f0b692ae98c1ffa97 | [
"MIT"
] | null | null | null | datastructures/binarytrees/largest_nonadj_sum.cpp | oishikm12/cpp-collection | 4a454a6ed5b24570c7df0d4f0b692ae98c1ffa97 | [
"MIT"
] | 1 | 2021-05-13T20:29:57.000Z | 2021-05-13T20:29:57.000Z | #include <iostream>
using namespace std;
class Node {
public:
int data;
Node *left, *right;
Node() = default;
Node(int d) : data(d), left(NULL), right(NULL) {}
~Node() { delete left, delete right, left = right = NULL; }
};
Node* buildTree();
pair<int, int> getLargestDisjoi... | 30.189189 | 95 | 0.647269 | oishikm12 |
cc85072f23c7cc6c31573bf529aadbee3c0ed4c6 | 1,153 | hpp | C++ | ex00/Cat.hpp | Gundul42/CPP_04 | 61cf8baeb9a9ed931ba423517937e697984c009b | [
"MIT"
] | null | null | null | ex00/Cat.hpp | Gundul42/CPP_04 | 61cf8baeb9a9ed931ba423517937e697984c009b | [
"MIT"
] | null | null | null | ex00/Cat.hpp | Gundul42/CPP_04 | 61cf8baeb9a9ed931ba423517937e697984c009b | [
"MIT"
] | null | null | null | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Cat.hpp :+: :+: :+: ... | 36.03125 | 80 | 0.235039 | Gundul42 |
cc86109edbffb3c2f6b28cbe7f5da7b06f6b2759 | 6,967 | cc | C++ | okl4_kernel/okl4_2.1.1-patch.9/tools/magpie/test/fullsystem/pistachio/kernel/kdb/api/v4/input.cc | CyberQueenMara/baseband-research | e1605537e10c37e161fff1a3416b908c9894f204 | [
"MIT"
] | 77 | 2018-12-31T22:12:09.000Z | 2021-12-31T22:56:13.000Z | okl4_kernel/okl4_2.1.1-patch.9/tools/magpie/test/fullsystem/pistachio/kernel/kdb/api/v4/input.cc | CyberQueenMara/baseband-research | e1605537e10c37e161fff1a3416b908c9894f204 | [
"MIT"
] | null | null | null | okl4_kernel/okl4_2.1.1-patch.9/tools/magpie/test/fullsystem/pistachio/kernel/kdb/api/v4/input.cc | CyberQueenMara/baseband-research | e1605537e10c37e161fff1a3416b908c9894f204 | [
"MIT"
] | 24 | 2019-01-20T15:51:52.000Z | 2021-12-25T18:29:13.000Z | /*********************************************************************
*
* Copyright (C) 2002-2004, 2006, Karlsruhe University
*
* File path: kdb/api/v4/input.cc
* Description: Version 4 specific input functions
*
* Redistribution and use in source and binar... | 23.379195 | 77 | 0.56782 | CyberQueenMara |
cc870d8419fa4828708cf513941a4e2d2b0f6a29 | 4,627 | cpp | C++ | tests/bm_heterogeneous_count_ptr.cpp | mpusz/unordered_v2 | a3ab5a08b335b15fc60454ecc0c1d2199d01a5a1 | [
"MIT"
] | 5 | 2018-04-08T17:03:16.000Z | 2019-06-01T19:12:47.000Z | tests/bm_heterogeneous_count_ptr.cpp | mpusz/unordered_v2 | a3ab5a08b335b15fc60454ecc0c1d2199d01a5a1 | [
"MIT"
] | null | null | null | tests/bm_heterogeneous_count_ptr.cpp | mpusz/unordered_v2 | a3ab5a08b335b15fc60454ecc0c1d2199d01a5a1 | [
"MIT"
] | null | null | null | // The MIT License (MIT)
//
// Copyright (c) 2017 Mateusz Pusz
//
// 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, co... | 33.773723 | 114 | 0.707154 | mpusz |
cc8a5816aeb17ade6844422e5df3784f6a38df3b | 1,887 | cpp | C++ | tests/board_test.cpp | JAOP1/GO | 48c0275fd37bb552c0db4b968391a5a95ed6c860 | [
"MIT"
] | null | null | null | tests/board_test.cpp | JAOP1/GO | 48c0275fd37bb552c0db4b968391a5a95ed6c860 | [
"MIT"
] | null | null | null | tests/board_test.cpp | JAOP1/GO | 48c0275fd37bb552c0db4b968391a5a95ed6c860 | [
"MIT"
] | 2 | 2019-12-12T18:55:35.000Z | 2019-12-12T19:03:35.000Z | #include "../Include/BoardGame.hpp"
#include <gtest/gtest.h>
#include <iostream>
TEST(Board_Test, Creation)
{
Graph G = graphs::Grid(4, 4);
BoardGame Go(G, 0.5);
std::vector<char> initial_state(25, 'N');
ASSERT_EQ(Go.show_current_state(), initial_state);
}
TEST(Board_Test, Valid_action)
{
Graph G... | 23.886076 | 61 | 0.615262 | JAOP1 |
cc8c6ce05dd60ee0584e8e40f3aa68c2e377f35d | 356 | cpp | C++ | spriterengine/objectinfo/tagobjectinfo.cpp | Squalr/SpriterPlusPlus | ad728307b1d31238c6164b7b42936e6212e77a9e | [
"Zlib"
] | 92 | 2015-11-03T08:46:58.000Z | 2021-03-12T22:36:45.000Z | spriterengine/objectinfo/tagobjectinfo.cpp | Squalr/SpriterPlusPlus | ad728307b1d31238c6164b7b42936e6212e77a9e | [
"Zlib"
] | 15 | 2015-11-04T12:16:36.000Z | 2019-09-03T17:13:16.000Z | spriterengine/objectinfo/tagobjectinfo.cpp | Squalr/SpriterPlusPlus | ad728307b1d31238c6164b7b42936e6212e77a9e | [
"Zlib"
] | 53 | 2015-11-04T12:25:50.000Z | 2021-04-30T06:14:37.000Z | #include "tagobjectinfo.h"
namespace SpriterEngine
{
TagObjectInfo::TagObjectInfo()
{
}
void TagObjectInfo::setObjectToLinear(UniversalObjectInterface *bObject, real t, UniversalObjectInterface *resultObject)
{
resultObject->setTagList(&tagList);
}
void TagObjectInfo::pushBackTag(const std::string * tag)
... | 16.952381 | 121 | 0.758427 | Squalr |
cc8e38dd536004284e8293e73b86b9c6766c613e | 2,090 | cpp | C++ | TurboX-Engine/TurboX-Engine/W_Hierarchy.cpp | moon-funding/TurboX-Engine | 0ebcc94f0c93fa0a5d1f88f8f46e90df28b5c8a6 | [
"MIT",
"Zlib",
"Apache-2.0",
"BSD-3-Clause"
] | 6 | 2020-10-08T03:21:06.000Z | 2022-01-19T14:50:01.000Z | TurboX-Engine/TurboX-Engine/W_Hierarchy.cpp | moon-funding/TurboX-Engine | 0ebcc94f0c93fa0a5d1f88f8f46e90df28b5c8a6 | [
"MIT",
"Zlib",
"Apache-2.0",
"BSD-3-Clause"
] | 11 | 2021-01-09T09:40:54.000Z | 2021-12-01T22:28:35.000Z | TurboX-Engine/TurboX-Engine/W_Hierarchy.cpp | moon-funding/TurboX-Engine | 0ebcc94f0c93fa0a5d1f88f8f46e90df28b5c8a6 | [
"MIT",
"Zlib",
"Apache-2.0",
"BSD-3-Clause"
] | 3 | 2020-12-15T00:36:33.000Z | 2021-01-05T08:28:17.000Z | #include "W_Hierarchy.h"
#include "ModuleScene.h"
#include "Application.h"
W_Hierarchy::W_Hierarchy()
{
open_pop_up = false;
}
W_Hierarchy::~W_Hierarchy()
{
}
void W_Hierarchy::Draw()
{
ImGui::Begin("Hierarchy");
ImGuiTreeNodeFlags default_flags = ImGuiTreeNodeFlags_NoTreePushOnOpen;
DrawGameObject(App->scene->... | 21.111111 | 118 | 0.705263 | moon-funding |
cc8f1137e28203976c0898359fa68819376026d1 | 693 | hpp | C++ | src/include/data/lpc_encoded_data.hpp | sahaRatul/SELA | ca09cbd80bd6084bca08288d980c7f6928571bbb | [
"MIT"
] | 241 | 2015-07-23T16:24:01.000Z | 2022-01-25T11:16:30.000Z | src/include/data/lpc_encoded_data.hpp | sahaRatul/lpc | ca09cbd80bd6084bca08288d980c7f6928571bbb | [
"MIT"
] | 23 | 2015-07-24T05:50:06.000Z | 2021-09-20T07:41:50.000Z | src/include/data/lpc_encoded_data.hpp | sahaRatul/lpc | ca09cbd80bd6084bca08288d980c7f6928571bbb | [
"MIT"
] | 29 | 2015-07-23T15:39:36.000Z | 2022-01-29T09:50:23.000Z | #ifndef _LPC_ENCODED_DATA_H_
#define _LPC_ENCODED_DATA_H_
#include <cstdint>
#include <vector>
namespace data {
class LpcEncodedData {
public:
uint8_t optimalLpcOrder;
uint8_t bitsPerSample;
const std::vector<int32_t> quantizedReflectionCoefficients;
const std::vector<int32_t> residues;
LpcEncoded... | 28.875 | 176 | 0.756133 | sahaRatul |
cc99208330900c78abe94288f0dbb1b7e162dad0 | 2,623 | hpp | C++ | shared/sdk/regenny/re7/via/clr/VM.hpp | fengjixuchui/REFramework | 131b25ef58064b1c36cdd15072c30f5fbd9a7ad8 | [
"MIT"
] | 583 | 2021-06-05T06:56:54.000Z | 2022-03-31T19:16:09.000Z | src/sdk/regenny/re7/via/clr/VM.hpp | drowhunter/REFramework | 49ef476d13439110cc0ae565cc323cd615d9b327 | [
"MIT"
] | 198 | 2021-07-13T02:54:19.000Z | 2022-03-29T20:28:53.000Z | src/sdk/regenny/re7/via/clr/VM.hpp | drowhunter/REFramework | 49ef476d13439110cc0ae565cc323cd615d9b327 | [
"MIT"
] | 73 | 2021-07-12T18:52:12.000Z | 2022-03-31T17:12:56.000Z | #pragma once
namespace regenny::System {
struct Type;
}
namespace regenny::tdb49 {
struct TypeDefinition;
}
namespace regenny::via::typeinfo {
struct TypeInfo;
}
namespace regenny::tdb49 {
struct TDB;
}
namespace regenny::tdb49 {
struct FieldDefinition;
}
namespace regenny::tdb49 {
struct MethodDefinition;
}
namespace ... | 25.970297 | 66 | 0.598551 | fengjixuchui |
cc9c4fbdb45d79d0fd9d176302543bd38330349a | 875 | cpp | C++ | Linked List/stackImplementionLinkedList.cpp | harshallgarg/Diversified-Programming | 7e6fb135c4639dbaa0651b85f98397f994a5b11d | [
"MIT"
] | 2 | 2020-08-09T02:09:50.000Z | 2020-08-09T07:07:47.000Z | Linked List/stackImplementionLinkedList.cpp | harshallgarg/Diversified-Programming | 7e6fb135c4639dbaa0651b85f98397f994a5b11d | [
"MIT"
] | null | null | null | Linked List/stackImplementionLinkedList.cpp | harshallgarg/Diversified-Programming | 7e6fb135c4639dbaa0651b85f98397f994a5b11d | [
"MIT"
] | 5 | 2020-09-21T12:49:07.000Z | 2020-09-29T16:13:09.000Z | //
// stackImplementionLinkedList.cpp
// C++
//
// Created by Anish Mookherjee on 31/03/20.
// Copyright © 2020 Anish Mookherjee. All rights reserved.
//
#include <iostream>
using namespace std;
struct StackNode
{
int data;
StackNode *next;
StackNode(int a)
{
data = a;
next = NULL;... | 14.830508 | 75 | 0.56 | harshallgarg |
cc9d4c05139e6626c27df4354e9a42179b77abaa | 884 | cpp | C++ | HDUOJ/6324/observation.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | 2 | 2018-02-14T01:59:31.000Z | 2018-03-28T03:30:45.000Z | HDUOJ/6324/observation.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | null | null | null | HDUOJ/6324/observation.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | 2 | 2017-12-30T02:46:35.000Z | 2018-03-28T03:30:49.000Z | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <cmath>
#include <string>
#include <cstring>
#include <iomanip>
#include <climits>
#include <stack>
#include <queue>
#include <vector>
#include <set>
#include <map>
#include <functional>
#include <iterator>
using namespace std;
#define SIZE 100010
in... | 16.37037 | 41 | 0.46267 | codgician |
cca299c64288ae42223e36c1a26c99d8b4c9b402 | 1,095 | cpp | C++ | src/lib/helium_us915_netjoin.cpp | olicooper/arduino-lorawan | caceeb49b1f5520d11668aeb7c587ef1a96ca9ad | [
"MIT"
] | 198 | 2016-11-04T13:49:53.000Z | 2022-03-30T13:25:51.000Z | src/lib/helium_us915_netjoin.cpp | olicooper/arduino-lorawan | caceeb49b1f5520d11668aeb7c587ef1a96ca9ad | [
"MIT"
] | 134 | 2017-03-02T05:25:20.000Z | 2022-03-31T19:26:33.000Z | src/lib/helium_us915_netjoin.cpp | olicooper/arduino-lorawan | caceeb49b1f5520d11668aeb7c587ef1a96ca9ad | [
"MIT"
] | 51 | 2017-11-16T15:14:38.000Z | 2022-03-09T09:41:43.000Z | /*
Module: helium_us915_netjoin.cpp
Function:
Arduino_LoRaWAN_Helium_us915::NetBeginRegionInit()
Copyright notice:
See LICENSE file accompanying this project.
Author:
Terry Moore, MCCI Corporation February 2020
*/
#include <Arduino_LoRaWAN_Helium.h>
#include <Arduino_LoRaWAN_lmic.h>
/**************... | 21.9 | 78 | 0.400913 | olicooper |
cca39a7cb53ac0ae1c18f46c4f89f85cb5920f12 | 4,123 | cpp | C++ | src/Mesh.cpp | arpg/torch | 601ec64854008d97e39d2ca86ef4a93f79930967 | [
"Apache-2.0"
] | 1 | 2018-05-29T03:08:54.000Z | 2018-05-29T03:08:54.000Z | src/Mesh.cpp | arpg/torch | 601ec64854008d97e39d2ca86ef4a93f79930967 | [
"Apache-2.0"
] | null | null | null | src/Mesh.cpp | arpg/torch | 601ec64854008d97e39d2ca86ef4a93f79930967 | [
"Apache-2.0"
] | 1 | 2017-07-24T11:58:52.000Z | 2017-07-24T11:58:52.000Z | #include <torch/Mesh.h>
#include <torch/Context.h>
#include <torch/Point.h>
#include <torch/Normal.h>
namespace torch
{
Mesh::Mesh(std::shared_ptr<Context> context) :
SingleGeometry(context, "Mesh")
{
Initialize();
}
Mesh::~Mesh()
{
}
size_t Mesh::GetVertexCount() const
{
return m_vertices.size();
}
void Mes... | 22.166667 | 74 | 0.695367 | arpg |
cca7779d4cd5e5cd70a4749115a3ec5bd72eebd3 | 23 | cpp | C++ | ch15/ex15.34.35.36.38/andquery.cpp | shawabhishek/Cpp-Primer | c93143965e62c7ab833f43586ab1c759a5707cfc | [
"CC0-1.0"
] | 7,897 | 2015-01-02T04:35:38.000Z | 2022-03-31T08:32:50.000Z | ch15/ex15.34.35.36.38/andquery.cpp | shawabhishek/Cpp-Primer | c93143965e62c7ab833f43586ab1c759a5707cfc | [
"CC0-1.0"
] | 456 | 2015-01-01T15:47:52.000Z | 2022-02-07T04:17:56.000Z | ch15/ex15.34.35.36.38/andquery.cpp | shawabhishek/Cpp-Primer | c93143965e62c7ab833f43586ab1c759a5707cfc | [
"CC0-1.0"
] | 3,887 | 2015-01-01T13:23:23.000Z | 2022-03-31T15:05:21.000Z | #include "andquery.h"
| 7.666667 | 21 | 0.695652 | shawabhishek |
cca836501907614c4cf55c6d3a70e53d93748bd8 | 3,113 | cpp | C++ | modules/core/src/single_instance.cpp | tizenorg/platform.framework.web.wrt-commons | 5835a89c8b013c00b828fecf04f423adc9e5d561 | [
"Apache-2.0"
] | null | null | null | modules/core/src/single_instance.cpp | tizenorg/platform.framework.web.wrt-commons | 5835a89c8b013c00b828fecf04f423adc9e5d561 | [
"Apache-2.0"
] | null | null | null | modules/core/src/single_instance.cpp | tizenorg/platform.framework.web.wrt-commons | 5835a89c8b013c00b828fecf04f423adc9e5d561 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2011 Samsung Electronics Co., Ltd 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
... | 25.941667 | 118 | 0.65628 | tizenorg |
cca8c4e26b768dddcf516e3d929d11c4b025470c | 1,656 | cpp | C++ | leetcode_cpp/reverse_linked_list_II.cpp | jialing3/corner_cases | 54a316518fcf4b43ae96ed9935b4cf91ade1eed9 | [
"Apache-2.0"
] | 1 | 2015-05-29T08:40:48.000Z | 2015-05-29T08:40:48.000Z | leetcode_cpp/reverse_linked_list_II.cpp | jialing3/corner_cases | 54a316518fcf4b43ae96ed9935b4cf91ade1eed9 | [
"Apache-2.0"
] | null | null | null | leetcode_cpp/reverse_linked_list_II.cpp | jialing3/corner_cases | 54a316518fcf4b43ae96ed9935b4cf91ade1eed9 | [
"Apache-2.0"
] | null | null | null | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode(int x) : val(x), next(NULL) {}
* };
*/
class Solution {
public:
ListNode *reverseBetween(ListNode *head, int m, int n) {
// case in which no swap is needed
if (m == n) ... | 23.657143 | 61 | 0.407005 | jialing3 |
ccad57f059424cb47150cc48cf0d7c1a417233bc | 1,294 | cpp | C++ | Code/C++/sorted_zig_zag_array.cpp | Atul-Kashyap/Algo-Tree | 5ab65e86551be2843cae85a7c9860a91883abede | [
"MIT"
] | 356 | 2021-01-24T11:34:15.000Z | 2022-03-16T08:39:02.000Z | Code/C++/sorted_zig_zag_array.cpp | Atul-Kashyap/Algo-Tree | 5ab65e86551be2843cae85a7c9860a91883abede | [
"MIT"
] | 1,778 | 2021-01-24T10:52:44.000Z | 2022-01-30T12:34:05.000Z | Code/C++/sorted_zig_zag_array.cpp | Atul-Kashyap/Algo-Tree | 5ab65e86551be2843cae85a7c9860a91883abede | [
"MIT"
] | 782 | 2021-01-24T10:54:10.000Z | 2022-03-23T10:16:04.000Z | /*
Approach : First sort the array then, swap pairs of elements
except the first element. Example - keep a[0], swap a[1] with a[2], swap a[3] with a[4], and so on.
So, we will take array and its size as parameters, run a loop from i to size of the array
and swap every pair of element using swap function. At the end of... | 23.527273 | 99 | 0.544822 | Atul-Kashyap |
ccae3b7834d20ce2f8ca76cac69cb28f2bfc65a9 | 1,895 | cpp | C++ | cpp-leetcode/leetcode284-peeking-iterator_with_main.cpp | yanglr/LeetCodeOJ | 27dd1e4a2442b707deae7921e0118752248bef5e | [
"MIT"
] | 45 | 2021-07-25T00:45:43.000Z | 2022-03-24T05:10:43.000Z | cpp-leetcode/leetcode284-peeking-iterator_with_main.cpp | yanglr/LeetCodeOJ | 27dd1e4a2442b707deae7921e0118752248bef5e | [
"MIT"
] | null | null | null | cpp-leetcode/leetcode284-peeking-iterator_with_main.cpp | yanglr/LeetCodeOJ | 27dd1e4a2442b707deae7921e0118752248bef5e | [
"MIT"
] | 15 | 2021-07-25T00:40:52.000Z | 2021-12-27T06:25:31.000Z | #include <iostream>
#include <queue>
#include <vector>
#include <assert.h>
#include <algorithm>
using namespace std;
class Iterator {
const vector<int>* nums;
int index;
public:
Iterator(const vector<int>& nums) {
this->nums = &nums;
this->index = 0;
}
Iterator(const Iterator& iter)... | 22.831325 | 80 | 0.590501 | yanglr |
ccaf786c723eb9e2b5b472bcfd90366cc2650e7a | 1,767 | cc | C++ | src/bin/ngrammerge.cc | unixnme/opengrm_ngram | ce9b55b406c681902a20c4b547bdd254a8a399e7 | [
"Apache-2.0"
] | 1 | 2020-05-11T00:44:55.000Z | 2020-05-11T00:44:55.000Z | src/bin/ngrammerge.cc | unixnme/opengrm_ngram | ce9b55b406c681902a20c4b547bdd254a8a399e7 | [
"Apache-2.0"
] | null | null | null | src/bin/ngrammerge.cc | unixnme/opengrm_ngram | ce9b55b406c681902a20c4b547bdd254a8a399e7 | [
"Apache-2.0"
] | null | null | null |
// 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 writing, software
// distributed... | 45.307692 | 79 | 0.728919 | unixnme |
ccb088631b6ec9d949e90b8364b37129fe8757a2 | 7,307 | cpp | C++ | src/app/app.cpp | zgpio/tree.nvim | 5ff3644fb4eddc6754488263c21745e057a16f05 | [
"BSD-3-Clause"
] | 199 | 2019-10-20T12:53:41.000Z | 2022-03-28T09:04:41.000Z | src/app/app.cpp | zgpio/tree.nvim | 5ff3644fb4eddc6754488263c21745e057a16f05 | [
"BSD-3-Clause"
] | 12 | 2019-10-21T01:16:56.000Z | 2022-01-27T03:22:55.000Z | src/app/app.cpp | zgpio/tree.nvim | 5ff3644fb4eddc6754488263c21745e057a16f05 | [
"BSD-3-Clause"
] | 7 | 2019-11-01T02:13:58.000Z | 2021-11-30T17:34:24.000Z | #include <cinttypes>
#include <iostream>
#include "app.h"
using std::cout;
using std::endl;
using std::string;
namespace tree
{
App::App(nvim::Nvim *nvim, int chan_id) : m_nvim(nvim), chan_id(chan_id)
{
INFO("chan_id: %d\n", chan_id);
auto &a = *m_nvim;
// NOTE: 必须同步调用
a.execute_lua("require('tree').... | 34.630332 | 115 | 0.545641 | zgpio |
ccb2ac203882c1bd30851b880da094ac75bbbf43 | 1,470 | hpp | C++ | code/jsbind/v8/global.hpp | Chobolabs/jsbind | 874b41df6bbc9a3b756e828c64e43e1b6cbd4386 | [
"MIT"
] | 57 | 2019-03-30T21:26:08.000Z | 2022-03-11T02:22:09.000Z | code/jsbind/v8/global.hpp | Chobolabs/jsbind | 874b41df6bbc9a3b756e828c64e43e1b6cbd4386 | [
"MIT"
] | null | null | null | code/jsbind/v8/global.hpp | Chobolabs/jsbind | 874b41df6bbc9a3b756e828c64e43e1b6cbd4386 | [
"MIT"
] | 3 | 2020-04-11T09:19:44.000Z | 2021-09-30T07:30:45.000Z | // jsbind
// Copyright (c) 2019 Chobolabs Inc.
// http://www.chobolabs.com/
//
// Distributed under the MIT Software License
// See accompanying file LICENSE.txt or copy at
// http://opensource.org/licenses/MIT
//
#pragma once
#if defined(JSBIND_NODE)
# include <node.h>
#endif
#include <v8.h>
#include <new>
names... | 19.6 | 94 | 0.533333 | Chobolabs |
ccb569defcd3a351a7d493e3bccf21d2d98e4c18 | 703 | cpp | C++ | backend/drone_ros_ws/src/drone_app/test/BBoxTest.cpp | Flytte/flytte | 36e2dc886c7437c3e3fff5a082296d5bc1f10bd7 | [
"BSD-3-Clause"
] | 3 | 2018-05-08T18:01:48.000Z | 2019-06-27T07:31:20.000Z | backend/drone_ros_ws/src/drone_app/test/BBoxTest.cpp | Flytte/flytte | 36e2dc886c7437c3e3fff5a082296d5bc1f10bd7 | [
"BSD-3-Clause"
] | null | null | null | backend/drone_ros_ws/src/drone_app/test/BBoxTest.cpp | Flytte/flytte | 36e2dc886c7437c3e3fff5a082296d5bc1f10bd7 | [
"BSD-3-Clause"
] | null | null | null | #include "common/BBox.hpp"
#include <gtest/gtest.h>
TEST(BBox, defaultConstructor)
{
BBox box;
EXPECT_EQ(0, box.posX);
EXPECT_EQ(0, box.posY);
EXPECT_EQ(0, box.w);
EXPECT_EQ(0, box.h);
EXPECT_EQ(0, box.rotX);
EXPECT_EQ(0, box.rotY);
EXPECT_EQ(0, box.rotZ);
}
TEST(BBox, copyConstructo... | 19 | 42 | 0.623044 | Flytte |
ccb5c6c9346c1270e6beacf912fe3b038cdd64fb | 4,923 | cpp | C++ | owGame/Sky/Sky.cpp | Chaos192/OpenWow | 1d91a51fafeedadc67122a3e9372ec4637a48434 | [
"Apache-2.0"
] | 30 | 2017-09-02T20:25:47.000Z | 2021-12-31T10:12:07.000Z | owGame/Sky/Sky.cpp | Chaos192/OpenWow | 1d91a51fafeedadc67122a3e9372ec4637a48434 | [
"Apache-2.0"
] | null | null | null | owGame/Sky/Sky.cpp | Chaos192/OpenWow | 1d91a51fafeedadc67122a3e9372ec4637a48434 | [
"Apache-2.0"
] | 23 | 2018-02-04T17:18:33.000Z | 2022-03-22T09:45:36.000Z | #include "stdafx.h"
// Include
#include "SkyManager.h"
// General
#include "Sky.h"
namespace
{
const float cSkyMultiplier = 36.0f;
template<typename T>
inline T GetByTimeTemplate(std::vector<Sky::SSkyInterpolatedParam<T>> param, uint32 _time)
{
if (param.empty())
return T();
T parBegin, parEnd;
uint32... | 28.789474 | 163 | 0.700995 | Chaos192 |
ccbcb51d561c51fc823b3a68ecb2125657108454 | 2,228 | cpp | C++ | game.cpp | Niakr1s/ctetris | 59335c61e58dfef2ab0385f724fedaf62e8721a4 | [
"MIT"
] | null | null | null | game.cpp | Niakr1s/ctetris | 59335c61e58dfef2ab0385f724fedaf62e8721a4 | [
"MIT"
] | null | null | null | game.cpp | Niakr1s/ctetris | 59335c61e58dfef2ab0385f724fedaf62e8721a4 | [
"MIT"
] | 1 | 2019-12-16T13:58:58.000Z | 2019-12-16T13:58:58.000Z | #include "game.h"
#include <time.h>
#include <chrono>
#include <functional>
#include <thread>
#include "consolekeyboardcontroller.h"
#include "gamestate.h"
using namespace std::chrono_literals;
Game::Game()
: Game(std::make_shared<ConsoleDisplay>(20, 14),
std::make_shared<ConsoleKeyboardController>(... | 23.208333 | 77 | 0.671454 | Niakr1s |
ccbeadcd7cdc4214ba78636dafecb47cb6bcc123 | 441 | hpp | C++ | sort/shaker_sort.hpp | lis411/sorting | 57b113849c0a598c96aecc5fe6fd27582f141bfa | [
"MIT"
] | null | null | null | sort/shaker_sort.hpp | lis411/sorting | 57b113849c0a598c96aecc5fe6fd27582f141bfa | [
"MIT"
] | null | null | null | sort/shaker_sort.hpp | lis411/sorting | 57b113849c0a598c96aecc5fe6fd27582f141bfa | [
"MIT"
] | null | null | null | #ifndef SHAKER_SORT_HPP
#define SHAKER_SORT_HPP
template<typename Iterator>
void shaker_sort(Iterator b, Iterator e)
{
while(b != e)
{
for(auto bb = b; std::next(bb) != e; ++bb)
{
if(*bb > *std::next(bb))
std::swap(*bb, *std::next(bb));
}
--e;
if(b == e)
break;
for(auto ee = std::prev(e);... | 11.605263 | 44 | 0.530612 | lis411 |