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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
80ed2ad5b3adb1be832fa47ad9ed66fd518e0574 | 4,219 | hpp | C++ | src/base/interpolator/Interpolator.hpp | rockstorm101/GMAT | 00b6b61a40560c095da3d83dab4ab1e9157f01c7 | [
"Apache-2.0"
] | 1 | 2018-09-18T07:09:36.000Z | 2018-09-18T07:09:36.000Z | src/base/interpolator/Interpolator.hpp | rockstorm101/GMAT | 00b6b61a40560c095da3d83dab4ab1e9157f01c7 | [
"Apache-2.0"
] | null | null | null | src/base/interpolator/Interpolator.hpp | rockstorm101/GMAT | 00b6b61a40560c095da3d83dab4ab1e9157f01c7 | [
"Apache-2.0"
] | 2 | 2020-06-18T04:45:30.000Z | 2021-07-20T02:11:54.000Z | //$Id$
//------------------------------------------------------------------------------
// Interpolator
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool.
//
// Copyright (c) 2002 - 2015 United States Government ... | 35.158333 | 81 | 0.604172 | rockstorm101 |
80ee8e5fcad8c9774fabe3dc0d0081079af6ae80 | 4,849 | cc | C++ | lite/backends/nnadapter/nnadapter/driver/huawei_ascend_npu/converter/pool2d.cc | ChinaCYong/Paddle-Lite | 8d161bd76c86445c42f00421983e389c11323797 | [
"Apache-2.0"
] | 1 | 2021-07-12T10:46:19.000Z | 2021-07-12T10:46:19.000Z | lite/backends/nnadapter/nnadapter/driver/huawei_ascend_npu/converter/pool2d.cc | fuaq/Paddle-Lite | 56e1239410d976842fc6f7792de13c9d007d253f | [
"Apache-2.0"
] | null | null | null | lite/backends/nnadapter/nnadapter/driver/huawei_ascend_npu/converter/pool2d.cc | fuaq/Paddle-Lite | 56e1239410d976842fc6f7792de13c9d007d253f | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... | 44.081818 | 78 | 0.670241 | ChinaCYong |
80ef0d8a50449bb2b90ce59f752fc9c46bbcd66d | 4,254 | cpp | C++ | Userland/Libraries/LibWeb/Layout/Label.cpp | r00ster91/serenity | f8387dea2689d564aff612bfd4ec5086393fac35 | [
"BSD-2-Clause"
] | 19,438 | 2019-05-20T15:11:11.000Z | 2022-03-31T23:31:32.000Z | Userland/Libraries/LibWeb/Layout/Label.cpp | r00ster91/serenity | f8387dea2689d564aff612bfd4ec5086393fac35 | [
"BSD-2-Clause"
] | 7,882 | 2019-05-20T01:03:52.000Z | 2022-03-31T23:26:31.000Z | Userland/Libraries/LibWeb/Layout/Label.cpp | r00ster91/serenity | f8387dea2689d564aff612bfd4ec5086393fac35 | [
"BSD-2-Clause"
] | 2,721 | 2019-05-23T00:44:57.000Z | 2022-03-31T22:49:34.000Z | /*
* Copyright (c) 2021, Tim Flynn <trflynn89@pm.me>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibGUI/Event.h>
#include <LibGfx/Painter.h>
#include <LibGfx/StylePainter.h>
#include <LibWeb/DOM/Document.h>
#include <LibWeb/DOM/Element.h>
#include <LibWeb/HTML/BrowsingContext.h>
#include <LibWeb/Layout/... | 30.170213 | 113 | 0.683827 | r00ster91 |
80f1149c50a621b596022f27e1eb8c5ddc1b3b2f | 4,540 | hpp | C++ | src/mat/opr/num.hpp | Thhethssmuz/mmm | ee91a990fba3849db1fc2b6df0e89004e2df466f | [
"MIT"
] | 1 | 2017-03-14T20:45:54.000Z | 2017-03-14T20:45:54.000Z | src/mat/opr/num.hpp | Thhethssmuz/mmm | ee91a990fba3849db1fc2b6df0e89004e2df466f | [
"MIT"
] | 1 | 2017-03-08T17:14:03.000Z | 2017-03-08T23:40:35.000Z | src/mat/opr/num.hpp | Thhethssmuz/mmm | ee91a990fba3849db1fc2b6df0e89004e2df466f | [
"MIT"
] | null | null | null | #pragma once
template <typename T, size_t N, size_t M, typename = typefu::for_arithmetic<T>>
constexpr tmat<T, N, M> operator+(T s, const tmat<T, N, M>& m);
template <typename T, typename U, size_t N, size_t M,
typename = typefu::for_arithmetic<T, U>>
constexpr tmat<T, N, M> operator+(U s, const tmat<T, N, ... | 41.651376 | 79 | 0.633921 | Thhethssmuz |
80f13c80ed70d799f2b000a71c7483cab558589d | 534 | cpp | C++ | src/10.cpp | wandering007/ProjectEuler | 332e1053aa8d65e764952f4133ff0f06d028136a | [
"Apache-2.0"
] | 4 | 2015-05-02T09:15:54.000Z | 2018-06-28T16:18:20.000Z | src/10.cpp | wandering007/ProjectEuler | 332e1053aa8d65e764952f4133ff0f06d028136a | [
"Apache-2.0"
] | null | null | null | src/10.cpp | wandering007/ProjectEuler | 332e1053aa8d65e764952f4133ff0f06d028136a | [
"Apache-2.0"
] | 1 | 2017-10-29T06:35:59.000Z | 2017-10-29T06:35:59.000Z | #include <iostream>
#include <vector>
int main() {
const int N = 2000000;
std::vector<int> is_prime(N, 1);
for (int k = 2; k + k < N; ++k) {
for (int j = k + k; j < N; j += k) {
is_prime[j] = 0;
}
}
long long sum_of_primes = 0; // 不能用int
for (int i = 2; ... | 26.7 | 98 | 0.456929 | wandering007 |
80f150649a995bbec45e690f159257810537b405 | 25,084 | hpp | C++ | include/RAJA/policy/hip/sort.hpp | keichi/RAJA | 8e8cc96cbccda2bfc33b14b57a8591b2cf9ca342 | [
"BSD-3-Clause"
] | null | null | null | include/RAJA/policy/hip/sort.hpp | keichi/RAJA | 8e8cc96cbccda2bfc33b14b57a8591b2cf9ca342 | [
"BSD-3-Clause"
] | null | null | null | include/RAJA/policy/hip/sort.hpp | keichi/RAJA | 8e8cc96cbccda2bfc33b14b57a8591b2cf9ca342 | [
"BSD-3-Clause"
] | null | null | null | /*!
******************************************************************************
*
* \file
*
* \brief Header file providing RAJA sort declarations.
*
******************************************************************************
*/
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
// ... | 37.271917 | 155 | 0.54772 | keichi |
80f1a3fe3290d70601a0530de0edda17489931b1 | 42 | cpp | C++ | 2018/day15/day15/graph.cpp | zagura/aoc-2017 | bfd38fb6fbe4211017a306d218b32ecff741e006 | [
"MIT"
] | 2 | 2018-12-09T16:00:09.000Z | 2018-12-09T17:56:15.000Z | 2018/day15/day15/graph.cpp | zagura/aoc-2017 | bfd38fb6fbe4211017a306d218b32ecff741e006 | [
"MIT"
] | null | null | null | 2018/day15/day15/graph.cpp | zagura/aoc-2017 | bfd38fb6fbe4211017a306d218b32ecff741e006 | [
"MIT"
] | null | null | null | #include "graph.hpp"
Graph::Graph()
{
}
| 6 | 20 | 0.595238 | zagura |
80f3d98b065279779da3a4fa531dcb89099b8e50 | 14,935 | cc | C++ | modules/perception/obstacle/camera/converter/geometry_camera_converter.cc | DinnerHowe/apollo | f45b63ea2f2409dbd1b007476d816d6ec44ba06c | [
"Apache-2.0"
] | 19 | 2018-07-26T03:17:32.000Z | 2021-01-04T02:17:09.000Z | modules/perception/obstacle/camera/converter/geometry_camera_converter.cc | DinnerHowe/apollo | f45b63ea2f2409dbd1b007476d816d6ec44ba06c | [
"Apache-2.0"
] | null | null | null | modules/perception/obstacle/camera/converter/geometry_camera_converter.cc | DinnerHowe/apollo | f45b63ea2f2409dbd1b007476d816d6ec44ba06c | [
"Apache-2.0"
] | 10 | 2018-10-17T03:18:16.000Z | 2020-07-02T06:18:14.000Z | /******************************************************************************
* Copyright 2018 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... | 36.3382 | 83 | 0.640509 | DinnerHowe |
80f457acb73146c1efd6b335b61609bd3182ebbc | 2,890 | cpp | C++ | StepEditor/RawResponseDlg.cpp | edwig/Kwatta | ce1ca2907608e65ed62d7dbafa9ab1d030caccfe | [
"MIT"
] | 1 | 2021-12-31T17:20:01.000Z | 2021-12-31T17:20:01.000Z | StepEditor/RawResponseDlg.cpp | edwig/Kwatta | ce1ca2907608e65ed62d7dbafa9ab1d030caccfe | [
"MIT"
] | 10 | 2022-01-14T13:28:32.000Z | 2022-02-13T12:46:34.000Z | StepEditor/RawResponseDlg.cpp | edwig/Kwatta | ce1ca2907608e65ed62d7dbafa9ab1d030caccfe | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////////////////////////////
//
//
// ██╗░░██╗░██╗░░░░░░░██╗░█████╗░████████╗████████╗░█████╗░
// ██║░██╔╝░██║░░██╗░░██║██╔══██╗╚══██╔══╝╚══██╔══╝██╔══██╗
// █████═╝░░╚██╗████╗██╔╝███████║░░░██║░░░░░░██║░░░███████║
// ██╔═██╗░░░████╔═████║░██╔... | 22.403101 | 111 | 0.597924 | edwig |
80f6bc462b24e46667b580c21423f59b1e35b003 | 226 | cpp | C++ | Engine/Source/Runtime/Engine/Private/AI/Navigation/NavAreas/NavArea_Default.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | 1 | 2022-01-29T18:36:12.000Z | 2022-01-29T18:36:12.000Z | Engine/Source/Runtime/Engine/Private/AI/Navigation/NavAreas/NavArea_Default.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | Engine/Source/Runtime/Engine/Private/AI/Navigation/NavAreas/NavArea_Default.cpp | windystrife/UnrealEngine_NVIDIAGameWork | b50e6338a7c5b26374d66306ebc7807541ff815e | [
"MIT"
] | null | null | null | // Copyright 1998-2017 Epic Games, Inc. All Rights Reserved.
#include "AI/Navigation/NavAreas/NavArea_Default.h"
UNavArea_Default::UNavArea_Default(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer)
{
}
| 28.25 | 106 | 0.809735 | windystrife |
80f9094b2e531ee4919911441a2d788de2d55135 | 2,871 | hpp | C++ | hpx/performance_counters/parcels/count_time_stats.hpp | andreasbuhr/hpx | 4366a90aacbd3e95428a94ab24a1646a67459cc2 | [
"BSL-1.0"
] | null | null | null | hpx/performance_counters/parcels/count_time_stats.hpp | andreasbuhr/hpx | 4366a90aacbd3e95428a94ab24a1646a67459cc2 | [
"BSL-1.0"
] | null | null | null | hpx/performance_counters/parcels/count_time_stats.hpp | andreasbuhr/hpx | 4366a90aacbd3e95428a94ab24a1646a67459cc2 | [
"BSL-1.0"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2011 Katelyn Kufahl
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
///////////////////////////////////////////... | 26.831776 | 80 | 0.695925 | andreasbuhr |
80fc1f458a79c0de61a543dd5740af2af132a74f | 12,484 | hpp | C++ | libs/core/algorithms/include/hpx/parallel/algorithms/detail/dispatch.hpp | Andrea-MariaDB-2/hpx | e230dddce4a8783817f38e07f5a77e624f64f826 | [
"BSL-1.0"
] | 1,822 | 2015-01-03T11:22:37.000Z | 2022-03-31T14:49:59.000Z | libs/core/algorithms/include/hpx/parallel/algorithms/detail/dispatch.hpp | Andrea-MariaDB-2/hpx | e230dddce4a8783817f38e07f5a77e624f64f826 | [
"BSL-1.0"
] | 3,288 | 2015-01-05T17:00:23.000Z | 2022-03-31T18:49:41.000Z | libs/core/algorithms/include/hpx/parallel/algorithms/detail/dispatch.hpp | Andrea-MariaDB-2/hpx | e230dddce4a8783817f38e07f5a77e624f64f826 | [
"BSL-1.0"
] | 431 | 2015-01-07T06:22:14.000Z | 2022-03-31T14:50:04.000Z | // Copyright (c) 2007-2017 Hartmut Kaiser
// Copyright (c) 2021 Giannis Gonidelis
//
// SPDX-License-Identifier: BSL-1.0
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include <hpx/config.hpp>
... | 37.377246 | 80 | 0.577539 | Andrea-MariaDB-2 |
80fd9445db389266bd3811e34ba54dcf7ca678d3 | 532 | cpp | C++ | lab0/Q5.cpp | jasonsie88/Algorithm | 4d373df037aa68f4810e271d7f8488f3ded81864 | [
"MIT"
] | 1 | 2021-09-14T12:10:50.000Z | 2021-09-14T12:10:50.000Z | lab0/Q5.cpp | jasonsie88/Algorithm | 4d373df037aa68f4810e271d7f8488f3ded81864 | [
"MIT"
] | null | null | null | lab0/Q5.cpp | jasonsie88/Algorithm | 4d373df037aa68f4810e271d7f8488f3ded81864 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
int main(){
int ncase;
while(cin>>ncase){
if(ncase==0){
break;
}
int a1[ncase+5],a2[ncase+5];
for(int i=0;i<ncase;i++){
cin>>a1[i]>>a2[i];
}
bool flag=true;
if(ncase%2){
cout<<"NO\n";
}else{
sort(a1,a1+ncase);
sort(a... | 14 | 33 | 0.456767 | jasonsie88 |
80febcc662731b8104dbabdf1bfd52b7ff8bab4d | 25,134 | cpp | C++ | wznmcmbd/IexWznm/JobWznmIexIex.cpp | mpsitech/wznm-WhizniumSBE | 4911d561b28392d485c46e98fb915168d82b3824 | [
"MIT"
] | 3 | 2020-09-20T16:24:48.000Z | 2021-12-01T19:44:51.000Z | wznmcmbd/IexWznm/JobWznmIexIex.cpp | mpsitech/wznm-WhizniumSBE | 4911d561b28392d485c46e98fb915168d82b3824 | [
"MIT"
] | null | null | null | wznmcmbd/IexWznm/JobWznmIexIex.cpp | mpsitech/wznm-WhizniumSBE | 4911d561b28392d485c46e98fb915168d82b3824 | [
"MIT"
] | null | null | null | /**
* \file JobWznmIexIex.cpp
* job handler for job JobWznmIexIex (implementation)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author Alexander Wirthmueller (auto-generation)
* \date created: 28 Nov 2020
*/
// IP header --- ABOVE
#ifdef WZNMCMBD
#include <Wznmcmbd.h>
#else
#include <Wznmd.h>
#endif
#... | 32.769231 | 334 | 0.684133 | mpsitech |
44005351e0d4c83cc5ca5c08aee2c529b22f4080 | 40,782 | cc | C++ | src/bin/dhcp6/json_config_parser.cc | oss-mirror/isc-kea | e7bfb8886b0312a293e73846499095e7ec9686b9 | [
"Apache-2.0"
] | 273 | 2015-01-22T14:14:42.000Z | 2022-03-13T10:27:44.000Z | src/bin/dhcp6/json_config_parser.cc | oss-mirror/isc-kea | e7bfb8886b0312a293e73846499095e7ec9686b9 | [
"Apache-2.0"
] | 104 | 2015-01-16T16:37:06.000Z | 2021-08-08T19:38:45.000Z | src/bin/dhcp6/json_config_parser.cc | oss-mirror/isc-kea | e7bfb8886b0312a293e73846499095e7ec9686b9 | [
"Apache-2.0"
] | 133 | 2015-02-21T14:06:39.000Z | 2022-02-27T08:56:40.000Z | // Copyright (C) 2012-2021 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include <config.h>
#include <asiolink/io_ad... | 42.569937 | 94 | 0.597568 | oss-mirror |
44007d6c50bd95a8ea0f81ef4a35f463cf0caffb | 2,004 | cxx | C++ | src/SimpleCalCalib/TholdCI.cxx | fermi-lat/CalUtil | 98b5b658257b5ffe2584cf786dd2e506173e2d8f | [
"BSD-3-Clause"
] | null | null | null | src/SimpleCalCalib/TholdCI.cxx | fermi-lat/CalUtil | 98b5b658257b5ffe2584cf786dd2e506173e2d8f | [
"BSD-3-Clause"
] | null | null | null | src/SimpleCalCalib/TholdCI.cxx | fermi-lat/CalUtil | 98b5b658257b5ffe2584cf786dd2e506173e2d8f | [
"BSD-3-Clause"
] | null | null | null | /** @file
@author Zachary Fewtrell
*/
// LOCAL INCLUDES
#include "CalUtil/SimpleCalCalib/TholdCI.h"
// GLAST INCLUDES
// EXTLIB INCLUDES
// STD INCLUDES
#include <sstream>
#include <string>
#include <fstream>
using namespace CalUtil;
using namespace std;
namespace CalUtil {
const short TholdCI::INVALID_THOL... | 25.367089 | 70 | 0.56487 | fermi-lat |
4400ac6a4b285923557ac5fb8ca4f0d259f3ca9e | 774 | cpp | C++ | 2stack_queue.cpp | xiaobinf/algorithm | 85a0cfc72daf6da91c4d0f568e31be69d4f19bd9 | [
"MIT"
] | null | null | null | 2stack_queue.cpp | xiaobinf/algorithm | 85a0cfc72daf6da91c4d0f568e31be69d4f19bd9 | [
"MIT"
] | null | null | null | 2stack_queue.cpp | xiaobinf/algorithm | 85a0cfc72daf6da91c4d0f568e31be69d4f19bd9 | [
"MIT"
] | null | null | null | #include <iostream>
#include <stack>
#include <exception>
using std::clog;
using std::endl;
/**
* 用两个栈模拟队列操作 画好过程图
* @tparam T
*/
template <class T>
class QStack{
public:
QStack(){}
~QStack(){}
T q_pop();
void q_push(T x);
private:
std::stack<T> s1;
std::stack<T> s2;
};
... | 16.468085 | 38 | 0.484496 | xiaobinf |
44010427dfc62f2f560cc39530688bc9d5ee9cf0 | 478 | cc | C++ | abel/strings/internal/ostringstream.cc | Conun/abel | 485ef38c917c0df3750242cc38966a2bcb163588 | [
"BSD-3-Clause"
] | null | null | null | abel/strings/internal/ostringstream.cc | Conun/abel | 485ef38c917c0df3750242cc38966a2bcb163588 | [
"BSD-3-Clause"
] | null | null | null | abel/strings/internal/ostringstream.cc | Conun/abel | 485ef38c917c0df3750242cc38966a2bcb163588 | [
"BSD-3-Clause"
] | null | null | null | //
#include <abel/strings/internal/ostringstream.h>
namespace abel {
namespace strings_internal {
OStringStream::Buf::int_type OStringStream::overflow(int c) {
assert(s_);
if (!Buf::traits_type::eq_int_type(c, Buf::traits_type::eof()))
s_->push_back(static_cast<char>(c));
return 1;
}
std::streamsize OStr... | 19.12 | 73 | 0.696653 | Conun |
4401838fbbaf23517ca138f45a07b2e3294e7e9f | 887 | cc | C++ | netz/ether_support.cc | PariKhaleghi/BlackFish | dde6e4de00744be04848853e6f8d12cd4c54fd73 | [
"BSD-3-Clause"
] | 1 | 2022-03-03T08:47:33.000Z | 2022-03-03T08:47:33.000Z | netz/ether_support.cc | PariKhaleghi/BlackFish | dde6e4de00744be04848853e6f8d12cd4c54fd73 | [
"BSD-3-Clause"
] | null | null | null | netz/ether_support.cc | PariKhaleghi/BlackFish | dde6e4de00744be04848853e6f8d12cd4c54fd73 | [
"BSD-3-Clause"
] | null | null | null | #ifdef OS_AIX
#include <memory.h>
#endif
#ifdef OS_OPENBSD
#include <memory.h>
#endif
#ifdef OS_LINUX
#include <string.h>
#endif
#include "ether_support.h"
#include "support.h"
c_ether_header::c_ether_header(byte *ether_header)
{
header = (s_ether_header *)ether_header;
}
c_ether_header::c_ether_header(s_ether... | 14.783333 | 60 | 0.706877 | PariKhaleghi |
4402919f1922b8d1c7aa1b0aba90b53f65624833 | 1,803 | cpp | C++ | 2course/Programming/examples/from_study_guide/5_1.cpp | posgen/OmsuMaterials | 6132fe300154db97327667728c4cf3b0e19420e6 | [
"Unlicense"
] | 9 | 2017-04-03T08:52:58.000Z | 2020-06-05T18:25:02.000Z | 2course/Programming/examples/from_study_guide/5_1.cpp | posgen/OmsuMaterials | 6132fe300154db97327667728c4cf3b0e19420e6 | [
"Unlicense"
] | 6 | 2018-02-07T18:26:27.000Z | 2021-09-02T04:46:06.000Z | 2course/Programming/examples/from_study_guide/5_1.cpp | posgen/OmsuMaterials | 6132fe300154db97327667728c4cf3b0e19420e6 | [
"Unlicense"
] | 10 | 2018-11-12T18:18:47.000Z | 2020-06-06T06:17:01.000Z | /*
Определить функцию для вычисления по формуле Ньютона приблежённого значения
арифметического квадратного корня. В формуле Ньютона итерации определяются
по формуле r_[n+1] = (r_[n] + x / r_[n]) / 2
Версия для C++
*/
#include <iostream>
#include <cmath>
#include <clocale>
const double PRECISION = 0.00... | 28.619048 | 127 | 0.688297 | posgen |
4403da96c1a053243a411d33ceecba44a494520e | 20,089 | hpp | C++ | src/thirdparty/stlsoft/STLSoft/include/winstl/controls/listview_sequence.hpp | nneesshh/servercore | 8aceb7c9d5b26976469645a708b4ab804864c03f | [
"MIT"
] | null | null | null | src/thirdparty/stlsoft/STLSoft/include/winstl/controls/listview_sequence.hpp | nneesshh/servercore | 8aceb7c9d5b26976469645a708b4ab804864c03f | [
"MIT"
] | null | null | null | src/thirdparty/stlsoft/STLSoft/include/winstl/controls/listview_sequence.hpp | nneesshh/servercore | 8aceb7c9d5b26976469645a708b4ab804864c03f | [
"MIT"
] | 2 | 2020-11-04T03:07:09.000Z | 2020-11-05T08:14:45.000Z | /* /////////////////////////////////////////////////////////////////////////
* File: winstl/controls/listview_sequence.hpp
*
* Purpose: Contains the listview_sequence class template.
*
* Created: 8th May 2003
* Updated: 19th February 2017
*
* Thanks: To Pablo Aguilar for making the requi... | 32.771615 | 141 | 0.636816 | nneesshh |
4403dfed513c5fdb39e812465f6013deb45634de | 79,067 | cpp | C++ | trunk/win/Source/BT_Camera.cpp | dyzmapl/BumpTop | 1329ea41411c7368516b942d19add694af3d602f | [
"Apache-2.0"
] | 460 | 2016-01-13T12:49:34.000Z | 2022-02-20T04:10:40.000Z | trunk/win/Source/BT_Camera.cpp | dyzmapl/BumpTop | 1329ea41411c7368516b942d19add694af3d602f | [
"Apache-2.0"
] | 24 | 2016-11-07T04:59:49.000Z | 2022-03-14T06:34:12.000Z | trunk/win/Source/BT_Camera.cpp | dyzmapl/BumpTop | 1329ea41411c7368516b942d19add694af3d602f | [
"Apache-2.0"
] | 148 | 2016-01-17T03:16:43.000Z | 2022-03-17T12:20:36.000Z | // Copyright 2012 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ap... | 28.441367 | 176 | 0.700634 | dyzmapl |
4404caf10481aafdc607b1ccbd70358f2688c0a2 | 15,851 | cc | C++ | GeneratorInterface/SherpaInterface/src/SherpackUtilities.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | GeneratorInterface/SherpaInterface/src/SherpackUtilities.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | GeneratorInterface/SherpaInterface/src/SherpackUtilities.cc | ckamtsikis/cmssw | ea19fe642bb7537cbf58451dcf73aa5fd1b66250 | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | #include "GeneratorInterface/SherpaInterface/interface/SherpackUtilities.h"
#include <unistd.h>
#include <cstdlib>
namespace spu {
// functions for inflating (and deflating)
//~ /* Compress from file source to file dest until EOF on source.
//~ def() returns Z_OK on success, Z_MEM_ERROR if memory could not be
... | 31.202756 | 95 | 0.507854 | ckamtsikis |
4405819af9694991e962881bc68366cfcf3778a2 | 116 | cpp | C++ | src/virtual_call_in_destructor_link.cpp | geoffviola/undefined_behavior_study | c405fa766284473c5b3c9ce415c18bcc2bba227c | [
"Apache-2.0"
] | 9 | 2017-03-18T09:15:36.000Z | 2020-05-24T18:00:37.000Z | src/virtual_call_in_destructor_link.cpp | geoffviola/undefined_behavior_study | c405fa766284473c5b3c9ce415c18bcc2bba227c | [
"Apache-2.0"
] | 1 | 2018-06-19T19:36:19.000Z | 2018-10-15T16:49:29.000Z | src/virtual_call_in_destructor_link.cpp | geoffviola/undefined_behavior_study | c405fa766284473c5b3c9ce415c18bcc2bba227c | [
"Apache-2.0"
] | 3 | 2017-03-18T01:44:49.000Z | 2022-01-04T03:22:02.000Z | #include <cstdlib>
#include "virtual_call_in_destructor_lib.hpp"
int main() {
Child c;
return EXIT_SUCCESS;
}
| 12.888889 | 45 | 0.732759 | geoffviola |
440766b9513511298f9600103484d10624b58b09 | 2,063 | cpp | C++ | library/src/main/jni/_onload.cpp | badpx/IndexBitmap | d940d56a31ce7f0ee717d12132c4c51c2fd6520b | [
"Apache-2.0"
] | 11 | 2015-08-24T13:29:10.000Z | 2020-07-18T08:10:55.000Z | library/src/main/jni/_onload.cpp | badpx/IndexBitmap | d940d56a31ce7f0ee717d12132c4c51c2fd6520b | [
"Apache-2.0"
] | 3 | 2016-03-28T10:23:15.000Z | 2018-11-02T02:13:00.000Z | library/src/main/jni/_onload.cpp | badpx/IndexBitmap | d940d56a31ce7f0ee717d12132c4c51c2fd6520b | [
"Apache-2.0"
] | 4 | 2016-01-09T10:42:03.000Z | 2019-05-02T03:04:37.000Z | #include <android/log.h>
#include "baseutils.h"
#include "_onload.h"
#include "skbitmap_helper.h"
#define LOCAL_DEBUG 0
static JNINativeMethod methods[] = {
{ "nativeInit", "(Landroid/graphics/Bitmap;[I)Z", (void*)Init },
{ "nativeGetBytesPerPixel", "(Landroid/graphics/Bitmap;)I", (void*)GetBytesPerPixel },
... | 28.652778 | 108 | 0.672807 | badpx |
44076f00c9acc115ab70c1121a76857ad79248c9 | 438 | hpp | C++ | i23dSFM/matching/matcher_type.hpp | zyxrrr/GraphSfM | 1af22ec17950ffc8a5c737a6a46f4465c40aa470 | [
"BSD-3-Clause"
] | null | null | null | i23dSFM/matching/matcher_type.hpp | zyxrrr/GraphSfM | 1af22ec17950ffc8a5c737a6a46f4465c40aa470 | [
"BSD-3-Clause"
] | null | null | null | i23dSFM/matching/matcher_type.hpp | zyxrrr/GraphSfM | 1af22ec17950ffc8a5c737a6a46f4465c40aa470 | [
"BSD-3-Clause"
] | 1 | 2019-02-18T09:49:32.000Z | 2019-02-18T09:49:32.000Z |
// Copyright (c) 2015 Pierre MOULON.
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#pragma once
namespace i23dSFM{
namespace matching{
enum EMatcherType
{
BRU... | 19.909091 | 70 | 0.730594 | zyxrrr |
44091448f0282afc5ca5f79268da2865dfb7cf86 | 2,683 | cpp | C++ | tests/IDL_Test/Double_Inherited_Component/ComponentC_exec.cpp | qinwang13/CIAO | e69add1b5da8e9602bcc85d581ecbf1bd41c49a3 | [
"DOC"
] | 10 | 2016-07-20T00:55:50.000Z | 2020-10-04T19:07:10.000Z | tests/IDL_Test/Double_Inherited_Component/ComponentC_exec.cpp | qinwang13/CIAO | e69add1b5da8e9602bcc85d581ecbf1bd41c49a3 | [
"DOC"
] | 13 | 2016-09-27T14:08:27.000Z | 2020-11-11T10:45:56.000Z | tests/IDL_Test/Double_Inherited_Component/ComponentC_exec.cpp | qinwang13/CIAO | e69add1b5da8e9602bcc85d581ecbf1bd41c49a3 | [
"DOC"
] | 12 | 2016-04-20T09:57:02.000Z | 2021-12-24T17:23:45.000Z | // -*- C++ -*-
#include "ComponentC_exec.h"
#include "ace/Log_Msg.h"
namespace CIAO_connector_test_C_Impl
{
//============================================================
// Pulse generator
//============================================================
ComponentC_exec_i::ComponentC_exec_i (void)
: topic_... | 23.330435 | 83 | 0.642564 | qinwang13 |
44092bd71c2f0ce667e15f64d5aa0e72fa9551b3 | 1,654 | cc | C++ | testPrograms/tPartialIO.cc | yahoo/Pluton | 82bbab17c0013d87063b398ec777d5977f353d0a | [
"MIT"
] | 8 | 2015-05-22T21:27:17.000Z | 2017-03-19T06:07:41.000Z | testPrograms/tPartialIO.cc | YahooArchive/Pluton | 82bbab17c0013d87063b398ec777d5977f353d0a | [
"MIT"
] | null | null | null | testPrograms/tPartialIO.cc | YahooArchive/Pluton | 82bbab17c0013d87063b398ec777d5977f353d0a | [
"MIT"
] | 6 | 2015-10-16T08:40:00.000Z | 2016-11-14T06:48:09.000Z | #include <iostream>
#include <sys/time.h>
#include <assert.h>
#include <stdlib.h>
#include <pluton/client.h>
using namespace std;
// Force a service to be left in a partially read request state, then
// send a new request to ensure that it resets properly.
const char* SK = "system.echo.0.raw";
int
main(int argc... | 22.657534 | 98 | 0.613664 | yahoo |
440947b52022a63dc706d779cb986d0c140b6777 | 1,756 | hpp | C++ | lib/boost_1.78.0/boost/spirit/home/x3/support/traits/variant_has_substitute.hpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | 29 | 2021-11-19T11:28:22.000Z | 2022-03-29T00:26:51.000Z | lib/boost_1.78.0/boost/spirit/home/x3/support/traits/variant_has_substitute.hpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | 4 | 2020-12-07T22:56:32.000Z | 2021-07-17T22:13:37.000Z | lib/boost_1.78.0/boost/spirit/home/x3/support/traits/variant_has_substitute.hpp | LaudateCorpus1/math | 990a66b3cccd27a5fd48626360bb91093a48278b | [
"BSD-3-Clause"
] | 17 | 2018-07-30T12:45:42.000Z | 2022-01-10T11:18:30.000Z | /*=============================================================================
Copyright (c) 2001-2014 Joel de Guzman
http://spirit.sourceforge.net/
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
======... | 33.769231 | 80 | 0.617882 | LaudateCorpus1 |
440c76a7e19e24f569b9e5d005423be112be567a | 12,648 | cpp | C++ | iree/compiler/Transforms/Sequencer/LowerSequencerDialect.cpp | so-man/iree | 36be189aa74d6f5bc7eb665e5a7baf3effaca12d | [
"Apache-2.0"
] | null | null | null | iree/compiler/Transforms/Sequencer/LowerSequencerDialect.cpp | so-man/iree | 36be189aa74d6f5bc7eb665e5a7baf3effaca12d | [
"Apache-2.0"
] | null | null | null | iree/compiler/Transforms/Sequencer/LowerSequencerDialect.cpp | so-man/iree | 36be189aa74d6f5bc7eb665e5a7baf3effaca12d | [
"Apache-2.0"
] | null | null | null | // Copyright 2019 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | 41.605263 | 80 | 0.67228 | so-man |
440d7c861defadb803bd8ec0c6833afed1f8e277 | 1,165 | cpp | C++ | libraries/fc/src/crypto/openssl.cpp | SophiaTX/SophiaTx-Blockchain | c964691c020962ad1aba8263c0d8a78a9fa27e45 | [
"MIT"
] | 8 | 2018-07-25T20:42:43.000Z | 2019-03-11T03:14:09.000Z | libraries/fc/src/crypto/openssl.cpp | SophiaTX/SophiaTx-Blockchain | c964691c020962ad1aba8263c0d8a78a9fa27e45 | [
"MIT"
] | 13 | 2018-07-25T17:41:28.000Z | 2019-01-25T13:38:11.000Z | libraries/fc/src/crypto/openssl.cpp | SophiaTX/SophiaTx-Blockchain | c964691c020962ad1aba8263c0d8a78a9fa27e45 | [
"MIT"
] | 11 | 2018-07-25T14:34:13.000Z | 2019-05-03T13:29:37.000Z | #include <fc/crypto/openssl.hpp>
#include <fc/filesystem.hpp>
#include <boost/filesystem/path.hpp>
#include <cstdlib>
#include <string>
#include <stdlib.h>
namespace fc
{
struct openssl_scope
{
static ENGINE* eng;
openssl_scope()
{
ENGINE_load_rdrand();
ENGINE* ... | 17.923077 | 60 | 0.498712 | SophiaTX |
440e8c81f92ce8229a8463756046dc9995685f1b | 5,679 | cpp | C++ | build_linux/moc_addressbookpage.cpp | bitcrystal2/bitcrystal_v20_last_linux_branch | a5d759e9b5134502a28483fea3567894eec08e7f | [
"MIT"
] | null | null | null | build_linux/moc_addressbookpage.cpp | bitcrystal2/bitcrystal_v20_last_linux_branch | a5d759e9b5134502a28483fea3567894eec08e7f | [
"MIT"
] | null | null | null | build_linux/moc_addressbookpage.cpp | bitcrystal2/bitcrystal_v20_last_linux_branch | a5d759e9b5134502a28483fea3567894eec08e7f | [
"MIT"
] | null | null | null | /****************************************************************************
** Meta object code from reading C++ file 'addressbookpage.h'
**
** Created: Thu Dec 25 23:31:32 2014
** by: The Qt Meta Object Compiler version 63 (Qt 4.8.2)
**
** WARNING! All changes made in this file will be lost!
*******************... | 35.49375 | 168 | 0.619827 | bitcrystal2 |
440eadb4249244c03db0b3fe9843fed07ecc809f | 5,964 | cpp | C++ | luogu/4463/me.cpp | jinzhengyu1212/Clovers | 0efbb0d87b5c035e548103409c67914a1f776752 | [
"MIT"
] | null | null | null | luogu/4463/me.cpp | jinzhengyu1212/Clovers | 0efbb0d87b5c035e548103409c67914a1f776752 | [
"MIT"
] | null | null | null | luogu/4463/me.cpp | jinzhengyu1212/Clovers | 0efbb0d87b5c035e548103409c67914a1f776752 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N=530000;
const int MOD=998244353;
inline int read(){
int x=0,f=0; char ch=getchar();
while(ch<'0'||ch>'9') f|=(ch=='-'),ch=getchar();
while(ch>='0'&&ch<='9') x=(x<<1)+(x<<3)+(ch^48),ch=getchar();
return f==0 ? x : -x;
}
inline... | 26.986425 | 88 | 0.504359 | jinzhengyu1212 |
440f30946cab250c0db8709e14985c206ca8c50e | 3,501 | cpp | C++ | node/silkworm/downloader/messages/InboundNewBlockHashes.cpp | elmato/silkworm | 711c73547cd1f7632ff02d5f86dfac5b0d249344 | [
"Apache-2.0"
] | null | null | null | node/silkworm/downloader/messages/InboundNewBlockHashes.cpp | elmato/silkworm | 711c73547cd1f7632ff02d5f86dfac5b0d249344 | [
"Apache-2.0"
] | null | null | null | node/silkworm/downloader/messages/InboundNewBlockHashes.cpp | elmato/silkworm | 711c73547cd1f7632ff02d5f86dfac5b0d249344 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2021 The Silkworm Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed ... | 34.663366 | 118 | 0.690089 | elmato |
44118ee6351d2431365729ada9faca38a9a5433e | 1,036 | cpp | C++ | bitriejoin-ed/main.cpp | TsinghuaDatabaseGroup/Similarity-Search-and-Join | 0fba32f030ca9e466d1aed9d3c7dcf59ea3e88dc | [
"BSD-2-Clause"
] | 14 | 2018-01-29T06:54:06.000Z | 2021-07-09T18:18:51.000Z | bitriejoin-ed/main.cpp | TsinghuaDatabaseGroup/similarity | 0fba32f030ca9e466d1aed9d3c7dcf59ea3e88dc | [
"BSD-2-Clause"
] | null | null | null | bitriejoin-ed/main.cpp | TsinghuaDatabaseGroup/similarity | 0fba32f030ca9e466d1aed9d3c7dcf59ea3e88dc | [
"BSD-2-Clause"
] | 11 | 2018-04-11T04:56:40.000Z | 2021-12-17T04:00:22.000Z | #include <stdio.h>
#include <vector>
#include <string>
#include <iostream>
#include <fstream>
#include "BiTrieSelfJoin.h"
#include "common/time.h"
using namespace std;
extern long long resultNum;
void LoadStrings(vector<char*>& strings, char* filename)
{
ifstream in(filename);
if (in.fail())
{
cerr << "Can not... | 19.54717 | 66 | 0.632239 | TsinghuaDatabaseGroup |
4413384da82d02d06b480f9a45319d7c23c375d5 | 11,826 | cpp | C++ | SwordsmanAndSpiders/Classes/common/SixCatsLogger.cpp | beardog-ukr/vigilant-couscous | 57f00950b567cb6adf2e0a06f02925ee271012fe | [
"Unlicense"
] | null | null | null | SwordsmanAndSpiders/Classes/common/SixCatsLogger.cpp | beardog-ukr/vigilant-couscous | 57f00950b567cb6adf2e0a06f02925ee271012fe | [
"Unlicense"
] | null | null | null | SwordsmanAndSpiders/Classes/common/SixCatsLogger.cpp | beardog-ukr/vigilant-couscous | 57f00950b567cb6adf2e0a06f02925ee271012fe | [
"Unlicense"
] | null | null | null | #include "SixCatsLogger.h"
#include <iostream> // cout
using namespace std;
#define LOCAL_C6_DEBUG 1
// --- ------------------------------------------------------------------------
SixCatsLogger::SixCatsLogger() {
selfSetup();
}
// --- ----------------------------------------------------------------... | 26.635135 | 89 | 0.457551 | beardog-ukr |
4414cf77cd013dbe998caff4cc57ff4f5edc1b0e | 36,416 | cpp | C++ | dlib/test/matrix4.cpp | oms1226/dlib-19.13 | 0bb55d112324edb700a42a3e6baca09c03967754 | [
"MIT"
] | null | null | null | dlib/test/matrix4.cpp | oms1226/dlib-19.13 | 0bb55d112324edb700a42a3e6baca09c03967754 | [
"MIT"
] | null | null | null | dlib/test/matrix4.cpp | oms1226/dlib-19.13 | 0bb55d112324edb700a42a3e6baca09c03967754 | [
"MIT"
] | null | null | null | // Copyright (C) 2010 Davis E. King (davis@dlib.net)
// License: Boost Software License See LICENSE.txt for the full license.
#include <dlib/matrix.h>
#include <sstream>
#include <string>
#include <cstdlib>
#include <ctime>
#include <vector>
#include "../stl_checked.h"
#include "../array.h"
#include ".... | 32.514286 | 127 | 0.445436 | oms1226 |
4416385c2761b7381dc71d4febc132e85afb83a3 | 1,993 | cc | C++ | src/flpr/Stmt_Tree.cc | apthorpe/FLPR | 9620f28ad1cde553eb8ffa7f2685683763530acb | [
"BSD-3-Clause"
] | null | null | null | src/flpr/Stmt_Tree.cc | apthorpe/FLPR | 9620f28ad1cde553eb8ffa7f2685683763530acb | [
"BSD-3-Clause"
] | null | null | null | src/flpr/Stmt_Tree.cc | apthorpe/FLPR | 9620f28ad1cde553eb8ffa7f2685683763530acb | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2019, Triad National Security, LLC. All rights reserved.
This is open source software; you can redistribute it and/or modify it
under the terms of the BSD-3 License. If software is modified to produce
derivative works, such modified software should be clearly marked, so as
not to confus... | 29.308824 | 78 | 0.658304 | apthorpe |
4417d0ef2e9a7297d1318a1d2c05a48759ea1c43 | 27,908 | cpp | C++ | src/openms/source/FORMAT/IdXMLFile.cpp | liangoaix/OpenMS | cccbc5d872320f197091596db275f35b4d0458cd | [
"Zlib",
"Apache-2.0"
] | null | null | null | src/openms/source/FORMAT/IdXMLFile.cpp | liangoaix/OpenMS | cccbc5d872320f197091596db275f35b4d0458cd | [
"Zlib",
"Apache-2.0"
] | null | null | null | src/openms/source/FORMAT/IdXMLFile.cpp | liangoaix/OpenMS | cccbc5d872320f197091596db275f35b4d0458cd | [
"Zlib",
"Apache-2.0"
] | null | null | null | // --------------------------------------------------------------------------
// OpenMS -- Open-Source Mass Spectrometry
// --------------------------------------------------------------------------
// Copyright The OpenMS Team -- Eberhard Karls University Tuebingen,
// ETH Zurich, and Freie Universit... | 35.326582 | 198 | 0.597212 | liangoaix |
441b00f8c3305aaf2d905c922a5aa42be9464bb5 | 6,510 | cpp | C++ | src/utils.cpp | imikejackson/bingocpp | 6ba00a490c8cb46edebfd78f56b1604a76d668e9 | [
"Apache-2.0"
] | 13 | 2019-03-14T09:54:02.000Z | 2021-09-26T14:01:30.000Z | src/utils.cpp | imikejackson/bingocpp | 6ba00a490c8cb46edebfd78f56b1604a76d668e9 | [
"Apache-2.0"
] | 35 | 2019-08-29T19:12:05.000Z | 2021-07-15T22:17:53.000Z | src/utils.cpp | imikejackson/bingocpp | 6ba00a490c8cb46edebfd78f56b1604a76d668e9 | [
"Apache-2.0"
] | 9 | 2018-10-18T02:43:03.000Z | 2021-09-02T22:08:39.000Z | /*!
* \file utils.cc
*
* \author Ethan Adams
* \date
*
* This file contains utility functions for doing and testing
* sybolic regression problems in the bingo package
*/
#include <vector>
#include <numeric>
#include "BingoCpp/utils.h"
namespace bingo {
const int kPartialWindowSize = 7;
con... | 34.812834 | 84 | 0.57235 | imikejackson |
441b4b5e949c2f83acb085cd7d0de23fc52b0032 | 4,831 | hpp | C++ | src/xalanc/XSLT/ElemVariable.hpp | ulisesten/xalanc | a722de08e61ce66965c4a828242f7d1250950621 | [
"Apache-2.0"
] | 24 | 2015-07-29T22:49:17.000Z | 2022-03-25T10:14:17.000Z | src/xalanc/XSLT/ElemVariable.hpp | ulisesten/xalanc | a722de08e61ce66965c4a828242f7d1250950621 | [
"Apache-2.0"
] | 14 | 2019-05-10T16:25:50.000Z | 2021-11-24T18:04:47.000Z | src/xalanc/XSLT/ElemVariable.hpp | ulisesten/xalanc | a722de08e61ce66965c4a828242f7d1250950621 | [
"Apache-2.0"
] | 28 | 2015-04-20T15:50:51.000Z | 2022-01-26T14:56:55.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 m... | 27.293785 | 75 | 0.64438 | ulisesten |
441baafe9de38c21838a96f15a14d248a133ce2f | 289 | cc | C++ | atcoder/arc118/a.cc | kamal1316/competitive-programming | 1443fb4bd1c92c2acff64ba2828abb21b067e6e0 | [
"WTFPL"
] | 506 | 2018-08-22T10:30:38.000Z | 2022-03-31T10:01:49.000Z | atcoder/arc118/a.cc | diegordzr/competitive-programming | 1443fb4bd1c92c2acff64ba2828abb21b067e6e0 | [
"WTFPL"
] | 13 | 2019-08-07T18:31:18.000Z | 2020-12-15T21:54:41.000Z | atcoder/arc118/a.cc | diegordzr/competitive-programming | 1443fb4bd1c92c2acff64ba2828abb21b067e6e0 | [
"WTFPL"
] | 234 | 2018-08-06T17:11:41.000Z | 2022-03-26T10:56:42.000Z | // https://atcoder.jp/contests/arc118/tasks/arc118_a
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using vi = vector<ll>;
int main() {
cin.tie(0), ios::sync_with_stdio(0);
ll t, n;
cin >> t >> n;
ll m = (n * 100 - 1) / t + 1;
cout << m + n - 1 << '\n';
}
| 19.266667 | 52 | 0.567474 | kamal1316 |
441ca79e12934443171f1c455f51c3b45f822afc | 33,013 | cpp | C++ | src/solvers/flattening/bv_utils.cpp | mauguignard/cbmc | 70cfdd5d7c62d47269bae2277ff89a9ce66ff0b5 | [
"BSD-4-Clause"
] | null | null | null | src/solvers/flattening/bv_utils.cpp | mauguignard/cbmc | 70cfdd5d7c62d47269bae2277ff89a9ce66ff0b5 | [
"BSD-4-Clause"
] | 2 | 2018-02-14T16:11:37.000Z | 2018-02-23T18:12:27.000Z | src/solvers/flattening/bv_utils.cpp | mauguignard/cbmc | 70cfdd5d7c62d47269bae2277ff89a9ce66ff0b5 | [
"BSD-4-Clause"
] | null | null | null | /*******************************************************************\
Module:
Author: Daniel Kroening, kroening@kroening.com
\*******************************************************************/
#include "bv_utils.h"
#include <cassert>
#include <util/arith_tools.h>
bvt bv_utilst::build_constant(const mp_integer ... | 24.044428 | 80 | 0.635144 | mauguignard |
441ef84eec24ed4bd0a7a825dc092d97482d7940 | 15,080 | hpp | C++ | RZExternal/src/FitSDKRelease_20/fit_three_d_sensor_calibration_mesg.hpp | roznet/tennisstats | 6283326c0a8cadaeff98b45f8aeff1a32429fa06 | [
"MIT"
] | 1 | 2020-08-04T07:29:47.000Z | 2020-08-04T07:29:47.000Z | RZExternal/src/FitSDKRelease_20/fit_three_d_sensor_calibration_mesg.hpp | roznet/tennisstats | 6283326c0a8cadaeff98b45f8aeff1a32429fa06 | [
"MIT"
] | null | null | null | RZExternal/src/FitSDKRelease_20/fit_three_d_sensor_calibration_mesg.hpp | roznet/tennisstats | 6283326c0a8cadaeff98b45f8aeff1a32429fa06 | [
"MIT"
] | 1 | 2019-06-05T08:27:18.000Z | 2019-06-05T08:27:18.000Z | ////////////////////////////////////////////////////////////////////////////////
// The following FIT Protocol software provided may be used with FIT protocol
// devices only and remains the copyrighted property of Garmin Canada Inc.
// The software is being provided on an "as-is" basis and as an accommodation,
// ... | 38.865979 | 148 | 0.455504 | roznet |
441fe1eb48a9368cde796d97fb901abdda65153d | 131 | hxx | C++ | src/Providers/UNIXProviders/StatisticsService/UNIX_StatisticsService_DARWIN.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | 1 | 2020-10-12T09:00:09.000Z | 2020-10-12T09:00:09.000Z | src/Providers/UNIXProviders/StatisticsService/UNIX_StatisticsService_DARWIN.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | src/Providers/UNIXProviders/StatisticsService/UNIX_StatisticsService_DARWIN.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | #ifdef PEGASUS_OS_DARWIN
#ifndef __UNIX_STATISTICSSERVICE_PRIVATE_H
#define __UNIX_STATISTICSSERVICE_PRIVATE_H
#endif
#endif
| 10.916667 | 42 | 0.854962 | brunolauze |
44257a709f843bc41bafe52d1f430e34b1949c6c | 3,097 | cpp | C++ | componentLibraries/devLibraries/SocketComponents/SocketComponents.cpp | mjfwest/hopsan | 77a0a1e69fd9588335b7e932f348972186cbdf6f | [
"Apache-2.0"
] | null | null | null | componentLibraries/devLibraries/SocketComponents/SocketComponents.cpp | mjfwest/hopsan | 77a0a1e69fd9588335b7e932f348972186cbdf6f | [
"Apache-2.0"
] | null | null | null | componentLibraries/devLibraries/SocketComponents/SocketComponents.cpp | mjfwest/hopsan | 77a0a1e69fd9588335b7e932f348972186cbdf6f | [
"Apache-2.0"
] | null | null | null | /*-----------------------------------------------------------------------------
Copyright 2017 Hopsan Group
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.o... | 44.242857 | 115 | 0.7165 | mjfwest |
4427714e79e4d907d2f904bd9bca476c91aa1681 | 2,194 | hpp | C++ | src/vec3.hpp | chrismile/reshade-grabber | 0a24c65d8699106b94ace644748e67cdb1081024 | [
"BSD-3-Clause"
] | null | null | null | src/vec3.hpp | chrismile/reshade-grabber | 0a24c65d8699106b94ace644748e67cdb1081024 | [
"BSD-3-Clause"
] | null | null | null | src/vec3.hpp | chrismile/reshade-grabber | 0a24c65d8699106b94ace644748e67cdb1081024 | [
"BSD-3-Clause"
] | null | null | null | /*
* BSD 2-Clause License
*
* Copyright (c) 2021, Christoph Neuhauser
* 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 ... | 37.186441 | 85 | 0.696901 | chrismile |
44278245c46eed251cd16bc42256d0e38cec4437 | 11,053 | hpp | C++ | include/unifex/detail/concept_macros.hpp | hnakamur/libunifex | 30e04053d90a35f277dc5ab3dc156ac75caa91da | [
"Apache-2.0"
] | null | null | null | include/unifex/detail/concept_macros.hpp | hnakamur/libunifex | 30e04053d90a35f277dc5ab3dc156ac75caa91da | [
"Apache-2.0"
] | null | null | null | include/unifex/detail/concept_macros.hpp | hnakamur/libunifex | 30e04053d90a35f277dc5ab3dc156ac75caa91da | [
"Apache-2.0"
] | 1 | 2021-07-29T13:33:13.000Z | 2021-07-29T13:33:13.000Z | /*
* Copyright 2019-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... | 36.003257 | 108 | 0.722157 | hnakamur |
4427ad39d40e59376a5945a389a38c6d6adad970 | 1,654 | hpp | C++ | include/mainMenu/CharacterSelector.hpp | LeandreBl/cautious-fiesta | 21a08135253f6fea51835d81cce4a9920113fd18 | [
"Apache-2.0"
] | 3 | 2019-10-30T16:22:54.000Z | 2020-12-10T20:23:40.000Z | include/mainMenu/CharacterSelector.hpp | LeandreBl/cautious-fiesta | 21a08135253f6fea51835d81cce4a9920113fd18 | [
"Apache-2.0"
] | 63 | 2019-10-06T12:05:11.000Z | 2019-12-09T16:22:46.000Z | include/mainMenu/CharacterSelector.hpp | LeandreBl/cautious-fiesta | 21a08135253f6fea51835d81cce4a9920113fd18 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <vector>
#include <filesystem>
#include <Vnavbar.hpp>
#include "CharacterCreator.hpp"
namespace cf {
class CharacterSelector : public sfs::GameObject {
public:
CharacterSelector(const std::string &directory, const std::string &filename) noexcept
: _navbar(nullptr)
, _image(nullptr)
... | 24.686567 | 86 | 0.709794 | LeandreBl |
4429aa9c53aa7fe991c3f8ed433f72345f0c99c6 | 40,689 | cc | C++ | test/allocator/test_epoch_zone_heap.cc | LaudateCorpus1/gull | 21dde19295f1f1c65458a27729d9e241ef6e0e57 | [
"MIT"
] | 8 | 2017-01-31T21:15:37.000Z | 2021-05-26T01:10:32.000Z | test/allocator/test_epoch_zone_heap.cc | LaudateCorpus1/gull | 21dde19295f1f1c65458a27729d9e241ef6e0e57 | [
"MIT"
] | 9 | 2020-03-26T13:27:23.000Z | 2022-03-30T17:02:19.000Z | test/allocator/test_epoch_zone_heap.cc | LaudateCorpus1/gull | 21dde19295f1f1c65458a27729d9e241ef6e0e57 | [
"MIT"
] | 7 | 2019-10-11T04:43:22.000Z | 2022-02-18T05:49:53.000Z | /*
* (c) Copyright 2016-2021 Hewlett Packard Enterprise Development Company LP.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the
* GNU Lesser General Public License Version 3, or (at your option)
* later with exceptions inc... | 31.251152 | 90 | 0.602989 | LaudateCorpus1 |
442a57ff64a6f8baded266e3cdc995a8bf515340 | 1,521 | cpp | C++ | masteruser/zoo.cpp | JasonPap/Buffer-Overflows | e8d2a981fb0f09512b85b06f8caf40e865274a94 | [
"MIT"
] | 14 | 2015-03-13T15:55:47.000Z | 2021-06-01T20:08:01.000Z | masteruser/zoo.cpp | JasonPap/Buffer-Overflows | e8d2a981fb0f09512b85b06f8caf40e865274a94 | [
"MIT"
] | 4 | 2015-03-14T16:32:45.000Z | 2015-03-15T18:04:13.000Z | masteruser/zoo.cpp | JasonPap/Buffer-Overflows | e8d2a981fb0f09512b85b06f8caf40e865274a94 | [
"MIT"
] | 4 | 2015-09-14T06:20:25.000Z | 2021-06-16T23:40:17.000Z | #include <iostream>
#include <cstdlib>
#include <cstring>
#include <getopt.h>
#define MAX_BUFFER_SIZE 256
class Animal{
private:
char name[MAX_BUFFER_SIZE];
public:
Animal() { strcpy(name, "Ylvis"); }
void set_name(char *nname) { strcpy(name, nname); }
char *get_name() { return name; }
virtual void speak() ... | 15.680412 | 61 | 0.535174 | JasonPap |
442ab6973bd178895d04eb4c8bad071d6ce5c757 | 3,890 | cpp | C++ | DearPyGui/src/core/AppItems/basic/mvSelectable.cpp | liu-kan/DearPyGui | dbbf03519b4eff6fc3e8fc56e31c27aa29ac7a39 | [
"MIT"
] | null | null | null | DearPyGui/src/core/AppItems/basic/mvSelectable.cpp | liu-kan/DearPyGui | dbbf03519b4eff6fc3e8fc56e31c27aa29ac7a39 | [
"MIT"
] | null | null | null | DearPyGui/src/core/AppItems/basic/mvSelectable.cpp | liu-kan/DearPyGui | dbbf03519b4eff6fc3e8fc56e31c27aa29ac7a39 | [
"MIT"
] | null | null | null | #include <utility>
#include "mvSelectable.h"
#include "mvApp.h"
#include "mvItemRegistry.h"
namespace Marvel {
void mvSelectable::InsertParser(std::map<std::string, mvPythonParser>* parsers)
{
parsers->insert({ "add_selectable", mvPythonParser({
{mvPythonDataType::String, "name"},
{mvPythonDataType::Keyword... | 30.155039 | 135 | 0.70437 | liu-kan |
442b44e77ac38337fa0e6d69bb518d1671499481 | 472 | cpp | C++ | projeto1/src/SyntaxTree.cpp | lucaspetry/lukasiewicz-compiler | 7029cc26f48c20a8479d27579a07a9e88e177bff | [
"MIT"
] | null | null | null | projeto1/src/SyntaxTree.cpp | lucaspetry/lukasiewicz-compiler | 7029cc26f48c20a8479d27579a07a9e88e177bff | [
"MIT"
] | null | null | null | projeto1/src/SyntaxTree.cpp | lucaspetry/lukasiewicz-compiler | 7029cc26f48c20a8479d27579a07a9e88e177bff | [
"MIT"
] | null | null | null | #include "SyntaxTree.h"
SyntaxTree::SyntaxTree() {
}
SyntaxTree::~SyntaxTree() {
}
void SyntaxTree::print() {
for (TreeNode* line: lines) {
std::string toPrint = line->printPreOrder();
if(toPrint.back() == ' ') {
toPrint = toPrint.substr(0, toPrint.length()-1);
}
... | 20.521739 | 60 | 0.559322 | lucaspetry |
442b8734c611d250bdd535cbb037af12fd964656 | 12,534 | cpp | C++ | src/sysGCU/P2DScreen.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 33 | 2021-12-08T11:10:59.000Z | 2022-03-26T19:59:37.000Z | src/sysGCU/P2DScreen.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 6 | 2021-12-22T17:54:31.000Z | 2022-01-07T21:43:18.000Z | src/sysGCU/P2DScreen.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 2 | 2022-01-04T06:00:49.000Z | 2022-01-26T07:27:28.000Z | #include "JSystem/JUT/JUTException.h"
#include "P2DScreen.h"
#include "System.h"
#include "types.h"
/*
Generated from dpostproc
.section .rodata # 0x804732E0 - 0x8049E220
.global lbl_8049A6C0
lbl_8049A6C0:
.4byte 0x50324453
.4byte 0x63726565
.4byte 0x6E2E6370
.4byte 0x... | 25.737166 | 95 | 0.655258 | projectPiki |
442d9a027b4d6a25aebd2c64f082ac438d192a60 | 3,960 | cc | C++ | tutorials/t1.cc | dianpeng/hge-unix | 0cade62a3494f1508cdaaa620714e69ae151e0c1 | [
"Zlib"
] | null | null | null | tutorials/t1.cc | dianpeng/hge-unix | 0cade62a3494f1508cdaaa620714e69ae151e0c1 | [
"Zlib"
] | null | null | null | tutorials/t1.cc | dianpeng/hge-unix | 0cade62a3494f1508cdaaa620714e69ae151e0c1 | [
"Zlib"
] | null | null | null | /*
** Haaf's Game Engine 1.8
** Copyright (C) 2003-2007, Relish Games
** hge.relishgames.com
**
** hge_tut05 - Using distortion mesh
*/
// Copy the files "particles.png", "menu.wav",
// "font1.fnt", "font1.png" and "trail.psi" from
// the folder "precompiled" to the folder with
// executable file. Also copy hge.dll a... | 22.372881 | 116 | 0.658586 | dianpeng |
442e79aacca64364cf997543eca13ef35318ad63 | 4,525 | cpp | C++ | homework/Kulagin/07/main.cpp | mtrempoltsev/msu_cpp_autumn_2017 | 0e87491dc117670b99d2ca2f7e1c5efbc425ae1c | [
"MIT"
] | 10 | 2017-09-21T15:17:33.000Z | 2021-01-11T13:11:55.000Z | homework/Kulagin/07/main.cpp | mtrempoltsev/msu_cpp_autumn_2017 | 0e87491dc117670b99d2ca2f7e1c5efbc425ae1c | [
"MIT"
] | null | null | null | homework/Kulagin/07/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 <cmath>
#include <cstring>
#include "src/calc.cpp"
using namespace std;
const double precision = 1e-15;
template<typename T>
void is(std::string text, T value, bool positive = true) {
const char* text_ptr = text.c_str();
Calculator<T> calc;
try {
auto result = calc.eval((char*)t... | 23.086735 | 86 | 0.417901 | mtrempoltsev |
442f94ea5083e8f9b8e8d2d90652d22d4b0240d5 | 8,270 | cpp | C++ | process.cpp | mastmees/reflow_oven | 87cd23341e7fd70a18ddf194d513ae281879e9f3 | [
"MIT"
] | 2 | 2019-02-22T18:41:05.000Z | 2019-05-17T14:45:56.000Z | process.cpp | mastmees/reflow_oven | 87cd23341e7fd70a18ddf194d513ae281879e9f3 | [
"MIT"
] | null | null | null | process.cpp | mastmees/reflow_oven | 87cd23341e7fd70a18ddf194d513ae281879e9f3 | [
"MIT"
] | null | null | null | /* The MIT License (MIT)
Copyright (c) 2017 Madis Kaal <mast@nomad.ee>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to ... | 26.850649 | 82 | 0.586699 | mastmees |
443291baa2a8a1f8c4d2c2d3e4a7761b7f1eae63 | 2,922 | hpp | C++ | Programming Guide/Headers/Siv3D/GUITextField.hpp | Reputeless/Siv3D-Reference | d58e92885241d11612007fb9187ce0289a7ee9cb | [
"MIT"
] | 38 | 2016-01-14T13:51:13.000Z | 2021-12-29T01:49:30.000Z | Programming Guide/Headers/Siv3D/GUITextField.hpp | Reputeless/Siv3D-Reference | d58e92885241d11612007fb9187ce0289a7ee9cb | [
"MIT"
] | null | null | null | Programming Guide/Headers/Siv3D/GUITextField.hpp | Reputeless/Siv3D-Reference | d58e92885241d11612007fb9187ce0289a7ee9cb | [
"MIT"
] | 16 | 2016-01-15T11:07:51.000Z | 2021-12-29T01:49:37.000Z | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (C) 2008-2016 Ryo Suzuki
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# pragma once
# include "Fwd.hpp"
# include "IWidget.hpp"
# include "WidgetStyle.hpp"
name... | 19.877551 | 136 | 0.689254 | Reputeless |
443388b6babb77ef756c43f749b560bb5f1b63f6 | 12,598 | cpp | C++ | PROX/3RDPARTY/BOOST_BINDINGS/boost_bindings/libs/numeric/bindings/lapack/test/ublas_gelss.cpp | diku-dk/PROX | c6be72cc253ff75589a1cac28e4e91e788376900 | [
"MIT"
] | null | null | null | PROX/3RDPARTY/BOOST_BINDINGS/boost_bindings/libs/numeric/bindings/lapack/test/ublas_gelss.cpp | diku-dk/PROX | c6be72cc253ff75589a1cac28e4e91e788376900 | [
"MIT"
] | null | null | null | PROX/3RDPARTY/BOOST_BINDINGS/boost_bindings/libs/numeric/bindings/lapack/test/ublas_gelss.cpp | diku-dk/PROX | c6be72cc253ff75589a1cac28e4e91e788376900 | [
"MIT"
] | null | null | null | //
// Copyright Jesse Manning 2007
//
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
#include "convenience.h"
#include <boost/numeric/bindings/lapack/gelss.hpp>
// set to 1 to write test output to file, oth... | 28.631818 | 94 | 0.698285 | diku-dk |
4433de13cab58b0713671dab27b56af01cbcca59 | 3,282 | cpp | C++ | Crossy_Roads/WaterParticles.cpp | Daryan7/Crossy_Roads | af816aa73ba29241fb1db4722940e42be8a76102 | [
"MIT"
] | 1 | 2018-04-18T12:54:33.000Z | 2018-04-18T12:54:33.000Z | Crossy_Roads/WaterParticles.cpp | Daryan7/Crossy_Roads | af816aa73ba29241fb1db4722940e42be8a76102 | [
"MIT"
] | null | null | null | Crossy_Roads/WaterParticles.cpp | Daryan7/Crossy_Roads | af816aa73ba29241fb1db4722940e42be8a76102 | [
"MIT"
] | null | null | null | #include "WaterParticles.h"
#include "Utils.h"
#include "Object.h"
using namespace glm;
inline void compileShader(ShaderProgram& program, const string& fileName) {
Shader vShader, fShader;
string path = "shaders/" + fileName;
vShader.initFromFile(VERTEX_SHADER, path + ".vert");
if (!vShader.isCompiled()) {
cout ... | 26.467742 | 86 | 0.661792 | Daryan7 |
443473d3a57398771341de47c25e2c5042956da2 | 6,187 | cpp | C++ | src/geometry/FilePLY.cpp | mgradysaunders/precept | 966eb19d3c8b713e11be0885cabda632cefe9878 | [
"BSD-2-Clause"
] | null | null | null | src/geometry/FilePLY.cpp | mgradysaunders/precept | 966eb19d3c8b713e11be0885cabda632cefe9878 | [
"BSD-2-Clause"
] | null | null | null | src/geometry/FilePLY.cpp | mgradysaunders/precept | 966eb19d3c8b713e11be0885cabda632cefe9878 | [
"BSD-2-Clause"
] | null | null | null | #include <pre/geometry/FilePLY>
#include <pre/string>
#include "rply.h"
namespace pre {
static void error_cb(p_ply, const char* message) {
throw std::runtime_error(message);
}
static int vertex2_cb(p_ply_argument arg) {
void* pointer = nullptr;
long index = 0;
ply_get_argument_user_data(arg, &pointe... | 38.91195 | 78 | 0.604008 | mgradysaunders |
44398e5574da7e2691795d3d9841388a54cbf729 | 5,694 | cpp | C++ | WebLayoutCore/Source/WebCore/platform/win/SystemInfo.cpp | gubaojian/trylearn | 74dd5c6c977f8d867d6aa360b84bc98cb82f480c | [
"MIT"
] | 1 | 2020-05-25T16:06:49.000Z | 2020-05-25T16:06:49.000Z | WebLayoutCore/Source/WebCore/platform/win/SystemInfo.cpp | gubaojian/trylearn | 74dd5c6c977f8d867d6aa360b84bc98cb82f480c | [
"MIT"
] | null | null | null | WebLayoutCore/Source/WebCore/platform/win/SystemInfo.cpp | gubaojian/trylearn | 74dd5c6c977f8d867d6aa360b84bc98cb82f480c | [
"MIT"
] | 1 | 2018-07-10T10:53:18.000Z | 2018-07-10T10:53:18.000Z | /*
* Copyright (C) 2009 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 conditions a... | 34.095808 | 151 | 0.659993 | gubaojian |
4439fbfbae24e450c574bb98996663db71c45fcd | 1,568 | cpp | C++ | src/main.cpp | waneon/magfy | 2ebb905cf1730a5e6f66ad9164248e303bd051c4 | [
"MIT"
] | 1 | 2022-02-27T17:41:18.000Z | 2022-02-27T17:41:18.000Z | src/main.cpp | waneon/magfy | 2ebb905cf1730a5e6f66ad9164248e303bd051c4 | [
"MIT"
] | null | null | null | src/main.cpp | waneon/magfy | 2ebb905cf1730a5e6f66ad9164248e303bd051c4 | [
"MIT"
] | null | null | null | #include <fstream>
#include <spdlog/spdlog.h>
#include <yaml-cpp/exceptions.h>
#include <yaml-cpp/yaml.h>
#if defined(MAGFY_WINDOWS)
#include <spdlog/sinks/basic_file_sink.h>
#include <windows.h>
#else
#include <spdlog/sinks/stdout_color_sinks.h>
#endif
#include "Config.h"
#include "core.h"
// global logger object
s... | 24.888889 | 80 | 0.654337 | waneon |
443c8776f2e1c50afd1b5db3494cc0b27f391644 | 3,381 | cpp | C++ | src/pos_normalizer.cpp | andre-nguyen/an_ros_tools | ddfd99405821065cc811c8698c3bfb84880a8c78 | [
"MIT"
] | null | null | null | src/pos_normalizer.cpp | andre-nguyen/an_ros_tools | ddfd99405821065cc811c8698c3bfb84880a8c78 | [
"MIT"
] | null | null | null | src/pos_normalizer.cpp | andre-nguyen/an_ros_tools | ddfd99405821065cc811c8698c3bfb84880a8c78 | [
"MIT"
] | null | null | null | #include <ros/ros.h>
#include <message_filters/subscriber.h>
#include <message_filters/synchronizer.h>
#include <message_filters/sync_policies/approximate_time.h>
#include <dji_sdk/GlobalPosition.h>
#include <dji_sdk/LocalPosition.h>
#include <nav_msgs/Odometry.h>
#include <eigen3/Eigen/Dense>
#include "transform.h"
... | 40.25 | 79 | 0.699201 | andre-nguyen |
443d71fbc939af001e7c7c70bdc863a830b41e26 | 8,085 | cpp | C++ | src/common/network_manager.cpp | blackccpie/neurocl | cfbb1978ba92d5085796330846d997944f604c93 | [
"MIT"
] | 2 | 2016-01-01T22:19:04.000Z | 2018-12-12T19:06:24.000Z | src/common/network_manager.cpp | blackccpie/neurocl | cfbb1978ba92d5085796330846d997944f604c93 | [
"MIT"
] | null | null | null | src/common/network_manager.cpp | blackccpie/neurocl | cfbb1978ba92d5085796330846d997944f604c93 | [
"MIT"
] | 1 | 2020-10-19T08:17:54.000Z | 2020-10-19T08:17:54.000Z | /*
The MIT License
Copyright (c) 2015-2017 Albert Murienne
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge... | 27.688356 | 137 | 0.660977 | blackccpie |
443df983b7b87d5189021884753eae575099751f | 1,080 | cpp | C++ | src/timereference.cpp | hrxcodes/cbftp | bf2784007dcc4cc42775a2d40157c51b80383f81 | [
"MIT"
] | 8 | 2019-04-30T00:37:00.000Z | 2022-02-03T13:35:31.000Z | src/timereference.cpp | Xtravaganz/cbftp | 31a3465e2cd539f6cf35a5d9a0bb9c5c2f639cd5 | [
"MIT"
] | 2 | 2019-11-19T12:46:13.000Z | 2019-12-20T22:13:57.000Z | src/timereference.cpp | Xtravaganz/cbftp | 31a3465e2cd539f6cf35a5d9a0bb9c5c2f639cd5 | [
"MIT"
] | 9 | 2020-01-15T02:38:36.000Z | 2022-02-15T20:05:20.000Z | #include "timereference.h"
#include <ctime>
#include "core/tickpoke.h"
#include "globalcontext.h"
#define INTERVAL 50
static int currentyear = 0;
static int currentmonth = 0;
static int currentday = 0;
TimeReference::TimeReference() {
global->getTickPoke()->startPoke(this, "TimeReference", INTERVAL, 0);
}
void ... | 20 | 87 | 0.730556 | hrxcodes |
443e0803e8359c4d4a766b9033599397bebf7154 | 155 | cpp | C++ | regression/esbmc-cpp/try_catch/try-catch_pointer_01/main.cpp | shmarovfedor/esbmc | 3226a3d68b009d44b9535a993ac0f25e1a1fbedd | [
"BSD-3-Clause"
] | 143 | 2015-06-22T12:30:01.000Z | 2022-03-21T08:41:17.000Z | regression/esbmc-cpp/try_catch/try-catch_pointer_01/main.cpp | shmarovfedor/esbmc | 3226a3d68b009d44b9535a993ac0f25e1a1fbedd | [
"BSD-3-Clause"
] | 542 | 2017-06-02T13:46:26.000Z | 2022-03-31T16:35:17.000Z | regression/esbmc-cpp/try_catch/try-catch_pointer_01/main.cpp | shmarovfedor/esbmc | 3226a3d68b009d44b9535a993ac0f25e1a1fbedd | [
"BSD-3-Clause"
] | 81 | 2015-10-21T22:21:59.000Z | 2022-03-24T14:07:55.000Z | #include<cassert>
int main()
{
try {
int x = 5;
int *py = &x;
throw py;
}
catch(int*) { }
catch(void*) { assert(0); }
return 0;
}
| 10.333333 | 29 | 0.470968 | shmarovfedor |
4441450f2bde5590471e665b70f77992f4e9d033 | 2,192 | cpp | C++ | Linux/Ubuntu/64bit/AVAPI/AvapiExamples/MIDPOINT_Example.cpp | AvapiDotNet/AvapiCpp | 2157ccbe750cac077098a6f1aa401d80fc943ff5 | [
"MIT"
] | 15 | 2018-01-31T16:58:36.000Z | 2021-08-19T21:37:08.000Z | Linux/Ubuntu/64bit/AVAPI/AvapiExamples/MIDPOINT_Example.cpp | AvapiDotNet/AvapiCpp | 2157ccbe750cac077098a6f1aa401d80fc943ff5 | [
"MIT"
] | null | null | null | Linux/Ubuntu/64bit/AVAPI/AvapiExamples/MIDPOINT_Example.cpp | AvapiDotNet/AvapiCpp | 2157ccbe750cac077098a6f1aa401d80fc943ff5 | [
"MIT"
] | 4 | 2018-01-31T17:06:26.000Z | 2020-05-03T20:59:27.000Z | #include <string>
#include <iostream>
#include <sstream>
#include "Avapi/AvapiConnection.hpp"
#include "Avapi/TECHNICAL_INDICATOR/MIDPOINT.hpp"
using namespace std;
using namespace Avapi;
int main()
{
string lastHttpRequest = "";
AvapiConnection* avapi_connection;
try
{
avapi_connection =... | 31.768116 | 80 | 0.542883 | AvapiDotNet |
44420bebdb449f361fb5c6a31d16e35145661e35 | 227 | hpp | C++ | tests/zcc/decl.C99/Error_class_forward_def_const_volatile9.hpp | zaimoni/Z.C- | 7ca97ec0af14d092c87a25e07d7ed486c7912266 | [
"BSL-1.0"
] | null | null | null | tests/zcc/decl.C99/Error_class_forward_def_const_volatile9.hpp | zaimoni/Z.C- | 7ca97ec0af14d092c87a25e07d7ed486c7912266 | [
"BSL-1.0"
] | 4 | 2019-12-07T08:08:29.000Z | 2021-01-22T00:19:10.000Z | tests/zcc/decl.C99/Error_class_forward_def_const_volatile9.hpp | zaimoni/Z.C- | 7ca97ec0af14d092c87a25e07d7ed486c7912266 | [
"BSL-1.0"
] | null | null | null | // decl.C99\Error_class_forward_def_const_volatile9.hpp
// using singly defined class
// (C)2010 Kenneth Boyd, license: MIT.txt
class good_test;
const class good_test volatile;
class good_test {
int x_factor;
};
| 18.916667 | 56 | 0.735683 | zaimoni |
4442b1f6b5e4f7b158a81f02dc74691e453564e2 | 4,138 | cpp | C++ | android/library/maply/src/main/cpp/MapboxVectorTileParser_jni.cpp | freebird-airlines/WhirlyGlobe | 3e1dd7cf27654558caeb1c5a2c8616bc1a3dbbb4 | [
"Apache-2.0"
] | 2 | 2019-05-16T18:52:21.000Z | 2020-10-10T14:08:53.000Z | android/library/maply/src/main/cpp/MapboxVectorTileParser_jni.cpp | freebird-airlines/WhirlyGlobe | 3e1dd7cf27654558caeb1c5a2c8616bc1a3dbbb4 | [
"Apache-2.0"
] | null | null | null | android/library/maply/src/main/cpp/MapboxVectorTileParser_jni.cpp | freebird-airlines/WhirlyGlobe | 3e1dd7cf27654558caeb1c5a2c8616bc1a3dbbb4 | [
"Apache-2.0"
] | 1 | 2020-10-22T12:09:24.000Z | 2020-10-22T12:09:24.000Z | /*
* MapboxVectorTileParser_jni.cpp
* WhirlyGlobeLib
*
* Created by Steve Gifford on 5/25/16.
* Copyright 2011-2016 mousebird consulting
*
* 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 L... | 33.104 | 112 | 0.666989 | freebird-airlines |
4444314756842c9712972696314dc2510a2f8c1c | 1,050 | cpp | C++ | src/test/ex.cpp | jar-ben/z3 | 7baa4f88b0cb4458461596d147e1f71853d77126 | [
"MIT"
] | 7,746 | 2015-03-26T18:59:33.000Z | 2022-03-31T15:34:48.000Z | src/test/ex.cpp | jar-ben/z3 | 7baa4f88b0cb4458461596d147e1f71853d77126 | [
"MIT"
] | 5,162 | 2015-03-27T01:12:48.000Z | 2022-03-31T14:56:16.000Z | src/test/ex.cpp | jar-ben/z3 | 7baa4f88b0cb4458461596d147e1f71853d77126 | [
"MIT"
] | 1,529 | 2015-03-26T18:45:30.000Z | 2022-03-31T15:35:16.000Z | /*++
Copyright (c) 2006 Microsoft Corporation
Module Name:
ex.cpp
Abstract:
<abstract>
Author:
Leonardo de Moura (leonardo) 2011-04-28
Revision History:
--*/
#include<iostream>
#include "util/z3_exception.h"
class ex {
public:
virtual ~ex() {}
virtual char const * msg() const = 0;
};
class... | 15.441176 | 88 | 0.561905 | jar-ben |
4444a57baf0d204dd179fa6c987b85c9d5c67f9a | 1,038 | cpp | C++ | CodeForces/879/C - Short Program.cpp | QAQrz/ACM-Code | 7f7b6fd315e7d84ed606dd48d666da07fc4d0ae7 | [
"Unlicense"
] | 2 | 2018-02-24T06:45:56.000Z | 2018-05-29T04:47:39.000Z | CodeForces/879/C - Short Program.cpp | QAQrz/ACM-Code | 7f7b6fd315e7d84ed606dd48d666da07fc4d0ae7 | [
"Unlicense"
] | null | null | null | CodeForces/879/C - Short Program.cpp | QAQrz/ACM-Code | 7f7b6fd315e7d84ed606dd48d666da07fc4d0ae7 | [
"Unlicense"
] | 2 | 2018-06-28T09:53:27.000Z | 2022-03-23T13:29:57.000Z | #include <bits/stdc++.h>
using namespace std;
#pragma comment(linker,"/stack:1024000000,1024000000")
#define db(x) cout<<(x)<<endl
#define pf(x) push_front(x)
#define pb(x) push_back(x)
#define mp(x,y) make_pair(x,y)
#define ms(x,y) memset(x,y,sizeof x)
typedef long long LL;
const double pi=acos(-1),eps=1e-9;
const LL ... | 22.085106 | 54 | 0.528902 | QAQrz |
44456312ddfb23804aa0335935d2e5c606a39d3d | 4,183 | hpp | C++ | include/RAJA/policy/loop/sort.hpp | stu314159/RAJA | 773be9829a92062db989a6e976ed6d95e4d4bb22 | [
"BSD-3-Clause"
] | null | null | null | include/RAJA/policy/loop/sort.hpp | stu314159/RAJA | 773be9829a92062db989a6e976ed6d95e4d4bb22 | [
"BSD-3-Clause"
] | null | null | null | include/RAJA/policy/loop/sort.hpp | stu314159/RAJA | 773be9829a92062db989a6e976ed6d95e4d4bb22 | [
"BSD-3-Clause"
] | null | null | null | /*!
******************************************************************************
*
* \file
*
* \brief Header file providing RAJA sort declarations.
*
******************************************************************************
*/
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
// ... | 25.506098 | 84 | 0.648339 | stu314159 |
4445f4fe81631651dbad0e6e04930d0403ac9f9a | 4,061 | cpp | C++ | LibFFmpeg/demo/FFplayer2/player.cpp | sim9108/SDKS | 2823124fa0a22f8a77d131e7a2fb7f4aba59129c | [
"MIT"
] | 2 | 2015-03-23T01:08:49.000Z | 2015-03-23T02:28:17.000Z | LibFFmpeg/demo/FFplayer2/player.cpp | sim9108/SDKS | 2823124fa0a22f8a77d131e7a2fb7f4aba59129c | [
"MIT"
] | null | null | null | LibFFmpeg/demo/FFplayer2/player.cpp | sim9108/SDKS | 2823124fa0a22f8a77d131e7a2fb7f4aba59129c | [
"MIT"
] | null | null | null | #include "player.h"
#include <chrono>
#include <iostream>
#include <algorithm>
extern "C" {
#include <libavutil/time.h>
}
using std::string;
using std::unique_ptr;
using std::function;
using std::thread;
using std::chrono::milliseconds;
using std::this_thread::sleep_for;
using std::exception;
using std::cerr;
usi... | 22.814607 | 75 | 0.642206 | sim9108 |
4446ef31fa0e31a790a26a26e115c2a9c225ef3c | 2,730 | cpp | C++ | World/PolygonBackground.cpp | jess22664/x3ogre | 9de430859d877407ae0308908390c9fa004b0e84 | [
"MIT"
] | 1 | 2021-09-18T12:50:35.000Z | 2021-09-18T12:50:35.000Z | World/PolygonBackground.cpp | jess22664/x3ogre | 9de430859d877407ae0308908390c9fa004b0e84 | [
"MIT"
] | null | null | null | World/PolygonBackground.cpp | jess22664/x3ogre | 9de430859d877407ae0308908390c9fa004b0e84 | [
"MIT"
] | null | null | null | /*
* ImageBackground.cpp
*
* Created on: 08.09.2014
* Author: baudenri
*/
#include "PolygonBackground.h"
#include <World/Scene.h>
#include <OgreMaterialManager.h>
#include <OgrePass.h>
#include <OgreRenderQueue.h>
#include <OgreAxisAlignedBox.h>
#include <OgreSceneNode.h>
#include <OgreTechnique.h>
#includ... | 28.14433 | 127 | 0.734432 | jess22664 |
444787f8524a6cd27193bf0c6eff4521bd785e45 | 4,453 | cpp | C++ | openstudiocore/src/utilities/units/test/BTUUnit_GTest.cpp | ORNL-BTRIC/OpenStudio | 878f94bebf6f025445d1373e8b2304ececac16d8 | [
"blessing"
] | null | null | null | openstudiocore/src/utilities/units/test/BTUUnit_GTest.cpp | ORNL-BTRIC/OpenStudio | 878f94bebf6f025445d1373e8b2304ececac16d8 | [
"blessing"
] | null | null | null | openstudiocore/src/utilities/units/test/BTUUnit_GTest.cpp | ORNL-BTRIC/OpenStudio | 878f94bebf6f025445d1373e8b2304ececac16d8 | [
"blessing"
] | null | null | null | /**********************************************************************
* Copyright (c) 2008-2014, Alliance for Sustainable Energy.
* All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published ... | 30.710345 | 82 | 0.665619 | ORNL-BTRIC |
44483bc7c56dcad829971fef6fc2e2e9028614aa | 209 | cpp | C++ | id1068_Sum/main.cpp | adogadaev/timus | eeadeb3ac60b7259988fe579422d386b95c4ca9d | [
"Apache-2.0"
] | null | null | null | id1068_Sum/main.cpp | adogadaev/timus | eeadeb3ac60b7259988fe579422d386b95c4ca9d | [
"Apache-2.0"
] | null | null | null | id1068_Sum/main.cpp | adogadaev/timus | eeadeb3ac60b7259988fe579422d386b95c4ca9d | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <cmath>
using namespace std;
int main() {
int nNum;
int nSize;
cin >> nNum;
nSize = (nNum <= 0) ? (abs(nNum) + 2) : nNum;
cout << nSize*(1+nNum)/2 << endl;
return 0;
} | 12.294118 | 46 | 0.578947 | adogadaev |
4448d909d1fc488f10a97031e0c10101927d739d | 940 | cc | C++ | quiche/spdy/core/spdy_pinnable_buffer_piece.cc | ktprime/quiche-1 | abf85ce22e1409a870b1bf470cb5a68cbdb28e50 | [
"BSD-3-Clause"
] | null | null | null | quiche/spdy/core/spdy_pinnable_buffer_piece.cc | ktprime/quiche-1 | abf85ce22e1409a870b1bf470cb5a68cbdb28e50 | [
"BSD-3-Clause"
] | null | null | null | quiche/spdy/core/spdy_pinnable_buffer_piece.cc | ktprime/quiche-1 | abf85ce22e1409a870b1bf470cb5a68cbdb28e50 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2014 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 "quiche/spdy/core/spdy_pinnable_buffer_piece.h"
#include <new>
namespace spdy {
SpdyPinnableBufferPiece::SpdyPinnableBufferPiece()
: buffe... | 25.405405 | 73 | 0.718085 | ktprime |
444d04dea76bdfbaccccc24835f7a78694f004b3 | 158 | hpp | C++ | include/mockitopp/mockitopp.hpp | tpounds/mockitopp | 775b151fa746c81c8762faea2de3429d6f3f46af | [
"MIT"
] | 82 | 2015-03-19T06:28:00.000Z | 2021-08-20T17:40:11.000Z | include/mockitopp/mockitopp.hpp | tpounds/mockitopp | 775b151fa746c81c8762faea2de3429d6f3f46af | [
"MIT"
] | 6 | 2015-03-19T08:46:46.000Z | 2019-06-04T14:24:52.000Z | include/mockitopp/mockitopp.hpp | tpounds/mockitopp | 775b151fa746c81c8762faea2de3429d6f3f46af | [
"MIT"
] | 12 | 2015-03-19T08:15:32.000Z | 2021-02-04T11:53:16.000Z | #ifndef __MOCKITOPP_HPP__
#define __MOCKITOPP_HPP__
#include "exceptions.hpp"
#include "matchers.hpp"
#include "mock_object.hpp"
#endif //__MOCKITOPP_HPP__
| 17.555556 | 26 | 0.803797 | tpounds |
444e6554949ac26cb677efaea689b392b5c1b935 | 446 | cpp | C++ | src/system/system_details_to_json_converter.cpp | connected-digital-energy-meter/connected-digital-energy-meter | e3ce164a10a261efc1d34486abeb0e047f11f31b | [
"MIT"
] | 1 | 2021-06-06T21:25:31.000Z | 2021-06-06T21:25:31.000Z | src/system/system_details_to_json_converter.cpp | connected-digital-energy-meter/connected-digital-energy-meter | e3ce164a10a261efc1d34486abeb0e047f11f31b | [
"MIT"
] | 10 | 2021-06-04T07:56:41.000Z | 2021-12-20T18:12:06.000Z | src/system/system_details_to_json_converter.cpp | connected-digital-energy-meter/connected-digital-energy-meter | e3ce164a10a261efc1d34486abeb0e047f11f31b | [
"MIT"
] | null | null | null | #include "system_details_to_json_converter.h"
#include <ArduinoJson.h>
namespace CDEM {
String SystemDetailsToJsonConverter::to_json_string(String ip, String mac, String libVersion, String pcbVersion) {
StaticJsonDocument<128> json;
json["ip"] = ip;
json["mac"] = mac;
json["lib-version"] = libVersio... | 23.473684 | 116 | 0.688341 | connected-digital-energy-meter |
44505eaf01b941f116f412cecad8c862c80ebec4 | 20,448 | cpp | C++ | routing/routing_tests/index_graph_test.cpp | romanblanco/omim | 62321c2c51b6cbb677278a6a68d15c73ae3f086e | [
"Apache-2.0"
] | null | null | null | routing/routing_tests/index_graph_test.cpp | romanblanco/omim | 62321c2c51b6cbb677278a6a68d15c73ae3f086e | [
"Apache-2.0"
] | null | null | null | routing/routing_tests/index_graph_test.cpp | romanblanco/omim | 62321c2c51b6cbb677278a6a68d15c73ae3f086e | [
"Apache-2.0"
] | null | null | null | #include "testing/testing.hpp"
#include "routing/base/astar_algorithm.hpp"
#include "routing/edge_estimator.hpp"
#include "routing/index_graph.hpp"
#include "routing/index_graph_serialization.hpp"
#include "routing/index_graph_starter.hpp"
#include "routing/vehicle_mask.hpp"
#include "routing/routing_tests/index_grap... | 36.319716 | 100 | 0.574237 | romanblanco |
44534609931fd2e6c6add7f200def448e3a19f8b | 11,564 | cpp | C++ | projects/game-invader/gamestate/gameState.cpp | A-Ribeiro/OpenGLStarter | 0552513f24ce3820b4957b1e453e615a9b77c8ff | [
"MIT"
] | 15 | 2019-01-13T16:07:27.000Z | 2021-09-27T15:18:58.000Z | projects/game-invader/gamestate/gameState.cpp | A-Ribeiro/OpenGLStarter | 0552513f24ce3820b4957b1e453e615a9b77c8ff | [
"MIT"
] | 1 | 2019-03-14T00:36:35.000Z | 2020-12-29T11:48:09.000Z | projects/game-invader/gamestate/gameState.cpp | A-Ribeiro/OpenGLStarter | 0552513f24ce3820b4957b1e453e615a9b77c8ff | [
"MIT"
] | 3 | 2020-03-02T21:28:56.000Z | 2021-09-27T15:18:50.000Z |
#include "gameState.h"
#include <stdio.h>
/*
o gameState de cada fase possui
um cen�rio,
um conjunto de alienigenas(inimigos),
um conjunto de objetos (stuff) que podem ser lan�ados pelos inimigos ou pela nave principal
a nave principal
** ao passar a token init_cg
... | 31.856749 | 98 | 0.473971 | A-Ribeiro |
44537f53f1daf89001b5c70fa6f6854aeef40f10 | 1,479 | hpp | C++ | include/lexy/input/range_input.hpp | IohannRabeson/lexy | 881beb56f030e8f4761514e70cb50d809ac4ad17 | [
"BSL-1.0"
] | null | null | null | include/lexy/input/range_input.hpp | IohannRabeson/lexy | 881beb56f030e8f4761514e70cb50d809ac4ad17 | [
"BSL-1.0"
] | null | null | null | include/lexy/input/range_input.hpp | IohannRabeson/lexy | 881beb56f030e8f4761514e70cb50d809ac4ad17 | [
"BSL-1.0"
] | null | null | null | // Copyright (C) 2020-2021 Jonathan Müller <jonathanmueller.dev@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level directory of this distribution.
#ifndef LEXY_INPUT_RANGE_INPUT_HPP_INCLUDED
#define LEXY_INPUT_RANGE_INPUT_HPP_INCLUDED
#include <lexy/error.hpp>
#inclu... | 25.947368 | 94 | 0.698445 | IohannRabeson |
4453e435c0123f74a599736a86a840844104da98 | 10,278 | hpp | C++ | libuavcan/include/uavcan/util/templates.hpp | hsteinhaus/uavcan | e2e358bb069be4d52442e590fb14a6ceb1b9d65f | [
"MIT"
] | null | null | null | libuavcan/include/uavcan/util/templates.hpp | hsteinhaus/uavcan | e2e358bb069be4d52442e590fb14a6ceb1b9d65f | [
"MIT"
] | null | null | null | libuavcan/include/uavcan/util/templates.hpp | hsteinhaus/uavcan | e2e358bb069be4d52442e590fb14a6ceb1b9d65f | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com>
*/
#pragma once
#include <climits>
#include <cstddef>
#include <cmath>
#include <uavcan/build_config.hpp>
#ifndef UAVCAN_CPP_VERSION
# error UAVCAN_CPP_VERSION
#endif
#if UAVCAN_CPP_VERSION < UAVCAN_CPP11
# include <float.h> // cfloat may not b... | 24.413302 | 117 | 0.659759 | hsteinhaus |
445537ca757d1ff5e980bf6addabe0fe56aa9cfe | 531 | hpp | C++ | include/RED4ext/Scripting/Natives/Generated/ink/anim/TextReplaceInterpolator.hpp | WSSDude420/RED4ext.SDK | eaca8bdf7b92c48422b18431ed8cd0876f53bdb3 | [
"MIT"
] | null | null | null | include/RED4ext/Scripting/Natives/Generated/ink/anim/TextReplaceInterpolator.hpp | WSSDude420/RED4ext.SDK | eaca8bdf7b92c48422b18431ed8cd0876f53bdb3 | [
"MIT"
] | null | null | null | include/RED4ext/Scripting/Natives/Generated/ink/anim/TextReplaceInterpolator.hpp | WSSDude420/RED4ext.SDK | eaca8bdf7b92c48422b18431ed8cd0876f53bdb3 | [
"MIT"
] | null | null | null | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/Scripting/Natives/Generated/ink/anim/TextInterpolator.hpp>
namespace RED4ext
{
namespace ink::anim {
struct TextReplaceInterpolator : ink::anim::TextInterpolator
{
static con... | 25.285714 | 76 | 0.772128 | WSSDude420 |
4456531ac161c56394b87b25ee4fb50db2206350 | 500 | cpp | C++ | C++/Win32/SingletonProcess2.cpp | mzlogin/snippets | 5302142d1b6591a513b7cbcd0400f0d3caeac0d1 | [
"MIT"
] | 4 | 2016-06-22T05:58:18.000Z | 2021-05-23T23:11:18.000Z | C++/Win32/SingletonProcess2.cpp | mzlogin/snippets | 5302142d1b6591a513b7cbcd0400f0d3caeac0d1 | [
"MIT"
] | 1 | 2017-11-30T02:01:36.000Z | 2017-11-30T02:01:36.000Z | C++/Win32/SingletonProcess2.cpp | mzlogin/snippets | 5302142d1b6591a513b7cbcd0400f0d3caeac0d1 | [
"MIT"
] | null | null | null | #include <Windows.h>
int main(int argc, char *argv[])
{
HANDLE hMutex = NULL;
do
{
hMutex = CreateMutex(NULL, FALSE, "Global\\73E21C80-1960-472F-BF0B-3EE7CC7AF17E");
DWORD dwError = GetLastError();
if (ERROR_ALREADY_EXISTS == dwError || ERROR_ACCESS_DENIED == dwError)
{
... | 16.666667 | 90 | 0.528 | mzlogin |
445733050f0f57c71a36e3c270da4a923d6d527a | 470 | cpp | C++ | src/tests/util/trace.cpp | silky/lean | df8b88dca2f8da1a422cb618cd476ef5be730546 | [
"Apache-2.0"
] | 1 | 2019-06-27T11:33:01.000Z | 2019-06-27T11:33:01.000Z | src/tests/util/trace.cpp | silky/lean | df8b88dca2f8da1a422cb618cd476ef5be730546 | [
"Apache-2.0"
] | null | null | null | src/tests/util/trace.cpp | silky/lean | df8b88dca2f8da1a422cb618cd476ef5be730546 | [
"Apache-2.0"
] | null | null | null | /*
Copyright (c) 2013 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include "util/test.h"
#include "util/trace.h"
using namespace lean;
int main() {
lean_assert(!is_trace_enabled("name"));
enable_trace("name");
... | 24.736842 | 67 | 0.708511 | silky |
4457cfae8f4457d78b023463a8041c603db490b8 | 5,671 | hpp | C++ | modules/gapi/include/opencv2/gapi/gcomputation.hpp | satnamsingh8912/opencv | 9c23f2f1a682faa9f0b2c2223a857c7d93ba65a6 | [
"BSD-3-Clause"
] | 9 | 2018-11-30T08:06:41.000Z | 2020-09-10T09:03:07.000Z | modules/gapi/include/opencv2/gapi/gcomputation.hpp | satnamsingh8912/opencv | 9c23f2f1a682faa9f0b2c2223a857c7d93ba65a6 | [
"BSD-3-Clause"
] | 3 | 2020-07-08T01:07:18.000Z | 2020-07-08T02:11:11.000Z | modules/gapi/include/opencv2/gapi/gcomputation.hpp | satnamsingh8912/opencv | 9c23f2f1a682faa9f0b2c2223a857c7d93ba65a6 | [
"BSD-3-Clause"
] | 3 | 2018-11-30T08:17:58.000Z | 2019-02-23T11:13:48.000Z | // This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//
// Copyright (C) 2018 Intel Corporation
#ifndef OPENCV_GAPI_GCOMPUTATION_HPP
#define OPENCV_GAPI_GCOMPUTATION_HPP
#inclu... | 40.507143 | 116 | 0.623347 | satnamsingh8912 |
44594ccebfa308ad020a264d2c2dbdef58ca7d68 | 2,219 | cpp | C++ | SymbolExtractorAndRenamer/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionVariable.cpp | Polidea/SiriusObfuscator | b0e590d8130e97856afe578869b83a209e2b19be | [
"Apache-2.0"
] | 427 | 2018-05-29T14:21:02.000Z | 2022-03-16T03:17:54.000Z | SymbolExtractorAndRenamer/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionVariable.cpp | PolideaPlayground/SiriusObfuscator | b0e590d8130e97856afe578869b83a209e2b19be | [
"Apache-2.0"
] | 25 | 2018-07-23T08:34:15.000Z | 2021-11-05T07:13:36.000Z | SymbolExtractorAndRenamer/lldb/source/Plugins/ExpressionParser/Clang/ClangExpressionVariable.cpp | PolideaPlayground/SiriusObfuscator | b0e590d8130e97856afe578869b83a209e2b19be | [
"Apache-2.0"
] | 52 | 2018-07-19T19:57:32.000Z | 2022-03-11T16:05:38.000Z | //===-- ClangExpressionVariable.cpp -----------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 32.632353 | 80 | 0.714736 | Polidea |
4459e1160f69ac012c8cbca47d18980c16f92971 | 948 | cpp | C++ | answers/leetcode/Insert Interval/Insert Interval.cpp | FeiZhan/Algo-Collection | 708c4a38112e0b381864809788b9e44ac5ae4d05 | [
"MIT"
] | 3 | 2015-09-04T21:32:31.000Z | 2020-12-06T00:37:32.000Z | answers/leetcode/Insert Interval/Insert Interval.cpp | FeiZhan/Algo-Collection | 708c4a38112e0b381864809788b9e44ac5ae4d05 | [
"MIT"
] | null | null | null | answers/leetcode/Insert Interval/Insert Interval.cpp | FeiZhan/Algo-Collection | 708c4a38112e0b381864809788b9e44ac5ae4d05 | [
"MIT"
] | null | null | null | //@result 151 / 151 test cases passed. Status: Accepted Runtime: 580 ms Submitted: 1 minute ago You are here! Your runtime beats 65.83% of cpp submissions.
/**
* Definition for an interval.
* struct Interval {
* int start;
* int end;
* Interval() : start(0), end(0) {}
* Interval(int s, int e) : start(s... | 30.580645 | 155 | 0.642405 | FeiZhan |
445a56ad79f0bd72ae5e851c60f116459daa68ec | 2,664 | cpp | C++ | deps/spidermonkey/xpconnect/tests/components/xpctest_const.cpp | havocp/hwf | a99e9a0461983226717b278513cfd9f1e53ba0f1 | [
"MIT"
] | 1 | 2015-04-19T10:49:48.000Z | 2015-04-19T10:49:48.000Z | deps/spidermonkey/xpconnect/tests/components/xpctest_const.cpp | havocp/hwf | a99e9a0461983226717b278513cfd9f1e53ba0f1 | [
"MIT"
] | null | null | null | deps/spidermonkey/xpconnect/tests/components/xpctest_const.cpp | havocp/hwf | a99e9a0461983226717b278513cfd9f1e53ba0f1 | [
"MIT"
] | null | null | null | /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
*
* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (the "License"); you may not use this file except in compliance with
* the Licen... | 34.597403 | 82 | 0.712462 | havocp |
445c1d637e995b4dc455720fc9c006232d0307db | 312,429 | cpp | C++ | test/tailoring_rule_test_zh_big5han_012.cpp | jan-moeller/text | c61e51c82dfb0ae6e74200c01ce040fa6db730c4 | [
"BSL-1.0"
] | null | null | null | test/tailoring_rule_test_zh_big5han_012.cpp | jan-moeller/text | c61e51c82dfb0ae6e74200c01ce040fa6db730c4 | [
"BSL-1.0"
] | 1 | 2021-03-05T12:56:59.000Z | 2021-03-05T13:11:53.000Z | test/tailoring_rule_test_zh_big5han_012.cpp | jan-moeller/text | c61e51c82dfb0ae6e74200c01ce040fa6db730c4 | [
"BSL-1.0"
] | 3 | 2019-10-30T18:38:15.000Z | 2021-03-05T12:10:13.000Z |
// Warning! This file is autogenerated.
#include <boost/text/collation_table.hpp>
#include <boost/text/collate.hpp>
#include <boost/text/data/all.hpp>
#ifndef LIMIT_TESTING_FOR_CI
#include <boost/text/save_load_table.hpp>
#include <boost/filesystem.hpp>
#endif
#include <gtest/gtest.h>
using namespace boost::text;
... | 32.312442 | 77 | 0.564141 | jan-moeller |
445c5b28cf5f020ce8ce8385241892b1c2887c11 | 13,925 | cpp | C++ | gen/blink/bindings/core/v8/V8SVGPreserveAspectRatio.cpp | wenfeifei/miniblink49 | 2ed562ff70130485148d94b0e5f4c343da0c2ba4 | [
"Apache-2.0"
] | 5,964 | 2016-09-27T03:46:29.000Z | 2022-03-31T16:25:27.000Z | gen/blink/bindings/core/v8/V8SVGPreserveAspectRatio.cpp | w4454962/miniblink49 | b294b6eacb3333659bf7b94d670d96edeeba14c0 | [
"Apache-2.0"
] | 459 | 2016-09-29T00:51:38.000Z | 2022-03-07T14:37:46.000Z | gen/blink/bindings/core/v8/V8SVGPreserveAspectRatio.cpp | w4454962/miniblink49 | b294b6eacb3333659bf7b94d670d96edeeba14c0 | [
"Apache-2.0"
] | 1,006 | 2016-09-27T05:17:27.000Z | 2022-03-30T02:46:51.000Z | // Copyright 2014 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.
// This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
#include "config.h"
#include "V8SVGPreserveAspectRatio.h"
#include... | 64.467593 | 625 | 0.792316 | wenfeifei |
445d9f9e02c6b310eb9827706576d492dff6345a | 62,881 | cc | C++ | src/breakpad/src/third_party/glog/src/logging.cc | ant0ine/phantomjs | 8114d44a28134b765ab26b7e13ce31594fa81253 | [
"BSD-3-Clause"
] | 46 | 2015-01-08T14:32:34.000Z | 2022-02-05T16:48:26.000Z | src/breakpad/src/third_party/glog/src/logging.cc | ant0ine/phantomjs | 8114d44a28134b765ab26b7e13ce31594fa81253 | [
"BSD-3-Clause"
] | 72 | 2015-02-05T11:42:13.000Z | 2015-12-09T22:18:41.000Z | src/breakpad/src/third_party/glog/src/logging.cc | ant0ine/phantomjs | 8114d44a28134b765ab26b7e13ce31594fa81253 | [
"BSD-3-Clause"
] | 22 | 2015-01-04T10:37:36.000Z | 2021-08-16T11:46:32.000Z | // Copyright (c) 1999, Google 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:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditi... | 34.760088 | 85 | 0.653965 | ant0ine |
44610cf127b3f8fa4ef5ac32e46ded27ec671314 | 3,371 | hpp | C++ | rocprim/include/rocprim/device/device_merge_sort_config.hpp | arsenm/rocPRIM | 02d6006a7951c53ecfd245200d58809d3eee0b48 | [
"MIT"
] | null | null | null | rocprim/include/rocprim/device/device_merge_sort_config.hpp | arsenm/rocPRIM | 02d6006a7951c53ecfd245200d58809d3eee0b48 | [
"MIT"
] | null | null | null | rocprim/include/rocprim/device/device_merge_sort_config.hpp | arsenm/rocPRIM | 02d6006a7951c53ecfd245200d58809d3eee0b48 | [
"MIT"
] | null | null | null | // Copyright (c) 2018 Advanced Micro Devices, Inc. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// t... | 33.71 | 80 | 0.750816 | arsenm |
446236206dc9c12d0027e3f086606c1adfcaa482 | 934 | cpp | C++ | POJ/1321/12854802_AC_63ms_708kB.cpp | BakaErii/ACM_Collection | d368b15c7f1c84472424d5e61e5ebc667f589025 | [
"WTFPL"
] | null | null | null | POJ/1321/12854802_AC_63ms_708kB.cpp | BakaErii/ACM_Collection | d368b15c7f1c84472424d5e61e5ebc667f589025 | [
"WTFPL"
] | null | null | null | POJ/1321/12854802_AC_63ms_708kB.cpp | BakaErii/ACM_Collection | d368b15c7f1c84472424d5e61e5ebc667f589025 | [
"WTFPL"
] | null | null | null | /**
* @author Moe_Sakiya sakiya@tun.moe
* @date 2018-03-01 00:07:15
*
*/
#include <iostream>
#include <string>
#include <algorithm>
#include <set>
#include <map>
#include <vector>
#include <stack>
#include <queue>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <cmath>
using namespace st... | 15.566667 | 49 | 0.543897 | BakaErii |
446367cf332cb23534c2744c4dd66744d121ef60 | 6,354 | cpp | C++ | Surface_mesh_topology/benchmark/Surface_mesh_topology/path_homotopy_with_schema.cpp | ffteja/cgal | c1c7f4ad9a4cd669e33ca07a299062a461581812 | [
"CC0-1.0"
] | 3,227 | 2015-03-05T00:19:18.000Z | 2022-03-31T08:20:35.000Z | Surface_mesh_topology/benchmark/Surface_mesh_topology/path_homotopy_with_schema.cpp | ffteja/cgal | c1c7f4ad9a4cd669e33ca07a299062a461581812 | [
"CC0-1.0"
] | 5,574 | 2015-03-05T00:01:56.000Z | 2022-03-31T15:08:11.000Z | Surface_mesh_topology/benchmark/Surface_mesh_topology/path_homotopy_with_schema.cpp | ffteja/cgal | c1c7f4ad9a4cd669e33ca07a299062a461581812 | [
"CC0-1.0"
] | 1,274 | 2015-03-05T00:01:12.000Z | 2022-03-31T14:47:56.000Z | #include <CGAL/Curves_on_surface_topology.h>
#include <CGAL/Path_on_surface.h>
#include <CGAL/Polygonal_schema.h>
///////////////////////////////////////////////////////////////////////////////
[[ noreturn ]] void usage(int /*argc*/, char** argv)
{
std::cout<<"usage: "<<argv[0]<<" scheme [-nbdefo D] [-nbedges E] "
... | 37.597633 | 143 | 0.543122 | ffteja |
44636aa91a85af89ce75f4d27aa12f8fe3040e19 | 1,274 | cpp | C++ | oi/Contest/2017-6/2017-6-27/gf-brute.cpp | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | 3 | 2018-08-30T09:43:20.000Z | 2019-12-03T04:53:43.000Z | oi/Contest/2017-6/2017-6-27/gf-brute.cpp | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | null | null | null | oi/Contest/2017-6/2017-6-27/gf-brute.cpp | Riteme/test | b511d6616a25f4ae8c3861e2029789b8ee4dcb8d | [
"BSD-Source-Code"
] | null | null | null | #define USE_FILE_IO
#include <cstdio>
#include <cstring>
#include <climits>
#include <algorithm>
using namespace std;
typedef long long i64;
#define NMAX 200000
#define MOD 998244353
static int n;
static int A[NMAX + 10], B[NMAX + 10];
static i64 fac[NMAX + 10];
static i64 inv[NMAX + 10];
inline i64 qpow(i64 a, ... | 18.463768 | 74 | 0.437206 | Riteme |
44639c0bf345059cb6f2fe1868bb02c818ac2759 | 2,425 | cpp | C++ | gpmp2/obstacle/tests/testPlanarSDF.cpp | Cryptum169/gpmp2 | f361baac4917b9a4d1220411e9c69dc9f96f4277 | [
"BSD-3-Clause"
] | null | null | null | gpmp2/obstacle/tests/testPlanarSDF.cpp | Cryptum169/gpmp2 | f361baac4917b9a4d1220411e9c69dc9f96f4277 | [
"BSD-3-Clause"
] | null | null | null | gpmp2/obstacle/tests/testPlanarSDF.cpp | Cryptum169/gpmp2 | f361baac4917b9a4d1220411e9c69dc9f96f4277 | [
"BSD-3-Clause"
] | null | null | null | /**
* @file testPlanarSDFutils.cpp
* @author Jing Dong
* @date May 8 2016
**/
#include <CppUnitLite/TestHarness.h>
#include <gtsam/base/numericalDerivative.h>
#include <gtsam/base/Matrix.h>
#include <gpmp2/obstacle/PlanarSDF.h>
#include <iostream>
using namespace std;
using namespace gtsam;
using namespace gpmp... | 28.529412 | 85 | 0.635876 | Cryptum169 |
4464cb0f0394ff009d632a6a195a4c0851dc8e3d | 1,168 | cpp | C++ | src/rectangle.cpp | yudhik11/OpenGL-PacmanKiller | 2d7ac47c1560223cdaa7221753f8b41af9856113 | [
"MIT"
] | null | null | null | src/rectangle.cpp | yudhik11/OpenGL-PacmanKiller | 2d7ac47c1560223cdaa7221753f8b41af9856113 | [
"MIT"
] | null | null | null | src/rectangle.cpp | yudhik11/OpenGL-PacmanKiller | 2d7ac47c1560223cdaa7221753f8b41af9856113 | [
"MIT"
] | null | null | null | #include "rectangle.h"
#include "main.h"
Rectangle::Rectangle(float x, float y,float x1, float y1,float length, float width, color_t color)
{
this->position = glm::vec3(x, y, 0);
const GLfloat vertex_buffer_data[] = {
x1, y1, 0, // vertex 1
x1, y1+width, 0, // vertex 2
x1+length, y1+wid... | 35.393939 | 100 | 0.603596 | yudhik11 |