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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
631cb35c55d0b3fe1cf8aa567a91933e241dab72 | 1,775 | cc | C++ | chrome/browser/ui/website_settings/mock_permission_bubble_view.cc | Wzzzx/chromium-crosswalk | 768dde8efa71169f1c1113ca6ef322f1e8c9e7de | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2019-01-28T08:09:58.000Z | 2021-11-15T15:32:10.000Z | chrome/browser/ui/website_settings/mock_permission_bubble_view.cc | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | null | null | null | chrome/browser/ui/website_settings/mock_permission_bubble_view.cc | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | 6 | 2020-09-23T08:56:12.000Z | 2021-11-18T03:40:49.000Z | // Copyright 2015 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 "chrome/browser/ui/website_settings/mock_permission_bubble_view.h"
#include "base/bind.h"
#include "base/run_loop.h"
#include "chrome/browser/ui... | 29.098361 | 78 | 0.760563 | Wzzzx |
6322f86fbb23198e86f7584e107ffe8c1f1ca165 | 807 | cpp | C++ | talent/talent.cpp | chenhongqiao/OI-Solutions | 009a3c4b713b62658b835b52e0f61f882b5a6ffe | [
"MIT"
] | 1 | 2020-12-15T20:25:21.000Z | 2020-12-15T20:25:21.000Z | talent/talent.cpp | chenhongqiao/OI-Solutions | 009a3c4b713b62658b835b52e0f61f882b5a6ffe | [
"MIT"
] | null | null | null | talent/talent.cpp | chenhongqiao/OI-Solutions | 009a3c4b713b62658b835b52e0f61f882b5a6ffe | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
struct cow
{
long long w, t;
};
cow c[255];
long long dp[1000005];
int main()
{
//freopen("talent.in", "r", stdin);
//freopen("talent.out", "w", stdout);
int n, wl;
cin >> n >> wl;
for (int i = 1; i <= n; i++)
{
long long w, t;
ci... | 19.214286 | 56 | 0.385378 | chenhongqiao |
63294f6ebd9958e2f4745105a11eaefede33bfc4 | 2,560 | hpp | C++ | Contrib-Intel/RSD-PSME-RMM/common/ipmi/include/ipmi/command/generic/reserve_sdr_repository.hpp | opencomputeproject/Rack-Manager | e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a | [
"MIT"
] | 5 | 2019-11-11T07:57:26.000Z | 2022-03-28T08:26:53.000Z | Contrib-Intel/RSD-PSME-RMM/common/ipmi/include/ipmi/command/generic/reserve_sdr_repository.hpp | opencomputeproject/Rack-Manager | e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a | [
"MIT"
] | 3 | 2019-09-05T21:47:07.000Z | 2019-09-17T18:10:45.000Z | Contrib-Intel/RSD-PSME-RMM/common/ipmi/include/ipmi/command/generic/reserve_sdr_repository.hpp | opencomputeproject/Rack-Manager | e1a61d3eeeba0ff655fe9c1301e8b510d9b2122a | [
"MIT"
] | 11 | 2019-07-20T00:16:32.000Z | 2022-01-11T14:17:48.000Z | /*!
* @brief Declaration of Reserve SDR Repository Request/Response.
*
* @copyright Copyright (c) 2017-2019 Intel Corporation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://ww... | 22.857143 | 86 | 0.687109 | opencomputeproject |
632ad3b0f5994347bc712345fbeeb4f50db41acc | 726 | cpp | C++ | Courses/C++ Without Fear (3rd Ed.) Brian Overland/Chap_5/Ex_5/5.5.1.cpp | mccrudd3n/practise | 26a65c0515c9bea7583bcb8f4c0022659b48dcf5 | [
"Unlicense"
] | null | null | null | Courses/C++ Without Fear (3rd Ed.) Brian Overland/Chap_5/Ex_5/5.5.1.cpp | mccrudd3n/practise | 26a65c0515c9bea7583bcb8f4c0022659b48dcf5 | [
"Unlicense"
] | null | null | null | Courses/C++ Without Fear (3rd Ed.) Brian Overland/Chap_5/Ex_5/5.5.1.cpp | mccrudd3n/practise | 26a65c0515c9bea7583bcb8f4c0022659b48dcf5 | [
"Unlicense"
] | null | null | null | #include <iostream>
using namespace std;
void move_rings(int n, int src, int dest, int other);
void move_a_ring(int src, int dest);
int main()
{
int n;
cout << "Enter number of rings" << endl;
cin >> n;
if (n >= 0)
{
cout << "Enter a number greater than 0" << endl;
cin >> n; ... | 22 | 59 | 0.530303 | mccrudd3n |
632be5bbd31bceb5066acfd2ab4400a1b791341e | 1,991 | cpp | C++ | frameworks/permission_standard/permissioncommunicationadapter/main/cpp/src/ams_adapter.cpp | openharmony-gitee-mirror/security_permission | dd482838bfe697dad1dd40531aa8fca2bd4d6883 | [
"Apache-2.0"
] | null | null | null | frameworks/permission_standard/permissioncommunicationadapter/main/cpp/src/ams_adapter.cpp | openharmony-gitee-mirror/security_permission | dd482838bfe697dad1dd40531aa8fca2bd4d6883 | [
"Apache-2.0"
] | null | null | null | frameworks/permission_standard/permissioncommunicationadapter/main/cpp/src/ams_adapter.cpp | openharmony-gitee-mirror/security_permission | dd482838bfe697dad1dd40531aa8fca2bd4d6883 | [
"Apache-2.0"
] | null | null | null | /*
* 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 ... | 32.639344 | 106 | 0.69563 | openharmony-gitee-mirror |
632dee063f996faac35d807afc63239a68a815dc | 4,867 | hpp | C++ | src/gui/src/core/interfaces/impl/iota-wallet.hpp | MatthewDarnell/iota-simplewallet | aa3449bae3023e292ad47a9fa72213e279367b7a | [
"MIT"
] | 1 | 2020-11-19T07:18:44.000Z | 2020-11-19T07:18:44.000Z | src/gui/src/core/interfaces/impl/iota-wallet.hpp | MatthewDarnell/iota-simplewallet | aa3449bae3023e292ad47a9fa72213e279367b7a | [
"MIT"
] | null | null | null | src/gui/src/core/interfaces/impl/iota-wallet.hpp | MatthewDarnell/iota-simplewallet | aa3449bae3023e292ad47a9fa72213e279367b7a | [
"MIT"
] | null | null | null | // Copyright (c) 2018-2019 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#ifndef IOTAWALLET_HPP
#define IOTAWALLET_HPP
#include <interfaces/wallet.h>
#include <interfaces/handler.h>
#include <QObj... | 41.598291 | 157 | 0.757345 | MatthewDarnell |
632e3acbee7d6ebcf18f3270d5b4b6e42b4da882 | 24 | hpp | C++ | modules/renderer/include/texture.hpp | hpnrep6/3DModelViewer | 4437d9b798fe75f3f6eae33488edc73dda4aaca0 | [
"MIT"
] | null | null | null | modules/renderer/include/texture.hpp | hpnrep6/3DModelViewer | 4437d9b798fe75f3f6eae33488edc73dda4aaca0 | [
"MIT"
] | null | null | null | modules/renderer/include/texture.hpp | hpnrep6/3DModelViewer | 4437d9b798fe75f3f6eae33488edc73dda4aaca0 | [
"MIT"
] | null | null | null | namespace JRenderer {
} | 8 | 21 | 0.75 | hpnrep6 |
632e43a378640c79dee3bfcebf1cdae280511121 | 3,522 | cc | C++ | tests/func/test_vec_capacity.cc | kokizzu/ctl | 0f2db99f4480c4932b6ba619e2bedec905335738 | [
"MIT"
] | 983 | 2020-09-26T04:47:54.000Z | 2022-03-31T05:04:32.000Z | tests/func/test_vec_capacity.cc | Lisprez/ctl | 435a2e6ba6cc4222e890b4c5993a750d29cb04e3 | [
"MIT"
] | 14 | 2020-11-10T00:43:49.000Z | 2022-03-05T00:44:17.000Z | tests/func/test_vec_capacity.cc | Lisprez/ctl | 435a2e6ba6cc4222e890b4c5993a750d29cb04e3 | [
"MIT"
] | 51 | 2020-12-16T03:57:19.000Z | 2022-03-23T13:49:10.000Z | #include "../test.h"
#include <stdint.h>
#define P
#define T uint8_t
#include <vec.h>
#define P
#define T uint16_t
#include <vec.h>
#define P
#define T uint32_t
#include <vec.h>
#define P
#define T uint64_t
#include <vec.h>
#define P
#define T float
#include <vec.h>
#define P
#define T double
#include <vec.h>
#... | 29.107438 | 71 | 0.500284 | kokizzu |
6330f885fb0898fec89aa4fc8c9e9aee2dead73e | 2,166 | cc | C++ | tools/binary_size/libsupersize/caspian/grouped_path.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 | tools/binary_size/libsupersize/caspian/grouped_path.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 113 | 2015-05-04T09:58:14.000Z | 2022-01-31T19:35:03.000Z | tools/binary_size/libsupersize/caspian/grouped_path.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 2019 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 "tools/binary_size/libsupersize/caspian/grouped_path.h"
#include <stdint.h>
#include <tuple>
namespace {
// Returns |s| with the last |sep| +... | 28.88 | 77 | 0.689289 | zealoussnow |
6334ea4c6061af99defb4f96c44f670d042c21f7 | 9,403 | hh | C++ | RAVL2/Math/Geometry/Euclidean/2D/Moments2d2.hh | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | RAVL2/Math/Geometry/Euclidean/2D/Moments2d2.hh | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | RAVL2/Math/Geometry/Euclidean/2D/Moments2d2.hh | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | // This file is part of RAVL, Recognition And Vision Library
// Copyright (C) 2001, University of Surrey
// This code may be redistributed under the terms of the GNU Lesser
// General Public License (LGPL). See the lgpl.licence file for details or
// see http://www.gnu.org/copyleft/lesser.html
// file-header-ends-here... | 27.57478 | 112 | 0.594704 | isuhao |
633a167660be5788cc60862b874c510dd76439a9 | 855 | cpp | C++ | apps/src/videostitch-studio-gui/src/commands/spherescalechangedcommand.cpp | tlalexander/stitchEm | cdff821ad2c500703e6cb237ec61139fce7bf11c | [
"MIT"
] | 182 | 2019-04-19T12:38:30.000Z | 2022-03-20T16:48:20.000Z | apps/src/videostitch-studio-gui/src/commands/spherescalechangedcommand.cpp | tlalexander/stitchEm | cdff821ad2c500703e6cb237ec61139fce7bf11c | [
"MIT"
] | 107 | 2019-04-23T10:49:35.000Z | 2022-03-02T18:12:28.000Z | apps/src/videostitch-studio-gui/src/commands/spherescalechangedcommand.cpp | 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
#include "spherescalechangedcommand.hpp"
#include "widgets/outputconfigurationwidget.hpp"
#include <QCoreApplication>
SphereScaleChangedCommand::SphereScaleChangedCommand(double oldSphereScale, double newSphereScale,
... | 38.863636 | 106 | 0.761404 | tlalexander |
633d51fd67d2c7625b3d1550c471b3612264fa25 | 5,646 | cpp | C++ | src/Kernel/ResourceImageData.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 39 | 2016-04-21T03:25:26.000Z | 2022-01-19T14:16:38.000Z | src/Kernel/ResourceImageData.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 23 | 2016-06-28T13:03:17.000Z | 2022-02-02T10:11:54.000Z | src/Kernel/ResourceImageData.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 14 | 2016-06-22T20:45:37.000Z | 2021-07-05T12:25:19.000Z | #include "ResourceImageData.h"
#include "Interface/ImageCodecInterface.h"
#include "Interface/CodecServiceInterface.h"
#include "Interface/ConfigServiceInterface.h"
#include "Kernel/Logger.h"
#include "Kernel/DocumentHelper.h"
#include "Kernel/ConstString.h"
#include "Kernel/AssertionMemoryPanic.h"
#include "Kernel/F... | 35.961783 | 135 | 0.505136 | irov |
633f226b759776df06943ecdcf0a51ee31c32c59 | 958 | cpp | C++ | BrotBoxEngine/MouseButtons.cpp | siretty/BrotBoxEngine | e1eb95152ffb8a7051e96a8937aa62f568b90a27 | [
"MIT"
] | 37 | 2020-06-14T18:14:08.000Z | 2022-03-29T18:39:34.000Z | BrotBoxEngine/MouseButtons.cpp | HEX17/BrotBoxEngine | 4f8bbe220be022423b94e3b594a3695b87705a70 | [
"MIT"
] | 2 | 2021-04-05T15:34:18.000Z | 2021-05-28T00:04:56.000Z | BrotBoxEngine/MouseButtons.cpp | HEX17/BrotBoxEngine | 4f8bbe220be022423b94e3b594a3695b87705a70 | [
"MIT"
] | 10 | 2020-06-25T17:07:03.000Z | 2022-03-08T20:31:17.000Z | #include "BBE/MouseButtons.h"
#include "BBE/Exceptions.h"
bbe::String bbe::mouseButtonToString(MouseButton button)
{
switch (button)
{
case MouseButton::LEFT:
return bbe::String("MB_LEFT");
case MouseButton::RIGHT:
return bbe::String("MB_RIGHT");
case MouseButton::MIDDLE:
return bbe::String("MB_MIDDLE");
c... | 21.288889 | 56 | 0.693111 | siretty |
6342a192baf2b2c8e02b65210518b607600111bd | 2,038 | cpp | C++ | src/MpiOp.cpp | seanmarks/mpi_cpp | a4dda9d310d494272ace08e5e1af2a8a3dc5e029 | [
"MIT"
] | null | null | null | src/MpiOp.cpp | seanmarks/mpi_cpp | a4dda9d310d494272ace08e5e1af2a8a3dc5e029 | [
"MIT"
] | null | null | null | src/MpiOp.cpp | seanmarks/mpi_cpp | a4dda9d310d494272ace08e5e1af2a8a3dc5e029 | [
"MIT"
] | null | null | null | // Written by Sean M. Marks (https://github.com/seanmarks)
#include "MpiOp.h"
MpiOp::MpiOp():
user_function_ptr_(nullptr),
is_commutative_(false)
{}
MpiOp::MpiOp(const MpiOp& mpi_op)
{
this->user_function_ptr_ = mpi_op.user_function_ptr_;
this->is_commutative_ = mpi_op.is_commutative_;
#ifdef MPI_ENABLED
if ... | 25.160494 | 79 | 0.653582 | seanmarks |
63431b7a0f2b81400ec320b0d1a5f036afc1e326 | 5,408 | hpp | C++ | src/standard_sv.hpp | Mohido/Simple_Stereo_Triangulation | 17539c50fd308d0f49c9857bd5dbbbdbdcd2fa09 | [
"MIT"
] | null | null | null | src/standard_sv.hpp | Mohido/Simple_Stereo_Triangulation | 17539c50fd308d0f49c9857bd5dbbbdbdcd2fa09 | [
"MIT"
] | null | null | null | src/standard_sv.hpp | Mohido/Simple_Stereo_Triangulation | 17539c50fd308d0f49c9857bd5dbbbdbdcd2fa09 | [
"MIT"
] | null | null | null | #pragma once
#include <opencv2/core.hpp>
#include <opencv2/highgui.hpp>
#include <opencv2/imgproc.hpp>
#include <iostream>
#include <stdio.h>
#include <vector>
#include <string>
#include <algorithm>
#include <cmath>
#include "functions.hpp"
/// <summary>
/// Caculates the 3D spetial point from the given parameters.
... | 31.44186 | 147 | 0.612981 | Mohido |
6347e35acc79940a0ec5d49634264866130d974f | 1,759 | cpp | C++ | src/Game/CHighScoreList.cpp | kenluck2001/2DGameFrameWork | 4064b0397240f66250099995157e65f2ee3ecff9 | [
"MIT"
] | 1 | 2016-07-22T17:32:38.000Z | 2016-07-22T17:32:38.000Z | src/Game/CHighScoreList.cpp | kenluck2001/2DGameFrameWork | 4064b0397240f66250099995157e65f2ee3ecff9 | [
"MIT"
] | null | null | null | src/Game/CHighScoreList.cpp | kenluck2001/2DGameFrameWork | 4064b0397240f66250099995157e65f2ee3ecff9 | [
"MIT"
] | null | null | null | // =============================
// SDL Programming
// Name: ODOH KENNETH EMEKA
// Student id: 0902024
// Task 18
// =============================
#include "CHighScoreList.h"
#include <fstream>
#include <string>
#include <sstream>
#include <stdexcept>
///////////////////////////////////////////////////////////////////... | 24.430556 | 80 | 0.430358 | kenluck2001 |
634a66eb2fb62de35ceb1659257be7ca6d005f1d | 42 | cpp | C++ | src/LlvmVal.cpp | djmzp/OrbLang | 65b82cb614b39a1946cfa04d042880b7b36412c1 | [
"MIT"
] | 29 | 2020-11-19T16:07:45.000Z | 2022-01-24T09:58:59.000Z | src/LlvmVal.cpp | djmzp/OrbLang | 65b82cb614b39a1946cfa04d042880b7b36412c1 | [
"MIT"
] | null | null | null | src/LlvmVal.cpp | djmzp/OrbLang | 65b82cb614b39a1946cfa04d042880b7b36412c1 | [
"MIT"
] | 5 | 2021-01-06T11:46:59.000Z | 2022-02-06T03:41:50.000Z | #include "LlvmVal.h"
using namespace std;
| 14 | 20 | 0.761905 | djmzp |
634b5836f2522a30c4a13c13513b1b930f0a6b76 | 1,110 | cpp | C++ | homework/Shevtsov/10/main.cpp | mtrempoltsev/msu_cpp_autumn_2017 | 0e87491dc117670b99d2ca2f7e1c5efbc425ae1c | [
"MIT"
] | 10 | 2017-09-21T15:17:33.000Z | 2021-01-11T13:11:55.000Z | homework/Shevtsov/10/main.cpp | mtrempoltsev/msu_cpp_autumn_2017 | 0e87491dc117670b99d2ca2f7e1c5efbc425ae1c | [
"MIT"
] | null | null | null | homework/Shevtsov/10/main.cpp | mtrempoltsev/msu_cpp_autumn_2017 | 0e87491dc117670b99d2ca2f7e1c5efbc425ae1c | [
"MIT"
] | 22 | 2017-09-21T15:45:08.000Z | 2019-02-21T19:15:25.000Z | #include <iostream>
#include <thread>
#include <mutex>
#include <condition_variable>
std::mutex M;
std::condition_variable threadready;
// Условная переменная - позволяет блокировать один или более потоков,
// пока не произойдет некое определенное действие (например, уведомлние
// от другого потока)
// Идея:
// Ожид... | 24.666667 | 86 | 0.733333 | mtrempoltsev |
634b64c75154a938ff8b169543b02b5d5e81148c | 4,075 | cpp | C++ | src/ui/widgets/WidgetList.cpp | ChillstepCoder/Vorb | f74c0cfa3abde4fed0e9ec9d936b23c5210ba2ba | [
"MIT"
] | 65 | 2018-06-03T23:09:46.000Z | 2021-07-22T22:03:34.000Z | src/ui/widgets/WidgetList.cpp | ChillstepCoder/Vorb | f74c0cfa3abde4fed0e9ec9d936b23c5210ba2ba | [
"MIT"
] | 8 | 2018-06-20T17:21:30.000Z | 2020-06-30T01:06:26.000Z | src/ui/widgets/WidgetList.cpp | ChillstepCoder/Vorb | f74c0cfa3abde4fed0e9ec9d936b23c5210ba2ba | [
"MIT"
] | 34 | 2018-06-04T03:40:52.000Z | 2022-02-15T07:02:05.000Z | #include "Vorb/stdafx.h"
#include "Vorb/ui/widgets/WidgetList.h"
vui::WidgetList::WidgetList() :
Widget(),
m_spacing(10.0f),
m_maxHeight(FLT_MAX) {
// Empty
}
vui::WidgetList::~WidgetList() {
// Empty
}
void vui::WidgetList::initBase() {
m_panel.init(this, getName() + "_panel");
m_panel.... | 26.121795 | 152 | 0.628712 | ChillstepCoder |
634c0bede4bb3788285d7582d75feea8c10f3c1e | 233 | cpp | C++ | A/546/main.cpp | ABGEO07/ABGEOs_CodeForces_Projects | 62bf1dc50d435c1f8d2033577e98cf332373b1f8 | [
"MIT"
] | null | null | null | A/546/main.cpp | ABGEO07/ABGEOs_CodeForces_Projects | 62bf1dc50d435c1f8d2033577e98cf332373b1f8 | [
"MIT"
] | null | null | null | A/546/main.cpp | ABGEO07/ABGEOs_CodeForces_Projects | 62bf1dc50d435c1f8d2033577e98cf332373b1f8 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int k, n, w, total(0);
cin >> k >> n >> w;
for (int i(0); i <= w; i++)
total = total + k * i;
if ((total - n) > 0)
cout << total - n;
else
cout << 0;
return 0;
}
| 11.65 | 28 | 0.493562 | ABGEO07 |
63531c43da4d6cd926718a4b27d437150bdd83aa | 2,651 | cpp | C++ | common/lock.cpp | raddinet/raddi | 87e4996dda8ccc0591ffecbd8d717a1a2947e8a9 | [
"MIT"
] | 39 | 2018-05-20T14:08:46.000Z | 2022-02-23T15:46:03.000Z | common/lock.cpp | raddinet/raddi | 87e4996dda8ccc0591ffecbd8d717a1a2947e8a9 | [
"MIT"
] | null | null | null | common/lock.cpp | raddinet/raddi | 87e4996dda8ccc0591ffecbd8d717a1a2947e8a9 | [
"MIT"
] | 3 | 2019-02-26T21:00:19.000Z | 2022-02-03T22:30:52.000Z | #include "lock.h"
namespace {
void WINAPI defaultCsInit (void ** object) {
auto cs = new CRITICAL_SECTION;
InitializeCriticalSectionAndSpinCount (cs, 32);
*object = cs;
}
void WINAPI defaultInit (void ** object) {
if (!lock::initialize ()) {
defaultCsInit (object... | 36.315068 | 139 | 0.612976 | raddinet |
6353231b679b3c06924d1ffb4cd1d140be4ff834 | 38 | cpp | C++ | BASIC c++/beginning_with_cpp/token_structure_controlstructure/exercise-3.7_cosx.cpp | jattramesh/Learning_git | 5191ecc6c0c11b69b9786f2a8bdd3db7228987d6 | [
"MIT"
] | null | null | null | BASIC c++/beginning_with_cpp/token_structure_controlstructure/exercise-3.7_cosx.cpp | jattramesh/Learning_git | 5191ecc6c0c11b69b9786f2a8bdd3db7228987d6 | [
"MIT"
] | null | null | null | BASIC c++/beginning_with_cpp/token_structure_controlstructure/exercise-3.7_cosx.cpp | jattramesh/Learning_git | 5191ecc6c0c11b69b9786f2a8bdd3db7228987d6 | [
"MIT"
] | null | null | null | //
// Created by rahul on 21/7/19.
//
| 9.5 | 31 | 0.552632 | jattramesh |
6353c29a3c7fe363c05bd1534b30355b5b51dd5f | 4,180 | cpp | C++ | Project3/test.cpp | jehalladay/Theory-of-Algorithms | fa35ed1a3c40e45a3b97c93a44e96532b91fb1b5 | [
"MIT"
] | null | null | null | Project3/test.cpp | jehalladay/Theory-of-Algorithms | fa35ed1a3c40e45a3b97c93a44e96532b91fb1b5 | [
"MIT"
] | null | null | null | Project3/test.cpp | jehalladay/Theory-of-Algorithms | fa35ed1a3c40e45a3b97c93a44e96532b91fb1b5 | [
"MIT"
] | null | null | null | /*
Project 3 - Hashtable and Heapsort
James Halladay
Theory of Algorithms
10/9/2021
This program will test the various functions and methods
used to create this project
*/
#include <iostream>
#include <string>
#include <fstream>
#include "hash.h"
#include "heap.h"
#include "utility.h"
using... | 33.44 | 102 | 0.615311 | jehalladay |
6353f342631d0cf7cb7ca49235e5e5311823921b | 2,153 | cc | C++ | content/browser/renderer_host/input/synthetic_pointer_action.cc | Wzzzx/chromium-crosswalk | 768dde8efa71169f1c1113ca6ef322f1e8c9e7de | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2019-01-28T08:09:58.000Z | 2021-11-15T15:32:10.000Z | content/browser/renderer_host/input/synthetic_pointer_action.cc | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | null | null | null | content/browser/renderer_host/input/synthetic_pointer_action.cc | maidiHaitai/haitaibrowser | a232a56bcfb177913a14210e7733e0ea83a6b18d | [
"BSD-3-Clause"
] | 6 | 2020-09-23T08:56:12.000Z | 2021-11-18T03:40:49.000Z | // Copyright 2015 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 "content/browser/renderer_host/input/synthetic_pointer_action.h"
#include "base/logging.h"
#include "third_party/WebKit/public/web/WebInputEvent... | 35.883333 | 80 | 0.748723 | Wzzzx |
636003c01d42140517efea949c39a554c92031c4 | 6,134 | cpp | C++ | src/RichText.cpp | ApertaTeam/utengine | e641a76b6c0042a4b581f1ec51798b74f2bb5293 | [
"MIT"
] | 1 | 2019-06-19T10:19:33.000Z | 2019-06-19T10:19:33.000Z | src/RichText.cpp | ApertaTeam/utengine | e641a76b6c0042a4b581f1ec51798b74f2bb5293 | [
"MIT"
] | null | null | null | src/RichText.cpp | ApertaTeam/utengine | e641a76b6c0042a4b581f1ec51798b74f2bb5293 | [
"MIT"
] | 1 | 2019-06-19T09:00:15.000Z | 2019-06-19T09:00:15.000Z | #include "RichText.h"
#include <sstream>
#include <vector>
#include <stdlib.h>
#include <cmath>
#include <iostream>
namespace UT
{
RichText::RichText()
{
this->font = NULL;
this->rawText = "";
this->renderPosition = { 0, 0 };
this->monospacing = -1;
this->renderOffset = ... | 34.077778 | 153 | 0.3955 | ApertaTeam |
636cb1c86daef7a48964faa4c74f074c64edc9d1 | 306 | hpp | C++ | math/totient.hpp | matumoto1234/library | a2c80516a8afe5876696c139fe0e837d8a204f69 | [
"Unlicense"
] | 2 | 2021-06-24T11:21:08.000Z | 2022-03-15T05:57:25.000Z | math/totient.hpp | matumoto1234/library | a2c80516a8afe5876696c139fe0e837d8a204f69 | [
"Unlicense"
] | 102 | 2021-10-30T21:30:00.000Z | 2022-03-26T18:39:47.000Z | math/totient.hpp | matumoto1234/library | a2c80516a8afe5876696c139fe0e837d8a204f69 | [
"Unlicense"
] | null | null | null | #pragma once
#include "./base.hpp"
namespace math {
ll totient(ll n) {
ll res = n;
for (ll i = 2; i * i <= n; i++) {
if (n % i == 0) {
res -= res / i;
while (n % i == 0)
n /= i;
}
}
if (n > 1) res -= res / n;
return res;
}
} // namespace math | 17 | 37 | 0.395425 | matumoto1234 |
636fabe2c052b4b43579806cf9463cf3c67c6d95 | 466 | cpp | C++ | detail/os/reactor/iocp/wsa_activator.cpp | wembikon/baba.io | 87bec680c1febb64356af59e7e499c2b2b64d30c | [
"MIT"
] | null | null | null | detail/os/reactor/iocp/wsa_activator.cpp | wembikon/baba.io | 87bec680c1febb64356af59e7e499c2b2b64d30c | [
"MIT"
] | 1 | 2020-06-12T10:22:09.000Z | 2020-06-12T10:22:09.000Z | detail/os/reactor/iocp/wsa_activator.cpp | wembikon/baba.io | 87bec680c1febb64356af59e7e499c2b2b64d30c | [
"MIT"
] | null | null | null | /**
* MIT License
* Copyright (c) 2020 Adrian T. Visarra
**/
#include "os/reactor/iocp/wsa_activator.h"
#include "baba/logger.h"
#include <cstdlib>
namespace baba::os {
wsa_activator::wsa_activator() : _data{0} {
if (int result = WSAStartup(MAKEWORD(2, 2), &_data); result != 0) {
LOGFTL("WSA... | 20.26087 | 70 | 0.61588 | wembikon |
6372daa8a7657bd5527e7d405f63b87b60020e6d | 1,775 | cpp | C++ | Dataset/Leetcode/train/13/890.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/13/890.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | Dataset/Leetcode/train/13/890.cpp | kkcookies99/UAST | fff81885aa07901786141a71e5600a08d7cb4868 | [
"MIT"
] | null | null | null | class Solution {
public:
int XXX(string s)
{
int temp1=0;
int temp=0;
int sum =0;
for(int i=0; i<s.length();i++)
{
switch(s[i])
{
case 'I':
temp=1;
if(i<(s.length()-1)&&s[i+1]=='V')
... | 23.051948 | 53 | 0.19493 | kkcookies99 |
63764c869d04378fabcef48ae6faa69e5a49aa8b | 963 | hpp | C++ | src/Homie/Boot/BootConfig.hpp | neo164/wi-fi-iot | dad284b235c5540897585e81c56be58136121b52 | [
"MIT"
] | null | null | null | src/Homie/Boot/BootConfig.hpp | neo164/wi-fi-iot | dad284b235c5540897585e81c56be58136121b52 | [
"MIT"
] | null | null | null | src/Homie/Boot/BootConfig.hpp | neo164/wi-fi-iot | dad284b235c5540897585e81c56be58136121b52 | [
"MIT"
] | null | null | null | #pragma once
#include <functional>
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#include <DNSServer.h>
#include <ArduinoJson.h>
#include "Boot.hpp"
#include "../Config.hpp"
#include "../Constants.hpp"
#include "../Limits.hpp"
#include "../Datatypes/Interface.hpp"
#include "../Timer.hpp"
#include "../Helpers.... | 22.928571 | 40 | 0.669782 | neo164 |
637798f0f22b2ed2ed3b8043dd7b9a62996f97a9 | 10,542 | cpp | C++ | libs/libsmlibraries/tests/testlibsmlibraries/testbcp47languages.cpp | simonmeaden/EPubEdit | 52f4fa0bab9f271db3b06b7d87575cc23a0bdf9c | [
"MIT"
] | null | null | null | libs/libsmlibraries/tests/testlibsmlibraries/testbcp47languages.cpp | simonmeaden/EPubEdit | 52f4fa0bab9f271db3b06b7d87575cc23a0bdf9c | [
"MIT"
] | null | null | null | libs/libsmlibraries/tests/testlibsmlibraries/testbcp47languages.cpp | simonmeaden/EPubEdit | 52f4fa0bab9f271db3b06b7d87575cc23a0bdf9c | [
"MIT"
] | null | null | null | #include "testbcp47languages.h"
namespace {
BCP47LanguagesTest::BCP47LanguagesTest()
: configDir(
QDir(QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation)))
, libraryDir(QDir(Paths::join(
QStandardPaths::writableLocation(QStandardPaths::AppDataLocation),
"library")))
, configFi... | 36.477509 | 80 | 0.712294 | simonmeaden |
6377d2fb0384303102edd14d113ae597fddb47db | 28,333 | hpp | C++ | src/matrix.hpp | degarashi/frea | bb598245c2ab710cc816e98d7361e5863af5fd7e | [
"MIT"
] | null | null | null | src/matrix.hpp | degarashi/frea | bb598245c2ab710cc816e98d7361e5863af5fd7e | [
"MIT"
] | null | null | null | src/matrix.hpp | degarashi/frea | bb598245c2ab710cc816e98d7361e5863af5fd7e | [
"MIT"
] | null | null | null | #pragma once
#include "vector.hpp"
#include "angle.hpp"
#include "lubee/src/meta/compare.hpp"
#include "lubee/src/ieee754.hpp"
#include "exception.hpp"
namespace frea {
template <class VW, int M>
using wrapM_t = wrapM_spec<VW, M, VW::size>;
// ベクトル演算レジスタクラスをM方向に束ねたもの
/*!
\tparam VW 各行のベクトル型
\tparam M 行数
\... | 29.421599 | 114 | 0.60156 | degarashi |
6379528fa1e38bf77ede17d16b81d8d5b6e5f177 | 334 | cpp | C++ | 2676/2676.cpp14.cpp | isac322/BOJ | 35959dd1a63d75ebca9ed606051f7a649d5c0c7b | [
"MIT"
] | 14 | 2017-05-02T02:00:42.000Z | 2021-11-16T07:25:29.000Z | 2676/2676.cpp14.cpp | isac322/BOJ | 35959dd1a63d75ebca9ed606051f7a649d5c0c7b | [
"MIT"
] | 1 | 2017-12-25T14:18:14.000Z | 2018-02-07T06:49:44.000Z | 2676/2676.cpp14.cpp | isac322/BOJ | 35959dd1a63d75ebca9ed606051f7a649d5c0c7b | [
"MIT"
] | 9 | 2016-03-03T22:06:52.000Z | 2020-04-30T22:06:24.000Z | #include <cstdio>
int main() {
int t, n, m;
scanf("%d", &t);
while (t--) {
scanf("%d%d", &n, &m);
if (n < 0 || m < 0 || m > n) puts("0");
else if (!m || n == m) puts("1");
else {
int dif = m - 1;
if (m > n / 2) m = n - 1 - m;
for (int i = 0, c = n - 3; i < dif; i++, c -= 2) n += c;
printf("%d\n"... | 19.647059 | 59 | 0.374251 | isac322 |
6380d83a6ab7344c5e7f4711fa2df71dbf93c7fb | 174 | cxx | C++ | projects/TemplateAnalysis/examples/inspect-autovar/test-005.cxx | ouankou/rose | 76f2a004bd6d8036bc24be2c566a14e33ba4f825 | [
"BSD-3-Clause"
] | 488 | 2015-01-09T08:54:48.000Z | 2022-03-30T07:15:46.000Z | projects/TemplateAnalysis/examples/inspect-autovar/test-005.cxx | WildeGeist/rose | 17db6454e8baba0014e30a8ec23df1a11ac55a0c | [
"BSD-3-Clause"
] | 174 | 2015-01-28T18:41:32.000Z | 2022-03-31T16:51:05.000Z | projects/TemplateAnalysis/examples/inspect-autovar/test-005.cxx | WildeGeist/rose | 17db6454e8baba0014e30a8ec23df1a11ac55a0c | [
"BSD-3-Clause"
] | 146 | 2015-04-27T02:48:34.000Z | 2022-03-04T07:32:53.000Z |
template <typename T>
struct A {
void foo() {
T v;
}
};
template <typename T>
struct B {
typedef T type;
};
void bar() {
A<float> v;
B< A<int> >::type w;
}
| 9.157895 | 22 | 0.534483 | ouankou |
6382661cb6f4376c759b0f4840a3018570268b4d | 204 | hpp | C++ | src/GUI/Console.hpp | 370rokas/MediaServer | 9a74d2a77a2af499ebf9357c2bdb6e70375ad072 | [
"MIT"
] | 1 | 2022-03-11T20:09:27.000Z | 2022-03-11T20:09:27.000Z | src/GUI/Console.hpp | 370rokas/MediaServer | 9a74d2a77a2af499ebf9357c2bdb6e70375ad072 | [
"MIT"
] | null | null | null | src/GUI/Console.hpp | 370rokas/MediaServer | 9a74d2a77a2af499ebf9357c2bdb6e70375ad072 | [
"MIT"
] | null | null | null | //
// Created by rokas on 3/12/22.
//
#ifndef WUSEMEDIASERVER_CONSOLE_HPP
#define WUSEMEDIASERVER_CONSOLE_HPP
class Console {
public:
void Run();
private:
};
#endif //WUSEMEDIASERVER_CONSOLE_HPP
| 12 | 36 | 0.740196 | 370rokas |
63836f176f9bfa85e118a527b5c73e7f8980c5ed | 4,501 | cpp | C++ | src/nnfusion/core/kernels/cuda_gpu/util/gpu_util.cpp | lynex/nnfusion | 6332697c71b6614ca6f04c0dac8614636882630d | [
"MIT"
] | 639 | 2020-09-05T10:00:59.000Z | 2022-03-30T08:42:39.000Z | src/nnfusion/core/kernels/cuda_gpu/util/gpu_util.cpp | QPC-database/nnfusion | 99ada47c50f355ca278001f11bc752d1c7abcee2 | [
"MIT"
] | 252 | 2020-09-09T05:35:36.000Z | 2022-03-29T04:58:41.000Z | src/nnfusion/core/kernels/cuda_gpu/util/gpu_util.cpp | QPC-database/nnfusion | 99ada47c50f355ca278001f11bc752d1c7abcee2 | [
"MIT"
] | 104 | 2020-09-05T10:01:08.000Z | 2022-03-23T10:59:13.000Z | //*****************************************************************************
// Copyright 2017-2020 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://w... | 33.842105 | 93 | 0.565874 | lynex |
638a64d0087e85458287c8af5b72311314ac2c05 | 2,448 | hpp | C++ | vm/test/test_vm_native_library.hpp | marnen/rubinius | 05b3f9789d01bada0604a7f09921c956bc9487e7 | [
"BSD-3-Clause"
] | 1 | 2016-05-08T16:58:14.000Z | 2016-05-08T16:58:14.000Z | vm/test/test_vm_native_library.hpp | taf2/rubinius | 493bfa2351fc509ca33d3bb03991c2e9c2b6dafa | [
"BSD-3-Clause"
] | null | null | null | vm/test/test_vm_native_library.hpp | taf2/rubinius | 493bfa2351fc509ca33d3bb03991c2e9c2b6dafa | [
"BSD-3-Clause"
] | null | null | null | #include <cstdlib>
#include "native_libraries.hpp"
#include "builtin/exception.hpp"
#include <cxxtest/TestSuite.h>
using namespace rubinius;
class TestNativeLibrary : public CxxTest::TestSuite {
public:
VM* state_;
const char* lib_name_;
void setUp() {
state_ = new VM();
lib_name_ = ::getenv("LIB... | 28.465116 | 80 | 0.665033 | marnen |
638c78a037194448ecae1ba50747e6a9ba4e3c4f | 1,056 | hpp | C++ | rds_gui_ros/src/rds_gui_ros_node.hpp | epfl-lasa/rds | 574b3881dbaf4fdcd785dd96ba4c451928454b40 | [
"MIT"
] | 12 | 2020-08-18T09:01:50.000Z | 2022-03-17T19:53:30.000Z | rds_gui_ros/src/rds_gui_ros_node.hpp | epfl-lasa/rds | 574b3881dbaf4fdcd785dd96ba4c451928454b40 | [
"MIT"
] | null | null | null | rds_gui_ros/src/rds_gui_ros_node.hpp | epfl-lasa/rds | 574b3881dbaf4fdcd785dd96ba4c451928454b40 | [
"MIT"
] | 1 | 2021-08-25T13:12:55.000Z | 2021-08-25T13:12:55.000Z | #ifndef RDS_GUI_ROS_NODE_HPP
#define RDS_GUI_ROS_NODE_HPP
#include <rds/gui.hpp>
#include <rds/geometry.hpp>
#include <rds_network_ros/ToGui.h>
#include <ros/ros.h>
struct RDSGUIROSNode
{
RDSGUIROSNode(ros::NodeHandle* n);
void toGuiMessageCallback(const rds_network_ros::ToGui::ConstPtr& to_gui_msg);
GUI gui_c... | 28.540541 | 116 | 0.805871 | epfl-lasa |
638ca6cb52621f723ba8044101e0cd0594c94b99 | 35,119 | cpp | C++ | Source/WebKit/UIProcess/WebStorage/StorageManager.cpp | ijsf/DeniseEmbeddableWebKit | 57dfc6783d60f8f59b7129874e60f84d8c8556c9 | [
"BSD-3-Clause"
] | 1 | 2021-05-27T07:29:31.000Z | 2021-05-27T07:29:31.000Z | WebKit2-7604.1.38.0.7/WebKit2-7604.1.38.0.7/UIProcess/Storage/StorageManager.cpp | mlcldh/appleWebKit2 | 39cc42a4710c9319c8da269621844493ab2ccdd6 | [
"MIT"
] | 9 | 2020-04-18T18:47:18.000Z | 2020-04-18T18:52:41.000Z | Source/WebKit/UIProcess/WebStorage/StorageManager.cpp | ijsf/DeniseEmbeddableWebKit | 57dfc6783d60f8f59b7129874e60f84d8c8556c9 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2013-2016 Apple 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 the above copyright
* notice, this list of conditi... | 40.274083 | 226 | 0.749822 | ijsf |
b0cb1dd84798548af5cb2e00bdcf13311013f1ed | 1,419 | hpp | C++ | source/framework/core/include/lue/framework/core/debug.hpp | computationalgeography/lue | 71993169bae67a9863d7bd7646d207405dc6f767 | [
"MIT"
] | 2 | 2021-02-26T22:45:56.000Z | 2021-05-02T10:28:48.000Z | source/framework/core/include/lue/framework/core/debug.hpp | pcraster/lue | e64c18f78a8b6d8a602b7578a2572e9740969202 | [
"MIT"
] | 262 | 2016-08-11T10:12:02.000Z | 2020-10-13T18:09:16.000Z | source/framework/core/include/lue/framework/core/debug.hpp | computationalgeography/lue | 71993169bae67a9863d7bd7646d207405dc6f767 | [
"MIT"
] | 1 | 2020-03-11T09:49:41.000Z | 2020-03-11T09:49:41.000Z | #pragma once
#include <hpx/future.hpp>
#include <fmt/format.h>
#include <string>
namespace lue {
hpx::future<std::string> system_description();
void write_debug_message (std::string const& message);
template<
typename Class>
std::string describe (Class const& instance);
templa... | 19.175676 | 72 | 0.569415 | computationalgeography |
b0cc3f4253c3add683bfa3768d9ed44bcf883f99 | 279 | cpp | C++ | CPP/HelloCpp2/chapter_20/Inheritance2.cpp | hrntsm/study-language | 922578a5321d70c26b935e6052f400125e15649c | [
"MIT"
] | 1 | 2022-02-06T10:50:42.000Z | 2022-02-06T10:50:42.000Z | CPP/HelloCpp2/chapter_20/Inheritance2.cpp | hrntsm/study-language | 922578a5321d70c26b935e6052f400125e15649c | [
"MIT"
] | null | null | null | CPP/HelloCpp2/chapter_20/Inheritance2.cpp | hrntsm/study-language | 922578a5321d70c26b935e6052f400125e15649c | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
class Kitty {
public:
void nyan() { cout << "Kitty on your lap\n";}
};
class Di_Gi_Gharat : public Kitty{
public:
void nyan() {cout << "Di Gi Gharat\n";}
} obj;
int main(){
obj.nyan();
obj.Kitty::nyan();
return 0;
}
| 14.684211 | 49 | 0.602151 | hrntsm |
b0cc4ae220c4645885fe9741eae45887b880a64f | 4,321 | cpp | C++ | Source/10.0.18362.0/ucrt/mbstring/mbsnbicm.cpp | 825126369/UCRT | 8853304fdc2a5c216658d08b6dbbe716aa2a7b1f | [
"MIT"
] | 2 | 2021-01-27T10:19:30.000Z | 2021-02-09T06:24:30.000Z | Source/10.0.18362.0/ucrt/mbstring/mbsnbicm.cpp | 825126369/UCRT | 8853304fdc2a5c216658d08b6dbbe716aa2a7b1f | [
"MIT"
] | null | null | null | Source/10.0.18362.0/ucrt/mbstring/mbsnbicm.cpp | 825126369/UCRT | 8853304fdc2a5c216658d08b6dbbe716aa2a7b1f | [
"MIT"
] | 1 | 2021-01-27T10:19:36.000Z | 2021-01-27T10:19:36.000Z | /***
*mbsnbicmp.c - Compare n bytes of strings, ignoring case (MBCS)
*
* Copyright (c) Microsoft Corporation. All rights reserved.
*
*Purpose:
* Compare n bytes of strings, ignoring case (MBCS)
*
*******************************************************************************/
#ifndef _MBCS
#error This ... | 32.246269 | 88 | 0.466559 | 825126369 |
b0d50eca9eba291146ff50b299354b6cfe439952 | 3,002 | cpp | C++ | implementations/Bullet/MotionState.cpp | ronsaldo/abstract-physics | dbc23a57bfa369139c786071b2a6db4e84bb16fe | [
"MIT"
] | 10 | 2016-12-11T04:54:18.000Z | 2022-02-27T18:12:18.000Z | implementations/Bullet/MotionState.cpp | ronsaldo/abstract-physics | dbc23a57bfa369139c786071b2a6db4e84bb16fe | [
"MIT"
] | null | null | null | implementations/Bullet/MotionState.cpp | ronsaldo/abstract-physics | dbc23a57bfa369139c786071b2a6db4e84bb16fe | [
"MIT"
] | null | null | null | #include "MotionState.hpp"
#include "Utility.hpp"
namespace APhyBullet
{
BulletMotionState::BulletMotionState(btMotionState *handle)
: handle(handle)
{
}
BulletMotionState::~BulletMotionState()
{
delete handle;
}
aphy_transform BulletMotionState::getTransform()
{
btTransform transform;
handle->getWo... | 22.916031 | 72 | 0.763824 | ronsaldo |
b0d98e82d35ae57ab6a8db0755b711319ed10ba6 | 1,218 | cpp | C++ | Plugins/org.blueberry.core.runtime/src/berryIBerryPreferences.cpp | gaoxiaojun/minircp | fe20201a768515cd0387f0b76a16c0c766cf939d | [
"BSD-3-Clause"
] | 5 | 2015-02-05T10:58:41.000Z | 2019-04-17T15:04:07.000Z | Plugins/org.blueberry.core.runtime/src/berryIBerryPreferences.cpp | wyyrepo/MITK | d0837f3d0d44f477b888ec498e9a2ed407e79f20 | [
"BSD-3-Clause"
] | 141 | 2015-03-03T06:52:01.000Z | 2020-12-10T07:28:14.000Z | Plugins/org.blueberry.core.runtime/src/berryIBerryPreferences.cpp | wyyrepo/MITK | d0837f3d0d44f477b888ec498e9a2ed407e79f20 | [
"BSD-3-Clause"
] | 4 | 2015-02-19T06:48:13.000Z | 2020-06-19T16:20:25.000Z | /*===================================================================
BlueBerry Platform
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty of MERCHANTABILITY or FITNESS... | 22.145455 | 95 | 0.665846 | gaoxiaojun |
b0db5924fca9ef1988ac57895c13e266691e9fae | 1,684 | cpp | C++ | Samples/SampleEditorUI/SampleEditorUI.cpp | AlexSabourinDev/IceBox | 9226e15fc5e78e68c0d92ceea51996fdeab36ca7 | [
"MIT"
] | 3 | 2020-09-22T15:56:07.000Z | 2022-02-08T23:54:50.000Z | Samples/SampleEditorUI/SampleEditorUI.cpp | AlexSabourinDev/IceBox | 9226e15fc5e78e68c0d92ceea51996fdeab36ca7 | [
"MIT"
] | 37 | 2020-09-21T17:00:17.000Z | 2022-02-10T00:30:59.000Z | Samples/SampleEditorUI/SampleEditorUI.cpp | AlexSabourinDev/IceBox | 9226e15fc5e78e68c0d92ceea51996fdeab36ca7 | [
"MIT"
] | 3 | 2020-10-04T00:46:31.000Z | 2022-02-09T00:05:36.000Z | #include <IBEngine/IBRenderer.h>
#include <IBEngine/IBRendererFrontend.h>
#include <IBEngine/IBSerialization.h>
#include <IBEngine/IBLogging.h>
#include <IBEngine/IBPlatform.h>
#include <imgui/imgui.h>
int main()
{
IB::WindowDesc winDesc = {};
winDesc.Name = "Ice Box";
winDesc.Width = 1024;
winDesc.He... | 26.730159 | 122 | 0.610451 | AlexSabourinDev |
b0e087b548cb6df0d04f44e3f91c2daa82296873 | 438 | cpp | C++ | src/publisher/distributions_publisher.cpp | doge-of-the-day/cslibs_mapping | f8c9790ef0148c26792ad5af7086db792f693955 | [
"BSD-3-Clause"
] | 36 | 2018-11-13T09:45:17.000Z | 2022-01-04T00:46:45.000Z | src/publisher/distributions_publisher.cpp | doge-of-the-day/cslibs_mapping | f8c9790ef0148c26792ad5af7086db792f693955 | [
"BSD-3-Clause"
] | 7 | 2019-04-29T08:15:19.000Z | 2022-02-20T17:07:09.000Z | src/publisher/distributions_publisher.cpp | doge-of-the-day/cslibs_mapping | f8c9790ef0148c26792ad5af7086db792f693955 | [
"BSD-3-Clause"
] | 19 | 2018-05-19T06:45:49.000Z | 2022-01-04T00:46:50.000Z | #include "distributions_publisher.h"
#include <class_loader/register_macro.hpp>
CLASS_LOADER_REGISTER_CLASS(cslibs_mapping::publisher::DistributionsPublisher, cslibs_mapping::publisher::Publisher)
CLASS_LOADER_REGISTER_CLASS(cslibs_mapping::publisher::DistributionsPublisher_d, cslibs_mapping::publisher::Publisher)
C... | 62.571429 | 118 | 0.874429 | doge-of-the-day |
b0e36556bc0154e91df605d98e8963ae2ad0f877 | 4,032 | cpp | C++ | activemq-cpp/src/test/decaf/util/zip/CheckedOutputStreamTest.cpp | novomatic-tech/activemq-cpp | d6f76ede90d21b7ee2f0b5d4648e440e66d63003 | [
"Apache-2.0"
] | 87 | 2015-03-02T17:58:20.000Z | 2022-02-11T02:52:52.000Z | activemq-cpp/src/test/decaf/util/zip/CheckedOutputStreamTest.cpp | novomatic-tech/activemq-cpp | d6f76ede90d21b7ee2f0b5d4648e440e66d63003 | [
"Apache-2.0"
] | 3 | 2017-06-14T15:21:50.000Z | 2020-08-03T19:51:57.000Z | activemq-cpp/src/test/decaf/util/zip/CheckedOutputStreamTest.cpp | novomatic-tech/activemq-cpp | d6f76ede90d21b7ee2f0b5d4648e440e66d63003 | [
"Apache-2.0"
] | 71 | 2015-04-28T06:04:04.000Z | 2022-03-15T13:34:06.000Z | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 36 | 98 | 0.599454 | novomatic-tech |
b0e6163b32274371f06357425c6645c9ce4a2eda | 5,262 | cpp | C++ | src/Orbit/Graphics/Geometry/Mesh.cpp | Gaztin/Orb | 4589f3f0165d287482ab4b367f02633ea4e7c9a5 | [
"Zlib"
] | 41 | 2018-08-02T06:28:07.000Z | 2022-01-20T01:23:42.000Z | src/Orbit/Graphics/Geometry/Mesh.cpp | Gaztin/Orb | 4589f3f0165d287482ab4b367f02633ea4e7c9a5 | [
"Zlib"
] | 4 | 2020-02-11T22:10:31.000Z | 2020-07-06T19:36:09.000Z | src/Orbit/Graphics/Geometry/Mesh.cpp | Gaztin/Orb | 4589f3f0165d287482ab4b367f02633ea4e7c9a5 | [
"Zlib"
] | 4 | 2018-11-18T10:19:57.000Z | 2021-07-14T02:58:40.000Z | /*
* Copyright (c) 2020 Sebastian Kylander https://gaztin.com/
*
* This software is provided 'as-is', without any express or implied warranty. In no event will
* the authors be held liable for any damages arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpo... | 38.691176 | 231 | 0.710376 | Gaztin |
b0e6c5e241c6030a779d5fa4994f246e926a6d0f | 3,149 | cpp | C++ | libhpx/network/SMPNetwork.cpp | luglio/hpx5 | 6cbeebb8e730ee9faa4487dba31a38e3139e1ce7 | [
"BSD-3-Clause"
] | 1 | 2019-11-05T21:11:32.000Z | 2019-11-05T21:11:32.000Z | libhpx/network/SMPNetwork.cpp | ldalessa/hpx | c8888c38f5c12c27bfd80026d175ceb3839f0b40 | [
"BSD-3-Clause"
] | null | null | null | libhpx/network/SMPNetwork.cpp | ldalessa/hpx | c8888c38f5c12c27bfd80026d175ceb3839f0b40 | [
"BSD-3-Clause"
] | 3 | 2019-06-21T07:05:43.000Z | 2020-11-21T15:24:04.000Z | // =============================================================================
// High Performance ParalleX Library (libhpx)
//
// Copyright (c) 2013-2017, Trustees of Indiana University,
// All rights reserved.
//
// This software may be modified and distributed under the terms of the BSD
// license. See the C... | 20.057325 | 82 | 0.683709 | luglio |
b0e83b9727f6a352103a42c6c52790b966114a8e | 11,662 | cpp | C++ | src/EOIconManager.cpp | obones/EVEopenHAB | 8e1c603e0c4ebf2b108685dbf5548e3a17a1561c | [
"MIT"
] | null | null | null | src/EOIconManager.cpp | obones/EVEopenHAB | 8e1c603e0c4ebf2b108685dbf5548e3a17a1561c | [
"MIT"
] | null | null | null | src/EOIconManager.cpp | obones/EVEopenHAB | 8e1c603e0c4ebf2b108685dbf5548e3a17a1561c | [
"MIT"
] | null | null | null | /*
@file EOIconManager.cpp
@brief Contains the Icon manager definitions
@date 2021-09-17
@author Olivier Sannier
@section LICENSE
MIT License
Copyright (c) 2021 Olivier Sannier
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (... | 38.361842 | 166 | 0.56877 | obones |
b0e84489f0c86ffe4e3db2718d2190e7ebb1f849 | 85 | cpp | C++ | node.cpp | Qt-Widgets/SPICE-circuit | f43bac80ef7322948eb89cdeb899751c25252d29 | [
"MIT"
] | 9 | 2020-05-04T13:21:39.000Z | 2022-03-13T05:44:58.000Z | node.cpp | s94285/SPICE | f43bac80ef7322948eb89cdeb899751c25252d29 | [
"MIT"
] | null | null | null | node.cpp | s94285/SPICE | f43bac80ef7322948eb89cdeb899751c25252d29 | [
"MIT"
] | 6 | 2019-09-28T06:02:04.000Z | 2021-12-18T21:39:44.000Z | #include "node.h"
Node::Node(QGraphicsItem *parent):QGraphicsItemGroup(parent)
{
}
| 12.142857 | 60 | 0.741176 | Qt-Widgets |
b0f3f757c800a88e77992bee09870e2a61d29e1a | 919 | cpp | C++ | Engine/Core/Sources/Threading/Thread.cpp | kaluginadaria/YetAnotherProject | abedd20b484f868ded83e72261970703a27e024d | [
"MIT"
] | null | null | null | Engine/Core/Sources/Threading/Thread.cpp | kaluginadaria/YetAnotherProject | abedd20b484f868ded83e72261970703a27e024d | [
"MIT"
] | null | null | null | Engine/Core/Sources/Threading/Thread.cpp | kaluginadaria/YetAnotherProject | abedd20b484f868ded83e72261970703a27e024d | [
"MIT"
] | null | null | null | #include "Thread.hpp"
#include <chrono>
#include <iostream>
#include "ThreadPool.hpp"
const ThreadTask ThreadTask::NoTasksFound = ThreadTask(nullptr, ThreadTask::eNoTasksFound);
const ThreadTask ThreadTask::ShouldDie = ThreadTask(nullptr, ThreadTask::eShouldDie );
const ThreadTask ThreadTask::NextLoop = Thre... | 22.414634 | 97 | 0.70185 | kaluginadaria |
b0f4c4427b61d94ca4b0c9f66aedb58a2a93a545 | 4,264 | cc | C++ | code/render/frame/framepass.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 67 | 2015-03-30T19:56:16.000Z | 2022-03-11T13:52:17.000Z | code/render/frame/framepass.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 5 | 2015-04-15T17:17:33.000Z | 2016-02-11T00:40:17.000Z | code/render/frame/framepass.cc | gscept/nebula-trifid | e7c0a0acb05eedad9ed37a72c1bdf2d658511b42 | [
"BSD-2-Clause"
] | 34 | 2015-03-30T15:08:00.000Z | 2021-09-23T05:55:10.000Z | //------------------------------------------------------------------------------
// framepass.cc
// (C) 2007 Radon Labs GmbH
// (C) 2013-2016 Individual contributors, see AUTHORS file
//------------------------------------------------------------------------------
#include "stdneb.h"
#include "frame/framepass.h"
#in... | 28.810811 | 119 | 0.593105 | gscept |
b0f60b2f479203abc4d193336bbf8798ec23bcb9 | 987 | cpp | C++ | opencv/resize/test.cpp | ericosur/ccbox | c230bd77533bf9a8af8f7183ea2cd2ae019716f7 | [
"MIT"
] | null | null | null | opencv/resize/test.cpp | ericosur/ccbox | c230bd77533bf9a8af8f7183ea2cd2ae019716f7 | [
"MIT"
] | 10 | 2020-07-14T04:00:12.000Z | 2020-07-14T05:30:48.000Z | opencv/resize/test.cpp | ericosur/ccbox | c230bd77533bf9a8af8f7183ea2cd2ae019716f7 | [
"MIT"
] | null | null | null | #include "mytool/mytool.h"
#include <iostream>
#include <string>
#include <opencv2/opencv.hpp>
#include <nlohmann/json.hpp>
#define SETTING_JSON "../setting.json"
#define DEFAULT_TESTIMAGE "lena.png"
#define REPEAT 200
void test()
{
using namespace std;
using namespace cv;
string test_ima... | 25.973684 | 104 | 0.616008 | ericosur |
b0fc14f5f8731d40220a3a0ae1b98fd5e95e000e | 2,122 | cc | C++ | content/renderer/webcrypto_impl.cc | kurli/chromium-crosswalk | f4c5d15d49d02b74eb834325e4dff50b16b53243 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | content/renderer/webcrypto_impl.cc | kurli/chromium-crosswalk | f4c5d15d49d02b74eb834325e4dff50b16b53243 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | content/renderer/webcrypto_impl.cc | kurli/chromium-crosswalk | f4c5d15d49d02b74eb834325e4dff50b16b53243 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // 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 "content/renderer/webcrypto_impl.h"
#include "base/memory/scoped_ptr.h"
#include "third_party/WebKit/public/platform/WebArrayBuffer.h"
#incl... | 28.293333 | 73 | 0.683318 | kurli |
b0fd829d724b15a07c5ecd6beb1d8c252f061e2c | 1,396 | hpp | C++ | Engine/Math/Dice.hpp | achen889/Warlockery_Engine | 160a14e85009057f4505ff5380a8c17258698f3e | [
"MIT"
] | null | null | null | Engine/Math/Dice.hpp | achen889/Warlockery_Engine | 160a14e85009057f4505ff5380a8c17258698f3e | [
"MIT"
] | null | null | null | Engine/Math/Dice.hpp | achen889/Warlockery_Engine | 160a14e85009057f4505ff5380a8c17258698f3e | [
"MIT"
] | null | null | null | //==============================================================================================================
//Dice.hpp
//by Albert Chen Sep-2-2015.
//==============================================================================================================
#pragma once
#ifndef _included_Dice__
#define _inclu... | 22.885246 | 112 | 0.424785 | achen889 |
b0fe5b28fc38aa1790c14a9e84139604f3c35998 | 549 | cpp | C++ | podboat.cpp | adiel-mittmann/newsboat | 8011952624387f0b2fcb18ba5d96382c257764c2 | [
"MIT"
] | null | null | null | podboat.cpp | adiel-mittmann/newsboat | 8011952624387f0b2fcb18ba5d96382c257764c2 | [
"MIT"
] | null | null | null | podboat.cpp | adiel-mittmann/newsboat | 8011952624387f0b2fcb18ba5d96382c257764c2 | [
"MIT"
] | null | null | null | #include <iostream>
#include <config.h>
#include <pb_controller.h>
#include <cstring>
#include <pb_view.h>
#include <errno.h>
#include <utils.h>
using namespace podboat;
int main(int argc, char * argv[]) {
utils::initialize_ssl_implementation();
if (!setlocale(LC_CTYPE,"") || !setlocale(LC_MESSAGES,"")) {
std::... | 19.607143 | 68 | 0.68306 | adiel-mittmann |
7c04605bb9c6d08c1c8c8e187b9100d340905be5 | 1,192 | c++ | C++ | linker_script/strategies/default_e20_strategy.c++ | sctincman/freedom-devicetree-tools | 668d8795e474623863f65f890022d1d471a1c64b | [
"Apache-2.0",
"MIT"
] | null | null | null | linker_script/strategies/default_e20_strategy.c++ | sctincman/freedom-devicetree-tools | 668d8795e474623863f65f890022d1d471a1c64b | [
"Apache-2.0",
"MIT"
] | null | null | null | linker_script/strategies/default_e20_strategy.c++ | sctincman/freedom-devicetree-tools | 668d8795e474623863f65f890022d1d471a1c64b | [
"Apache-2.0",
"MIT"
] | null | null | null | /* Copyright (c) 2019 SiFive Inc. */
/* SPDX-License-Identifier: Apache-2.0 */
#include "default_e20_strategy.h"
#include <layouts/default_layout.h>
#include <layouts/scratchpad_layout.h>
#include <layouts/ramrodata_layout.h>
bool DefaultE20Strategy::valid(const fdt &dtb, list<Memory> available_memories)
{
return ... | 29.073171 | 97 | 0.738255 | sctincman |
7c05632785ddee5669c5f9c890236c674cefce29 | 585 | cpp | C++ | cilantro/src/graphics/Framebuffer.cpp | dpilawa/cilantro | 69daa2112e8e373783b4f1a27c62770e4540eb6f | [
"MIT"
] | null | null | null | cilantro/src/graphics/Framebuffer.cpp | dpilawa/cilantro | 69daa2112e8e373783b4f1a27c62770e4540eb6f | [
"MIT"
] | null | null | null | cilantro/src/graphics/Framebuffer.cpp | dpilawa/cilantro | 69daa2112e8e373783b4f1a27c62770e4540eb6f | [
"MIT"
] | null | null | null | #include "cilantroengine.h"
#include "graphics/Framebuffer.h"
Framebuffer::Framebuffer (unsigned int bufferWidth, unsigned int bufferHeight)
{
this->bufferWidth = bufferWidth;
this->bufferHeight = bufferHeight;
}
Framebuffer::~Framebuffer ()
{
}
unsigned int Framebuffer::GetWidth () const
{
return buff... | 19.5 | 96 | 0.745299 | dpilawa |
7c0597aa563fb5f1065fc14f1813fe249d8a795c | 433 | cpp | C++ | W08/in_lab/Account.cpp | ariaav/OOP244 | bcfc52bfff86b68e4f464e85b8555eef541741a0 | [
"MIT"
] | null | null | null | W08/in_lab/Account.cpp | ariaav/OOP244 | bcfc52bfff86b68e4f464e85b8555eef541741a0 | [
"MIT"
] | null | null | null | W08/in_lab/Account.cpp | ariaav/OOP244 | bcfc52bfff86b68e4f464e85b8555eef541741a0 | [
"MIT"
] | null | null | null | #include <iostream>
#include "Account.h"
namespace sict {
Account::Account(double bal) {
if (bal > 0)
bala = bal;
else
bala = 0;
}
bool Account::credit(double add) {
if (add > 0){
bala += add;
return true;
}
else
return false;
}
bool Account::debit(double sub) {
if (sub > 0) {
bal... | 12.371429 | 35 | 0.577367 | ariaav |
7c0fe5fd6a310e5dd2f79b822fe425d9cce77f87 | 851 | cpp | C++ | amara/amara_tweenBase.cpp | BigBossErndog/Amara | e534001dee88b7d66f7384ed167257ffac58aac3 | [
"MIT"
] | null | null | null | amara/amara_tweenBase.cpp | BigBossErndog/Amara | e534001dee88b7d66f7384ed167257ffac58aac3 | [
"MIT"
] | null | null | null | amara/amara_tweenBase.cpp | BigBossErndog/Amara | e534001dee88b7d66f7384ed167257ffac58aac3 | [
"MIT"
] | null | null | null | #ifndef AMARA_TWEENBASE
#define AMARA_TWEENBASE
#include "amara.h"
namespace Amara {
class Tweener;
class Tween: public Amara::StateManager {
public:
Amara::GameProperties* properties = nullptr;
bool finished = false;
bool deleteOnFinish = true;
doubl... | 23.638889 | 95 | 0.480611 | BigBossErndog |
7c11f304a4c71c599e3aa18728323cf90f51aaa3 | 2,138 | cc | C++ | 2021/5/main.cc | ey6es/aoc | c1e54534e5e6d4b52118ffd173834ab56a831102 | [
"MIT"
] | null | null | null | 2021/5/main.cc | ey6es/aoc | c1e54534e5e6d4b52118ffd173834ab56a831102 | [
"MIT"
] | null | null | null | 2021/5/main.cc | ey6es/aoc | c1e54534e5e6d4b52118ffd173834ab56a831102 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <fstream>
#include <iostream>
#include <map>
#include <string>
#include <tuple>
std::tuple<int, int> parse_coord (const std::string& str) {
auto idx = str.find(',');
return std::make_tuple(
std::stoi(str.substr(0, idx)),
std::stoi(str.substr(idx + 1)));
}
std::ostream& operat... | 24.860465 | 81 | 0.481291 | ey6es |
7c1885c5d71e72c411d50181d4b84e586de72b3f | 635 | cpp | C++ | 0014.cpp | excript/curso_cpp | 070d0bd1163c1252b7bf736fedb3370208c30811 | [
"CC0-1.0"
] | 1 | 2020-08-01T07:03:32.000Z | 2020-08-01T07:03:32.000Z | 0014.cpp | excript/curso_cpp | 070d0bd1163c1252b7bf736fedb3370208c30811 | [
"CC0-1.0"
] | 1 | 2020-08-01T07:04:27.000Z | 2020-08-01T07:04:27.000Z | 0014.cpp | excript/curso_cpp | 070d0bd1163c1252b7bf736fedb3370208c30811 | [
"CC0-1.0"
] | null | null | null | #include <iostream>
#include <stdlib.h>
#include <iomanip>
/*====================================
* eXcript.com
* fb.com/eXcript
* ====================================*/
using namespace std;
int main() {
//obj cin3
//obj cout
cout << "Estudando a entrada e saida de dados." << endl;
... | 19.84375 | 60 | 0.445669 | excript |
7c1b5d88f091c7ddf7a60fc1969c757257d02a8d | 907 | hh | C++ | src/agents/pacman/pathfinding_pacman_agent.hh | emanuelssj/PacmanRL | 275715f7024e1ffab8a562c892a9852d4d7f16cb | [
"MIT"
] | 3 | 2019-01-07T10:15:21.000Z | 2019-03-25T15:36:39.000Z | src/agents/pacman/pathfinding_pacman_agent.hh | emanuelssj/Lunafreya-Pacman-Speedrun | 275715f7024e1ffab8a562c892a9852d4d7f16cb | [
"MIT"
] | null | null | null | src/agents/pacman/pathfinding_pacman_agent.hh | emanuelssj/Lunafreya-Pacman-Speedrun | 275715f7024e1ffab8a562c892a9852d4d7f16cb | [
"MIT"
] | 1 | 2019-05-26T07:48:21.000Z | 2019-05-26T07:48:21.000Z | #ifndef PATHFINDING_PACMAN_AGENT_HH
#define PATHFINDING_PACMAN_AGENT_HH
#include "../agent.hh"
#include "../../state/direction.hh"
#include "../../pathfinding/bfs.hh"
#include "../../pathfinding/wsp.hh"
#include <cmath>
class Pathfinding_Pacman_Agent: public Agent {
// In this case ghost_id can be ignored
in... | 32.392857 | 122 | 0.582139 | emanuelssj |
7c21bfccc01efd7eb0c020508aee97d438dd283a | 3,971 | cpp | C++ | cpr/unit_test_for_huffman/unit_test_for_bit_string.cpp | Mooophy/Compression | 2d369956a83703f0283d36d438e76783e909957d | [
"MIT"
] | 14 | 2015-03-04T23:12:03.000Z | 2021-07-14T14:30:45.000Z | cpr/unit_test_for_huffman/unit_test_for_bit_string.cpp | Mooophy/Compression | 2d369956a83703f0283d36d438e76783e909957d | [
"MIT"
] | 7 | 2015-03-02T08:52:54.000Z | 2015-03-09T08:32:09.000Z | cpr/unit_test_for_huffman/unit_test_for_bit_string.cpp | Mooophy/Compression | 2d369956a83703f0283d36d438e76783e909957d | [
"MIT"
] | 7 | 2015-03-04T23:13:14.000Z | 2017-05-24T11:39:55.000Z | #include "stdafx.h"
#include "CppUnitTest.h"
#include "../huffman/bit_string.hpp"
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
namespace unit_test_for_huffman
{
TEST_CLASS(unit_test_for_bit_string)
{
public:
TEST_METHOD(ctor)
{
cpr::huffman::BitString<char> b... | 33.940171 | 76 | 0.578444 | Mooophy |
7c283dc0e0c52f8c51f5f4a8f987d346aa6b947f | 2,624 | cpp | C++ | Utilities/MarbleAction/MarbleAction.cpp | mym2o/HavokDemos | 1235b96b93e256de50bc36c229439a334410fd77 | [
"MIT"
] | 1 | 2017-08-14T10:23:45.000Z | 2017-08-14T10:23:45.000Z | Utilities/MarbleAction/MarbleAction.cpp | mym2o/HavokDemos | 1235b96b93e256de50bc36c229439a334410fd77 | [
"MIT"
] | null | null | null | Utilities/MarbleAction/MarbleAction.cpp | mym2o/HavokDemos | 1235b96b93e256de50bc36c229439a334410fd77 | [
"MIT"
] | 2 | 2016-06-22T02:22:32.000Z | 2019-11-21T19:49:41.000Z | #include "MarbleAction.h"
MarbleAction::MarbleAction(hkpRigidBody* r, const hkVector4& forward, const hkVector4& resetPosition, hkReal impulseScale) : hkpUnaryAction(r), m_forward(forward), m_resetPosition(resetPosition), m_rotationIncrement(0.01f) {
m_forwardPressed = false;
m_backwardPressed = false;
m_leftP... | 28.835165 | 225 | 0.699695 | mym2o |
7c28f9a0f641f5f618db137ee21ad79407c3aef8 | 13,626 | cc | C++ | src/ShaderCompiler/Private/GLSLangUtils.cc | PixPh/kaleido3d | 8a8356586f33a1746ebbb0cfe46b7889d0ae94e9 | [
"MIT"
] | 38 | 2019-01-10T03:10:12.000Z | 2021-01-27T03:14:47.000Z | src/ShaderCompiler/Private/GLSLangUtils.cc | fuqifacai/kaleido3d | ec77753b516949bed74e959738ef55a0bd670064 | [
"MIT"
] | null | null | null | src/ShaderCompiler/Private/GLSLangUtils.cc | fuqifacai/kaleido3d | ec77753b516949bed74e959738ef55a0bd670064 | [
"MIT"
] | 8 | 2019-04-16T07:56:27.000Z | 2020-11-19T02:38:37.000Z | #include <Kaleido3D.h>
#include "GLSLangUtils.h"
#include <glslang/MachineIndependent/gl_types.h>
using namespace ::glslang;
using namespace ::k3d;
void sInitializeGlSlang()
{
#if USE_GLSLANG
static bool sGlSlangIntialized = false;
if (!sGlSlangIntialized) {
glslang::InitializeProcess();
sGlSl... | 32.754808 | 168 | 0.754954 | PixPh |
7c2b82eba95378926615f75703f463e29eb82ff6 | 3,288 | cpp | C++ | Project Mania/Source/Character/Chassis.cpp | larsolm/Archives | 18968c18b80777e589bc8a704b4375be2fff8eea | [
"MIT"
] | null | null | null | Project Mania/Source/Character/Chassis.cpp | larsolm/Archives | 18968c18b80777e589bc8a704b4375be2fff8eea | [
"MIT"
] | null | null | null | Project Mania/Source/Character/Chassis.cpp | larsolm/Archives | 18968c18b80777e589bc8a704b4375be2fff8eea | [
"MIT"
] | null | null | null | #include "Pch.h"
#include "Character/Character.h"
#include "Character/Chassis.h"
#include "Data/AugmentData.h"
#include "Data/CharacterData.h"
#include "Data/ComponentData.h"
#include "Data/ChassisData.h"
#include "Data/EquipmentData.h"
#include "Data/UpgradeData.h"
#include "Data/PartData.h"
#include "Parts/Item.h"
#i... | 27.630252 | 129 | 0.708942 | larsolm |
7c2e1ea6553fb140adf3f89f99d79cfaed04016d | 1,699 | cpp | C++ | libvast/src/format/ostream_writer.cpp | ngrodzitski/vast | 5d114f53d51db8558f673c7f873bd92ded630bf6 | [
"BSD-3-Clause"
] | null | null | null | libvast/src/format/ostream_writer.cpp | ngrodzitski/vast | 5d114f53d51db8558f673c7f873bd92ded630bf6 | [
"BSD-3-Clause"
] | null | null | null | libvast/src/format/ostream_writer.cpp | ngrodzitski/vast | 5d114f53d51db8558f673c7f873bd92ded630bf6 | [
"BSD-3-Clause"
] | null | null | null | /******************************************************************************
* _ _____ __________ *
* | | / / _ | / __/_ __/ Visibility *
* | |/ / __ |_\ \ / / Across *
... | 34.673469 | 80 | 0.479105 | ngrodzitski |
7c2e99d071f669e6bf42911f05fdfe7e036dfa42 | 12,307 | cpp | C++ | Sources/Rosetta/Battlegrounds/Models/Battle.cpp | Hearthstonepp/Hearthstonepp | ee17ae6de1ee0078dab29d75c0fbe727a14e850e | [
"MIT"
] | 62 | 2017-08-21T14:11:00.000Z | 2018-04-23T16:09:02.000Z | Sources/Rosetta/Battlegrounds/Models/Battle.cpp | Hearthstonepp/Hearthstonepp | ee17ae6de1ee0078dab29d75c0fbe727a14e850e | [
"MIT"
] | 37 | 2017-08-21T11:13:07.000Z | 2018-04-30T08:58:41.000Z | Sources/Rosetta/Battlegrounds/Models/Battle.cpp | Hearthstonepp/Hearthstonepp | ee17ae6de1ee0078dab29d75c0fbe727a14e850e | [
"MIT"
] | 10 | 2017-08-21T03:44:12.000Z | 2018-01-10T22:29:10.000Z | // Copyright (c) 2017-2021 Chris Ohk
// We are making my contributions/submissions to this project solely in our
// personal capacity and are not conveying any rights to any intellectual
// property of any third parties.
#include <Rosetta/Battlegrounds/Models/Battle.hpp>
#include <effolkronium/random.hpp>
using Ran... | 28.291954 | 80 | 0.542781 | Hearthstonepp |
7c320e8880a227a1bb2501c2bd6e7bd6ba233ea0 | 1,447 | hpp | C++ | include/clotho/fitness/linear_fitness_metric.hpp | putnampp/clotho | 6dbfd82ef37b4265381cd78888cd6da8c61c68c2 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2015-06-16T21:27:57.000Z | 2022-01-25T23:26:54.000Z | include/clotho/fitness/linear_fitness_metric.hpp | putnampp/clotho | 6dbfd82ef37b4265381cd78888cd6da8c61c68c2 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2015-06-16T21:12:42.000Z | 2015-06-23T12:41:00.000Z | include/clotho/fitness/linear_fitness_metric.hpp | putnampp/clotho | 6dbfd82ef37b4265381cd78888cd6da8c61c68c2 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | // Copyright 2015 Patrick Putnam
//
// 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 o... | 27.301887 | 78 | 0.68763 | putnampp |
7c33935241f7c129d9af1d1003bd3b8c73346e36 | 21,839 | cpp | C++ | addons/ofxGuido/lib/guidolib-code/linux/src/GDeviceGtk.cpp | k4rm/AscoGraph | 9038ae785b6f4f144a3ab5c4c5520761c0cd08f2 | [
"MIT"
] | 18 | 2015-01-18T22:34:22.000Z | 2020-09-06T20:30:30.000Z | addons/ofxGuido/lib/guidolib-code/linux/src/GDeviceGtk.cpp | k4rm/AscoGraph | 9038ae785b6f4f144a3ab5c4c5520761c0cd08f2 | [
"MIT"
] | 2 | 2015-08-04T00:07:46.000Z | 2017-05-10T15:53:51.000Z | addons/ofxGuido/lib/guidolib-code/linux/src/GDeviceGtk.cpp | k4rm/AscoGraph | 9038ae785b6f4f144a3ab5c4c5520761c0cd08f2 | [
"MIT"
] | 10 | 2015-01-18T23:46:10.000Z | 2019-08-25T12:10:04.000Z | /*
GUIDO Library
Copyright (C) 2004 Torben Hohn
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library ... | 27.367168 | 126 | 0.521223 | k4rm |
7c36b071ee0da1c00b054d908090ba037591858e | 2,372 | cc | C++ | src/swganh/social/social_service.cc | JohnShandy/swganh | d20d22a8dca2e9220a35af0f45f7935ca2eda531 | [
"MIT"
] | 1 | 2015-03-25T16:02:17.000Z | 2015-03-25T16:02:17.000Z | src/swganh/social/social_service.cc | JohnShandy/swganh | d20d22a8dca2e9220a35af0f45f7935ca2eda531 | [
"MIT"
] | null | null | null | src/swganh/social/social_service.cc | JohnShandy/swganh | d20d22a8dca2e9220a35af0f45f7935ca2eda531 | [
"MIT"
] | null | null | null | // This file is part of SWGANH which is released under the MIT license.
// See file LICENSE or go to http://swganh.com/LICENSE
#include "swganh/social/social_service.h"
#include "anh/logger.h"
#include "anh/plugin/plugin_manager.h"
#include "anh/service/service_manager.h"
#include "anh/database/database_manager.h"
#... | 28.238095 | 127 | 0.736931 | JohnShandy |
7c3d1b998ba7e55703307ac573b0d4775b3151b5 | 388 | hpp | C++ | sdl2-sonic-drivers/src/utils/constants.hpp | Raffaello/sdl2-sonic-drivers | 20584f100ddd7c61f584deaee0b46c5228d8509d | [
"Apache-2.0"
] | 3 | 2021-10-31T14:24:00.000Z | 2022-03-16T08:15:31.000Z | sdl2-sonic-drivers/src/utils/constants.hpp | Raffaello/sdl2-sonic-drivers | 20584f100ddd7c61f584deaee0b46c5228d8509d | [
"Apache-2.0"
] | 48 | 2020-06-05T11:11:29.000Z | 2022-02-27T23:58:44.000Z | sdl2-sonic-drivers/src/utils/constants.hpp | Raffaello/sdl2-sonic-drivers | 20584f100ddd7c61f584deaee0b46c5228d8509d | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <cmath>
namespace utils
{
// TODO remove M_PI and M_2PI replace them with PI and PI2
#ifdef M_PI
#undef M_PI
#endif // M_PI
constexpr double M_PI = 3.14159265358979323846;
#ifdef M_2PI
#undef M_2PI
#endif // M_2PI
constexpr double M_2PI = 2.0 * M_PI;
constexpr double PI... | 18.47619 | 62 | 0.688144 | Raffaello |
7c423f5a6c83d0ccfe3ff3d33914a241403fcc8e | 12,071 | cpp | C++ | Sourcecode/mxtest/core/PropertiesTest.cpp | diskzero/MusicXML-Class-Library | bd4d1357b8ab2d4df8f1c6077883bbf169f6f0db | [
"MIT"
] | null | null | null | Sourcecode/mxtest/core/PropertiesTest.cpp | diskzero/MusicXML-Class-Library | bd4d1357b8ab2d4df8f1c6077883bbf169f6f0db | [
"MIT"
] | null | null | null | Sourcecode/mxtest/core/PropertiesTest.cpp | diskzero/MusicXML-Class-Library | bd4d1357b8ab2d4df8f1c6077883bbf169f6f0db | [
"MIT"
] | null | null | null | // MusicXML Class Library
// Copyright (c) by Matthew James Briggs
// Distributed under the MIT License
#include "mxtest/control/CompileControl.h"
#ifdef MX_COMPILE_CORE_TESTS
#include "cpul/cpulTestHarness.h"
#include "mxtest/core/HelperFunctions.h"
#include "mxtest/core/PropertiesTest.h"
#include "mxtest/core/Edito... | 44.873606 | 120 | 0.498385 | diskzero |
7c45da4372eb53b9bbb2f92658006d7acf60e1c0 | 1,363 | cpp | C++ | Strings Problem/Valid Ip Addresses.cpp | theslytherin/Interview_Bit | da9973de33be2f12d6e051bea1e918004216b6ed | [
"MIT"
] | null | null | null | Strings Problem/Valid Ip Addresses.cpp | theslytherin/Interview_Bit | da9973de33be2f12d6e051bea1e918004216b6ed | [
"MIT"
] | null | null | null | Strings Problem/Valid Ip Addresses.cpp | theslytherin/Interview_Bit | da9973de33be2f12d6e051bea1e918004216b6ed | [
"MIT"
] | null | null | null | int stringnumber(string s){
int i=0;
int n=s.length();
int face=1;
int answer=0;
for(i=n-1;i>=0;i--){
answer+=(s[i]-'0')*face;
face*=10;
}
return answer;
}
bool isValid(string s){
int i,j;
int n=s.length();
int number;
int start=0;
string temp="";
while(start < n){
... | 21.296875 | 55 | 0.432869 | theslytherin |
7c48357bb84762320f6d3c9346f67acfbca91d1c | 5,398 | cpp | C++ | src/publish_trajectory/publish_trajectory_to_quadrotor_tmp.cpp | test-bai-cpu/hdi_plan | 89684bb73832d7e40f3c669f284ffddb56a1e299 | [
"MIT"
] | 1 | 2021-07-31T12:34:11.000Z | 2021-07-31T12:34:11.000Z | src/publish_trajectory/publish_trajectory_to_quadrotor_tmp.cpp | test-bai-cpu/hdi_plan | 89684bb73832d7e40f3c669f284ffddb56a1e299 | [
"MIT"
] | null | null | null | src/publish_trajectory/publish_trajectory_to_quadrotor_tmp.cpp | test-bai-cpu/hdi_plan | 89684bb73832d7e40f3c669f284ffddb56a1e299 | [
"MIT"
] | 2 | 2021-05-08T13:27:31.000Z | 2021-09-24T07:59:04.000Z | #include "publish_trajectory/publish_trajectory_to_quadrotor.hpp"
namespace hdi_plan {
PublishTrajectory::PublishTrajectory(const ros::NodeHandle &nh, const ros::NodeHandle &pnh)
:nh_(nh),
pnh_(pnh){
arm_bridge_pub_ = nh_.advertise<std_msgs::Bool>("bridge/arm", 1);
start_pub_ = nh_.advertise<std_msgs::Empty>("a... | 34.825806 | 123 | 0.757318 | test-bai-cpu |
7c49087a00e33b089fb2609357398b4506781137 | 14,722 | cpp | C++ | src/moment_quantization.cpp | TobiasRp/mray | d59bb110c97c7f0a7263981ca0050132220f2688 | [
"MIT"
] | null | null | null | src/moment_quantization.cpp | TobiasRp/mray | d59bb110c97c7f0a7263981ca0050132220f2688 | [
"MIT"
] | 1 | 2021-11-29T14:03:20.000Z | 2021-11-29T14:03:20.000Z | src/moment_quantization.cpp | TobiasRp/mray | d59bb110c97c7f0a7263981ca0050132220f2688 | [
"MIT"
] | null | null | null | // Copyright (c) 2020, Tobias Rapp
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
// * Redistributions of source code must retain the above copyright
// notice, this list of conditi... | 28.866667 | 118 | 0.553118 | TobiasRp |
7c49113f755566789ee39bf2b097dddcaf588764 | 774 | hpp | C++ | 03_Simple_2D_game/Asteroid/include/SFML-Book/Player.hpp | Krozark/SFML-book | 397dd3dc0c73b694d4b5c117e974c7ebdb885572 | [
"BSD-2-Clause"
] | 75 | 2015-01-18T21:29:03.000Z | 2022-02-09T14:11:05.000Z | 03_Simple_2D_game/Asteroid/include/SFML-Book/Player.hpp | Krozark/SFML-book | 397dd3dc0c73b694d4b5c117e974c7ebdb885572 | [
"BSD-2-Clause"
] | 7 | 2015-03-12T10:41:55.000Z | 2020-11-23T11:15:58.000Z | 03_Simple_2D_game/Asteroid/include/SFML-Book/Player.hpp | Krozark/SFML-book | 397dd3dc0c73b694d4b5c117e974c7ebdb885572 | [
"BSD-2-Clause"
] | 33 | 2015-12-01T07:34:46.000Z | 2022-03-23T03:37:42.000Z | #ifndef BOOK_PLAYER_HPP
#define BOOK_PLAYER_HPP
#include <SFML-Book/ActionTarget.hpp> //ActionTarget
#include <SFML-Book/Entity.hpp> //Entity
namespace book
{
class Player : public Entity , public ActionTarget<int>
{
public:
Player(const Player&) = delete;
Player& operator=(con... | 20.918919 | 61 | 0.576227 | Krozark |
7c4a20ef6c026977e9bb341654500cb624718f3f | 437 | hpp | C++ | src/utils/types.hpp | LukaszSelwa/min-cut | f11eec7d3c55b886112179d8893ef6ed9b3fc2d5 | [
"MIT"
] | null | null | null | src/utils/types.hpp | LukaszSelwa/min-cut | f11eec7d3c55b886112179d8893ef6ed9b3fc2d5 | [
"MIT"
] | null | null | null | src/utils/types.hpp | LukaszSelwa/min-cut | f11eec7d3c55b886112179d8893ef6ed9b3fc2d5 | [
"MIT"
] | null | null | null | #ifndef UTILS_TYPES_H
#define UTILS_TYPES_H
#include <memory>
#include <vector>
#include "../graphs/undirected_weighted_graph.hpp"
struct algo_result {
int minCutVal;
std::vector<bool> cut;
};
struct algo_input {
std::shared_ptr<graphs::weighted_graph> graph;
std::vector<bool> minCut;
int minCutV... | 20.809524 | 81 | 0.718535 | LukaszSelwa |
7c4c0616aa4fa792076e6acee28793e04471ef6f | 422 | cpp | C++ | 机试/动态规划/leetcode300.cpp | codehuanglei/- | 933a55b5c5a49163f12e0c39b4edfa9c4f01678f | [
"MIT"
] | null | null | null | 机试/动态规划/leetcode300.cpp | codehuanglei/- | 933a55b5c5a49163f12e0c39b4edfa9c4f01678f | [
"MIT"
] | null | null | null | 机试/动态规划/leetcode300.cpp | codehuanglei/- | 933a55b5c5a49163f12e0c39b4edfa9c4f01678f | [
"MIT"
] | null | null | null | class Solution {
public:
int lengthOfLIS(vector<int>& nums) {
int n = nums.size();
vector<int> dp(n, 1);
int res = dp[0];
for(int i = 0; i < n; i++){
for(int j = 0; j <= i; j++){
if(nums[i] > nums[j]){
dp[i] = max(dp[j] + 1, dp[i]);
... | 24.823529 | 50 | 0.350711 | codehuanglei |
7c4c60fc018b62608c46fe0ec12d9b8de69d27c3 | 2,802 | cpp | C++ | trunk/uidesigner/uidframe/src/Core/HoldItem.cpp | OhmPopy/MPFUI | eac88d66aeb88d342f16866a8d54858afe3b6909 | [
"MIT"
] | 59 | 2017-08-27T13:27:55.000Z | 2022-01-21T13:24:05.000Z | demos/uidesigner/uidframe/src/Core/HoldItem.cpp | BigPig0/MPFUI | 7042e0a5527ab323e16d2106d715db4f8ee93275 | [
"MIT"
] | 5 | 2017-11-26T05:40:23.000Z | 2019-04-02T08:58:21.000Z | demos/uidesigner/uidframe/src/Core/HoldItem.cpp | BigPig0/MPFUI | 7042e0a5527ab323e16d2106d715db4f8ee93275 | [
"MIT"
] | 49 | 2017-08-24T08:00:50.000Z | 2021-11-07T01:24:41.000Z | #include "stdafx.h"
#include <Core/HoldItem.h>
#include <Core/ResNode.h>
void HoldItem::InitNode(suic::IXamlNode* pNode)
{
pNode->Reset();
InitNode(this, pNode);
}
void HoldItem::Clear()
{
for (int i = 0; i < children.GetCount(); ++i)
{
Clear(children.GetItem(i));
}
attrs.Clear();
... | 22.416 | 83 | 0.552463 | OhmPopy |
7c50c242e93c7ac923266b8307ed15728e6e63f1 | 3,708 | hpp | C++ | src/sqlite/db.hpp | wesselj1/mx3playground | 9b8c3e783f574a76cc17a9470b57e72a1b38be1a | [
"MIT"
] | 766 | 2015-01-01T17:33:40.000Z | 2022-02-23T08:20:20.000Z | src/sqlite/db.hpp | wesselj1/mx3playground | 9b8c3e783f574a76cc17a9470b57e72a1b38be1a | [
"MIT"
] | 43 | 2015-01-04T05:59:54.000Z | 2017-06-19T10:53:59.000Z | src/sqlite/db.hpp | wesselj1/mx3playground | 9b8c3e783f574a76cc17a9470b57e72a1b38be1a | [
"MIT"
] | 146 | 2015-01-09T19:38:23.000Z | 2021-09-30T08:39:44.000Z | #pragma once
#include <set>
#include <chrono>
#include "stl.hpp"
#include "stmt.hpp"
namespace mx3 { namespace sqlite {
// single param helpers for sqlite3_mprintf
string mprintf(const char * format, const string& data);
string mprintf(const char * format, int64_t data);
string libversion();
string sourceid();
int li... | 26.676259 | 128 | 0.699838 | wesselj1 |
7c5115db2bd1096958da5285052bd6aa076b0e60 | 14,920 | inl | C++ | include/writer.inl | jpulidojr/VizAly-SNWPAC | ec30d5e50b8a7ab04a2888c8aae82dcb327e02bd | [
"Unlicense",
"BSD-3-Clause"
] | 2 | 2020-03-19T07:14:54.000Z | 2022-03-11T19:29:33.000Z | include/writer.inl | jpulidojr/VizAly-SNWPAC | ec30d5e50b8a7ab04a2888c8aae82dcb327e02bd | [
"Unlicense",
"BSD-3-Clause"
] | null | null | null | include/writer.inl | jpulidojr/VizAly-SNWPAC | ec30d5e50b8a7ab04a2888c8aae82dcb327e02bd | [
"Unlicense",
"BSD-3-Clause"
] | 2 | 2019-07-22T16:14:52.000Z | 2020-03-19T07:14:56.000Z |
#include "stdio.h"
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <string.h>
//#include <math.h>
#include <sstream>
//Use existing lossless compressors
#include "lz4.h"
/*static int * pfs1;
static int dimx1, dimy1, dimz1;
static int header_size1, scalar_fields1;
static double field_len1;*/
// Th... | 35.105882 | 235 | 0.552413 | jpulidojr |
7c5976175e28b08a295516dc36fcc5cec67f35a8 | 1,263 | cpp | C++ | cpp-tower/Game.cpp | udupa-varun/coursera-cs400 | cf073e6fe816c0d1f8fe95cae10448e979fec2ce | [
"MIT"
] | 2 | 2021-05-19T02:49:55.000Z | 2021-05-20T03:14:24.000Z | cpp-tower/Game.cpp | udupa-varun/coursera-cs400 | cf073e6fe816c0d1f8fe95cae10448e979fec2ce | [
"MIT"
] | null | null | null | cpp-tower/Game.cpp | udupa-varun/coursera-cs400 | cf073e6fe816c0d1f8fe95cae10448e979fec2ce | [
"MIT"
] | null | null | null | /**
* C++ class for a game of the Tower of Hanoi puzzle.
*
* @author
* Wade Fagen-Ulmschneider <waf@illinois.edu>
*/
#include "Game.h"
#include "Stack.h"
#include "uiuc/Cube.h"
#include "uiuc/HSLAPixel.h"
#include <iostream>
using std::cout;
using std::endl;
// Solves the Tower of Hanoi puzzle.
// (Feel free... | 23.388889 | 71 | 0.642914 | udupa-varun |
7c5ce1103a68b63e3fc9d600adfa560a410222c7 | 488 | hpp | C++ | src/eepp/window/backend/SDL2/wminfo.hpp | jayrulez/eepp | 09c5c1b6b4c0306bb0a188474778c6949b5df3a7 | [
"MIT"
] | 37 | 2020-01-20T06:21:24.000Z | 2022-03-21T17:44:50.000Z | src/eepp/window/backend/SDL2/wminfo.hpp | jayrulez/eepp | 09c5c1b6b4c0306bb0a188474778c6949b5df3a7 | [
"MIT"
] | null | null | null | src/eepp/window/backend/SDL2/wminfo.hpp | jayrulez/eepp | 09c5c1b6b4c0306bb0a188474778c6949b5df3a7 | [
"MIT"
] | 9 | 2019-03-22T00:33:07.000Z | 2022-03-01T01:35:59.000Z | #ifndef EE_BACKEND_SDL2_WMINFO_HPP
#define EE_BACKEND_SDL2_WMINFO_HPP
#include <eepp/window/backend/SDL2/base.hpp>
#include <eepp/window/windowhandle.hpp>
namespace EE { namespace Window { namespace Backend { namespace SDL2 {
class EE_API WMInfo {
public:
WMInfo( SDL_Window* win );
~WMInfo();
#if defined( EE_X... | 17.428571 | 70 | 0.745902 | jayrulez |
7c5ed60bd233d69bcd3fec76f48a78d1253ad5bf | 2,664 | hpp | C++ | OptFrame/Experimental/Moves/MoveVVShiftk.hpp | 216k155/bft-pos | 80c1c84b8ca9a5c1c7462b21b011c89ae97666ae | [
"MIT"
] | 2 | 2018-05-24T11:04:12.000Z | 2020-03-03T13:37:07.000Z | OptFrame/Experimental/Moves/MoveVVShiftk.hpp | 216k155/bft-pos | 80c1c84b8ca9a5c1c7462b21b011c89ae97666ae | [
"MIT"
] | null | null | null | OptFrame/Experimental/Moves/MoveVVShiftk.hpp | 216k155/bft-pos | 80c1c84b8ca9a5c1c7462b21b011c89ae97666ae | [
"MIT"
] | 1 | 2019-06-06T16:57:49.000Z | 2019-06-06T16:57:49.000Z | // OptFrame - Optimization Framework
// Copyright (C) 2009-2015
// http://optframe.sourceforge.net/
//
// This file is part of the OptFrame optimization framework. This framework
// is free software; you can redistribute it and/or modify it under the
// terms of the GNU Lesser General Public License v3 as published by... | 27.183673 | 107 | 0.613739 | 216k155 |
7c61d1f10673dfa4e36c148cfe5116240b21778a | 5,786 | cpp | C++ | src/core/taskmanager.cpp | dream-overflow/o3d | 087ab870cc0fd9091974bb826e25c23903a1dde0 | [
"FSFAP"
] | 2 | 2019-06-22T23:29:44.000Z | 2019-07-07T18:34:04.000Z | src/core/taskmanager.cpp | dream-overflow/o3d | 087ab870cc0fd9091974bb826e25c23903a1dde0 | [
"FSFAP"
] | null | null | null | src/core/taskmanager.cpp | dream-overflow/o3d | 087ab870cc0fd9091974bb826e25c23903a1dde0 | [
"FSFAP"
] | null | null | null | /**
* @file taskmanager.cpp
* @brief Implementation of TaskManager.h
* @author Frederic SCHERMA (frederic.scherma@dreamoverflow.org)
* @date 2009-10-05
* @copyright Copyright (c) 2001-2017 Dream Overflow. All rights reserved.
* @details
*/
#include "o3d/core/precompiled.h"
#include "o3d/core/taskmanager.h"
#in... | 23.330645 | 102 | 0.674732 | dream-overflow |
7c624d369f6c94c89b1b5af5419e758b6c894c1c | 4,325 | cpp | C++ | alert_db/src/get_images_from_bag.cpp | robotics-upo/siar_remote_packages | 09bbbc88fb656524cc523a95704e7d353e260876 | [
"MIT"
] | null | null | null | alert_db/src/get_images_from_bag.cpp | robotics-upo/siar_remote_packages | 09bbbc88fb656524cc523a95704e7d353e260876 | [
"MIT"
] | null | null | null | alert_db/src/get_images_from_bag.cpp | robotics-upo/siar_remote_packages | 09bbbc88fb656524cc523a95704e7d353e260876 | [
"MIT"
] | 1 | 2020-01-10T07:39:33.000Z | 2020-01-10T07:39:33.000Z | #include <rosbag/bag.h>
#include <rosbag/view.h>
#include <sensor_msgs/Image.h>
#include <sensor_msgs/CompressedImage.h>
#include <sensor_msgs/image_encodings.h>
#include <cv_bridge/cv_bridge.h>
#include <opencv/cvwimage.h>
#include <opencv/highgui.h>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/opencv.hpp>... | 26.863354 | 131 | 0.593988 | robotics-upo |
7c663a8084f25481450e8d5dafdfba19424140e8 | 883 | cpp | C++ | lib/bencode/BInteger.cpp | ss16118/torrent-client-cpp | fdc6b37d45ba6c8e798216fd874523fac3eceeed | [
"MIT"
] | 24 | 2021-06-21T10:24:35.000Z | 2022-03-21T07:00:36.000Z | lib/bencode/BInteger.cpp | BaiXious/torrent-client-cpp | fdc6b37d45ba6c8e798216fd874523fac3eceeed | [
"MIT"
] | 2 | 2016-07-24T15:34:48.000Z | 2018-04-21T13:33:33.000Z | lib/bencode/BInteger.cpp | BaiXious/torrent-client-cpp | fdc6b37d45ba6c8e798216fd874523fac3eceeed | [
"MIT"
] | 10 | 2016-03-25T05:53:12.000Z | 2022-02-06T01:28:10.000Z | /**
* @file BInteger.cpp
* @copyright (c) 2014 by Petr Zemek (s3rvac@gmail.com) and contributors
* @license BSD, see the @c LICENSE file for more details
* @brief Implementation of the BInteger class.
*/
#include "BInteger.h"
#include "BItemVisitor.h"
namespace bencoding {
/**
* @brief Constructs the int... | 19.622222 | 71 | 0.697622 | ss16118 |
7c6a02ae781b48453f543d541aa3efa1524e8e21 | 4,048 | cpp | C++ | UVA Online Judge/628_Passwords.cpp | davimedio01/competitive-programming | e2a90f0183c11a90a50738a9a690efe03773d43f | [
"MIT"
] | 2 | 2020-09-10T15:48:02.000Z | 2020-09-12T00:05:35.000Z | UVA Online Judge/628_Passwords.cpp | davimedio01/competitive-programming | e2a90f0183c11a90a50738a9a690efe03773d43f | [
"MIT"
] | null | null | null | UVA Online Judge/628_Passwords.cpp | davimedio01/competitive-programming | e2a90f0183c11a90a50738a9a690efe03773d43f | [
"MIT"
] | 2 | 2020-09-09T17:01:05.000Z | 2020-09-09T17:02:27.000Z | /*Criado por Davi Augusto - BCC - UNESP Bauru*/
/*
Resolvido com Backtracking:
1 - "Escolhas"
2 - "Restrições"
3 - "Objetivo"
Escolhas: Colocar dígitos de 0 a 9 na senha com base nas "regras" (# e 0)
Restrições: Regras e o dígito (ex: #0). O '#' ficará a palavra e o dígito '0' os números de 0 a 9. Printar ... | 28.70922 | 118 | 0.516304 | davimedio01 |
7c6a4d9e5140b66d9f8a1a9d1f899b93076511af | 10,895 | cpp | C++ | Main/Libraries/Hunspell/HunspellExportFunctions.cpp | paulushub/SandAssists | ccd86a074e85b3588819253f241780fe9d9362e2 | [
"MS-PL"
] | 1 | 2018-12-13T19:41:01.000Z | 2018-12-13T19:41:01.000Z | Main/Libraries/Hunspell/HunspellExportFunctions.cpp | paulushub/SandAssists | ccd86a074e85b3588819253f241780fe9d9362e2 | [
"MS-PL"
] | null | null | null | Main/Libraries/Hunspell/HunspellExportFunctions.cpp | paulushub/SandAssists | ccd86a074e85b3588819253f241780fe9d9362e2 | [
"MS-PL"
] | null | null | null | #include "hunspell/hunspell.hxx"
#include <windows.h>
#include <locale.h>
#include <mbctype.h>
#include "NHunspellExtensions.h"
#include "EncodingToCodePage.h"
#define DLLEXPORT extern "C" __declspec( dllexport )
class NHunspell: public Hunspell
{
// The methods aren't multi threaded, reentrant or whatev... | 27.935897 | 148 | 0.663148 | paulushub |
7c7271cd1bc6633e31eff5ad8cfbeb76ab576099 | 11,886 | hpp | C++ | libraries/protocol/include/deip/protocol/deip_virtual_operations.hpp | DEIPworld/deip-chain | d3fdcfdde179f700156156ea87522a807ec52532 | [
"MIT"
] | 1 | 2021-08-16T12:44:43.000Z | 2021-08-16T12:44:43.000Z | libraries/protocol/include/deip/protocol/deip_virtual_operations.hpp | DEIPworld/deip-chain | d3fdcfdde179f700156156ea87522a807ec52532 | [
"MIT"
] | null | null | null | libraries/protocol/include/deip/protocol/deip_virtual_operations.hpp | DEIPworld/deip-chain | d3fdcfdde179f700156156ea87522a807ec52532 | [
"MIT"
] | 2 | 2021-08-16T12:44:46.000Z | 2021-12-31T17:09:45.000Z | #pragma once
#include <deip/protocol/base.hpp>
#include <deip/protocol/block_header.hpp>
#include <deip/protocol/asset.hpp>
#include <deip/protocol/eci_diff.hpp>
#include <fc/utf8.hpp>
namespace deip {
namespace protocol {
struct fill_common_tokens_withdraw_operation : public virtual_operation
{
fill_common_token... | 37.377358 | 314 | 0.673481 | DEIPworld |
7c7333192b8c9fb7bf453a63ea77769f1c00283e | 128 | hpp | C++ | Blob_Lib/Include/glm/ext/matrix_uint2x4.hpp | antholuo/Blob_Traffic | 5d6acf88044e9abc63c0ff356714179eaa4b75bf | [
"MIT"
] | null | null | null | Blob_Lib/Include/glm/ext/matrix_uint2x4.hpp | antholuo/Blob_Traffic | 5d6acf88044e9abc63c0ff356714179eaa4b75bf | [
"MIT"
] | null | null | null | Blob_Lib/Include/glm/ext/matrix_uint2x4.hpp | antholuo/Blob_Traffic | 5d6acf88044e9abc63c0ff356714179eaa4b75bf | [
"MIT"
] | null | null | null | version https://git-lfs.github.com/spec/v1
oid sha256:dc05769835c1662878111c8555c4d59f668a9a3a8ca31f2cb035da4016f33b2e
size 737
| 32 | 75 | 0.882813 | antholuo |
7c75c42e66b58e3633067cab6b3d32cf091eb355 | 1,230 | hpp | C++ | Engine/Src/Runtime/Core/Public/Core/Pimpl.hpp | Septus10/Fade-Engine | 285a2a1cf14a4e9c3eb8f6d30785d1239cef10b6 | [
"MIT"
] | null | null | null | Engine/Src/Runtime/Core/Public/Core/Pimpl.hpp | Septus10/Fade-Engine | 285a2a1cf14a4e9c3eb8f6d30785d1239cef10b6 | [
"MIT"
] | null | null | null | Engine/Src/Runtime/Core/Public/Core/Pimpl.hpp | Septus10/Fade-Engine | 285a2a1cf14a4e9c3eb8f6d30785d1239cef10b6 | [
"MIT"
] | null | null | null | #pragma once
#include <memory>
#include <Core/CoreApi.hpp>
#include <Core/Containers/UniquePointer.hpp>
#define FADE_MAKE_PIMPL \
private: \
class CImpl; \
__pragma(warning(push)) \
__pragma(warning(disable : 4251)) \
TPimpl<CImpl> m_Impl; ... | 23.207547 | 52 | 0.621951 | Septus10 |
7c7b086b8a08cf99e589f533582f1c4b2692f5d6 | 11,108 | hpp | C++ | source/zisc/core/zisc/string/json_value_parser-inl.hpp | byzin/Zisc | c74f50c51f82c847f39a603607d73179004436bb | [
"MIT"
] | 2 | 2017-10-18T13:24:11.000Z | 2018-05-15T00:40:52.000Z | source/zisc/core/zisc/string/json_value_parser-inl.hpp | byzin/Zisc | c74f50c51f82c847f39a603607d73179004436bb | [
"MIT"
] | 9 | 2016-09-05T11:07:03.000Z | 2019-07-05T15:31:04.000Z | source/zisc/core/zisc/string/json_value_parser-inl.hpp | byzin/Zisc | c74f50c51f82c847f39a603607d73179004436bb | [
"MIT"
] | null | null | null | /*!
\file json_value_parser-inl.hpp
\author Sho Ikeda
\brief No brief description
\details
No detailed description.
\copyright
Copyright (c) 2015-2021 Sho Ikeda
This software is released under the MIT License.
http://opensource.org/licenses/mit-license.php
*/
#ifndef ZISC_JSON_VALUE_PARSER_INL_HP... | 22.039683 | 89 | 0.692384 | byzin |
75acb2eb9cd3d25bd94aacd1f8ba7c3e27ba8fda | 7,937 | cpp | C++ | lemon-based-parser/lemon-9-final/Value.cpp | PS-Group/compiler-theory-samples | c916af50eb42020024257ecd17f9be1580db7bf0 | [
"MIT"
] | null | null | null | lemon-based-parser/lemon-9-final/Value.cpp | PS-Group/compiler-theory-samples | c916af50eb42020024257ecd17f9be1580db7bf0 | [
"MIT"
] | null | null | null | lemon-based-parser/lemon-9-final/Value.cpp | PS-Group/compiler-theory-samples | c916af50eb42020024257ecd17f9be1580db7bf0 | [
"MIT"
] | null | null | null | #include "Value.h"
#include <stdexcept>
#include <boost/format.hpp>
#include <cmath>
namespace
{
bool FuzzyEquals(double left, double right)
{
return std::fabs(left - right) >= std::numeric_limits<double>::epsilon();
}
std::string ToPrettyString(double value)
{
std::string result = std::to_string(value);
... | 24.649068 | 101 | 0.63815 | PS-Group |
75b5214b40cee70531bb1c2b785b7721472ba137 | 4,100 | cpp | C++ | src/TotalGeneralizedVariation.cpp | DanonOfficial/TGVDenoising | 20446d9c89d75cf43056f43ed42f37965b4e7b6e | [
"MIT"
] | 8 | 2019-04-06T06:13:53.000Z | 2021-04-30T09:49:18.000Z | src/TotalGeneralizedVariation.cpp | DanonOfficial/TGVDenoising | 20446d9c89d75cf43056f43ed42f37965b4e7b6e | [
"MIT"
] | 1 | 2021-06-22T15:26:13.000Z | 2021-06-23T05:45:21.000Z | src/TotalGeneralizedVariation.cpp | DanonOfficial/TGVDenoising | 20446d9c89d75cf43056f43ed42f37965b4e7b6e | [
"MIT"
] | 2 | 2020-07-13T09:05:51.000Z | 2021-02-01T04:15:58.000Z | //
// Created by roundedglint585 on 3/11/19.
//
#include "TotalGeneralizedVariation.hpp"
TotalGeneralizedVariation::TotalGeneralizedVariation(const std::vector<TotalGeneralizedVariation::Image> &images)
: m_images(images), m_result(m_images[0]), m_width(m_result[0].size()), m_height(m_result.size()) {
in... | 33.064516 | 120 | 0.54878 | DanonOfficial |
75b5a22f172625f6a8c744363d6f830d8f9313f2 | 2,254 | hpp | C++ | include/codegen/include/Zenject/AddToCurrentGameObjectComponentProvider_--c__DisplayClass15_0.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/Zenject/AddToCurrentGameObjectComponentProvider_--c__DisplayClass15_0.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/Zenject/AddToCurrentGameObjectComponentProvider_--c__DisplayClass15_0.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:45 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.Object
#include "System/Object.hpp"
// Including type... | 40.25 | 173 | 0.741349 | Futuremappermydud |
75b87972b857fbd84c695831f982b272ada18fa2 | 965 | hpp | C++ | common/include/bib/OrnsteinUhlenbeckNoise.hpp | matthieu637/ddrl | a454d09a3ac9be5db960ff180b3d075c2f9e4a70 | [
"MIT"
] | 27 | 2017-11-27T09:32:41.000Z | 2021-03-02T13:50:23.000Z | common/include/bib/OrnsteinUhlenbeckNoise.hpp | matthieu637/ddrl | a454d09a3ac9be5db960ff180b3d075c2f9e4a70 | [
"MIT"
] | 10 | 2018-10-09T14:39:14.000Z | 2020-11-10T15:01:00.000Z | common/include/bib/OrnsteinUhlenbeckNoise.hpp | matthieu637/ddrl | a454d09a3ac9be5db960ff180b3d075c2f9e4a70 | [
"MIT"
] | 3 | 2019-05-16T09:14:15.000Z | 2019-08-15T14:35:40.000Z | #ifndef ORNSTEINUHLENBECK_HPP
#define ORNSTEINUHLENBECK_HPP
#include <vector>
namespace bib {
template<typename Real>
class OrnsteinUhlenbeckNoise {
public:
OrnsteinUhlenbeckNoise(uint action_size, Real sigma_=.2, Real theta_=.15, Real dt_=0.01) : x_t (action_size, 0) {
sigma = sigma_;
theta = theta_... | 19.693878 | 115 | 0.557513 | matthieu637 |
75b90ec3f22c09aa37cd74b9beb9a071c2601b66 | 1,959 | cpp | C++ | Source/Driver/API/SQLSetConnectOption.cpp | yichenghuang/bigobject-odbc | c6d947ea3d18d79684adfbac1c492282a075d48d | [
"MIT"
] | null | null | null | Source/Driver/API/SQLSetConnectOption.cpp | yichenghuang/bigobject-odbc | c6d947ea3d18d79684adfbac1c492282a075d48d | [
"MIT"
] | null | null | null | Source/Driver/API/SQLSetConnectOption.cpp | yichenghuang/bigobject-odbc | c6d947ea3d18d79684adfbac1c492282a075d48d | [
"MIT"
] | null | null | null | /*
* ----------------------------------------------------------------------------
* Copyright (c) 2014-2015 BigObject Inc.
* All Rights Reserved.
*
* Use of, copying, modifications to, and distribution of this software
* and its documentation without BigObject's written permission can
* result in the violation o... | 27.208333 | 79 | 0.663604 | yichenghuang |