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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
15bd26e9d1e4062d0ad1ff06efa037304e75a13a | 1,177 | cpp | C++ | apps/tests/test_font.cpp | kdt3rd/gecko | 756a4e4587eb5023495294d9b6c6d80ebd79ebde | [
"MIT"
] | 15 | 2017-10-18T05:08:16.000Z | 2022-02-02T11:01:46.000Z | apps/tests/test_font.cpp | kdt3rd/gecko | 756a4e4587eb5023495294d9b6c6d80ebd79ebde | [
"MIT"
] | null | null | null | apps/tests/test_font.cpp | kdt3rd/gecko | 756a4e4587eb5023495294d9b6c6d80ebd79ebde | [
"MIT"
] | 1 | 2018-11-10T03:12:57.000Z | 2018-11-10T03:12:57.000Z | // SPDX-License-Identifier: MIT
// Copyright contributors to the gecko project.
#include <base/contract.h>
#include <fstream>
#include <script/font_manager.h>
namespace
{
int safemain( int /*argc*/, char * /*argv*/[] )
{
std::shared_ptr<script::font_manager> fontmgr =
script::font_manager::make();
au... | 21.796296 | 77 | 0.525913 | kdt3rd |
15c54d976d9f22078105d13579c798e57bce3c31 | 6,137 | cpp | C++ | src/codec/rdb/RdbDecoder.cpp | TimothyZhang023/vcdb | 2604ab3703d82efdbf6c66a713b5b23a61b96672 | [
"BSD-2-Clause"
] | null | null | null | src/codec/rdb/RdbDecoder.cpp | TimothyZhang023/vcdb | 2604ab3703d82efdbf6c66a713b5b23a61b96672 | [
"BSD-2-Clause"
] | null | null | null | src/codec/rdb/RdbDecoder.cpp | TimothyZhang023/vcdb | 2604ab3703d82efdbf6c66a713b5b23a61b96672 | [
"BSD-2-Clause"
] | null | null | null | /*
Copyright (c) 2017, Timothy. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
*/
#include "RdbDecoder.h"
#include "util/bytes.h"
#include "util/cfree.h"
#include <netinet/in.h>
#include <memory>
extern "C" {
#include "redis/lzf.h"
#include "redi... | 24.646586 | 89 | 0.561675 | TimothyZhang023 |
15c65aa5c73eb13cf6190cdd1dde08de126e323f | 12,423 | cpp | C++ | Start.cpp | kongying-tavern/yuanshendt-updater | 68ab945a2f179b35857be125cdef14077b2329de | [
"WTFPL"
] | 5 | 2021-08-08T15:09:51.000Z | 2022-03-13T07:12:46.000Z | Start.cpp | kongying-tavern/yuanshendt-updater | 68ab945a2f179b35857be125cdef14077b2329de | [
"WTFPL"
] | null | null | null | Start.cpp | kongying-tavern/yuanshendt-updater | 68ab945a2f179b35857be125cdef14077b2329de | [
"WTFPL"
] | 2 | 2021-09-25T01:03:44.000Z | 2022-01-10T07:02:50.000Z | #include "Start.h"
#include <QStringList>
#include <QtWidgets/QMessageBox>
#include <QCoreApplication>
#include <QDebug>
#include <QUrl>
#include <QtConcurrent>
#include <QFileInfo>
#include <windows.h>
#include "file.h"
#include "MD5.h"
#include "Sandefine.h"
#include "Json.h"
#include "mainwindow.h"... | 31.292191 | 101 | 0.519681 | kongying-tavern |
15cb6a77994877a44b18c097680e944e35a78627 | 659 | cpp | C++ | other/TopTec2021/S1/N.cpp | axelgio01/cp | 7a1c3490f913e4aea53e46bcfb5bb56c9b15605d | [
"MIT"
] | null | null | null | other/TopTec2021/S1/N.cpp | axelgio01/cp | 7a1c3490f913e4aea53e46bcfb5bb56c9b15605d | [
"MIT"
] | null | null | null | other/TopTec2021/S1/N.cpp | axelgio01/cp | 7a1c3490f913e4aea53e46bcfb5bb56c9b15605d | [
"MIT"
] | null | null | null | //
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
int t; cin >> t;
while (t--) {
long long n, all = 0; cin >> n;
set<int> winners;
vector< pair<long long, int> > a(n);
for (int i = 0; i < n; ++i) {
cin >> a[i].first;
a[i].second = i ... | 19.382353 | 39 | 0.496206 | axelgio01 |
15cbab5c0ad05c8da83ca610ace158e8dd8666ac | 10,307 | cpp | C++ | android/android_9/hardware/qcom/display/msm8960/liboverlay/overlayMdp.cpp | yakuizhao/intel-vaapi-driver | b2bb0383352694941826543a171b557efac2219b | [
"MIT"
] | 1 | 2017-09-22T01:41:30.000Z | 2017-09-22T01:41:30.000Z | qcom/display/msm8960/liboverlay/overlayMdp.cpp | Keneral/ahardware | 9a8a025f7c9471444c9e271bbe7f48182741d710 | [
"Unlicense"
] | null | null | null | qcom/display/msm8960/liboverlay/overlayMdp.cpp | Keneral/ahardware | 9a8a025f7c9471444c9e271bbe7f48182741d710 | [
"Unlicense"
] | 1 | 2018-02-24T19:09:04.000Z | 2018-02-24T19:09:04.000Z | /*
* Copyright (C) 2008 The Android Open Source Project
* Copyright (c) 2010-2013, The Linux Foundation. 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://w... | 31.045181 | 81 | 0.626953 | yakuizhao |
15ce56fd139435072285e28c57ca2ff95ab2a751 | 927 | hpp | C++ | flare/include/flare/paint/actor_gradient_fill.hpp | taehyub/flare_cpp | 7731bc0bcf2ce721f103586a48f74aa5c12504e8 | [
"MIT"
] | 14 | 2019-04-29T15:17:24.000Z | 2020-12-30T12:51:05.000Z | flare/include/flare/paint/actor_gradient_fill.hpp | taehyub/flare_cpp | 7731bc0bcf2ce721f103586a48f74aa5c12504e8 | [
"MIT"
] | null | null | null | flare/include/flare/paint/actor_gradient_fill.hpp | taehyub/flare_cpp | 7731bc0bcf2ce721f103586a48f74aa5c12504e8 | [
"MIT"
] | 6 | 2019-04-29T15:17:25.000Z | 2021-11-16T03:20:59.000Z | #ifndef _FLARE_ACTOR_GRADIENT_FILL_HPP_
#define _FLARE_ACTOR_GRADIENT_FILL_HPP_
#include "flare/paint/actor_fill.hpp"
#include "flare/paint/actor_gradient_color.hpp"
namespace flare
{
class BlockReader;
class ActorArtboard;
class ActorGradientFill : public ActorGradientColor, public ActorFill
{
typedef ActorGr... | 33.107143 | 109 | 0.79288 | taehyub |
15cf54349548aa7d69f0ab2680f1f21e2abb2bdd | 6,994 | cc | C++ | RAVL2/PatternRec/Modeling/GaussianMixture/GaussianMixture.cc | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | RAVL2/PatternRec/Modeling/GaussianMixture/GaussianMixture.cc | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | RAVL2/PatternRec/Modeling/GaussianMixture/GaussianMixture.cc | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | // This file is part of RAVL, Recognition And Vision Library
// Copyright (C) 2002, 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... | 32.530233 | 161 | 0.667286 | isuhao |
15d132691ab76cd46b34a9f55d3b8503b32ac5f4 | 4,411 | cc | C++ | src/trace.cc | offis/libbla | 4d6391df7ddd6a6ab0a61d9469b6f9fd49d060de | [
"Apache-2.0"
] | null | null | null | src/trace.cc | offis/libbla | 4d6391df7ddd6a6ab0a61d9469b6f9fd49d060de | [
"Apache-2.0"
] | null | null | null | src/trace.cc | offis/libbla | 4d6391df7ddd6a6ab0a61d9469b6f9fd49d060de | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2018-2020 OFFIS Institute for Information Technology
* Oldenburg, Germany
*
* 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... | 27.917722 | 89 | 0.697574 | offis |
15d2b2c8a1eac7279da29bc6a0b3b0f415de9f6d | 6,599 | cpp | C++ | src/row_renderer.cpp | magicmoremagic/bengine-ctable | ab82acd66f3021888701fb086dcec0e0713038c2 | [
"MIT"
] | null | null | null | src/row_renderer.cpp | magicmoremagic/bengine-ctable | ab82acd66f3021888701fb086dcec0e0713038c2 | [
"MIT"
] | null | null | null | src/row_renderer.cpp | magicmoremagic/bengine-ctable | ab82acd66f3021888701fb086dcec0e0713038c2 | [
"MIT"
] | null | null | null | #include "pch.hpp"
#include "row_renderer.hpp"
#include "table_sizer.hpp"
#include <memory>
namespace be::ct {
namespace detail {
namespace {
///////////////////////////////////////////////////////////////////////////////
U8 get_margin(const BorderConfig& config) {
return config.margin > 0 ? config.margin - 1 : 0;... | 32.830846 | 112 | 0.504167 | magicmoremagic |
15d5ab60064d826ca43fd55ac8556a9b3cb52086 | 789 | cpp | C++ | uva/11000 - Bee adhoc recursive .cpp | priojeetpriyom/competitive-programming | 0024328972d4e14c04c0fd5d6dd3cdf131d84f9d | [
"MIT"
] | 1 | 2021-11-22T02:26:43.000Z | 2021-11-22T02:26:43.000Z | uva/11000 - Bee adhoc recursive .cpp | priojeetpriyom/competitive-programming | 0024328972d4e14c04c0fd5d6dd3cdf131d84f9d | [
"MIT"
] | null | null | null | uva/11000 - Bee adhoc recursive .cpp | priojeetpriyom/competitive-programming | 0024328972d4e14c04c0fd5d6dd3cdf131d84f9d | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <string.h>
#include <math.h>
#include <algorithm>
#include <stack>
#include <queue>
using namespace std;
long long ara[100];
long long bee_count(long long n)
{
if(n<=0) return 0;
else if(n==1) return 1;
else
{
if(ara[n] != -1)
... | 16.4375 | 51 | 0.47782 | priojeetpriyom |
15d74717934c1cdd6bd4f073ec485bf529f7e93d | 6,872 | cpp | C++ | liblink/native/src/deterministic_wallet.cpp | oklink-dev/bitlink | 69705ccd8469a11375ad3c08c00c9dc54773355e | [
"MIT"
] | null | null | null | liblink/native/src/deterministic_wallet.cpp | oklink-dev/bitlink | 69705ccd8469a11375ad3c08c00c9dc54773355e | [
"MIT"
] | null | null | null | liblink/native/src/deterministic_wallet.cpp | oklink-dev/bitlink | 69705ccd8469a11375ad3c08c00c9dc54773355e | [
"MIT"
] | null | null | null | /**
* Copyright (c) 2011-2013 libwallet developers (see AUTHORS)
*
* This file is part of libwallet.
*
* libwallet is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* Licen... | 28.633333 | 75 | 0.688009 | oklink-dev |
15d8262e934770f5d917f21de8a33aa67d870cdd | 789 | cpp | C++ | libyb/async/cancellation_token.cpp | avakar/libyb | 09874b6ead7f09f6318c1730cdc4e2b7f231df5f | [
"BSL-1.0"
] | 1 | 2016-08-22T07:45:41.000Z | 2016-08-22T07:45:41.000Z | libyb/async/cancellation_token.cpp | avakar/libyb | 09874b6ead7f09f6318c1730cdc4e2b7f231df5f | [
"BSL-1.0"
] | null | null | null | libyb/async/cancellation_token.cpp | avakar/libyb | 09874b6ead7f09f6318c1730cdc4e2b7f231df5f | [
"BSL-1.0"
] | 1 | 2016-11-01T11:43:10.000Z | 2016-11-01T11:43:10.000Z | #include "cancellation_token.hpp"
#include "detail/cancellation_token_task.hpp"
using namespace yb;
cancellation_token::cancellation_token()
: m_core(0)
{
}
cancellation_token::cancellation_token(detail::cancellation_token_core_base * core)
: m_core(core)
{
assert(m_core);
m_core->addref();
}
cancellation_token:... | 17.533333 | 83 | 0.737643 | avakar |
15d940f8070c9d84379e28dad28af0b13fd94fb1 | 292 | cpp | C++ | Linked List/(Leetcode) 206 Reverse Linked List.cpp | kothariji/Competitive-Programming | c49f8b0135c8e9dd284ce8ab583e85ba3d809b8c | [
"MIT"
] | 1 | 2020-08-27T06:59:52.000Z | 2020-08-27T06:59:52.000Z | Linked List/(Leetcode) 206 Reverse Linked List.cpp | kothariji/Competitive-Programming | c49f8b0135c8e9dd284ce8ab583e85ba3d809b8c | [
"MIT"
] | null | null | null | Linked List/(Leetcode) 206 Reverse Linked List.cpp | kothariji/Competitive-Programming | c49f8b0135c8e9dd284ce8ab583e85ba3d809b8c | [
"MIT"
] | null | null | null | class Solution {
public:
ListNode* reverseList(ListNode* head) {
if(!head or !head->next) return head;
ListNode* t = reverseList(head->next);
ListNode* sn = head->next;
sn->next = head;
head->next=NULL;
return t;
}
};
| 20.857143 | 46 | 0.517123 | kothariji |
15d9f9a3830d5e095f06541835660dc168304512 | 1,302 | cpp | C++ | test/main.cpp | fyquah95/robot_cpp | f0898957fb0b1258419e4ace9d7464143caaa5e4 | [
"MIT"
] | 11 | 2018-01-10T12:35:04.000Z | 2018-08-29T01:47:48.000Z | test/main.cpp | fyquah95/robot_cpp | f0898957fb0b1258419e4ace9d7464143caaa5e4 | [
"MIT"
] | null | null | null | test/main.cpp | fyquah95/robot_cpp | f0898957fb0b1258419e4ace9d7464143caaa5e4 | [
"MIT"
] | 2 | 2018-01-10T13:04:08.000Z | 2018-01-10T13:24:12.000Z | #include <iostream>
#include <thread>
#include <chrono>
#include <utility>
#include <stdint.h>
#include <stdio.h>
#include <unistd.h>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <robot.h>
#include "strategy.hpp"
#include "game.hpp"
#include "vision.hpp"
#include "interact.hpp"
... | 22.067797 | 69 | 0.678955 | fyquah95 |
15db8f5260aaa60a00b0c9e6ce2f08c738014e07 | 2,436 | cc | C++ | logging/rtc_event_log/events/rtc_event_begin_log.cc | brandongatling/WebRTC | 5b661302097ba03e1055357556c35f6e5d37b550 | [
"BSD-3-Clause"
] | null | null | null | logging/rtc_event_log/events/rtc_event_begin_log.cc | brandongatling/WebRTC | 5b661302097ba03e1055357556c35f6e5d37b550 | [
"BSD-3-Clause"
] | null | null | null | logging/rtc_event_log/events/rtc_event_begin_log.cc | brandongatling/WebRTC | 5b661302097ba03e1055357556c35f6e5d37b550 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2021 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... | 34.8 | 80 | 0.741379 | brandongatling |
15e4deccf52e9e0e9b5edf47ad2475e34f076184 | 1,109 | cpp | C++ | stxxl/lib/common/version.cpp | ernstki/kASA | f1d5722442ddce47bdb60406fd7e0636a22499b9 | [
"BSL-1.0"
] | 406 | 2015-01-31T01:37:16.000Z | 2022-03-14T00:58:18.000Z | lib/common/version.cpp | bensuperpc/stxxl | b9e44f0ecba7d7111fbb33f3330c3e53f2b75236 | [
"BSL-1.0"
] | 82 | 2015-01-06T14:06:19.000Z | 2021-05-02T13:30:32.000Z | lib/common/version.cpp | bensuperpc/stxxl | b9e44f0ecba7d7111fbb33f3330c3e53f2b75236 | [
"BSL-1.0"
] | 89 | 2015-02-11T20:01:16.000Z | 2022-03-28T18:20:18.000Z | /***************************************************************************
* lib/common/version.cpp
*
* Part of the STXXL. See http://stxxl.sourceforge.net
*
* Copyright (C) 2007, 2008, 2011 Andreas Beckmann <beckmann@cs.uni-frankfurt.de>
* Copyright (C) 2013 Timo Bingmann <tb@panthema.net>
*
* Distribut... | 20.924528 | 82 | 0.628494 | ernstki |
15e9e476c0ef06cbf429cd5e0b99c7263f2dd526 | 825 | cc | C++ | permission_broker/deny_usb_device_class_rule.cc | doitmovin/chromiumos-platform2 | 6462aaf43072307b5a40eb045a89e473381b5fda | [
"BSD-3-Clause"
] | 5 | 2019-01-19T15:38:48.000Z | 2021-10-06T03:59:46.000Z | permission_broker/deny_usb_device_class_rule.cc | doitmovin/chromiumos-platform2 | 6462aaf43072307b5a40eb045a89e473381b5fda | [
"BSD-3-Clause"
] | null | null | null | permission_broker/deny_usb_device_class_rule.cc | doitmovin/chromiumos-platform2 | 6462aaf43072307b5a40eb045a89e473381b5fda | [
"BSD-3-Clause"
] | 2 | 2021-01-26T12:37:19.000Z | 2021-05-18T13:37:57.000Z | // Copyright (c) 2012 The Chromium OS 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 "permission_broker/deny_usb_device_class_rule.h"
#include <libudev.h>
#include "base/strings/stringprintf.h"
namespace permission_broke... | 30.555556 | 74 | 0.763636 | doitmovin |
15ea3ecde4733a3e20052b4a81f09ee8400f6a40 | 713 | cpp | C++ | PRACTICE/cntMvs_Hanoi.cpp | prasantmahato/CP-Practice | 54ca79117fcb0e2722bfbd1007b972a3874bef03 | [
"MIT"
] | null | null | null | PRACTICE/cntMvs_Hanoi.cpp | prasantmahato/CP-Practice | 54ca79117fcb0e2722bfbd1007b972a3874bef03 | [
"MIT"
] | null | null | null | PRACTICE/cntMvs_Hanoi.cpp | prasantmahato/CP-Practice | 54ca79117fcb0e2722bfbd1007b972a3874bef03 | [
"MIT"
] | null | null | null | #include <iostream>
#include <math.h>
using namespace std;
int num=0;
void tower_of_brahma(int n,char a, char c,char b,char p)
{
if(n==0)
exit(0);
if(n==1)
{
cout<<"\nMove Disk "<<n<<" from "<<a<<" to "<<c;
{
if((a=='x' || b=='x'|| c=='x') && (a==p || b==p || c==p))... | 16.97619 | 69 | 0.4446 | prasantmahato |
15ebaa37a6285c8fb979107dbc94bfba7d7dee1b | 142 | hxx | C++ | src/Providers/UNIXProviders/PolicyRuleValidityPeriod/UNIX_PolicyRuleValidityPeriod_ZOS.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | 1 | 2020-10-12T09:00:09.000Z | 2020-10-12T09:00:09.000Z | src/Providers/UNIXProviders/PolicyRuleValidityPeriod/UNIX_PolicyRuleValidityPeriod_ZOS.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | src/Providers/UNIXProviders/PolicyRuleValidityPeriod/UNIX_PolicyRuleValidityPeriod_ZOS.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | #ifdef PEGASUS_OS_ZOS
#ifndef __UNIX_POLICYRULEVALIDITYPERIOD_PRIVATE_H
#define __UNIX_POLICYRULEVALIDITYPERIOD_PRIVATE_H
#endif
#endif
| 11.833333 | 49 | 0.866197 | brunolauze |
15ecef24af6f7759bcada9beba84d795cc6dc336 | 22,295 | hpp | C++ | include/adl/std/string_view.hpp | flisboac/adl | a29f4ab2652e8146d4f97fd10f52526e4bc3563c | [
"MIT"
] | 2 | 2021-01-12T12:04:09.000Z | 2022-03-21T10:09:54.000Z | include/adl/std/string_view.hpp | flisboac/adl | a29f4ab2652e8146d4f97fd10f52526e4bc3563c | [
"MIT"
] | 70 | 2017-02-25T16:37:48.000Z | 2018-01-28T22:15:42.000Z | include/adl/std/string_view.hpp | flisboac/adl | a29f4ab2652e8146d4f97fd10f52526e4bc3563c | [
"MIT"
] | null | null | null | // $flisboac 2017-04-01
/**
* @file string_view.hpp
*/
#ifndef adl__std__string_view__hpp__
#define adl__std__string_view__hpp__
#if adl_CONFIG_LANG_IS_CPP17
#include <string_view>
#else
#include "adl/char_helper.hpp"
#endif
#include <string>
#include <iterator>
#include <type_traits>
#include <stdexcept>
... | 33.831563 | 116 | 0.719847 | flisboac |
15f5fbbf52fa8d2cbc7eb0886eee9fcbd7631cba | 967 | cpp | C++ | plugins/imageviewer2/src/imageviewer2.cpp | sellendk/megamol | 0e4840b1897706c861946992ce3524bafab53352 | [
"BSD-3-Clause"
] | null | null | null | plugins/imageviewer2/src/imageviewer2.cpp | sellendk/megamol | 0e4840b1897706c861946992ce3524bafab53352 | [
"BSD-3-Clause"
] | null | null | null | plugins/imageviewer2/src/imageviewer2.cpp | sellendk/megamol | 0e4840b1897706c861946992ce3524bafab53352 | [
"BSD-3-Clause"
] | null | null | null | /**
* MegaMol
* Copyright (c) 2009-2021, MegaMol Dev Team
* All rights reserved.
*/
#include "mmcore/utility/plugins/AbstractPluginInstance.h"
#include "mmcore/utility/plugins/PluginRegister.h"
#include "imageviewer2/ImageRenderer.h"
namespace megamol::imageviewer2 {
class Imaggeviewer2PluginInstance : publi... | 30.21875 | 120 | 0.698035 | sellendk |
15f7e542004949e62ed8473a52c962fa9cfb8d32 | 3,450 | cpp | C++ | modules/task_3/pyatckin_n_integrals_rectangle/integrals_rectangle.cpp | Gurgen-Arm/pp_2021_autumn | ad549e49d765612c4544f34b04c9eb9432ac0dc7 | [
"BSD-3-Clause"
] | null | null | null | modules/task_3/pyatckin_n_integrals_rectangle/integrals_rectangle.cpp | Gurgen-Arm/pp_2021_autumn | ad549e49d765612c4544f34b04c9eb9432ac0dc7 | [
"BSD-3-Clause"
] | null | null | null | modules/task_3/pyatckin_n_integrals_rectangle/integrals_rectangle.cpp | Gurgen-Arm/pp_2021_autumn | ad549e49d765612c4544f34b04c9eb9432ac0dc7 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2021 Pyatckin Nikolai
#include <math.h>
#include <mpi.h>
#include <random>
#include <iostream>
#include <algorithm>
#include <functional>
#include <vector>
#include <utility>
#include "../../../modules/task_3/pyatckin_n_integrals_rectangle/integrals_rectangle.h"
double ParallelIntegral(std::function<doubl... | 30 | 87 | 0.526667 | Gurgen-Arm |
15f8d353eea57eae2457178605a9a659a97ae4e3 | 7,621 | cpp | C++ | src/TympanRemoteFormatter.cpp | jamescookmd/Tympan_Library | 2d29cb8edbb281584668dd799f95eada11826b38 | [
"MIT"
] | 89 | 2017-03-25T19:27:07.000Z | 2022-03-21T21:11:03.000Z | src/TympanRemoteFormatter.cpp | jamescookmd/Tympan_Library | 2d29cb8edbb281584668dd799f95eada11826b38 | [
"MIT"
] | 43 | 2017-05-31T14:38:33.000Z | 2022-03-29T09:34:58.000Z | src/TympanRemoteFormatter.cpp | jamescookmd/Tympan_Library | 2d29cb8edbb281584668dd799f95eada11826b38 | [
"MIT"
] | 22 | 2017-03-07T22:15:59.000Z | 2021-12-18T15:23:04.000Z |
#include <TympanRemoteFormatter.h>
String TR_Button::asString(void) {
String s;
//original method
//s = "{'label':'" + label + "','cmd':'" + command + "','id':'" + id + "','width':'" + width + "'}";
//new method...don't waste time transmitting fields that don't exist
s = "{";
if (label.length() > 0) s.conca... | 23.594427 | 107 | 0.583257 | jamescookmd |
15fbbd80d1d342f68c9745d56cb865482ebbf0c5 | 2,134 | cpp | C++ | apps/gadgetron/connection/nodes/common/Configuration.cpp | roopchansinghv/gadgetron | fb6c56b643911152c27834a754a7b6ee2dd912da | [
"MIT"
] | 1 | 2022-02-22T21:06:36.000Z | 2022-02-22T21:06:36.000Z | apps/gadgetron/connection/nodes/common/Configuration.cpp | apd47/gadgetron | 073e84dabe77d2dae3b3dd9aa4bf9edbf1f890f2 | [
"MIT"
] | null | null | null | apps/gadgetron/connection/nodes/common/Configuration.cpp | apd47/gadgetron | 073e84dabe77d2dae3b3dd9aa4bf9edbf1f890f2 | [
"MIT"
] | null | null | null | #include "Configuration.h"
#include <vector>
#include <ismrmrd/ismrmrd.h>
#include "io/primitives.h"
#include "MessageID.h"
using namespace Gadgetron::Core;
namespace Gadgetron::Server::Connection::Nodes {
using Serializable = Core::variant<Config::External,Config>;
static void send_header(std::iostream &... | 28.837838 | 105 | 0.574039 | roopchansinghv |
15fc69abe3f37640a4c6717bcfc94f1fc05cfdbb | 5,276 | cpp | C++ | source/systems/enemysystem.cpp | alohaeee/DungeonSlayer | b1a95031371b5f5b3be8f8d592a56140047e61da | [
"MIT"
] | 41 | 2020-01-31T15:18:57.000Z | 2022-03-12T05:48:21.000Z | source/systems/enemysystem.cpp | alohaeee/DungeonSlayer | b1a95031371b5f5b3be8f8d592a56140047e61da | [
"MIT"
] | 2 | 2020-01-31T15:18:52.000Z | 2022-02-16T12:21:45.000Z | source/systems/enemysystem.cpp | alohaeee/DungeonSlayer | b1a95031371b5f5b3be8f8d592a56140047e61da | [
"MIT"
] | 4 | 2020-03-27T05:10:19.000Z | 2021-02-22T09:18:34.000Z | #include "enemysystem.hpp"
#include "../core.hpp"
#include <queue>
void EnemyCreate(Vector2D spawn)
{
auto enemy = registry.create();
registry.assign<Enemy>(enemy);
auto &pos = registry.assign<Position>(enemy);
pos.position = spawn;
auto &rect = registry.assign<RectCollider>(enemy);
auto &spri... | 30.674419 | 81 | 0.539803 | alohaeee |
15fe425b500e890081af3276130fa48b5feb2512 | 1,085 | cpp | C++ | Pagerank_viz/pagenode.cpp | Ybalrid/pagerank_stocha_4A | 8f265ad70f5284374922ba7988baaf5c99085abd | [
"MIT"
] | null | null | null | Pagerank_viz/pagenode.cpp | Ybalrid/pagerank_stocha_4A | 8f265ad70f5284374922ba7988baaf5c99085abd | [
"MIT"
] | null | null | null | Pagerank_viz/pagenode.cpp | Ybalrid/pagerank_stocha_4A | 8f265ad70f5284374922ba7988baaf5c99085abd | [
"MIT"
] | null | null | null | #include "pagenode.h"
PageNode::PageNode(QString accessUrl) :
url(accessUrl),
elipse(nullptr),
urlTag(nullptr),
active(false),
rank(0)
{
}
void PageNode::linkTo(PageNode *otherPage)
{
linkedPages.push_back(otherPage);
qDebug() << "Page " << url << " has an hyperlink to " << otherPage->getUr... | 13.910256 | 80 | 0.668203 | Ybalrid |
15fe9056534d1d419179b5a6a9d295a04da50446 | 9,590 | cpp | C++ | Code/RDBoost/Wrap/RDBase.cpp | i-tub/rdkit | fb49a33b5adaa2c203efdbeae568134095b353c7 | [
"BSD-3-Clause"
] | null | null | null | Code/RDBoost/Wrap/RDBase.cpp | i-tub/rdkit | fb49a33b5adaa2c203efdbeae568134095b353c7 | [
"BSD-3-Clause"
] | null | null | null | Code/RDBoost/Wrap/RDBase.cpp | i-tub/rdkit | fb49a33b5adaa2c203efdbeae568134095b353c7 | [
"BSD-3-Clause"
] | null | null | null |
// Copyright (c) 2004-2019 greg Landrum and Rational Discovery LLC
//
// @@ All Rights Reserved @@
// This file is part of the RDKit.
// The contents are covered by the terms of the BSD license
// which is included in the file license.txt, found at the root
// of the RDKit source tree.
//
#include <RDBoost/pytho... | 28.798799 | 80 | 0.670699 | i-tub |
15fedd99cf14f5ba20b3ebde86fb4f81c78b372f | 3,082 | cpp | C++ | Magic-Name/main.cpp | KSCreator/General-Programs | b51cb9cc36e6eda72f3b402e278f25b512e9daa2 | [
"MIT"
] | null | null | null | Magic-Name/main.cpp | KSCreator/General-Programs | b51cb9cc36e6eda72f3b402e278f25b512e9daa2 | [
"MIT"
] | null | null | null | Magic-Name/main.cpp | KSCreator/General-Programs | b51cb9cc36e6eda72f3b402e278f25b512e9daa2 | [
"MIT"
] | null | null | null | /*
author : Keshav Sahu
*/
#include <cstdio>
#include <cstring>
#include <cctype>
#include <cstdlib>
using namespace std;
void print(char c)
{
if(islower(c))
c = toupper(c);
switch(c)
{
case 'A':
printf("ooooo\no o\nooooo\no o\no o\n\n\n");
break;
case '... | 24.656 | 58 | 0.41207 | KSCreator |
15ff7b0f4c71dd0f7362e433c7f149b9b05dbd40 | 685 | cpp | C++ | School C++/other2/Test array/Test array.cpp | holtsoftware/potential-octo-wallhack | 8e2165f0371522f42cb117ba83f8aea5c2a1b582 | [
"Apache-2.0"
] | null | null | null | School C++/other2/Test array/Test array.cpp | holtsoftware/potential-octo-wallhack | 8e2165f0371522f42cb117ba83f8aea5c2a1b582 | [
"Apache-2.0"
] | null | null | null | School C++/other2/Test array/Test array.cpp | holtsoftware/potential-octo-wallhack | 8e2165f0371522f42cb117ba83f8aea5c2a1b582 | [
"Apache-2.0"
] | null | null | null | // Test array.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <iostream.h>
void main(int argc, char* argv[])
{
char account[16]={'5','4','5','8','0','9','8','3','9','3','3','8','3','9','7','6'},chari;
int u=0;
switch(account[0]){
case '4':
chari='V';
break;
case ... | 13.979592 | 90 | 0.50219 | holtsoftware |
c600a2b7c9054ffe775bb57ef175a0f3f6e8ae76 | 11,795 | cpp | C++ | Src/Celbody/Moon/ELP82.cpp | Ybalrid/orbiter | 7bed82f845ea8347f238011367e07007b0a24099 | [
"MIT"
] | 1,040 | 2021-07-27T12:12:06.000Z | 2021-08-02T14:24:49.000Z | Src/Celbody/Moon/ELP82.cpp | Ybalrid/orbiter | 7bed82f845ea8347f238011367e07007b0a24099 | [
"MIT"
] | 20 | 2021-07-27T12:25:22.000Z | 2021-08-02T12:22:19.000Z | Src/Celbody/Moon/ELP82.cpp | Ybalrid/orbiter | 7bed82f845ea8347f238011367e07007b0a24099 | [
"MIT"
] | 71 | 2021-07-27T14:19:49.000Z | 2021-08-02T05:51:52.000Z | #include <math.h>
#include <fstream>
#include "OrbiterAPI.h"
using namespace std;
// #define INCLUDE_TIDAL_PERT
// Uncomment this to add higher-order perturbation terms
// (tidal, relativistic, solar eccentricity)
// Warning: Using this can lead to inconsistencies since these
// effects are not currently modelled in... | 27.303241 | 99 | 0.519118 | Ybalrid |
c60449d7a65fc4646ff830bb201ff8f7875eea77 | 2,357 | cpp | C++ | MORE CODING PLATFORMS/SPOJ/cot.cpp | Autoratch/CodeChef | 6937e6b442e19df90a65f772939db9ab1a07a1b3 | [
"Apache-2.0"
] | null | null | null | MORE CODING PLATFORMS/SPOJ/cot.cpp | Autoratch/CodeChef | 6937e6b442e19df90a65f772939db9ab1a07a1b3 | [
"Apache-2.0"
] | null | null | null | MORE CODING PLATFORMS/SPOJ/cot.cpp | Autoratch/CodeChef | 6937e6b442e19df90a65f772939db9ab1a07a1b3 | [
"Apache-2.0"
] | null | null | null | // https://www.spoj.com/problems/COT/
#include <bits/stdc++.h>
using namespace std;
const int N = 1.2e5;
const int K = 20;
int n,q;
pair<int,int> res[N];
int id[N];
vector<int> adj[N];
struct node
{
int val,left,right;
}tree[N*50];
int dp[K][N],lv[N];
int root[N],cnt;
int clone(int idx){ tree[++cnt] = tree[idx]... | 24.552083 | 119 | 0.518456 | Autoratch |
c60c1d964a15e2afaa937343b7ada13a270e7f60 | 2,245 | cpp | C++ | src/test_poly.cpp | willyii/PolynomialRootFinding | 18c7edd8fadf3dc48d2dc6480f0cf6f624cea80f | [
"MIT"
] | null | null | null | src/test_poly.cpp | willyii/PolynomialRootFinding | 18c7edd8fadf3dc48d2dc6480f0cf6f624cea80f | [
"MIT"
] | 1 | 2021-03-13T00:53:54.000Z | 2021-03-13T00:53:54.000Z | src/test_poly.cpp | willyii/PolynomialRootFinding | 18c7edd8fadf3dc48d2dc6480f0cf6f624cea80f | [
"MIT"
] | 1 | 2021-01-13T12:54:48.000Z | 2021-01-13T12:54:48.000Z | // ----------------------------------------------------------------------------
//
// FILENAME: test_poly.h
//
// DESCRIPTION:
// This file used to write some test function in poly class to check if the
// some functions works good
//
// AUTHOR: Xinlong Yi
//
// ---------------------------------------------------... | 27.048193 | 80 | 0.489532 | willyii |
c60c8bff9e1ff6d3b43ff765aa2a409a62c1a729 | 1,634 | cpp | C++ | JAERO/zmq_audiosender.cpp | Roethenbach/JAERO | 753a4409507a356489f3635b93dc16955c8cf01a | [
"MIT"
] | 152 | 2015-12-02T01:38:42.000Z | 2022-03-29T10:41:37.000Z | JAERO/zmq_audiosender.cpp | Roethenbach/JAERO | 753a4409507a356489f3635b93dc16955c8cf01a | [
"MIT"
] | 59 | 2015-12-02T02:11:24.000Z | 2022-03-21T02:48:11.000Z | JAERO/zmq_audiosender.cpp | Roethenbach/JAERO | 753a4409507a356489f3635b93dc16955c8cf01a | [
"MIT"
] | 38 | 2015-12-07T16:24:03.000Z | 2021-12-25T15:44:27.000Z | #include "zmq_audiosender.h"
#include "zmq.h"
#include <QDebug>
ZMQAudioSender::ZMQAudioSender(QObject *parent) : QObject(parent)
{
zmqStatus = -1;
context = zmq_ctx_new();
publisher = zmq_socket(context, ZMQ_PUB);
int keepalive = 1;
int keepalivecnt = 10;
int keepaliveidle = 1;
int keepal... | 31.423077 | 110 | 0.709302 | Roethenbach |
c60f071cbfa54737ee5662bf2351e0ff90b52ceb | 57,305 | cpp | C++ | net/mmc/common/basehand.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | net/mmc/common/basehand.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | net/mmc/common/basehand.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /**********************************************************************/
/** Microsoft Windows/NT **/
/** Copyright(c) Microsoft Corporation, 1997 - 1999 **/
/**********************************************************************/
/*
node.cpp
Root no... | 29.59969 | 168 | 0.560702 | npocmaka |
c60fe3d4e0fd8982b78cc8624913bfd71ef4d7b9 | 1,054 | hpp | C++ | src/dp/lcs.hpp | today2098/algorithm | b180355635d3d1ea0a8c3dff40ae1c9bac636f95 | [
"MIT"
] | null | null | null | src/dp/lcs.hpp | today2098/algorithm | b180355635d3d1ea0a8c3dff40ae1c9bac636f95 | [
"MIT"
] | null | null | null | src/dp/lcs.hpp | today2098/algorithm | b180355635d3d1ea0a8c3dff40ae1c9bac636f95 | [
"MIT"
] | null | null | null | #ifndef ALGORITHM_LCS_HPP
#define ALGORITHM_LCS_HPP
#include <algorithm>
#include <string>
#include <vector>
namespace algorithm {
// 最長共通部分列 (LCS:Longest Common Subsequence). O(|A|*|B|).
template <class Class>
Class lcs(const Class &a, const Class &b) {
int an = a.size(), bn = b.size();
std::vector<std::vec... | 26.35 | 111 | 0.44592 | today2098 |
c61002540bab6c6d6a88589cba8f69b3771fa016 | 34,655 | cpp | C++ | renderer/scene.cpp | Svengali/Granite | 90de56b405455ccf70deaa5befe762a2bbc7777e | [
"MIT"
] | null | null | null | renderer/scene.cpp | Svengali/Granite | 90de56b405455ccf70deaa5befe762a2bbc7777e | [
"MIT"
] | null | null | null | renderer/scene.cpp | Svengali/Granite | 90de56b405455ccf70deaa5befe762a2bbc7777e | [
"MIT"
] | null | null | null | /* Copyright (c) 2017-2020 Hans-Kristian Arntzen
*
* 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, me... | 33.909002 | 189 | 0.734872 | Svengali |
c6105c65a5f9e96217bbccf9a8cbb48ddc268d58 | 9,183 | cpp | C++ | Server_Db/MdfModel_File.cpp | suzhengquan/MBCAF | 6da9e994a30c1c228961328d19e71493f1fa7726 | [
"BSD-3-Clause"
] | 2 | 2020-10-24T15:44:31.000Z | 2021-05-31T03:22:02.000Z | Server_Db/MdfModel_File.cpp | suzhengquan/MBCAF | 6da9e994a30c1c228961328d19e71493f1fa7726 | [
"BSD-3-Clause"
] | null | null | null | Server_Db/MdfModel_File.cpp | suzhengquan/MBCAF | 6da9e994a30c1c228961328d19e71493f1fa7726 | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) "2018-2019", Shenzhen Mindeng Technology Co., Ltd(www.niiengine.com),
Mindeng Base Communication Application Framework
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Redi... | 42.711628 | 154 | 0.539584 | suzhengquan |
723e6aaad59bcfc5f04cde68e3bd5c4dda8fd5d8 | 1,145 | cpp | C++ | main/dashboard.cpp | lucasnunes/tcc_source | 695610ec134d946694080fd2efae3f1dc41c2fa2 | [
"Apache-2.0"
] | 2 | 2019-01-08T12:51:04.000Z | 2019-01-08T12:51:04.000Z | main/dashboard.cpp | lucasnunes/tcc_source | 695610ec134d946694080fd2efae3f1dc41c2fa2 | [
"Apache-2.0"
] | null | null | null | main/dashboard.cpp | lucasnunes/tcc_source | 695610ec134d946694080fd2efae3f1dc41c2fa2 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2014 Lucas Nunes de Lima
*
* 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... | 26.627907 | 85 | 0.636681 | lucasnunes |
7241690856675888fdc257715c9d94e3c534ef4f | 2,282 | cpp | C++ | codeforces/599E.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | 3 | 2017-09-17T09:12:50.000Z | 2018-04-06T01:18:17.000Z | codeforces/599E.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | codeforces/599E.cpp | swwind/code | 25c4c5ca2f8578ba792b44cbdf44286d39dfb7e0 | [
"WTFPL"
] | null | null | null | #include <bits/stdc++.h>
#define N 100020
#define ll long long
using namespace std;
inline int read(){
int x=0,f=1;char ch=getchar();
while(ch>'9'||ch<'0')ch=='-'&&(f=0)||(ch=getchar());
while(ch<='9'&&ch>='0')x=(x<<3)+(x<<1)+ch-'0',ch=getchar();
return f?x:-x;
}
ll dp[13][1<<13];
int ex[13], ey[13];
int ax[10... | 23.285714 | 71 | 0.402279 | swwind |
72416e20b6daf9202ca650c6f209a92a71ecf810 | 3,968 | cpp | C++ | src/RK4Integrator.cpp | gitter-badger/sbmlsolver | c92936832297ea1d2ad7f17223b68ada43c8f0b2 | [
"Apache-2.0"
] | null | null | null | src/RK4Integrator.cpp | gitter-badger/sbmlsolver | c92936832297ea1d2ad7f17223b68ada43c8f0b2 | [
"Apache-2.0"
] | null | null | null | src/RK4Integrator.cpp | gitter-badger/sbmlsolver | c92936832297ea1d2ad7f17223b68ada43c8f0b2 | [
"Apache-2.0"
] | null | null | null | /*
* RK4Integrator.cpp
*
* Created on: Jul 22, 2014
* Author: andy
*/
#include <RK4Integrator.h>
#include <rrExecutableModel.h>
extern "C" {
#include <clapack/f2c.h>
#include <clapack/clapack.h>
}
namespace rr
{
RK4Integrator::RK4Integrator(ExecutableModel *m, const SimulateOptions *o)
{
Log(Logger::... | 20.666667 | 74 | 0.590726 | gitter-badger |
724200aec014f9fed920f59d271ef751f882b96a | 809 | hpp | C++ | src/model/Object.hpp | Vict0rynox/ft_retro | fe3ab75fb86406367837ba393e1c221133590bf4 | [
"MIT"
] | null | null | null | src/model/Object.hpp | Vict0rynox/ft_retro | fe3ab75fb86406367837ba393e1c221133590bf4 | [
"MIT"
] | null | null | null | src/model/Object.hpp | Vict0rynox/ft_retro | fe3ab75fb86406367837ba393e1c221133590bf4 | [
"MIT"
] | null | null | null | //
// Created by Victor Vasiliev on 11/4/17.
//
#ifndef FT_RETRO_OBJECT_HPP
#define FT_RETRO_OBJECT_HPP
#include <string>
#include "Position.hpp"
namespace Model {
class Object {
protected:
const std::string name;
Model::Position position;
bool isDestroyed;
bool isNotIntersection;
public:
Object();
v... | 21.289474 | 69 | 0.730532 | Vict0rynox |
72445ea49f2159927813b1208056f7637cc1251b | 6,815 | hpp | C++ | src/EngineImpl/EngineObjectSerilization.hpp | cyf-gh/HoneyGame | 2448f4574c6e1a847f1395d97a3186d79b499b22 | [
"MIT"
] | 3 | 2021-11-27T01:24:26.000Z | 2021-12-31T07:17:38.000Z | src/EngineImpl/EngineObjectSerilization.hpp | cyf-gh/HGEngine | 2448f4574c6e1a847f1395d97a3186d79b499b22 | [
"MIT"
] | null | null | null | src/EngineImpl/EngineObjectSerilization.hpp | cyf-gh/HGEngine | 2448f4574c6e1a847f1395d97a3186d79b499b22 | [
"MIT"
] | 1 | 2021-10-01T07:18:58.000Z | 2021-10-01T07:18:58.000Z | #pragma once
#include <Serialization.h>
#include <Memory.h>
#include "EngineImpl.h"
#include "Scene.h"
#include "Transform.hpp"
#include "Animation.h"
#include "Collision.h"
#include "Timer.hpp"
#include "RigidBody.h"
namespace HGEngine {
namespace V1SDL {
class GameObjectFactory : HG::Memory::NonCopyable {
public:
... | 29.375 | 144 | 0.759208 | cyf-gh |
724da682e8d7cd313ec97c14438a25c420bf930b | 5,838 | cpp | C++ | src/nvilidar_node.cpp | nvilidar/nvilidar_ros | dc03c44e581cb328f6dbdd23f63344c0e6a73d4b | [
"BSD-3-Clause"
] | null | null | null | src/nvilidar_node.cpp | nvilidar/nvilidar_ros | dc03c44e581cb328f6dbdd23f63344c0e6a73d4b | [
"BSD-3-Clause"
] | 1 | 2021-11-22T06:44:48.000Z | 2021-12-09T02:53:01.000Z | src/nvilidar_node.cpp | nvilidar/nvilidar_ros | dc03c44e581cb328f6dbdd23f63344c0e6a73d4b | [
"BSD-3-Clause"
] | null | null | null | #include "ros/ros.h"
#include <vector>
#include <iostream>
#include <string.h>
#include "sensor_msgs/LaserScan.h"
#include "nvilidar_process.h"
#include "nvilidar_def.h"
using namespace nvilidar;
#define ROSVerision "1.0.8"
int main(int argc, char * argv[])
{
ros::init(argc, argv, "nvilidar_node");
printf(... | 41.112676 | 118 | 0.585988 | nvilidar |
724fc2230c9f69d15e2f4c82f8bf86e1f3e1dc55 | 1,113 | cpp | C++ | aws-cpp-sdk-chime/source/model/InviteUsersResult.cpp | Neusoft-Technology-Solutions/aws-sdk-cpp | 88c041828b0dbee18a297c3cfe98c5ecd0706d0b | [
"Apache-2.0"
] | 1 | 2022-02-12T08:09:30.000Z | 2022-02-12T08:09:30.000Z | aws-cpp-sdk-chime/source/model/InviteUsersResult.cpp | Neusoft-Technology-Solutions/aws-sdk-cpp | 88c041828b0dbee18a297c3cfe98c5ecd0706d0b | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-chime/source/model/InviteUsersResult.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2022-03-23T15:17:18.000Z | 2022-03-23T15:17:18.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/chime/model/InviteUsersResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/u... | 25.295455 | 102 | 0.747529 | Neusoft-Technology-Solutions |
725166c08c6ed5f09f09afe22b10f3f4f85f1714 | 1,490 | cc | C++ | elec/DVThreshSensor.cc | paulkefer/cardioid | 59c07b714d8b066b4f84eb50487c36f6eadf634c | [
"MIT-0",
"MIT"
] | 33 | 2018-12-12T20:05:06.000Z | 2021-09-26T13:30:16.000Z | elec/DVThreshSensor.cc | paulkefer/cardioid | 59c07b714d8b066b4f84eb50487c36f6eadf634c | [
"MIT-0",
"MIT"
] | 5 | 2019-04-25T11:34:43.000Z | 2021-11-14T04:35:37.000Z | elec/DVThreshSensor.cc | paulkefer/cardioid | 59c07b714d8b066b4f84eb50487c36f6eadf634c | [
"MIT-0",
"MIT"
] | 15 | 2018-12-21T22:44:59.000Z | 2021-08-29T10:30:25.000Z | #include "DVThreshSensor.hh"
#include "Simulate.hh"
DVThreshSensor::DVThreshSensor(const SensorParms& sp,
const Anatomy& anatomy,
const PotentialData& vdata,
MPI_Comm comm)
: Sensor(sp),
vdata_(vdata),
comm_(comm)
{
MPI_Comm com... | 29.215686 | 164 | 0.614765 | paulkefer |
725277bad64b39c1f3b6854a6039d141cbdcae56 | 1,199 | cpp | C++ | 1-10/Euler7.cpp | Adhesh148/Euler-Project | 857fe666b267a8bc156b2d4b8e54260f53ccd158 | [
"MIT"
] | 2 | 2020-08-09T17:17:27.000Z | 2020-08-10T01:13:07.000Z | 1-10/Euler7.cpp | Adhesh148/Euler-Project | 857fe666b267a8bc156b2d4b8e54260f53ccd158 | [
"MIT"
] | null | null | null | 1-10/Euler7.cpp | Adhesh148/Euler-Project | 857fe666b267a8bc156b2d4b8e54260f53ccd158 | [
"MIT"
] | null | null | null | /******************************************
* AUTHOR : AdheshR*
* Problem Statement: What is the Nth prime number?
* Comment: Require faster method. Does not pass all test cases. Times out.
******************************************/
#include <bits/stdc++.h>
using namespace std;
long long int findNPrime(int N);
bool i... | 18.734375 | 74 | 0.526272 | Adhesh148 |
725444c0d5869bff73466e01917be6549a8cb9d4 | 1,312 | cpp | C++ | debug/atomics/qss/sin_function.cpp | jorexe/haikunet | dd1697fdc4590de8d687816ec470e40193619b8f | [
"MIT"
] | 2 | 2021-05-05T18:22:19.000Z | 2022-01-21T13:50:27.000Z | debug/atomics/qss/sin_function.cpp | jorexe/haikunet | dd1697fdc4590de8d687816ec470e40193619b8f | [
"MIT"
] | null | null | null | debug/atomics/qss/sin_function.cpp | jorexe/haikunet | dd1697fdc4590de8d687816ec470e40193619b8f | [
"MIT"
] | 1 | 2021-05-05T18:05:11.000Z | 2021-05-05T18:05:11.000Z | #include "sin_function.h"
void sin_function::init(double t,...) {
va_list parameters;
va_start(parameters, t);
sigma=INF;
for (int i=0;i<10;i++){
y[i]=0;
u[i]=0;
};
order=1;
}
double sin_function::ta(double t) {
return sigma;
}
void sin_function::dint(double t) {
sigma=INF;
}
void sin_function::dext... | 17.263158 | 67 | 0.51753 | jorexe |
72552a27087650526330ce8bc4cddfc193cba1fd | 6,282 | cpp | C++ | samples/old/sample_condens_tracking.cpp | gtmtg/cvdrone | ef736dc7a2a1a806f7cea4088268e439e53c1f33 | [
"BSD-3-Clause"
] | 1 | 2015-01-04T16:22:31.000Z | 2015-01-04T16:22:31.000Z | cvdrone/samples/old/sample_condens_tracking.cpp | MLHCoderTeam/ARDrone | b7b51a2e8c172944c04e7b64bb792b68931e6d3f | [
"MIT"
] | null | null | null | cvdrone/samples/old/sample_condens_tracking.cpp | MLHCoderTeam/ARDrone | b7b51a2e8c172944c04e7b64bb792b68931e6d3f | [
"MIT"
] | 1 | 2018-02-28T17:29:35.000Z | 2018-02-28T17:29:35.000Z | #include "ardrone/ardrone.h"
#include "opencv2/legacy/legacy.hpp"
#include "opencv2/legacy/compat.hpp"
// --------------------------------------------------------------------------
// main(Number of arguments, Argument values)
// Description : This is the entry point of the program.
// Return value : SUCCESS:0 ERROR... | 35.094972 | 121 | 0.550143 | gtmtg |
72567483a939e0c7e0b7ecd1f4f8ac8eab46d3d9 | 2,682 | cpp | C++ | src/pool.cpp | yudhik11/OpenGL-LOZ | c1add7b09df2b99e1c82c21b56ba18b1cf7c4846 | [
"MIT"
] | 1 | 2019-08-29T02:01:20.000Z | 2019-08-29T02:01:20.000Z | src/pool.cpp | yudhik11/OpenGL-LOZ | c1add7b09df2b99e1c82c21b56ba18b1cf7c4846 | [
"MIT"
] | null | null | null | src/pool.cpp | yudhik11/OpenGL-LOZ | c1add7b09df2b99e1c82c21b56ba18b1cf7c4846 | [
"MIT"
] | null | null | null | #include "pool.h"
#include "main.h"
Pool::Pool(float x, float y, color_t color) {
this->position = glm::vec3(x, y, 0);
this->rotation = 0;
this->angular_speed = 0.5;
this->level_angle = 0;
speed = 0.2;
static const GLfloat vertex_buffer_data[] = {
-12345,-12345,-12345,
-12345,-12... | 31.552941 | 100 | 0.55481 | yudhik11 |
725848bbef08765ee3c2fd3a438ff55a57a816d3 | 314 | cpp | C++ | src/HttpException.cpp | Andreev-Sergey/diadocsdk-cpp | 01d9fa2b90bc6f42ef3d9c20f29207b3a5bf6eda | [
"MIT"
] | 7 | 2016-05-31T17:37:54.000Z | 2022-01-17T14:28:18.000Z | src/HttpException.cpp | Andreev-Sergey/diadocsdk-cpp | 01d9fa2b90bc6f42ef3d9c20f29207b3a5bf6eda | [
"MIT"
] | 22 | 2017-02-07T09:34:02.000Z | 2021-09-06T08:08:34.000Z | src/HttpException.cpp | Andreev-Sergey/diadocsdk-cpp | 01d9fa2b90bc6f42ef3d9c20f29207b3a5bf6eda | [
"MIT"
] | 23 | 2016-06-07T06:11:47.000Z | 2020-10-06T13:00:21.000Z | #include "StdAfx.h"
#include "HttpException.h"
HttpException::HttpException(const std::string& message, DWORD statusCode, const std::string& serverMessage)
: std::runtime_error(message + ": " + serverMessage)
, StatusCode(statusCode)
, ServerMessage(serverMessage)
{
}
HttpException::~HttpException(void)
{
}
| 22.428571 | 108 | 0.751592 | Andreev-Sergey |
725925ee10fb01c182f23a7f473aae8e5d04e469 | 1,832 | hpp | C++ | DocTypeNode.hpp | chrisoldwood/XML | 78913e7b9fbc1fbfec3779652d034ebd150668bc | [
"MIT"
] | 1 | 2020-09-11T13:21:05.000Z | 2020-09-11T13:21:05.000Z | DocTypeNode.hpp | chrisoldwood/XML | 78913e7b9fbc1fbfec3779652d034ebd150668bc | [
"MIT"
] | null | null | null | DocTypeNode.hpp | chrisoldwood/XML | 78913e7b9fbc1fbfec3779652d034ebd150668bc | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
//! \file DocTypeNode.hpp
//! \brief The DocTypeNode class declaration.
//! \author Chris Oldwood
// Check for previous inclusion
#ifndef XML_DOCTYPENODE_HPP
#define XML_DOCTYPENODE_HPP
#if _MSC_VER > 1000
#pragma once
#endif
#includ... | 21.302326 | 80 | 0.566048 | chrisoldwood |
725a6fee179a041420c62fba2778f9c48875c24f | 885 | cpp | C++ | plugin_III/game_III/COneSheet.cpp | gta-chaos-mod/plugin-sdk | e3bf176337774a2afc797a47825f81adde78e899 | [
"Zlib"
] | 368 | 2015-01-01T21:42:00.000Z | 2022-03-29T06:22:22.000Z | plugin_III/game_III/COneSheet.cpp | SteepCheat/plugin-sdk | a17c5d933cb8b06e4959b370092828a6a7aa00ef | [
"Zlib"
] | 89 | 2016-05-08T06:42:36.000Z | 2022-03-29T06:49:09.000Z | plugin_III/game_III/COneSheet.cpp | SteepCheat/plugin-sdk | a17c5d933cb8b06e4959b370092828a6a7aa00ef | [
"Zlib"
] | 179 | 2015-02-03T23:41:17.000Z | 2022-03-26T08:27:16.000Z | /*
Plugin-SDK (Grand Theft Auto 3) source file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#include "COneSheet.h"
PLUGIN_SOURCE_FILE
int addrof(COneSheet::AddToList) = ADDRESS_BY_VERSION(0x512650, 0x512860, 0x51... | 36.875 | 101 | 0.769492 | gta-chaos-mod |
725a8de4df3ddf457f4cb88bfedb7bda0b6cadcc | 4,830 | cpp | C++ | gbEmu/src/Gb.cpp | Mesiow/gbEmu | fe73b1a919517a34d30dd7a439efffbe68d8644a | [
"MIT"
] | 2 | 2021-04-27T00:54:47.000Z | 2021-06-07T13:41:25.000Z | gbEmu/src/Gb.cpp | Mesiow/gbEmu | fe73b1a919517a34d30dd7a439efffbe68d8644a | [
"MIT"
] | null | null | null | gbEmu/src/Gb.cpp | Mesiow/gbEmu | fe73b1a919517a34d30dd7a439efffbe68d8644a | [
"MIT"
] | null | null | null | #include "../include/Gb.h"
namespace gbEmu {
Gb::Gb()
:mmu(), cpu(&mmu), ppu(&mmu), joypad(&mmu)
{
mmu.connectJoypad(&joypad);
//cart.load("roms/Kirby's Dream Land.gb");
//cart.load("roms/Pokemon Red.gb");
//cart.load("roms/SUPERMAR.gbc");
//cart.lo... | 28.75 | 68 | 0.478882 | Mesiow |
725b571610b47c931e2d3339b7b584a39cd9c48d | 383 | hpp | C++ | include/experimental/status_value.hpp | jwakely/std-make | f09d052983ace70cf371bb8ddf78d4f00330bccd | [
"BSL-1.0"
] | 105 | 2015-01-24T13:26:41.000Z | 2022-02-18T15:36:53.000Z | include/experimental/status_value.hpp | jwakely/std-make | f09d052983ace70cf371bb8ddf78d4f00330bccd | [
"BSL-1.0"
] | 37 | 2015-09-04T06:57:10.000Z | 2021-09-09T18:01:44.000Z | include/experimental/status_value.hpp | jwakely/std-make | f09d052983ace70cf371bb8ddf78d4f00330bccd | [
"BSL-1.0"
] | 23 | 2015-01-27T11:09:18.000Z | 2021-10-04T02:23:30.000Z | // 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)
//
// (C) Copyright 2019 Vicente J. Botet Escriba
#ifndef JASEL_EXPERIMENTAL_STATUS_VALUE_HPP
#define JASEL_EXPERIMENTAL_STATUS_VALUE_HPP
#include <experimental/f... | 29.461538 | 68 | 0.793734 | jwakely |
7265ba91a6d32c39d10da1194ee098b04f73e398 | 532 | cpp | C++ | practice/linked_list/reverse_ll.cpp | sidgairo18/Programming-Practice | 348ad38452fa9fa7b7302161455d3b3f697734da | [
"MIT"
] | 2 | 2018-06-26T09:52:14.000Z | 2018-07-12T15:02:01.000Z | practice/linked_list/reverse_ll.cpp | sidgairo18/Programming-Practice | 348ad38452fa9fa7b7302161455d3b3f697734da | [
"MIT"
] | null | null | null | practice/linked_list/reverse_ll.cpp | sidgairo18/Programming-Practice | 348ad38452fa9fa7b7302161455d3b3f697734da | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
// a recursive version
// it is more elegant
//
struct Node
{
int data;
struct Node *next;
}
// Should reverse list and return new head.
struct Node* reverseList(struct Node *head)
{
// code here
// return head of reversed list
if(head->next == NULL)... | 15.647059 | 52 | 0.62218 | sidgairo18 |
7267b5bc9d06ccd539dc8d8bdf8978cc162c4bf7 | 6,205 | cc | C++ | RecoJets/JetProducers/plugins/SubEventGenJetProducer.cc | flodamas/cmssw | fff9de2a54e62debab81057f8d6f8c82c2fd3dd6 | [
"Apache-2.0"
] | null | null | null | RecoJets/JetProducers/plugins/SubEventGenJetProducer.cc | flodamas/cmssw | fff9de2a54e62debab81057f8d6f8c82c2fd3dd6 | [
"Apache-2.0"
] | null | null | null | RecoJets/JetProducers/plugins/SubEventGenJetProducer.cc | flodamas/cmssw | fff9de2a54e62debab81057f8d6f8c82c2fd3dd6 | [
"Apache-2.0"
] | null | null | null |
#include "FWCore/Framework/interface/MakerMacros.h"
#include "RecoJets/JetProducers/plugins/SubEventGenJetProducer.h"
#include "FWCore/Utilities/interface/Exception.h"
#include "FWCore/Utilities/interface/isFinite.h"
#include "RecoJets/JetProducers/interface/JetSpecific.h"
#include "DataFormats/HepMCCandidate/interfac... | 32.317708 | 102 | 0.682031 | flodamas |
726928ace6d3576618dca67f2cc3d39b5eed5662 | 1,276 | hpp | C++ | vegastrike/boost/1_28/boost/python/from_python.hpp | Ezeer/VegaStrike_win32FR | 75891b9ccbdb95e48e15d3b4a9cd977955b97d1f | [
"MIT"
] | null | null | null | vegastrike/boost/1_28/boost/python/from_python.hpp | Ezeer/VegaStrike_win32FR | 75891b9ccbdb95e48e15d3b4a9cd977955b97d1f | [
"MIT"
] | null | null | null | vegastrike/boost/1_28/boost/python/from_python.hpp | Ezeer/VegaStrike_win32FR | 75891b9ccbdb95e48e15d3b4a9cd977955b97d1f | [
"MIT"
] | null | null | null | // Copyright David Abrahams 2002. Permission to copy, use,
// modify, sell and distribute this software is granted provided this
// copyright notice appears in all copies. This software is provided
// "as is" without express or implied warranty, and with no claim as
// to its suitability for any purpose.
#ifndef FROM_P... | 25.52 | 79 | 0.731975 | Ezeer |
726be744b2811e53c76fd038f580d4111cf5e1c4 | 756 | cpp | C++ | src/util/util_env.cpp | ChaosInitiative/dxvk-native | 516c0a44b82d4b3d5000762594e0424eb383b9dd | [
"Zlib"
] | 3 | 2020-12-20T08:53:33.000Z | 2022-01-20T16:46:39.000Z | src/util/util_env.cpp | ChaosInitiative/dxvk-native | 516c0a44b82d4b3d5000762594e0424eb383b9dd | [
"Zlib"
] | null | null | null | src/util/util_env.cpp | ChaosInitiative/dxvk-native | 516c0a44b82d4b3d5000762594e0424eb383b9dd | [
"Zlib"
] | null | null | null | #include "util_env.h"
namespace dxvk::env {
#ifndef DXVK_NATIVE
constexpr char dirSlash = '\\';
#else
constexpr char dirSlash = '/';
#endif
std::string getEnvVar(const char* name) {
#ifdef DXVK_NATIVE
char* result = std::getenv(name);
return (result)
? result
: "";
#else
std::vector<WC... | 18.9 | 92 | 0.616402 | ChaosInitiative |
726d09348dc66999cbe9d81150f434b8a8db666f | 5,942 | cpp | C++ | GUI/control.cpp | MasterLufier/FT800-FT813 | 9297b7bfb26d7fe7b0f032b9d8145b3af975ac09 | [
"MIT"
] | null | null | null | GUI/control.cpp | MasterLufier/FT800-FT813 | 9297b7bfb26d7fe7b0f032b9d8145b3af975ac09 | [
"MIT"
] | null | null | null | GUI/control.cpp | MasterLufier/FT800-FT813 | 9297b7bfb26d7fe7b0f032b9d8145b3af975ac09 | [
"MIT"
] | null | null | null | #include "control.h"
namespace FTGUI
{
Button::Button(string label, Widget * parent) :
Rectangle(parent)
{
m_name = "Button";
m_label = new Label(label, this);
m_label->setHorizontalAlignment(Label::HCenter);
m_label->setVerticalAlignment(Label::VCenter);
m_label->setColor(m_theme->onPrimary(... | 21.070922 | 83 | 0.551498 | MasterLufier |
726e1a8ee51fb97176e7fc711d90dfa8c7e9a528 | 279 | hpp | C++ | WICWIU_src/Utils.hpp | KwonYeseong/WICWIU_stamp | 690c3f194e507b59510229ed12a16f759235342c | [
"Apache-2.0"
] | 3 | 2019-03-03T10:39:20.000Z | 2020-08-10T12:45:06.000Z | WICWIU_src/Utils.hpp | yoondonghwee/WICWIU | 2c515108985abf91802dd02a423be94afc883b2e | [
"Apache-2.0"
] | null | null | null | WICWIU_src/Utils.hpp | yoondonghwee/WICWIU | 2c515108985abf91802dd02a423be94afc883b2e | [
"Apache-2.0"
] | null | null | null | #ifndef UTILS_H_
#define UTILS_H_ value
#ifdef __CUDNN__
#define MAX_CUDA_DEVICE 32
int GetCurrentCudaDevice();
void GetKernelParameters(int totalThread, int *pNoBlock, int *pThreadsPerBlock, int blockSize = 128);
#endif // ifdef __CUDNN__
#endif // ifndef UTILS_H_
| 17.4375 | 101 | 0.763441 | KwonYeseong |
726fb762ca049585f89ed29790b2ac8d91b85749 | 1,942 | cpp | C++ | mini/threading/event.cpp | geralltf/mini-tor | 61d58749431fba970e19e0d35a53811956c69b16 | [
"MIT"
] | 380 | 2016-07-20T10:22:37.000Z | 2022-03-30T08:47:44.000Z | mini/threading/event.cpp | geralltf/mini-tor | 61d58749431fba970e19e0d35a53811956c69b16 | [
"MIT"
] | 24 | 2016-08-13T12:56:03.000Z | 2021-05-26T01:59:17.000Z | mini/threading/event.cpp | geralltf/mini-tor | 61d58749431fba970e19e0d35a53811956c69b16 | [
"MIT"
] | 105 | 2016-07-20T14:34:52.000Z | 2022-02-17T13:31:25.000Z | #include "event.h"
#include <mini/collections/list.h>
#include <type_traits>
namespace mini::threading {
event::event(
reset_type type,
bool initial_state
)
{
_event = CreateEvent(NULL, (BOOL)type, initial_state, NULL);
}
event::~event(
void
)
{
CloseHandle(_event);
}
void
event::set(
void
)
{
... | 16.457627 | 110 | 0.663749 | geralltf |
7271e994bcf6bfa9176fa08e62727f15d22d8b51 | 2,026 | cpp | C++ | src/Reader/IniConfigReader.cpp | fcaillaud/SARAH | ca79c7d9449cf07eec9d5cc13293ec0c128defc1 | [
"MIT"
] | null | null | null | src/Reader/IniConfigReader.cpp | fcaillaud/SARAH | ca79c7d9449cf07eec9d5cc13293ec0c128defc1 | [
"MIT"
] | null | null | null | src/Reader/IniConfigReader.cpp | fcaillaud/SARAH | ca79c7d9449cf07eec9d5cc13293ec0c128defc1 | [
"MIT"
] | null | null | null | #include "IniConfigReader.hpp"
namespace Sarah
{
namespace IO
{
IniConfigReader::IniConfigReader(std::string p_filePath):
BaseReader(p_filePath)
{
}
bool IniConfigReader::Read()
{
unsigned int vNumLine = 0;
boost::smatch vMatches;
const boost::regex vSectRegex("\\s*\\[.+\\]\\s*");
std::string vLine... | 25.974359 | 141 | 0.63771 | fcaillaud |
72724c64c69adc56877a8001b9e6686ba46a87a2 | 1,379 | cpp | C++ | src/Text.cpp | JohnBobSmith/SpaceyRocks | 3ee95fbdd11f2f7c972b869931cce6c426c878d0 | [
"MIT"
] | 1 | 2019-04-19T05:08:25.000Z | 2019-04-19T05:08:25.000Z | src/Text.cpp | JohnBobSmith/SpaceyRocks | 3ee95fbdd11f2f7c972b869931cce6c426c878d0 | [
"MIT"
] | null | null | null | src/Text.cpp | JohnBobSmith/SpaceyRocks | 3ee95fbdd11f2f7c972b869931cce6c426c878d0 | [
"MIT"
] | null | null | null | #include "Resources.h"
#include "Text.h"
#include "G_Miscfuncandvar.h"
Text::Text()
{
//Screen dimensions
G_Miscfuncandvar gmiscfuncandvar;
//Load our font
blockFont.loadFromFile( PKGDATADIR "/fonts/ehsmb.ttf");
//Load our game over text
gameOverText.setFont(blockFont);
gameOverText.setSt... | 31.340909 | 100 | 0.725163 | JohnBobSmith |
72725dd87581dfa00f6c62f946932c03bf3f3fd3 | 1,937 | cpp | C++ | src/point_cloud_assembler_srv.cpp | StratomInc/laser_assembler | 25640f99d043b37e34310e5e0194496b8cc55895 | [
"Apache-2.0"
] | null | null | null | src/point_cloud_assembler_srv.cpp | StratomInc/laser_assembler | 25640f99d043b37e34310e5e0194496b8cc55895 | [
"Apache-2.0"
] | null | null | null | src/point_cloud_assembler_srv.cpp | StratomInc/laser_assembler | 25640f99d043b37e34310e5e0194496b8cc55895 | [
"Apache-2.0"
] | 1 | 2021-04-08T15:03:40.000Z | 2021-04-08T15:03:40.000Z | // Copyright 2018 Open Source Robotics Foundation, 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 appli... | 29.348485 | 125 | 0.740836 | StratomInc |
727886d722fca616a9c4ac7ed4292cd9bd757a94 | 225 | cpp | C++ | tests/main.cpp | arthurchaloin/indie | 84fa7f0864c54e4b35620235ca4e852d7b85fffd | [
"MIT"
] | null | null | null | tests/main.cpp | arthurchaloin/indie | 84fa7f0864c54e4b35620235ca4e852d7b85fffd | [
"MIT"
] | null | null | null | tests/main.cpp | arthurchaloin/indie | 84fa7f0864c54e4b35620235ca4e852d7b85fffd | [
"MIT"
] | null | null | null | /*
** EPITECH PROJECT, 2017
** indie
** File description:
** A file for indie - Paul Laffitte
*/
#include <gtest/gtest.h>
int
main(int argc, char **argv)
{
testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
| 13.235294 | 38 | 0.671111 | arthurchaloin |
727a625de94b958e82e00381a3cfe061e6d77dcb | 6,689 | cpp | C++ | Tests/utils/FileHandle_Test.cpp | Longri/cachebox3.0_native | 31e41b980901d5798689cd0d2e0be0e474e5489b | [
"Apache-2.0"
] | null | null | null | Tests/utils/FileHandle_Test.cpp | Longri/cachebox3.0_native | 31e41b980901d5798689cd0d2e0be0e474e5489b | [
"Apache-2.0"
] | null | null | null | Tests/utils/FileHandle_Test.cpp | Longri/cachebox3.0_native | 31e41b980901d5798689cd0d2e0be0e474e5489b | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2018 Longri
*
* This program 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 3 of the License, or (at your option) any later version.
*
* This program is distributed... | 30.543379 | 113 | 0.685005 | Longri |
727b41d53150f4cc5c2a53a47e5bd2c77ebe1c83 | 477 | cpp | C++ | build/b4-e6-2d-e0-5c-5d/user_app.cpp | chp-lab/nx2003-kidbright | 1660fccae722f61b56194cb44857c3e724e4c159 | [
"MIT"
] | null | null | null | build/b4-e6-2d-e0-5c-5d/user_app.cpp | chp-lab/nx2003-kidbright | 1660fccae722f61b56194cb44857c3e724e4c159 | [
"MIT"
] | null | null | null | build/b4-e6-2d-e0-5c-5d/user_app.cpp | chp-lab/nx2003-kidbright | 1660fccae722f61b56194cb44857c3e724e4c159 | [
"MIT"
] | null | null | null | #include <Arduino.h>
#include <WiFi.h>
#include <WiFiClient.h>
#include <WiFiAP.h>
#include <WebServer.h>
#include <NX2003BUZZER.h>
NX2003BUZZER music = NX2003BUZZER();
void setup()
{
music.begin();
}
void loop()
{
music.song((std::vector<int>{262,523,220,440,233,466,-1,-1,175,349,147,294,156,311,-1,-1,1... | 19.08 | 244 | 0.668763 | chp-lab |
727b96770131694f5aa981bbc58a6a8113311d46 | 261 | cpp | C++ | judges/codeforces/exercises/anton_and_letters.cpp | eduardonunes2525/competitive-programming | 0f6bdc573b4d03d1ed20a2b77ec5388dca1ee47b | [
"MIT"
] | null | null | null | judges/codeforces/exercises/anton_and_letters.cpp | eduardonunes2525/competitive-programming | 0f6bdc573b4d03d1ed20a2b77ec5388dca1ee47b | [
"MIT"
] | 1 | 2018-10-17T11:53:02.000Z | 2018-10-17T11:54:42.000Z | judges/codeforces/exercises/anton_and_letters.cpp | eduardonunes2525/competitive-programming | 0f6bdc573b4d03d1ed20a2b77ec5388dca1ee47b | [
"MIT"
] | 1 | 2018-10-17T12:14:04.000Z | 2018-10-17T12:14:04.000Z | #include<bits/stdc++.h>
using namespace std;
int main(){
string s; getline(cin, s);
set<char> st;
for(auto c : s)
if((c >= 97 and c<= 122) or (c >= 65 and c<= 90))
st.insert(c);
cout << st.size() << "\n";
return 0;
}
| 16.3125 | 57 | 0.482759 | eduardonunes2525 |
727dfdb90f9080b6e09f26186a7b5b9dcacae796 | 749 | cpp | C++ | mod02/ex00/Fixed.cpp | paozer/piscine_cpp | 449d4a60b3c50c7ba6d94e38a7b632b5f447a438 | [
"Unlicense"
] | null | null | null | mod02/ex00/Fixed.cpp | paozer/piscine_cpp | 449d4a60b3c50c7ba6d94e38a7b632b5f447a438 | [
"Unlicense"
] | null | null | null | mod02/ex00/Fixed.cpp | paozer/piscine_cpp | 449d4a60b3c50c7ba6d94e38a7b632b5f447a438 | [
"Unlicense"
] | 2 | 2021-01-31T13:52:11.000Z | 2021-05-19T18:36:17.000Z | #include "Fixed.hpp"
const int Fixed::_binary_point = 8;
Fixed::Fixed() : _raw(0) { std::cout << "Default constructor called" << std::endl; }
Fixed::~Fixed() { std::cout << "Destructor called" << std::endl; }
Fixed::Fixed(const Fixed& other)
{
std::cout << "Copy constructor called" << std::endl;
*this = oth... | 22.029412 | 84 | 0.623498 | paozer |
727e7f1c4a9cd522f6b8468b5f15f190cf532159 | 2,441 | cpp | C++ | jbmc/src/java_bytecode/load_method_by_regex.cpp | lpmi-13/cbmc | dc4ffae64430ac5b1c971da44ce0dba189a5b6bf | [
"BSD-4-Clause"
] | null | null | null | jbmc/src/java_bytecode/load_method_by_regex.cpp | lpmi-13/cbmc | dc4ffae64430ac5b1c971da44ce0dba189a5b6bf | [
"BSD-4-Clause"
] | null | null | null | jbmc/src/java_bytecode/load_method_by_regex.cpp | lpmi-13/cbmc | dc4ffae64430ac5b1c971da44ce0dba189a5b6bf | [
"BSD-4-Clause"
] | null | null | null |
/*******************************************************************\
Module: Java Bytecode
Author: Diffblue Ltd.
\*******************************************************************/
#include "load_method_by_regex.h"
#include <regex>
#include <util/symbol_table.h>
/// For a given user provided pattern, return ... | 32.546667 | 78 | 0.669398 | lpmi-13 |
727ea4f7adc197c7824460b9f2a8fcb17a618b5a | 6,269 | hh | C++ | dune/xt/grid/grids.hh | dune-community/dune-xt-grid | 3453f6619fabc016beaf32409627fec8712f3ef9 | [
"BSD-2-Clause"
] | 2 | 2016-04-04T08:06:07.000Z | 2020-02-08T04:10:38.000Z | dune/xt/grid/grids.hh | dune-community/dune-xt-grid | 3453f6619fabc016beaf32409627fec8712f3ef9 | [
"BSD-2-Clause"
] | 77 | 2016-01-24T22:11:21.000Z | 2020-03-25T08:30:31.000Z | dune/xt/grid/grids.hh | dune-community/dune-xt-grid | 3453f6619fabc016beaf32409627fec8712f3ef9 | [
"BSD-2-Clause"
] | 4 | 2016-11-08T10:12:44.000Z | 2020-02-08T04:10:41.000Z | // This file is part of the dune-xt-grid project:
// https://github.com/dune-community/dune-xt-grid
// Copyright 2009-2018 dune-xt-grid developers and contributors. All rights reserved.
// License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
// or GPL-2.0+ (http://opensou... | 31.984694 | 100 | 0.63471 | dune-community |
72819b0e64862f2e0e249903ce8470af40cf9153 | 32,754 | cc | C++ | 3rd_party/volfill/OccGridRLE.cc | yuxng/3DVP | 3551a31bc45d49e661f2140ea90b8bd83fe65e3b | [
"MIT"
] | 42 | 2016-07-03T22:16:47.000Z | 2021-03-30T22:23:46.000Z | 3rd_party/volfill/OccGridRLE.cc | PeiliangLi/3DVP | 3551a31bc45d49e661f2140ea90b8bd83fe65e3b | [
"MIT"
] | 2 | 2016-11-12T10:36:48.000Z | 2017-09-07T11:32:34.000Z | 3rd_party/volfill/OccGridRLE.cc | PeiliangLi/3DVP | 3551a31bc45d49e661f2140ea90b8bd83fe65e3b | [
"MIT"
] | 16 | 2016-08-06T01:20:40.000Z | 2020-07-13T14:59:35.000Z | /*
Brian Curless
Computer Graphics Laboratory
Stanford University
---------------------------------------------------------------------
Copyright (1997) The Board of Trustees of the Leland Stanford Junior
University. Except for commercial resale, lease, license or other
commercial transactions, permission is hereby... | 22.904895 | 119 | 0.619466 | yuxng |
7281a54b3ef722d55d66c03ef2864b1def76573d | 249 | cpp | C++ | Legacy/QFog2-MachO/QFogSource/Ansi_General/VECTOR_INST.cpp | artiste-qb-net/QFog-Pyodide | 9ce6ad7ef6a7f7a71bbcd4fe6a6a35a5f02e8744 | [
"BSD-3-Clause"
] | 87 | 2015-12-17T22:19:21.000Z | 2022-03-08T10:27:54.000Z | Legacy/QFog2-MachO/QFogSource/Ansi_General/VECTOR_INST.cpp | artiste-qb-net/QFog-Pyodide | 9ce6ad7ef6a7f7a71bbcd4fe6a6a35a5f02e8744 | [
"BSD-3-Clause"
] | 18 | 2016-02-18T15:08:36.000Z | 2021-03-10T00:52:36.000Z | Legacy/QFog2-MachO/QFogSource/Ansi_General/VECTOR_INST.cpp | artiste-qb-net/QFog-Pyodide | 9ce6ad7ef6a7f7a71bbcd4fe6a6a35a5f02e8744 | [
"BSD-3-Clause"
] | 34 | 2015-11-29T09:08:46.000Z | 2022-02-16T22:54:24.000Z | #include "VECTOR.cp"
#include "NODE.h"
#include "STRINGY.h"
template class VECTOR<USHORT>;
template class VECTOR<COMPLEX>;
template class VECTOR<DOUBLE>;
template class VECTOR<NODE *>;
template class VECTOR<STRINGY>;
template class VECTOR<SHORT>;
| 249 | 249 | 0.767068 | artiste-qb-net |
7282ae0314a78ba4f7b08e35c668c741d77384ab | 3,510 | cc | C++ | cpp/23/23b.cc | ckennelly/advent-of-code-2020 | c0ff6bb50b74873f6cc74aa432438a9e1d6aac06 | [
"Apache-2.0"
] | null | null | null | cpp/23/23b.cc | ckennelly/advent-of-code-2020 | c0ff6bb50b74873f6cc74aa432438a9e1d6aac06 | [
"Apache-2.0"
] | null | null | null | cpp/23/23b.cc | ckennelly/advent-of-code-2020 | c0ff6bb50b74873f6cc74aa432438a9e1d6aac06 | [
"Apache-2.0"
] | null | null | null | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <map>
#include <regex>
#include <set>
#include <string>
#include <vector>
#include "absl/container/flat_hash_map.h"
#include "absl/container/flat_hash_set.h"
#include "absl/strings/ascii.h"
#include "absl/strings/numbers.h"
#include "... | 27.421875 | 86 | 0.567806 | ckennelly |
728315381e7f7ba0fd191936e1bb95ae2cd15d3a | 3,077 | cc | C++ | localization/sparse_mapping/tools/localize.cc | nathantsoi/astrobee | bb0fc3e4110a14929bd4cf35c12b3c169bc6c756 | [
"Apache-2.0"
] | 629 | 2017-08-31T23:09:00.000Z | 2022-03-30T11:55:40.000Z | localization/sparse_mapping/tools/localize.cc | nathantsoi/astrobee | bb0fc3e4110a14929bd4cf35c12b3c169bc6c756 | [
"Apache-2.0"
] | 269 | 2018-05-05T12:31:16.000Z | 2022-03-30T22:04:11.000Z | localization/sparse_mapping/tools/localize.cc | nathantsoi/astrobee | bb0fc3e4110a14929bd4cf35c12b3c169bc6c756 | [
"Apache-2.0"
] | 248 | 2017-08-31T23:20:56.000Z | 2022-03-30T22:29:16.000Z | /* Copyright (c) 2017, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
*
* All rights reserved.
*
* The Astrobee platform is licensed under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with t... | 36.630952 | 89 | 0.653234 | nathantsoi |
728589903c6585c21588bc3609b009f31c6e32df | 572 | hpp | C++ | src/score/Score.hpp | rectoria/cpp_arcade | 72bff5ec97f90dcc05ff4079f7ba30d5af9fb147 | [
"MIT"
] | null | null | null | src/score/Score.hpp | rectoria/cpp_arcade | 72bff5ec97f90dcc05ff4079f7ba30d5af9fb147 | [
"MIT"
] | null | null | null | src/score/Score.hpp | rectoria/cpp_arcade | 72bff5ec97f90dcc05ff4079f7ba30d5af9fb147 | [
"MIT"
] | null | null | null | /*
** EPITECH PROJECT, 2018
** cpp_arcade
** File description:
**
*/
#ifndef SCORE_HPP
#define SCORE_HPP
#define SAVE_EXTENSION ".log"
#define SAVE_PATH "./.save/"
namespace Arcade{
class Score
{
public:
Score();
~Score();
public:
void addGame(std::string &);
std::map<std::string, std::string> getGameSta... | 17.875 | 67 | 0.664336 | rectoria |
72880b44f1c5a532e8d0452c43076991239254c0 | 3,131 | hpp | C++ | include/dca/phys/models/analytic_hamiltonians/util.hpp | PMDee/DCA | a8196ec3c88d07944e0499ff00358ea3c830b329 | [
"BSD-3-Clause"
] | 27 | 2018-08-02T04:28:23.000Z | 2021-07-08T02:14:20.000Z | include/dca/phys/models/analytic_hamiltonians/util.hpp | PMDee/DCA | a8196ec3c88d07944e0499ff00358ea3c830b329 | [
"BSD-3-Clause"
] | 200 | 2018-08-02T18:19:03.000Z | 2022-03-16T21:28:41.000Z | include/dca/phys/models/analytic_hamiltonians/util.hpp | PMDee/DCA | a8196ec3c88d07944e0499ff00358ea3c830b329 | [
"BSD-3-Clause"
] | 22 | 2018-08-15T15:50:00.000Z | 2021-09-30T13:41:46.000Z | // Copyright (C) 2018 ETH Zurich
// Copyright (C) 2018 UT-Battelle, LLC
// All rights reserved.
//
// See LICENSE for terms of usage.
// See CITATION.md for citation guidelines, if DCA++ is used for scientific publications.
//
// Author: Urs R. Haehner (haehneru@itp.phys.ethz.ch)
//
// This file provides utility functi... | 34.406593 | 100 | 0.705525 | PMDee |
7289002d01f4f9da506733556e686207fe86f0a4 | 765 | cpp | C++ | FootCommander.cpp | OmerK25/CPP-WarGame | 641921f65781ed2ee28b153012e0b8926696db11 | [
"MIT"
] | null | null | null | FootCommander.cpp | OmerK25/CPP-WarGame | 641921f65781ed2ee28b153012e0b8926696db11 | [
"MIT"
] | null | null | null | FootCommander.cpp | OmerK25/CPP-WarGame | 641921f65781ed2ee28b153012e0b8926696db11 | [
"MIT"
] | 1 | 2020-06-08T17:12:48.000Z | 2020-06-08T17:12:48.000Z | #include <vector>
#include "FootCommander.hpp"
#include <iostream>
void FootCommander::act(vector<vector<Soldier *>> &board, pair<int, int> location)
{
FootSoldier::act(board, location);
act_as_commander(board, location);
}
void FootCommander::act_as_commander(vector<vector<Soldier *>> &board, pair<int, int> lo... | 30.6 | 106 | 0.56732 | OmerK25 |
7291a4b2da4c02bfaca23a51fdc3be434cf32548 | 1,034 | cc | C++ | TC/DP-Practice-DIV1-300.cc | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 1 | 2018-08-28T19:58:40.000Z | 2018-08-28T19:58:40.000Z | TC/DP-Practice-DIV1-300.cc | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 2 | 2017-04-16T00:48:05.000Z | 2017-08-03T20:12:26.000Z | TC/DP-Practice-DIV1-300.cc | aajjbb/contest-files | b8842681b96017063a7baeac52ae1318bf59d74d | [
"Apache-2.0"
] | 4 | 2016-03-04T19:42:00.000Z | 2018-01-08T11:42:00.000Z | #include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <c... | 16.677419 | 64 | 0.647002 | aajjbb |
729697e6b1993a884f83d7e0d5953ac6d1b49f91 | 347 | cpp | C++ | code/source/common/events/KeyPressEvent.cpp | StuntHacks/infinite-dungeons | b462dd27c4e0f7285940e45d086b5d022fea23df | [
"MIT"
] | null | null | null | code/source/common/events/KeyPressEvent.cpp | StuntHacks/infinite-dungeons | b462dd27c4e0f7285940e45d086b5d022fea23df | [
"MIT"
] | null | null | null | code/source/common/events/KeyPressEvent.cpp | StuntHacks/infinite-dungeons | b462dd27c4e0f7285940e45d086b5d022fea23df | [
"MIT"
] | null | null | null | #include "common/events/KeyPressEvent.hpp"
namespace id {
namespace events {
KeyPressEvent::KeyPressEvent(int keyCode, State state) :
id::events::PressEvent(state),
m_keyCode(keyCode) { /* do nothing */ }
int KeyPressEvent::getKeyCode() {
return m_keyCode;
}
... | 24.785714 | 64 | 0.587896 | StuntHacks |
729a52697d4cad565ddcd4deffc2f0a061ac9ee4 | 1,813 | cpp | C++ | Mesh.cpp | rabinadk1/learnopengl | 66e5a26af5e63aebc7274efc051f05a99211f5a9 | [
"MIT"
] | 5 | 2020-03-06T10:01:28.000Z | 2020-05-06T07:57:20.000Z | Mesh.cpp | rabinadk1/learnopengl | 66e5a26af5e63aebc7274efc051f05a99211f5a9 | [
"MIT"
] | 1 | 2020-03-06T02:51:50.000Z | 2020-03-06T04:33:30.000Z | Mesh.cpp | rabinadk1/learnopengl | 66e5a26af5e63aebc7274efc051f05a99211f5a9 | [
"MIT"
] | 29 | 2020-03-05T15:15:24.000Z | 2021-07-21T07:05:00.000Z | #include "Mesh.hpp"
#include "VertexBufferLayout.hpp"
#include "Renderer.hpp"
Mesh::Mesh(std::vector<Vertex> &vertices, std::vector<uint> &indices, const std::unordered_map<std::string, Texture> &texturesLoaded, std::vector<std::string> &textures)
: m_TexturesLoaded(texturesLoaded),
m_Vertices(vertices),
... | 26.275362 | 169 | 0.66299 | rabinadk1 |
729bb991876d772189dc4e027fe93c7d6d13e33f | 887 | cpp | C++ | src/il/processing/il-processing.cpp | noct-lang/noct-bootstrap | 6fd5ef91feda665dc3f1d8f5dca6403512ac44be | [
"0BSD"
] | 1 | 2019-07-01T02:02:40.000Z | 2019-07-01T02:02:40.000Z | src/il/processing/il-processing.cpp | noct-lang/noct-bootstrap | 6fd5ef91feda665dc3f1d8f5dca6403512ac44be | [
"0BSD"
] | null | null | null | src/il/processing/il-processing.cpp | noct-lang/noct-bootstrap | 6fd5ef91feda665dc3f1d8f5dca6403512ac44be | [
"0BSD"
] | null | null | null | #include "il-processing.hpp"
#include <type_traits>
#include "common/logger.hpp"
#include "il-pass.hpp"
#include "passes/misc/il-clean-pass.hpp"
#include "passes/misc/il-dependency-pass.hpp"
#include "passes/misc/il-marker-pass.hpp"
namespace Noctis
{
template<typename T, typename... Args>
void ILProces... | 25.342857 | 64 | 0.683202 | noct-lang |
729d54b118a8e70c51384c2bd381bbb94f2f72e3 | 1,877 | cpp | C++ | PAT/PAT Advanced/c++/1034.cpp | Accelerator404/Algorithm-Demonstration | e40a499c23a56d363c743c76ac967d9c4247a4be | [
"Apache-2.0"
] | 1 | 2019-09-18T23:45:27.000Z | 2019-09-18T23:45:27.000Z | PAT/PAT Advanced/c++/1034.cpp | Accelerator404/Algorithm-Demonstration | e40a499c23a56d363c743c76ac967d9c4247a4be | [
"Apache-2.0"
] | null | null | null | PAT/PAT Advanced/c++/1034.cpp | Accelerator404/Algorithm-Demonstration | e40a499c23a56d363c743c76ac967d9c4247a4be | [
"Apache-2.0"
] | 1 | 2019-09-18T23:45:28.000Z | 2019-09-18T23:45:28.000Z | #include <cstdio>
#include <iostream>
#include <map>
#include <functional>
#include <string>
#include <vector>
using namespace std;
//PAT Advanced Level 1034 Head of a Gang
/* 直接用两个map进行姓名与int ID的转换
* DFS遍历连通分量,某连通分量满足条件,即为结果之一,此处存入以帮主名称为key的map中
*/
map<int,string> hashToName;
map<string,int> nameToHash;
map<strin... | 23.759494 | 61 | 0.520511 | Accelerator404 |
729d5f6617baedc2e5768926b22c2ebaa0aa66bd | 1,070 | cpp | C++ | Casino_Inc/Source/Casino_Inc/Data/CI_WeigthedInteractionChance.cpp | matthieu1345/CasinoInc | 3f6db9038c191fb5037219dbd8db5c7041b8292e | [
"Apache-2.0"
] | 1 | 2019-11-22T14:52:37.000Z | 2019-11-22T14:52:37.000Z | Casino_Inc/Source/Casino_Inc/Data/CI_WeigthedInteractionChance.cpp | matthieu1345/CasinoInc | 3f6db9038c191fb5037219dbd8db5c7041b8292e | [
"Apache-2.0"
] | 1 | 2019-11-21T03:58:03.000Z | 2019-11-21T03:58:03.000Z | Casino_Inc/Source/Casino_Inc/Data/CI_WeigthedInteractionChance.cpp | matthieu1345/CasinoInc | 3f6db9038c191fb5037219dbd8db5c7041b8292e | [
"Apache-2.0"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "CI_WeigthedInteractionChance.h"
#include "DebugMacros.h"
void FWeightedInteractionResult::OnPostDataImport(const UDataTable* InDataTable, const FName InRowName,
TArray<FString>& OutCollectedImportProblems)
{
int totalChance = 0... | 22.765957 | 103 | 0.742991 | matthieu1345 |
72a0ff04140f5f16d2ba92bbd273d3c65cd303f6 | 4,430 | cpp | C++ | solver/solver.cpp | ale64bit/kaktusat | afaac943079665184f900f318e7ac901619269dc | [
"MIT"
] | 1 | 2021-11-17T13:43:12.000Z | 2021-11-17T13:43:12.000Z | solver/solver.cpp | ale64bit/kaktusat | afaac943079665184f900f318e7ac901619269dc | [
"MIT"
] | null | null | null | solver/solver.cpp | ale64bit/kaktusat | afaac943079665184f900f318e7ac901619269dc | [
"MIT"
] | null | null | null | #include "solver.h"
#include <set>
#include <sstream>
namespace solver {
// A prefix used for temporary variables, which can't be used in ordinary
// variables.
static constexpr char kTmpSep = '$';
Var::Var(int x) : x(x) {
CHECK(x > 0) << "variable representation must be positive, got x=" << x;
}
bool Var::operat... | 26.058824 | 80 | 0.579684 | ale64bit |
72a1453d5fb959c8f97b29e4110a2ca2154389b5 | 2,091 | cc | C++ | flare/base/object_pool/ref_counted_test.cc | LiuYuHui/flare | f92cb6132e79ef2809fc0291a4923097ec84c248 | [
"CC-BY-3.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | 2 | 2021-05-29T04:04:17.000Z | 2022-02-04T05:33:17.000Z | flare/base/object_pool/ref_counted_test.cc | LiuYuHui/flare | f92cb6132e79ef2809fc0291a4923097ec84c248 | [
"CC-BY-3.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | null | null | null | flare/base/object_pool/ref_counted_test.cc | LiuYuHui/flare | f92cb6132e79ef2809fc0291a4923097ec84c248 | [
"CC-BY-3.0",
"BSD-2-Clause",
"BSD-3-Clause"
] | 1 | 2022-02-17T10:13:04.000Z | 2022-02-17T10:13:04.000Z | // Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License"); you may not use this
// file except in compliance with the License. You may obtain a copy of the
// License at
//
// https://opensource.org/licenses/BSD-3-Clause
//
// Unless req... | 30.304348 | 80 | 0.721186 | LiuYuHui |
72a271fdcda4b6b69095e3cfa0e56e4b69d015ad | 1,337 | cpp | C++ | src/GeometryGroupSampler.cpp | arpg/torch | 601ec64854008d97e39d2ca86ef4a93f79930967 | [
"Apache-2.0"
] | 1 | 2018-05-29T03:08:54.000Z | 2018-05-29T03:08:54.000Z | src/GeometryGroupSampler.cpp | arpg/torch | 601ec64854008d97e39d2ca86ef4a93f79930967 | [
"Apache-2.0"
] | null | null | null | src/GeometryGroupSampler.cpp | arpg/torch | 601ec64854008d97e39d2ca86ef4a93f79930967 | [
"Apache-2.0"
] | 1 | 2017-07-24T11:58:52.000Z | 2017-07-24T11:58:52.000Z | #include <torch/GeometryGroupSampler.h>
#include <torch/Context.h>
#include <torch/Distribution1D.h>
#include <torch/PtxUtil.h>
#include <torch/device/Geometry.h>
namespace torch
{
GeometryGroupSampler::GeometryGroupSampler(std::shared_ptr<Context> context) :
GeometrySampler(context)
{
Initialize();
}
optix::Pro... | 21.918033 | 78 | 0.753179 | arpg |
72a76be4410da2b2211e49d31b8a6571afb18219 | 1,108 | cpp | C++ | Practice Programs/question3.cpp | egmnklc/Egemen-Files | 34d409fa593ec41fc0d2cb48e23658663a1a06db | [
"MIT"
] | null | null | null | Practice Programs/question3.cpp | egmnklc/Egemen-Files | 34d409fa593ec41fc0d2cb48e23658663a1a06db | [
"MIT"
] | null | null | null | Practice Programs/question3.cpp | egmnklc/Egemen-Files | 34d409fa593ec41fc0d2cb48e23658663a1a06db | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include "strutils.h"
using namespace std;
bool isVowel(string input)
{
string vowels = "aeiou";
for (int i = 0; i < input.length(); i++)
{
if (i != 0 && i != input.length()-1)
{
for (int k = 0; k < vowels.length(); k++)
{... | 20.518519 | 88 | 0.402527 | egmnklc |
72b0cb8382a022bcf2e5df7bc50664890e0baf2b | 25,212 | cpp | C++ | p/validador/Measurer.cpp | jose-lp/docker-ie0521 | e2c471bdc79fd94cb6dca4fe0cecc3ab2a649d7d | [
"MIT"
] | null | null | null | p/validador/Measurer.cpp | jose-lp/docker-ie0521 | e2c471bdc79fd94cb6dca4fe0cecc3ab2a649d7d | [
"MIT"
] | null | null | null | p/validador/Measurer.cpp | jose-lp/docker-ie0521 | e2c471bdc79fd94cb6dca4fe0cecc3ab2a649d7d | [
"MIT"
] | null | null | null | #include "Measurer.h"
using namespace std;
Measurer::Measurer()
{
cm = 1.0; cf = 1.0; cs = 1.0;
misses = 0; false_positives = 0;
missmatches = 0; false_negatives = 0;
gt_objects = 0; tk_objects = 0;
missmatch_error = 0; detection_error = 0;
report_level = BASIC_LEVEL;
motp_error=0.0; motp_matches = 0;
preci... | 37.855856 | 120 | 0.65096 | jose-lp |
72b468e854a1c4a985950fd2d3a205613e87d923 | 5,730 | cpp | C++ | Class 03 - Index Buffer/Main.cpp | TheSampaio/LearnOpenGL | 3451b9595a35e0c5bbbbe627c32abe8e08783a5b | [
"Unlicense"
] | null | null | null | Class 03 - Index Buffer/Main.cpp | TheSampaio/LearnOpenGL | 3451b9595a35e0c5bbbbe627c32abe8e08783a5b | [
"Unlicense"
] | null | null | null | Class 03 - Index Buffer/Main.cpp | TheSampaio/LearnOpenGL | 3451b9595a35e0c5bbbbe627c32abe8e08783a5b | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <glad/glad.h>
#include <GLFW/glfw3.h>
// Vertex Shader source code
const char* vertexShaderSource = "#version 330 core\n"
"layout (location = 0) in vec3 aPos;\n"
"void main()\n"
"{\n"
" gl_Position = vec4(aPos.x, aPos.y, aPos.z, 1.0);\n"
"}\0";
//Fragment Shader source code
const char* ... | 43.740458 | 126 | 0.633857 | TheSampaio |
72b4b96dcaf697708bc98bec2d9242eb6d0359fa | 14,055 | cpp | C++ | aws-cpp-sdk-codebuild/source/model/BuildBatch.cpp | Neusoft-Technology-Solutions/aws-sdk-cpp | 88c041828b0dbee18a297c3cfe98c5ecd0706d0b | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-codebuild/source/model/BuildBatch.cpp | Neusoft-Technology-Solutions/aws-sdk-cpp | 88c041828b0dbee18a297c3cfe98c5ecd0706d0b | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-codebuild/source/model/BuildBatch.cpp | Neusoft-Technology-Solutions/aws-sdk-cpp | 88c041828b0dbee18a297c3cfe98c5ecd0706d0b | [
"Apache-2.0"
] | 1 | 2022-03-23T15:17:18.000Z | 2022-03-23T15:17:18.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/codebuild/model/BuildBatch.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
{
namespac... | 26.271028 | 158 | 0.749982 | Neusoft-Technology-Solutions |
72b50511dccafe526b02a66a55caac71c7d0084d | 1,283 | hpp | C++ | src/common/types.hpp | marcesengel/realm-js | 74b06e0f2aec8526056ccae1da6056e521853a44 | [
"Apache-1.1"
] | null | null | null | src/common/types.hpp | marcesengel/realm-js | 74b06e0f2aec8526056ccae1da6056e521853a44 | [
"Apache-1.1"
] | null | null | null | src/common/types.hpp | marcesengel/realm-js | 74b06e0f2aec8526056ccae1da6056e521853a44 | [
"Apache-1.1"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////
//
// Copyright 2016 Realm 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/li... | 24.207547 | 76 | 0.577553 | marcesengel |
72b5c8d1c96cba94634aa99a07bac06bec91d2dd | 2,347 | cpp | C++ | src/absolutePoseEstimation/rotationAveraging/RelativePosesG2oFormat.cpp | leoneed03/reconstrutor | 5e6417ed2b090617202cad1a10010141e4ce6615 | [
"MIT"
] | null | null | null | src/absolutePoseEstimation/rotationAveraging/RelativePosesG2oFormat.cpp | leoneed03/reconstrutor | 5e6417ed2b090617202cad1a10010141e4ce6615 | [
"MIT"
] | 1 | 2021-05-21T15:52:37.000Z | 2021-05-24T11:34:46.000Z | src/absolutePoseEstimation/rotationAveraging/RelativePosesG2oFormat.cpp | leoneed03/reconstrutor | 5e6417ed2b090617202cad1a10010141e4ce6615 | [
"MIT"
] | null | null | null | //
// Copyright (c) Leonid Seniukov. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for details.
//
#include "absolutePoseEstimation/rotationAveraging/RelativePosesG2oFormat.h"
namespace gdr {
RelativePosesG2oFormat::RelativePosesG2oFormat(const std::vector<RotationM... | 39.116667 | 256 | 0.63187 | leoneed03 |
72b64baf03887aab772b7e22e916d06b92e3cc20 | 26,591 | cpp | C++ | fastFEM/mesh/meshtype.cpp | Poofee/fastFEM | 14eb626df973e2123604041451912c867ab7188c | [
"MIT"
] | 4 | 2019-05-06T09:35:08.000Z | 2021-05-14T16:26:45.000Z | fastFEM/mesh/meshtype.cpp | Poofee/fastFEM | 14eb626df973e2123604041451912c867ab7188c | [
"MIT"
] | null | null | null | fastFEM/mesh/meshtype.cpp | Poofee/fastFEM | 14eb626df973e2123604041451912c867ab7188c | [
"MIT"
] | 1 | 2019-06-28T09:23:43.000Z | 2019-06-28T09:23:43.000Z | // Copyright 2020 Poofee (https://github.com/Poofee)
//
// 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 ... | 19.381195 | 79 | 0.548757 | Poofee |
72b9c08c09273f6a0f778472a98b538844f01dc3 | 4,421 | cpp | C++ | src/devices/bus/hp80_io/82900.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 26 | 2015-03-31T06:25:51.000Z | 2021-12-14T09:29:04.000Z | src/devices/bus/hp80_io/82900.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | null | null | null | src/devices/bus/hp80_io/82900.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 10 | 2015-03-27T05:45:51.000Z | 2022-02-04T06:57:36.000Z | // license:BSD-3-Clause
// copyright-holders: F. Ulivi
/*********************************************************************
82900.cpp
82900 module (CP/M auxiliary processor)
*********************************************************************/
#include "emu.h"
#include "82900.h"
// Debugging
#define VER... | 25.262857 | 184 | 0.721104 | Robbbert |
72ba34c8d2c1cfa6e90221f37fb0f58e013976b9 | 1,748 | hpp | C++ | include/lol/def/GameflowLcdsGameDTO.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | 1 | 2020-07-22T11:14:55.000Z | 2020-07-22T11:14:55.000Z | include/lol/def/GameflowLcdsGameDTO.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | null | null | null | include/lol/def/GameflowLcdsGameDTO.hpp | Maufeat/LeagueAPI | be7cb5093aab3f27d95b3c0e1d5700aa50126c47 | [
"BSD-3-Clause"
] | 4 | 2018-12-01T22:48:21.000Z | 2020-07-22T11:14:56.000Z | #pragma once
#include "../base_def.hpp"
namespace lol {
struct GameflowLcdsGameDTO {
uint64_t id;
int32_t mapId;
std::string gameState;
std::string queueTypeName;
std::string gameMode;
int32_t gameTypeConfigId;
int32_t maxNumPlayers;
std::string gameType;
int32_t spectatorDelay;
... | 38 | 92 | 0.641304 | Maufeat |
72ba6b923add5ea293acade1048ef638aaf347ee | 378 | cpp | C++ | SJTUOJ/1359.cpp | Victrid/Atlas | da25d50424790e571f29b66fc815245c1093798c | [
"MIT"
] | 1 | 2020-01-19T16:00:07.000Z | 2020-01-19T16:00:07.000Z | SJTUOJ/1359.cpp | Victrid/Atlas | da25d50424790e571f29b66fc815245c1093798c | [
"MIT"
] | null | null | null | SJTUOJ/1359.cpp | Victrid/Atlas | da25d50424790e571f29b66fc815245c1093798c | [
"MIT"
] | null | null | null | #include <cstring>
#include <iostream>
using namespace std;
int pharse(char chz) {
if (chz == ' ')
return 0;
return chz - 'A' >= 26 ? chz - 'a' + 27 : chz - 'A' + 1;
}
int main() {
string chs;
int ans = 0;
getline(cin, chs);
for (int i = 0; chs[i] != '\0'; i++) {
ans += (i + 1)... | 18 | 60 | 0.465608 | Victrid |
72bb0a2fd8801002cb62f7ce5aefc2cdd705d356 | 71,100 | cpp | C++ | Source/source/mob_script_action.cpp | shantonusen/Pikifen | 5a90f804fdf78bfd198eb838200a7aaf6d7ea842 | [
"MIT"
] | null | null | null | Source/source/mob_script_action.cpp | shantonusen/Pikifen | 5a90f804fdf78bfd198eb838200a7aaf6d7ea842 | [
"MIT"
] | null | null | null | Source/source/mob_script_action.cpp | shantonusen/Pikifen | 5a90f804fdf78bfd198eb838200a7aaf6d7ea842 | [
"MIT"
] | null | null | null | /*
* Copyright (c) Andre 'Espyo' Silva 2013.
* The following source file belongs to the open-source project Pikifen.
* Please read the included README and LICENSE files for more information.
* Pikmin is copyright (c) Nintendo.
*
* === FILE DESCRIPTION ===
* Mob script action classes and
* related functions.
*/... | 30.515021 | 80 | 0.522714 | shantonusen |
72bb381ee9399b33e73c21f850d32342611a6c5a | 14,430 | cc | C++ | content/browser/appcache/appcache_subresource_url_factory.cc | zipated/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 2,151 | 2020-04-18T07:31:17.000Z | 2022-03-31T08:39:18.000Z | content/browser/appcache/appcache_subresource_url_factory.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 395 | 2020-04-18T08:22:18.000Z | 2021-12-08T13:04:49.000Z | content/browser/appcache/appcache_subresource_url_factory.cc | cangulcan/src | 2b8388091c71e442910a21ada3d97ae8bc1845d3 | [
"BSD-3-Clause"
] | 338 | 2020-04-18T08:03:10.000Z | 2022-03-29T12:33:22.000Z | // Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/browser/appcache/appcache_subresource_url_factory.h"
#include "base/bind.h"
#include "base/logging.h"
#include "content/browser/appcach... | 37.774869 | 80 | 0.726611 | zipated |
72c1b748ab5c3dfc784d038e4eeea1cce78b47e5 | 623 | cpp | C++ | hostsampleapp/uwp/Common/PerceptionTypes.cpp | sereilly/MixedReality-HolographicRemoting-Samples | d6ff35e13a5edda41e074b355bf82e875ab24e4a | [
"MIT"
] | null | null | null | hostsampleapp/uwp/Common/PerceptionTypes.cpp | sereilly/MixedReality-HolographicRemoting-Samples | d6ff35e13a5edda41e074b355bf82e875ab24e4a | [
"MIT"
] | null | null | null | hostsampleapp/uwp/Common/PerceptionTypes.cpp | sereilly/MixedReality-HolographicRemoting-Samples | d6ff35e13a5edda41e074b355bf82e875ab24e4a | [
"MIT"
] | null | null | null | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PA... | 32.789474 | 89 | 0.566613 | sereilly |