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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
a8fe3b55761f362b0821ccd9baef02f66e6062de | 2,176 | cpp | C++ | cpp/leetcode/ColorBorder.cpp | danyfang/SourceCode | 8168f6058648f2a330a7354daf3a73a4d8a4e730 | [
"MIT"
] | null | null | null | cpp/leetcode/ColorBorder.cpp | danyfang/SourceCode | 8168f6058648f2a330a7354daf3a73a4d8a4e730 | [
"MIT"
] | null | null | null | cpp/leetcode/ColorBorder.cpp | danyfang/SourceCode | 8168f6058648f2a330a7354daf3a73a4d8a4e730 | [
"MIT"
] | null | null | null | //Leetcode Problem No 1034. Coloring A Border
//Solution written by Xuqiang Fang on 14 May, 2019
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <unordered_map>
#include <unordered_set>
#include <stack>
#include <queue>
using namespace std;
class Solution {
public:
vector<vec... | 26.536585 | 91 | 0.433364 | danyfang |
a8fe59bc8fe0206488169b2f9639aa2ab4157d20 | 2,530 | cpp | C++ | src/CoreLib/LogSystem/Logger.cpp | AntoineJT/BurgWar | 8e435bd58dda0610d7dfc3ba6d313bd443c9b4b8 | [
"MIT"
] | 1 | 2021-11-13T11:58:07.000Z | 2021-11-13T11:58:07.000Z | src/CoreLib/LogSystem/Logger.cpp | AntoineJT/BurgWar | 8e435bd58dda0610d7dfc3ba6d313bd443c9b4b8 | [
"MIT"
] | null | null | null | src/CoreLib/LogSystem/Logger.cpp | AntoineJT/BurgWar | 8e435bd58dda0610d7dfc3ba6d313bd443c9b4b8 | [
"MIT"
] | null | null | null | // Copyright (C) 2020 Jérôme Leclercq
// This file is part of the "Burgwar" project
// For conditions of distribution and use, see copyright notice in LICENSE
#include <CoreLib/LogSystem/Logger.hpp>
#include <CoreLib/BurgApp.hpp>
#include <CoreLib/LogSystem/LogSink.hpp>
#include <array>
#include <charconv>
#include <s... | 23 | 127 | 0.673913 | AntoineJT |
a8ff96576a6bf235560f1d82a684460cd2409946 | 3,279 | cpp | C++ | components/script/core/sources/script_library_manager.cpp | untgames/funner | c91614cda55fd00f5631d2bd11c4ab91f53573a3 | [
"MIT"
] | 7 | 2016-03-30T17:00:39.000Z | 2017-03-27T16:04:04.000Z | components/script/core/sources/script_library_manager.cpp | untgames/Funner | c91614cda55fd00f5631d2bd11c4ab91f53573a3 | [
"MIT"
] | 4 | 2017-11-21T11:25:49.000Z | 2018-09-20T17:59:27.000Z | components/script/core/sources/script_library_manager.cpp | untgames/Funner | c91614cda55fd00f5631d2bd11c4ab91f53573a3 | [
"MIT"
] | 4 | 2016-11-29T15:18:40.000Z | 2017-03-27T16:04:08.000Z | #include "shared.h"
using namespace script;
namespace
{
/*
Константы
*/
const char* COMPONENTS_MASK = "script.binds.*"; //маска имён компонентов скриптовых библиотек
/*
Реализация менеджера библиотек
*/
class LibraryManagerImpl
{
public:
typedef LibraryManager::BindHandler BindHa... | 26.02381 | 108 | 0.642269 | untgames |
a8ffc21781f7dd9c6cc48c1821e0f9f5ae1ebc29 | 662 | cpp | C++ | problems/letter-combinations-of-a-phone-number/src/Solution.cpp | bbackspace/leetcode | bc3f235fcd42c37800e6ef7eefab4c826d70f3d3 | [
"CC0-1.0"
] | null | null | null | problems/letter-combinations-of-a-phone-number/src/Solution.cpp | bbackspace/leetcode | bc3f235fcd42c37800e6ef7eefab4c826d70f3d3 | [
"CC0-1.0"
] | null | null | null | problems/letter-combinations-of-a-phone-number/src/Solution.cpp | bbackspace/leetcode | bc3f235fcd42c37800e6ef7eefab4c826d70f3d3 | [
"CC0-1.0"
] | null | null | null | class Solution {
const vector<string> keypad = {"", "", "abc", "def", "ghi", "jkl", "mno", "pqrs", "tuv", "wxyz"};
string s;
vector<string> ans;
void comb(string &dig, int d) {
if (dig.length() == 0) {
return;
}
if (d == dig.length()) {
ans.push_back(s);
... | 23.642857 | 101 | 0.432024 | bbackspace |
d100cc31b223afbda5fc9b7bcbbe8c3d2d20ec9e | 4,808 | cpp | C++ | NFIQ2/NFIQ2/NFIQ2Algorithm/src/features/OCLHistogramFeature.cpp | mahizhvannan/PYNFIQ2 | 56eac2d780c9b5becd0ca600ffa6198d3a0115a7 | [
"MIT"
] | null | null | null | NFIQ2/NFIQ2/NFIQ2Algorithm/src/features/OCLHistogramFeature.cpp | mahizhvannan/PYNFIQ2 | 56eac2d780c9b5becd0ca600ffa6198d3a0115a7 | [
"MIT"
] | null | null | null | NFIQ2/NFIQ2/NFIQ2Algorithm/src/features/OCLHistogramFeature.cpp | mahizhvannan/PYNFIQ2 | 56eac2d780c9b5becd0ca600ffa6198d3a0115a7 | [
"MIT"
] | 1 | 2022-02-14T03:16:05.000Z | 2022-02-14T03:16:05.000Z | #include "OCLHistogramFeature.h"
#include "FeatureFunctions.h"
#include "include/NFIQException.h"
#include "include/Timer.hpp"
#include <sstream>
#if defined WINDOWS || defined WIN32
#include <windows.h>
#include <float.h>
#define isnan _isnan // re-define isnan
#else
#ifndef isnan
#define isnan(x) ((x) != (x))
#end... | 26.130435 | 117 | 0.691764 | mahizhvannan |
d10447f20db2c6868d431b2832d8471f897f020f | 850 | cpp | C++ | tests/Test_ST_Policy_Safe.cpp | wuzhl2018/nano-signal-slot | 051588437938a262b0a9738da024afcab2e8b8e6 | [
"MIT"
] | null | null | null | tests/Test_ST_Policy_Safe.cpp | wuzhl2018/nano-signal-slot | 051588437938a262b0a9738da024afcab2e8b8e6 | [
"MIT"
] | null | null | null | tests/Test_ST_Policy_Safe.cpp | wuzhl2018/nano-signal-slot | 051588437938a262b0a9738da024afcab2e8b8e6 | [
"MIT"
] | null | null | null | #include <list>
#include "CppUnitTest.h"
#include "Test_Base.hpp"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace Nano_Tests
{
TEST_CLASS(Test_ST_Policy_Safe)
{
const int N = 64;
using Moo_T = Moo<Observer_STS>;
using Subject = Signal_Rng_STS;
TEST_... | 21.25 | 81 | 0.52 | wuzhl2018 |
d1065e8800a4f5fa75e67e4d231f97b5173ee5cf | 4,625 | hpp | C++ | rviz_default_plugins/test/rviz_default_plugins/publishers/odometry_publisher.hpp | EricCousineau-TRI/rviz | 3344a8ed63b134549eeb82682f0dee76f53b7565 | [
"BSD-3-Clause-Clear"
] | null | null | null | rviz_default_plugins/test/rviz_default_plugins/publishers/odometry_publisher.hpp | EricCousineau-TRI/rviz | 3344a8ed63b134549eeb82682f0dee76f53b7565 | [
"BSD-3-Clause-Clear"
] | null | null | null | rviz_default_plugins/test/rviz_default_plugins/publishers/odometry_publisher.hpp | EricCousineau-TRI/rviz | 3344a8ed63b134549eeb82682f0dee76f53b7565 | [
"BSD-3-Clause-Clear"
] | null | null | null | /*
* Copyright (c) 2018, Bosch Software Innovations GmbH.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyright
* n... | 36.132813 | 96 | 0.721297 | EricCousineau-TRI |
d106d308a5b4edbed76b7acdca490bd4b5fc0f06 | 2,320 | hpp | C++ | src/utils/lambda/lambda_info.hpp | hexoctal/zenith | eeef065ed62f35723da87c8e73a6716e50d34060 | [
"MIT"
] | 2 | 2021-03-18T16:25:04.000Z | 2021-11-13T00:29:27.000Z | src/utils/lambda/lambda_info.hpp | hexoctal/zenith | eeef065ed62f35723da87c8e73a6716e50d34060 | [
"MIT"
] | null | null | null | src/utils/lambda/lambda_info.hpp | hexoctal/zenith | eeef065ed62f35723da87c8e73a6716e50d34060 | [
"MIT"
] | 1 | 2021-11-13T00:29:30.000Z | 2021-11-13T00:29:30.000Z | /**
* @file
* @author __AUTHOR_NAME__ <mail@host.com>
* @copyright 2021 __COMPANY_LTD__
* @license <a href="https://opensource.org/licenses/MIT">MIT License</a>
*/
#ifndef ZEN_UTILS_LAMBDA_INFO_HPP
#define ZEN_UTILS_LAMBDA_INFO_HPP
#include <tuple>
namespace Zen {
/**
* Source: angeart - https://qiita.com/a... | 22.307692 | 122 | 0.656466 | hexoctal |
d107785855feb179e6adb8faafbf64f9988a0a23 | 3,064 | cpp | C++ | Common/MdfParser/IOParameterCollection.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 2 | 2017-04-19T01:38:30.000Z | 2020-07-31T03:05:32.000Z | Common/MdfParser/IOParameterCollection.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | null | null | null | Common/MdfParser/IOParameterCollection.cpp | achilex/MgDev | f7baf680a88d37659af32ee72b9a2046910b00d8 | [
"PHP-3.0"
] | 1 | 2021-12-29T10:46:12.000Z | 2021-12-29T10:46:12.000Z | //
// Copyright (C) 2007-2011 by Autodesk, Inc.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of version 2.1 of the GNU Lesser
// General Public License as published by the Free Software Foundation.
//
// This library is distributed in the hope that it will be use... | 30.336634 | 134 | 0.691906 | achilex |
d107d752afefac53db3abc46d66eb517ebcd3fc4 | 12,688 | cc | C++ | flare/rpc/protocol/protobuf/poppy_protocol.cc | AriCheng/flare | b2c84588fe4ac52f0875791d22284d7e063fd057 | [
"CC-BY-3.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | 868 | 2021-05-28T04:00:22.000Z | 2022-03-31T08:57:14.000Z | flare/rpc/protocol/protobuf/poppy_protocol.cc | AriCheng/flare | b2c84588fe4ac52f0875791d22284d7e063fd057 | [
"CC-BY-3.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | 33 | 2021-05-28T08:44:47.000Z | 2021-09-26T13:09:21.000Z | flare/rpc/protocol/protobuf/poppy_protocol.cc | AriCheng/flare | b2c84588fe4ac52f0875791d22284d7e063fd057 | [
"CC-BY-3.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | 122 | 2021-05-28T08:22:23.000Z | 2022-03-29T09:52:09.000Z | // Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License"); you may not use this
// file except in compliance with the License. You may obtain a copy of the
// License at
//
// https://opensource.org/licenses/BSD-3-Clause
//
// Unless req... | 34.291892 | 80 | 0.686239 | AriCheng |
d1081fc4968b3f1219b9d671908dd0311b4da809 | 30,165 | cxx | C++ | com/ole32/com/class/cerror.cxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | com/ole32/com/class/cerror.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | com/ole32/com/class/cerror.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //+-------------------------------------------------------------------
//
// File: cerror.cxx
//
// Contents: Implements COM extended error information.
//
// Classes: CErrorObject - Implements the COM error object.
//
// Functions: CoCreateErrorInfo = CreateErrorInfo
// CoGetError... | 26.69469 | 85 | 0.459506 | npocmaka |
d109752586cd1d82c191278962f520bf82dba9f4 | 5,117 | cpp | C++ | scene_with_camera/src/scene_with_camera.cpp | Phyllostachys/graphics-demos | bf1f1f10c95e0c9f752117ad23295ce06acdb17c | [
"MIT"
] | 1 | 2015-09-05T11:15:07.000Z | 2015-09-05T11:15:07.000Z | scene_with_camera/src/scene_with_camera.cpp | Phyllostachys/graphics-demos | bf1f1f10c95e0c9f752117ad23295ce06acdb17c | [
"MIT"
] | null | null | null | scene_with_camera/src/scene_with_camera.cpp | Phyllostachys/graphics-demos | bf1f1f10c95e0c9f752117ad23295ce06acdb17c | [
"MIT"
] | null | null | null | #include "cube.h"
#include "shader.h"
#include "glm/glm.hpp"
#include "glm/gtc/matrix_transform.hpp"
#include "glm/gtc/type_ptr.hpp"
#include "glad/glad.h"
#include "GLFW/glfw3.h"
#include <cstdio>
#include <iostream>
glm::vec3 cameraPos = glm::vec3(0.0, 0.05, 23.0);
glm::vec3 cameraFront = glm::vec3(0.0f, 0.0f, ... | 30.640719 | 113 | 0.62478 | Phyllostachys |
d109da67c973c23e1cb265405bde37933af512dd | 1,403 | cpp | C++ | src/function/scalar/string/suffix.cpp | AdamKorcz/duckdb | 1cc80b697c879161d3b1ed889b8e3338568edd2a | [
"MIT"
] | null | null | null | src/function/scalar/string/suffix.cpp | AdamKorcz/duckdb | 1cc80b697c879161d3b1ed889b8e3338568edd2a | [
"MIT"
] | null | null | null | src/function/scalar/string/suffix.cpp | AdamKorcz/duckdb | 1cc80b697c879161d3b1ed889b8e3338568edd2a | [
"MIT"
] | null | null | null | #include "duckdb/function/scalar/string_functions.hpp"
#include "duckdb/common/types/string_type.hpp"
#include "duckdb/common/exception.hpp"
using namespace std;
namespace duckdb {
static bool suffix(const string_t &str, const string_t &suffix);
struct SuffixOperator {
template <class TA, class TB, class TR> stat... | 28.632653 | 103 | 0.665716 | AdamKorcz |
d10aa175883debfa6a2ed2df0f352342fbe3048d | 211 | hpp | C++ | app/AppRunner.hpp | ChristopherCanfield/canfield_ant_simulator | 9ec671fe4936a8ed3a19f2c79a54e420092769fe | [
"MIT"
] | 1 | 2016-01-29T06:25:36.000Z | 2016-01-29T06:25:36.000Z | app/AppRunner.hpp | ChristopherCanfield/canfield_ant_simulator | 9ec671fe4936a8ed3a19f2c79a54e420092769fe | [
"MIT"
] | null | null | null | app/AppRunner.hpp | ChristopherCanfield/canfield_ant_simulator | 9ec671fe4936a8ed3a19f2c79a54e420092769fe | [
"MIT"
] | null | null | null | #pragma once
#include "App.hpp"
// Christopher D. Canfield
// October 2013
// AppRunner.hpp
namespace cdc
{
class AppRunner
{
public:
AppRunner() {}
~AppRunner() {}
void execute(App& app);
};
} | 9.590909 | 26 | 0.630332 | ChristopherCanfield |
d10c1022c5bef0fe89795eefc41779312f3a3d25 | 4,146 | cpp | C++ | tcss/src/v20201101/model/ModifyVirusMonitorSettingRequest.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | tcss/src/v20201101/model/ModifyVirusMonitorSettingRequest.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | tcss/src/v20201101/model/ModifyVirusMonitorSettingRequest.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 27.64 | 104 | 0.733237 | suluner |
d111089c7c015c4b4d0049c87a575b577a2ccebf | 3,841 | hpp | C++ | libraries/eos-vm/include/eosio/vm/opcodes.hpp | pizzachain/pizchain | ba51553e46521ca7b265d7045d678312a32f8140 | [
"MIT"
] | 1,313 | 2018-01-09T01:49:01.000Z | 2022-02-26T11:10:40.000Z | src/vm/wasm/eos-vm/include/eosio/vm/opcodes.hpp | linnbenton/WaykiChain | 91dc0aa5b28b63f00ea71c57f065e1b4ad4b124a | [
"MIT"
] | 32 | 2018-06-07T10:21:21.000Z | 2021-12-07T06:53:42.000Z | src/vm/wasm/eos-vm/include/eosio/vm/opcodes.hpp | linnbenton/WaykiChain | 91dc0aa5b28b63f00ea71c57f065e1b4ad4b124a | [
"MIT"
] | 322 | 2018-02-26T03:41:36.000Z | 2022-02-08T08:12:16.000Z | #pragma once
#include <eosio/vm/opcodes_def.hpp>
#include <eosio/vm/variant.hpp>
#include <map>
namespace eosio { namespace vm {
enum opcodes {
EOS_VM_CONTROL_FLOW_OPS(EOS_VM_CREATE_ENUM)
EOS_VM_BR_TABLE_OP(EOS_VM_CREATE_ENUM)
EOS_VM_RETURN_OP(EOS_VM_CREATE_ENUM)
EOS_VM_CALL_OPS(EOS_VM_CREA... | 38.41 | 66 | 0.787555 | pizzachain |
d1112cc9ba8a907848b28fc67ed6bbfbefee1454 | 6,818 | cxx | C++ | Servers/ServerManager/vtkSMLookupTableProxy.cxx | matthb2/ParaView-beforekitwareswtichedtogit | e47e57d6ce88444d9e6af9ab29f9db8c23d24cef | [
"BSD-3-Clause"
] | 1 | 2021-07-31T19:38:03.000Z | 2021-07-31T19:38:03.000Z | Servers/ServerManager/vtkSMLookupTableProxy.cxx | matthb2/ParaView-beforekitwareswtichedtogit | e47e57d6ce88444d9e6af9ab29f9db8c23d24cef | [
"BSD-3-Clause"
] | null | null | null | Servers/ServerManager/vtkSMLookupTableProxy.cxx | matthb2/ParaView-beforekitwareswtichedtogit | e47e57d6ce88444d9e6af9ab29f9db8c23d24cef | [
"BSD-3-Clause"
] | 2 | 2019-01-22T19:51:40.000Z | 2021-07-31T19:38:05.000Z | /*=========================================================================
Program: ParaView
Module: $RCSfile$
Copyright (c) Kitware, Inc.
All rights reserved.
See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
This software is distributed WITHOUT ANY WARRANTY; without... | 34.09 | 79 | 0.601496 | matthb2 |
d1113b9fefec12a5e6eee6acf59642f0769b9b9f | 7,343 | cpp | C++ | sounddev/SoundDeviceBase.cpp | Wapitiii/openmpt | 339c5f7f7e2c4a522415b42f0b6a9f4b2e2ab3bd | [
"BSD-3-Clause"
] | 4 | 2020-06-15T07:02:08.000Z | 2021-08-01T22:38:46.000Z | sounddev/SoundDeviceBase.cpp | glowcoil/microplug | 5c2708b89837dbc38a1f0e7cd793e5e53838e4a4 | [
"BSD-3-Clause"
] | null | null | null | sounddev/SoundDeviceBase.cpp | glowcoil/microplug | 5c2708b89837dbc38a1f0e7cd793e5e53838e4a4 | [
"BSD-3-Clause"
] | 1 | 2021-06-07T03:14:59.000Z | 2021-06-07T03:14:59.000Z | /*
* SoundDeviceBase.cpp
* -------------------
* Purpose: Sound device drivers base class.
* Notes : (currently none)
* Authors: Olivier Lapicque
* OpenMPT Devs
* The OpenMPT source code is released under the BSD license. Read LICENSE for more details.
*/
#include "stdafx.h"
#include "SoundDeviceBa... | 20.397222 | 169 | 0.74234 | Wapitiii |
d1139d7bdcff4c9e08d8f74bf3d09b42a3febf52 | 1,111 | cpp | C++ | Algorithms/Easy/53.maximum-subarray.cpp | jtcheng/leetcode | db58973894757789d060301b589735b5985fe102 | [
"MIT"
] | null | null | null | Algorithms/Easy/53.maximum-subarray.cpp | jtcheng/leetcode | db58973894757789d060301b589735b5985fe102 | [
"MIT"
] | null | null | null | Algorithms/Easy/53.maximum-subarray.cpp | jtcheng/leetcode | db58973894757789d060301b589735b5985fe102 | [
"MIT"
] | null | null | null | /*
* @lc app=leetcode id=53 lang=cpp
*
* [53] Maximum Subarray
*
* https://leetcode.com/problems/maximum-subarray/description/
*
* algorithms
* Easy (42.60%)
* Total Accepted: 456.2K
* Total Submissions: 1.1M
* Testcase Example: '[-2,1,-3,4,-1,2,1,-5,4]'
*
* Given an integer array nums, find the contig... | 20.574074 | 79 | 0.588659 | jtcheng |
d11403f76131eec16664899bfef104119a86aa00 | 6,449 | cpp | C++ | src/Engine/Renderer/RenderTechnique/RenderTechnique.cpp | hoshiryu/Radium-Engine | 2bc3c475a8fb1948dad84d1278bf4d61258f3cda | [
"Apache-2.0"
] | null | null | null | src/Engine/Renderer/RenderTechnique/RenderTechnique.cpp | hoshiryu/Radium-Engine | 2bc3c475a8fb1948dad84d1278bf4d61258f3cda | [
"Apache-2.0"
] | null | null | null | src/Engine/Renderer/RenderTechnique/RenderTechnique.cpp | hoshiryu/Radium-Engine | 2bc3c475a8fb1948dad84d1278bf4d61258f3cda | [
"Apache-2.0"
] | null | null | null | #include <Engine/Renderer/RenderTechnique/RenderTechnique.hpp>
#include <Engine/Renderer/Material/BlinnPhongMaterial.hpp>
#include <Engine/Renderer/RenderTechnique/RenderParameters.hpp>
#include <Engine/Renderer/RenderTechnique/ShaderConfigFactory.hpp>
#include <Engine/Renderer/RenderTechnique/ShaderProgramManager.hpp... | 34.486631 | 99 | 0.627849 | hoshiryu |
d1169c4a8f2076df9ce85275cc2e537e6b1b629c | 5,867 | cpp | C++ | VerFI_for_attack/source/ReadCellReportFile.cpp | vinayby/VerFI | 96db0ca218b7c24d43c040745bf921b126a14f13 | [
"BSD-3-Clause"
] | null | null | null | VerFI_for_attack/source/ReadCellReportFile.cpp | vinayby/VerFI | 96db0ca218b7c24d43c040745bf921b126a14f13 | [
"BSD-3-Clause"
] | null | null | null | VerFI_for_attack/source/ReadCellReportFile.cpp | vinayby/VerFI | 96db0ca218b7c24d43c040745bf921b126a14f13 | [
"BSD-3-Clause"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////////
// COMPANY: Ruhr University Bochum, Embedded Security
// AUTHOR: Amir Moradi (for the paper: https://eprint.iacr.org/2019/1312 )
//////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2019, ... | 33.718391 | 107 | 0.626555 | vinayby |
d1172b49c256ce5be60183c366fa7adf6977eaf4 | 479 | hpp | C++ | src/atlas/graphics/Earth.hpp | Groutcho/atlas | b69b7759be0361ffdcbbba64501e07feb79143be | [
"MIT"
] | 5 | 2018-12-13T03:41:12.000Z | 2020-08-27T04:45:11.000Z | src/atlas/graphics/Earth.hpp | Groutcho/atlas | b69b7759be0361ffdcbbba64501e07feb79143be | [
"MIT"
] | 1 | 2020-09-08T07:26:59.000Z | 2020-09-08T09:21:44.000Z | src/atlas/graphics/Earth.hpp | Groutcho/atlas | b69b7759be0361ffdcbbba64501e07feb79143be | [
"MIT"
] | 5 | 2018-12-20T10:31:09.000Z | 2021-09-07T07:38:49.000Z | //#ifndef ATLAS_GRAPHICS_EARTH_HPP
//#define ATLAS_GRAPHICS_EARTH_HPP
//
//#include "AtlasGraphics.hpp"
//#include "Node.hpp"
//#include "SurfaceTile.hpp"
//
//namespace atlas
//{
// namespace graphics
// {
// /**
// * @brief The Earth node manages the rendering of the surface of the earth.
// ... | 19.958333 | 89 | 0.517745 | Groutcho |
d11818a9e60220e0a8c6ef0f7075d8f9b21b1c69 | 1,184 | hpp | C++ | IcarusDetector/Checkers/ArmorCheckerBase.hpp | RoboPioneers/ProjectIcarus | 85328c0206d77617fe7fbb81b2ca0cda805de849 | [
"MIT"
] | 1 | 2021-10-05T03:43:57.000Z | 2021-10-05T03:43:57.000Z | IcarusDetector/Checkers/ArmorCheckerBase.hpp | RoboPioneers/ProjectIcarus | 85328c0206d77617fe7fbb81b2ca0cda805de849 | [
"MIT"
] | null | null | null | IcarusDetector/Checkers/ArmorCheckerBase.hpp | RoboPioneers/ProjectIcarus | 85328c0206d77617fe7fbb81b2ca0cda805de849 | [
"MIT"
] | null | null | null | #pragma once
#include "../Framework/CheckerBase.hpp"
#include "../Components/PONElement.hpp"
#include <cmath>
namespace Icarus
{
/// Distance scenario based light bar checker base class.
class ArmorCheckerBase : public CheckerBase<PONElement>
{
public:
double MaxLeaningAngle {};
double... | 30.358974 | 99 | 0.597973 | RoboPioneers |
d1182965d6ae73674b0acea284736b76c82b5135 | 9,867 | cc | C++ | test/assimp_test.cc | leonlynch/cortex | 239ece88de004f35ef31ad3c57fb20b0b0d86bde | [
"MIT"
] | 1 | 2017-11-26T08:37:04.000Z | 2017-11-26T08:37:04.000Z | test/assimp_test.cc | leonlynch/cortex | 239ece88de004f35ef31ad3c57fb20b0b0d86bde | [
"MIT"
] | null | null | null | test/assimp_test.cc | leonlynch/cortex | 239ece88de004f35ef31ad3c57fb20b0b0d86bde | [
"MIT"
] | null | null | null | /**
* @file assimp_test.cc
*
* Copyright (c) 2013 Leon Lynch
*
* This file is licensed under the terms of the MIT license.
* See LICENSE file.
*/
#include <assimp/DefaultLogger.hpp>
#include <assimp/Importer.hpp>
#include <assimp/postprocess.h>
#include <assimp/scene.h>
#include <iostream>
#include <cstdio>
s... | 26.595687 | 99 | 0.666869 | leonlynch |
d11a5b1a0844f875585961a98af58bfd3e57f57c | 983 | hpp | C++ | app/dml/src/dml/dml_paras.hpp | alexrenz/bosen-2 | c61ac4e892ba2f6e02bd4595632b15f9e53450e2 | [
"BSD-3-Clause"
] | 370 | 2015-06-30T09:46:17.000Z | 2017-01-21T07:14:00.000Z | app/dml/src/dml/dml_paras.hpp | alexrenz/bosen-2 | c61ac4e892ba2f6e02bd4595632b15f9e53450e2 | [
"BSD-3-Clause"
] | 3 | 2016-11-08T19:45:19.000Z | 2016-11-11T13:21:19.000Z | app/dml/src/dml/dml_paras.hpp | alexrenz/bosen-2 | c61ac4e892ba2f6e02bd4595632b15f9e53450e2 | [
"BSD-3-Clause"
] | 159 | 2015-07-03T05:58:31.000Z | 2016-12-29T20:59:01.000Z | #ifndef APPS_DML_SRC_DML_DML_PARAS_H_
#define APPS_DML_SRC_DML_DML_PARAS_H_
struct DmlParas{
// original feature dimension
int src_feat_dim;
// target feature dimension
int dst_feat_dim;
// tradeoff parameter
float lambda;
// distance threshold
float thre;
// learning rate
float learn_rate;
int e... | 22.340909 | 63 | 0.743642 | alexrenz |
d11a707cd6e98882ae3ce8c991b6c3f63662d5ad | 1,953 | cpp | C++ | STL_C++/STL_String.cpp | rsghotra/AbdulBari | 2d2845608840ddda6e5153ec91966110ca7e25f5 | [
"Apache-2.0"
] | 1 | 2020-12-02T09:21:52.000Z | 2020-12-02T09:21:52.000Z | STL_C++/STL_String.cpp | rsghotra/AbdulBari | 2d2845608840ddda6e5153ec91966110ca7e25f5 | [
"Apache-2.0"
] | null | null | null | STL_C++/STL_String.cpp | rsghotra/AbdulBari | 2d2845608840ddda6e5153ec91966110ca7e25f5 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
int main() {
string s1{"happy"};
string s2{" birthday"};
string s3;
cout << "s1 is \"" << s1 << "\"; s2 is \"" << s2
<< "\"; s3 is \"" << s3 << '\"'
<< "\n\nThe results of comparing s2 and s1:" << boolalpha
<< "\n\nS2=... | 27.507042 | 71 | 0.47363 | rsghotra |
d11e96722b975adf26898b06877c7f42f8abc4ac | 796 | cc | C++ | src/tritonsort/mapreduce/common/PhaseZeroKVPairWriteStrategy.cc | anku94/themis_tritonsort | 68fd3e2f1c0b2947e187151a2e9717f6b9b0ed0d | [
"BSD-3-Clause"
] | 11 | 2015-12-14T05:35:17.000Z | 2021-11-08T22:02:32.000Z | src/tritonsort/mapreduce/common/PhaseZeroKVPairWriteStrategy.cc | anku94/themis_tritonsort | 68fd3e2f1c0b2947e187151a2e9717f6b9b0ed0d | [
"BSD-3-Clause"
] | null | null | null | src/tritonsort/mapreduce/common/PhaseZeroKVPairWriteStrategy.cc | anku94/themis_tritonsort | 68fd3e2f1c0b2947e187151a2e9717f6b9b0ed0d | [
"BSD-3-Clause"
] | 8 | 2015-12-22T19:31:16.000Z | 2020-12-15T12:09:00.000Z | #include "PhaseZeroKVPairWriteStrategy.h"
uint32_t PhaseZeroKVPairWriteStrategy::getOutputKeyLength(
uint32_t inputKeyLength) const {
return inputKeyLength;
}
uint32_t PhaseZeroKVPairWriteStrategy::getOutputValueLength(
uint32_t inputValueLength) const {
return sizeof(uint64_t);
}
void PhaseZeroKVPairWrite... | 27.448276 | 80 | 0.809045 | anku94 |
d11f94c143954afbbea823f954593499d5a789a8 | 2,938 | cpp | C++ | AfxHookGoldSrc/Store.cpp | markusforss/advancedfx | 0c427594e23c30b88081139c6b80f2688b7c211f | [
"MIT"
] | 339 | 2018-01-09T13:12:38.000Z | 2022-03-22T21:25:59.000Z | AfxHookGoldSrc/Store.cpp | markusforss/advancedfx | 0c427594e23c30b88081139c6b80f2688b7c211f | [
"MIT"
] | 474 | 2018-01-01T18:58:41.000Z | 2022-03-27T11:09:44.000Z | AfxHookGoldSrc/Store.cpp | markusforss/advancedfx | 0c427594e23c30b88081139c6b80f2688b7c211f | [
"MIT"
] | 77 | 2018-01-24T11:47:04.000Z | 2022-03-30T12:25:59.000Z | #include "stdafx.h"
#include "Store.h"
#include <stdexcept>
using namespace std;
////////////////////////////////////////////////////////////////////////////////
class FrequentStoreItem :
public IStoreItem
{
public:
FrequentStoreItem * NextFree;
FrequentStoreItem(FrequentStoreManager * manager)... | 16.505618 | 81 | 0.607216 | markusforss |
d12413b7256a74a0f415ef8c3464e153bab90b1d | 1,444 | cpp | C++ | C++ Code/Section01/sec01_mt_example.cpp | PacktPublishing/Mastering-Multithreading-with-Cplusplus | 9b0e5a7beeceb4a7262666fa2465fdda0104c9db | [
"MIT"
] | 10 | 2019-10-10T21:03:56.000Z | 2022-03-11T08:06:46.000Z | Section01/sec01_mt_example.cpp | PacktPublishing/Mastering-Multithreading-with-Cplusplus | 9b0e5a7beeceb4a7262666fa2465fdda0104c9db | [
"MIT"
] | null | null | null | Section01/sec01_mt_example.cpp | PacktPublishing/Mastering-Multithreading-with-Cplusplus | 9b0e5a7beeceb4a7262666fa2465fdda0104c9db | [
"MIT"
] | 9 | 2019-09-08T09:15:13.000Z | 2022-01-07T13:12:06.000Z | /*
sec01_mt_example.cpp - main file for the Section01 multithreaded example.
2016/10/30, Maya Posch
*/
#include <iostream>
#include <thread>
#include <mutex>
#include <vector>
#include <random>
using namespace std;
// --- Globals
mutex values_mtx;
mutex cout_mtx;
vector<int> values;
int randGen(const int& min, co... | 21.552239 | 164 | 0.640582 | PacktPublishing |
d125ee08684e41e34c0b31326a809ace45e3b996 | 44,123 | cpp | C++ | lib/Hask/WorkerWrapperPass.cpp | bollu/lz | f5d09b70956072a56c1d9cc0e6907a0261c108a5 | [
"Apache-2.0"
] | 12 | 2020-12-12T17:54:33.000Z | 2022-01-12T00:34:37.000Z | lib/Hask/WorkerWrapperPass.cpp | bollu/lz | f5d09b70956072a56c1d9cc0e6907a0261c108a5 | [
"Apache-2.0"
] | 23 | 2020-11-27T18:53:24.000Z | 2021-12-03T15:29:24.000Z | lib/Hask/WorkerWrapperPass.cpp | bollu/lz | f5d09b70956072a56c1d9cc0e6907a0261c108a5 | [
"Apache-2.0"
] | 1 | 2020-12-12T17:56:56.000Z | 2020-12-12T17:56:56.000Z | #include "Hask/HaskDialect.h"
#include "Hask/HaskOps.h"
#include "mlir/IR/Attributes.h"
#include "mlir/IR/BlockAndValueMapping.h"
#include "mlir/IR/Builders.h"
#include "mlir/IR/DialectImplementation.h"
#include "mlir/IR/OpImplementation.h"
#include "mlir/IR/Types.h"
#include "mlir/Support/LLVM.h"
#include "mlir/Suppor... | 34.552075 | 116 | 0.640233 | bollu |
d1261471d3344588b1edeee41b378ac3b103d969 | 1,522 | cpp | C++ | findLargestWordInDictionary.cpp | harshallgarg/CPP | 4d15c5e5d426bb00d192368d21924ec9f017445f | [
"MIT"
] | 2 | 2020-08-09T02:09:50.000Z | 2020-08-09T07:07:47.000Z | findLargestWordInDictionary.cpp | harshallgarg/CPP | 4d15c5e5d426bb00d192368d21924ec9f017445f | [
"MIT"
] | null | null | null | findLargestWordInDictionary.cpp | harshallgarg/CPP | 4d15c5e5d426bb00d192368d21924ec9f017445f | [
"MIT"
] | 4 | 2020-05-25T10:24:14.000Z | 2021-05-03T07:52:35.000Z | //leetcode solution
class Solution {
public:
bool isSubsequence(string word,string s)
{
int m=word.length(),n=s.length();
int i,j;
for(i=0,j=0;i<m&&j<n;j++)
if(word.at(i)==s.at(j))
i++;
return i==m;
}
string findLongestWord(string s, vector<str... | 19.766234 | 115 | 0.489488 | harshallgarg |
d1266dd63716968b56af1eec682713c3d8810254 | 15,405 | cpp | C++ | src/ndnSIM/NFD/tests/daemon/mgmt/face-manager.t.cpp | NDNLink/NDN-Chord | cfabf8f56eea2c4ba47052ce145a939ebdc21e57 | [
"MIT"
] | 1 | 2021-09-07T04:12:15.000Z | 2021-09-07T04:12:15.000Z | src/ndnSIM/NFD/tests/daemon/mgmt/face-manager.t.cpp | NDNLink/NDN-Chord | cfabf8f56eea2c4ba47052ce145a939ebdc21e57 | [
"MIT"
] | null | null | null | src/ndnSIM/NFD/tests/daemon/mgmt/face-manager.t.cpp | NDNLink/NDN-Chord | cfabf8f56eea2c4ba47052ce145a939ebdc21e57 | [
"MIT"
] | 1 | 2020-07-15T06:21:03.000Z | 2020-07-15T06:21:03.000Z | /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2014-2018, Regents of the University of California,
* Arizona Board of Regents,
* Colorado State University,
* University Pierre & Marie Curie, Sorbonne... | 35.577367 | 106 | 0.727556 | NDNLink |
d1274674e98c07b167b67cc3c6fda955077c5ef6 | 8,592 | cpp | C++ | src/libraries/criterion/cpu/ForceAlignmentCriterion.cpp | lithathampan/wav2letter | 8abf8431d99da147cc4aefc289ad33626e13de6f | [
"BSD-3-Clause"
] | null | null | null | src/libraries/criterion/cpu/ForceAlignmentCriterion.cpp | lithathampan/wav2letter | 8abf8431d99da147cc4aefc289ad33626e13de6f | [
"BSD-3-Clause"
] | null | null | null | src/libraries/criterion/cpu/ForceAlignmentCriterion.cpp | lithathampan/wav2letter | 8abf8431d99da147cc4aefc289ad33626e13de6f | [
"BSD-3-Clause"
] | null | null | null | /**
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "libraries/criterion/cpu/ForceAlignmentCriterion.h"
#include <algorithm>
#include <cmath>
... | 28.170492 | 80 | 0.551443 | lithathampan |
d12930a94255a4ec9b44c1f3f3a5906d763baae9 | 1,766 | cpp | C++ | drazy/sieve_phi.cpp | gbuenoandrade/Manual-da-Sarrada | dc44666b8f926428164447997b5ea8363ebd6fda | [
"MIT"
] | null | null | null | drazy/sieve_phi.cpp | gbuenoandrade/Manual-da-Sarrada | dc44666b8f926428164447997b5ea8363ebd6fda | [
"MIT"
] | null | null | null | drazy/sieve_phi.cpp | gbuenoandrade/Manual-da-Sarrada | dc44666b8f926428164447997b5ea8363ebd6fda | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define DEBUG_ON 1
#define INF 0x3f3f3f3f
#define NSYNC ios::sync_with_stdio(false);
#define FOR(i,a,b) for(int i=a; i<(b); ++i)
#define FOR0(i,b) for(int i=0; i<(b); ++i)
#define TRAV(it,c) for(__typeof((c).begin()) it=(c).begin(); it!=(c).end(); ++it)
#define RTRAV(it,c... | 21.277108 | 90 | 0.556059 | gbuenoandrade |
d12954839358b9d5ed89bb220b0da36a5a437e1d | 8,991 | cpp | C++ | MasterControl/screensharing.cpp | CrankZ/ScreenSharing-FileTransfer-in-LAN | a6959e2c9c0ca725cf115d43509250d210bf0f17 | [
"MIT"
] | 87 | 2018-11-12T14:49:27.000Z | 2022-03-13T06:42:28.000Z | MasterControl/screensharing.cpp | 55gY/ScreenSharing-FileTransfer-in-LAN | 4b034b70f3e42f4a66eaf8aae1ebc13ca7886e3c | [
"MIT"
] | 3 | 2018-11-20T06:20:52.000Z | 2019-06-07T17:20:07.000Z | MasterControl/screensharing.cpp | 55gY/ScreenSharing-FileTransfer-in-LAN | 4b034b70f3e42f4a66eaf8aae1ebc13ca7886e3c | [
"MIT"
] | 54 | 2018-11-13T02:11:08.000Z | 2021-12-30T14:30:59.000Z | #include "screensharing.h"
ScreenSharing::ScreenSharing(int num=1)
{
quality = 60;
mutex = new QMutex;
mutex->lock();
flag = 0;
lock = true;
readSettings();
sender = new Sender();
QScreen *src = QApplication::primaryScreen();
QPixmap firstPixmap1 = src->grabWindow(QApplication::de... | 32.225806 | 148 | 0.542987 | CrankZ |
d12db1b8334448197c74b2e31a0fef8b48169f77 | 3,297 | cpp | C++ | src/Server.cpp | sempr-tk/sempr_ros | 55f12bddc2d0d461d9fb0799a85d630e07012c4b | [
"BSD-3-Clause"
] | null | null | null | src/Server.cpp | sempr-tk/sempr_ros | 55f12bddc2d0d461d9fb0799a85d630e07012c4b | [
"BSD-3-Clause"
] | null | null | null | src/Server.cpp | sempr-tk/sempr_ros | 55f12bddc2d0d461d9fb0799a85d630e07012c4b | [
"BSD-3-Clause"
] | null | null | null | #include <sempr/nodes/ECNodeBuilder.hpp>
#include <sempr/component/TextComponent.hpp>
#include <sempr/component/TripleContainer.hpp>
#include <sempr/component/TripleVector.hpp>
#include <sempr/component/TriplePropertyMap.hpp>
#include <sempr/component/AffineTransform.hpp>
#include <sempr/component/GeosGeometry.hpp>
#i... | 33.30303 | 83 | 0.672733 | sempr-tk |
d12dcdcf3363f1abcfd99c1d672e582842c059d2 | 311 | cpp | C++ | stl/src/nothrow.cpp | isra-fel/STL | 6ae9a578b4f52193dc523922c943a2214a873577 | [
"Apache-2.0"
] | 8,232 | 2019-09-16T22:51:24.000Z | 2022-03-31T03:55:39.000Z | stl/src/nothrow.cpp | isra-fel/STL | 6ae9a578b4f52193dc523922c943a2214a873577 | [
"Apache-2.0"
] | 2,263 | 2019-09-17T05:19:55.000Z | 2022-03-31T21:05:47.000Z | stl/src/nothrow.cpp | isra-fel/STL | 6ae9a578b4f52193dc523922c943a2214a873577 | [
"Apache-2.0"
] | 1,276 | 2019-09-16T22:51:40.000Z | 2022-03-31T03:30:05.000Z | // Copyright (c) Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
// define nothrow object
#ifdef CRTDLL2
#undef CRTDLL2
#endif
#ifdef MRTDLL
#undef MRTDLL
#endif
#include <new>
_STD_BEGIN
const nothrow_t nothrow = nothrow_t(); // define nothrow
_STD_END
| 16.368421 | 59 | 0.713826 | isra-fel |
d12f2665d4e92753df196e57c7058703da1c4a9f | 2,477 | cpp | C++ | DRCHEF.cpp | ankiiitraj/questionsSolved | 8452b120935a9c3d808b45f27dcdc05700d902fc | [
"MIT"
] | null | null | null | DRCHEF.cpp | ankiiitraj/questionsSolved | 8452b120935a9c3d808b45f27dcdc05700d902fc | [
"MIT"
] | 1 | 2020-02-24T19:45:57.000Z | 2020-02-24T19:45:57.000Z | DRCHEF.cpp | ankiiitraj/questionsSolved | 8452b120935a9c3d808b45f27dcdc05700d902fc | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
void __print(int x) {cerr << x;}
void __print(long x) {cerr << x;}
void __print(long long x) {cerr << x;}
void __print(unsigned x) {cerr << x;}
void __print(unsigned long x) {cerr << x;}
void __print(unsigned long long x) {cerr << x;}
void __print(float x) {cerr << x;}
void ... | 24.524752 | 118 | 0.520791 | ankiiitraj |
d131fd6621072f48196c39832098e8eb8011b366 | 113 | cpp | C++ | demo/main.cpp | Nolnocn/Bayesian-Inference | 76ee29171c6e3a4a69b752c1f68ae3fef2526f92 | [
"MIT"
] | 1 | 2021-07-07T02:45:55.000Z | 2021-07-07T02:45:55.000Z | demo/main.cpp | Nolnocn/Bayes-Classifier | 76ee29171c6e3a4a69b752c1f68ae3fef2526f92 | [
"MIT"
] | null | null | null | demo/main.cpp | Nolnocn/Bayes-Classifier | 76ee29171c6e3a4a69b752c1f68ae3fef2526f92 | [
"MIT"
] | null | null | null |
#include "GolfDemo.hpp"
int main( int argc, const char* argv[] )
{
GolfDemo gd;
gd.init();
return 0;
}
| 10.272727 | 40 | 0.60177 | Nolnocn |
d13267976bba1f88a5cf0d2d93181d4877051c04 | 1,334 | cpp | C++ | introduction_examples/main.cpp | baykamsay/cs-201 | e8e2083748643a2bd4eed313ebb73c652d525a50 | [
"MIT"
] | null | null | null | introduction_examples/main.cpp | baykamsay/cs-201 | e8e2083748643a2bd4eed313ebb73c652d525a50 | [
"MIT"
] | null | null | null | introduction_examples/main.cpp | baykamsay/cs-201 | e8e2083748643a2bd4eed313ebb73c652d525a50 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
#include "GradeBook.h" // include definition of class GradeBook
void averageForMultipleSetsOfGrades(GradeBook G){
int cnt;
double avg;
char answer;
cnt = 1;
do{
avg = G.determineCourseAverage();
cout << "\nAverage of course " << cnt++ << " is " << avg << endl << end... | 24.254545 | 93 | 0.646177 | baykamsay |
d134d5a6294862e54fcc64dcba2e7c16bde8c9dc | 1,289 | hpp | C++ | cmdstan/stan/lib/stan_math/stan/math/prim/scal/prob/lognormal_rng.hpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | cmdstan/stan/lib/stan_math/stan/math/prim/scal/prob/lognormal_rng.hpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | cmdstan/stan/lib/stan_math/stan/math/prim/scal/prob/lognormal_rng.hpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | #ifndef STAN_MATH_PRIM_SCAL_PROB_LOGNORMAL_RNG_HPP
#define STAN_MATH_PRIM_SCAL_PROB_LOGNORMAL_RNG_HPP
#include <boost/random/lognormal_distribution.hpp>
#include <boost/random/variate_generator.hpp>
#include <stan/math/prim/scal/err/check_consistent_sizes.hpp>
#include <stan/math/prim/scal/err/check_finite.hpp>
#inclu... | 32.225 | 64 | 0.73623 | yizhang-cae |
d135a6ff9d3f6c6ec2db5836170015563bfaf28c | 1,297 | hpp | C++ | libadb/include/libadb/api/interactions/data/interaction-data-command-option.hpp | faserg1/adb | 65507dc17589ac6ec00caf2ecd80f6dbc4026ad4 | [
"MIT"
] | 1 | 2022-03-10T15:14:13.000Z | 2022-03-10T15:14:13.000Z | libadb/include/libadb/api/interactions/data/interaction-data-command-option.hpp | faserg1/adb | 65507dc17589ac6ec00caf2ecd80f6dbc4026ad4 | [
"MIT"
] | 9 | 2022-03-07T21:00:08.000Z | 2022-03-15T23:14:52.000Z | libadb/include/libadb/api/interactions/data/interaction-data-command-option.hpp | faserg1/adb | 65507dc17589ac6ec00caf2ecd80f6dbc4026ad4 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <variant>
#include <optional>
#include <cstdint>
#include <vector>
#include <libadb/libadb.hpp>
#include <nlohmann/json_fwd.hpp>
#include <libadb/api/interactions/data/application-command-option-type.hpp>
namespace adb::api
{
/**
* @brief Application Command Interactio... | 38.147059 | 166 | 0.720123 | faserg1 |
d136cd8109bd2a87c64d24ed66563d217d0f15e5 | 23,064 | cpp | C++ | libraries/eosiolib/tester/tester.cpp | James-Mart/Eden | 0ccc405a94575c5044f6ecfdfbcf65a28ed00f90 | [
"MIT"
] | null | null | null | libraries/eosiolib/tester/tester.cpp | James-Mart/Eden | 0ccc405a94575c5044f6ecfdfbcf65a28ed00f90 | [
"MIT"
] | null | null | null | libraries/eosiolib/tester/tester.cpp | James-Mart/Eden | 0ccc405a94575c5044f6ecfdfbcf65a28ed00f90 | [
"MIT"
] | null | null | null | #include <eosio/abi.hpp>
#include <eosio/from_string.hpp>
#include <eosio/tester.hpp>
namespace
{
using cb_alloc_type = void* (*)(void* cb_alloc_data, size_t size);
extern "C"
{
// clang-format off
[[clang::import_name("tester_create_chain2")]] uint32_t tester_create_chain2(const ch... | 37.260097 | 219 | 0.588319 | James-Mart |
d13c8b1eb83ddcfc22baa0d4fe0557ae6afd97bf | 986 | cpp | C++ | matrizes/c.cpp | RuthMaria/algoritmo | ec9ebf629598dd75a05e33861706f1a6bc956cd5 | [
"MIT"
] | null | null | null | matrizes/c.cpp | RuthMaria/algoritmo | ec9ebf629598dd75a05e33861706f1a6bc956cd5 | [
"MIT"
] | null | null | null | matrizes/c.cpp | RuthMaria/algoritmo | ec9ebf629598dd75a05e33861706f1a6bc956cd5 | [
"MIT"
] | null | null | null | #include<stdio.h>
#include<conio.h>
main(){
float mat[3][3];
int lin, col, maior = 0, menor = 999, plinha = 0, pcol = 0, plinha1 = 0, pcol1 = 0;
maior = mat[0][0];
for(lin = 0; lin < 3; lin++){
printf("\n");
for(col = 0; col < 3; col++){
printf("Li... | 29 | 90 | 0.389452 | RuthMaria |
d13f5c6bc6b6719d6f59776a2b84b64e053ddbd9 | 452 | hpp | C++ | vm/os-solaris-x86.64.hpp | erg/factor | 134e416b132a1c4f95b0ae15ab2f9a42893b6b6f | [
"BSD-2-Clause"
] | null | null | null | vm/os-solaris-x86.64.hpp | erg/factor | 134e416b132a1c4f95b0ae15ab2f9a42893b6b6f | [
"BSD-2-Clause"
] | null | null | null | vm/os-solaris-x86.64.hpp | erg/factor | 134e416b132a1c4f95b0ae15ab2f9a42893b6b6f | [
"BSD-2-Clause"
] | null | null | null | #include <ucontext.h>
namespace factor
{
#define UAP_STACK_POINTER(ucontext) (((ucontext_t *)ucontext)->uc_mcontext.gregs[RSP])
#define UAP_PROGRAM_COUNTER(ucontext) (((ucontext_t *)ucontext)->uc_mcontext.gregs[RIP])
#define UAP_SET_TOC_POINTER(uap, ptr) (void)0
#define CODE_TO_FUNCTION_POINTER(code) (void)0
#define... | 30.133333 | 88 | 0.794248 | erg |
d141213cb5a0dacb18be219f9b0eadb3e0853b6b | 2,027 | cpp | C++ | core/base/Request.cpp | forrestsong/fpay_demo | 7b254a1389b011c799497ad7d08bb8d8d349e557 | [
"MIT"
] | 1 | 2018-08-12T15:08:49.000Z | 2018-08-12T15:08:49.000Z | core/base/Request.cpp | forrestsong/fpay_demo | 7b254a1389b011c799497ad7d08bb8d8d349e557 | [
"MIT"
] | null | null | null | core/base/Request.cpp | forrestsong/fpay_demo | 7b254a1389b011c799497ad7d08bb8d8d349e557 | [
"MIT"
] | null | null | null | #include <iostream>
#include "Request.h"
using namespace std;
Request::Request()
: up(NULL, 0)
, cmd(NULL)
, parser(NULL)
, cpBuffer(NULL)
, od(NULL)
, os(0)
, protoType(PROTO_NONE)
{
}
Request::Request(const char *data, uint32_t sz, PROTO_T proto)
: up(data, sz)
, cmd(NULL)
... | 18.768519 | 73 | 0.537247 | forrestsong |
d144ee97976a4a83d249fb0857560284f9305e0f | 2,015 | cpp | C++ | source/code/programs/system/default_applications/main.cpp | luxe/CodeLang-compiler | 78837d90bdd09c4b5aabbf0586a5d8f8f0c1e76a | [
"MIT"
] | 33 | 2019-05-30T07:43:32.000Z | 2021-12-30T13:12:32.000Z | source/code/programs/system/default_applications/main.cpp | luxe/CodeLang-compiler | 78837d90bdd09c4b5aabbf0586a5d8f8f0c1e76a | [
"MIT"
] | 371 | 2019-05-16T15:23:50.000Z | 2021-09-04T15:45:27.000Z | source/code/programs/system/default_applications/main.cpp | UniLang/compiler | c338ee92994600af801033a37dfb2f1a0c9ca897 | [
"MIT"
] | 6 | 2019-08-22T17:37:36.000Z | 2020-11-07T07:15:32.000Z | #include <iostream>
#include "code/utilities/system/mime/mime_xml_creator.hpp"
#include "code/utilities/system/mime/mime_xml_creation_settings.hpp"
#include "code/utilities/filesystem/paths/lib.hpp"
#include "code/utilities/filesystem/files/creating/lib.hpp"
void Create_Mime_Xml(){
//create mime xml
Mime_Xml_... | 34.741379 | 96 | 0.706203 | luxe |
d14c6abb008fe02142c74237630e9626edcdea4b | 3,960 | cpp | C++ | src/Nokia5110.cpp | intoyuniot/Nokia5110 | 7d240b17aab230b661a8054ed998a256bbd608ca | [
"MIT"
] | null | null | null | src/Nokia5110.cpp | intoyuniot/Nokia5110 | 7d240b17aab230b661a8054ed998a256bbd608ca | [
"MIT"
] | null | null | null | src/Nokia5110.cpp | intoyuniot/Nokia5110 | 7d240b17aab230b661a8054ed998a256bbd608ca | [
"MIT"
] | null | null | null | /*
Adapted for IntoRobot by Robin, Sept 19, 2015
7-17-2011
Spark Fun Electronics 2011
Nathan Seidle
Modified on 03-12-2014 by ionpan
This code is public domain but you buy me a beer if you use this and we meet someday (Beerware license).
*/
#include "Nokia5110.h"
#define pgm_read_byte(addr) (*(con... | 26.577181 | 118 | 0.658838 | intoyuniot |
d14e08539a79b0f552345691eadb120ea7a6e513 | 52 | hpp | C++ | include/common/firmware/can_task.hpp | sotaoverride/ot3-firmwarre-sota | 0b1d52589c94635da47063468293608f0ed36e32 | [
"Apache-2.0"
] | null | null | null | include/common/firmware/can_task.hpp | sotaoverride/ot3-firmwarre-sota | 0b1d52589c94635da47063468293608f0ed36e32 | [
"Apache-2.0"
] | null | null | null | include/common/firmware/can_task.hpp | sotaoverride/ot3-firmwarre-sota | 0b1d52589c94635da47063468293608f0ed36e32 | [
"Apache-2.0"
] | null | null | null | #pragma once
namespace can_task {
void start();
} | 7.428571 | 20 | 0.692308 | sotaoverride |
d152e81423b8065f9304559d0862c3b60e4a6cee | 7,696 | cpp | C++ | src/abs.cpp | ivision-ufba/depth-face-detection | f70441eb9e72fa3f509458ffc202648c2f3e27d1 | [
"MIT"
] | 15 | 2017-11-01T11:39:32.000Z | 2021-04-02T02:42:59.000Z | src/abs.cpp | ivision-ufba/depth-face-detection | f70441eb9e72fa3f509458ffc202648c2f3e27d1 | [
"MIT"
] | 6 | 2017-07-26T17:55:27.000Z | 2020-11-15T22:04:35.000Z | src/abs.cpp | ivision-ufba/depth-face-detection | f70441eb9e72fa3f509458ffc202648c2f3e27d1 | [
"MIT"
] | 5 | 2018-05-09T13:42:17.000Z | 2020-01-17T06:22:59.000Z | #include <abs.hpp>
#include <cassert>
#include <exception>
#include <fstream>
#include <iostream>
#include <queue>
#include <sstream>
Abs::Abs(const std::string& s) { load(s); }
void Abs::crop(const cv::Rect& roi) {
const int rows = valid.rows;
const int cols = valid.cols;
for (int r = 0; r < rows; ++r)
f... | 29.829457 | 78 | 0.539891 | ivision-ufba |
d1550f620897a8c18990eeb4ef5a67cab4c5ac81 | 916 | cpp | C++ | LightOJ/1021 - Painful Bases - 1381065.cpp | Shefin-CSE16/Competitive-Programming | 7c792081ae1d4b7060893165de34ffe7b9b7caed | [
"MIT"
] | 5 | 2020-10-03T17:15:26.000Z | 2022-03-29T21:39:22.000Z | LightOJ/1021 - Painful Bases - 1381065.cpp | Shefin-CSE16/Competitive-Programming | 7c792081ae1d4b7060893165de34ffe7b9b7caed | [
"MIT"
] | null | null | null | LightOJ/1021 - Painful Bases - 1381065.cpp | Shefin-CSE16/Competitive-Programming | 7c792081ae1d4b7060893165de34ffe7b9b7caed | [
"MIT"
] | 1 | 2021-03-01T12:56:50.000Z | 2021-03-01T12:56:50.000Z | #include <bits/stdc++.h>
using namespace std;
#define ll long long
ll k, len, dp[1 << 16][25], base;
char num[20];
ll solve(ll msk, ll rem, ll pos)
{
if(pos == len)
return rem == 0;
ll &ret = dp[msk][rem];
if(ret != -1)
return ret;
ret = 0;
for(ll i = 0; i < len; i++) {
l... | 21.809524 | 70 | 0.417031 | Shefin-CSE16 |
d155800c646bf56d38af4204b087d19e71754b2c | 1,562 | cpp | C++ | URI/DateDiference.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 1 | 2018-08-28T19:58:40.000Z | 2018-08-28T19:58:40.000Z | URI/DateDiference.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 2 | 2017-04-16T00:48:05.000Z | 2017-08-03T20:12:26.000Z | URI/DateDiference.cpp | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 4 | 2016-03-04T19:42:00.000Z | 2018-01-08T11:42:00.000Z | #include <bits/stdc++.h>
template<typename T> T gcd(T a, T b) {
if(!b) return a;
return gcd(b, a % b);
}
template<typename T> T lcm(T a, T b) {
return a * b / gcd(a, b);
}
template<typename T> void chmin(T& a, T b) { a = (a > b) ? b : a; }
template<typename T> void chmax(T& a, T b) { a = (a < b) ? b : a; ... | 22 | 84 | 0.390525 | aajjbb |
d157d11278b4ad5d4f6eb2aaae0550febace4500 | 1,523 | cpp | C++ | sim/src/esp/sim_main.cpp | mincrmatt12/MSign | 745bd04bc2b38952f5b35cf81f5924bd8f00452e | [
"MIT"
] | 5 | 2019-11-04T17:01:46.000Z | 2020-06-18T07:07:34.000Z | sim/src/esp/sim_main.cpp | mincrmatt12/SignCode | 745bd04bc2b38952f5b35cf81f5924bd8f00452e | [
"MIT"
] | null | null | null | sim/src/esp/sim_main.cpp | mincrmatt12/SignCode | 745bd04bc2b38952f5b35cf81f5924bd8f00452e | [
"MIT"
] | 2 | 2020-06-18T07:07:37.000Z | 2020-10-14T04:41:12.000Z | #include "esp_log.h"
#include <FreeRTOS.h>
#include <stdarg.h>
#include <cstdio>
#include <lwip/netif.h>
#include <task.h>
#include <lwip/init.h>
#include <lwip/tcpip.h>
#include <netif/tapif.h>
#include <lwip/dns.h>
extern "C" void app_main();
void main_start_task(void*) {
app_main();
vTaskDelete(nullptr);
}
exte... | 21.757143 | 75 | 0.667761 | mincrmatt12 |
d15c86e8033277075351b291b6c52fe66dbf6480 | 1,055 | cpp | C++ | src/myBox.cpp | Lalaland/PixelPacker | aad646e6ab6beeb9804fcc0ea3b4f70443ffb98e | [
"BSD-2-Clause-FreeBSD"
] | 18 | 2016-05-30T16:52:25.000Z | 2022-01-07T19:09:34.000Z | src/myBox.cpp | Lalaland/PixelPacker | aad646e6ab6beeb9804fcc0ea3b4f70443ffb98e | [
"BSD-2-Clause-FreeBSD"
] | 2 | 2017-01-09T19:06:48.000Z | 2017-01-09T19:06:48.000Z | src/myBox.cpp | Lalaland/PixelPacker | aad646e6ab6beeb9804fcc0ea3b4f70443ffb98e | [
"BSD-2-Clause-FreeBSD"
] | 5 | 2015-03-17T02:24:14.000Z | 2022-01-07T19:09:54.000Z | /*
-------------------------------------------------------------------------
This file is part of PixelPacker, tools to pack textures into as small as space as possible.
PixelPacker version 1 of 6 March 2011
Copyright (C) 2011 Ethan Steinberg <ethan.steinberg@gmail.com>
This program is released under the terms of the... | 19.181818 | 92 | 0.55545 | Lalaland |
d15e089d8022b44902a2446ab98a9c680fbefa03 | 4,936 | cpp | C++ | external/bsd/atf/dist/atf-sh/atf-sh.cpp | calmsacibis995/minix | dfba95598f553b6560131d35a76658f1f8c9cf38 | [
"Unlicense"
] | null | null | null | external/bsd/atf/dist/atf-sh/atf-sh.cpp | calmsacibis995/minix | dfba95598f553b6560131d35a76658f1f8c9cf38 | [
"Unlicense"
] | null | null | null | external/bsd/atf/dist/atf-sh/atf-sh.cpp | calmsacibis995/minix | dfba95598f553b6560131d35a76658f1f8c9cf38 | [
"Unlicense"
] | null | null | null | //
// Automated Testing Framework (atf)
//
// Copyright (c) 2010 The NetBSD Foundation, Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain... | 30.85 | 78 | 0.613452 | calmsacibis995 |
d15eb14f4636021eddb55409fa343def67c8b30f | 8,216 | cpp | C++ | PrcAlpha/ImageExtractor.cpp | maxirmx/PdfImageExtract | d2714476740cb62fb81f549b9e0a94c1511644e2 | [
"MIT"
] | null | null | null | PrcAlpha/ImageExtractor.cpp | maxirmx/PdfImageExtract | d2714476740cb62fb81f549b9e0a94c1511644e2 | [
"MIT"
] | null | null | null | PrcAlpha/ImageExtractor.cpp | maxirmx/PdfImageExtract | d2714476740cb62fb81f549b9e0a94c1511644e2 | [
"MIT"
] | null | null | null | /******************************************************************************
Copyright (C) 2020 Maxim Samsonov
maxim@samsonov.net
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the "... | 33.8107 | 283 | 0.615385 | maxirmx |
d1609ecde0285d306a818ae8faf7a136157a2529 | 175 | cpp | C++ | 100000569/B/another.cpp | gongbo2018/codeup_contest | c61cd02f145c764b0eb2728fb2b3405314d522ca | [
"MIT"
] | 1 | 2020-08-14T09:33:51.000Z | 2020-08-14T09:33:51.000Z | 100000569/B/another.cpp | gongbo2018/codeup_contest | c61cd02f145c764b0eb2728fb2b3405314d522ca | [
"MIT"
] | null | null | null | 100000569/B/another.cpp | gongbo2018/codeup_contest | c61cd02f145c764b0eb2728fb2b3405314d522ca | [
"MIT"
] | null | null | null | #include <cstdio>
int main() {
int data[10];
for (int i=0;i<10;i++) {
scanf("%d", &data[i]);
}
for (int j=9; j>=0;j--) {
printf("%d\n", data[j]);
}
return 0;
}
| 10.9375 | 26 | 0.474286 | gongbo2018 |
d163f38fe1ea06fb34d229d3b3c5e5ab722fbd36 | 11,463 | hpp | C++ | include/caffe/loss_layers.hpp | xiaomi646/caffe_2d_mlabel | 912c92d6f3ba530e1abea79fb1ab2cb34aa5bd65 | [
"BSD-2-Clause"
] | 1 | 2015-07-08T15:30:06.000Z | 2015-07-08T15:30:06.000Z | include/caffe/loss_layers.hpp | xiaomi646/caffe_2d_mlabel | 912c92d6f3ba530e1abea79fb1ab2cb34aa5bd65 | [
"BSD-2-Clause"
] | null | null | null | include/caffe/loss_layers.hpp | xiaomi646/caffe_2d_mlabel | 912c92d6f3ba530e1abea79fb1ab2cb34aa5bd65 | [
"BSD-2-Clause"
] | null | null | null | // Copyright 2014 BVLC and contributors.
#ifndef CAFFE_LOSS_LAYERS_HPP_
#define CAFFE_LOSS_LAYERS_HPP_
#include <string>
#include <utility>
#include <vector>
#include "leveldb/db.h"
#include "pthread.h"
#include "boost/scoped_ptr.hpp"
#include "hdf5.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include ... | 33.615836 | 78 | 0.730524 | xiaomi646 |
d164bcc51b3bc70b7a3fbab916f75eba623a4f38 | 4,183 | cpp | C++ | MonoNative.Tests/mscorlib/System/Security/Cryptography/mscorlib_System_Security_Cryptography_MACTripleDES_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 7 | 2015-03-10T03:36:16.000Z | 2021-11-05T01:16:58.000Z | MonoNative.Tests/mscorlib/System/Security/Cryptography/mscorlib_System_Security_Cryptography_MACTripleDES_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 1 | 2020-06-23T10:02:33.000Z | 2020-06-24T02:05:47.000Z | MonoNative.Tests/mscorlib/System/Security/Cryptography/mscorlib_System_Security_Cryptography_MACTripleDES_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | null | null | null | // Mono Native Fixture
// Assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// Namespace: System.Security.Cryptography
// Name: MACTripleDES
// C++ Typed Name: mscorlib::System::Security::Cryptography::MACTripleDES
#include <gtest/gtest.h>
#include <mscorlib/System/Security/Cryptog... | 25.662577 | 130 | 0.696629 | brunolauze |
d1694b72f720450f38bfa8b0d5c914f6ce7cc91b | 2,128 | cpp | C++ | python/_nimblephysics/realtime/Ticker.cpp | jyf588/nimblephysics | 6c09228f0abcf7aa3526a8dd65cd2541aff32c4a | [
"BSD-2-Clause"
] | 2 | 2021-09-30T06:23:29.000Z | 2022-03-09T09:59:09.000Z | python/_nimblephysics/realtime/Ticker.cpp | jyf588/nimblephysics | 6c09228f0abcf7aa3526a8dd65cd2541aff32c4a | [
"BSD-2-Clause"
] | null | null | null | python/_nimblephysics/realtime/Ticker.cpp | jyf588/nimblephysics | 6c09228f0abcf7aa3526a8dd65cd2541aff32c4a | [
"BSD-2-Clause"
] | 1 | 2021-08-20T13:56:14.000Z | 2021-08-20T13:56:14.000Z | #include <iostream>
#include <Python.h>
#include <dart/realtime/Ticker.hpp>
#include <pybind11/functional.h>
#include <pybind11/pybind11.h>
namespace py = pybind11;
namespace dart {
namespace python {
void Ticker(py::module& m)
{
::py::class_<dart::realtime::Ticker, std::shared_ptr<dart::realtime::Ticker>>(
... | 33.777778 | 80 | 0.43797 | jyf588 |
d16aedd116d8d31f861454b4a121c38b77986f1a | 436 | cpp | C++ | Codeforces/746A - Compote.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | Codeforces/746A - Compote.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | Codeforces/746A - Compote.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
ios::sync_with_stdio(false);
#ifndef ONLINE_JUDGE
freopen("files/input.txt", "r", stdin);
freopen("files/output.txt", "w", stdout);
#endif
int a, b, c;
cin >> a >> b >> c;
int count = 0;
while(a >= 1 && b >= 2 && c >= 4) {... | 18.166667 | 45 | 0.465596 | naimulcsx |
d17193eb39ee765dc05b44402f92b8fa8d122f89 | 369 | cpp | C++ | src/zip/ZipFileNotOpenException.cpp | qjclinux/DocxFactory | 91131f28f3324d8fad526c7faa1595203cb9a215 | [
"BSD-3-Clause"
] | 116 | 2016-12-22T18:01:41.000Z | 2022-03-29T15:55:59.000Z | src/zip/ZipFileNotOpenException.cpp | qjclinux/DocxFactory | 91131f28f3324d8fad526c7faa1595203cb9a215 | [
"BSD-3-Clause"
] | 16 | 2017-01-30T15:56:15.000Z | 2021-01-13T06:09:28.000Z | src/zip/ZipFileNotOpenException.cpp | qjclinux/DocxFactory | 91131f28f3324d8fad526c7faa1595203cb9a215 | [
"BSD-3-Clause"
] | 49 | 2017-01-16T07:34:47.000Z | 2022-01-25T15:04:12.000Z |
#include "DocxFactory/zip/ZipFileNotOpenException.h"
using namespace DocxFactory;
using namespace std;
ZipFileNotOpenException::ZipFileNotOpenException(
const string& p_file,
const int p_line ) : ZipException( p_file, p_line )
{
m_what = "Zip file not open. Cannot write.";
} // c'tor
ZipFileNotOpenException::... | 18.45 | 59 | 0.753388 | qjclinux |
d172df46567e2c2e55e3d573eee798a578f58eb0 | 3,500 | hpp | C++ | sources/include/structure/parameter.hpp | sydelity-net/EDACurry | 20cbf9835827e42efeb0b3686bf6b3e9d72417e9 | [
"MIT"
] | null | null | null | sources/include/structure/parameter.hpp | sydelity-net/EDACurry | 20cbf9835827e42efeb0b3686bf6b3e9d72417e9 | [
"MIT"
] | null | null | null | sources/include/structure/parameter.hpp | sydelity-net/EDACurry | 20cbf9835827e42efeb0b3686bf6b3e9d72417e9 | [
"MIT"
] | null | null | null | /// @file parameter.hpp
/// @author Enrico Fraccaroli (enrico.fraccaroli@gmail.com)
/// @copyright Copyright (c) 2021 sydelity.net (info@sydelity.com)
/// Distributed under the MIT License (MIT) (See accompanying LICENSE file or
/// copy at http://opensource.org/licenses/MIT)
#pragma once
#include "features/object... | 33.980583 | 140 | 0.679714 | sydelity-net |
d172fe293b74f8d01aaa49838823c92e67b55d54 | 12,005 | cxx | C++ | PWG/EMCAL/EMCALbase/AliEmcalTrackSelResultPtr.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 114 | 2017-03-03T09:12:23.000Z | 2022-03-03T20:29:42.000Z | PWG/EMCAL/EMCALbase/AliEmcalTrackSelResultPtr.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 19,637 | 2017-01-16T12:34:41.000Z | 2022-03-31T22:02:40.000Z | PWG/EMCAL/EMCALbase/AliEmcalTrackSelResultPtr.cxx | maroozm/AliPhysics | 22ec256928cfdf8f800e05bfc1a6e124d90b6eaf | [
"BSD-3-Clause"
] | 1,021 | 2016-07-14T22:41:16.000Z | 2022-03-31T05:15:51.000Z | /************************************************************************************
* Copyright (C) 2017, Copyright Holders of the ALICE Collaboration *
* All rights reserved. *
* ... | 36.825153 | 191 | 0.662474 | maroozm |
ab6c16aacbe6605846db36584cbe96ea1a14369a | 3,544 | hpp | C++ | test/unit/detail/load_store_matrix_coop_sync.hpp | mkarunan/rocWMMA | 390a2e793699a1e17c18e46d7fe51e245907f012 | [
"MIT"
] | null | null | null | test/unit/detail/load_store_matrix_coop_sync.hpp | mkarunan/rocWMMA | 390a2e793699a1e17c18e46d7fe51e245907f012 | [
"MIT"
] | 1 | 2022-03-16T20:41:26.000Z | 2022-03-16T20:41:26.000Z | test/unit/detail/load_store_matrix_coop_sync.hpp | mkarunan/rocWMMA | 390a2e793699a1e17c18e46d7fe51e245907f012 | [
"MIT"
] | 2 | 2022-03-17T16:47:29.000Z | 2022-03-18T14:12:22.000Z | /*******************************************************************************
*
* MIT License
*
* Copyright 2021-2022 Advanced Micro Devices, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
*... | 38.945055 | 99 | 0.69921 | mkarunan |
ab6c6cdf53c0c6cc26129c919f5797523bf0f34b | 1,178 | cpp | C++ | Leetcode/WordSearch.cpp | zhanghuanzj/C- | b271de02885466e97d6a2072f4f93f87625834e4 | [
"Apache-2.0"
] | null | null | null | Leetcode/WordSearch.cpp | zhanghuanzj/C- | b271de02885466e97d6a2072f4f93f87625834e4 | [
"Apache-2.0"
] | null | null | null | Leetcode/WordSearch.cpp | zhanghuanzj/C- | b271de02885466e97d6a2072f4f93f87625834e4 | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
bool exist(vector<vector<char> > &board, string word) {
if(board.empty()) return false;
if(word.empty()) return true;
int m = board.size();
int n = board.front().size();
vector<vector<bool>> visited(m,vector<bool>(n,false));
for(int i=0;i<m;++... | 33.657143 | 116 | 0.457555 | zhanghuanzj |
ab70d04e506d4905bf1c781e7fb60ea91689b458 | 3,432 | hh | C++ | sclasses.hh | kant/simplesocket | 141ef7c522de0751b84dd13dd74c5e94645a6e0f | [
"MIT"
] | 10 | 2018-05-01T04:04:23.000Z | 2020-11-17T09:50:39.000Z | sclasses.hh | kant/simplesocket | 141ef7c522de0751b84dd13dd74c5e94645a6e0f | [
"MIT"
] | 4 | 2017-01-04T19:25:09.000Z | 2018-05-21T22:27:12.000Z | sclasses.hh | kant/simplesocket | 141ef7c522de0751b84dd13dd74c5e94645a6e0f | [
"MIT"
] | 4 | 2017-01-07T11:23:37.000Z | 2021-07-14T22:33:17.000Z | #pragma once
#include "swrappers.hh"
#include <unistd.h>
int SConnectWithTimeout(int sockfd, const ComboAddress& remote, double timeout);
struct Socket
{
Socket(int fd) : d_fd(fd){}
Socket(int domain, int type, int protocol=0)
{
d_fd = SSocket(domain, type, protocol);
}
Socket(const Socket&) = delete;
... | 27.677419 | 180 | 0.696387 | kant |
ab712ff93691af653b7972ebb552b8eb5f7593b8 | 620 | cpp | C++ | L9/17_JavaCpp_/01Classes/a_Begin/Foo.cpp | DeirdreHegarty/advanced_OOP | e62d8f2274422d3da9064e2576e2adc414eccee1 | [
"MIT"
] | null | null | null | L9/17_JavaCpp_/01Classes/a_Begin/Foo.cpp | DeirdreHegarty/advanced_OOP | e62d8f2274422d3da9064e2576e2adc414eccee1 | [
"MIT"
] | null | null | null | L9/17_JavaCpp_/01Classes/a_Begin/Foo.cpp | DeirdreHegarty/advanced_OOP | e62d8f2274422d3da9064e2576e2adc414eccee1 | [
"MIT"
] | null | null | null | /*
//[Foo.h]
class Foo // declare a class Foo
{
public: // begin the public section
Foo(); // declare a constructor for Foo
void doX();
protected: // begin the protected section
int m_num; // declare an instance variable of type int
};
... | 26.956522 | 66 | 0.532258 | DeirdreHegarty |
ab7130c5aab5368ffa946eba554bcbdeb4c3b3c7 | 1,234 | cpp | C++ | Dynamic Range Sum Queries/sol.cpp | glaucogithub/CSES-Problem-Set | 62e96c5aedf920dac339cf1a5f1ff8665735b766 | [
"MIT"
] | 1 | 2022-01-14T00:42:32.000Z | 2022-01-14T00:42:32.000Z | Dynamic Range Sum Queries/sol.cpp | glaucogithub/CSES-Problem-Set | 62e96c5aedf920dac339cf1a5f1ff8665735b766 | [
"MIT"
] | null | null | null | Dynamic Range Sum Queries/sol.cpp | glaucogithub/CSES-Problem-Set | 62e96c5aedf920dac339cf1a5f1ff8665735b766 | [
"MIT"
] | null | null | null |
// author: glaucoacassioc
// created on: September 22, 2021 1:04 AM
// Problem: Dynamic Range Sum Queries
// URL: https://cses.fi/problemset/task/1648/
// Time Limit: 1000 ms
// Memory Limit: 512 MB
#include <bits/stdc++.h>
using namespace std;
#define LSONE(S) ((S & (-S)))
mt19937_64 rng(chrono::steady_clock::now... | 17.138889 | 71 | 0.536467 | glaucogithub |
ab7227a29f7771c4071c5add1a6fffd9112c9102 | 2,671 | cpp | C++ | platforms/gfg/0490_maximum_number_edges_added_tree_stays_bipartite_graph.cpp | idfumg/algorithms | 06f85c5a1d07a965df44219b5a6bf0d43a129256 | [
"MIT"
] | 2 | 2020-09-17T09:04:00.000Z | 2020-11-20T19:43:18.000Z | platforms/gfg/0490_maximum_number_edges_added_tree_stays_bipartite_graph.cpp | idfumg/algorithms | 06f85c5a1d07a965df44219b5a6bf0d43a129256 | [
"MIT"
] | null | null | null | platforms/gfg/0490_maximum_number_edges_added_tree_stays_bipartite_graph.cpp | idfumg/algorithms | 06f85c5a1d07a965df44219b5a6bf0d43a129256 | [
"MIT"
] | null | null | null | #include "../../template.hpp"
using Graph = vvi;
void AddEdge(Graph& graph, int from, int to, int cost = 0) {
graph[from - 1].push_back(to - 1);
graph[to - 1].push_back(from - 1);
// graph.push_back({from, to});
// graph[from].push_back({to, cost});
// graph[to].push_back({from, cost});
// gra... | 24.731481 | 60 | 0.452639 | idfumg |
ab730d7d79f157393452fa99ba3c334e8a70b274 | 3,603 | cpp | C++ | onnxruntime/core/providers/dml/DmlExecutionProvider/src/Operators/DmlOperatorMatMul.cpp | MaximKalininMS/onnxruntime | 1d79926d273d01817ce93f001f36f417ab05f8a0 | [
"MIT"
] | 4 | 2019-06-06T23:48:57.000Z | 2021-06-03T11:51:45.000Z | onnxruntime/core/providers/dml/DmlExecutionProvider/src/Operators/DmlOperatorMatMul.cpp | Montaer/onnxruntime | 6dc25a60f8b058a556964801d99d5508641dcf69 | [
"MIT"
] | 10 | 2019-03-25T21:47:46.000Z | 2019-04-30T02:33:05.000Z | onnxruntime/core/providers/dml/DmlExecutionProvider/src/Operators/DmlOperatorMatMul.cpp | Montaer/onnxruntime | 6dc25a60f8b058a556964801d99d5508641dcf69 | [
"MIT"
] | 3 | 2019-05-07T01:29:04.000Z | 2020-08-09T08:36:12.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "precomp.h"
namespace Dml
{
class DmlOperatorMatMul : public DmlOperator
{
enum InputTensors { IN_A, IN_B };
public:
DmlOperatorMatMul(const MLOperatorKernelCreationContext& kernelInfo)
: DmlOp... | 44.481481 | 154 | 0.706356 | MaximKalininMS |
ab73bc776134f3e88c7e8b1c24b2ba0d167f698b | 1,740 | cpp | C++ | ural/1706.cpp | jffifa/algo-solution | af2400d6071ee8f777f9473d6a34698ceef08355 | [
"MIT"
] | 5 | 2015-07-14T10:29:25.000Z | 2016-10-11T12:45:18.000Z | ural/1706.cpp | jffifa/algo-solution | af2400d6071ee8f777f9473d6a34698ceef08355 | [
"MIT"
] | null | null | null | ural/1706.cpp | jffifa/algo-solution | af2400d6071ee8f777f9473d6a34698ceef08355 | [
"MIT"
] | 3 | 2016-08-23T01:05:26.000Z | 2017-05-28T02:04:20.000Z | #include<iostream>//boj 1178
#include<cstdio>
#include<cstring>
#include<algorithm>
#include<queue>
#include<cmath>
using namespace std;
typedef long long ll;
const int maxn =10100;
const int maxv =10100;
int a[maxn],sa[maxn],container[maxn],wy[maxn],wv[maxn],wx[maxv],rk[maxn],h[maxn];
int cmp(int *r,int a,int b,int ... | 21.219512 | 81 | 0.520115 | jffifa |
ab772c758b026ba889a5aea1ba4ca80c8e9f811f | 34,224 | hpp | C++ | include/ldaplusplus/utils.hpp | angeloskath/supervised-lda | fe3a39bb0d6c7d0c2a33f069440869ad70774da8 | [
"MIT"
] | 22 | 2017-05-25T11:59:02.000Z | 2021-08-30T08:51:41.000Z | include/ldaplusplus/utils.hpp | angeloskath/supervised-lda | fe3a39bb0d6c7d0c2a33f069440869ad70774da8 | [
"MIT"
] | 22 | 2016-06-30T15:51:18.000Z | 2021-12-06T10:43:16.000Z | include/ldaplusplus/utils.hpp | angeloskath/supervised-lda | fe3a39bb0d6c7d0c2a33f069440869ad70774da8 | [
"MIT"
] | 4 | 2017-09-28T14:58:01.000Z | 2020-12-21T14:22:38.000Z | #ifndef _LDAPLUSPLUS_UTILS_HPP_
#define _LDAPLUSPLUS_UTILS_HPP_
#include <cmath>
#include <memory>
#include <mutex>
#include <array>
#include <Eigen/Core>
namespace ldaplusplus {
namespace math_utils {
static const std::array<double, 1024> exp_lut = {
1.000000000000000000e+00, 1.000977995032110268e+00, 1.00195... | 55.022508 | 101 | 0.769314 | angeloskath |
ab7b47f17b3292e2937294b990f633b91ff24918 | 1,571 | cpp | C++ | lib/smooth/application/network/mqtt/packet/Unsubscribe.cpp | luuvt/lms | 8f53ddeb62e9ca328acb36b922bf72e223ff3753 | [
"Apache-2.0"
] | 283 | 2017-07-18T15:31:42.000Z | 2022-03-30T12:05:03.000Z | lib/smooth/application/network/mqtt/packet/Unsubscribe.cpp | luuvt/lms | 8f53ddeb62e9ca328acb36b922bf72e223ff3753 | [
"Apache-2.0"
] | 131 | 2017-08-23T18:49:03.000Z | 2021-11-29T08:03:21.000Z | lib/smooth/application/network/mqtt/packet/Unsubscribe.cpp | luuvt/lms | 8f53ddeb62e9ca328acb36b922bf72e223ff3753 | [
"Apache-2.0"
] | 53 | 2017-12-31T13:34:21.000Z | 2022-02-04T11:26:49.000Z | /*
Smooth - A C++ framework for embedded programming on top of Espressif's ESP-IDF
Copyright 2019 Per Malmberg (https://gitbub.com/PerMalmberg)
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
h... | 33.425532 | 79 | 0.703374 | luuvt |
ab7db0307bab208d8d6bca73577fbe6623747b1b | 1,324 | cpp | C++ | Graph/Special Graph (Directed Acyclic Graph)/Counting Paths in DAG/Checkers.cpp | satvik007/uva | 72a763f7ed46a34abfcf23891300d68581adeb44 | [
"MIT"
] | 3 | 2017-08-12T06:09:39.000Z | 2018-09-16T02:31:27.000Z | Graph/Special Graph (Directed Acyclic Graph)/Counting Paths in DAG/Checkers.cpp | satvik007/uva | 72a763f7ed46a34abfcf23891300d68581adeb44 | [
"MIT"
] | null | null | null | Graph/Special Graph (Directed Acyclic Graph)/Counting Paths in DAG/Checkers.cpp | satvik007/uva | 72a763f7ed46a34abfcf23891300d68581adeb44 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector <int> vi;
#define inf (int)1e9
#define modulo (ll)1000007
int tc, n, fx, fy;
vector <string> a;
ll memo[105][105];
ll solve(int x, int y){
if(x == 0) return 1;
if(memo[x][y] != -1) return memo[x][y];
ll ans = 0;
if(y > ... | 26.48 | 79 | 0.428248 | satvik007 |
ab7e18d51f9318cccc2a369994175e31d0a50100 | 6,819 | cpp | C++ | src/scrollbar/cocScrollbar.cpp | codeoncanvas/coc-ui | d1b6389adba5234254665c07382a028716016dce | [
"MIT"
] | 1 | 2018-01-08T21:37:42.000Z | 2018-01-08T21:37:42.000Z | src/scrollbar/cocScrollbar.cpp | codeoncanvas/coc-ui | d1b6389adba5234254665c07382a028716016dce | [
"MIT"
] | null | null | null | src/scrollbar/cocScrollbar.cpp | codeoncanvas/coc-ui | d1b6389adba5234254665c07382a028716016dce | [
"MIT"
] | 1 | 2020-04-21T00:30:27.000Z | 2020-04-21T00:30:27.000Z | /**
*
* ┌─┐╔═╗┌┬┐┌─┐
* │ ║ ║ ││├┤
* └─┘╚═╝─┴┘└─┘
* ┌─┐┌─┐╔╗╔┬ ┬┌─┐┌─┐
* │ ├─┤║║║└┐┌┘├─┤└─┐
* └─┘┴ ┴╝╚╝ └┘ ┴ ┴└─┘
*
* Copyright (c) 2014-2016 Code on Canvas Pty Ltd, http://CodeOnCanvas.cc
*
* This software is distributed under the MIT license
* https://tldrlegal.com/license/mit-licen... | 28.294606 | 140 | 0.543335 | codeoncanvas |
ab7e6cf53dd6368599e33d356bbb80ea1cd4afe1 | 18,144 | cc | C++ | lib/chmpx.cc | ggtakec/chmpx | 2b4e9c4c32b9c82a8b7e1d5805915414ae782a29 | [
"MIT"
] | 16 | 2016-12-09T01:44:45.000Z | 2020-09-11T04:54:02.000Z | lib/chmpx.cc | ggtakec/chmpx | 2b4e9c4c32b9c82a8b7e1d5805915414ae782a29 | [
"MIT"
] | 2 | 2016-12-09T05:42:18.000Z | 2018-12-27T03:54:00.000Z | lib/chmpx.cc | ggtakec/chmpx | 2b4e9c4c32b9c82a8b7e1d5805915414ae782a29 | [
"MIT"
] | 6 | 2016-12-09T01:48:40.000Z | 2020-12-22T03:13:13.000Z | /*
* CHMPX
*
* Copyright 2014 Yahoo Japan Corporation.
*
* CHMPX is inprocess data exchange by MQ with consistent hashing.
* CHMPX is made for the purpose of the construction of
* original messaging system and the offer of the client
* library.
* CHMPX transfers messages between the client and the server/
* s... | 27.828221 | 167 | 0.685295 | ggtakec |
ab8185b6c8942cc7c789c30d993bb1a6fda4f1c2 | 795 | hpp | C++ | kernel/meta/compiler.hpp | panix-os/Panix | 1047fc384696684a7583bda035fa580da4adbd5b | [
"MIT"
] | 68 | 2020-10-10T03:56:04.000Z | 2021-07-22T19:15:47.000Z | kernel/meta/compiler.hpp | panix-os/Panix | 1047fc384696684a7583bda035fa580da4adbd5b | [
"MIT"
] | 88 | 2020-10-01T23:36:44.000Z | 2021-07-22T03:11:43.000Z | kernel/meta/compiler.hpp | panix-os/Panix | 1047fc384696684a7583bda035fa580da4adbd5b | [
"MIT"
] | 5 | 2021-06-25T16:56:46.000Z | 2021-07-21T02:38:41.000Z | /**
* @file compiler.hpp
* @author Keeton Feavel (keetonfeavel@cedarville.edu)
* @brief Compiler meta directives
* @version 0.1
* @date 2021-06-17
*
* @copyright Copyright the Xyris Contributors (c) 2021
*
*/
#pragma once
// Function attributes
#define NORET __attribute__((noreturn))
#define OPTIMIZE(x) __att... | 26.5 | 55 | 0.734591 | panix-os |
ab829bcfdb5e536bd2556c5acd0c195b4e57b807 | 258 | hpp | C++ | DLOCRModel.Calculate/DLOCRModel.Calculate.hpp | Frederisk/DeepLearning-OpticalCharacterRecognition-Model | 52998e877cdf1e849cc2648e7d07dee6ae865cc1 | [
"MIT"
] | null | null | null | DLOCRModel.Calculate/DLOCRModel.Calculate.hpp | Frederisk/DeepLearning-OpticalCharacterRecognition-Model | 52998e877cdf1e849cc2648e7d07dee6ae865cc1 | [
"MIT"
] | 1 | 2020-12-16T03:32:56.000Z | 2020-12-16T03:32:56.000Z | DLOCRModel.Calculate/DLOCRModel.Calculate.hpp | Frederisk/DeepLearning-OpticalCharacterRecognition-Model | 52998e877cdf1e849cc2648e7d07dee6ae865cc1 | [
"MIT"
] | null | null | null | #pragma once
using namespace System;
using MathNet::Numerics::LinearAlgebra::Matrix;
namespace DLOCRModel {
namespace Calculate {
public ref class FeedforwardNetworkPiece sealed {
public:
private:
};
}
} | 14.333333 | 57 | 0.627907 | Frederisk |
ab839c9d1069d6dce421d13fed082e5107abf190 | 4,871 | cpp | C++ | projects/atest/test_context.cpp | agnesoft/adev-alt | 3df0329939e3048bbf5db252efb5f74de9c0f061 | [
"Apache-2.0"
] | null | null | null | projects/atest/test_context.cpp | agnesoft/adev-alt | 3df0329939e3048bbf5db252efb5f74de9c0f061 | [
"Apache-2.0"
] | 136 | 2020-03-29T11:15:38.000Z | 2020-10-14T06:21:23.000Z | projects/atest/test_context.cpp | agnesoft/adev-alt | 3df0329939e3048bbf5db252efb5f74de9c0f061 | [
"Apache-2.0"
] | 1 | 2020-08-04T09:56:53.000Z | 2020-08-04T09:56:53.000Z | #ifndef __clang__
export module atest:test_context;
import :test_suite;
#endif
namespace atest
{
//! \private
export class TestContext
{
struct TestContextWrapper
{
TestContext *context = nullptr;
std::atomic<int> instances{};
};
public:
TestContext() noexcept :
parentContext{T... | 26.048128 | 112 | 0.53295 | agnesoft |
ab84782a2ed3a5dbbd0b2787a88a339b8075a858 | 5,382 | cpp | C++ | base/fs/rdr2/rdpdr/drkdx/kdextlib.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | base/fs/rdr2/rdpdr/drkdx/kdextlib.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | base/fs/rdr2/rdpdr/drkdx/kdextlib.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*++
Copyright (c) 1990 Microsoft Corporation
------------------------------
T H I S F I L E I S O B S O L E T E . I T I S B E I N G K E P T
F O R A W H I L E J U S T T O M A K E S U R E
----------------------------
Module Name:
... | 21.789474 | 95 | 0.590673 | npocmaka |
ab85331c3970fe232bb9914251791c6a4ccd641c | 2,259 | cpp | C++ | segmentation/Ncuts/util/mex_math.cpp | sfikas/sfikasLibrary | b99ac0bf01289c23d46c27bd9003e7891f026eb4 | [
"MIT"
] | 7 | 2016-10-03T12:43:59.000Z | 2020-07-18T08:17:44.000Z | segmentation/Ncuts/util/mex_math.cpp | sfikas/duguepes-matroutines | b99ac0bf01289c23d46c27bd9003e7891f026eb4 | [
"MIT"
] | null | null | null | segmentation/Ncuts/util/mex_math.cpp | sfikas/duguepes-matroutines | b99ac0bf01289c23d46c27bd9003e7891f026eb4 | [
"MIT"
] | null | null | null | /*================================================================
// Timothee Cour, 29-Aug-2006 07:49:15
mex_math = used by a couple of mex functions
*=================================================================*/
# include "math.h"
int round2(double x) {
//return floor(x+0.5);
return x>=0... | 21.932039 | 76 | 0.463922 | sfikas |
ab857925febd450c0ad4441b9f5341b548ca54c6 | 2,037 | hpp | C++ | rocsolver/clients/include/rocsolver_test.hpp | LuckyBoyDE/rocSOLVER | 6431459ce3f68b5a4c14b28b4ec35c25d664f0bc | [
"BSD-2-Clause"
] | null | null | null | rocsolver/clients/include/rocsolver_test.hpp | LuckyBoyDE/rocSOLVER | 6431459ce3f68b5a4c14b28b4ec35c25d664f0bc | [
"BSD-2-Clause"
] | null | null | null | rocsolver/clients/include/rocsolver_test.hpp | LuckyBoyDE/rocSOLVER | 6431459ce3f68b5a4c14b28b4ec35c25d664f0bc | [
"BSD-2-Clause"
] | null | null | null | /* ************************************************************************
* Copyright (c) 2018-2020 Advanced Micro Devices, Inc.
* ************************************************************************ */
#ifndef S_TEST_H_
#define S_TEST_H_
#include <boost/format.hpp>
#include <cstdarg>
#include <limits>
#defi... | 29.521739 | 78 | 0.471772 | LuckyBoyDE |
ab883e092c767ce93700444af5a6d7ac99f67dc8 | 4,763 | cc | C++ | extensions/browser/requirements_checker_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | extensions/browser/requirements_checker_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | extensions/browser/requirements_checker_unittest.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "extensions/browser/requirements_checker.h"
#include <memory>
#include <string>
#include <vector>
#include "base/memory/ref_counted.h"
#include... | 30.33758 | 80 | 0.735881 | zealoussnow |
ab889664886083babd8ffdebf49f7ea22422ce8d | 23,207 | cpp | C++ | font.cpp | Yours3lf/text_game | 32c934a7cb396d2412a3f0847cd7c7da9d46e3c0 | [
"MIT"
] | null | null | null | font.cpp | Yours3lf/text_game | 32c934a7cb396d2412a3f0847cd7c7da9d46e3c0 | [
"MIT"
] | null | null | null | font.cpp | Yours3lf/text_game | 32c934a7cb396d2412a3f0847cd7c7da9d46e3c0 | [
"MIT"
] | null | null | null | #include "font.h"
#include <fstream>
#include "ft2build.h"
#include FT_FREETYPE_H
#define MAX_TEX_SIZE 8192
#define MIN_TEX_SIZE 128
#define FONT_VERTEX 0
#define FONT_TEXCOORD 1
#define FONT_VERTSCALEBIAS 2
#define FONT_TEXSCALEBIAS 3
#define FONT_COLOR 4
#define FONT_FACE 5
#define FONT_TRANSFORM 6
#define FONT_F... | 27.302353 | 186 | 0.630887 | Yours3lf |
ab8db9f0f7d107703c0285f716a5c922921b245f | 4,154 | cpp | C++ | unit_test/gtest_cell_index.cpp | Tokumasu-Lab/md_fdps | eb9ba6baa8ac2dba86ae74fa6104a38e18d045ff | [
"MIT"
] | null | null | null | unit_test/gtest_cell_index.cpp | Tokumasu-Lab/md_fdps | eb9ba6baa8ac2dba86ae74fa6104a38e18d045ff | [
"MIT"
] | null | null | null | unit_test/gtest_cell_index.cpp | Tokumasu-Lab/md_fdps | eb9ba6baa8ac2dba86ae74fa6104a38e18d045ff | [
"MIT"
] | null | null | null | //=======================================================================================
// This is unit test of MD_EXT::CellIndex.
// module location: ./generic_ext/cell_index.hpp
//=======================================================================================
#include <gtest/gtest.h>
#include <particl... | 34.907563 | 89 | 0.546221 | Tokumasu-Lab |
ab94cb1579125dcb138ead1aea9e3e76b30621f8 | 4,866 | cpp | C++ | pwiz/analysis/eharmony/PeptideMatcher.cpp | austinkeller/pwiz | aa8e575cb40fd5e97cc7d922e4d8da44c9277cca | [
"Apache-2.0"
] | null | null | null | pwiz/analysis/eharmony/PeptideMatcher.cpp | austinkeller/pwiz | aa8e575cb40fd5e97cc7d922e4d8da44c9277cca | [
"Apache-2.0"
] | null | null | null | pwiz/analysis/eharmony/PeptideMatcher.cpp | austinkeller/pwiz | aa8e575cb40fd5e97cc7d922e4d8da44c9277cca | [
"Apache-2.0"
] | null | null | null | //
// $Id$
//
//
// Original author: Kate Hoff <katherine.hoff@proteowizard.org>
//
// Copyright 2009 Center for Applied Molecular Medicine
// University of Southern California, Los Angeles, CA
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with... | 31.393548 | 208 | 0.651254 | austinkeller |
ab98f6ac312fbcacc663fe274d93a9abd1679c02 | 75,772 | cpp | C++ | frameworks/proxy/event_handle/test/multimodal_semanager_second_test.cpp | openharmony-gitee-mirror/multimodalinput_input | 17303b7662d0382f27c972ad7d149bee61a14f23 | [
"Apache-2.0"
] | 1 | 2021-12-03T13:56:40.000Z | 2021-12-03T13:56:40.000Z | frameworks/proxy/event_handle/test/multimodal_semanager_second_test.cpp | openharmony-gitee-mirror/multimodalinput_input | 17303b7662d0382f27c972ad7d149bee61a14f23 | [
"Apache-2.0"
] | null | null | null | frameworks/proxy/event_handle/test/multimodal_semanager_second_test.cpp | openharmony-gitee-mirror/multimodalinput_input | 17303b7662d0382f27c972ad7d149bee61a14f23 | [
"Apache-2.0"
] | 1 | 2021-09-13T11:18:23.000Z | 2021-09-13T11:18:23.000Z | /*
* Copyright (c) 2021 Huawei Device 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 ... | 41.678768 | 96 | 0.77237 | openharmony-gitee-mirror |
ab9af8c4d401cf7813a4789505c8f92cbd2753ee | 16,385 | 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/Sensors Geolocation Sample Driver (UMDF Version 1)/C++/RadioManagerGPS/SampleRadioManager.cpp | zzgchina888/msdn-code-gallery-microsoft | 21cb9b6bc0da3b234c5854ecac449cb3bd261f29 | [
"MIT"
] | 2 | 2022-01-21T01:40:58.000Z | 2022-01-21T01:41:10.000Z | Official Windows Driver Kit Sample/Windows Driver Kit (WDK) 8.1 Samples/[C++]-windows-driver-kit-81-cpp/WDK 8.1 C++ Samples/Sensors Geolocation Sample Driver (UMDF Version 1)/C++/RadioManagerGPS/SampleRadioManager.cpp | zzgchina888/msdn-code-gallery-microsoft | 21cb9b6bc0da3b234c5854ecac449cb3bd261f29 | [
"MIT"
] | 1 | 2022-03-15T04:21:41.000Z | 2022-03-15T04:21:41.000Z | Official Windows Driver Kit Sample/Windows Driver Kit (WDK) 8.1 Samples/[C++]-windows-driver-kit-81-cpp/WDK 8.1 C++ Samples/Sensors Geolocation Sample Driver (UMDF Version 1)/C++/RadioManagerGPS/SampleRadioManager.cpp | zzgchina888/msdn-code-gallery-microsoft | 21cb9b6bc0da3b234c5854ecac449cb3bd261f29 | [
"MIT"
] | 2 | 2020-10-19T23:36:26.000Z | 2020-10-22T12:59:37.000Z | #include "precomp.h"
#pragma hdrstop
CSampleRadioManager::CSampleRadioManager() :
_pSensorManagerEvents(nullptr),
_hPnPEventThread(nullptr),
_hPnPEventThreadEvent(nullptr),
_hPnPEventWindow(nullptr)
{
}
HRESULT CSampleRadioManager::FinalConstruct()
{
HRESULT hr = S_OK;
// Create Sensor Manag... | 27.724196 | 118 | 0.595606 | zzgchina888 |
ab9d1614d83ef9bcca23fdc89da22a7a64a5c25a | 714 | cpp | C++ | test/algorithm/has_identity.cpp | muqsitnawaz/mate | 0353bb9bd04db0b7b4a547878e76617ed547b337 | [
"MIT"
] | null | null | null | test/algorithm/has_identity.cpp | muqsitnawaz/mate | 0353bb9bd04db0b7b4a547878e76617ed547b337 | [
"MIT"
] | null | null | null | test/algorithm/has_identity.cpp | muqsitnawaz/mate | 0353bb9bd04db0b7b4a547878e76617ed547b337 | [
"MIT"
] | null | null | null |
#include <gtest/gtest.h>
#include "mate/algorithm/has_identity.hpp"
TEST(IdentityTest, Additive)
{
const mate::Set_type<int> set { 1, 2, 3, 4, 5 };
EXPECT_FALSE(mate::has_identity<mate::Addition>(set));
const mate::Set_type<int> set1 { 0, 1, 2, 3, 4, 5 };
EXPECT_TRUE(mate::has_identity<mate::Additio... | 25.5 | 64 | 0.665266 | muqsitnawaz |
aba103dacd5a9d35d1adb833cbfea4d3c88d308e | 7,170 | cpp | C++ | Build/hosEngine/AudioSource.cpp | Game-institute-1st-While-true/hosEngine | 2cc0b464740a976a8b37afd7a9e3479fe7484cf0 | [
"MIT"
] | null | null | null | Build/hosEngine/AudioSource.cpp | Game-institute-1st-While-true/hosEngine | 2cc0b464740a976a8b37afd7a9e3479fe7484cf0 | [
"MIT"
] | null | null | null | Build/hosEngine/AudioSource.cpp | Game-institute-1st-While-true/hosEngine | 2cc0b464740a976a8b37afd7a9e3479fe7484cf0 | [
"MIT"
] | 2 | 2021-07-14T00:14:18.000Z | 2021-07-27T04:16:53.000Z | #include "AudioSource.h"
#include "Transform.h"
#include "GameObject.h"
#include "Scene.h"
#include "AudioListener.h"
using namespace hos;
// FL FR C LFE BL BR SL SR
//Degree(0~360) 334 26 0 360 260 100 217.5 142.5
static float EmitterAngle[] =
{
5.829... | 18.868421 | 134 | 0.665411 | Game-institute-1st-While-true |
aba28b08d7e832242a5481ff7f3f6ef9a524e350 | 7,243 | cpp | C++ | include/cinolib/isocontour.cpp | goodengineer/cinolib | 7de4de6816ed617e76a0517409e3e84c4546685e | [
"MIT"
] | null | null | null | include/cinolib/isocontour.cpp | goodengineer/cinolib | 7de4de6816ed617e76a0517409e3e84c4546685e | [
"MIT"
] | null | null | null | include/cinolib/isocontour.cpp | goodengineer/cinolib | 7de4de6816ed617e76a0517409e3e84c4546685e | [
"MIT"
] | null | null | null | /********************************************************************************
* This file is part of CinoLib *
* Copyright(C) 2016: Marco Livesu *
* ... | 51.368794 | 208 | 0.510976 | goodengineer |
aba4f22309ddfb0fa9e5a3ee06e917a654ba66ca | 633 | cpp | C++ | GameplayFootball/src/onthepitch/export/base/events.cpp | ElsevierSoftwareX/SOFTX-D-20-00016 | 48c28adb72aa167a251636bc92111b3c43c0be67 | [
"MIT"
] | 8 | 2020-11-10T13:19:15.000Z | 2022-03-15T11:37:00.000Z | GameplayFootball/src/onthepitch/export/base/events.cpp | ElsevierSoftwareX/SOFTX-D-20-00016 | 48c28adb72aa167a251636bc92111b3c43c0be67 | [
"MIT"
] | null | null | null | GameplayFootball/src/onthepitch/export/base/events.cpp | ElsevierSoftwareX/SOFTX-D-20-00016 | 48c28adb72aa167a251636bc92111b3c43c0be67 | [
"MIT"
] | null | null | null | #ifdef _MSC_VER
#define _CRT_SECURE_NO_WARNINGS
#endif
#include <fstream>
#include <iostream>
#include <boost/archive/xml_iarchive.hpp>
#include <boost/archive/xml_oarchive.hpp>
#include <boost/geometry/geometries/point_xy.hpp>
#include <boost/geometry.hpp>
#include "events.hpp"
using namespace std;
using namespace b... | 23.444444 | 49 | 0.747235 | ElsevierSoftwareX |
aba6181e7c5734b80cc6e6a560af90fb33a2d409 | 1,725 | cpp | C++ | source/Task.cpp | acs9307/alib-cpp | 56eb3d31d979ef1b412d197e7ea8d10bac686077 | [
"MIT"
] | 1 | 2017-05-02T09:51:05.000Z | 2017-05-02T09:51:05.000Z | source/Task.cpp | acs9307/alib-cpp | 56eb3d31d979ef1b412d197e7ea8d10bac686077 | [
"MIT"
] | null | null | null | source/Task.cpp | acs9307/alib-cpp | 56eb3d31d979ef1b412d197e7ea8d10bac686077 | [
"MIT"
] | null | null | null | #include "includes/Task.h"
namespace alib
{
/****Initializers****/
void Task::init(task_callback callback, void* taskArg, alib_free_value freeArg,
uint8_t loopsPerCallback)
{
tcb = callback;
arg = taskArg;
freeArgCb = freeArg;
loopsPerCall = loopsPerCallback;
/* Default init other members. */
loopCou... | 22.402597 | 84 | 0.649275 | acs9307 |
aba6f7ae9aadd6b2bfa8e803f56bce4c0f92a1b1 | 326 | cc | C++ | ultra_fast_mathematician.cc | maximilianbrine/github-slideshow | 76e4d6a7e57da61f1ddca4d8aa8bc5d2fd78bea1 | [
"MIT"
] | null | null | null | ultra_fast_mathematician.cc | maximilianbrine/github-slideshow | 76e4d6a7e57da61f1ddca4d8aa8bc5d2fd78bea1 | [
"MIT"
] | 3 | 2021-01-04T18:33:39.000Z | 2021-01-04T19:37:21.000Z | ultra_fast_mathematician.cc | maximilianbrine/github-slideshow | 76e4d6a7e57da61f1ddca4d8aa8bc5d2fd78bea1 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
int main() {
std::string a, b, c = "";
std::getline(std::cin, a);
std::getline(std::cin, b);
for (int i = 0; i < a.size(); ++i) {
if (a[i] != b[i]) {
c += "1";
} else {
c += "0";
}
}
std::cout << c;
retur... | 19.176471 | 40 | 0.383436 | maximilianbrine |
aba83b2fb430d3a70dcec3c0cc5f05f4a01049cf | 7,381 | hpp | C++ | DT3Core/Scripting/ScriptingRadioButton.hpp | nemerle/DT3 | 801615d507eda9764662f3a34339aa676170e93a | [
"MIT"
] | 3 | 2016-01-27T13:17:18.000Z | 2019-03-19T09:18:25.000Z | DT3Core/Scripting/ScriptingRadioButton.hpp | nemerle/DT3 | 801615d507eda9764662f3a34339aa676170e93a | [
"MIT"
] | 1 | 2016-01-28T14:39:49.000Z | 2016-01-28T22:12:07.000Z | DT3Core/Scripting/ScriptingRadioButton.hpp | adderly/DT3 | e2605be091ec903d3582e182313837cbaf790857 | [
"MIT"
] | 3 | 2016-01-25T16:44:51.000Z | 2021-01-29T19:59:45.000Z | #pragma once
#ifndef DT3_SCRIPTINGPAGEFLIPPER
#define DT3_SCRIPTINGPAGEFLIPPER
//==============================================================================
///
/// File: ScriptingRadioButton.hpp
///
/// Copyright (C) 2000-2014 by Smells Like Donkey Software Inc. All rights reserved.
///
/// This file is su... | 49.536913 | 109 | 0.315811 | nemerle |
abaa22d1b64dd6d16d986252c6e8ffd334f2dfbd | 1,098 | cpp | C++ | Patterns/triipaathii.cpp | sanchit781/HACKTOBERFEST2021_PATTERN | c457eb2a1c7b729bdaa26ade7d4c7eb4092291e2 | [
"MIT"
] | 229 | 2021-09-10T13:24:47.000Z | 2022-03-18T16:54:29.000Z | Patterns/triipaathii.cpp | sanchit781/HACKTOBERFEST2021_PATTERN | c457eb2a1c7b729bdaa26ade7d4c7eb4092291e2 | [
"MIT"
] | 164 | 2021-09-10T12:04:39.000Z | 2021-10-29T21:20:42.000Z | Patterns/triipaathii.cpp | sanchit781/HACKTOBERFEST2021_PATTERN | c457eb2a1c7b729bdaa26ade7d4c7eb4092291e2 | [
"MIT"
] | 567 | 2021-09-10T17:35:27.000Z | 2021-12-11T12:45:43.000Z | #include<bits/stdc++.h>
using namespace std;
int main(){
int n;
cout<<"Enter an integer: ";
cin>>n;
cout<<endl;
//for upper triangle
for(int i=1;i<=n;i++){
for(int j=n-i;j>0;j--){
cout<<"* ";
}
for(int k=i;k>0;k--){
if (k%2==0)
cou... | 19.963636 | 31 | 0.303279 | sanchit781 |
abaaca90eeb532ebd9937cf4f79f689e5e51d02b | 1,602 | cpp | C++ | Cpp/Docker/ASM.cpp | lehtojo/Evie | f41b3872f6a1a7da1778c241c7b01823b36ac78d | [
"MIT"
] | 12 | 2020-07-12T06:22:11.000Z | 2022-02-27T13:19:19.000Z | Cpp/Docker/ASM.cpp | lehtojo/Evie | f41b3872f6a1a7da1778c241c7b01823b36ac78d | [
"MIT"
] | 2 | 2020-07-12T06:22:48.000Z | 2021-11-28T01:23:25.000Z | Cpp/Docker/ASM.cpp | lehtojo/Evie | f41b3872f6a1a7da1778c241c7b01823b36ac78d | [
"MIT"
] | 3 | 2021-09-16T19:02:19.000Z | 2021-11-28T00:50:15.000Z | #include "../../H/Docker/ASM.h"
#include "../../H/UI/Safe.h"
void ASM::ASM_Analyzer(vector<string>& Output)
{
//here we will just make an prototype from every label. Parser can analyse wich one is a function, and what is not.
//and after that we want to give Evie Core the "use "filename"" without the preprosessor so... | 45.771429 | 124 | 0.730337 | lehtojo |
abb39c4e6463162fa3d0647f590f9a85288fbcb8 | 8,657 | cpp | C++ | sources/data/planet.cpp | n0dev/space-explorer | 87088bbd620128d09467aed7e188b717a19367ab | [
"MIT"
] | null | null | null | sources/data/planet.cpp | n0dev/space-explorer | 87088bbd620128d09467aed7e188b717a19367ab | [
"MIT"
] | null | null | null | sources/data/planet.cpp | n0dev/space-explorer | 87088bbd620128d09467aed7e188b717a19367ab | [
"MIT"
] | null | null | null | #include <math.h>
#include <fstream>
#include <FTGL/ftgl.h>
#include <GL/glew.h>
#include "rapidjson/document.h"
#include "../include/data/planet.h"
#include "../include/gui.h"
#include "../textures/loadpng.h"
#include "../gameplay/observer.h"
using namespace rapidjson;
Planet *mercury;
Planet *venus;
Planet *eart... | 31.944649 | 118 | 0.631859 | n0dev |
abb49121db4a3b42a0d148e6de2661f6f118a453 | 694 | cpp | C++ | Algorithms/Sorting/insertion_sort.cpp | TeacherManoj0131/HacktoberFest2020-Contributions | c7119202fdf211b8a6fc1eadd0760dbb706a679b | [
"MIT"
] | 256 | 2020-09-30T19:31:34.000Z | 2021-11-20T18:09:15.000Z | Algorithms/Sorting/insertion_sort.cpp | TeacherManoj0131/HacktoberFest2020-Contributions | c7119202fdf211b8a6fc1eadd0760dbb706a679b | [
"MIT"
] | 293 | 2020-09-30T19:14:54.000Z | 2021-06-06T02:34:47.000Z | Algorithms/Sorting/insertion_sort.cpp | TeacherManoj0131/HacktoberFest2020-Contributions | c7119202fdf211b8a6fc1eadd0760dbb706a679b | [
"MIT"
] | 1,620 | 2020-09-30T18:37:44.000Z | 2022-03-03T20:54:22.000Z | #include<iostream>
using namespace std;
void InsertionSort(int A[], int n)
{
int i, j, key;
for (i = 1; i < n; i++)
{
key = A[i];
j = i-1;
while (j >= 0 && A[j] >key)
{
A[j+1] = A[j];
j--;
}
A[j +1] = key;
}
... | 16.52381 | 52 | 0.400576 | TeacherManoj0131 |