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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
041a516d01a56bcdd3e1b489aac74754a7a8f12d | 12,552 | hpp | C++ | ios/Pods/boost-for-react-native/boost/polygon/detail/rectangle_formation.hpp | rudylee/expo | b3e65a7a5b205f14a3eb6cd6fa8d13c8d663b1cc | [
"Apache-2.0",
"MIT"
] | 8,805 | 2015-11-03T00:52:29.000Z | 2022-03-29T22:30:03.000Z | ios/Pods/boost-for-react-native/boost/polygon/detail/rectangle_formation.hpp | rudylee/expo | b3e65a7a5b205f14a3eb6cd6fa8d13c8d663b1cc | [
"Apache-2.0",
"MIT"
] | 14,694 | 2015-02-24T15:13:42.000Z | 2022-03-31T13:16:45.000Z | ios/Pods/boost-for-react-native/boost/polygon/detail/rectangle_formation.hpp | rudylee/expo | b3e65a7a5b205f14a3eb6cd6fa8d13c8d663b1cc | [
"Apache-2.0",
"MIT"
] | 1,329 | 2015-11-03T20:25:51.000Z | 2022-03-31T18:10:38.000Z | /*
Copyright 2008 Intel Corporation
Use, modification and distribution are subject to the Boost Software License,
Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt).
*/
#ifndef BOOST_POLYGON_RECTANGLE_FORMATION_HPP
#define BOOST_POLYGON_RECTANGL... | 47.011236 | 140 | 0.57449 | rudylee |
041bd28ad892a32c4a33ad031711b79f8358ec9b | 4,378 | cc | C++ | paddle/pten/tests/api/test_tensor_utils.cc | HydrogenSulfate/Paddle | 42cfd15e672e1ed7ad0242c1ae9e492f197599d6 | [
"Apache-2.0"
] | 2 | 2021-07-25T06:47:03.000Z | 2021-12-17T04:27:26.000Z | paddle/pten/tests/api/test_tensor_utils.cc | HydrogenSulfate/Paddle | 42cfd15e672e1ed7ad0242c1ae9e492f197599d6 | [
"Apache-2.0"
] | null | null | null | paddle/pten/tests/api/test_tensor_utils.cc | HydrogenSulfate/Paddle | 42cfd15e672e1ed7ad0242c1ae9e492f197599d6 | [
"Apache-2.0"
] | 1 | 2021-10-09T10:57:17.000Z | 2021-10-09T10:57:17.000Z | /* Copyright (c) 2021 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 by applicable law or... | 35.024 | 79 | 0.711284 | HydrogenSulfate |
042199996e136c4076f552e7e928272b94ec1ecc | 16,917 | cpp | C++ | physically-based-cloud-rendering/clouds/main.cpp | markomijolovic/physically-based-cloud-rendering | a8f9b3e11d6c2f744a45a598b872afb45ff8756c | [
"BSD-3-Clause"
] | 3 | 2021-05-25T13:58:22.000Z | 2022-02-21T11:53:26.000Z | physically-based-cloud-rendering/clouds/main.cpp | markomijolovic/physically-based-cloud-rendering | a8f9b3e11d6c2f744a45a598b872afb45ff8756c | [
"BSD-3-Clause"
] | null | null | null | physically-based-cloud-rendering/clouds/main.cpp | markomijolovic/physically-based-cloud-rendering | a8f9b3e11d6c2f744a45a598b872afb45ff8756c | [
"BSD-3-Clause"
] | null | null | null | #define GLFW_INCLUDE_NONE
#include "GLFW/glfw3.h"
#include "camera.hpp"
#include "framebuffer.hpp"
#include "glbinding/gl/gl.h"
#include "glbinding/glbinding.h"
#include "imgui/imgui.h"
#include "imgui/imgui_impl_glfw.h"
#include "imgui/imgui_impl_opengl3.h"
#include "input.hpp"
#include "mesh.hpp"
#include "preetham.... | 40.471292 | 120 | 0.612106 | markomijolovic |
0425fa69f4e3ac728927b93c3e082eaefc45c651 | 867 | cpp | C++ | tools/clang/test/CoverageMapping/header.cpp | seanbaxter/DirectXShaderCompiler | 6d02c8d43ff3fdeb9963acaf3af00c62aaa01f44 | [
"NCSA"
] | null | null | null | tools/clang/test/CoverageMapping/header.cpp | seanbaxter/DirectXShaderCompiler | 6d02c8d43ff3fdeb9963acaf3af00c62aaa01f44 | [
"NCSA"
] | null | null | null | tools/clang/test/CoverageMapping/header.cpp | seanbaxter/DirectXShaderCompiler | 6d02c8d43ff3fdeb9963acaf3af00c62aaa01f44 | [
"NCSA"
] | null | null | null | // RUN: %clang_cc1 -fprofile-instr-generate -fcoverage-mapping -dump-coverage-mapping -emit-llvm37-only -main-file-name header.cpp %s > %tmapping
// RUN: FileCheck -input-file %tmapping %s --check-prefix=CHECK-FUNC
// RUN: FileCheck -input-file %tmapping %s --check-prefix=CHECK-STATIC-FUNC
// RUN: FileCheck -input-file... | 34.68 | 145 | 0.650519 | seanbaxter |
54b61352b50aca0111335157616a19b65c267ed1 | 1,265 | hpp | C++ | client_utils/include/hawktracer/client_utils/tcp_client_stream.hpp | jandom/hawktracer | e53b07bc812c4cfe8f6253ddb48ac43de8fa74a8 | [
"MIT"
] | 116 | 2018-05-04T14:51:58.000Z | 2022-02-08T23:47:28.000Z | client_utils/include/hawktracer/client_utils/tcp_client_stream.hpp | jandom/hawktracer | e53b07bc812c4cfe8f6253ddb48ac43de8fa74a8 | [
"MIT"
] | 58 | 2018-05-04T15:00:15.000Z | 2020-11-06T11:34:11.000Z | client_utils/include/hawktracer/client_utils/tcp_client_stream.hpp | beila/hawktracer | d427c6a66097787f4e5431e1cae0278f1f03ca4c | [
"MIT"
] | 32 | 2018-05-05T12:05:56.000Z | 2021-12-06T02:18:05.000Z | #ifndef HAWKTRACER_CLIENT_UTILS_TCP_CLIENT_STREAM_HPP
#define HAWKTRACER_CLIENT_UTILS_TCP_CLIENT_STREAM_HPP
#include <hawktracer/parser/stream.hpp>
#include <queue>
#include <mutex>
#include <condition_variable>
#include <atomic>
#include <thread>
namespace HawkTracer
{
namespace ClientUtils
{
class TCPClientStream... | 22.589286 | 103 | 0.72332 | jandom |
54bd7b9f769501f46b5c842b931f46d1f551a22f | 911 | cpp | C++ | built_in_translation-31533019/main.cpp | kay54068/qt-snippets | 1af5b41599d469cf3e9ccce267f4721fad1e169e | [
"Apache-2.0"
] | 10 | 2016-04-07T07:10:42.000Z | 2021-12-08T19:57:45.000Z | built_in_translation-31533019/main.cpp | kay54068/qt-snippets | 1af5b41599d469cf3e9ccce267f4721fad1e169e | [
"Apache-2.0"
] | null | null | null | built_in_translation-31533019/main.cpp | kay54068/qt-snippets | 1af5b41599d469cf3e9ccce267f4721fad1e169e | [
"Apache-2.0"
] | 3 | 2017-01-26T13:58:20.000Z | 2020-02-04T22:12:19.000Z | #include <QDebug>
#include <QtWidgets/QApplication>
#include <QMessageBox>
#include <QTranslator>
#include <QLibraryInfo>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QTranslator qtTranslator;
if (qtTranslator.load(QLocale::system(),
"qt", "_",
QLibraryInfo::location(QLibraryInfo::Tran... | 23.358974 | 64 | 0.711306 | kay54068 |
54bf8f716cc6ef9e5331c44b3e06e1537f53f941 | 10,375 | hpp | C++ | src/dtl/bitmap/uah_skip.hpp | harald-lang/tree-encoded-bitmaps | a4ab056f2cefa7843b27c736833b08977b56649c | [
"Apache-2.0"
] | 29 | 2020-06-18T12:51:42.000Z | 2022-02-22T07:38:24.000Z | src/dtl/bitmap/uah_skip.hpp | marcellus-saputra/Thuja | 8443320a6d0e9a20bb6b665f0befc6988978cafd | [
"Apache-2.0"
] | null | null | null | src/dtl/bitmap/uah_skip.hpp | marcellus-saputra/Thuja | 8443320a6d0e9a20bb6b665f0befc6988978cafd | [
"Apache-2.0"
] | 2 | 2021-04-07T13:43:34.000Z | 2021-06-09T04:49:39.000Z | #pragma once
//===----------------------------------------------------------------------===//
#include "uah.hpp"
#include <dtl/bitmap/util/plain_bitmap.hpp>
#include <dtl/bitmap/util/plain_bitmap_iter.hpp>
#include <dtl/dtl.hpp>
#include <boost/dynamic_bitset.hpp>
#include <algorithm>
#include <cstddef>
#include <ty... | 29.30791 | 95 | 0.525783 | harald-lang |
54c0c3aeee1752643ec38d00020ae44d6ee4a79f | 325 | cpp | C++ | All_code/73.cpp | jnvshubham7/cpp-programming | 7d00f4a3b97b9308e337c5d3547fd3edd47c5e0b | [
"Apache-2.0"
] | 1 | 2021-12-22T12:37:36.000Z | 2021-12-22T12:37:36.000Z | All_code/73.cpp | jnvshubham7/CPP_Programming | a17c4a42209556495302ca305b7c3026df064041 | [
"Apache-2.0"
] | null | null | null | All_code/73.cpp | jnvshubham7/CPP_Programming | a17c4a42209556495302ca305b7c3026df064041 | [
"Apache-2.0"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
int N;
cin>>N;
for(int i=0;i<N;i++){
cin>>i;
if(i%2!=0){
cout<<i<<" "<<endl;
}
}
// YOUR CODE GOES HERE
return ... | 12.5 | 38 | 0.443077 | jnvshubham7 |
54c35c93dac2804d9b04f7392759251ee6147a8d | 654 | hpp | C++ | source/parser/parser_content.hpp | octopus-prime/hessian_x3 | f0cf0f7a334efb8ba434ac87370814561e033ea0 | [
"BSL-1.0"
] | 3 | 2016-12-10T15:01:11.000Z | 2019-11-25T14:03:49.000Z | source/parser/parser_content.hpp | octopus-prime/hessian_x3 | f0cf0f7a334efb8ba434ac87370814561e033ea0 | [
"BSL-1.0"
] | null | null | null | source/parser/parser_content.hpp | octopus-prime/hessian_x3 | f0cf0f7a334efb8ba434ac87370814561e033ea0 | [
"BSL-1.0"
] | null | null | null | /*
* parser_content.hpp
*
* Created on: 25.02.2016
* Author: mike_gresens
*/
#pragma once
using namespace std::literals;
namespace hessian {
namespace parser {
namespace content {
const x3::rule<class content_rule, content_t> content_rule;
const x3::rule<class reply_rule, reply_t> reply_rule;
const x3::r... | 20.4375 | 81 | 0.730887 | octopus-prime |
54c36342fc5f6ea3a2409e052aebff2f11da5f12 | 6,164 | cpp | C++ | indra/newview/fsmoneytracker.cpp | SaladDais/LLUDP-Encryption | 8a426cd0dd154e1a10903e0e6383f4deb2a6098a | [
"ISC"
] | 1 | 2022-01-29T07:10:03.000Z | 2022-01-29T07:10:03.000Z | indra/newview/fsmoneytracker.cpp | bloomsirenix/Firestorm-manikineko | 67e1bb03b2d05ab16ab98097870094a8cc9de2e7 | [
"Unlicense"
] | null | null | null | indra/newview/fsmoneytracker.cpp | bloomsirenix/Firestorm-manikineko | 67e1bb03b2d05ab16ab98097870094a8cc9de2e7 | [
"Unlicense"
] | 1 | 2021-10-01T22:22:27.000Z | 2021-10-01T22:22:27.000Z | /**
* @file fsmoneytracker.cpp
* @brief Tip Tracker Window
*
* $LicenseInfo:firstyear=2011&license=viewerlgpl$
* Copyright (c) 2011 Arrehn Oberlander
* Copyright (c) 2015 Ansariel Hiller
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Publ... | 30.215686 | 146 | 0.711551 | SaladDais |
54c45bc46cce1b65b021b01bfa42d8b83b5c86cf | 10,722 | cpp | C++ | src/mod/visualize/flamethrower.cpp | fugueinheels/sigsegv-mvm | 092a69d44a3ed9aacd14886037f4093a27ff816b | [
"BSD-2-Clause"
] | 7 | 2021-03-02T02:27:18.000Z | 2022-02-18T00:56:28.000Z | src/mod/visualize/flamethrower.cpp | fugueinheels/sigsegv-mvm | 092a69d44a3ed9aacd14886037f4093a27ff816b | [
"BSD-2-Clause"
] | 3 | 2021-11-29T15:53:02.000Z | 2022-02-21T13:09:22.000Z | src/mod/visualize/flamethrower.cpp | fugueinheels/sigsegv-mvm | 092a69d44a3ed9aacd14886037f4093a27ff816b | [
"BSD-2-Clause"
] | 5 | 2021-03-04T20:26:11.000Z | 2021-11-26T07:09:24.000Z | #include "mod.h"
#include "stub/entities.h"
#include "stub/tfplayer.h"
// adapted from Debug:Flamethrower_Mojo
namespace Mod::Visualize::Flamethrower
{
Color RainbowGenerator()
{
static long i = 0;
switch ((i++) % 8) {
case 0: return Color(0xff, 0x00, 0x00, 0xff); // red
case 1: retur... | 34.475884 | 207 | 0.650159 | fugueinheels |
54c5674d3497c353587118936250be8331eb1d14 | 3,785 | cpp | C++ | src/blinkit/blink/renderer/core/loader/CookieJar.cpp | titilima/blink | 2de70073edfe0e1e0aaf2bb22b5d6abd9b776fad | [
"MIT"
] | 13 | 2020-04-21T13:14:00.000Z | 2021-11-13T14:55:12.000Z | src/blinkit/blink/renderer/core/loader/CookieJar.cpp | titilima/blink | 2de70073edfe0e1e0aaf2bb22b5d6abd9b776fad | [
"MIT"
] | null | null | null | src/blinkit/blink/renderer/core/loader/CookieJar.cpp | titilima/blink | 2de70073edfe0e1e0aaf2bb22b5d6abd9b776fad | [
"MIT"
] | 4 | 2020-04-21T13:15:43.000Z | 2021-11-13T14:55:00.000Z | // -------------------------------------------------
// BlinKit - BlinKit Library
// -------------------------------------------------
// File Name: CookieJar.cpp
// Description: CookieJar Class
// Author: Ziming Li
// Created: 2021-07-26
// -------------------------------------------------
// Copyright (C) ... | 36.047619 | 117 | 0.689828 | titilima |
54c5714add2bb96b302e54b6841d006eb13a76f3 | 1,412 | cpp | C++ | Talg/Test/testErase.cpp | doside/Tiny-C---Template-Algorithm-Library | 9aea047659fedb273abca960b8501a4297829a2b | [
"MIT"
] | null | null | null | Talg/Test/testErase.cpp | doside/Tiny-C---Template-Algorithm-Library | 9aea047659fedb273abca960b8501a4297829a2b | [
"MIT"
] | null | null | null | Talg/Test/testErase.cpp | doside/Tiny-C---Template-Algorithm-Library | 9aea047659fedb273abca960b8501a4297829a2b | [
"MIT"
] | null | null | null | #include <Talg/core.h>
#include "test_suits.h"
#include <tuple>
#include <Talg/seqop.h>
#include <Talg/find_val.h>
using namespace Talg;
namespace {
void f() {
testSame(
Seq<int,double,char>,
Reverse<std::tuple<char,double,int>>,
Seq<int, int, int, int>,
Erase_front<Seq<int, double, float>, Seq<in... | 17.65 | 72 | 0.628187 | doside |
54c8d87c22a2d2d0f4c418b7e79e3135505f72d4 | 2,153 | cpp | C++ | src/mode/network_config.cpp | FissionAndFusion/FnFnMvWallet-Pre | 80d3d5b2c6a4c25ebb6c25dc111bb65d7105d032 | [
"MIT"
] | 22 | 2018-08-17T07:05:56.000Z | 2019-09-16T09:22:32.000Z | src/mode/network_config.cpp | FissionAndFusion/FnFnMvWallet-Pre | 80d3d5b2c6a4c25ebb6c25dc111bb65d7105d032 | [
"MIT"
] | 23 | 2018-08-18T11:09:42.000Z | 2019-04-22T10:02:02.000Z | src/mode/network_config.cpp | FissionAndFusion/FnFnMvWallet-Pre | 80d3d5b2c6a4c25ebb6c25dc111bb65d7105d032 | [
"MIT"
] | 13 | 2018-08-17T01:12:58.000Z | 2019-09-16T09:05:31.000Z | // Copyright (c) 2017-2019 The Multiverse developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "mode/network_config.h"
#include "mode/config_macro.h"
namespace multiverse
{
namespace po = boost::program_opti... | 21.53 | 71 | 0.619601 | FissionAndFusion |
54c9ef8bf0099d1ee734be0129b5affc826504eb | 3,997 | cc | C++ | server/modules/routing/pinloki/gtid.cc | 2733284198/MaxScale | b921dddbf06fcce650828ca94a3d715012b7072f | [
"BSD-3-Clause"
] | 1 | 2020-10-29T07:39:00.000Z | 2020-10-29T07:39:00.000Z | server/modules/routing/pinloki/gtid.cc | 2733284198/MaxScale | b921dddbf06fcce650828ca94a3d715012b7072f | [
"BSD-3-Clause"
] | null | null | null | server/modules/routing/pinloki/gtid.cc | 2733284198/MaxScale | b921dddbf06fcce650828ca94a3d715012b7072f | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2020 MariaDB Corporation Ab
*
* Use of this software is governed by the Business Source License included
* in the LICENSE.TXT file and at www.mariadb.com/bsl11.
*
* Change Date: 2024-10-14
*
* On the date above, in accordance with the Business Source License, use
* of this software will be g... | 22.84 | 104 | 0.585689 | 2733284198 |
54cb8da02e65d1ad7fa65c1d58dcd1114f576909 | 280 | cpp | C++ | cpcli/templates/template.cpp | EricLiclair/CPCLI | 0b03a5f07348c4522e06bd77d5579fa6321277ff | [
"MIT"
] | null | null | null | cpcli/templates/template.cpp | EricLiclair/CPCLI | 0b03a5f07348c4522e06bd77d5579fa6321277ff | [
"MIT"
] | 7 | 2021-12-21T10:50:28.000Z | 2022-01-01T20:08:59.000Z | cpcli/templates/template.cpp | EricLiclair/CPCLI | 0b03a5f07348c4522e06bd77d5579fa6321277ff | [
"MIT"
] | 1 | 2022-03-31T10:34:27.000Z | 2022-03-31T10:34:27.000Z | #include <bits/stdc++.h>
typedef long long ll;
using namespace std;
int main()
{
cout << "[Algorithm Name] - Algorithm for [Algorithm Usage]\n"
<< "Time Complexity - O(1)\n"
<< "Space Complexity - O(1)\n"
<< "Ref Link - [LINK]\n";
return 0;
}
| 20 | 66 | 0.553571 | EricLiclair |
54cdc3fc3d06c3b29ac643bc6f2e9d4e57758dbd | 19,734 | cpp | C++ | src/gse/src/gs_serializer.cpp | RichLogan/gse | 9243166142d8f1500df13b57ca0985105d334d83 | [
"BSD-2-Clause"
] | null | null | null | src/gse/src/gs_serializer.cpp | RichLogan/gse | 9243166142d8f1500df13b57ca0985105d334d83 | [
"BSD-2-Clause"
] | null | null | null | src/gse/src/gs_serializer.cpp | RichLogan/gse | 9243166142d8f1500df13b57ca0985105d334d83 | [
"BSD-2-Clause"
] | 1 | 2022-03-28T15:37:40.000Z | 2022-03-28T15:37:40.000Z | /*
* gs_serializer.cpp
*
* Copyright (C) 2022
* Cisco Systems, Inc.
* All Rights Reserved
*
* Description:
* The Game State Serializer is an object used by the Game State Encoder
* to serialize data into a given buffer.
*
* Portability Issues:
* The C++ float and double types are assume... | 28.435159 | 80 | 0.631144 | RichLogan |
54ce006bcd60790abd004d54f9519e18031b5fed | 2,098 | cc | C++ | tensorstore/index_space/dim_expression_nc_test.cc | stuarteberg/tensorstore | 2c22a3c9f798b0fbf023031633c58cc7c644235d | [
"Apache-2.0"
] | 106 | 2020-04-02T20:00:18.000Z | 2022-03-23T20:27:31.000Z | tensorstore/index_space/dim_expression_nc_test.cc | 0xgpapad/tensorstore | dfc2972e54588a7b745afea8b9322b57b26b657a | [
"BSD-2-Clause"
] | 28 | 2020-04-12T02:04:47.000Z | 2022-03-23T20:27:03.000Z | tensorstore/index_space/dim_expression_nc_test.cc | 0xgpapad/tensorstore | dfc2972e54588a7b745afea8b9322b57b26b657a | [
"BSD-2-Clause"
] | 18 | 2020-04-08T06:41:30.000Z | 2022-02-18T03:05:49.000Z | // Copyright 2020 The TensorStore 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 ... | 30.852941 | 79 | 0.685415 | stuarteberg |
54ce01688c93bc76dcbc66d229cf6c5a6dd60dce | 1,307 | cpp | C++ | 7/E.cpp | CovarianceMomentum/dm-itmo | b87b65727d376895e23f9f2317c8e930dd420c5a | [
"MIT"
] | null | null | null | 7/E.cpp | CovarianceMomentum/dm-itmo | b87b65727d376895e23f9f2317c8e930dd420c5a | [
"MIT"
] | null | null | null | 7/E.cpp | CovarianceMomentum/dm-itmo | b87b65727d376895e23f9f2317c8e930dd420c5a | [
"MIT"
] | null | null | null | //
// Created by covariance on 26.12.2020.
//
#include <bits/stdc++.h>
using namespace std;
unordered_set<bitset<20>> dependent;
void bitmask_dfs(bitset<20> mask) {
dependent.insert(mask);
if (mask.count() != 20) {
for (uint32_t i = 0; i != 20u; ++i) {
if (!mask.test(i)) {
mask.set(i);
... | 19.80303 | 54 | 0.54935 | CovarianceMomentum |
54d08a888ae124a9b2fb0f7acdd84b2019606de3 | 816 | cpp | C++ | 13- Linked Lists/findmidPoint.cpp | ShreyashRoyzada/C-plus-plus-Algorithms | 9db89faf0a9b9e636aece3e7289f21ab6a1e3748 | [
"MIT"
] | 21 | 2020-10-03T03:57:19.000Z | 2022-03-25T22:41:05.000Z | 13- Linked Lists/findmidPoint.cpp | ShreyashRoyzada/C-plus-plus-Algorithms | 9db89faf0a9b9e636aece3e7289f21ab6a1e3748 | [
"MIT"
] | 40 | 2020-10-02T07:02:34.000Z | 2021-10-30T16:00:07.000Z | 13- Linked Lists/findmidPoint.cpp | ShreyashRoyzada/C-plus-plus-Algorithms | 9db89faf0a9b9e636aece3e7289f21ab6a1e3748 | [
"MIT"
] | 90 | 2020-10-02T07:06:22.000Z | 2022-03-25T22:41:17.000Z | #include<iostream>
using namespace std;
class node{
public:
int data;
node*next;
node(int d){
data=d;
node*next=NULL;
}
};
void insertAtBeginning(node*&head, int data){
node*n= new node(data);
n->next= head;
head=n;
}
void printNode(node*head){
while(head!=NULL){
cout<<head->data<<"->";
head= head->next... | 15.396226 | 45 | 0.655637 | ShreyashRoyzada |
54d22e29fabfff883297742c415d9a11e5a1862b | 932 | cpp | C++ | Engine/src/model.cpp | julienbernat/dmri-explorer | 32639916b0a95ecc2ae7484f9e1a084f84c3035a | [
"MIT"
] | null | null | null | Engine/src/model.cpp | julienbernat/dmri-explorer | 32639916b0a95ecc2ae7484f9e1a084f84c3035a | [
"MIT"
] | null | null | null | Engine/src/model.cpp | julienbernat/dmri-explorer | 32639916b0a95ecc2ae7484f9e1a084f84c3035a | [
"MIT"
] | null | null | null | #include <model.h>
#include <utils.hpp>
#include <iostream>
namespace Slicer
{
Model::Model(const std::shared_ptr<ApplicationState>& state)
:mState(state)
,mTransformGPUData(GPU::Binding::modelTransform)
,mCoordinateSystem()
,mIsInit(false)
{
}
Model::~Model()
{
}
void Model::initializeModel()
{
updateApplicatio... | 18.64 | 82 | 0.698498 | julienbernat |
54d3a3eb3e6202b452e200ad5ccdbc9e4bc865b5 | 581 | cpp | C++ | Kawakawa/PhysicTest/Physic/ForceGenerator/ParticleForceGenerator/ForceGenerationRegistry.cpp | JiaqiJin/KawaiiDesune | e5c3031898f96f1ec5370b41371b2c1cf22c3586 | [
"MIT"
] | null | null | null | Kawakawa/PhysicTest/Physic/ForceGenerator/ParticleForceGenerator/ForceGenerationRegistry.cpp | JiaqiJin/KawaiiDesune | e5c3031898f96f1ec5370b41371b2c1cf22c3586 | [
"MIT"
] | null | null | null | Kawakawa/PhysicTest/Physic/ForceGenerator/ParticleForceGenerator/ForceGenerationRegistry.cpp | JiaqiJin/KawaiiDesune | e5c3031898f96f1ec5370b41371b2c1cf22c3586 | [
"MIT"
] | null | null | null | #include "../PrecompiledHeader.h"
#include "ForceGenerationRegistry.h"
namespace Physic
{
void ForceGenerationRegistry::RemoveForceGenerator(const IParticleForceGenerator* forceGenerator)
{
for (auto iter = forceGenerators.begin(); iter != forceGenerators.end(); ++iter)
{
if (*iter == forceGenerator)
{
... | 23.24 | 98 | 0.707401 | JiaqiJin |
54d521b3fe10fa2cd5a115f25348ec29ee237a8a | 852 | cpp | C++ | 201703/2.cpp | qzylalala/CSP | 8bd474b0cb70b90c41e3fb87452724c5a2bc14fa | [
"Apache-2.0"
] | 23 | 2021-03-01T07:07:48.000Z | 2022-03-19T12:49:14.000Z | 201703/2.cpp | qzylalala/CSP | 8bd474b0cb70b90c41e3fb87452724c5a2bc14fa | [
"Apache-2.0"
] | null | null | null | 201703/2.cpp | qzylalala/CSP | 8bd474b0cb70b90c41e3fb87452724c5a2bc14fa | [
"Apache-2.0"
] | 2 | 2021-08-30T09:35:17.000Z | 2021-09-10T12:26:13.000Z | #include <iostream>
#include <cstring>
#include <algorithm>
using namespace std;
int n, m;
int a[1010];
int main() {
cin >> n;
cin >> m;
for (int i = 1; i <= n; i++) a[i] = i;
while(m --) {
int p, q;
cin >> p >> q;
int idx;
for (int i = 1; i <= n; i++) {
... | 18.933333 | 53 | 0.308685 | qzylalala |
54d9ae8506716c18fe87a0bf54e72ca2a7538d32 | 9,391 | cc | C++ | rina-stack/rinad/src/ipcp/plugins/nsm-address-change/nsm-address-change-plugin.cc | kr1stj0n/pep-dna | 17136ca8c16238423bf1ca1ab4302d51d2fc8e57 | [
"RSA-MD",
"Linux-OpenIB",
"FTL",
"TCP-wrappers",
"CECILL-B"
] | 3 | 2021-11-12T13:01:51.000Z | 2022-02-19T09:06:23.000Z | rina-stack/rinad/src/ipcp/plugins/nsm-address-change/nsm-address-change-plugin.cc | kr1stj0n/pep-dna | 17136ca8c16238423bf1ca1ab4302d51d2fc8e57 | [
"RSA-MD",
"Linux-OpenIB",
"FTL",
"TCP-wrappers",
"CECILL-B"
] | null | null | null | rina-stack/rinad/src/ipcp/plugins/nsm-address-change/nsm-address-change-plugin.cc | kr1stj0n/pep-dna | 17136ca8c16238423bf1ca1ab4302d51d2fc8e57 | [
"RSA-MD",
"Linux-OpenIB",
"FTL",
"TCP-wrappers",
"CECILL-B"
] | null | null | null | //
// Address change policy set for Namespace Manager
//
// Eduard Grasa <eduard.grasa@i2cat.net>
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the Lic... | 32.835664 | 110 | 0.749654 | kr1stj0n |
54d9e7f398668d333cbf3b75dd008d7a596b4a01 | 335 | cpp | C++ | Chapter06/Qt Core Essentials/xmlreader/playerinfo.cpp | PacktPublishing/Game-Programming-using-Qt-5-Beginners-Guide-Second-Edition | 4c95eecd43024e385344ec13f19842fd8b3855ed | [
"MIT"
] | 124 | 2018-04-24T22:39:02.000Z | 2022-03-31T10:40:14.000Z | Chapter06/Qt Core Essentials/xmlreader/playerinfo.cpp | PacktPublishing/Game-Programming-using-Qt-5-Beginners-Guide-Second-Edition | 4c95eecd43024e385344ec13f19842fd8b3855ed | [
"MIT"
] | null | null | null | Chapter06/Qt Core Essentials/xmlreader/playerinfo.cpp | PacktPublishing/Game-Programming-using-Qt-5-Beginners-Guide-Second-Edition | 4c95eecd43024e385344ec13f19842fd8b3855ed | [
"MIT"
] | 45 | 2018-05-11T05:56:55.000Z | 2022-03-23T19:09:17.000Z | #include "playerinfo.h"
#include <QMetaEnum>
InventoryItem::Type InventoryItem::typeByName(const QStringRef &r) {
QMetaEnum metaEnum = QMetaEnum::fromType<InventoryItem::Type>();
QByteArray latin1 = r.toLatin1();
int result = metaEnum.keyToValue(latin1.constData());
return static_cast<InventoryItem::Ty... | 33.5 | 68 | 0.740299 | PacktPublishing |
54de68a0ba2a5cb767507d12925fd930b9eaf435 | 3,780 | cc | C++ | src/Modules/Legacy/DataIO/ReadMatrix.cc | benjaminlarson/SCIRunGUIPrototype | ed34ee11cda114e3761bd222a71a9f397517914d | [
"Unlicense"
] | null | null | null | src/Modules/Legacy/DataIO/ReadMatrix.cc | benjaminlarson/SCIRunGUIPrototype | ed34ee11cda114e3761bd222a71a9f397517914d | [
"Unlicense"
] | null | null | null | src/Modules/Legacy/DataIO/ReadMatrix.cc | benjaminlarson/SCIRunGUIPrototype | ed34ee11cda114e3761bd222a71a9f397517914d | [
"Unlicense"
] | null | null | null | /*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2009 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (... | 28.421053 | 83 | 0.692328 | benjaminlarson |
54e001bb8984467c6e695ea4fb4b844c42bb16fd | 59,348 | tcc | C++ | include/solvers/mpm_base.tcc | jgiven100/mpm-1 | adc83ab57782874d4dce1ac13be46bca1754a0fe | [
"MIT"
] | null | null | null | include/solvers/mpm_base.tcc | jgiven100/mpm-1 | adc83ab57782874d4dce1ac13be46bca1754a0fe | [
"MIT"
] | null | null | null | include/solvers/mpm_base.tcc | jgiven100/mpm-1 | adc83ab57782874d4dce1ac13be46bca1754a0fe | [
"MIT"
] | null | null | null | //! Constructor
template <unsigned Tdim>
mpm::MPMBase<Tdim>::MPMBase(const std::shared_ptr<IO>& io) : mpm::MPM(io) {
//! Logger
console_ = spdlog::get("MPMBase");
// Create a mesh with global id 0
const mpm::Index id = 0;
// Set analysis step to start at 0
step_ = 0;
// Set mesh as isoparametric
bool... | 37.255493 | 80 | 0.634967 | jgiven100 |
54e372d63f2884a1d9cc555ce2b3aa6387125a89 | 2,190 | cpp | C++ | bbs/exec_os2.cpp | RPTST/wwiv_dietpi | 202177393778e809ffe657095c1f77aa8f404651 | [
"Apache-2.0"
] | 157 | 2015-07-08T18:29:22.000Z | 2022-03-10T10:22:58.000Z | bbs/exec_os2.cpp | RPTST/wwiv_dietpi | 202177393778e809ffe657095c1f77aa8f404651 | [
"Apache-2.0"
] | 1,037 | 2015-07-18T03:09:12.000Z | 2022-03-13T17:39:55.000Z | bbs/exec_os2.cpp | RPTST/wwiv_dietpi | 202177393778e809ffe657095c1f77aa8f404651 | [
"Apache-2.0"
] | 74 | 2015-07-08T19:42:19.000Z | 2021-12-22T06:15:46.000Z | /**************************************************************************/
/* */
/* WWIV Version 5.x */
/* Copyright (C)1998-2021, WWIV Software Services */
/* ... | 41.320755 | 76 | 0.440639 | RPTST |
54e38f30c7799eef7faf904fc518e163b9eed972 | 25,671 | cpp | C++ | src/ed_genome_aligner.cpp | BioGeek/BrumiR | c4a8f58411399c86ed73a190445f180f7ed4fbf1 | [
"MIT"
] | 7 | 2020-08-06T15:31:15.000Z | 2022-01-12T16:59:46.000Z | src/ed_genome_aligner.cpp | BioGeek/BrumiR | c4a8f58411399c86ed73a190445f180f7ed4fbf1 | [
"MIT"
] | 2 | 2020-09-07T16:12:43.000Z | 2022-02-21T08:31:06.000Z | src/ed_genome_aligner.cpp | BioGeek/BrumiR | c4a8f58411399c86ed73a190445f180f7ed4fbf1 | [
"MIT"
] | 2 | 2020-08-14T01:39:28.000Z | 2020-11-05T12:28:04.000Z |
#include <unistd.h>
#include <cstdlib>
#include <cstring>
#include <cstdio>
#include <vector>
#include <ctime>
#include <string>
#include <climits>
#include <queue>
#include <map>
#include <unordered_map>
#include <iterator>
#include <string>
#include <iostream>
#include <fstream>
#include <sstream>
#include <cassert>... | 41.471729 | 189 | 0.572007 | BioGeek |
54e5083094578c7207e73424e3b59db29e542ee5 | 443 | cpp | C++ | llvm/lib/TableGen/TableGenAction.cpp | clairechingching/ScaffCC | 737ae90f85d9fe79819d66219747d27efa4fa5b9 | [
"BSD-2-Clause"
] | 3 | 2019-02-12T04:14:39.000Z | 2020-11-05T08:46:20.000Z | llvm/lib/TableGen/TableGenAction.cpp | clairechingching/ScaffCC | 737ae90f85d9fe79819d66219747d27efa4fa5b9 | [
"BSD-2-Clause"
] | 1 | 2020-02-22T09:59:21.000Z | 2020-02-22T09:59:21.000Z | llvm/lib/TableGen/TableGenAction.cpp | clairechingching/ScaffCC | 737ae90f85d9fe79819d66219747d27efa4fa5b9 | [
"BSD-2-Clause"
] | 1 | 2020-11-04T06:38:51.000Z | 2020-11-04T06:38:51.000Z | //===- TableGenAction.cpp - defines TableGenAction --------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... | 27.6875 | 80 | 0.525959 | clairechingching |
54ea97f3430ae0025343fcfbbe1561cd21a83131 | 353 | cpp | C++ | ext2/open.cpp | danielzy95/fuse-ext2 | 3148484fce13768c307a8ca33ba46d8f524e247c | [
"MIT"
] | null | null | null | ext2/open.cpp | danielzy95/fuse-ext2 | 3148484fce13768c307a8ca33ba46d8f524e247c | [
"MIT"
] | null | null | null | ext2/open.cpp | danielzy95/fuse-ext2 | 3148484fce13768c307a8ca33ba46d8f524e247c | [
"MIT"
] | null | null | null | #include "operations.h"
#include "inode.h"
#include <string>
#include <errno.h>
#include <stdio.h>
using namespace std;
int open(const char *path, struct fuse_file_info *fi) {
printf("OPERATION: open(path=%s)\n", path);
if((fi->flags & 3) != O_RDONLY)
return -EACCES;
fi->fh = getInodeIndexByPat... | 19.611111 | 55 | 0.645892 | danielzy95 |
54eacb1a4fec0709cf83e0c3afb20b4640ac97a1 | 92,945 | cpp | C++ | enduser/sakit/sak/plugins/iisprov/globdata.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | enduser/sakit/sak/plugins/iisprov/globdata.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | enduser/sakit/sak/plugins/iisprov/globdata.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | #include "iisprov.h"
#define ALL_BITS_ON 0xFFFFFFFF
///
// initialize METABASE_PROPERTY_DATA
//
METABASE_PROPERTY METABASE_PROPERTY_DATA::s_AccessExecute =
{ L"AccessExecute",MD_ACCESS_PERM, IIS_MD_UT_FILE, DWORD_METADATA, MD_ACCESS_EXECUTE, METADATA_INHERIT, FALSE };
METABASE_PROPERTY METABASE_PROPERT... | 43.270484 | 167 | 0.773511 | npocmaka |
54ef5926fd3330ac54c10fbc7caaa271a59622c6 | 4,228 | cc | C++ | chrome/browser/ash/web_applications/os_url_handler_system_web_app_info.cc | chromium/chromium | df46e572c3449a4b108d6e02fbe4f6d24cf98381 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | chrome/browser/ash/web_applications/os_url_handler_system_web_app_info.cc | chromium/chromium | df46e572c3449a4b108d6e02fbe4f6d24cf98381 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | chrome/browser/ash/web_applications/os_url_handler_system_web_app_info.cc | chromium/chromium | df46e572c3449a4b108d6e02fbe4f6d24cf98381 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ash/web_applications/os_url_handler_system_web_app_info.h"
#include "ash/constants/ash_features.h"
#include "ash/public/cpp/reso... | 35.830508 | 83 | 0.750473 | chromium |
54eff18cc3206ea631eff0ef88ca05bfc2195255 | 982 | cpp | C++ | src/compiler/CSSATree/cssatree.cpp | JoachimCoenen/ngpl-language | 624c5aa98f7c15a9441a7cf31045a1cba3e2bc4b | [
"BSD-3-Clause"
] | null | null | null | src/compiler/CSSATree/cssatree.cpp | JoachimCoenen/ngpl-language | 624c5aa98f7c15a9441a7cf31045a1cba3e2bc4b | [
"BSD-3-Clause"
] | null | null | null | src/compiler/CSSATree/cssatree.cpp | JoachimCoenen/ngpl-language | 624c5aa98f7c15a9441a7cf31045a1cba3e2bc4b | [
"BSD-3-Clause"
] | null | null | null | #include "cssatree.h"
namespace ngpl::CSSA {
CSSATree::CSSATree()
{
}
cat::WriterObjectABC& operator +=(cat::WriterObjectABC& s, const TaggedValue& v) {
s += "TaggedValue";
auto tuple = std::make_tuple(
MEMBER_PAIR(v, id),
MEMBER_PAIR(v, generatedBy),
MEMBER_PAIR(v, lamportTimestamp),
MEMBER_PAIR... | 23.95122 | 88 | 0.677189 | JoachimCoenen |
54f0320ed4efac113b50a39f9c436865dc1159f7 | 10,393 | cpp | C++ | WebLayoutCore/Source/WebCore/html/HTMLAttachmentElement.cpp | gubaojian/trylearn | 74dd5c6c977f8d867d6aa360b84bc98cb82f480c | [
"MIT"
] | 1 | 2020-05-25T16:06:49.000Z | 2020-05-25T16:06:49.000Z | WebLayoutCore/Source/WebCore/html/HTMLAttachmentElement.cpp | gubaojian/trylearn | 74dd5c6c977f8d867d6aa360b84bc98cb82f480c | [
"MIT"
] | null | null | null | WebLayoutCore/Source/WebCore/html/HTMLAttachmentElement.cpp | gubaojian/trylearn | 74dd5c6c977f8d867d6aa360b84bc98cb82f480c | [
"MIT"
] | 1 | 2018-07-10T10:53:18.000Z | 2018-07-10T10:53:18.000Z | /*
* Copyright (C) 2015 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... | 33.098726 | 141 | 0.743385 | gubaojian |
54f06f6d1817fce7fb5625cc7c7d5b137c7f4736 | 1,317 | hpp | C++ | Trabalho 2/src/headers/generator.hpp | RafaelAmauri/Teoria-de-Grafos | 4c5f992b22362379f5dce23b41319abf20cd6c82 | [
"MIT"
] | null | null | null | Trabalho 2/src/headers/generator.hpp | RafaelAmauri/Teoria-de-Grafos | 4c5f992b22362379f5dce23b41319abf20cd6c82 | [
"MIT"
] | null | null | null | Trabalho 2/src/headers/generator.hpp | RafaelAmauri/Teoria-de-Grafos | 4c5f992b22362379f5dce23b41319abf20cd6c82 | [
"MIT"
] | null | null | null | // Rafael Amauri Diniz Augusto --- 651047
#ifndef GENERATOR_HPP
#define GENERATOR_HPP
#include <stdlib.h>
#include "graph.hpp"
void graph_generator(Graph *g, int num_edges, int range)
{
srand(time(NULL));
int vertex1, vertex2, edge_weight, aux;
vertex1 = aux = 0;
bool repeated;
std::vector<std::... | 24.849057 | 101 | 0.48899 | RafaelAmauri |
54f0ef86df8ebf9356f2995d7a7bee04ef3e64e2 | 1,740 | hpp | C++ | mesk-installer/Pages/bootloaderPage.hpp | aaly/Mesk-Installer | a3e07318c9bb08d02a7adfdda380eee5c829bab2 | [
"BSD-3-Clause"
] | 2 | 2019-01-12T06:20:38.000Z | 2019-02-05T06:20:58.000Z | mesk-installer/Pages/bootloaderPage.hpp | aaly/Mesk-Installer | a3e07318c9bb08d02a7adfdda380eee5c829bab2 | [
"BSD-3-Clause"
] | null | null | null | mesk-installer/Pages/bootloaderPage.hpp | aaly/Mesk-Installer | a3e07318c9bb08d02a7adfdda380eee5c829bab2 | [
"BSD-3-Clause"
] | null | null | null | /******************************************************
* copyright 2011, 2012, 2013 AbdAllah Aly Saad , aaly90[@]gmail.com
* Part of Mesklinux Installer
* See LICENSE file for more info
******************************************************/
#ifndef BOOTLOADERPAGE_HPP
#define BOOTLOADERPAGE_HPP
#include <QtWidgets/Q... | 16.571429 | 67 | 0.651149 | aaly |
54f101c539ee0891520d0b6610dbd5206de89e62 | 2,863 | hpp | C++ | libcore/include/sirikata/core/transfer/OAuthHttpManager.hpp | pathorn/sirikata | 5d366a822ef2fb57cd9f64cc4f6085c0a635fdfa | [
"BSD-3-Clause"
] | 1 | 2016-05-09T03:34:51.000Z | 2016-05-09T03:34:51.000Z | libcore/include/sirikata/core/transfer/OAuthHttpManager.hpp | pathorn/sirikata | 5d366a822ef2fb57cd9f64cc4f6085c0a635fdfa | [
"BSD-3-Clause"
] | null | null | null | libcore/include/sirikata/core/transfer/OAuthHttpManager.hpp | pathorn/sirikata | 5d366a822ef2fb57cd9f64cc4f6085c0a635fdfa | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2011 Sirikata Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can
// be found in the LICENSE file.
#ifndef _SIRIKATA_LIBCORE_OAUTH_HTTP_MANAGER_HPP_
#define _SIRIKATA_LIBCORE_OAUTH_HTTP_MANAGER_HPP_
#include <sirikata/core/transfer/HttpManager.hpp>
#in... | 41.492754 | 182 | 0.735592 | pathorn |
54f2fafb312cb0b0bdb3e7b1ce3a0f118a73e418 | 54,481 | cc | C++ | epid/member/unittests/sign-test.cc | TinkerBoard-Android/external-epid-sdk | 7d6a6b63582f241b4ae4248bab416277ed659968 | [
"Apache-2.0"
] | 1 | 2019-04-15T16:27:54.000Z | 2019-04-15T16:27:54.000Z | epid/member/unittests/sign-test.cc | TinkerBoard-Android/external-epid-sdk | 7d6a6b63582f241b4ae4248bab416277ed659968 | [
"Apache-2.0"
] | null | null | null | epid/member/unittests/sign-test.cc | TinkerBoard-Android/external-epid-sdk | 7d6a6b63582f241b4ae4248bab416277ed659968 | [
"Apache-2.0"
] | null | null | null | /*############################################################################
# Copyright 2016-2017 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# ht... | 46.925926 | 111 | 0.673703 | TinkerBoard-Android |
54f3d12579cb8e2a9b2145b2a85f0a84efd66f75 | 27,871 | cpp | C++ | libs2eplugins/src/s2e/Plugins/Checkers/MemoryBugChecker.cpp | trusslab/mousse | eb6ac492b15e2ca416a3b23bd4c4d115ae83b606 | [
"MIT"
] | 7 | 2020-04-27T03:53:16.000Z | 2021-12-31T02:04:48.000Z | libs2eplugins/src/s2e/Plugins/Checkers/MemoryBugChecker.cpp | trusslab/mousse | eb6ac492b15e2ca416a3b23bd4c4d115ae83b606 | [
"MIT"
] | null | null | null | libs2eplugins/src/s2e/Plugins/Checkers/MemoryBugChecker.cpp | trusslab/mousse | eb6ac492b15e2ca416a3b23bd4c4d115ae83b606 | [
"MIT"
] | 1 | 2020-07-15T05:19:28.000Z | 2020-07-15T05:19:28.000Z | /// Copyright (C) 2010-2015, Dependable Systems Laboratory, EPFL
/// Copyright (C) 2020, TrussLab@University of California, Irvine.
/// Authors: Hsin-Wei Hung<hsinweih@uci.edu>
/// All rights reserved.
///
/// Licensed under the Cyberhaven Research License Agreement.
///
#include "MemoryBugChecker.h"
#include <s2e/S2... | 38.495856 | 167 | 0.559757 | trusslab |
54f5801d9388ffab36e8d18a91e7f7804e4b564e | 463 | cpp | C++ | leetcode/problems/easy/504-base-7.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | 18 | 2020-08-27T05:27:50.000Z | 2022-03-08T02:56:48.000Z | leetcode/problems/easy/504-base-7.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | null | null | null | leetcode/problems/easy/504-base-7.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | 1 | 2020-10-13T05:23:58.000Z | 2020-10-13T05:23:58.000Z | /*
Base 7
https://leetcode.com/problems/base-7/
Given an integer num, return a string of its base 7 representation.
Example 1:
Input: num = 100
Output: "202"
Example 2:
Input: num = -7
Output: "-10"
Constraints:
-107 <= num <= 107
*/
class Solution {
public:
string convertToBase7(int n) {
if (n ... | 14.935484 | 67 | 0.609071 | wingkwong |
54f642de2d6c37b21f4bbf4a19b278b1e07e7524 | 3,999 | cpp | C++ | emf_core_bindings/src/emf_event.cpp | GabeRealB/emf | a233edaed7ed99948b0a935e6378bac131fdf4c2 | [
"Apache-2.0",
"MIT"
] | null | null | null | emf_core_bindings/src/emf_event.cpp | GabeRealB/emf | a233edaed7ed99948b0a935e6378bac131fdf4c2 | [
"Apache-2.0",
"MIT"
] | null | null | null | emf_core_bindings/src/emf_event.cpp | GabeRealB/emf | a233edaed7ed99948b0a935e6378bac131fdf4c2 | [
"Apache-2.0",
"MIT"
] | 1 | 2021-01-10T15:00:08.000Z | 2021-01-10T15:00:08.000Z | #include <emf_core/emf_event.h>
#include <emf_core_bindings/emf_core_bindings.h>
using namespace EMF::Core::C;
namespace EMF::Core::Bindings::C {
extern "C" {
emf_event_handle_t EMF_CALL_C emf_event_create(
const emf_event_name_t* EMF_NOT_NULL event_name, emf_event_handler_fn_t EMF_MAYBE_NULL event_handler) EMF... | 43 | 128 | 0.829457 | GabeRealB |
54f8453c90ce9688988ec717ad5a17241d7ee8d8 | 180 | cpp | C++ | Landlords/Player.cpp | jie65535/Landlords | cb0cbae732af868c34fb66e01a7159dfc90992ee | [
"MIT"
] | null | null | null | Landlords/Player.cpp | jie65535/Landlords | cb0cbae732af868c34fb66e01a7159dfc90992ee | [
"MIT"
] | null | null | null | Landlords/Player.cpp | jie65535/Landlords | cb0cbae732af868c34fb66e01a7159dfc90992ee | [
"MIT"
] | 1 | 2019-05-19T15:12:30.000Z | 2019-05-19T15:12:30.000Z | #include "stdafx.h"
#include "Player.h"
Player::Player(playerID_t id):
m_id(id), m_name(), m_integral(0), m_currRoom(0), isReady(false)
{
}
Player::~Player()
{
}
| 12.857143 | 66 | 0.611111 | jie65535 |
54f8fdaf7e1d511fb369cc5bce93040fbad5917e | 3,493 | cpp | C++ | kernel/syscallhandler.cpp | Twometer/nekosys | cbcdaddaf8087cde1c375dbc19c576475965f5b4 | [
"Apache-2.0"
] | 1 | 2021-08-28T19:50:32.000Z | 2021-08-28T19:50:32.000Z | kernel/syscallhandler.cpp | Twometer/nekosys | cbcdaddaf8087cde1c375dbc19c576475965f5b4 | [
"Apache-2.0"
] | null | null | null | kernel/syscallhandler.cpp | Twometer/nekosys | cbcdaddaf8087cde1c375dbc19c576475965f5b4 | [
"Apache-2.0"
] | null | null | null | #include <kernel/syscallhandler.h>
#include <kernel/syscalls.h>
#include <kernel/memory/stack.h>
#include <kernel/tasks/thread.h>
#include <kernel/kdebug.h>
#include <kernel/video/tty.h>
#include <errno.h>
using namespace Memory;
namespace Kernel
{
DEFINE_SINGLETON(SyscallHandler)
SyscallHandler::SyscallHand... | 37.55914 | 108 | 0.626396 | Twometer |
54fe6917cba19e2966b310eb77007a25e7d3dbf1 | 22,871 | cc | C++ | GRPC/grpc.pb.cc | SoftlySpoken/gStore | b2cf71288ccef376640000965aff7c430101446a | [
"BSD-3-Clause"
] | 150 | 2015-01-14T15:06:38.000Z | 2018-08-28T09:34:17.000Z | GRPC/grpc.pb.cc | SoftlySpoken/gStore | b2cf71288ccef376640000965aff7c430101446a | [
"BSD-3-Clause"
] | 28 | 2015-05-11T02:45:39.000Z | 2018-08-24T11:43:17.000Z | GRPC/grpc.pb.cc | SoftlySpoken/gStore | b2cf71288ccef376640000965aff7c430101446a | [
"BSD-3-Clause"
] | 91 | 2015-05-04T09:52:41.000Z | 2018-08-18T13:02:15.000Z | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: grpc.proto
#include "grpc.pb.h"
#include <algorithm>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/descriptor.h>
#include <google/pr... | 38.374161 | 162 | 0.738883 | SoftlySpoken |
0700bb15828544b0a9ec4b43b7fd8d5b47ca6769 | 4,061 | cc | C++ | mojo/public/cpp/bindings/tests/array_unittest.cc | xzhan96/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 2 | 2019-01-28T08:09:58.000Z | 2021-11-15T15:32:10.000Z | mojo/public/cpp/bindings/tests/array_unittest.cc | emilio/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | mojo/public/cpp/bindings/tests/array_unittest.cc | emilio/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 6 | 2020-09-23T08:56:12.000Z | 2021-11-18T03:40:49.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.
#include "mojo/public/cpp/bindings/array.h"
#include "mojo/public/cpp/bindings/lib/serialization.h"
#include "mojo/public/cpp/bindings/tests/array_common... | 30.765152 | 73 | 0.709677 | xzhan96 |
07016fe79275e12cad833d95c6c5912e76247d7f | 5,105 | cpp | C++ | sandbox/SeqIg_sandbox/apps/SeqIg/SeqIg.cpp | jwillis0720/seqan | 36b300b8c4c42bbfc03edd3220fa299961d517be | [
"BSD-3-Clause"
] | 1 | 2015-01-15T16:04:56.000Z | 2015-01-15T16:04:56.000Z | sandbox/SeqIg_sandbox/apps/SeqIg/SeqIg.cpp | jwillis0720/seqan | 36b300b8c4c42bbfc03edd3220fa299961d517be | [
"BSD-3-Clause"
] | null | null | null | sandbox/SeqIg_sandbox/apps/SeqIg/SeqIg.cpp | jwillis0720/seqan | 36b300b8c4c42bbfc03edd3220fa299961d517be | [
"BSD-3-Clause"
] | null | null | null | // ==========================================================================
// SeqIg
// ==========================================================================
// Copyright (c) 2006-2013, Knut Reinert, FU Berlin
// All rights reserved.
//
// Redistribution and use in source and bi... | 44.391304 | 148 | 0.638002 | jwillis0720 |
0701c19396d73fb85d535bbc66f42e8da46a8c49 | 2,033 | cpp | C++ | Source/Qurses/Windows/WinQCgetsc.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 9 | 2016-05-27T01:00:39.000Z | 2021-04-01T08:54:46.000Z | Source/Qurses/Windows/WinQCgetsc.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 1 | 2016-03-03T22:54:08.000Z | 2016-03-03T22:54:08.000Z | Source/Qurses/Windows/WinQCgetsc.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 4 | 2016-05-27T01:00:43.000Z | 2018-08-19T08:47:49.000Z | // Public Domain Curses
#include "Qurses/Windows/pdcwin.h"
#include "WinQL/Application/Console/WinQLConsoleScreenBuffer.h"
#include "WinQL/Application/WinQLApplication.h"
RCSID("$Id: pdcgetsc.c,v 1.36 2008/07/14 04:24:52 wmcbrine Exp $")
//-----------------------------------------------------------------------------... | 31.765625 | 85 | 0.614855 | mfaithfull |
07042b5ff176afe9602386c4bb725084db362100 | 1,720 | cpp | C++ | ewk/unittest/utc_blink_ewk_custom_handlers_data_url_get_func.cpp | Jabawack/chromium-efl | 6d3a3accc8afba0aa0eff6461eb5c83138172e6e | [
"BSD-3-Clause"
] | 9 | 2015-04-09T20:22:08.000Z | 2021-03-17T08:34:56.000Z | ewk/unittest/utc_blink_ewk_custom_handlers_data_url_get_func.cpp | Jabawack/chromium-efl | 6d3a3accc8afba0aa0eff6461eb5c83138172e6e | [
"BSD-3-Clause"
] | 2 | 2015-02-04T13:41:12.000Z | 2015-05-25T14:00:40.000Z | ewk/unittest/utc_blink_ewk_custom_handlers_data_url_get_func.cpp | isabella232/chromium-efl | db2d09aba6498fb09bbea1f8440d071c4b0fde78 | [
"BSD-3-Clause"
] | 14 | 2015-02-12T16:20:47.000Z | 2022-01-20T10:36:26.000Z | // Copyright 2014 Samsung Electronics. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "utc_blink_ewk_base.h"
class utc_blink_ewk_custom_handlers_data_url_get: public utc_blink_ewk_base {
protected:
void PostSetUp()
{
evas_o... | 33.076923 | 152 | 0.764535 | Jabawack |
07043bd8b9db17683fd695131cccbf06e343a650 | 41,075 | cpp | C++ | src/gfx/conetracing_utils.cpp | scanberg/viamd | 2e5330fad35f7c2116e15b4a538d5c4a5a18ca59 | [
"MIT"
] | 11 | 2018-06-04T14:51:32.000Z | 2021-12-21T13:35:08.000Z | src/gfx/conetracing_utils.cpp | scanberg/viamd | 2e5330fad35f7c2116e15b4a538d5c4a5a18ca59 | [
"MIT"
] | 19 | 2019-03-03T14:42:03.000Z | 2022-03-01T19:09:49.000Z | src/gfx/conetracing_utils.cpp | scanberg/viamd | 2e5330fad35f7c2116e15b4a538d5c4a5a18ca59 | [
"MIT"
] | 1 | 2020-06-08T15:56:57.000Z | 2020-06-08T15:56:57.000Z | #include "conetracing_utils.h"
#include <core/md_allocator.h>
#include <core/md_log.h>
#include <core/md_vec_math.h>
#include <core/md_sync.h>
#include "gfx/gl_utils.h"
#include "gfx/immediate_draw_utils.h"
#include "color_utils.h"
#include "task_system.h"
#include <atomic>
namespace cone_trace {
static GLuint va... | 38.859981 | 152 | 0.642045 | scanberg |
0705ded8c58594566fd83efaab62fd5ad440f7fa | 734 | cpp | C++ | src/DonePullBackTransition.cpp | songchaow/starcrat2-ai | ac6fbdb0e3d7839a76addea4e6aa50a4545841f3 | [
"MIT"
] | 3 | 2020-12-19T01:00:33.000Z | 2021-12-01T01:13:21.000Z | src/DonePullBackTransition.cpp | songchaow/starcrat2-ai | ac6fbdb0e3d7839a76addea4e6aa50a4545841f3 | [
"MIT"
] | null | null | null | src/DonePullBackTransition.cpp | songchaow/starcrat2-ai | ac6fbdb0e3d7839a76addea4e6aa50a4545841f3 | [
"MIT"
] | 2 | 2021-02-22T18:50:38.000Z | 2022-03-21T17:37:24.000Z | #pragma once
#include "DonePullBackTransition.h"
#include "Util.h"
DonePullBackTransition::DonePullBackTransition(const sc2::Unit * unit, sc2::Point2D position, FocusFireFSMState* nextState)
{
m_unit = unit;
m_nextState = nextState;
m_position = position;
}
bool DonePullBackTransition::isValid(const sc2::... | 23.677419 | 154 | 0.70436 | songchaow |
070bc5340d136098d418f419daa2889b4798258f | 1,557 | cpp | C++ | src/IceRay/main/interface/python/core/camera/sphere/horizontal.cpp | dmilos/IceRay | 4e01f141363c0d126d3c700c1f5f892967e3d520 | [
"MIT-0"
] | 2 | 2020-09-04T12:27:15.000Z | 2022-01-17T14:49:40.000Z | src/IceRay/main/interface/python/core/camera/sphere/horizontal.cpp | dmilos/IceRay | 4e01f141363c0d126d3c700c1f5f892967e3d520 | [
"MIT-0"
] | null | null | null | src/IceRay/main/interface/python/core/camera/sphere/horizontal.cpp | dmilos/IceRay | 4e01f141363c0d126d3c700c1f5f892967e3d520 | [
"MIT-0"
] | 1 | 2020-09-04T12:27:52.000Z | 2020-09-04T12:27:52.000Z | #include <boost/python.hpp>
#include "../../../def_submodule.hpp"
#include "./camera.hpp"
void expose_IceRay_camera_sphere_horizontal()
{
using namespace GS_DDMRM::S_IceRay::S_main::S_interface::S_python;
//MAKE_SUBMODULE( IceRay );
MAKE_SUBMODULE( core );
MAKE_SUBMODULE( camera );
typedef... | 37.97561 | 118 | 0.71034 | dmilos |
070deed25ac1f79f3c817fa7d40653f414f79cd1 | 79,397 | cc | C++ | src/CoordinatorServerList.cc | taschik/ramcloud | 6ef2e1cd61111995881d54bda6f9296b4777b928 | [
"0BSD"
] | 1 | 2016-01-18T12:41:28.000Z | 2016-01-18T12:41:28.000Z | src/CoordinatorServerList.cc | taschik/ramcloud | 6ef2e1cd61111995881d54bda6f9296b4777b928 | [
"0BSD"
] | null | null | null | src/CoordinatorServerList.cc | taschik/ramcloud | 6ef2e1cd61111995881d54bda6f9296b4777b928 | [
"0BSD"
] | null | null | null | /* Copyright (c) 2011-2012 Stanford University
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR(... | 35.381907 | 81 | 0.658199 | taschik |
070e227492af93823042ca32da4c98d057bebc36 | 1,155 | cpp | C++ | d639.cpp | puyuliao/ZJ-d879 | bead48e0a500f21bc78f745992f137706d15abf8 | [
"MIT"
] | null | null | null | d639.cpp | puyuliao/ZJ-d879 | bead48e0a500f21bc78f745992f137706d15abf8 | [
"MIT"
] | null | null | null | d639.cpp | puyuliao/ZJ-d879 | bead48e0a500f21bc78f745992f137706d15abf8 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#include <stdint.h>
#define IOS {cin.tie(0); ios_base::sync_with_stdio(false);}
using namespace std;
#define MOD 10007
int in[3][1] = {1,1,1};
int a[3][3] = {
{1,1,1},
{1,0,0},
{0,1,0}
};
int ans[3][3];
void smul(int cmd,int n){
int c[n][n];
memset(c,0,sizeof(c));
if(c... | 15.608108 | 60 | 0.415584 | puyuliao |
071654015793756e32bc9eb08a7b895030ceeca0 | 1,780 | cpp | C++ | day07/main.cpp | LMesaric/AoC-2021 | 134f52c69675fd4f1b8d04aad9debcf82e604911 | [
"MIT"
] | 5 | 2021-12-01T22:34:33.000Z | 2021-12-25T11:34:13.000Z | day07/main.cpp | LMesaric/AoC-2021 | 134f52c69675fd4f1b8d04aad9debcf82e604911 | [
"MIT"
] | null | null | null | day07/main.cpp | LMesaric/AoC-2021 | 134f52c69675fd4f1b8d04aad9debcf82e604911 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <cassert>
#include <iostream>
#include <numeric>
#include <sstream>
#include <vector>
std::vector<int32_t> parseInput() {
std::string line;
std::getline(std::cin, line);
std::stringstream ss(line);
std::vector<int32_t> positions;
for (int32_t i; ss >> i;) {
po... | 25.428571 | 78 | 0.632022 | LMesaric |
0717e18e0d1418347b37c6001e9ec780e45ab8c6 | 594 | cxx | C++ | Code/Graph/testGraph.cxx | konny0311/algorithms-nutshell-2ed | 760b0b8a296fb6be923c89406f61e773a48c59db | [
"MIT"
] | 522 | 2016-02-21T18:44:23.000Z | 2022-03-31T09:29:04.000Z | Code/Graph/testGraph.cxx | linfachen/algorithms-nutshell-2ed | 17bd6e9cf9917727501f9eeadbfb2100f94eede0 | [
"MIT"
] | 3 | 2020-04-09T01:52:52.000Z | 2022-01-13T08:18:55.000Z | Code/Graph/testGraph.cxx | linfachen/algorithms-nutshell-2ed | 17bd6e9cf9917727501f9eeadbfb2100f94eede0 | [
"MIT"
] | 216 | 2015-10-16T16:50:10.000Z | 2022-02-10T00:57:20.000Z | /**
* @file Graph/testGraph.cxx Sample (and Simple!) graph tests.
* @brief
* Just a few test cases. Not too much here, really.
*
* @author George Heineman
* @date 6/15/08
*/
#include <iostream>
#include <assert.h>
#include "Graph.h"
/** Launch the tests. */
int main () {
Graph g (3,false);
g.addEdge... | 18 | 64 | 0.577441 | konny0311 |
0718c00818e0f711b465c54464e451619c0c61d2 | 30,427 | cpp | C++ | src/zimg/graph/filtergraph.cpp | dubhater/zimg | 59ca0556789656a439f32b4cdfc8e26db32b8252 | [
"WTFPL"
] | null | null | null | src/zimg/graph/filtergraph.cpp | dubhater/zimg | 59ca0556789656a439f32b4cdfc8e26db32b8252 | [
"WTFPL"
] | null | null | null | src/zimg/graph/filtergraph.cpp | dubhater/zimg | 59ca0556789656a439f32b4cdfc8e26db32b8252 | [
"WTFPL"
] | null | null | null | #include <algorithm>
#include <cmath>
#include <cstdint>
#include <vector>
#include "common/align.h"
#include "common/alloc.h"
#include "common/except.h"
#include "common/make_unique.h"
#include "common/pixel.h"
#include "common/zassert.h"
#include "basic_filter.h"
#include "filtergraph.h"
#include "image_filter.h"
na... | 27.166964 | 155 | 0.717685 | dubhater |
071acf7b15d940c30e26b7e142a93f1d516e8f91 | 2,272 | hpp | C++ | android-28/android/widget/NumberPicker.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 12 | 2020-03-26T02:38:56.000Z | 2022-03-14T08:17:26.000Z | android-28/android/widget/NumberPicker.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 1 | 2021-01-27T06:07:45.000Z | 2021-11-13T19:19:43.000Z | android-28/android/widget/NumberPicker.hpp | YJBeetle/QtAndroidAPI | 1468b5dc6eafaf7709f0b00ba1a6ec2b70684266 | [
"Apache-2.0"
] | 3 | 2021-02-02T12:34:55.000Z | 2022-03-08T07:45:57.000Z | #pragma once
#include "./LinearLayout.hpp"
class JArray;
namespace android::content
{
class Context;
}
namespace android::graphics
{
class Canvas;
}
namespace android::view
{
class KeyEvent;
}
namespace android::view
{
class MotionEvent;
}
namespace android::view::accessibility
{
class AccessibilityNodeProvider;... | 30.293333 | 175 | 0.766285 | YJBeetle |
071ca975acd4d8f19bb9c6e09446bbd8b9f07cc6 | 3,285 | hh | C++ | packages/Alea/mc_solvers/ForwardMcKernel.hh | GCZhang/Profugus | d4d8fe295a92a257b26b6082224226ca1edbff5d | [
"BSD-2-Clause"
] | 19 | 2015-06-04T09:02:41.000Z | 2021-04-27T19:32:55.000Z | packages/Alea/mc_solvers/ForwardMcKernel.hh | GCZhang/Profugus | d4d8fe295a92a257b26b6082224226ca1edbff5d | [
"BSD-2-Clause"
] | null | null | null | packages/Alea/mc_solvers/ForwardMcKernel.hh | GCZhang/Profugus | d4d8fe295a92a257b26b6082224226ca1edbff5d | [
"BSD-2-Clause"
] | 5 | 2016-10-05T20:48:28.000Z | 2021-06-21T12:00:54.000Z | //----------------------------------*-C++-*----------------------------------//
/*!
* \file Alea/mc_solvers/ForwardMcKernel.hh
* \author Steven Hamilton
* \brief Perform adjoint MC histories to solve linear system.
*/
//---------------------------------------------------------------------------//
#ifndef Alea_m... | 33.865979 | 88 | 0.620091 | GCZhang |
071d364afaa90c88adc4731ad4709eb2f3b9a775 | 9,643 | cpp | C++ | SinkTheFleet/SinkTheFleet/CPlayer.cpp | MJBrune/RandomProjects | c24d8aa78aa9d5a6df8ae186a92a82165a96c50c | [
"WTFPL"
] | null | null | null | SinkTheFleet/SinkTheFleet/CPlayer.cpp | MJBrune/RandomProjects | c24d8aa78aa9d5a6df8ae186a92a82165a96c50c | [
"WTFPL"
] | null | null | null | SinkTheFleet/SinkTheFleet/CPlayer.cpp | MJBrune/RandomProjects | c24d8aa78aa9d5a6df8ae186a92a82165a96c50c | [
"WTFPL"
] | null | null | null | #include "CPlayer.h"
using namespace JP_CSHIPINFO;
CPlayer::CPlayer(unsigned short whichPlayer, char gridSize)
:m_whichPlayer(whichPlayer),
m_gridSize(gridSize)
{
for (short i = 0; i < 2; i++)
m_gameGrid[i] = NULL;
allocateMemory();
for (short j = 0; j < 6; j++)//SHIP_SIZE_ARRAYSIZE
{
m_ships[j].setName((... | 24.1075 | 100 | 0.619724 | MJBrune |
0722657e681c7753b6516b601577f01c8f95483c | 696 | cpp | C++ | tests/core/test_random_queue.cpp | tatsy/lime | 385695486443808141668e98e65a5f545fd80b10 | [
"MIT"
] | 49 | 2015-01-30T08:08:25.000Z | 2021-11-13T05:31:11.000Z | tests/core/test_random_queue.cpp | tatsy/lime | 385695486443808141668e98e65a5f545fd80b10 | [
"MIT"
] | 10 | 2016-09-26T10:23:29.000Z | 2021-05-24T06:10:05.000Z | tests/core/test_random_queue.cpp | tatsy/lime | 385695486443808141668e98e65a5f545fd80b10 | [
"MIT"
] | 16 | 2015-10-10T16:10:17.000Z | 2021-10-30T13:53:10.000Z | #include "gtest/gtest.h"
#include "lime.hpp"
using lime::random_queue;
static const int nTest = 1 << 20;
class RandomQueueTest : public ::testing::Test {
protected:
virtual void setUp() {
}
random_queue<int> que;
};
TEST_F(RandomQueueTest, InEmpty) {
EXPECT_TRUE(que.empty());
}
TEST_F(RandomQueue... | 19.333333 | 48 | 0.602011 | tatsy |
072745020649226af6dd2f0f5e63cc5cd212aab1 | 1,420 | cpp | C++ | src/queries/model/not.cpp | enerc/zsearch | 60cdcd245b66d14fe4e2be1d26eb2b1877d4b098 | [
"Apache-2.0"
] | null | null | null | src/queries/model/not.cpp | enerc/zsearch | 60cdcd245b66d14fe4e2be1d26eb2b1877d4b098 | [
"Apache-2.0"
] | null | null | null | src/queries/model/not.cpp | enerc/zsearch | 60cdcd245b66d14fe4e2be1d26eb2b1877d4b098 | [
"Apache-2.0"
] | null | null | null | #include "not.hpp"
#include "../../queries/builders/ast.hpp"
using namespace std;
using namespace indexes;
namespace queries::model {
void NotModel::execute(queries::builders::AST *ast) {
if (exprList.size() != 1) {
Log::error(ast->getQueryStatus(),"SQL query NOT should have 1 children. "+ast->getSaveqQu... | 34.634146 | 104 | 0.602113 | enerc |
072876a54d00a63c68199a0d2f66973e7ab4d171 | 1,524 | hpp | C++ | cpp/include/cg3/common/material.hpp | tychota/cg3-path-tracer | 548519121cacb01a4be835c0bece21238b56f92b | [
"Beerware"
] | null | null | null | cpp/include/cg3/common/material.hpp | tychota/cg3-path-tracer | 548519121cacb01a4be835c0bece21238b56f92b | [
"Beerware"
] | null | null | null | cpp/include/cg3/common/material.hpp | tychota/cg3-path-tracer | 548519121cacb01a4be835c0bece21238b56f92b | [
"Beerware"
] | null | null | null | #pragma once
#include "cg3/common/tiny_vec.hpp"
#include "cg3/common/intersection_info.hpp"
#include "cg3/common/light_source.hpp"
class Material
{
public:
Material();
void set_diffuse( tiny_vec<float,3>& col ) ;
void set_diffuse( float r, float g, float b);
tiny_vec<float,3>& get_diffus... | 26.736842 | 143 | 0.65748 | tychota |
072a4bc92f78df02e0967b942cb33b9ba3b7d900 | 4,683 | cpp | C++ | src/demuxer.cpp | OpenGene/defq | 1cbe6cfc04705dcd010a734b4c51f02ab8a5ce7e | [
"MIT"
] | 27 | 2017-12-06T06:53:40.000Z | 2021-08-19T02:11:45.000Z | src/demuxer.cpp | OpenGene/defq | 1cbe6cfc04705dcd010a734b4c51f02ab8a5ce7e | [
"MIT"
] | 4 | 2017-12-28T02:41:31.000Z | 2021-08-21T12:07:37.000Z | src/demuxer.cpp | OpenGene/defq | 1cbe6cfc04705dcd010a734b4c51f02ab8a5ce7e | [
"MIT"
] | 8 | 2017-12-06T09:41:40.000Z | 2021-03-19T19:22:07.000Z | #include "demuxer.h"
#include "util.h"
#include <memory.h>
Demuxer::Demuxer(Options* opt){
mOptions = opt;
mBuf = NULL;
init();
}
Demuxer::~Demuxer() {
if(mBuf) {
delete mBuf;
mBuf = NULL;
}
}
void Demuxer::init() {
if(mOptions == NULL)
return;
mUseIndex1 = false;... | 26.162011 | 110 | 0.500747 | OpenGene |
072e60f746552c111c7bc04bf4cb3d53b3ca989a | 5,018 | cpp | C++ | test/test_mrt.cpp | balsini/FREDSim | 720dc30d4c2f8a51a05ec74584aef352f029c19f | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 1 | 2020-05-24T15:20:53.000Z | 2020-05-24T15:20:53.000Z | test/test_mrt.cpp | balsini/rtlib2.0 | 720dc30d4c2f8a51a05ec74584aef352f029c19f | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | test/test_mrt.cpp | balsini/rtlib2.0 | 720dc30d4c2f8a51a05ec74584aef352f029c19f | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | #include "catch.hpp"
#include <metasim.hpp>
#include <rttask.hpp>
#include <mrtkernel.hpp>
#include <edfsched.hpp>
#include <cbserver.hpp>
using namespace MetaSim;
using namespace RTSim;
TEST_CASE("multicore")
{
EDFScheduler sched;
MRTKernel kern(&sched, 2);
PeriodicTask t1(10, 10, 0, "task 1");
t1.i... | 29.174419 | 61 | 0.624352 | balsini |
073004cd565b9f199516972e25a6a3aba0258f63 | 2,800 | cpp | C++ | src/speedex/LiquidityPoolSetFrame.cpp | sandymule/stellar-core | d5f0abf8d78770aec1f6d0b8f3718f4dc0462a13 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSL-1.0",
"BSD-3-Clause"
] | 4 | 2021-11-05T07:18:21.000Z | 2021-12-13T01:16:25.000Z | src/speedex/LiquidityPoolSetFrame.cpp | sandymule/stellar-core | d5f0abf8d78770aec1f6d0b8f3718f4dc0462a13 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSL-1.0",
"BSD-3-Clause"
] | 1 | 2021-12-09T04:33:19.000Z | 2021-12-09T04:33:19.000Z | src/speedex/LiquidityPoolSetFrame.cpp | sandymule/stellar-core | d5f0abf8d78770aec1f6d0b8f3718f4dc0462a13 | [
"Apache-2.0",
"BSD-2-Clause",
"MIT",
"ECL-2.0",
"BSL-1.0",
"BSD-3-Clause"
] | 1 | 2021-12-08T23:16:19.000Z | 2021-12-08T23:16:19.000Z | #include "speedex/LiquidityPoolSetFrame.h"
#include "ledger/LedgerTxn.h"
#include "speedex/DemandUtils.h"
#include "speedex/sim_utils.h"
#include <utility>
#include "util/types.h"
namespace stellar
{
LiquidityPoolSetFrame::LiquidityPoolSetFrame(std::vector<Asset> const& assets, AbstractLedgerTxn& ltx)
{
for (aut... | 27.184466 | 140 | 0.735714 | sandymule |
0730fb13c4c0c48914c88c97430ecfff43d01c53 | 657 | cpp | C++ | src/cpp/2016-12-3/Code9-240-SearchA2DMatrix2.cpp | spurscoder/forTest | 2ab069d6740f9d7636c6988a5a0bd3825518335d | [
"MIT"
] | null | null | null | src/cpp/2016-12-3/Code9-240-SearchA2DMatrix2.cpp | spurscoder/forTest | 2ab069d6740f9d7636c6988a5a0bd3825518335d | [
"MIT"
] | 1 | 2018-10-24T05:48:27.000Z | 2018-10-24T05:52:14.000Z | src/cpp/2016-12-3/Code9-240-SearchA2DMatrix2.cpp | spurscoder/forTest | 2ab069d6740f9d7636c6988a5a0bd3825518335d | [
"MIT"
] | null | null | null | /*
Description: Write an efficient algorithm that searches for a value in an
m*n matrix, this matrix has the following properties:
* integers in each row are sorted in ascending from left to right;
* integers in each column are sorted in ascending from top to bottom.
*/
// O(M+N)
class Solution {
public:
bool ... | 24.333333 | 73 | 0.613394 | spurscoder |
0732a25a1d8aa2ecb1706820e779cf60b1e30811 | 116,763 | cpp | C++ | ToolKit/SyntaxEdit/XTPSyntaxEditLexParser.cpp | 11Zero/DemoBCG | 8f41d5243899cf1c82990ca9863fb1cb9f76491c | [
"MIT"
] | 2 | 2018-03-30T06:40:08.000Z | 2022-02-23T12:40:13.000Z | ToolKit/SyntaxEdit/XTPSyntaxEditLexParser.cpp | 11Zero/DemoBCG | 8f41d5243899cf1c82990ca9863fb1cb9f76491c | [
"MIT"
] | null | null | null | ToolKit/SyntaxEdit/XTPSyntaxEditLexParser.cpp | 11Zero/DemoBCG | 8f41d5243899cf1c82990ca9863fb1cb9f76491c | [
"MIT"
] | 1 | 2020-08-11T05:48:02.000Z | 2020-08-11T05:48:02.000Z | // XTPSyntaxEditLexParser.cpp : implementation file
//
// This file is a part of the XTREME TOOLKIT PRO MFC class library.
// (c)1998-2011 Codejock Software, All Rights Reserved.
//
// THIS SOURCE FILE IS THE PROPERTY OF CODEJOCK SOFTWARE AND IS NOT TO BE
// RE-DISTRIBUTED BY ANY MEANS WHATSOEVER WITHOUT THE EXPRESSED ... | 25.126533 | 141 | 0.668491 | 11Zero |
0733f85dcd68299e7d441edff00d18c459dddfab | 5,888 | cpp | C++ | DynacoeSrc/srcs/Dynacoe/Image.cpp | jcorks/Dynacoe | 2d606620e8072d8ae76aa2ecdc31512ac90362d9 | [
"Apache-2.0",
"MIT",
"Libpng",
"FTL",
"BSD-3-Clause"
] | 1 | 2015-11-06T18:10:11.000Z | 2015-11-06T18:10:11.000Z | DynacoeSrc/srcs/Dynacoe/Image.cpp | jcorks/Dynacoe | 2d606620e8072d8ae76aa2ecdc31512ac90362d9 | [
"Apache-2.0",
"MIT",
"Libpng",
"FTL",
"BSD-3-Clause"
] | 8 | 2018-01-25T03:54:32.000Z | 2018-09-17T01:55:35.000Z | DynacoeSrc/srcs/Dynacoe/Image.cpp | jcorks/Dynacoe | 2d606620e8072d8ae76aa2ecdc31512ac90362d9 | [
"Apache-2.0",
"MIT",
"Libpng",
"FTL",
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 2018, Johnathan Corkery. (jcorkery@umich.edu)
All rights reserved.
This file is part of the Dynacoe project (https://github.com/jcorks/Dynacoe)
Dynacoe was released under the MIT License, as detailed below.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this softw... | 26.763636 | 118 | 0.633492 | jcorks |
0734ddf23edf805925573bd9f0ad8fbd88c8ffe2 | 295 | cpp | C++ | src/common/copypaste_obj.cpp | krogenth/G2DataGUI | 6bf4ef7bc90e72cf8fd33b9028cf00859dd8aa28 | [
"MIT"
] | 1 | 2021-04-20T04:34:59.000Z | 2021-04-20T04:34:59.000Z | src/common/copypaste_obj.cpp | krogenth/G2DataGUI | 6bf4ef7bc90e72cf8fd33b9028cf00859dd8aa28 | [
"MIT"
] | 3 | 2020-05-22T12:34:35.000Z | 2021-07-02T15:46:42.000Z | src/common/copypaste_obj.cpp | krogenth/G2DataGUI | 6bf4ef7bc90e72cf8fd33b9028cf00859dd8aa28 | [
"MIT"
] | 1 | 2020-05-20T00:29:38.000Z | 2020-05-20T00:29:38.000Z | #include "..\include\common\copypaste_obj.h"
void* clipboard = nullptr;
std::string objType = "";
void copyObj(void* obj, std::string type) {
clipboard = obj;
objType = type;
}
void* pasteObj() {
return clipboard;
}
bool checkObjType(std::string type) {
return (objType == type);
} | 12.826087 | 44 | 0.667797 | krogenth |
0742993b36ef6397637f412029a0acb742b508f6 | 2,936 | cpp | C++ | source/smarties/Utils/StatsTracker.cpp | waitong94/smarties | e48fe6a8ba4695e20146cf5ca7c6720989217ed3 | [
"MIT"
] | 91 | 2018-07-16T07:54:06.000Z | 2022-03-15T09:50:22.000Z | source/smarties/Utils/StatsTracker.cpp | waitong94/smarties | e48fe6a8ba4695e20146cf5ca7c6720989217ed3 | [
"MIT"
] | 7 | 2019-04-03T03:14:59.000Z | 2021-11-17T09:02:14.000Z | source/smarties/Utils/StatsTracker.cpp | waitong94/smarties | e48fe6a8ba4695e20146cf5ca7c6720989217ed3 | [
"MIT"
] | 36 | 2018-07-16T08:08:35.000Z | 2022-03-29T02:40:20.000Z | //
// smarties
// Copyright (c) 2018 CSE-Lab, ETH Zurich, Switzerland. All rights reserved.
// Distributed under the terms of the MIT license.
//
// Created by Guido Novati (novatig@ethz.ch).
//
#include "StatsTracker.h"
#include "Warnings.h"
#include "SstreamUtilities.h"
#include "../Settings/Bund.h"
#include "..... | 26.690909 | 80 | 0.621935 | waitong94 |
074893657f6ea499ce38cd58b78e77fb00dc56d3 | 176 | hpp | C++ | test cases/cmake/19 advanced options/subprojects/cmOpts/cmMod.hpp | kira78/meson | 0ae840656c5b87f30872072aa8694667c63c96d2 | [
"Apache-2.0"
] | 4,047 | 2015-06-18T10:36:48.000Z | 2022-03-31T09:47:02.000Z | test cases/cmake/19 advanced options/subprojects/cmOpts/cmMod.hpp | kira78/meson | 0ae840656c5b87f30872072aa8694667c63c96d2 | [
"Apache-2.0"
] | 8,206 | 2015-06-14T12:20:48.000Z | 2022-03-31T22:50:37.000Z | test cases/cmake/19 advanced options/subprojects/cmOpts/cmMod.hpp | kira78/meson | 0ae840656c5b87f30872072aa8694667c63c96d2 | [
"Apache-2.0"
] | 1,489 | 2015-06-27T04:06:38.000Z | 2022-03-29T10:14:48.000Z | #pragma once
#include <string>
class cmModClass {
private:
std::string str;
public:
cmModClass(std::string foo);
std::string getStr() const;
int getInt() const;
};
| 11.733333 | 30 | 0.676136 | kira78 |
074f76db4c4330c64ae25016a36917980816dd8e | 1,622 | cpp | C++ | mysql-server/storage/ndb/src/ndbapi/ndberror_check.cpp | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | mysql-server/storage/ndb/src/ndbapi/ndberror_check.cpp | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | mysql-server/storage/ndb/src/ndbapi/ndberror_check.cpp | silenc3502/MYSQL-Arch-Doc-Summary | fcc6bb65f72a385b9f56debc9b2c00cee5914bae | [
"MIT"
] | null | null | null | /* Copyright (c) 2009, 2017, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with certai... | 33.791667 | 79 | 0.711467 | silenc3502 |
0752246cd28c89516c6ed24d8a75050699115d71 | 1,186 | hpp | C++ | climate-change/src/VS-Project/Libraries/godot-cpp-bindings/include/gen/CurveTexture.hpp | jerry871002/CSE201-project | c42cc0e51d0c8367e4d06fc33756ab2ec4118ff4 | [
"MIT"
] | 5 | 2021-05-27T21:50:33.000Z | 2022-01-28T11:54:32.000Z | climate-change/src/VS-Project/Libraries/godot-cpp-bindings/include/gen/CurveTexture.hpp | jerry871002/CSE201-project | c42cc0e51d0c8367e4d06fc33756ab2ec4118ff4 | [
"MIT"
] | null | null | null | climate-change/src/VS-Project/Libraries/godot-cpp-bindings/include/gen/CurveTexture.hpp | jerry871002/CSE201-project | c42cc0e51d0c8367e4d06fc33756ab2ec4118ff4 | [
"MIT"
] | 1 | 2021-01-04T21:12:05.000Z | 2021-01-04T21:12:05.000Z | #ifndef GODOT_CPP_CURVETEXTURE_HPP
#define GODOT_CPP_CURVETEXTURE_HPP
#include <gdnative_api_struct.gen.h>
#include <stdint.h>
#include <core/CoreTypes.hpp>
#include <core/Ref.hpp>
#include "Texture.hpp"
namespace godot {
class Curve;
class CurveTexture : public Texture {
struct ___method_bindings {
godot_meth... | 23.72 | 245 | 0.766442 | jerry871002 |
07540d3da3c2bc6c01f7efbae4a369df0b7a4229 | 1,919 | cpp | C++ | FSE/PhysContactListener.cpp | Alia5/FSE | e53565aa1bbf0235dfcd2c3209d18b64c1fb2df1 | [
"MIT"
] | 17 | 2017-04-02T00:17:47.000Z | 2021-11-23T21:42:48.000Z | FSE/PhysContactListener.cpp | Alia5/FSE | e53565aa1bbf0235dfcd2c3209d18b64c1fb2df1 | [
"MIT"
] | null | null | null | FSE/PhysContactListener.cpp | Alia5/FSE | e53565aa1bbf0235dfcd2c3209d18b64c1fb2df1 | [
"MIT"
] | 5 | 2017-08-06T12:47:18.000Z | 2020-08-14T14:16:22.000Z | #include "PhysContactListener.h"
#include "FSEObject/FSEObject.h"
namespace fse
{
PhysContactListener::PhysContactListener() {
}
PhysContactListener::~PhysContactListener()
{
}
void PhysContactListener::BeginContact(b2Contact* contact)
{
FSEObject * objectA = static_cast<FSEObject*>(contact->GetFixtureA... | 29.523077 | 98 | 0.712871 | Alia5 |
075a2e0253776a5cfbfa84b5f98579518e184fc8 | 221 | hpp | C++ | lbench/include/likely.hpp | milad621/livehd | 370b4274809ef95f880da07a603245bffcadf05e | [
"BSD-3-Clause"
] | 115 | 2019-09-28T13:39:41.000Z | 2022-03-24T11:08:53.000Z | lbench/include/likely.hpp | milad621/livehd | 370b4274809ef95f880da07a603245bffcadf05e | [
"BSD-3-Clause"
] | 120 | 2018-05-16T23:11:09.000Z | 2019-09-25T18:52:49.000Z | lbench/include/likely.hpp | milad621/livehd | 370b4274809ef95f880da07a603245bffcadf05e | [
"BSD-3-Clause"
] | 44 | 2019-09-28T07:53:21.000Z | 2022-02-13T23:21:12.000Z | // This file is distributed under the BSD 3-Clause License. See LICENSE for details.
#ifndef likely
#define likely(x) __builtin_expect((x), 1)
#endif
#ifndef unlikely
#define unlikely(x) __builtin_expect((x), 0)
#endif
| 24.555556 | 85 | 0.751131 | milad621 |
075b5f156f565a1f9be5c2700c0f2b8a57985269 | 1,610 | cpp | C++ | pochi_libs_and_includes/include/fastinterp/fastinterp_tpl_throw_exception.cpp | dghosef/taco | c5074c359af51242d76724f97bb5fe7d9b638658 | [
"MIT"
] | null | null | null | pochi_libs_and_includes/include/fastinterp/fastinterp_tpl_throw_exception.cpp | dghosef/taco | c5074c359af51242d76724f97bb5fe7d9b638658 | [
"MIT"
] | null | null | null | pochi_libs_and_includes/include/fastinterp/fastinterp_tpl_throw_exception.cpp | dghosef/taco | c5074c359af51242d76724f97bb5fe7d9b638658 | [
"MIT"
] | null | null | null | #define POCHIVM_INSIDE_FASTINTERP_TPL_CPP
#include "fastinterp_tpl_common.hpp"
#include "fastinterp_function_alignment.h"
#include "fastinterp_tpl_return_type.h"
namespace PochiVM
{
struct FIThrowExceptionImpl
{
template<bool isQuickAccess>
static constexpr bool cond()
{
return true;
}
/... | 25.555556 | 79 | 0.685093 | dghosef |
075fb5c1655e594d033995cff4bcc35fb672c506 | 681 | cpp | C++ | 1027.cpp | gysss/PAT | 1652927317b35f86eb10d399042c2289e65d8d70 | [
"Apache-2.0"
] | null | null | null | 1027.cpp | gysss/PAT | 1652927317b35f86eb10d399042c2289e65d8d70 | [
"Apache-2.0"
] | null | null | null | 1027.cpp | gysss/PAT | 1652927317b35f86eb10d399042c2289e65d8d70 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <stdio.h>
#include <cmath>
#include <string>
using namespace std;
int main(int argc, char * argv[]){
int N;
char t;
cin>>N>>t;
int i=sqrt((N+1)/2);
for (int j = 0;j<i;j++)
{
for (int n = 0; n < j; ++n)
{
cout<<" ";
}
for (int m = 0; m < 2*i-1-2*j-1; ++m)
{
cout<<t<<"... | 14.1875 | 39 | 0.422907 | gysss |
79e32a9967b1821e49733abcbbc72c012d7dc10f | 1,205 | cpp | C++ | esp32s-wroom/Webthings-Controller/src/main.cpp | raushanraja/IOTExmaples | 1973381b99e4a4bd3303b9e3c2739c7482b27ea4 | [
"Unlicense"
] | null | null | null | esp32s-wroom/Webthings-Controller/src/main.cpp | raushanraja/IOTExmaples | 1973381b99e4a4bd3303b9e3c2739c7482b27ea4 | [
"Unlicense"
] | null | null | null | esp32s-wroom/Webthings-Controller/src/main.cpp | raushanraja/IOTExmaples | 1973381b99e4a4bd3303b9e3c2739c7482b27ea4 | [
"Unlicense"
] | null | null | null | #include <Arduino.h>
#include <WiFi.h>
#include <ArduinoHttpClient.h>
const char *ssid = "dlink_DWR-920V_7EE5";
const char *password = "nhaza95645";
const int hostPort = 80;
const char *hostAddress = "192.168.0.24";
WiFiClient wifi;
HttpClient client = HttpClient(wifi, hostAddress, hostPort);
int touchInput;
int val... | 21.140351 | 76 | 0.661411 | raushanraja |
79e5443898422e0a129df925d76fc9fa032f0637 | 2,521 | cc | C++ | alidns/src/model/SetDNSSLBStatusRequest.cc | iamzken/aliyun-openapi-cpp-sdk | 3c991c9ca949b6003c8f498ce7a672ea88162bf1 | [
"Apache-2.0"
] | null | null | null | alidns/src/model/SetDNSSLBStatusRequest.cc | iamzken/aliyun-openapi-cpp-sdk | 3c991c9ca949b6003c8f498ce7a672ea88162bf1 | [
"Apache-2.0"
] | null | null | null | alidns/src/model/SetDNSSLBStatusRequest.cc | iamzken/aliyun-openapi-cpp-sdk | 3c991c9ca949b6003c8f498ce7a672ea88162bf1 | [
"Apache-2.0"
] | 1 | 2020-11-27T09:13:12.000Z | 2020-11-27T09:13:12.000Z | /*
* Copyright 2009-2017 Alibaba Cloud 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... | 23.560748 | 78 | 0.741372 | iamzken |
79e8dfbfb1b7f4d7667ae5e17eb5eefe5d1586ea | 3,288 | cpp | C++ | AUT2016/LOG2410/tp5/TP5-A16/Code/MachineBase.cpp | KevPantelakis/turbo-giggle | cb3c089f9284fe4b2b20917c3301054812d32e4b | [
"MIT"
] | null | null | null | AUT2016/LOG2410/tp5/TP5-A16/Code/MachineBase.cpp | KevPantelakis/turbo-giggle | cb3c089f9284fe4b2b20917c3301054812d32e4b | [
"MIT"
] | null | null | null | AUT2016/LOG2410/tp5/TP5-A16/Code/MachineBase.cpp | KevPantelakis/turbo-giggle | cb3c089f9284fe4b2b20917c3301054812d32e4b | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////
// MachineBase.cpp
// Implementation of the Class MachineBase
// Created on: 27-oct.-2016 15:12:17
// Original author: francois
///////////////////////////////////////////////////////////
#include <iostream>
#include "MachineBase.h"
#include "Circu... | 24.176471 | 119 | 0.744526 | KevPantelakis |
79ebf4f7fc80fba0e2ea0599a01d1ef57f8b53a6 | 5,109 | cpp | C++ | Engine/Src/Memory/MemoryProfiler.cpp | felipegodias/PlutoEngine | 0ee5304b35f8b5edb0cb6d2635285daff9e35b21 | [
"MIT"
] | null | null | null | Engine/Src/Memory/MemoryProfiler.cpp | felipegodias/PlutoEngine | 0ee5304b35f8b5edb0cb6d2635285daff9e35b21 | [
"MIT"
] | 5 | 2021-12-10T23:27:43.000Z | 2021-12-23T00:49:04.000Z | Engine/Src/Memory/MemoryProfiler.cpp | felipegodias/PlutoEngine | 0ee5304b35f8b5edb0cb6d2635285daff9e35b21 | [
"MIT"
] | null | null | null | #include "Pluto/Engine/Memory/MemoryProfiler.h"
#include <algorithm>
#include <iostream>
#include <map>
#include <unordered_map>
#include <vector>
namespace Pluto::Engine
{
namespace
{
size_t totalUsedBytes = 0;
template <class Ty>
class MPAllocator
{
public:
... | 31.732919 | 118 | 0.557056 | felipegodias |
79ed0d94f4ce09d7aca47bbd4d52f7e72f5778b8 | 6,335 | hpp | C++ | vox_nav_planning/include/vox_nav_planning/planner_core.hpp | NMBURobotics/vox_nav | 7d71c97166ce57680bf2e637cca7c745d55b045a | [
"Apache-2.0"
] | 47 | 2021-06-03T08:46:51.000Z | 2022-03-31T08:07:09.000Z | vox_nav_planning/include/vox_nav_planning/planner_core.hpp | BADAL244/vox_nav | cd88c8a921feed65a92355d6246cf6cb8dd27939 | [
"Apache-2.0"
] | 6 | 2021-06-06T01:17:38.000Z | 2022-01-06T10:01:53.000Z | vox_nav_planning/include/vox_nav_planning/planner_core.hpp | BADAL244/vox_nav | cd88c8a921feed65a92355d6246cf6cb8dd27939 | [
"Apache-2.0"
] | 10 | 2021-06-03T08:46:53.000Z | 2022-03-04T00:57:51.000Z | // Copyright (c) 2020 Fetullah Atas, Norwegian University of Life Sciences
//
// 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
//
// Unles... | 34.807692 | 117 | 0.74412 | NMBURobotics |
79ed49b1e1df38a0d2a90f155f08875114637b67 | 1,702 | cpp | C++ | Siv3D/src/Siv3D/Script/Bind/ScriptLineStyleParameters.cpp | sanyaade-teachings/OpenSiv3D | e4ef5d9676f0048b3ce527779baaff3ad0d3059b | [
"MIT"
] | null | null | null | Siv3D/src/Siv3D/Script/Bind/ScriptLineStyleParameters.cpp | sanyaade-teachings/OpenSiv3D | e4ef5d9676f0048b3ce527779baaff3ad0d3059b | [
"MIT"
] | null | null | null | Siv3D/src/Siv3D/Script/Bind/ScriptLineStyleParameters.cpp | sanyaade-teachings/OpenSiv3D | e4ef5d9676f0048b3ce527779baaff3ad0d3059b | [
"MIT"
] | null | null | null | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2022 Ryo Suzuki
// Copyright (c) 2016-2022 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# include <Siv3D/Script.hpp>
# include <Siv3D/... | 34.734694 | 204 | 0.701528 | sanyaade-teachings |
79ef76ba33b022a330ea2f083566be1f81683f7b | 2,025 | cc | C++ | src/utility/11060-dfs-ts.cc | cbarnson/UVa | 0dd73fae656613e28b5aaf5880c5dad529316270 | [
"Unlicense",
"MIT"
] | 2 | 2019-09-07T17:00:26.000Z | 2020-08-05T02:08:35.000Z | src/utility/11060-dfs-ts.cc | cbarnson/UVa | 0dd73fae656613e28b5aaf5880c5dad529316270 | [
"Unlicense",
"MIT"
] | null | null | null | src/utility/11060-dfs-ts.cc | cbarnson/UVa | 0dd73fae656613e28b5aaf5880c5dad529316270 | [
"Unlicense",
"MIT"
] | null | null | null | // Problem # : 11060
// Title : Beverages
// Accepted : No
// Date : 20180519
#include <assert.h>
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <algorithm>
#include <bitset>
#include <deque>
#include <functional>
#include <iomanip>
#includ... | 17.307692 | 74 | 0.54963 | cbarnson |
79f1d251fe95783f271c6f7de50452135402a571 | 2,439 | cpp | C++ | source/geom/border.cpp | taogashi/mlib | 56d0ac08205b3a09cac7ed97209454cc6262c924 | [
"Unlicense",
"MIT"
] | 12 | 2020-07-08T04:21:44.000Z | 2022-03-24T10:02:03.000Z | source/geom/border.cpp | taogashi/mlib | 56d0ac08205b3a09cac7ed97209454cc6262c924 | [
"Unlicense",
"MIT"
] | null | null | null | source/geom/border.cpp | taogashi/mlib | 56d0ac08205b3a09cac7ed97209454cc6262c924 | [
"Unlicense",
"MIT"
] | 2 | 2020-07-22T09:00:40.000Z | 2021-06-29T13:54:10.000Z | /*!
\file border.cpp Implementation of Border object
(c) Mircea Neacsu 2017
*/
#include <mlib/border.h>
#include <stdio.h>
#include <algorithm>
#include <utf8/utf8.h>
using namespace std;
/*!
\defgroup geom Geometry
\brief Geometry concepts and algorithms
*/
namespace mlib {
/*!
\class Border
\ingro... | 19.991803 | 81 | 0.633046 | taogashi |
79f4088c86ce4690e142dedf57370d2a6fd7bc0c | 2,682 | cpp | C++ | third_party/di-cpp14/test/ut/concepts/configurable.cpp | robhendriks/city-defence | 6567222087fc74bf374423d4aab5512cbe86ac07 | [
"MIT"
] | null | null | null | third_party/di-cpp14/test/ut/concepts/configurable.cpp | robhendriks/city-defence | 6567222087fc74bf374423d4aab5512cbe86ac07 | [
"MIT"
] | null | null | null | third_party/di-cpp14/test/ut/concepts/configurable.cpp | robhendriks/city-defence | 6567222087fc74bf374423d4aab5512cbe86ac07 | [
"MIT"
] | 1 | 2022-03-29T02:01:56.000Z | 2022-03-29T02:01:56.000Z | //
// Copyright (c) 2012-2016 Krzysztof Jusiak (krzysztof at jusiak dot 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)
//
#include "boost/di/concepts/configurable.hpp"
#include <type_traits>
#include "boost... | 29.472527 | 122 | 0.695377 | robhendriks |
79f4e5ac69c3de768e4ca56046a8bd91dbe04e16 | 7,336 | cc | C++ | chrome/browser/sessions/session_data_deleter.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2021-11-16T13:10:29.000Z | 2021-11-16T13:10:29.000Z | chrome/browser/sessions/session_data_deleter.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/sessions/session_data_deleter.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/sessions/session_data_deleter.h"
#include <stddef.h>
#include <stdint.h>
#include "base/bind.h"
#include "base/callback_helpers... | 41.92 | 80 | 0.756816 | zealoussnow |
79f856cdd4b92251b567035ef65143e58204e868 | 8,330 | cpp | C++ | Simulation/src/manipulator/src/RobotHWInterface.cpp | Cinek28/Manipulator | de42d956edb9c5a26f61cee605023cd71bddc581 | [
"MIT"
] | null | null | null | Simulation/src/manipulator/src/RobotHWInterface.cpp | Cinek28/Manipulator | de42d956edb9c5a26f61cee605023cd71bddc581 | [
"MIT"
] | null | null | null | Simulation/src/manipulator/src/RobotHWInterface.cpp | Cinek28/Manipulator | de42d956edb9c5a26f61cee605023cd71bddc581 | [
"MIT"
] | null | null | null | #include <sstream>
#include <std_msgs/Float64.h>
#include "RobotHWInterface.h"
using namespace hardware_interface;
using joint_limits_interface::JointLimits;
using joint_limits_interface::PositionJointSoftLimitsHandle;
using joint_limits_interface::PositionJointSoftLimitsInterface;
using joint_limits_interface::SoftJo... | 37.522523 | 116 | 0.685714 | Cinek28 |
79f863d8bf49bb62e693ba1c845a5d449f0c6399 | 2,219 | cpp | C++ | aws-cpp-sdk-opsworks/source/model/CloudWatchLogsInitialPosition.cpp | Neusoft-Technology-Solutions/aws-sdk-cpp | 88c041828b0dbee18a297c3cfe98c5ecd0706d0b | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-opsworks/source/model/CloudWatchLogsInitialPosition.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-opsworks/source/model/CloudWatchLogsInitialPosition.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/opsworks/model/CloudWatchLogsInitialPosition.h>
#include <aws/core/utils/HashingUtils.h>
#include <aws/core/Globals.h>
#include <aws/core/utils/EnumParseOverflowContainer.h>
using names... | 31.253521 | 102 | 0.657503 | Neusoft-Technology-Solutions |
79f88c4219d8463f65209cc3fbbaf2d186d25363 | 20,457 | hxx | C++ | main/svx/inc/dgdefs_.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/svx/inc/dgdefs_.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/svx/inc/dgdefs_.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.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 y... | 60.523669 | 67 | 0.869042 | Grosskopf |
79fff03ba80e9f795aa6cc52ecc9a519bc916b80 | 1,847 | cpp | C++ | scorpio_arm_ros_control/src/hardware.cpp | applejenny66/goldpaint | cbb368d2d21cc1e26177314eb1e6fceb7c6e6c8d | [
"MIT"
] | null | null | null | scorpio_arm_ros_control/src/hardware.cpp | applejenny66/goldpaint | cbb368d2d21cc1e26177314eb1e6fceb7c6e6c8d | [
"MIT"
] | 1 | 2020-08-10T05:33:02.000Z | 2020-08-10T05:33:02.000Z | scorpio_arm_ros_control/src/hardware.cpp | applejenny66/goldpaint | cbb368d2d21cc1e26177314eb1e6fceb7c6e6c8d | [
"MIT"
] | 1 | 2021-05-20T09:08:05.000Z | 2021-05-20T09:08:05.000Z | #include "scorpio_arm_ros_control/hardware_transmission_interface.h"
void HwTmIntf::hw_data_init_()
{
hw_data_.jnt_curr_pos_.clear();
hw_data_.jnt_curr_vel_.clear();
hw_data_.jnt_curr_eff_.clear();
hw_data_.jnt_cmd_pos_.clear();
hw_data_.jnt_cmd_vel_.clear();
hw_data_.jnt_cmd_eff_.clear();
hw_data_.act... | 27.984848 | 68 | 0.750406 | applejenny66 |
0302acb3cb76ec9f92d2dce3bd8efdd63ce082c2 | 2,065 | cpp | C++ | wpilibc/src/main/native/cpp/Compressor.cpp | lhvy/allwpilib | cc31079a1123498faf1acfb7f12b5976c6a686af | [
"BSD-3-Clause"
] | 39 | 2021-06-18T03:22:30.000Z | 2022-03-21T15:23:43.000Z | wpilibc/src/main/native/cpp/Compressor.cpp | lhvy/allwpilib | cc31079a1123498faf1acfb7f12b5976c6a686af | [
"BSD-3-Clause"
] | 10 | 2021-06-18T03:22:19.000Z | 2022-03-18T22:14:15.000Z | wpilibc/src/main/native/cpp/Compressor.cpp | lhvy/allwpilib | cc31079a1123498faf1acfb7f12b5976c6a686af | [
"BSD-3-Clause"
] | 4 | 2021-08-19T19:20:04.000Z | 2022-03-08T07:33:18.000Z | // Copyright (c) FIRST and other WPILib contributors.
// Open Source Software; you can modify and/or share it under the terms of
// the WPILib BSD license file in the root directory of this project.
#include "frc/Compressor.h"
#include <hal/FRCUsageReporting.h>
#include <hal/Ports.h>
#include <wpi/sendable/SendableBu... | 28.287671 | 78 | 0.743341 | lhvy |
03033a70d7d6c863f038d38a0f8745b2ede7df17 | 4,817 | hpp | C++ | query_optimizer/logical/TableReference.hpp | Hacker0912/quickstep-datalog | 1de22e7ab787b5efa619861a167a097ff6a4f549 | [
"Apache-2.0"
] | 82 | 2016-04-18T03:59:06.000Z | 2019-02-04T11:46:08.000Z | query_optimizer/logical/TableReference.hpp | Hacker0912/quickstep-datalog | 1de22e7ab787b5efa619861a167a097ff6a4f549 | [
"Apache-2.0"
] | 265 | 2016-04-19T17:52:43.000Z | 2018-10-11T17:55:08.000Z | query_optimizer/logical/TableReference.hpp | Hacker0912/quickstep-datalog | 1de22e7ab787b5efa619861a167a097ff6a4f549 | [
"Apache-2.0"
] | 68 | 2016-04-18T05:00:34.000Z | 2018-10-30T12:41:02.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... | 33.451389 | 97 | 0.744032 | Hacker0912 |
03059a397b411fb7e5880a29eb03be4cbaefedf9 | 2,601 | hpp | C++ | libs/pika/async_cuda/include/pika/async_cuda/cuda_event.hpp | pika-org/pika | c80f542b2432a7f108fcfba31a5fe5073ad2b3e1 | [
"BSL-1.0"
] | 13 | 2022-01-17T12:01:48.000Z | 2022-03-16T10:03:14.000Z | libs/pika/async_cuda/include/pika/async_cuda/cuda_event.hpp | pika-org/pika | c80f542b2432a7f108fcfba31a5fe5073ad2b3e1 | [
"BSL-1.0"
] | 163 | 2022-01-17T17:36:45.000Z | 2022-03-31T17:42:57.000Z | libs/pika/async_cuda/include/pika/async_cuda/cuda_event.hpp | pika-org/pika | c80f542b2432a7f108fcfba31a5fe5073ad2b3e1 | [
"BSL-1.0"
] | 4 | 2022-01-19T08:44:22.000Z | 2022-01-31T23:16:21.000Z | // Copyright (c) 2020 John Biddiscombe
// Copyright (c) 2020 Teodor Nikolov
//
// 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 <pika/async_cuda/cuda_e... | 29.896552 | 81 | 0.576701 | pika-org |
0306b8266d2e2748f1549e9e751e5f9551a5fa87 | 1,091 | hpp | C++ | AudioKit/Core/Devoloop/FFTReal/FFTRealSelect.hpp | ethi1989/AudioKit | 97acc8da6dfb75408b2276998073de7a4511d480 | [
"MIT"
] | 206 | 2020-10-28T12:47:49.000Z | 2022-03-26T14:09:30.000Z | AudioKit/Core/Devoloop/FFTReal/FFTRealSelect.hpp | ethi1989/AudioKit | 97acc8da6dfb75408b2276998073de7a4511d480 | [
"MIT"
] | 7 | 2020-10-29T10:29:23.000Z | 2021-08-07T00:22:03.000Z | AudioKit/Core/Devoloop/FFTReal/FFTRealSelect.hpp | ethi1989/AudioKit | 97acc8da6dfb75408b2276998073de7a4511d480 | [
"MIT"
] | 30 | 2020-10-28T16:11:40.000Z | 2021-12-28T01:15:23.000Z | /*****************************************************************************
FFTRealSelect.hpp
By Laurent de Soras
--- Legal stuff ---
This program is free software. It comes without any warranty, to
the extent permitted by applicable law. You can redistribute it
and/or modify it under the terms of... | 24.795455 | 79 | 0.662695 | ethi1989 |
0307638490f51f2f3ee12d67be17b4211ab1146f | 6,917 | cpp | C++ | uwsim_resources/uwsim_osgworks/src/osgwTools/CameraConfigObject.cpp | epsilonorion/usv_lsa_sim_copy | d189f172dc1d265b7688c7dc8375a65ac4a9c048 | [
"Apache-2.0"
] | 1 | 2020-11-30T09:55:33.000Z | 2020-11-30T09:55:33.000Z | uwsim_resources/uwsim_osgworks/src/osgwTools/CameraConfigObject.cpp | epsilonorion/usv_lsa_sim_copy | d189f172dc1d265b7688c7dc8375a65ac4a9c048 | [
"Apache-2.0"
] | null | null | null | uwsim_resources/uwsim_osgworks/src/osgwTools/CameraConfigObject.cpp | epsilonorion/usv_lsa_sim_copy | d189f172dc1d265b7688c7dc8375a65ac4a9c048 | [
"Apache-2.0"
] | 2 | 2020-11-21T19:50:54.000Z | 2020-12-27T09:35:29.000Z | /*************** <auto-copyright.pl BEGIN do not edit this line> **************
*
* osgWorks is (C) Copyright 2009-2012 by Kenneth Mark Bryden
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1 as published by the Fr... | 30.879464 | 179 | 0.649414 | epsilonorion |
030c764d3f6d932ee9ce1aa1681ac08679c89877 | 3,821 | cpp | C++ | tests/src/step_refiner_constant_factor.test.cpp | Rookfighter/optimization-cpp | 482122c9bef39f30e57af69c93d99853005f14f7 | [
"MIT"
] | null | null | null | tests/src/step_refiner_constant_factor.test.cpp | Rookfighter/optimization-cpp | 482122c9bef39f30e57af69c93d99853005f14f7 | [
"MIT"
] | null | null | null | tests/src/step_refiner_constant_factor.test.cpp | Rookfighter/optimization-cpp | 482122c9bef39f30e57af69c93d99853005f14f7 | [
"MIT"
] | null | null | null | /// step_refiner_constant_factor.test.cpp
///
/// Author: Fabian Meyer
/// Created On: 22 Jan 2021
/// License: MIT
#include <lsqcpp/lsqcpp.hpp>
#include "eigen_require.hpp"
#include "parabolic_error.hpp"
using namespace lsqcpp;
TEMPLATE_TEST_CASE("constant factor step refiner", "[step refiner]", float, doubl... | 33.226087 | 91 | 0.55509 | Rookfighter |
030ce6dbf389eb5f37eb6b9f4ba2d0213d5fdf49 | 478 | hpp | C++ | src/la/cublas.hpp | ltalirz/nlcglib | b95467d23681477519e203e84313ad872d28bd62 | [
"BSD-3-Clause"
] | 6 | 2021-03-09T14:45:26.000Z | 2022-03-08T14:41:58.000Z | src/la/cublas.hpp | ltalirz/nlcglib | b95467d23681477519e203e84313ad872d28bd62 | [
"BSD-3-Clause"
] | 10 | 2020-09-09T19:51:32.000Z | 2022-03-23T13:05:57.000Z | src/la/cublas.hpp | ltalirz/nlcglib | b95467d23681477519e203e84313ad872d28bd62 | [
"BSD-3-Clause"
] | 1 | 2022-03-08T11:28:49.000Z | 2022-03-08T11:28:49.000Z | #pragma once
#include <cublas_v2.h>
#include <iostream>
namespace cublas {
struct cublasHandle
{
private:
static cublasHandle_t& _get()
{
static cublasHandle_t handle{nullptr};
return handle;
}
public:
static cublasHandle_t& get()
{
cublasHandle_t& handle = _get();
if(!handle) {
cublas... | 14.058824 | 42 | 0.625523 | ltalirz |
030ddb6598e2b08de39b4ac40f0bc07a25c0ecb7 | 1,062 | cpp | C++ | Labs/Lab_4/main.cpp | benjaminmao123/UCR-CS012 | c2292162a79bb711156f93e9c08af2a61079838d | [
"Apache-2.0"
] | null | null | null | Labs/Lab_4/main.cpp | benjaminmao123/UCR-CS012 | c2292162a79bb711156f93e9c08af2a61079838d | [
"Apache-2.0"
] | null | null | null | Labs/Lab_4/main.cpp | benjaminmao123/UCR-CS012 | c2292162a79bb711156f93e9c08af2a61079838d | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include "Distance.h"
using namespace std;
int main() {
Distance d1;
cout << "d1: " << d1 << endl;
Distance d2 = Distance(2, 5.9);
Distance d3 = Distance(3.75);
cout << "d2: " << d2 << endl;
cout << "d3: " << d3 << endl;
//test init helper function
Distance d4 = Distance(5, 19.3... | 23.6 | 43 | 0.504708 | benjaminmao123 |