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 109 | 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 48.5k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8e27b8f69bd4c6ef07d4ebdc6d55e6ba669c8e09 | 2,382 | cpp | C++ | Day12/12.cpp | Legolaszstudio/aoc2021 | dc2e341738e11a55232ae0f37aa0cc5625d8d831 | [
"BSD-3-Clause"
] | null | null | null | Day12/12.cpp | Legolaszstudio/aoc2021 | dc2e341738e11a55232ae0f37aa0cc5625d8d831 | [
"BSD-3-Clause"
] | null | null | null | Day12/12.cpp | Legolaszstudio/aoc2021 | dc2e341738e11a55232ae0f37aa0cc5625d8d831 | [
"BSD-3-Clause"
] | null | null | null | #include <string>
#include <fstream>
#include <sstream>
#include <deque>
#include <vector>
#include <iostream>
#include <algorithm>
#include <unordered_map>
#include <set>
struct Graph {
std::unordered_map<std::string, std::vector<std::string>> tree;
//WARNING It is not the best option to store the entire solutions b... | 30.538462 | 136 | 0.669186 | Legolaszstudio |
8e2ce4cd297c21145788a920086b875e6bc37617 | 12,262 | cpp | C++ | groups/bal/balb/balb_leakybucket.cpp | AlisdairM/bde | bc65db208c32513aa545080f57090cc39c608be0 | [
"Apache-2.0"
] | 1 | 2022-01-23T11:31:12.000Z | 2022-01-23T11:31:12.000Z | groups/bal/balb/balb_leakybucket.cpp | AlisdairM/bde | bc65db208c32513aa545080f57090cc39c608be0 | [
"Apache-2.0"
] | null | null | null | groups/bal/balb/balb_leakybucket.cpp | AlisdairM/bde | bc65db208c32513aa545080f57090cc39c608be0 | [
"Apache-2.0"
] | null | null | null | // balb_leakybucket.cpp -*-C++-*-
#include <balb_leakybucket.h>
#include <bsls_ident.h>
BSLS_IDENT_RCSID(balb_leakybucket.cpp,"$Id$ $CSID$")
#include <bsl_c_math.h>
namespace BloombergLP {
namespace {
bsls::Types::Uint64 calculateNumberOfUnitsToDrain(
... | 36.494048 | 79 | 0.576333 | AlisdairM |
8e2efa1781bfb88bc7793216fa25a00987bde79b | 681 | cpp | C++ | framework/source/metadata_backward_compatibility.cpp | xrEngine512/interop | c80711fbbe08f350ad5d8058163770f57ed20b0c | [
"MIT"
] | null | null | null | framework/source/metadata_backward_compatibility.cpp | xrEngine512/interop | c80711fbbe08f350ad5d8058163770f57ed20b0c | [
"MIT"
] | 4 | 2017-05-31T12:34:10.000Z | 2018-10-13T18:53:03.000Z | framework/source/metadata_backward_compatibility.cpp | xrEngine512/MosaicFramework | c80711fbbe08f350ad5d8058163770f57ed20b0c | [
"MIT"
] | 1 | 2020-04-23T14:09:11.000Z | 2020-04-23T14:09:11.000Z | //
// Created by islam on 14.01.18.
//
#include "metadata_backward_compatibility.h"
#include "exceptions.h"
namespace interop {
module_metadata_t convert_metadata_to_current(const version_t & version, const void * metadata)
{
/** version of module's interop ABI matches version of node **/
if (version == inter... | 32.428571 | 100 | 0.671072 | xrEngine512 |
8e3f6cf476c45f2b7a7bef65b062dc198e4b0edc | 13,656 | hpp | C++ | server/http_context.hpp | photonmaster/scymnus | bcbf580091a730c63e15b67b6331705a281ba20b | [
"MIT"
] | 7 | 2021-08-19T01:11:21.000Z | 2021-08-31T15:25:51.000Z | server/http_context.hpp | photonmaster/scymnus | bcbf580091a730c63e15b67b6331705a281ba20b | [
"MIT"
] | null | null | null | server/http_context.hpp | photonmaster/scymnus | bcbf580091a730c63e15b67b6331705a281ba20b | [
"MIT"
] | null | null | null | #pragma once
#include <filesystem>
#include <fstream>
#include <charconv>
#include "core/named_tuple.hpp"
#include "core/traits.hpp"
#include "date_manager.hpp"
#include "external/json.hpp"
#include "http/http_common.hpp"
#include "http/query_parser.hpp"
#include "http_request.hpp"
#include "http_response.hpp"
#includ... | 36.126984 | 89 | 0.603691 | photonmaster |
8e4db243cb4788f9aafac665ea049faaf53059e3 | 1,105 | cpp | C++ | Actividad2_recibe/ventanaarchivoexistente.cpp | adricatena/I2-puertoSerie | cb9efbde2bf30e517649e80a9ebb585449194287 | [
"MIT"
] | null | null | null | Actividad2_recibe/ventanaarchivoexistente.cpp | adricatena/I2-puertoSerie | cb9efbde2bf30e517649e80a9ebb585449194287 | [
"MIT"
] | null | null | null | Actividad2_recibe/ventanaarchivoexistente.cpp | adricatena/I2-puertoSerie | cb9efbde2bf30e517649e80a9ebb585449194287 | [
"MIT"
] | null | null | null | #include "ventanaarchivoexistente.h"
#include "ui_ventanaarchivoexistente.h"
VentanaArchivoExistente::VentanaArchivoExistente(QWidget *parent) :
QDialog(parent),
ui(new Ui::VentanaArchivoExistente)
{
ui->setupUi(this);
configuracion = new QSettings("Informatica II", "Actividad 2", this);
}
... | 26.95122 | 112 | 0.640724 | adricatena |
8e56d9e614f40f44f8657bdba23674583775c8bd | 2,620 | cpp | C++ | src/frame_transformation.cpp | sakshikakde/human-detector-and-tracker | 04e1fd08b858ababfa4fa91da8306890ef1d7d00 | [
"MIT"
] | null | null | null | src/frame_transformation.cpp | sakshikakde/human-detector-and-tracker | 04e1fd08b858ababfa4fa91da8306890ef1d7d00 | [
"MIT"
] | 3 | 2021-10-16T05:46:37.000Z | 2021-10-18T22:16:20.000Z | src/frame_transformation.cpp | sakshikakde/human-detector-and-tracker | 04e1fd08b858ababfa4fa91da8306890ef1d7d00 | [
"MIT"
] | 2 | 2021-10-06T02:52:31.000Z | 2021-10-06T05:16:28.000Z | /**
* MIT License
*
* Copyright (c) 2021 Anubhav Paras, Sakshi Kakde, Siddharth Telang
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitati... | 35.890411 | 81 | 0.681679 | sakshikakde |
8e5c5cf73edd2031dd4c597f8ce890c017208f5d | 3,459 | hh | C++ | include/tchecker/system/intvar.hh | arnabSur/tchecker | 24ba7703068a41c6e9c613b4ef80ad6c788e65bc | [
"MIT"
] | 7 | 2019-08-12T12:22:07.000Z | 2021-11-18T01:48:27.000Z | include/tchecker/system/intvar.hh | arnabSur/tchecker | 24ba7703068a41c6e9c613b4ef80ad6c788e65bc | [
"MIT"
] | 40 | 2019-07-03T04:31:19.000Z | 2022-03-31T03:40:43.000Z | include/tchecker/system/intvar.hh | arnabSur/tchecker | 24ba7703068a41c6e9c613b4ef80ad6c788e65bc | [
"MIT"
] | 8 | 2019-07-04T06:40:49.000Z | 2021-12-03T15:51:50.000Z | /*
* This file is a part of the TChecker project.
*
* See files AUTHORS and LICENSE for copyright details.
*
*/
#ifndef TCHECKER_SYSTEM_INTVAR_HH
#define TCHECKER_SYSTEM_INTVAR_HH
#include <limits>
#include <stdexcept>
#include <string>
#include <vector>
#include "tchecker/basictypes.hh"
#include "tchecker/syst... | 31.162162 | 119 | 0.713501 | arnabSur |
8e5eff5c63cdb00e353c2626a812851af7f7b89e | 5,673 | hpp | C++ | modules/gate_ops/bit_group/bit_group.hpp | ICHEC/QNLP | 2966c7f71e6979c7ddef62520c3749cf6473fabe | [
"Apache-2.0"
] | 29 | 2020-04-13T04:40:35.000Z | 2021-12-17T11:21:35.000Z | modules/gate_ops/bit_group/bit_group.hpp | ICHEC/QNLP | 2966c7f71e6979c7ddef62520c3749cf6473fabe | [
"Apache-2.0"
] | 6 | 2020-03-12T17:40:00.000Z | 2021-01-20T12:15:08.000Z | modules/gate_ops/bit_group/bit_group.hpp | ICHEC/QNLP | 2966c7f71e6979c7ddef62520c3749cf6473fabe | [
"Apache-2.0"
] | 9 | 2020-09-28T05:00:30.000Z | 2022-03-04T02:11:49.000Z | /**
* @file bit_group.hpp
* @author Lee J. O'Riordan (lee.oriordan@ichec.ie)
* @brief Implements grouping of bits to LSB side of register
* @version 0.1
* @date 2019-04-02
* @detailed This header file introduces routines for bit-wise shifting of set bits to the side of a register (ie |01010> -> |00011>).
* Note... | 47.275 | 150 | 0.609907 | ICHEC |
8e60171a198c91c1f18eba310410edbff7d07090 | 4,895 | cpp | C++ | ngraph/frontend/onnx_import/src/utils/onnx_internal.cpp | kenkoyanagi/openvino | 864b3ba62fb86e685c847ca84016043cdea870c5 | [
"Apache-2.0"
] | 1 | 2021-04-22T07:28:03.000Z | 2021-04-22T07:28:03.000Z | ngraph/frontend/onnx_import/src/utils/onnx_internal.cpp | kenkoyanagi/openvino | 864b3ba62fb86e685c847ca84016043cdea870c5 | [
"Apache-2.0"
] | 105 | 2020-06-04T00:23:29.000Z | 2022-02-21T13:04:33.000Z | ngraph/frontend/onnx/onnx_import/src/utils/onnx_internal.cpp | mpapaj/openvino | 37b46de1643a2ba6c3b6a076f81d0a47115ede7e | [
"Apache-2.0"
] | 3 | 2021-04-25T06:52:41.000Z | 2021-05-07T02:01:44.000Z | // Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <onnx/onnx_pb.h>
#include "core/graph.hpp"
#include "core/model.hpp"
#include "core/null_node.hpp"
#include "core/transform.hpp"
#include "onnx_import/onnx_framework_node.hpp"
#include "onnx_import/utils/onnx_internal.hpp"... | 43.705357 | 98 | 0.489275 | kenkoyanagi |
76a412372c85c9f49be328ce89adba110ab8bef5 | 56,487 | cpp | C++ | src/test/analysis.cpp | akazachk/vpc | 2339159e963b30287f780b6c03202fcbf0e9c131 | [
"MIT"
] | 6 | 2019-03-18T00:22:43.000Z | 2022-03-16T19:21:21.000Z | src/test/analysis.cpp | akazachk/vpc | 2339159e963b30287f780b6c03202fcbf0e9c131 | [
"MIT"
] | 14 | 2019-03-18T03:30:53.000Z | 2020-10-08T15:32:45.000Z | src/test/analysis.cpp | akazachk/vpc | 2339159e963b30287f780b6c03202fcbf0e9c131 | [
"MIT"
] | 2 | 2021-10-05T17:44:29.000Z | 2021-11-04T20:45:01.000Z | /**
* @file analysis.cpp
* @author A. M. Kazachkov
* @date 2019-03-04
*/
#include "analysis.hpp"
// COIN-OR
#include <OsiSolverInterface.hpp>
#include <OsiCuts.hpp>
#include <CglGMI.hpp>
// Project files
#include "BBHelper.hpp"
#include "CglVPC.hpp"
#include "CutHelper.hpp"
#include "Disjunction.hpp"
#include "Pa... | 45.849838 | 217 | 0.652876 | akazachk |
76a97b05240b232ce4c2d9953ced0cdb79098a1e | 21,068 | cc | C++ | src/moorerror.cc | CHEN-Lin/OpenMoor | f463f586487b9023e7f3678c9d851000558b14d7 | [
"Apache-2.0"
] | 7 | 2019-02-10T07:03:45.000Z | 2022-03-04T16:09:38.000Z | src/moorerror.cc | CHEN-Lin/OpenMoor | f463f586487b9023e7f3678c9d851000558b14d7 | [
"Apache-2.0"
] | null | null | null | src/moorerror.cc | CHEN-Lin/OpenMoor | f463f586487b9023e7f3678c9d851000558b14d7 | [
"Apache-2.0"
] | 4 | 2018-03-01T14:34:52.000Z | 2018-06-14T12:13:55.000Z | // This file is part of OpenMOOR, an Open-source simulation program for MOORing
// systems in offshore renewable energy applications.
//
// Copyright 2018 Lin Chen <l.chen.tj@gmail.com> & Biswajit Basu <basub@tcd.ie>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file exce... | 45.8 | 83 | 0.623078 | CHEN-Lin |
76b1445040b47301c1d5ceb15e854fd7590c3876 | 574 | cpp | C++ | 3/3/35.cpp | Jamxscape/LearnCPlusPlus | 9770af743a2f6e9267421ff8fec93eb9d81c1f14 | [
"Apache-2.0"
] | null | null | null | 3/3/35.cpp | Jamxscape/LearnCPlusPlus | 9770af743a2f6e9267421ff8fec93eb9d81c1f14 | [
"Apache-2.0"
] | null | null | null | 3/3/35.cpp | Jamxscape/LearnCPlusPlus | 9770af743a2f6e9267421ff8fec93eb9d81c1f14 | [
"Apache-2.0"
] | null | null | null | //
// 35.cpp
// 3
//
// Created by 马元 on 2016/12/25.
// Copyright © 2016年 MaYuan. All rights reserved.
//大家提到LTC都佩服的不行,不过,如果竞赛只有这一个题目,我敢保证你和他绝对在一个水平线上你的任务是:计算方程x^2+y^2+z^2= num的一个正整数解。Input输入数据包含多个测试实例,每个实例占一行,仅仅包含一个小于等于10000的正整数num。Output对于每组测试数据,请按照x,y,z递增的顺序输出它的一个最小正整数解,每个实例的输出占一行,题目保证所有测试数据都有解。
#include <iostr... | 26.090909 | 196 | 0.627178 | Jamxscape |
76b2c5fdc93414e954ec805be777754828ea48ef | 739 | cpp | C++ | src/VK/SemaphoreWrapper.cpp | razerx100/Terra | a30738149cb07325283c2da9ac7972f079cb4dbc | [
"MIT"
] | null | null | null | src/VK/SemaphoreWrapper.cpp | razerx100/Terra | a30738149cb07325283c2da9ac7972f079cb4dbc | [
"MIT"
] | null | null | null | src/VK/SemaphoreWrapper.cpp | razerx100/Terra | a30738149cb07325283c2da9ac7972f079cb4dbc | [
"MIT"
] | null | null | null | #include <SemaphoreWrapper.hpp>
#include <VKThrowMacros.hpp>
SemaphoreWrapper::SemaphoreWrapper(VkDevice device, size_t count)
: m_deviceRef(device), m_semaphores(count) {
VkSemaphoreCreateInfo semaphoreInfo = {};
semaphoreInfo.sType = VK_STRUCTURE_TYPE_SEMAPHORE_CREATE_INFO;
VkResult result;
for (siz... | 29.56 | 76 | 0.759134 | razerx100 |
76b2d918729e127a4b073b29b126d91cd5f6e0d2 | 1,049 | cpp | C++ | Chapter_3/p3_16.cpp | aalogancheney/CPlusPlus_For_Everyone | 251247cf1f1ca169826179379831192fadfaa5f9 | [
"MIT"
] | null | null | null | Chapter_3/p3_16.cpp | aalogancheney/CPlusPlus_For_Everyone | 251247cf1f1ca169826179379831192fadfaa5f9 | [
"MIT"
] | null | null | null | Chapter_3/p3_16.cpp | aalogancheney/CPlusPlus_For_Everyone | 251247cf1f1ca169826179379831192fadfaa5f9 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using std::cin;
using std::cout;
using std::endl;
using std::string;
void ClearInputDisplayMessage(const string& message)
{
cout << message << endl;
cin.clear();
string ignore;
getline(cin, ignore);
}
int main(int argc, char *argv[])
{
cout << "Enter the employees name: ";
... | 16.919355 | 69 | 0.632984 | aalogancheney |
76b4b622cd484e8969d77bfa2d4b292a7158258f | 2,880 | hpp | C++ | src/io/FileWriterInterface.hpp | spraetor/amdis2 | 53c45c81a65752a8fafbb54f9ae6724a86639dcd | [
"MIT"
] | 2 | 2018-07-04T16:44:04.000Z | 2021-01-03T07:26:27.000Z | src/io/FileWriterInterface.hpp | spraetor/amdis2 | 53c45c81a65752a8fafbb54f9ae6724a86639dcd | [
"MIT"
] | null | null | null | src/io/FileWriterInterface.hpp | spraetor/amdis2 | 53c45c81a65752a8fafbb54f9ae6724a86639dcd | [
"MIT"
] | null | null | null | /** \defgroup Output Output module
* @{ <img src="output.png"> @}
*/
#pragma once
#include <vector>
#include <string>
#include "AMDiS_fwd.hpp"
#include "Mesh.hpp"
namespace AMDiS
{
class FileWriterInterface
{
public:
FileWriterInterface()
: filename(""),
appendIndex(0),
indexLengt... | 25.263158 | 109 | 0.621875 | spraetor |
76b777a4b45c88e0548d0939d5c537fbebce4b59 | 269 | cpp | C++ | src/ComponentSet.cpp | Konijnendijk/Meadows-ECS | 5ee2619481086edaabcfa235e2455686cb854901 | [
"BSL-1.0",
"MIT"
] | 1 | 2017-11-22T11:39:25.000Z | 2017-11-22T11:39:25.000Z | src/ComponentSet.cpp | Konijnendijk/Meadows-ECS | 5ee2619481086edaabcfa235e2455686cb854901 | [
"BSL-1.0",
"MIT"
] | null | null | null | src/ComponentSet.cpp | Konijnendijk/Meadows-ECS | 5ee2619481086edaabcfa235e2455686cb854901 | [
"BSL-1.0",
"MIT"
] | null | null | null |
#include "ComponentSet.h"
using namespace Meadows;
ComponentSet::ComponentSet() : componentBitSet(ComponentRegistry::getNumRegisteredComponents()) {
}
ComponentSet::~ComponentSet() {
for (Component* component : components) {
delete(component);
}
}
| 17.933333 | 97 | 0.717472 | Konijnendijk |
76be93f1975379ff4d2dbd50e15a7220270d08af | 304 | cpp | C++ | cc/tests/test1/submit.cpp | DragoonKiller/bruteforces | e6283b18c692a3726e7e52a6a60e64ddc903da91 | [
"MIT"
] | null | null | null | cc/tests/test1/submit.cpp | DragoonKiller/bruteforces | e6283b18c692a3726e7e52a6a60e64ddc903da91 | [
"MIT"
] | null | null | null | cc/tests/test1/submit.cpp | DragoonKiller/bruteforces | e6283b18c692a3726e7e52a6a60e64ddc903da91 | [
"MIT"
] | null | null | null |
static void this_is_a_function_in_brute_gen_in_all_hpp() { }
static void this_is_a_function_in_bits_hpp() { }
#include <bits/stdc++.h>
static void this_is_another_function_in_bits_hpp() { }
#include <chrono>
static void this_is_a_function_outof_brute_gen_in_all_hpp() { }
int main()
{
return 0;
} | 21.714286 | 63 | 0.776316 | DragoonKiller |
76c2f4df9cb8a71855172fdb7ebc46cab2b57915 | 8,603 | cpp | C++ | src/ui/SciControl/CScintillaController.cpp | masmullin2000/codeassistor | 82389e16dda7be522ee5370aae441724da2e9cf2 | [
"BSD-4-Clause"
] | null | null | null | src/ui/SciControl/CScintillaController.cpp | masmullin2000/codeassistor | 82389e16dda7be522ee5370aae441724da2e9cf2 | [
"BSD-4-Clause"
] | null | null | null | src/ui/SciControl/CScintillaController.cpp | masmullin2000/codeassistor | 82389e16dda7be522ee5370aae441724da2e9cf2 | [
"BSD-4-Clause"
] | null | null | null | /** title info */
#include "CScintillaController.h"
#include "ScintillaSend.h"
#include "common_defs.h"
/* colourizing defines */
#if PLATFORM == MAC
#define DEF_KEYW_1 "#FF627E"
#define DEF_KEYW_2 "#FF00FF"
#define DEF_NUM "#0000FF"
#define DEF_OP "#0000FF"
#define DEF_STRING "#EE9A4D"
#define ... | 37.404348 | 84 | 0.749622 | masmullin2000 |
76c8aee4977befd247672662a0830efb72cbde0c | 10,425 | cpp | C++ | source/printf.cpp | Rohansi/RaspberryPi | 8cc24fa49ae7842ee7a9df954fe9672d32826a4b | [
"MIT"
] | 3 | 2015-12-27T21:41:09.000Z | 2017-03-28T14:29:09.000Z | source/printf.cpp | Rohansi/RaspberryPi | 8cc24fa49ae7842ee7a9df954fe9672d32826a4b | [
"MIT"
] | null | null | null | source/printf.cpp | Rohansi/RaspberryPi | 8cc24fa49ae7842ee7a9df954fe9672d32826a4b | [
"MIT"
] | 2 | 2016-01-06T21:26:42.000Z | 2021-02-18T16:47:25.000Z | //
// Created by Daniel Lindberg on 2015-11-29.
//
#include <limits.h>
#include "string.h"
#include "printf.h"
#define MAX_INTEGER_SIZE 65
#define FLAG_LEFT_ADJUST 0x01
#define FLAG_ALWAYS_SIGN 0x02
#define FLAG_PREPEND_SPACE 0x04
#define FLAG_ALTERNATIVE 0x08
#define FLAG_PAD_WITH_ZERO 0x10
#define INPUT_TYP... | 28.561644 | 126 | 0.526331 | Rohansi |
76d4f57531e01891535353830596594b082f7844 | 2,064 | hpp | C++ | include/boost/simd/arch/common/scalar/function/if_else_zero.hpp | yaeldarmon/boost.simd | 561316cc54bdc6353ca78f3b6d7e9120acd11144 | [
"BSL-1.0"
] | null | null | null | include/boost/simd/arch/common/scalar/function/if_else_zero.hpp | yaeldarmon/boost.simd | 561316cc54bdc6353ca78f3b6d7e9120acd11144 | [
"BSL-1.0"
] | null | null | null | include/boost/simd/arch/common/scalar/function/if_else_zero.hpp | yaeldarmon/boost.simd | 561316cc54bdc6353ca78f3b6d7e9120acd11144 | [
"BSL-1.0"
] | null | null | null | //==================================================================================================
/*!
@file
@copyright 2015 NumScale SAS
@copyright 2015 J.T. Lapreste
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
... | 31.753846 | 100 | 0.493702 | yaeldarmon |
76e571f497eee37ee1d1c998d036ab36c27fb434 | 407 | cpp | C++ | atcoder.jp/abc176/abc176_c/Main.cpp | shikij1/AtCoder | 7ae2946efdceaea3cc8725e99a2b9c137598e2f8 | [
"MIT"
] | null | null | null | atcoder.jp/abc176/abc176_c/Main.cpp | shikij1/AtCoder | 7ae2946efdceaea3cc8725e99a2b9c137598e2f8 | [
"MIT"
] | null | null | null | atcoder.jp/abc176/abc176_c/Main.cpp | shikij1/AtCoder | 7ae2946efdceaea3cc8725e99a2b9c137598e2f8 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main()
{
long long n;
cin >> n;
vector<long long> a(n);
for (long long i = 0; i < n; i++)
{
cin >> a[i];
}
long long sum = 0;
for (long long i = 1; i < n; i++)
{
if (a[i - 1] - a[i] > 0)
{
sum += a[... | 17.695652 | 37 | 0.36855 | shikij1 |
76f414310d4339aaf3d0b460446f0cf8c02a9f17 | 1,078 | cpp | C++ | Photon/photon/util/Transform.cpp | tatjam/Photon | a0c1584d10e1422cc2e468a6f94351a8310b7599 | [
"MIT"
] | 1 | 2017-05-28T12:10:30.000Z | 2017-05-28T12:10:30.000Z | Photon/photon/util/Transform.cpp | tatjam/Photon | a0c1584d10e1422cc2e468a6f94351a8310b7599 | [
"MIT"
] | null | null | null | Photon/photon/util/Transform.cpp | tatjam/Photon | a0c1584d10e1422cc2e468a6f94351a8310b7599 | [
"MIT"
] | null | null | null | #include "Transform.h"
namespace ph
{
glm::mat4 Transform::buildMatrix()
{
mat = glm::mat4();
mat = glm::translate(mat, pos);
glm::mat4 rotm = glm::mat4_cast(rot);
mat *= rotm;
mat = glm::scale(mat, scale);
return mat;
}
void Transform::rotEuler(glm::vec3 eu)
{
glm::quat qP = glm::angleAxis(glm:... | 17.966667 | 74 | 0.59462 | tatjam |
76f529c822bc107727ad263e023f4c0149759b69 | 1,576 | hpp | C++ | redist/inc/imqdst.hpp | gmarcon83/mq-mqi-nodejs | 27d44772254d0d76438022c6305277f603ff6acb | [
"Apache-2.0"
] | null | null | null | redist/inc/imqdst.hpp | gmarcon83/mq-mqi-nodejs | 27d44772254d0d76438022c6305277f603ff6acb | [
"Apache-2.0"
] | null | null | null | redist/inc/imqdst.hpp | gmarcon83/mq-mqi-nodejs | 27d44772254d0d76438022c6305277f603ff6acb | [
"Apache-2.0"
] | null | null | null | /* @(#) MQMBID sn=p924-L211104 su=_OdbBaj17EeygWfM06SbNXw pn=include/imqdst.pre_hpp */
#ifndef _IMQDST_HPP_
#define _IMQDST_HPP_
// Library: IBM MQ
// Component: IMQI (IBM MQ C++ MQI)
// Part: IMQDST.HPP
//
// Description: "ImqDistributionList" class declaration
// <copyright
// notice="lm-s... | 28.142857 | 86 | 0.706853 | gmarcon83 |
76f885c2f0a786d1eecf066cc26c0cf3da44d3a2 | 230 | cpp | C++ | src/plane_traits.cpp | richard-vock/triplet_match | a0375e75e08357c71b8b3945cb508ffb519121f8 | [
"CC0-1.0"
] | 3 | 2019-02-14T16:55:33.000Z | 2022-02-07T13:08:47.000Z | src/plane_traits.cpp | richard-vock/triplet_match | a0375e75e08357c71b8b3945cb508ffb519121f8 | [
"CC0-1.0"
] | 1 | 2019-02-14T17:10:37.000Z | 2019-02-14T17:10:37.000Z | src/plane_traits.cpp | richard-vock/triplet_match | a0375e75e08357c71b8b3945cb508ffb519121f8 | [
"CC0-1.0"
] | null | null | null | #include <plane_traits>
#include <impl/plane_traits.hpp>
namespace triplet_match {
#define INSTANTIATE_PCL_POINT_TYPE(type) \
template struct plane_traits<type>;
#include "pcl_point_types.def"
} // namespace triplet_match
| 20.909091 | 42 | 0.782609 | richard-vock |
76fa0b5358e9073caaf294c15fc60955f02be592 | 3,010 | cpp | C++ | src/stms/curl.cpp | RotartsiORG/StoneMason | 0f6efefad68b29e7e82524e705ce47606ba53665 | [
"Apache-2.0"
] | 1 | 2021-10-02T19:31:14.000Z | 2021-10-02T19:31:14.000Z | src/stms/curl.cpp | RotartsiORG/StoneMason | 0f6efefad68b29e7e82524e705ce47606ba53665 | [
"Apache-2.0"
] | 1 | 2020-06-17T01:15:45.000Z | 2020-06-17T01:16:08.000Z | src/stms/curl.cpp | RotartsiORG/StoneMason | 0f6efefad68b29e7e82524e705ce47606ba53665 | [
"Apache-2.0"
] | 1 | 2020-10-17T23:57:27.000Z | 2020-10-17T23:57:27.000Z | //
// Created by grant on 6/2/20.
//
#include "stms/curl.hpp"
#include <mutex>
#include "stms/logging.hpp"
namespace stms {
void initCurl() {
curl_global_init(CURL_GLOBAL_SSL | CURL_GLOBAL_WIN32);
auto version = curl_version_info(CURLVERSION_NOW);
STMS_INFO("LibCURL {}: On host '{}' with ... | 31.354167 | 146 | 0.619934 | RotartsiORG |
76fbe39e413419e717be088742184ad004bd0256 | 1,937 | cpp | C++ | Engine/src/renderer/material/TexturePNG.cpp | Owlinated/SkyHockey | 787a7fa6c4cd1773c5a5c7e15e014f675947a21e | [
"MIT"
] | null | null | null | Engine/src/renderer/material/TexturePNG.cpp | Owlinated/SkyHockey | 787a7fa6c4cd1773c5a5c7e15e014f675947a21e | [
"MIT"
] | null | null | null | Engine/src/renderer/material/TexturePNG.cpp | Owlinated/SkyHockey | 787a7fa6c4cd1773c5a5c7e15e014f675947a21e | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <png.h>
#include <src/support/Logger.h>
#include "TexturePNG.h"
/**
* Load texture from .png file
* @param image_path File of .png file.
* @param mipmap Whether to load/generate mipmaps.
*/
TexturePNG::TexturePNG(const std::string& image_path, bool mipmap... | 33.396552 | 102 | 0.710893 | Owlinated |
0a00f41bfb75f9575dd010edec32c552fcb78c42 | 4,845 | cc | C++ | packages/solid/Cylinder_3D.cc | brbass/ibex | 5a4cc5b4d6d46430d9667970f8a34f37177953d4 | [
"MIT"
] | 2 | 2020-04-13T20:06:41.000Z | 2021-02-12T17:55:54.000Z | packages/solid/Cylinder_3D.cc | brbass/ibex | 5a4cc5b4d6d46430d9667970f8a34f37177953d4 | [
"MIT"
] | 1 | 2018-10-22T21:03:35.000Z | 2018-10-22T21:03:35.000Z | packages/solid/Cylinder_3D.cc | brbass/ibex | 5a4cc5b4d6d46430d9667970f8a34f37177953d4 | [
"MIT"
] | 3 | 2019-04-03T02:15:37.000Z | 2022-01-04T05:50:23.000Z | #include "Cylinder_3D.hh"
#include "Vector_Functions_3D.hh"
#include <cmath>
using namespace std;
namespace vf3 = Vector_Functions_3D;
Cylinder_3D::
Cylinder_3D(int index,
Surface_Type surface_type,
double radius,
vector<double> const &origin,
vector<double> const &di... | 29.011976 | 108 | 0.490815 | brbass |
0a028dcc0da795f0e336636cc08e39356c210a3f | 7,281 | cpp | C++ | src/core/Hub.cpp | gabrielklein/SensorNode | e92dbd56aa0a7d75ab95b9c484f27ba6d0be64df | [
"MIT"
] | 2 | 2018-01-21T11:43:36.000Z | 2019-07-15T20:08:31.000Z | src/core/Hub.cpp | gabrielklein/SensorNode | e92dbd56aa0a7d75ab95b9c484f27ba6d0be64df | [
"MIT"
] | null | null | null | src/core/Hub.cpp | gabrielklein/SensorNode | e92dbd56aa0a7d75ab95b9c484f27ba6d0be64df | [
"MIT"
] | null | null | null | #include "Hub.h"
#include "../Settings.h"
Hub::Hub() {
};
Hub::~Hub() {
delete(this->webServerSN);
delete(this->apStaClient);
delete(this->led);
delete(this->temp);
delete(this->relay);
delete(this->switc);
delete(this->geiger);
delete(this->mqtt);
... | 30.721519 | 77 | 0.439363 | gabrielklein |
0a0cf82fe63806cf84c2abc335fc5cb6eda5b4c6 | 563 | cpp | C++ | Section10/LetterPyramid/main.cpp | Yash-Singh1/cpp-programming | 696c1dcff18af8e798fae6126a3b13f6259af4b7 | [
"MIT"
] | null | null | null | Section10/LetterPyramid/main.cpp | Yash-Singh1/cpp-programming | 696c1dcff18af8e798fae6126a3b13f6259af4b7 | [
"MIT"
] | null | null | null | Section10/LetterPyramid/main.cpp | Yash-Singh1/cpp-programming | 696c1dcff18af8e798fae6126a3b13f6259af4b7 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
int main()
{
cout << "Welcome to the Letter Pyramid Generator!" << endl;
string input;
cout << "Enter the input text: ";
getline(cin, input);
size_t padding{input.length() - 1};
for (size_t i{1}; i <= input.length(); ++i)
{
cout << string(... | 17.060606 | 61 | 0.520426 | Yash-Singh1 |
0a0f0a5347be9d4d7b08b04467c4ed9c6c63ce96 | 14,129 | cpp | C++ | include/h3api/H3Dialogs/H3BaseDialog.cpp | Patrulek/H3API | 91f10de37c6b86f3160706c1fdf4792f927e9952 | [
"MIT"
] | 14 | 2020-09-07T21:49:26.000Z | 2021-11-29T18:09:41.000Z | include/h3api/H3Dialogs/H3BaseDialog.cpp | Day-of-Reckoning/H3API | a82d3069ec7d5127b13528608d5350d2b80d57be | [
"MIT"
] | 2 | 2021-02-12T15:52:31.000Z | 2021-02-12T16:21:24.000Z | include/h3api/H3Dialogs/H3BaseDialog.cpp | Day-of-Reckoning/H3API | a82d3069ec7d5127b13528608d5350d2b80d57be | [
"MIT"
] | 8 | 2021-02-12T15:52:41.000Z | 2022-01-31T15:28:10.000Z | //////////////////////////////////////////////////////////////////////
// //
// Created by RoseKavalier: //
// rosekavalierhc@gmail.com //
// Created or last upda... | 34.293689 | 232 | 0.69375 | Patrulek |
0a0f1f29e718edf02fe77504a3c521cca069adde | 5,283 | cpp | C++ | mgmtd/source/net/message/nodes/storagepools/ModifyStoragePoolMsgEx.cpp | TomatoYoung/beegfs | edf287940175ecded493183209719d2d90d45374 | [
"BSD-3-Clause"
] | null | null | null | mgmtd/source/net/message/nodes/storagepools/ModifyStoragePoolMsgEx.cpp | TomatoYoung/beegfs | edf287940175ecded493183209719d2d90d45374 | [
"BSD-3-Clause"
] | null | null | null | mgmtd/source/net/message/nodes/storagepools/ModifyStoragePoolMsgEx.cpp | TomatoYoung/beegfs | edf287940175ecded493183209719d2d90d45374 | [
"BSD-3-Clause"
] | null | null | null | #include "ModifyStoragePoolMsgEx.h"
#include <common/app/log/LogContext.h>
#include <common/net/message/nodes/storagepools/ModifyStoragePoolRespMsg.h>
#include <common/net/message/control/GenericResponseMsg.h>
#include <nodes/StoragePoolStoreEx.h>
#include <program/Program.h>
bool ModifyStoragePoolMsgEx::processIncom... | 29.847458 | 99 | 0.607609 | TomatoYoung |
0a1013d51b3e1a8ab70f40d2abc05e2d462045d7 | 5,677 | cpp | C++ | mainwindow.cpp | diegofps/picker | a8e09c74e2d34a17a61ba6e1be08df135cbce60b | [
"Apache-2.0"
] | null | null | null | mainwindow.cpp | diegofps/picker | a8e09c74e2d34a17a61ba6e1be08df135cbce60b | [
"Apache-2.0"
] | null | null | null | mainwindow.cpp | diegofps/picker | a8e09c74e2d34a17a61ba6e1be08df135cbce60b | [
"Apache-2.0"
] | null | null | null | #include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QToolButton>
#include <QShortcut>
#include <QBitmap>
#include <QStyle>
#include <QFile>
#include <QFileInfo>
#include <QDir>
#include <QSet>
#include <QProcess>
using namespace wup;
MainWindow::MainWindow(Params & params, QWidget *parent)
: QMainWindow... | 24.469828 | 119 | 0.574599 | diegofps |
0a116c910ba20a7b92c886dcea15f9b4b3040368 | 24,529 | cpp | C++ | source/renderer/scene/adaptiveGrid/AdaptiveGrid.cpp | DaSutt/VolumetricParticles | 6ec9bac4bec4a8757343bb770b23110ef2364dfd | [
"Apache-2.0"
] | 6 | 2017-06-26T11:42:26.000Z | 2018-09-10T17:53:53.000Z | source/renderer/scene/adaptiveGrid/AdaptiveGrid.cpp | DaSutt/VolumetricParticles | 6ec9bac4bec4a8757343bb770b23110ef2364dfd | [
"Apache-2.0"
] | 8 | 2017-06-24T20:25:42.000Z | 2017-08-09T10:50:40.000Z | source/renderer/scene/adaptiveGrid/AdaptiveGrid.cpp | DaSutt/VolumetricParticles | 6ec9bac4bec4a8757343bb770b23110ef2364dfd | [
"Apache-2.0"
] | null | null | null | /*
MIT License
Copyright(c) 2017 Daniel Suttor
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files(the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, di... | 34.941595 | 154 | 0.755229 | DaSutt |
0a11745da99a17acd76d39f6448e62662e77c7cd | 826 | hpp | C++ | iOS/G3MiOSSDK/Commons/Mesh/DirectMesh.hpp | RMMJR/g3m | 990467dc8e2bf584f8b512bdf06ecf4def625185 | [
"BSD-2-Clause"
] | 1 | 2016-08-23T10:29:44.000Z | 2016-08-23T10:29:44.000Z | iOS/G3MiOSSDK/Commons/Mesh/DirectMesh.hpp | RMMJR/g3m | 990467dc8e2bf584f8b512bdf06ecf4def625185 | [
"BSD-2-Clause"
] | null | null | null | iOS/G3MiOSSDK/Commons/Mesh/DirectMesh.hpp | RMMJR/g3m | 990467dc8e2bf584f8b512bdf06ecf4def625185 | [
"BSD-2-Clause"
] | null | null | null | //
// DirectMesh.hpp
// G3MiOSSDK
//
// Created by Diego Gomez Deck on 12/1/12.
//
//
#ifndef __G3MiOSSDK__DirectMesh__
#define __G3MiOSSDK__DirectMesh__
#include "AbstractMesh.hpp"
class DirectMesh : public AbstractMesh {
protected:
void rawRender(const G3MRenderContext* rc) const;
Mesh* createNormalsMesh()... | 19.209302 | 51 | 0.621065 | RMMJR |
0a14825b689f0c39af63ff61ae29ce1652980afa | 1,250 | cpp | C++ | src/game/piece/pawn.cpp | Aviraj55/Chess | 51dfdd4a33f18f6cbb9666b6b16ecd4d859ac3e1 | [
"MIT"
] | null | null | null | src/game/piece/pawn.cpp | Aviraj55/Chess | 51dfdd4a33f18f6cbb9666b6b16ecd4d859ac3e1 | [
"MIT"
] | null | null | null | src/game/piece/pawn.cpp | Aviraj55/Chess | 51dfdd4a33f18f6cbb9666b6b16ecd4d859ac3e1 | [
"MIT"
] | 1 | 2020-10-03T20:59:17.000Z | 2020-10-03T20:59:17.000Z | #include "pawn.h"
#include "../board.h"
std::vector<Coordinate> Pawn::get_candidate_moves() const {
std::vector<Coordinate> candidate_moves;
int dir = color_ == Color::WHITE ? 1 : -1;
// Pawns may always move one square forward
std::vector<int> forward_moves(1, 1);
if (move_history_.empty()) {
// If t... | 30.487805 | 80 | 0.656 | Aviraj55 |
0a20b224df22148e34f8f09e929d28394b7c6c9a | 18,357 | hpp | C++ | accessor/scaled_reduced_row_major.hpp | JakubTrzcskni/ginkgo | 8a9988b9c3f8c4ff59fae30050575311f230065e | [
"BSD-3-Clause"
] | null | null | null | accessor/scaled_reduced_row_major.hpp | JakubTrzcskni/ginkgo | 8a9988b9c3f8c4ff59fae30050575311f230065e | [
"BSD-3-Clause"
] | null | null | null | accessor/scaled_reduced_row_major.hpp | JakubTrzcskni/ginkgo | 8a9988b9c3f8c4ff59fae30050575311f230065e | [
"BSD-3-Clause"
] | null | null | null | /*******************************<GINKGO LICENSE>******************************
Copyright (c) 2017-2022, the Ginkgo authors
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 co... | 36.861446 | 80 | 0.661873 | JakubTrzcskni |
0a25d69676aae709b47041e5d6b4f6c8a7db1610 | 924 | cpp | C++ | main.cpp | hnqiu/cpp-test | ec3eafd3126be8468ba4f2d6a26c5863659aa8e3 | [
"MIT"
] | 1 | 2019-03-21T04:06:13.000Z | 2019-03-21T04:06:13.000Z | main.cpp | hnqiu/cpp-test | ec3eafd3126be8468ba4f2d6a26c5863659aa8e3 | [
"MIT"
] | null | null | null | main.cpp | hnqiu/cpp-test | ec3eafd3126be8468ba4f2d6a26c5863659aa8e3 | [
"MIT"
] | null | null | null | /* Copyright (C) 2019 hnqiu. All rights reserved.
* Licensed under the MIT License. See LICENSE for details.
*/
#include <iostream>
#include "string_test.h"
#include "sizeof_test.h"
#include "continue_test.h"
#include "return_list_test.h"
#include "return_pointer_to_array_test.h"
#include "class_test.h"
#include "c... | 22.536585 | 59 | 0.675325 | hnqiu |
0a266fc73810200877750334d795b4558aaf7381 | 1,531 | cpp | C++ | src/vector_types.cpp | DoubleJump/waggle | 06a2fb07d7e3678f990396d1469cf4f85e3863a1 | [
"MIT"
] | 1 | 2021-04-30T11:14:32.000Z | 2021-04-30T11:14:32.000Z | src/vector_types.cpp | DoubleJump/waggle | 06a2fb07d7e3678f990396d1469cf4f85e3863a1 | [
"MIT"
] | null | null | null | src/vector_types.cpp | DoubleJump/waggle | 06a2fb07d7e3678f990396d1469cf4f85e3863a1 | [
"MIT"
] | null | null | null | struct Vec2
{
f32 x, y;
f32& operator[](int i){ return (&x)[i]; }
};
struct Vec3
{
f32 x, y, z;
f32& operator[](int i){ return (&x)[i]; }
};
static Vec3 vec3_up = {0,1,0};
static Vec3 vec3_down = {0,-1,0};
static Vec3 vec3_left = {-1,0,0};
static Vec3 vec3_right = {1,0,0};
static Vec3 vec3_forwa... | 13.918182 | 46 | 0.580666 | DoubleJump |
0a26a32a3eaa6c15d09010643fef518594583b5f | 1,202 | cpp | C++ | src/example/greating_client.cpp | Nekrolm/grpc_callback | 1f0db9f2dd60afe1fac400e6541698d8f1fc4c34 | [
"WTFPL"
] | 3 | 2019-07-27T16:01:01.000Z | 2022-03-01T00:09:19.000Z | src/example/greating_client.cpp | Nekrolm/grpc_callback | 1f0db9f2dd60afe1fac400e6541698d8f1fc4c34 | [
"WTFPL"
] | null | null | null | src/example/greating_client.cpp | Nekrolm/grpc_callback | 1f0db9f2dd60afe1fac400e6541698d8f1fc4c34 | [
"WTFPL"
] | null | null | null | #include "greating_client.h"
#include <grpcpp/channel.h>
#include <functional>
#include <thread>
#include <memory>
#include <grpc/simplified_async_callback_api.h>
GreatingClient::GreatingClient(std::shared_ptr<grpc::Channel> ch) :
stub_(test::Greeting::NewStub(ch))
{}
GreatingClient::~GreatingClient()
{}
void... | 35.352941 | 116 | 0.46589 | Nekrolm |
0a2a3b88dd3554373e63dcb5ff92d9a0bd52f202 | 10,241 | hxx | C++ | src/Utils/Table.hxx | ebertolazzi/Malloc | 4c1f8950cd631c185e141aaccfe0cd53daa91490 | [
"BSD-2-Clause",
"MIT"
] | null | null | null | src/Utils/Table.hxx | ebertolazzi/Malloc | 4c1f8950cd631c185e141aaccfe0cd53daa91490 | [
"BSD-2-Clause",
"MIT"
] | null | null | null | src/Utils/Table.hxx | ebertolazzi/Malloc | 4c1f8950cd631c185e141aaccfe0cd53daa91490 | [
"BSD-2-Clause",
"MIT"
] | null | null | null | /*--------------------------------------------------------------------------*\
| |
| Copyright (C) 2021 |
| |
| ... | 31.318043 | 90 | 0.545357 | ebertolazzi |
0a2ed7375825eafbffc9a933d77cf1f6cfc96180 | 685 | cpp | C++ | src/QtYangVrRecord/src/video/yangrecordwin.cpp | yangxinghai/yangrecord | 787eaca132df1e427f5fc5b4391db1436d481088 | [
"MIT"
] | 1 | 2021-11-11T02:06:55.000Z | 2021-11-11T02:06:55.000Z | src/QtYangVrRecord/src/video/yangrecordwin.cpp | yangxinghai/yangrecord | 787eaca132df1e427f5fc5b4391db1436d481088 | [
"MIT"
] | null | null | null | src/QtYangVrRecord/src/video/yangrecordwin.cpp | yangxinghai/yangrecord | 787eaca132df1e427f5fc5b4391db1436d481088 | [
"MIT"
] | 1 | 2022-01-24T07:59:48.000Z | 2022-01-24T07:59:48.000Z | #include "yangrecordwin.h"
#include "yangutil/yangtype.h"
#include <QMenu>
#include <QAction>
#include <QDebug>
//#include "../tooltip/RDesktopTip.h"
#include "../yangwinutil/yangrecordcontext.h"
YangRecordWin::YangRecordWin(QWidget *parent):QWidget(parent)
{
m_hb=new QHBoxLayout();
m_hb->setMargin(0);
... | 15.222222 | 61 | 0.671533 | yangxinghai |
0a2f8e4a67a74949a182496fb002fdf38f79a3e7 | 5,912 | cpp | C++ | Sources/CEigenBridge/eigen_dbl.cpp | taketo1024/swm-eigen | 952ecdb73a2739641e75909c8d9e724e32b2ed0f | [
"MIT"
] | 6 | 2021-09-19T07:55:41.000Z | 2021-11-10T00:43:47.000Z | Sources/CEigenBridge/eigen_dbl.cpp | taketo1024/swm-eigen | 952ecdb73a2739641e75909c8d9e724e32b2ed0f | [
"MIT"
] | null | null | null | Sources/CEigenBridge/eigen_dbl.cpp | taketo1024/swm-eigen | 952ecdb73a2739641e75909c8d9e724e32b2ed0f | [
"MIT"
] | null | null | null | //
// File.cpp
//
//
// Created by Taketo Sano on 2021/06/10.
//
#import "eigen_dbl.h"
#import <iostream>
#import <Eigen/Eigen>
using namespace std;
using namespace Eigen;
using R = double;
using Mat = Matrix<R, Dynamic, Dynamic>;
void *eigen_dbl_init(int_t rows, int_t cols) {
Mat *A = new Mat(rows, cols);... | 24.03252 | 80 | 0.538058 | taketo1024 |
0a30f745e13504ad1b5ed62319ce67bdfb9ab3f3 | 7,152 | inl | C++ | MathLib/Include/CoordinatePoints.inl | bgin/MissileSimulation | 90adcbf1c049daafb939f3fe9f9dfe792f26d5df | [
"MIT"
] | 23 | 2016-08-28T23:20:12.000Z | 2021-12-15T14:43:58.000Z | MathLib/Include/CoordinatePoints.inl | bgin/MissileSimulation | 90adcbf1c049daafb939f3fe9f9dfe792f26d5df | [
"MIT"
] | 1 | 2018-06-02T21:29:51.000Z | 2018-06-05T05:59:31.000Z | MathLib/Include/CoordinatePoints.inl | bgin/MissileSimulation | 90adcbf1c049daafb939f3fe9f9dfe792f26d5df | [
"MIT"
] | 1 | 2019-07-04T22:38:22.000Z | 2019-07-04T22:38:22.000Z |
mathlib::CoordPoints<__m128>::CoordPoints() {
/*Initialize coordinates to zero*/
this->m_F32Coord3D = _mm_setzero_ps();
}
mathlib::CoordPoints<__m128>::CoordPoints(_In_ const float x, _In_ const float y, _In_ const float z) :
m_F32Coord3D(_mm_set_ps(NAN_FLT, z, y, x)) {
}
mathlib::CoordPoints<__m128>::... | 31.646018 | 115 | 0.685263 | bgin |
0a37e91c00ea720fe4fc3942d74ef52cc8dae67b | 3,082 | cpp | C++ | old.c++/AGIResources/PlatformAbstractionLayer_POSIX.cpp | princess-rosella/sierra-agi-resources | 2755e7b04a4f9782ced4530016e4374ca5b7985b | [
"MIT"
] | null | null | null | old.c++/AGIResources/PlatformAbstractionLayer_POSIX.cpp | princess-rosella/sierra-agi-resources | 2755e7b04a4f9782ced4530016e4374ca5b7985b | [
"MIT"
] | null | null | null | old.c++/AGIResources/PlatformAbstractionLayer_POSIX.cpp | princess-rosella/sierra-agi-resources | 2755e7b04a4f9782ced4530016e4374ca5b7985b | [
"MIT"
] | null | null | null | //
// PlatformAbstractionLayer_POSIX.cpp
// AGI
//
// Copyright (c) 2018 Princess Rosella. All rights reserved.
//
#include "AGIResources.hpp"
#include "PlatformAbstractionLayer_POSIX.hpp"
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <unistd.h>
#include <vector>
using ... | 24.854839 | 169 | 0.658014 | princess-rosella |
0a3c83602b58e93c47389718b0ec4248917f4c0e | 3,644 | cpp | C++ | PitchedDelay/Source/dsp/simpledetune.cpp | elk-audio/lkjb-plugins | 8cbff01864bdb76493361a46f56d7073d49698da | [
"MIT"
] | 82 | 2016-12-02T20:02:30.000Z | 2022-03-12T22:38:30.000Z | PitchedDelay/Source/dsp/simpledetune.cpp | elk-audio/lkjb-plugins | 8cbff01864bdb76493361a46f56d7073d49698da | [
"MIT"
] | 6 | 2018-01-19T21:44:46.000Z | 2022-03-08T08:46:19.000Z | PitchedDelay/Source/dsp/simpledetune.cpp | elk-audio/lkjb-plugins | 8cbff01864bdb76493361a46f56d7073d49698da | [
"MIT"
] | 16 | 2016-04-13T08:31:36.000Z | 2022-03-01T03:04:42.000Z | #include "simpledetune.h"
DetunerBase::DetunerBase(int bufmax)
: bufMax(bufmax),
windowSize(0),
sampleRate(44100),
buf(bufMax),
win(bufMax)
{
clear();
setWindowSize(bufMax);
}
void DetunerBase::clear()
{
pos0 = 0;
pos1 = 0.f;
pos2 = 0.f;
for(int i=0;i<bufMax;i++)
buf[i] = 0;
}
void DetunerB... | 18.591837 | 113 | 0.572448 | elk-audio |
0a3e70e44718dea8c998736ac815ba9c233a23c2 | 1,261 | cc | C++ | src/flow/transform/EmptyBlockElimination.cc | christianparpart/libflow | 29c8a4b4c1ba140c1a3998dcb84885386d312787 | [
"Unlicense"
] | null | null | null | src/flow/transform/EmptyBlockElimination.cc | christianparpart/libflow | 29c8a4b4c1ba140c1a3998dcb84885386d312787 | [
"Unlicense"
] | null | null | null | src/flow/transform/EmptyBlockElimination.cc | christianparpart/libflow | 29c8a4b4c1ba140c1a3998dcb84885386d312787 | [
"Unlicense"
] | null | null | null | // This file is part of the "x0" project, http://github.com/christianparpart/libflow//
// (c) 2009-2014 Christian Parpart <trapni@gmail.com>
//
// Licensed under the MIT License (the "License"); you may not use this
// file except in compliance with the License. You may obtain a copy of
// the License at: http://open... | 28.659091 | 86 | 0.656622 | christianparpart |
0a4602ec6f7a003112d67433dac9b55f964d6207 | 17,254 | cpp | C++ | src/Microsoft.DotNet.Wpf/src/WpfGfx/core/common/exports.cpp | nsivov/wpf | d36941860f05dd7a09008e99d1bcd635b0a69fdb | [
"MIT"
] | 2 | 2020-05-18T17:00:43.000Z | 2021-12-01T10:00:29.000Z | src/Microsoft.DotNet.Wpf/src/WpfGfx/core/common/exports.cpp | nsivov/wpf | d36941860f05dd7a09008e99d1bcd635b0a69fdb | [
"MIT"
] | 5 | 2020-05-05T08:05:01.000Z | 2021-12-11T21:35:37.000Z | src/Microsoft.DotNet.Wpf/src/WpfGfx/core/common/exports.cpp | nsivov/wpf | d36941860f05dd7a09008e99d1bcd635b0a69fdb | [
"MIT"
] | 4 | 2020-05-04T06:43:25.000Z | 2022-02-20T12:02:50.000Z | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//------------------------------------------------------------------------------
//
//
//-------------------------... | 36.946467 | 137 | 0.561261 | nsivov |
0a46470e941be66cd0e253e942162108a6e2ef6a | 932 | cpp | C++ | 242_b.cpp | onexmaster/cp | b78b0f1e586d6977d86c97b32f48fed33f1469af | [
"Apache-2.0",
"MIT"
] | null | null | null | 242_b.cpp | onexmaster/cp | b78b0f1e586d6977d86c97b32f48fed33f1469af | [
"Apache-2.0",
"MIT"
] | null | null | null | 242_b.cpp | onexmaster/cp | b78b0f1e586d6977d86c97b32f48fed33f1469af | [
"Apache-2.0",
"MIT"
] | null | null | null | // Created by Tanuj Jain
#include<bits/stdc++.h>
#include<ext/pb_ds/assoc_container.hpp>
#include<ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define pb push_back
#define mp make_pair
typedef long long ll;
typedef pair<int,int> pii;
template<class T> using oset=tree<T, null_typ... | 18.64 | 106 | 0.60515 | onexmaster |
0a4c6282a0249bac1a4d6dbfb95bf3dd1d8c4009 | 23,969 | cxx | C++ | osprey/be/lno/sclrze.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | osprey/be/lno/sclrze.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | osprey/be/lno/sclrze.cxx | sharugupta/OpenUH | daddd76858a53035f5d713f648d13373c22506e8 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright 2002, 2003, 2004, 2005, 2006 PathScale, Inc. All Rights Reserved.
*/
/*
Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it
under the terms of version 2 of the GNU General Public License as
published b... | 29.664604 | 99 | 0.640285 | sharugupta |
aeab5fab1b6bc6bce7acf07a3e3bb4f1379c8f8a | 675 | hpp | C++ | ablateLibrary/flow/fluxDifferencer/offFluxDifferencer.hpp | pakserep/ablate | 8c8443de8a252b03b3535f7c48b7a50aac1e56e4 | [
"BSD-3-Clause"
] | null | null | null | ablateLibrary/flow/fluxDifferencer/offFluxDifferencer.hpp | pakserep/ablate | 8c8443de8a252b03b3535f7c48b7a50aac1e56e4 | [
"BSD-3-Clause"
] | null | null | null | ablateLibrary/flow/fluxDifferencer/offFluxDifferencer.hpp | pakserep/ablate | 8c8443de8a252b03b3535f7c48b7a50aac1e56e4 | [
"BSD-3-Clause"
] | null | null | null | #ifndef ABLATELIBRARY_OFFFLUXDIFFERENCER_HPP
#define ABLATELIBRARY_OFFFLUXDIFFERENCER_HPP
#include "fluxDifferencer.hpp"
namespace ablate::flow::fluxDifferencer {
/**
* Turns off all flow through the flux differencer. This is good for testing.
*/
class OffFluxDifferencer : public fluxDifferencer::FluxDifferencer {
... | 35.526316 | 131 | 0.795556 | pakserep |
aeb7b7e5ef4835f5aab62c5420c65d825046fad1 | 1,426 | cpp | C++ | main/Main.cpp | Cararasu/holodec | d716d95a787ab7872a49a5c4fb930dc37be95ac7 | [
"MIT"
] | 215 | 2017-06-22T16:23:52.000Z | 2022-01-27T23:33:37.000Z | main/Main.cpp | Cararasu/holodec | d716d95a787ab7872a49a5c4fb930dc37be95ac7 | [
"MIT"
] | 4 | 2017-06-29T16:49:28.000Z | 2019-02-07T19:58:57.000Z | main/Main.cpp | Cararasu/holodec | d716d95a787ab7872a49a5c4fb930dc37be95ac7 | [
"MIT"
] | 21 | 2017-10-14T02:10:41.000Z | 2021-07-13T06:08:38.000Z | #include "Main.h"
#include <fstream>
using namespace holodec;
Main* Main::g_main;
bool Main::registerArchitecture (Architecture* arch) {
for (Architecture * a : architectures)
if (caseCmpHString (a->name, arch->name))
return false;
architectures.push_back (arch);
return true;
}
Architecture* Main::getArch... | 21.283582 | 56 | 0.671809 | Cararasu |
aec0575a03cec24039c6073cf35b9875a7db2962 | 353 | hpp | C++ | SDLTest.hpp | gazpachian/ScrabookDL | 70424e4d866d17d95539242ba86ad0841f030091 | [
"MIT"
] | null | null | null | SDLTest.hpp | gazpachian/ScrabookDL | 70424e4d866d17d95539242ba86ad0841f030091 | [
"MIT"
] | null | null | null | SDLTest.hpp | gazpachian/ScrabookDL | 70424e4d866d17d95539242ba86ad0841f030091 | [
"MIT"
] | null | null | null | #include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <stdio.h>
#include <string>
#include <algorithm>
#include <tr1/memory>
#include "vector.hpp"
#include "controller.hpp"
#include "render.hpp"
//Window constants
const Vector2 DEF_SCREEN_DIMS(1200, 675);
const Vector3 DEF_BG_COL(0xFD, 0xF6, 0xE3);
const char * w... | 23.533333 | 46 | 0.745042 | gazpachian |
aeca4b2a297c118a8eb65076e18adcd6c73e2e56 | 6,680 | cpp | C++ | Interaction/albaDevice.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | 9 | 2018-11-19T10:15:29.000Z | 2021-08-30T11:52:07.000Z | Interaction/albaDevice.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | Interaction/albaDevice.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | 3 | 2018-06-10T22:56:29.000Z | 2019-12-12T06:22:56.000Z | /*=========================================================================
Program: ALBA (Agile Library for Biomedical Applications)
Module: albaDevice
Authors: Marco Petrone
Copyright (c) BIC
All rights reserved. See Copyright.txt or
This software is distributed WITHOUT ANY WARRANTY; without even
the impl... | 29.688889 | 112 | 0.448054 | IOR-BIC |
aed084fb525b5f25e7ee5eed598324734eff4068 | 1,580 | cpp | C++ | src/effect_cas.cpp | stephanlachnit/vkBasalt | dd6a067b7eada67f4f34e56054ef24264f6856d7 | [
"Zlib"
] | 748 | 2019-10-20T14:21:20.000Z | 2022-03-22T05:53:42.000Z | src/effect_cas.cpp | stephanlachnit/vkBasalt | dd6a067b7eada67f4f34e56054ef24264f6856d7 | [
"Zlib"
] | 160 | 2019-10-20T16:35:47.000Z | 2022-03-30T19:21:56.000Z | src/effect_cas.cpp | stephanlachnit/vkBasalt | dd6a067b7eada67f4f34e56054ef24264f6856d7 | [
"Zlib"
] | 58 | 2019-10-20T19:15:01.000Z | 2022-01-02T01:16:08.000Z | #include "effect_cas.hpp"
#include <cstring>
#include "image_view.hpp"
#include "descriptor_set.hpp"
#include "buffer.hpp"
#include "renderpass.hpp"
#include "graphics_pipeline.hpp"
#include "framebuffer.hpp"
#include "shader.hpp"
#include "sampler.hpp"
#include "shader_sources.hpp"
namespace vkBasalt
{
CasEffe... | 30.980392 | 86 | 0.635443 | stephanlachnit |
aed3281640470573c0c4ef23e1888bd1b850ecee | 403 | cpp | C++ | Rafflesia/main.cpp | TelepathicFart/Rafflesia | 9376e06b5a7ab3f712677f31504021c1b62c3f09 | [
"MIT"
] | 5 | 2021-05-11T02:52:31.000Z | 2021-09-03T05:10:53.000Z | Rafflesia/main.cpp | TelepathicFart/Rafflesia | 9376e06b5a7ab3f712677f31504021c1b62c3f09 | [
"MIT"
] | null | null | null | Rafflesia/main.cpp | TelepathicFart/Rafflesia | 9376e06b5a7ab3f712677f31504021c1b62c3f09 | [
"MIT"
] | 1 | 2022-02-24T13:56:26.000Z | 2022-02-24T13:56:26.000Z | #include <QtWidgets>
#include "MainWindow.h"
#include <istream>
#include <fstream>
int main(int argc, char *argv[])
{
#if defined(Q_OS_WIN)
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#endif
QApplication app(argc, argv);
MainWindow window;
window.show();
window.setWindowTitle(Q... | 18.318182 | 83 | 0.704715 | TelepathicFart |
aed923244e3a075b6566c3fb94879181634bcba8 | 1,094 | cpp | C++ | projects/Test_SkeletalAnimation/src/main.cpp | codeonwort/pathosengine | ea568afeac9af3ebe3f2e53cc5abeecb40714466 | [
"MIT"
] | 11 | 2016-08-30T12:01:35.000Z | 2021-12-29T15:34:03.000Z | projects/Test_SkeletalAnimation/src/main.cpp | codeonwort/pathosengine | ea568afeac9af3ebe3f2e53cc5abeecb40714466 | [
"MIT"
] | 9 | 2016-05-19T03:14:22.000Z | 2021-01-17T05:45:52.000Z | projects/Test_SkeletalAnimation/src/main.cpp | codeonwort/pathosengine | ea568afeac9af3ebe3f2e53cc5abeecb40714466 | [
"MIT"
] | null | null | null | #include "world2.h"
#include "pathos/core_minimal.h"
using namespace std;
using namespace pathos;
constexpr int32 WINDOW_WIDTH = 1920;
constexpr int32 WINDOW_HEIGHT = 1080;
constexpr char* WINDOW_TITLE = "Test: Skeletal Animation";
constexpr float FOVY = 60.0f;
const vector3 CA... | 33.151515 | 118 | 0.710238 | codeonwort |
aede19bebef2025d433365c92bd970cd74a809aa | 57 | hpp | C++ | src/boost_fusion_sequence_comparison_equal_to.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_fusion_sequence_comparison_equal_to.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_fusion_sequence_comparison_equal_to.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/fusion/sequence/comparison/equal_to.hpp>
| 28.5 | 56 | 0.824561 | miathedev |
aede8903b4395c28d2a04d5f065094bba39c31da | 3,738 | cpp | C++ | Engine/Core/Source/Molten/Renderer/Vulkan/Utility/VulkanDeviceQueues.cpp | jimmiebergmann/CurseEngine | 74a0502e36327f893c8e4f3e7cbe5b9d38fbe194 | [
"MIT"
] | 2 | 2019-11-11T21:17:14.000Z | 2019-11-11T22:07:26.000Z | Engine/Core/Source/Molten/Renderer/Vulkan/Utility/VulkanDeviceQueues.cpp | jimmiebergmann/CurseEngine | 74a0502e36327f893c8e4f3e7cbe5b9d38fbe194 | [
"MIT"
] | null | null | null | Engine/Core/Source/Molten/Renderer/Vulkan/Utility/VulkanDeviceQueues.cpp | jimmiebergmann/CurseEngine | 74a0502e36327f893c8e4f3e7cbe5b9d38fbe194 | [
"MIT"
] | 1 | 2020-04-05T03:50:57.000Z | 2020-04-05T03:50:57.000Z | /*
* MIT License
*
* Copyright (c) 2021 Jimmie Bergmann
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files(the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... | 30.390244 | 114 | 0.67817 | jimmiebergmann |
aef16175f836f498e1d48ed7f35241eb600ad19a | 1,860 | cpp | C++ | Paladin/BuildSystem/FileFactory.cpp | pahefu/Paladin | 4fcb66c6cda7bb50b7597532bd0d7469fc33655b | [
"MIT"
] | 45 | 2018-10-05T21:50:17.000Z | 2022-01-31T11:52:59.000Z | Paladin/BuildSystem/FileFactory.cpp | pahefu/Paladin | 4fcb66c6cda7bb50b7597532bd0d7469fc33655b | [
"MIT"
] | 163 | 2018-10-01T23:52:12.000Z | 2022-02-15T18:05:58.000Z | Paladin/BuildSystem/FileFactory.cpp | pahefu/Paladin | 4fcb66c6cda7bb50b7597532bd0d7469fc33655b | [
"MIT"
] | 9 | 2018-10-01T23:48:02.000Z | 2022-01-23T21:28:52.000Z | #include "FileFactory.h"
#include "DPath.h"
#include "SourceType.h"
#include "SourceTypeC.h"
#include "SourceTypeLex.h"
#include "SourceTypeLib.h"
#include "SourceTypeResource.h"
#include "SourceTypeRez.h"
#include "SourceTypeShell.h"
#include "SourceTypeText.h"
#include "SourceTypeYacc.h"
FileFactory gFileFactory;
F... | 20.666667 | 83 | 0.73172 | pahefu |
aef5cba87650b7ddc70acc522f6603139805e75e | 101 | hpp | C++ | exercises/4/seminar/8/Matrix/Matrix/utility.hpp | triffon/oop-2019-20 | db199631d59ddefdcc0c8eb3d689de0095618f92 | [
"MIT"
] | 19 | 2020-02-21T16:46:50.000Z | 2022-01-26T19:59:49.000Z | exercises/4/seminar/9/Matrix/Matrix/utility.hpp | triffon/oop-2019-20 | db199631d59ddefdcc0c8eb3d689de0095618f92 | [
"MIT"
] | 1 | 2020-03-14T08:09:45.000Z | 2020-03-14T08:09:45.000Z | exercises/4/seminar/8/Matrix - Complete/Matrix/utility.hpp | triffon/oop-2019-20 | db199631d59ddefdcc0c8eb3d689de0095618f92 | [
"MIT"
] | 11 | 2020-02-23T12:29:58.000Z | 2021-04-11T08:30:12.000Z | #ifndef UTILITY
#define UTILITY
namespace utility {
int gcd(int a, int b);
}
#endif // !UTILITY | 12.625 | 26 | 0.673267 | triffon |
aef61af9e9f86157b2a0dd6386cbb49269321f3f | 2,670 | cpp | C++ | Interaction/albaAgentEventHandler.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | 9 | 2018-11-19T10:15:29.000Z | 2021-08-30T11:52:07.000Z | Interaction/albaAgentEventHandler.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | Interaction/albaAgentEventHandler.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | 3 | 2018-06-10T22:56:29.000Z | 2019-12-12T06:22:56.000Z | /*=========================================================================
Program: Multimod Fundation Library
Module: $RCSfile: albaAgentEventHandler.cpp,v $
Language: C++
Date: $Date: 2006-06-14 14:46:33 $
Version: $Revision: 1.4 $
======================================================================... | 33.375 | 80 | 0.345693 | IOR-BIC |
aef6d7bb7d3fb685be390278a8c563fcd24b89ed | 223 | cpp | C++ | example/generate_word_example.cpp | arapelle/wgen | 53471bd78e7fd64c780f04cd132047e20abf254f | [
"MIT"
] | 1 | 2020-06-02T07:25:37.000Z | 2020-06-02T07:25:37.000Z | example/generate_word_example.cpp | arapelle/wgen | 53471bd78e7fd64c780f04cd132047e20abf254f | [
"MIT"
] | 6 | 2020-08-28T10:52:25.000Z | 2020-11-02T18:59:49.000Z | example/generate_word_example.cpp | arapelle/wgen | 53471bd78e7fd64c780f04cd132047e20abf254f | [
"MIT"
] | 1 | 2020-09-04T10:36:23.000Z | 2020-09-04T10:36:23.000Z | #include <wgen/default_syllabary.hpp>
#include <iostream>
int main()
{
wgen::default_syllabary syllabary;
std::string word = syllabary.random_word(7);
std::cout << word << std::endl;
return EXIT_SUCCESS;
}
| 20.272727 | 48 | 0.686099 | arapelle |
aefc2e747d34818630c7f0d8f2d53317886ac392 | 3,739 | cpp | C++ | Testing/Gui/16_testRWI/testRWILogic.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | 9 | 2018-11-19T10:15:29.000Z | 2021-08-30T11:52:07.000Z | Testing/Gui/16_testRWI/testRWILogic.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | Testing/Gui/16_testRWI/testRWILogic.cpp | IOR-BIC/ALBA | b574968b05d9a3a2756dd2ac61d015a0d20232a4 | [
"Apache-2.0",
"BSD-3-Clause"
] | 3 | 2018-06-10T22:56:29.000Z | 2019-12-12T06:22:56.000Z | /*=========================================================================
Program: ALBA (Agile Library for Biomedical Applications)
Module: testRWILogic
Authors: Silvano Imboden
Copyright (c) BIC
All rights reserved. See Copyright.txt or
This software is distributed WITHOUT ANY WARRANTY; without even
the ... | 33.088496 | 129 | 0.472319 | IOR-BIC |
aefc38192acba82870d5413f54a656d15199680b | 511 | cpp | C++ | problems/acmicpc_14935.cpp | qawbecrdtey/BOJ-sol | e3f410e8f4e3a6ade51b68ce2024529870edac64 | [
"MIT"
] | null | null | null | problems/acmicpc_14935.cpp | qawbecrdtey/BOJ-sol | e3f410e8f4e3a6ade51b68ce2024529870edac64 | [
"MIT"
] | null | null | null | problems/acmicpc_14935.cpp | qawbecrdtey/BOJ-sol | e3f410e8f4e3a6ade51b68ce2024529870edac64 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
using namespace std;
void f(string &s,int x){
if(x<10){s.push_back(x+'0');return;}
f(s,x/10);
s.push_back(x%10+'0');
}
int main(){
string s;
cin>>s;
vector<string> v;
while(true){
for(auto str:v){
if(s==str)goto A;
... | 18.925926 | 40 | 0.471624 | qawbecrdtey |
4e05c6ff8543a5859c72437968dd4af1e056ef18 | 253 | cpp | C++ | server/src/DatabaseProxy/PostgresqlProxy.cpp | yuryloshmanov/messenger | 98c2129cf2b5ca7e00cc5c1ba90535acf8be0ba1 | [
"MIT"
] | null | null | null | server/src/DatabaseProxy/PostgresqlProxy.cpp | yuryloshmanov/messenger | 98c2129cf2b5ca7e00cc5c1ba90535acf8be0ba1 | [
"MIT"
] | null | null | null | server/src/DatabaseProxy/PostgresqlProxy.cpp | yuryloshmanov/messenger | 98c2129cf2b5ca7e00cc5c1ba90535acf8be0ba1 | [
"MIT"
] | null | null | null | /**
* @file PostgresqlProxy.cpp
* @date 22 Feb 2022
* @author Yury Loshmanov
*/
#include "../../include/DatabaseProxy/PostgresqlProxy.hpp"
PostgresqlProxy::PostgresqlProxy(const std::string &endPoint) : connection(endPoint), work(connection) {
}
| 21.083333 | 104 | 0.72332 | yuryloshmanov |
4e1306360ebcb70ea72f14a0dd65f5090fec2721 | 961 | hpp | C++ | include/codegen/include/System/IServiceProvider.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/System/IServiceProvider.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/System/IServiceProvider.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
// Completed includes
// Begin forward declares
// Forward declaring namespace: System
namespace System {
// Forward declaring ty... | 31 | 80 | 0.700312 | Futuremappermydud |
4e13dd68b9e7fa96e93e3acd2797d589a6269baf | 2,019 | cc | C++ | core/src/psfcore/unused/psftest.cc | ma-laforge/LibPSFC.jl | 73a5176ca78cade63cc9c5da4d15b36f9042645c | [
"MIT"
] | null | null | null | core/src/psfcore/unused/psftest.cc | ma-laforge/LibPSFC.jl | 73a5176ca78cade63cc9c5da4d15b36f9042645c | [
"MIT"
] | null | null | null | core/src/psfcore/unused/psftest.cc | ma-laforge/LibPSFC.jl | 73a5176ca78cade63cc9c5da4d15b36f9042645c | [
"MIT"
] | null | null | null | #include "psf.h"
#include "psfdata.h"
#include <string>
void noisesummary() {
std::string pnoisefile("/nfs/home/henrik/spectre/1/pnoise.raw/pnoise_pout3g.pnoise");
PSFDataSet psfnoise(pnoisefile);
std::vector<std::string> names = psfnoise.get_signal_names();
double sum=0;
for(std::vector<std::s... | 32.047619 | 161 | 0.634968 | ma-laforge |
4e15065ca2ce0f75964a8116c46a77e630f247fe | 5,766 | cpp | C++ | src/qt/i2poptionswidget.cpp | eddef/anoncoin | 7a018e15c814bba30e805cfe83f187388eadc0a8 | [
"MIT"
] | 90 | 2015-01-13T14:32:43.000Z | 2020-10-15T23:07:11.000Z | src/qt/i2poptionswidget.cpp | nonlinear-chaos-order-etc-etal/anoncoin | 5e441d8746240072f1379577e14ff7a17390b81f | [
"MIT"
] | 91 | 2015-01-07T03:44:14.000Z | 2020-12-24T13:56:27.000Z | src/qt/i2poptionswidget.cpp | nonlinear-chaos-order-etc-etal/anoncoin | 5e441d8746240072f1379577e14ff7a17390b81f | [
"MIT"
] | 42 | 2015-01-28T12:34:14.000Z | 2021-05-06T16:16:48.000Z | // Copyright (c) 2013-2014 The Anoncoin Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
// Many builder specific things set in the config file, don't see a need for it here, still better to not forget to incl... | 52.899083 | 148 | 0.73153 | eddef |
4e17b9dc4559616a2786013d641833dbddf34747 | 2,588 | cpp | C++ | manager/spline/spline_manager.cpp | aconstlink/snakeoil | 3c6e02655e1134f8422f01073090efdde80fc109 | [
"MIT"
] | 1 | 2017-08-11T19:12:24.000Z | 2017-08-11T19:12:24.000Z | manager/spline/spline_manager.cpp | aconstlink/snakeoil | 3c6e02655e1134f8422f01073090efdde80fc109 | [
"MIT"
] | 11 | 2018-07-07T20:09:44.000Z | 2020-02-16T22:45:09.000Z | manager/spline/spline_manager.cpp | aconstlink/snakeoil | 3c6e02655e1134f8422f01073090efdde80fc109 | [
"MIT"
] | null | null | null | //------------------------------------------------------------
// snakeoil (c) Alexis Constantin Link
// Distributed under the MIT license
//------------------------------------------------------------
#include "spline_manager.h"
using namespace so_manager ;
//*********************************************************... | 35.452055 | 97 | 0.435471 | aconstlink |
4e1e89ed0e516be46415c2b1cf93c56d4e219c02 | 156 | cpp | C++ | PredPrey_Attempt2/main.cpp | 08jne01/Predator-Prey-Attempt2 | cfb1d259a73d3d038ca122cdf63e231968e93fa9 | [
"MIT"
] | null | null | null | PredPrey_Attempt2/main.cpp | 08jne01/Predator-Prey-Attempt2 | cfb1d259a73d3d038ca122cdf63e231968e93fa9 | [
"MIT"
] | null | null | null | PredPrey_Attempt2/main.cpp | 08jne01/Predator-Prey-Attempt2 | cfb1d259a73d3d038ca122cdf63e231968e93fa9 | [
"MIT"
] | null | null | null | #include "Header.h"
#include "Program.h"
int main()
{
sf::err().rdbuf(NULL);
Program p(700, 700, 2000, 100, 10, 0.0005, 0.01);
return p.mainLoop();
} | 13 | 50 | 0.615385 | 08jne01 |
d6077ea40b8d56f29839f9970ac2762b305a2e24 | 8,750 | cpp | C++ | src/probability.cpp | Michael-Stevens-27/silverblaze | f0f001710589fe072545b00f0d3524fc993f4cbd | [
"MIT"
] | 3 | 2018-03-29T15:54:56.000Z | 2018-10-15T18:28:59.000Z | src/probability.cpp | Michael-Stevens-27/silverblaze | f0f001710589fe072545b00f0d3524fc993f4cbd | [
"MIT"
] | 2 | 2020-02-11T20:44:25.000Z | 2020-06-18T20:00:32.000Z | src/probability.cpp | Michael-Stevens-27/silverblaze | f0f001710589fe072545b00f0d3524fc993f4cbd | [
"MIT"
] | null | null | null |
#include <Rcpp.h>
#include <math.h>
#include "probability.h"
#include "misc.h"
using namespace std;
//------------------------------------------------
// draw a value from an exponential distribution with set rate parameter
double exp1(double rate){
return R::rexp(rate);
}
//-----------------------... | 29.069767 | 105 | 0.551886 | Michael-Stevens-27 |
d609367837cf3353590aa149bec33ad2091ee04c | 386 | cpp | C++ | Chapter13/drills/Drill_01.cpp | JohnWoods11/learning_c- | 094509a4e96518e1aa12205615ca50849932f9fa | [
"Apache-2.0"
] | null | null | null | Chapter13/drills/Drill_01.cpp | JohnWoods11/learning_c- | 094509a4e96518e1aa12205615ca50849932f9fa | [
"Apache-2.0"
] | null | null | null | Chapter13/drills/Drill_01.cpp | JohnWoods11/learning_c- | 094509a4e96518e1aa12205615ca50849932f9fa | [
"Apache-2.0"
] | null | null | null | #include "GUI/Graph.h"
#include "GUI/Simple_window.h"
#include "GUI/std_lib_facilities.h"
#include <iostream>
void drill_1()
{
const Point py(50,50);
Simple_window win(py, 1000, 800, "Drill 1");
win.wait_for_button();
}
int main()
{
try
{
drill_1();
}
catch (...)
{
... | 14.296296 | 48 | 0.544041 | JohnWoods11 |
d61ba495fd2b7c347312e10be17db6a4d5d4f7ad | 3,409 | cpp | C++ | src/system.cpp | MisaghM/Doodle-Jump | 850e529547e83e7a3a0607fea635517bf2e3bcc4 | [
"MIT"
] | 2 | 2021-09-02T20:05:34.000Z | 2021-11-05T19:38:15.000Z | src/system.cpp | MisaghM/Doodle-Jump | 850e529547e83e7a3a0607fea635517bf2e3bcc4 | [
"MIT"
] | null | null | null | src/system.cpp | MisaghM/Doodle-Jump | 850e529547e83e7a3a0607fea635517bf2e3bcc4 | [
"MIT"
] | null | null | null | #include "system.hpp"
#include "enemies/enemy_normal.hpp"
#include "items/spring.hpp"
#include "platforms/platform_breakable.hpp"
#include "platforms/platform_movable.hpp"
#include "platforms/platform_normal.hpp"
#include "spritesheet.hpp"
System::System(Window* win_)
: win_(win_),
menuScene_(&inputMan_),
... | 30.4375 | 146 | 0.581989 | MisaghM |
d62204e616f8edb2f0032058d3f6ad907800fbb3 | 1,091 | cc | C++ | test/test_flann.cc | mozuysal/virg-workspace | ff0df41ceb288609c5279a85d9d04dbbc178d33e | [
"BSD-3-Clause"
] | null | null | null | test/test_flann.cc | mozuysal/virg-workspace | ff0df41ceb288609c5279a85d9d04dbbc178d33e | [
"BSD-3-Clause"
] | 3 | 2017-02-07T11:26:33.000Z | 2017-02-07T12:43:41.000Z | test/test_flann.cc | mozuysal/virg-workspace | ff0df41ceb288609c5279a85d9d04dbbc178d33e | [
"BSD-3-Clause"
] | null | null | null | #include "gtest/gtest.h"
#include "flann/flann.hpp"
using flann::Matrix;
using flann::Index;
using flann::LinearIndexParams;
using flann::L2;
using flann::SearchParams;
TEST(flann, linear_index) {
int nn = 2;
float data[4] = { 0.0f, 0.0f,
1.0, 0.5};
Matrix<float> da... | 27.275 | 70 | 0.578368 | mozuysal |
d62869904cc8110964fdb3a0ea0fd9355c5e0066 | 44,630 | cc | C++ | tacacsAuthProxy/src/proxy_server.cc | gkumar78/tacacs_auth_proxy | bffdfde75e67e075e47f345580bd6adbea8930d5 | [
"Apache-2.0"
] | null | null | null | tacacsAuthProxy/src/proxy_server.cc | gkumar78/tacacs_auth_proxy | bffdfde75e67e075e47f345580bd6adbea8930d5 | [
"Apache-2.0"
] | null | null | null | tacacsAuthProxy/src/proxy_server.cc | gkumar78/tacacs_auth_proxy | bffdfde75e67e075e47f345580bd6adbea8930d5 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2018-present Open Networking Foundation
* 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 ... | 39.741763 | 171 | 0.588438 | gkumar78 |
d6320ffbbb1fd3681cb234be4d0f345d770834d1 | 3,724 | cpp | C++ | vnext/Microsoft.ReactNative/ReactNativeHost.cpp | tom-un/react-native-windows | c09b55cce76604fe0b379b10206a974915dafc25 | [
"MIT"
] | 2 | 2021-09-05T18:12:44.000Z | 2021-09-06T02:08:25.000Z | vnext/Microsoft.ReactNative/ReactNativeHost.cpp | zchronoz/react-native-windows | 111b727c50b4349b60ffe98f7ff70d487624add3 | [
"MIT"
] | 2 | 2021-05-09T03:34:28.000Z | 2021-09-02T14:49:43.000Z | vnext/Microsoft.ReactNative/ReactNativeHost.cpp | t0rr3sp3dr0/react-native-windows | 5ed2c5626fb2d126022ba215a71a1cb92f7337b3 | [
"MIT"
] | null | null | null | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "pch.h"
#include "ReactNativeHost.h"
#include "ReactNativeHost.g.cpp"
#include "ReactInstanceManager.h"
#include "ReactInstanceManagerBuilder.h"
#include "ReactInstanceSettings.h"
#include "ReactRootView... | 30.276423 | 106 | 0.747046 | tom-un |
d63398010a208af19e5347957d12dcf82055b812 | 698 | cpp | C++ | Utils/StringUtils.cpp | paulross80/myoga-utils | ecdff503690bb0b3a521e7af66bb84dfbd899799 | [
"MIT"
] | null | null | null | Utils/StringUtils.cpp | paulross80/myoga-utils | ecdff503690bb0b3a521e7af66bb84dfbd899799 | [
"MIT"
] | null | null | null | Utils/StringUtils.cpp | paulross80/myoga-utils | ecdff503690bb0b3a521e7af66bb84dfbd899799 | [
"MIT"
] | null | null | null | #include <stdexcept>
#include <algorithm>
#include <cctype>
#include "StringUtils.hpp"
namespace myoga
{
// String to lowercase
auto lowercase(std::string_view str) -> std::string
{
std::string ret(str);
for (std::size_t i = 0U; i < ret.length(); i++)
ret[i] = charToLower(ret[i]);
return ret;
}... | 19.388889 | 93 | 0.617479 | paulross80 |
d634459a8057739295b11d8375cfb44714bf6d9b | 4,816 | cpp | C++ | motif4struct_bin.cpp | devuci/bct-cpp | bbb33f476bffbb5669e051841f00c3241f4d6f69 | [
"MIT"
] | null | null | null | motif4struct_bin.cpp | devuci/bct-cpp | bbb33f476bffbb5669e051841f00c3241f4d6f69 | [
"MIT"
] | null | null | null | motif4struct_bin.cpp | devuci/bct-cpp | bbb33f476bffbb5669e051841f00c3241f4d6f69 | [
"MIT"
] | null | null | null | #include "bct.h"
/*
* Counts occurrences of four-node structural motifs in a binary graph.
*/
VECTOR_T* BCT_NAMESPACE::motif4struct_bin(const MATRIX_T* A, MATRIX_T** F) {
if (safe_mode) check_status(A, SQUARE | BINARY, "motif4struct_bin");
// load motif34lib M4n ID4
VECTOR_T* ID4;
MATRIX_T* M4 = motif4generate... | 27.83815 | 145 | 0.508721 | devuci |
d64117aa915e6ae0b088b4a29488fb5f0d38fad0 | 285 | cpp | C++ | Primer/Trials/check.cpp | siddheshpai/hello-world | 291456962d46c6ce857d75be86bc23634625925f | [
"Apache-2.0"
] | null | null | null | Primer/Trials/check.cpp | siddheshpai/hello-world | 291456962d46c6ce857d75be86bc23634625925f | [
"Apache-2.0"
] | null | null | null | Primer/Trials/check.cpp | siddheshpai/hello-world | 291456962d46c6ce857d75be86bc23634625925f | [
"Apache-2.0"
] | 1 | 2020-05-30T04:30:16.000Z | 2020-05-30T04:30:16.000Z | #include <iostream>
int main()
{
int n = 5;
void *p = &n;
int *pi = static_cast<int*>(p);
++*pi;
std::cout << *pi << std::endl;
//Checking ref to const
std::string const &s = "9-99-999-9999";
std::cout << s << std::endl;
return 0;
}
| 15.833333 | 43 | 0.477193 | siddheshpai |
d6460c3cda3662f4730f91a14731321247e446ed | 258 | cpp | C++ | PETCS/Intermediate/aplusb.cpp | dl4us/Competitive-Programming-1 | d42fab3bd68168adbe4b5f594f19ee5dfcd1389b | [
"MIT"
] | null | null | null | PETCS/Intermediate/aplusb.cpp | dl4us/Competitive-Programming-1 | d42fab3bd68168adbe4b5f594f19ee5dfcd1389b | [
"MIT"
] | null | null | null | PETCS/Intermediate/aplusb.cpp | dl4us/Competitive-Programming-1 | d42fab3bd68168adbe4b5f594f19ee5dfcd1389b | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int N;
int main() {
cin.sync_with_stdio(0);
cin.tie(0); cout.tie(0);
cin >> N;
int a, b;
for(int i = 0; i < N; i++) {
cin >> a >> b;
cout << a+b << "\n";
}
return 0;
}
| 17.2 | 32 | 0.453488 | dl4us |
d6468e7220e5b770459d2c4cff62b1dff129a89a | 9,676 | cpp | C++ | Widgets/Datalog/dialogplotchannelchoose.cpp | cyferc/Empro-Datalog-Viewer | 8d66cefe64aa254c283e72034f9ea452938ad212 | [
"MIT"
] | 6 | 2017-03-29T14:44:06.000Z | 2021-08-17T06:11:09.000Z | Widgets/Datalog/dialogplotchannelchoose.cpp | cyferc/Empro-Datalog-Viewer | 8d66cefe64aa254c283e72034f9ea452938ad212 | [
"MIT"
] | 1 | 2018-11-24T11:12:08.000Z | 2018-11-24T11:12:08.000Z | Widgets/Datalog/dialogplotchannelchoose.cpp | cyferc/Empro-Datalog-Viewer | 8d66cefe64aa254c283e72034f9ea452938ad212 | [
"MIT"
] | 3 | 2018-01-20T21:53:03.000Z | 2020-09-23T19:02:42.000Z | #include "dialogplotchannelchoose.h"
#include "ui_dialogplotchannelchoose.h"
#include <QGridLayout>
#include <QCheckBox>
#include <QDebug>
#include "plotdatalog.h"
DialogPlotChannelChoose::DialogPlotChannelChoose(std::vector<PointList *> vecOfPointLists, QSplitter *pSplitterPlots, QWidget *pParent) :
QDialog(pPare... | 33.597222 | 148 | 0.632906 | cyferc |
d64e446dff7144ca8d332cb99165bcb8e195f0bd | 707 | cpp | C++ | src/axl_fsm/axl_fsm_StdRegexNameMgr.cpp | wandns/axl | 5686b94b18033df13a9e1656e1aaaf086c442a21 | [
"MIT"
] | null | null | null | src/axl_fsm/axl_fsm_StdRegexNameMgr.cpp | wandns/axl | 5686b94b18033df13a9e1656e1aaaf086c442a21 | [
"MIT"
] | null | null | null | src/axl_fsm/axl_fsm_StdRegexNameMgr.cpp | wandns/axl | 5686b94b18033df13a9e1656e1aaaf086c442a21 | [
"MIT"
] | null | null | null | //..............................................................................
//
// This file is part of the AXL library.
//
// AXL is distributed under the MIT license.
// For details see accompanying license.txt file,
// the public copy of which is also available at:
// http://tibbo.com/downloads/archive/axl/... | 29.458333 | 80 | 0.381895 | wandns |
d64e7ea4e4dabafa189a4fea5e17aaaaaa8ecd54 | 4,641 | hpp | C++ | ext/tatara/array/integer/int_array.hpp | S-H-GAMELINKS/tatara | b849be7c7a9d097b2c0bd0b5df5bbb21ec96d3c0 | [
"MIT"
] | 6 | 2019-08-16T11:35:43.000Z | 2019-11-16T07:57:06.000Z | ext/tatara/array/integer/int_array.hpp | S-H-GAMELINKS/tatara | b849be7c7a9d097b2c0bd0b5df5bbb21ec96d3c0 | [
"MIT"
] | 378 | 2019-08-15T07:55:18.000Z | 2020-02-16T12:22:34.000Z | ext/tatara/array/integer/int_array.hpp | S-H-GAMELINKS/tatara | b849be7c7a9d097b2c0bd0b5df5bbb21ec96d3c0 | [
"MIT"
] | 1 | 2019-09-02T15:32:58.000Z | 2019-09-02T15:32:58.000Z | #ifndef INT_ARRAY_HPP_
#define INT_ARRAY_HPP_
#include <ruby.h>
#include <vector>
#include <algorithm>
#include <iterator>
#include <iostream>
static VALUE int_array_init(VALUE self) {
return self;
}
static VALUE int_array_first(VALUE self) {
return rb_ary_entry(self, 0);
}
static VALUE int_array_last(VALUE... | 27.3 | 93 | 0.664081 | S-H-GAMELINKS |
d65105f7124e34e006397ffc4eb686cf9b87ab8c | 627 | hpp | C++ | src/include/helper.hpp | allen880117/Simulated-Quantum-Annealing | 84ce0a475a9f132502c4bb4e9b4ca5824cdb7630 | [
"MIT"
] | 2 | 2021-09-08T08:01:27.000Z | 2021-11-21T00:08:56.000Z | src/include/helper.hpp | allen880117/Simulated-Quantum-Annealing | 84ce0a475a9f132502c4bb4e9b4ca5824cdb7630 | [
"MIT"
] | null | null | null | src/include/helper.hpp | allen880117/Simulated-Quantum-Annealing | 84ce0a475a9f132502c4bb4e9b4ca5824cdb7630 | [
"MIT"
] | null | null | null | #ifndef _HELPER_HPP_
#define _HELPER_HPP_
#include "sqa.hpp"
/* Progress Bar */
#define PBSTR "||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||"
#define PBWIDTH 60
/* Print the progress bar */
void printProgress(double percentage);
/* Generate Random Initial State */
void generateRandomState(spin_t trot... | 27.26087 | 76 | 0.590112 | allen880117 |
d651893644eb14548298ed0bad64c2821f706b20 | 3,457 | cpp | C++ | RandPass.cpp | abdulrahmanabdulazeez/RandPass | e7b11c2f577d3ca460358bfa826e7939825cccc4 | [
"MIT"
] | 2 | 2021-09-13T15:34:30.000Z | 2021-09-30T22:16:44.000Z | RandPass.cpp | abdulrahmanabdulazeez/RandPass | e7b11c2f577d3ca460358bfa826e7939825cccc4 | [
"MIT"
] | null | null | null | RandPass.cpp | abdulrahmanabdulazeez/RandPass | e7b11c2f577d3ca460358bfa826e7939825cccc4 | [
"MIT"
] | null | null | null | //Do not copy:
//More Advanced Version:
//Random Password Generator:
#include <iostream>
#include <cstdlib>
#include <ctime>
#include <fstream>
using namespace std;
void help();
void PASSINTRO(){
cout << "------------------------------------------------------------\n\n";
cout << " RANDOM PASSWORD GENERATOR\n";
cout << ... | 24.174825 | 105 | 0.596182 | abdulrahmanabdulazeez |
d6618d5c25345e95ecb195b5f0d64cc65ad2cd5f | 275 | cpp | C++ | 2021.10.03-homework-3/Project3/Source.cpp | st095227/homework_2021-2022 | 7b3abd8848ead7456972c5d2f0f4404532e299bc | [
"Apache-2.0"
] | null | null | null | 2021.10.03-homework-3/Project3/Source.cpp | st095227/homework_2021-2022 | 7b3abd8848ead7456972c5d2f0f4404532e299bc | [
"Apache-2.0"
] | null | null | null | 2021.10.03-homework-3/Project3/Source.cpp | st095227/homework_2021-2022 | 7b3abd8848ead7456972c5d2f0f4404532e299bc | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
int main(int argv, char* argc[])
{
int n = 0;
cin >> n;
int i = 0;
int b = 0;
while (n != 0)
{
++i;
for (int j = 0; j < i && n>0; ++j)
{
++b;
cout << b << ' ';
--n;
}
cout << endl;
}
return EXIT_SUCCESS;
} | 11.956522 | 36 | 0.461818 | st095227 |
69936abdf09f2bb3af3d7e3ffd4be62b0809830e | 1,283 | cpp | C++ | ReactionPlus/Exec/InputDevice.cpp | stricq/AmigaSynergy | fd81da853b3c5a50a2bb5c160c5f7320daaa7571 | [
"MIT"
] | 1 | 2022-03-05T11:30:18.000Z | 2022-03-05T11:30:18.000Z | ReactionPlus/Exec/InputDevice.cpp | stricq/AmigaSynergy | fd81da853b3c5a50a2bb5c160c5f7320daaa7571 | [
"MIT"
] | null | null | null | ReactionPlus/Exec/InputDevice.cpp | stricq/AmigaSynergy | fd81da853b3c5a50a2bb5c160c5f7320daaa7571 | [
"MIT"
] | 1 | 2022-03-06T11:22:44.000Z | 2022-03-06T11:22:44.000Z | #include "InputDevice.hpp"
#include <proto/exec.h>
namespace RAPlus {
namespace Exec {
InputDevice::InputDevice() {
stdRequest = new StandardIORequest();
inputBit = stdRequest->getSignal();
inputStat = IExec->OpenDevice("input.device",0,stdRequest->getIORequest(),0);
if (inputStat... | 18.328571 | 83 | 0.64926 | stricq |
6996320db8fe0598e39bb64e6787114c0b66766d | 1,275 | hpp | C++ | vcl/math/interpolation/interpolation.hpp | PPonc/inf443-vcl | 4d7bb0130c4bc44e089059464223eca318fdbd00 | [
"MIT"
] | null | null | null | vcl/math/interpolation/interpolation.hpp | PPonc/inf443-vcl | 4d7bb0130c4bc44e089059464223eca318fdbd00 | [
"MIT"
] | null | null | null | vcl/math/interpolation/interpolation.hpp | PPonc/inf443-vcl | 4d7bb0130c4bc44e089059464223eca318fdbd00 | [
"MIT"
] | null | null | null | #pragma once
#include "../../containers/containers.hpp"
namespace vcl
{
/** Interpolate value(x,y) using bilinear interpolation
* - value: grid_2D - coordinates assumed to be its indices
* - (x,y): coordinates assumed to be \in [0,value.dimension.x-1] X [0,value.dimension.y]
*/
template ... | 28.333333 | 93 | 0.561569 | PPonc |
699a62f6968b573dd616ee87b0562dfe71ffd169 | 413 | cpp | C++ | AIBattleground/Src/AISystemBase.cpp | CerberusDev/AIBattleground | 78cb72aeb9f33ff630a01df26c3056b7b7027c69 | [
"MIT"
] | null | null | null | AIBattleground/Src/AISystemBase.cpp | CerberusDev/AIBattleground | 78cb72aeb9f33ff630a01df26c3056b7b7027c69 | [
"MIT"
] | null | null | null | AIBattleground/Src/AISystemBase.cpp | CerberusDev/AIBattleground | 78cb72aeb9f33ff630a01df26c3056b7b7027c69 | [
"MIT"
] | null | null | null | // ----------------------------------------------------------------------------
// ------------- AI Battleground, Copyright(C) Maciej Pryc, 2016 --------------
// ----------------------------------------------------------------------------
#include "AISystemBase.h"
AISystemBase::AISystemBase(class Blackboard* a... | 24.294118 | 80 | 0.380145 | CerberusDev |
69a07f728b17bc1b66924920a2d4d4642b548472 | 5,304 | cpp | C++ | nau/src/nau/render/materialSortRenderQueue.cpp | Khirion/nau | 47a2ad8e0355a264cd507da5e7bba1bf7abbff95 | [
"MIT"
] | 29 | 2015-09-16T22:28:30.000Z | 2022-03-11T02:57:36.000Z | nau/src/nau/render/materialSortRenderQueue.cpp | Khirion/nau | 47a2ad8e0355a264cd507da5e7bba1bf7abbff95 | [
"MIT"
] | 1 | 2017-03-29T13:32:58.000Z | 2017-03-31T13:56:03.000Z | nau/src/nau/render/materialSortRenderQueue.cpp | Khirion/nau | 47a2ad8e0355a264cd507da5e7bba1bf7abbff95 | [
"MIT"
] | 10 | 2015-10-15T14:20:15.000Z | 2022-02-17T10:37:29.000Z | #include "nau/render/materialSortRenderQueue.h"
#include "nau.h"
#include "nau/render/iRenderable.h"
#include "nau/geometry/boundingBox.h"
#include "nau/debug/profile.h"
using namespace nau::render;
using namespace nau::scene;
using namespace nau::material;
using namespace nau::math;
using namespace nau;
typedef st... | 31.384615 | 158 | 0.697775 | Khirion |
69a195aec5b82d7c089d79f41e41520f1653bee4 | 430 | cpp | C++ | Classes/Retan_class/main.cpp | Bernardo1411/Programacao_Avancada | 5005b60155648872ca9d4f374b3d9ea035aa33a3 | [
"MIT"
] | null | null | null | Classes/Retan_class/main.cpp | Bernardo1411/Programacao_Avancada | 5005b60155648872ca9d4f374b3d9ea035aa33a3 | [
"MIT"
] | null | null | null | Classes/Retan_class/main.cpp | Bernardo1411/Programacao_Avancada | 5005b60155648872ca9d4f374b3d9ea035aa33a3 | [
"MIT"
] | null | null | null | #include <iostream>
#include "ponto.h"
using namespace std;
int main()
{
ponto p1(2,3), p2(5,6);
cout << p1;
cout << p2;
cout << "distancia P1 e P2: " << p1.dist(p2) << endl;
cout << "area P1 e P2: " << p1.area(p2) << endl;
ponto p3 = p1;
cout << p3;
cout << "distancia P3 e P2: " ... | 15.925926 | 57 | 0.5 | Bernardo1411 |
69a390cc0c446131353ccbc58108b6fc8dd3316a | 26,342 | cpp | C++ | Testbed/Framework/Main.cpp | louis-langholtz/Box2D | 7c74792bf177cf36640d735de2bba0225bf7f852 | [
"Zlib"
] | 32 | 2016-10-20T05:55:04.000Z | 2021-11-25T16:34:41.000Z | Testbed/Framework/Main.cpp | louis-langholtz/Box2D | 7c74792bf177cf36640d735de2bba0225bf7f852 | [
"Zlib"
] | 50 | 2017-01-07T21:40:16.000Z | 2018-01-31T10:04:05.000Z | Testbed/Framework/Main.cpp | louis-langholtz/Box2D | 7c74792bf177cf36640d735de2bba0225bf7f852 | [
"Zlib"
] | 7 | 2017-02-09T10:02:02.000Z | 2020-07-23T22:49:04.000Z | /*
* Original work Copyright (c) 2006-2013 Erin Catto http://www.box2d.org
* Modified work Copyright (c) 2017 Louis Langholtz https://github.com/louis-langholtz/Box2D
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* ar... | 31.100354 | 101 | 0.558879 | louis-langholtz |
69a86172d7133a45894a91551431a5804b3d5263 | 17,851 | cpp | C++ | src/predefined/FaceDetector.cpp | djinn-technologies/depthai-unity | 4064a0f3ea374e30203ee9a0a2c42f1e59791519 | [
"MIT"
] | null | null | null | src/predefined/FaceDetector.cpp | djinn-technologies/depthai-unity | 4064a0f3ea374e30203ee9a0a2c42f1e59791519 | [
"MIT"
] | null | null | null | src/predefined/FaceDetector.cpp | djinn-technologies/depthai-unity | 4064a0f3ea374e30203ee9a0a2c42f1e59791519 | [
"MIT"
] | null | null | null | /**
* This file contains face detector pipeline and interface for Unity scene called "Face Detector"
* Main goal is to perform face detection + depth
*/
#pragma GCC diagnostic ignored "-Wreturn-type-c-linkage"
#pragma GCC diagnostic ignored "-Wdouble-promotion"
#if _MSC_VER // this is defined when compiling with Visu... | 42.808153 | 327 | 0.563554 | djinn-technologies |
69a9b34733d8e2c7b1fb7c8680cde5cc71073bb5 | 37,002 | cpp | C++ | packages/monte_carlo/active_region/core/test/tstIndependentPhaseSpaceDimensionDistribution.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 10 | 2019-11-14T19:58:30.000Z | 2021-04-04T17:44:09.000Z | packages/monte_carlo/active_region/core/test/tstIndependentPhaseSpaceDimensionDistribution.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 43 | 2020-03-03T19:59:20.000Z | 2021-09-08T03:36:08.000Z | packages/monte_carlo/active_region/core/test/tstIndependentPhaseSpaceDimensionDistribution.cpp | bam241/FRENSIE | e1760cd792928699c84f2bdce70ff54228e88094 | [
"BSD-3-Clause"
] | 6 | 2020-02-12T17:37:07.000Z | 2020-09-08T18:59:51.000Z | //---------------------------------------------------------------------------//
//!
//! \file tstIndependentPhaseSpaceDimensionDistribution.cpp
//! \author Alex Robinson
//! \brief Independent phase space dimension distribution unit tests
//!
//------------------------------------------------------------------------... | 45.345588 | 174 | 0.690125 | bam241 |
69b9905adc72eba720b32122f1980ce4698e364f | 10,627 | cpp | C++ | src/extern/inventor/lib/database/src/so/nodes/nurbs/libnurbs/mesher.cpp | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | 2 | 2020-05-21T07:06:07.000Z | 2021-06-28T02:14:34.000Z | src/extern/inventor/lib/database/src/so/nodes/nurbs/libnurbs/mesher.cpp | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | null | null | null | src/extern/inventor/lib/database/src/so/nodes/nurbs/libnurbs/mesher.cpp | OpenXIP/xip-libraries | 9f0fef66038b20ff0c81c089d7dd0038e3126e40 | [
"Apache-2.0"
] | 6 | 2016-03-21T19:53:18.000Z | 2021-06-08T18:06:03.000Z | /*
*
* Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your opti... | 21.732106 | 77 | 0.56347 | OpenXIP |
69baeb7d6ebe81751f6ae3ba6556c8840ebc1edb | 533 | cpp | C++ | cpp/11973.cpp | jinhan814/BOJ | 47d2a89a2602144eb08459cabac04d036c758577 | [
"MIT"
] | 9 | 2021-01-15T13:36:39.000Z | 2022-02-23T03:44:46.000Z | cpp/11973.cpp | jinhan814/BOJ | 47d2a89a2602144eb08459cabac04d036c758577 | [
"MIT"
] | 1 | 2021-07-31T17:11:26.000Z | 2021-08-02T01:01:03.000Z | cpp/11973.cpp | jinhan814/BOJ | 47d2a89a2602144eb08459cabac04d036c758577 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define fastio cin.tie(0)->sync_with_stdio(0)
using namespace std;
int n, k, v[50'000];
inline bool Check(const int mid) {
int cnt = 0;
for (int i = 0; i < n;) {
const int j = i;
while (i < n && v[i] - v[j] <= mid << 1) i++;
cnt++;
}
return cnt <= k;
}
int main() {
fastio;
cin >>... | 17.766667 | 47 | 0.497186 | jinhan814 |
69c1c472367f84931449ade7a28833db0e376d5c | 890 | cpp | C++ | sealtk/core/TrackUtils.cpp | BetsyMcPhail/seal-tk | 49eccad75e501450fbb63524062706968f5f3bef | [
"BSD-3-Clause"
] | null | null | null | sealtk/core/TrackUtils.cpp | BetsyMcPhail/seal-tk | 49eccad75e501450fbb63524062706968f5f3bef | [
"BSD-3-Clause"
] | null | null | null | sealtk/core/TrackUtils.cpp | BetsyMcPhail/seal-tk | 49eccad75e501450fbb63524062706968f5f3bef | [
"BSD-3-Clause"
] | null | null | null | /* This file is part of SEAL-TK, and is distributed under the OSI-approved BSD
* 3-Clause License. See top-level LICENSE file or
* https://github.com/Kitware/seal-tk/blob/master/LICENSE for details. */
#include <sealtk/core/TrackUtils.hpp>
#include <vital/range/indirect.h>
#include <qtStlUtil.h>
#include <QVarian... | 21.190476 | 79 | 0.641573 | BetsyMcPhail |
69c266b24d7f83d369054b9fdb7489b66410c97b | 2,524 | cpp | C++ | two-pointers/3-I.cpp | forestLoop/Learning-ITMO-Academy-Pilot-Course | b70ea387cb6a7c26871d99ecf7109fd8f0237c3e | [
"MIT"
] | 6 | 2021-07-04T08:47:48.000Z | 2022-01-12T09:34:20.000Z | two-pointers/3-I.cpp | forestLoop/Learning-ITMO-Academy-Pilot-Course | b70ea387cb6a7c26871d99ecf7109fd8f0237c3e | [
"MIT"
] | null | null | null | two-pointers/3-I.cpp | forestLoop/Learning-ITMO-Academy-Pilot-Course | b70ea387cb6a7c26871d99ecf7109fd8f0237c3e | [
"MIT"
] | 2 | 2021-11-24T12:18:58.000Z | 2022-02-06T00:18:51.000Z | // I. Segment with the Required Subset
// https://codeforces.com/edu/course/2/lesson/9/3/practice/contest/307094/problem/I
#include <bitset>
#include <iostream>
#include <stack>
#include <vector>
constexpr int MAX_SUM = 1000;
constexpr int BITSET_SIZE = MAX_SUM + 1;
class KnapsackStack {
public:
KnapsackStack... | 24.504854 | 83 | 0.554279 | forestLoop |
69c44787494404b19eca8b6232646ae83313c677 | 4,925 | cpp | C++ | Retired_Proj/4_Unmap/unmap.cpp | billkarsh/Alignment_Projects | f2ce48477da866b09a13fd33f1a53a8af644b35b | [
"BSD-3-Clause"
] | 11 | 2015-07-24T14:41:25.000Z | 2022-03-19T13:27:51.000Z | Retired_Proj/4_Unmap/unmap.cpp | billkarsh/Alignment_Projects | f2ce48477da866b09a13fd33f1a53a8af644b35b | [
"BSD-3-Clause"
] | 1 | 2016-05-14T22:26:25.000Z | 2016-05-14T22:26:25.000Z | Retired_Proj/4_Unmap/unmap.cpp | billkarsh/Alignment_Projects | f2ce48477da866b09a13fd33f1a53a8af644b35b | [
"BSD-3-Clause"
] | 18 | 2015-03-10T18:45:58.000Z | 2021-08-16T13:56:48.000Z |
#include "File.h"
#include "ImageIO.h"
#include "TAffine.h"
#include <string.h>
// structure for unmapping a global image
struct orig_image {
public:
char *fname;
int w,h;
int xmin, ymin, xmax, ymax; // bounding box in global image of all point that map to this
orig_image(){fname = NULL; xmin =... | 30.974843 | 116 | 0.503959 | billkarsh |
69cd59d6cc01fd94fd58d9248686ed83ccedd3b1 | 134,375 | inl | C++ | src/fonts/stb_font_arial_50_latin1.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | 3 | 2018-03-13T12:51:57.000Z | 2021-10-11T11:32:17.000Z | src/fonts/stb_font_arial_50_latin1.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | null | null | null | src/fonts/stb_font_arial_50_latin1.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | null | null | null | // Font generated by stb_font_inl_generator.c (4/1 bpp)
//
// Following instructions show how to use the only included font, whatever it is, in
// a generic way so you can replace it with any other font by changing the include.
// To use multiple fonts, replace STB_SOMEFONT_* below with STB_FONT_arial_50_latin1_*,
... | 69.768951 | 115 | 0.816283 | stetre |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.