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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
351f03c7cd83e6fd800d6ae50ef7cea48114d86d | 1,717 | hh | C++ | userFiles/interface/io/controller_io.hh | mharding01/augmented-neuromuscular-RT-running | 7e1ef00d3fdf9cfa9d59fc4f3a6a0e6dd792a834 | [
"MIT"
] | null | null | null | userFiles/interface/io/controller_io.hh | mharding01/augmented-neuromuscular-RT-running | 7e1ef00d3fdf9cfa9d59fc4f3a6a0e6dd792a834 | [
"MIT"
] | null | null | null | userFiles/interface/io/controller_io.hh | mharding01/augmented-neuromuscular-RT-running | 7e1ef00d3fdf9cfa9d59fc4f3a6a0e6dd792a834 | [
"MIT"
] | null | null | null | /*!
* \author Nicolas Van der Noot
* \file controller_io.hh
* \brief Controller IO structures
*/
#ifndef _CONTROLLER_IO_HH_
#define _CONTROLLER_IO_HH_
#include "mbs_data.h"
/*! \brief inputs structure
*/
typedef struct Inputs_ctrl
{
double t; ///< time [s]
double *q; ///< position [rad]
double *q... | 28.147541 | 103 | 0.70763 | mharding01 |
352054bd496e0631b2ed0aa8eeb80d0ec5767e47 | 2,067 | cpp | C++ | main/tube-manager.cpp | NeilBetham/neon-dreams | 710e8cb105915bb1dec176a0bedc88fb51dce7a6 | [
"MIT"
] | null | null | null | main/tube-manager.cpp | NeilBetham/neon-dreams | 710e8cb105915bb1dec176a0bedc88fb51dce7a6 | [
"MIT"
] | null | null | null | main/tube-manager.cpp | NeilBetham/neon-dreams | 710e8cb105915bb1dec176a0bedc88fb51dce7a6 | [
"MIT"
] | null | null | null | #include "tube-manager.hpp"
#include <esp_log.h>
#include <sys/time.h>
#include <time.h>
TubeManager::TubeManager(TubeDriver& _td) : td(_td), poison_prev_int(300), poison_prev_dur(10) {};
void TubeManager::set_digits(uint8_t _one, uint8_t _two, uint8_t _three, uint8_t _four, uint8_t _five, uint8_t _six) {
one = _... | 22.225806 | 118 | 0.557813 | NeilBetham |
3520eff95b5015ccdc42a925d56c031fd9abcbed | 1,218 | hpp | C++ | src/type_caster.hpp | The-Ludwig/iminuit | 8eef7b711846d6c8db9fe1fc883f6fa0977eb514 | [
"MIT"
] | null | null | null | src/type_caster.hpp | The-Ludwig/iminuit | 8eef7b711846d6c8db9fe1fc883f6fa0977eb514 | [
"MIT"
] | null | null | null | src/type_caster.hpp | The-Ludwig/iminuit | 8eef7b711846d6c8db9fe1fc883f6fa0977eb514 | [
"MIT"
] | null | null | null | #include <pybind11/numpy.h>
#include <pybind11/pybind11.h>
#include <algorithm>
#include <vector>
namespace pybind11 {
namespace detail {
template <typename Value>
struct type_caster<std::vector<Value>> {
using vec_t = std::vector<Value>;
using value_conv = make_caster<Value>;
using size_conv = make_caster<std:... | 27.681818 | 85 | 0.66092 | The-Ludwig |
3522c8f5360c851e99c3d9fb99c7d3ac90699c0f | 1,541 | cpp | C++ | cpp/include/graph/articulation_points.cpp | kyuridenamida/competitive-library | a2bea434c4591359c208b865d2d4dc25574df24d | [
"MIT"
] | 3 | 2017-04-09T10:12:31.000Z | 2019-02-11T03:11:27.000Z | cpp/include/graph/articulation_points.cpp | kyuridenamida/competitive-library | a2bea434c4591359c208b865d2d4dc25574df24d | [
"MIT"
] | null | null | null | cpp/include/graph/articulation_points.cpp | kyuridenamida/competitive-library | a2bea434c4591359c208b865d2d4dc25574df24d | [
"MIT"
] | 1 | 2019-11-29T06:11:10.000Z | 2019-11-29T06:11:10.000Z | #pragma once
#include "../util.hpp"
template <typename Edge>
pair<set<int>, vector<vector<Edge>>> articulation_points(const vector<vector<Edge>> &g) {
const int n = g.size();
set<int> art;
vector<vector<Edge>> connect;
vector<Edge> st;
vector<int> order(n, -1), low(n, -1);
for (int i = 0; i < n; i++) {
... | 27.517857 | 89 | 0.499676 | kyuridenamida |
352547ead12141ae5203b8514806f65265ead9b9 | 4,294 | cpp | C++ | io_handler.cpp | bilyanhadzhi/travellers_app | 5cb5b0bcd9b03771e55db5d28c052e10dbc460f7 | [
"MIT"
] | null | null | null | io_handler.cpp | bilyanhadzhi/travellers_app | 5cb5b0bcd9b03771e55db5d28c052e10dbc460f7 | [
"MIT"
] | null | null | null | io_handler.cpp | bilyanhadzhi/travellers_app | 5cb5b0bcd9b03771e55db5d28c052e10dbc460f7 | [
"MIT"
] | 2 | 2021-04-27T15:11:01.000Z | 2021-06-07T11:31:56.000Z | #include <iostream>
#include <cstring>
#include "io_handler.hpp"
#include "lib/string.hpp"
#include "constants.hpp"
void IOHandler::set_command(String command)
{
this->command = command;
}
void IOHandler::input_command()
{
std::cin >> this->command;
}
void IOHandler::input_args(std::istream& i_stream)
{
... | 22.719577 | 115 | 0.620633 | bilyanhadzhi |
3526b5933838c62f471fc5cdff3023dc386acfbc | 3,031 | cpp | C++ | networkit/cpp/algebraic/test/NormalizedLaplacianMatrixGTest.cpp | kit-parco/networkit-chemfork | 5bfd593308af3020aeca00c843e7e9dd860011d0 | [
"MIT"
] | 2 | 2018-10-08T15:47:50.000Z | 2021-06-11T13:42:43.000Z | networkit/cpp/algebraic/test/NormalizedLaplacianMatrixGTest.cpp | kit-parco/networkit-hyperbolic-kd | 8eb786b8f72e0507a75e68184f444a19cf47ef58 | [
"MIT"
] | null | null | null | networkit/cpp/algebraic/test/NormalizedLaplacianMatrixGTest.cpp | kit-parco/networkit-hyperbolic-kd | 8eb786b8f72e0507a75e68184f444a19cf47ef58 | [
"MIT"
] | 1 | 2019-10-21T08:29:30.000Z | 2019-10-21T08:29:30.000Z | /*
* NormalizedLaplacianMatrixGTest.cpp
*
* Created on: 25.03.2014
* Author: Michael Wegner (michael.wegner@student.kit.edu)
*/
#include "NormalizedLaplacianMatrixGTest.h"
namespace NetworKit {
NormalizedLaplacianMatrixGTest::NormalizedLaplacianMatrixGTest() {
}
NormalizedLaplacianMatrixGTest::~Normaliz... | 34.443182 | 109 | 0.751567 | kit-parco |
35320404fde87c4582d41e099fc460f4c69ba85a | 2,583 | cc | C++ | code/Modules/Core/Args.cc | waywardmonkeys/oryol | 6b496fa9f5fd7acbae3363e0617cb13d333aa6bf | [
"MIT"
] | null | null | null | code/Modules/Core/Args.cc | waywardmonkeys/oryol | 6b496fa9f5fd7acbae3363e0617cb13d333aa6bf | [
"MIT"
] | null | null | null | code/Modules/Core/Args.cc | waywardmonkeys/oryol | 6b496fa9f5fd7acbae3363e0617cb13d333aa6bf | [
"MIT"
] | null | null | null | //------------------------------------------------------------------------------
// Args.cc
//------------------------------------------------------------------------------
#include "Pre.h"
#include "Args.h"
#include "Core/String/StringBuilder.h"
#include "Core/String/StringConverter.h"
namespace Oryol {
... | 33.115385 | 81 | 0.409601 | waywardmonkeys |
35329718a73df43768870b66ca112156b4d0d3d3 | 569 | cpp | C++ | src/primality/BailliePSW.cpp | Ghabriel/CryptographyUtils | 37a6e6418025059d908d75b5329fc21339e20b2b | [
"Apache-2.0"
] | null | null | null | src/primality/BailliePSW.cpp | Ghabriel/CryptographyUtils | 37a6e6418025059d908d75b5329fc21339e20b2b | [
"Apache-2.0"
] | null | null | null | src/primality/BailliePSW.cpp | Ghabriel/CryptographyUtils | 37a6e6418025059d908d75b5329fc21339e20b2b | [
"Apache-2.0"
] | null | null | null | #include "primality/BailliePSW.hpp"
#include "primality/MillerRabin.hpp"
#include "primality/LucasTest.hpp"
#include "utils.hpp"
bool crypto::BailliePSW::test(NumberView n) const {
if (n < 3 || n % 2 == 0) {
return (n == 2);
}
if (!MillerRabin().test(n, {2})) {
return false;
}
if ... | 20.321429 | 51 | 0.513181 | Ghabriel |
353521954e3ef3cc76d1bdf1cb922ba9007b400f | 448 | cpp | C++ | Olympiad Solutions/URI/1233.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 36 | 2019-12-27T08:23:08.000Z | 2022-01-24T20:35:47.000Z | Olympiad Solutions/URI/1233.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 10 | 2019-11-13T02:55:18.000Z | 2021-10-13T23:28:09.000Z | Olympiad Solutions/URI/1233.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 53 | 2020-08-15T11:08:40.000Z | 2021-10-09T15:51:38.000Z | // Ivan Carvalho
// Solution to https://www.urionlinejudge.com.br/judge/problems/view/1233
#include <cstdio>
typedef long long ll;
ll phi(ll n){
double result = n;
for(ll i=2;i*i<=n;i++){
if(n % i == 0){
while(n % i == 0) n /= i;
result *= (1.0 - (1.0/(double)i));
}
}
if(n != 1) result *= (1.0 - (1.0/(dou... | 19.478261 | 73 | 0.553571 | Ashwanigupta9125 |
353528f2d91877067e99a980fdb5f84c4c7e7cf6 | 15,111 | cpp | C++ | src/priority/test.cpp | tehwalris/mpi-myers-diff | 9d6dafc9dc16dcf97b4c712dbb8c6dace25eeee5 | [
"MIT"
] | 2 | 2021-11-09T11:30:02.000Z | 2022-01-13T17:47:49.000Z | src/priority/test.cpp | tehwalris/mpi-myers-diff | 9d6dafc9dc16dcf97b4c712dbb8c6dace25eeee5 | [
"MIT"
] | null | null | null | src/priority/test.cpp | tehwalris/mpi-myers-diff | 9d6dafc9dc16dcf97b4c712dbb8c6dace25eeee5 | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_MAIN
#include <iostream>
#include <vector>
#include <optional>
#include <cassert>
#include <algorithm>
#include "../../lib/catch/catch_amalgamated.hpp"
#include "strategy.hpp"
#include "geometry.hpp"
#include "side.hpp"
#include "partition.hpp"
#include "storage.hpp"
template <class S>
class Test... | 36.766423 | 179 | 0.688836 | tehwalris |
35355b7dbccf58aa198b12a3bc551c811ada8dad | 7,859 | cxx | C++ | main/sw/source/filter/xml/xmlbrsh.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/sw/source/filter/xml/xmlbrsh.cxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/sw/source/filter/xml/xmlbrsh.cxx | 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... | 30.819608 | 114 | 0.720957 | Grosskopf |
35356c87bb0ed2c860e6c00e4c8ebf114794017e | 681 | cpp | C++ | test/unit-tests/metafs/mim/metafs_io_request_test.cpp | YongJin-Cho/poseidonos | c07a0240316d4536aa09f22d7977604f3650d752 | [
"BSD-3-Clause"
] | null | null | null | test/unit-tests/metafs/mim/metafs_io_request_test.cpp | YongJin-Cho/poseidonos | c07a0240316d4536aa09f22d7977604f3650d752 | [
"BSD-3-Clause"
] | null | null | null | test/unit-tests/metafs/mim/metafs_io_request_test.cpp | YongJin-Cho/poseidonos | c07a0240316d4536aa09f22d7977604f3650d752 | [
"BSD-3-Clause"
] | null | null | null | #include "src/metafs/mim/metafs_io_request.h"
#include <gtest/gtest.h>
namespace pos
{
TEST(MetaFsIoRequest, MetaFsIoRequest_)
{
}
TEST(MetaFsIoRequest, CopyUserReqMsg_)
{
}
TEST(MetaFsIoRequest, SetValidForIoExecution_)
{
}
TEST(MetaFsIoRequest, IsValid_)
{
}
TEST(MetaFsIoRequest, SetFileIoRange_)
{
}
TEST(Meta... | 11.35 | 50 | 0.76652 | YongJin-Cho |
3535c4868f10aae85a3adf251a8027926752d063 | 2,283 | hpp | C++ | src/third-party/arduino-json-5.6.7/include/ArduinoJson/Polyfills/math.hpp | syahrialr/firebase-arduino | 7144703dc6269bee4e60b60fa612f41aeeb5a75f | [
"Apache-2.0"
] | 10 | 2017-08-18T20:02:40.000Z | 2021-07-17T09:04:47.000Z | src/third-party/arduino-json-5.6.7/include/ArduinoJson/Polyfills/math.hpp | syahrialr/firebase-arduino | 7144703dc6269bee4e60b60fa612f41aeeb5a75f | [
"Apache-2.0"
] | null | null | null | src/third-party/arduino-json-5.6.7/include/ArduinoJson/Polyfills/math.hpp | syahrialr/firebase-arduino | 7144703dc6269bee4e60b60fa612f41aeeb5a75f | [
"Apache-2.0"
] | 7 | 2018-02-07T08:51:34.000Z | 2020-11-30T08:52:05.000Z | // Copyright Benoit Blanchon 2014-2016
// MIT License
//
// Arduino JSON library
// https://github.com/bblanchon/ArduinoJson
// If you like this project, please add a star!
#pragma once
// If Visual Studo <= 2012
#if defined(_MSC_VER) && _MSC_VER <= 1700
#include <float.h>
namespace ArduinoJson {
nam... | 20.383929 | 74 | 0.685064 | syahrialr |
35372a0bdec9b8e7523d726b1242afcd4365dda1 | 1,581 | cpp | C++ | Tools/ProjectCreator/Template/Project/Sources/Proj/GameModules.cpp | LineGames/Leggiero | 8fe13d86454a08ba8a3a8cebe1ce92343090c1be | [
"MIT"
] | 22 | 2021-04-19T03:01:44.000Z | 2021-12-03T11:14:10.000Z | Tools/ProjectCreator/Template/Project/Sources/Proj/GameModules.cpp | LineGames/Leggiero | 8fe13d86454a08ba8a3a8cebe1ce92343090c1be | [
"MIT"
] | null | null | null | Tools/ProjectCreator/Template/Project/Sources/Proj/GameModules.cpp | LineGames/Leggiero | 8fe13d86454a08ba8a3a8cebe1ce92343090c1be | [
"MIT"
] | 3 | 2021-04-20T05:06:40.000Z | 2021-07-31T01:25:53.000Z | ο»Ώ////////////////////////////////////////////////////////////////////////////////
// GameModules.cpp (${{ProgramName}} - ${{ProgramName}})
//
// Definition of Modules used by the Game
////////////////////////////////////////////////////////////////////////////////
// Leggiero.Engine
#include <Engine/Toolbox/ModuledGam... | 32.9375 | 124 | 0.645161 | LineGames |
353fab28e754916226f82460c579ccf94178488a | 3,951 | cpp | C++ | tests/v1/NullsTest.cpp | studiofuga/mSqliteCpp | d557d089bef57fd2ec5ece54d79ca8c34fbc6aca | [
"BSD-3-Clause"
] | 3 | 2018-06-25T20:02:26.000Z | 2021-07-08T09:38:33.000Z | tests/v1/NullsTest.cpp | studiofuga/mSqliteCpp | d557d089bef57fd2ec5ece54d79ca8c34fbc6aca | [
"BSD-3-Clause"
] | 13 | 2018-05-05T09:38:39.000Z | 2021-03-17T11:48:07.000Z | tests/v1/NullsTest.cpp | studiofuga/mSqliteCpp | d557d089bef57fd2ec5ece54d79ca8c34fbc6aca | [
"BSD-3-Clause"
] | null | null | null | /** @file
* @author Federico Fuga <fuga@studiofuga.com>
* @date 15/06/18
*/
#include "msqlitecpp/v1/insertstatement.h"
#include "msqlitecpp/v1/createstatement.h"
#include "msqlitecpp/v1/selectstatement.h"
#include <gtest/gtest.h>
using namespace sqlite;
class V1NullTest : public testing::Test {
protected:
s... | 28.630435 | 111 | 0.65629 | studiofuga |
353ff98c4cbd09efe4fc222d45086320e92cd95c | 47,426 | cpp | C++ | misc/Analyze.cpp | jwarsom/focus_assembler | 190c3ce17c0f805babec5a9cbe053cea6316a112 | [
"MIT"
] | null | null | null | misc/Analyze.cpp | jwarsom/focus_assembler | 190c3ce17c0f805babec5a9cbe053cea6316a112 | [
"MIT"
] | null | null | null | misc/Analyze.cpp | jwarsom/focus_assembler | 190c3ce17c0f805babec5a9cbe053cea6316a112 | [
"MIT"
] | null | null | null | /*
* Analyze.cpp
*
* Created on: Aug. 6th, 2012
* Author: Julia Warnke
*/
#include<iostream>
#include<vector>
#include<string>
#include <dirent.h>
using namespace std;
#include "MappingValues.h"
#include "Dictionary.h"
#include "Fragment_Index.h"
#include "Graph.h"
/* This program analyzes a series of ove... | 25.375067 | 118 | 0.661452 | jwarsom |
35426e2809a774ca228d726415924b82fa4e9e78 | 4,077 | cpp | C++ | SSV/Source/SSV/Client/MainControl/MainControlView.cpp | Shards-CP/SSV | 5dda6d6e000114143f8d06606800e1aef3688079 | [
"libpng-2.0"
] | null | null | null | SSV/Source/SSV/Client/MainControl/MainControlView.cpp | Shards-CP/SSV | 5dda6d6e000114143f8d06606800e1aef3688079 | [
"libpng-2.0"
] | null | null | null | SSV/Source/SSV/Client/MainControl/MainControlView.cpp | Shards-CP/SSV | 5dda6d6e000114143f8d06606800e1aef3688079 | [
"libpng-2.0"
] | null | null | null | #include "SSVPCH.h"
#include "MainControlView.h"
#include "Client/Core/Application.h"
#include "Client/UI/Button.h"
#include "Client/UI/Image.h"
#include "Client/UI/TextLabel.h"
#include "Client/UI/Textbox.h"
#include "Client/Visualizer/SyntaxTreeView.h"
namespace SSV::Client::MainControl
{
MainControlView::Mai... | 37.063636 | 224 | 0.737062 | Shards-CP |
3542fd70c475575056165296e93b60148c2a4d6a | 3,936 | cc | C++ | elang/lir/factory_user.cc | eval1749/elang | 5208b386ba3a3e866a5c0f0271280f79f9aac8c4 | [
"Apache-2.0"
] | 1 | 2018-01-27T22:40:53.000Z | 2018-01-27T22:40:53.000Z | elang/lir/factory_user.cc | eval1749/elang | 5208b386ba3a3e866a5c0f0271280f79f9aac8c4 | [
"Apache-2.0"
] | 1 | 2016-01-29T00:54:49.000Z | 2016-01-29T00:54:49.000Z | elang/lir/factory_user.cc | eval1749/elang | 5208b386ba3a3e866a5c0f0271280f79f9aac8c4 | [
"Apache-2.0"
] | null | null | null | // Copyright 2015 Project Vogue. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <vector>
#include "elang/lir/factory_user.h"
#include "elang/lir/factory.h"
#include "elang/lir/instructions.h"
#include "elang/lir/value.h"
namespac... | 31.741935 | 79 | 0.576728 | eval1749 |
35445e3c436ddfb7e8fb66c888c3c8c23362dc6d | 182 | cpp | C++ | CodeBlocks/C++ Stroustrup/3rd Chapter/hello.cpp | ash1247/DocumentsWindows | 66f65b5170a1ba766cfae08b7104b63ab87331c2 | [
"MIT"
] | null | null | null | CodeBlocks/C++ Stroustrup/3rd Chapter/hello.cpp | ash1247/DocumentsWindows | 66f65b5170a1ba766cfae08b7104b63ab87331c2 | [
"MIT"
] | null | null | null | CodeBlocks/C++ Stroustrup/3rd Chapter/hello.cpp | ash1247/DocumentsWindows | 66f65b5170a1ba766cfae08b7104b63ab87331c2 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
inline void keep_window_open() { char ch; cin >> ch; }
int main(void)
{
cout << "Hello World!\n";
keep_window_open();
return 0;
} | 14 | 54 | 0.653846 | ash1247 |
354ca3e81cfb9ddea25df25b213661ae10882f7e | 16,779 | cpp | C++ | source/toolkit/number/weakfloat.cpp | will-iam/Variant | 5b6732134fd51cf6c2b90b51b7976be0693ba28d | [
"MIT"
] | 8 | 2017-05-04T07:50:02.000Z | 2019-05-17T02:27:20.000Z | source/toolkit/number/weakfloat.cpp | will-iam/Variant | 5b6732134fd51cf6c2b90b51b7976be0693ba28d | [
"MIT"
] | null | null | null | source/toolkit/number/weakfloat.cpp | will-iam/Variant | 5b6732134fd51cf6c2b90b51b7976be0693ba28d | [
"MIT"
] | null | null | null | #include "weakfloat.hpp"
#include <limits>
#include <iomanip>
#ifndef ROUNDING
#define ROUNDING FE_TONEAREST;
#endif
typedef weakfloat<PRECISION_WEAK_FLOAT, ROUNDING> wfloat;
bool unit_test() {
float fa(31.999999);
float fb(32.000003);
float fc = 32.0 + 32.0 * pow(2, (8 - PRECISION_WEAK_FLOAT));
floa... | 45.844262 | 269 | 0.472793 | will-iam |
354e28464b6ce37befab56ace821edc965c45a87 | 361 | cpp | C++ | cpp/TypeInt.cpp | tblink-rpc/tblink-rpc-core | 4daac39138930a726014914952047708162c3451 | [
"Apache-2.0"
] | 1 | 2022-03-30T11:58:00.000Z | 2022-03-30T11:58:00.000Z | cpp/TypeInt.cpp | tblink-rpc/tblink-rpc-core | 4daac39138930a726014914952047708162c3451 | [
"Apache-2.0"
] | null | null | null | cpp/TypeInt.cpp | tblink-rpc/tblink-rpc-core | 4daac39138930a726014914952047708162c3451 | [
"Apache-2.0"
] | null | null | null | /*
* TypeInt.cpp
*
* Created on: Sep 14, 2021
* Author: mballance
*/
#include "TypeInt.h"
namespace tblink_rpc_core {
TypeInt::TypeInt(
bool is_signed,
int32_t width) : /*Type(TypeE::Int),*/
m_is_signed(is_signed), m_width(width) {
}
TypeInt::~TypeInt() {
// TODO Auto-generated destructor s... | 15.041667 | 44 | 0.648199 | tblink-rpc |
354fb539247f27ae5a13485e90ebe8e37767d52a | 4,546 | cpp | C++ | samples/snippets/cpp/VS_Snippets_Remoting/NCLPhysicalAddress/CPP/NCLPhysicalAddress.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 421 | 2018-04-01T01:57:50.000Z | 2022-03-28T15:24:42.000Z | samples/snippets/cpp/VS_Snippets_Remoting/NCLPhysicalAddress/CPP/NCLPhysicalAddress.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 5,797 | 2018-04-02T21:12:23.000Z | 2022-03-31T23:54:38.000Z | samples/snippets/cpp/VS_Snippets_Remoting/NCLPhysicalAddress/CPP/NCLPhysicalAddress.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 1,482 | 2018-03-31T11:26:20.000Z | 2022-03-30T22:36:45.000Z |
#using <system.dll>
using namespace System;
using namespace System::Net::NetworkInformation;
using namespace System::Collections;
// <snippet1>
void DisplayAddressNone()
{
PhysicalAddress^ none = PhysicalAddress::None;
Console::WriteLine( L"None: {0}", none );
array<Byte>^bytes = none->GetAddres... | 32.241135 | 130 | 0.623845 | hamarb123 |
35542c0f34f717a73915aaf00129b643e6e59cdd | 324 | cpp | C++ | src/block/glass.cpp | AlexDiru/minecraft-weekend | 8ddbef27f8501bff306c83ae11fff971cb3bb47a | [
"MIT"
] | null | null | null | src/block/glass.cpp | AlexDiru/minecraft-weekend | 8ddbef27f8501bff306c83ae11fff971cb3bb47a | [
"MIT"
] | null | null | null | src/block/glass.cpp | AlexDiru/minecraft-weekend | 8ddbef27f8501bff306c83ae11fff971cb3bb47a | [
"MIT"
] | null | null | null | #include "block.h"
static ivec2s get_texture_location(World *world, ivec3s pos, enum Direction d) {
return (ivec2s) {{ 1, 1 }};
}
void glass_init() {
Block glass = BLOCK_DEFAULT;
glass.id = GLASS;
glass.transparent = true;
glass.get_texture_location = get_texture_location;
BLOCKS[GLASS] = glas... | 24.923077 | 80 | 0.685185 | AlexDiru |
35554a19275e6f8d133ce9b9c4aaa4cf0a793bbd | 499 | cpp | C++ | 0000/50/53c.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 1 | 2020-07-03T15:55:52.000Z | 2020-07-03T15:55:52.000Z | 0000/50/53c.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | null | null | null | 0000/50/53c.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 3 | 2020-10-01T14:55:28.000Z | 2021-07-11T11:33:58.000Z | #include <iostream>
#include <vector>
void answer(const std::vector<unsigned>& v)
{
const char* separator = "";
for (const unsigned x : v) {
std::cout << separator << x;
separator = " ";
}
std::cout << '\n';
}
void solve(unsigned n)
{
std::vector<unsigned> p(n);
for (size_t i =... | 14.257143 | 43 | 0.476954 | actium |
35569efaa927537d24041fad3667e30b904bc76b | 749 | hpp | C++ | src/Hukan/graphics/Window/Win32/WindowWin32.hpp | eUltrabyte/Hukan | c3d4e2f53964b54ac7e6f319586095bdb8ae107d | [
"MIT"
] | 6 | 2021-11-05T14:47:12.000Z | 2022-02-06T21:27:56.000Z | src/Hukan/graphics/Window/Win32/WindowWin32.hpp | eUltrabyte/Hukan | c3d4e2f53964b54ac7e6f319586095bdb8ae107d | [
"MIT"
] | null | null | null | src/Hukan/graphics/Window/Win32/WindowWin32.hpp | eUltrabyte/Hukan | c3d4e2f53964b54ac7e6f319586095bdb8ae107d | [
"MIT"
] | 2 | 2021-11-05T12:08:58.000Z | 2021-12-09T20:54:29.000Z | #pragma once
#include "../Window.hpp"
#if defined(HUKAN_SYSTEM_WIN32)
#include <Windows.h>
namespace hk {
class HK_API WindowImplWin32 : public Window {
public:
WindowImplWin32(WindowCreateInfo* pWindowCreateInfo = nullptr);
virtual ~WindowImplWin32();
virtual void Create();
... | 22.69697 | 88 | 0.660881 | eUltrabyte |
35584232a74fe32e751c0b31c026cbe9e7b28c87 | 858 | cpp | C++ | CLL113/Assignments/tut1-1/main.cpp | sak1sham/CLL113-Numerical-Methods-Tutsheets | c6589c39bdf31f9d6e86aec97d2ea155a78d89d4 | [
"MIT"
] | 2 | 2020-05-26T02:00:10.000Z | 2020-12-09T17:06:37.000Z | CLL113/Assignments/tut1-1/main.cpp | sak1sham/CLL113-Numerical-Methods-Tutsheets | c6589c39bdf31f9d6e86aec97d2ea155a78d89d4 | [
"MIT"
] | null | null | null | CLL113/Assignments/tut1-1/main.cpp | sak1sham/CLL113-Numerical-Methods-Tutsheets | c6589c39bdf31f9d6e86aec97d2ea155a78d89d4 | [
"MIT"
] | null | null | null | //Saksham Garg 2018CH10927
//Question 1
//Truncation Error
//Maclaurin series
#include <iostream>
#include<math.h>
#include<iomanip>
using namespace std;
long int fac(int n){
long int f = 1;
for(int i = 1; i<=n; i++){
f = f*i;
}
return f;
}
int main()
{ int n = 8;
doub... | 23.189189 | 75 | 0.518648 | sak1sham |
35589f108c3aa4fc3ca6bd4c1f4302315bd01a35 | 3,090 | cpp | C++ | Core/Renderer/OpenGL/src/OGLVAO.cpp | SDurand7/AVLIT-Engine | c7a8e361d91e57fb96acfc1c96a88c3b480bb256 | [
"MIT"
] | null | null | null | Core/Renderer/OpenGL/src/OGLVAO.cpp | SDurand7/AVLIT-Engine | c7a8e361d91e57fb96acfc1c96a88c3b480bb256 | [
"MIT"
] | null | null | null | Core/Renderer/OpenGL/src/OGLVAO.cpp | SDurand7/AVLIT-Engine | c7a8e361d91e57fb96acfc1c96a88c3b480bb256 | [
"MIT"
] | null | null | null | #include "OGLVAO.hpp"
#include <Core/Base/include/Mesh.hpp>
namespace AVLIT {
OGLVAO::OGLVAO(const Mesh &mesh) : m_buffers(2) {
glGenVertexArrays(1, &m_vaoID);
glGenBuffers(2, m_buffers.data());
glBindVertexArray(m_vaoID);
const auto &indices = mesh.indices();
glBindBuffer(GL_ELEMENT_ARRAY_BUFF... | 35.930233 | 114 | 0.668285 | SDurand7 |
355a57dd489e18a5d32107a64bbe1104047f23f2 | 10,460 | cpp | C++ | Snake AI Project/src/manager/UI_Manager.cpp | BenjaminViranin/Snake-AI-Project | 50f9a8195eed9a298480d24598e221657b06abfa | [
"MIT"
] | null | null | null | Snake AI Project/src/manager/UI_Manager.cpp | BenjaminViranin/Snake-AI-Project | 50f9a8195eed9a298480d24598e221657b06abfa | [
"MIT"
] | null | null | null | Snake AI Project/src/manager/UI_Manager.cpp | BenjaminViranin/Snake-AI-Project | 50f9a8195eed9a298480d24598e221657b06abfa | [
"MIT"
] | null | null | null |
#include "manager/UI_Manager.h"
#include <tools/Time.h>
#include <manager/Game_Manager.h>
UI_Manager::UI_Manager(Snake& p_snake, Map_Manager& p_map_manager, Save_Manager& p_save_manager) :
m_windowWidth(0),
m_windowHeight(0),
m_snake(p_snake),
m_map_manager(p_map_manager),
m_save_manager(p_save_manager)
{
}
UI_Mana... | 32.996845 | 130 | 0.729924 | BenjaminViranin |
355d34b88b9be72e1189b50f75f828425488df64 | 1,092 | hpp | C++ | io/include/PEPFormat.hpp | quepas/pep-talk | 73a7e471517aee5595ca63bd007b1aae433fbc39 | [
"MIT"
] | 3 | 2020-12-15T13:41:46.000Z | 2021-09-06T10:26:42.000Z | io/include/PEPFormat.hpp | quepas/pep-talk | 73a7e471517aee5595ca63bd007b1aae433fbc39 | [
"MIT"
] | 6 | 2020-04-07T10:28:03.000Z | 2020-06-19T20:34:15.000Z | io/include/PEPFormat.hpp | quepas/peptalk-core | 7ff825a9d99725305951d8ba9d029e898f2880e1 | [
"MIT"
] | null | null | null | #ifndef PEP_TALK_PEPFORMAT_HPP
#define PEP_TALK_PEPFORMAT_HPP
#include <exception>
#include <string>
#include <optional>
#include <utility>
#include <vector>
namespace peptalk::io {
static const unsigned int PEP_VERSION = 2;
static const std::string PEP_FORMAT_TAG = "pep";
static const std::string PEP_ST... | 23.234043 | 72 | 0.657509 | quepas |
355d8f8a30d8a6192520b7aecde101c806572e00 | 3,769 | cpp | C++ | MAUC/18-brokers-prediction.cpp | SpeedOfMagic/CompetitiveProgramming | 03f9d2925dbf9af29e93f67753397b5fbff7ab27 | [
"MIT"
] | 1 | 2021-05-07T07:38:26.000Z | 2021-05-07T07:38:26.000Z | MAUC/18-brokers-prediction.cpp | SpeedOfMagic/CompetitiveProgramming | 03f9d2925dbf9af29e93f67753397b5fbff7ab27 | [
"MIT"
] | null | null | null | MAUC/18-brokers-prediction.cpp | SpeedOfMagic/CompetitiveProgramming | 03f9d2925dbf9af29e93f67753397b5fbff7ab27 | [
"MIT"
] | null | null | null | /** MIT License Copyright (c) 2018 Vasilyev Daniil **/
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace std;
#pragma GCC optimize("Ofast")
template<typename T> using v = vector<T>;
template<typename T, typename U> using hmap = __gnu_pbds::gp_hash_table<T, U>;
//#define int long ... | 24.633987 | 133 | 0.488458 | SpeedOfMagic |
355f734e91f0e27f3f957d1f7d09718376e186aa | 934 | cpp | C++ | Homework3/Q25/main.cpp | DeepAQ/Cpp-Homework | 1ad64deb7b25ee35d01c3c9f8a873a54dfff2c21 | [
"MIT"
] | 1 | 2017-10-08T18:16:12.000Z | 2017-10-08T18:16:12.000Z | Homework3/Q25/main.cpp | DeepAQ/Cpp-Homework | 1ad64deb7b25ee35d01c3c9f8a873a54dfff2c21 | [
"MIT"
] | null | null | null | Homework3/Q25/main.cpp | DeepAQ/Cpp-Homework | 1ad64deb7b25ee35d01c3c9f8a873a54dfff2c21 | [
"MIT"
] | null | null | null | /*
* main.cpp
*
* Created on: 2016εΉ΄10ζ26ζ₯
* Author: adn55
*/
#include <iostream>
#include <vector>
using namespace std;
int main()
{
int n, a;
cin >> n;
vector<int> v;
for (int i = 0; i < n; i++) {
cin >> a;
v.insert(v.end(), a);
}
bool first = true;
for (unsign... | 21.72093 | 63 | 0.33833 | DeepAQ |
355ffdf1cf9592967332dd5dcdc7b3e6a95c5c74 | 822 | cpp | C++ | Dynamic Programming/0-1 Knapsack/(3)EqualSumPartition.cpp | jaydulera/data-structure-and-algorithms | abc2d67871add6f314888a72215ff3a2da2dc6e1 | [
"Apache-2.0"
] | 53 | 2020-09-26T19:44:33.000Z | 2021-09-30T20:38:52.000Z | Dynamic Programming/0-1 Knapsack/(3)EqualSumPartition.cpp | jaydulera/data-structure-and-algorithms | abc2d67871add6f314888a72215ff3a2da2dc6e1 | [
"Apache-2.0"
] | 197 | 2020-08-25T18:13:56.000Z | 2021-06-19T07:26:19.000Z | Dynamic Programming/0-1 Knapsack/(3)EqualSumPartition.cpp | jaydulera/data-structure-and-algorithms | abc2d67871add6f314888a72215ff3a2da2dc6e1 | [
"Apache-2.0"
] | 204 | 2020-08-24T09:21:02.000Z | 2022-02-13T06:13:42.000Z | #include<bits/stdc++.h>
using namespace std;
bool t[100][100];
bool SubsetSum(int *wt, int Sum, int n) {
for (int i = 0; i <= Sum; i++) t[0][i] = false;
for (int i = 0; i <= n; i++) t[i][0] = true; //empty set
for (int i = 1; i <= n; i++) {
for (int j = 1; j <= Sum; j++) {
if (wt[i - 1] <= j) {
t[i][j... | 16.77551 | 57 | 0.484185 | jaydulera |
356419536dbe051c3aee3493bcd6674340e78811 | 1,934 | cpp | C++ | src/swagger/v1/model/MemoryInfoResult.cpp | DerangedMonkeyNinja/openperf | cde4dc6bf3687f0663c11e9e856e26a0dc2b1d16 | [
"Apache-2.0"
] | 20 | 2019-12-04T01:28:52.000Z | 2022-03-17T14:09:34.000Z | src/swagger/v1/model/MemoryInfoResult.cpp | DerangedMonkeyNinja/openperf | cde4dc6bf3687f0663c11e9e856e26a0dc2b1d16 | [
"Apache-2.0"
] | 115 | 2020-02-04T21:29:54.000Z | 2022-02-17T13:33:51.000Z | src/swagger/v1/model/MemoryInfoResult.cpp | DerangedMonkeyNinja/openperf | cde4dc6bf3687f0663c11e9e856e26a0dc2b1d16 | [
"Apache-2.0"
] | 16 | 2019-12-03T16:41:18.000Z | 2021-11-06T04:44:11.000Z | /**
* OpenPerf API
* REST API interface for OpenPerf
*
* OpenAPI spec version: 1
* Contact: support@spirent.com
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
#include "MemoryInfoResult.h"
namespa... | 17.907407 | 75 | 0.694933 | DerangedMonkeyNinja |
8316e45167a6f61630e91a88a01c39049abfe830 | 14,288 | cc | C++ | kernel/runtime/cxx/runtime/cxxsupport.cc | ManyThreads/mythos | 723a4b11e454a0c28e096755140c5e0eecf6a211 | [
"MIT"
] | 12 | 2016-10-06T14:02:17.000Z | 2021-09-12T06:14:30.000Z | kernel/runtime/cxx/runtime/cxxsupport.cc | ManyThreads/mythos | 723a4b11e454a0c28e096755140c5e0eecf6a211 | [
"MIT"
] | 110 | 2017-06-22T20:10:17.000Z | 2022-01-18T12:58:40.000Z | kernel/runtime/cxx/runtime/cxxsupport.cc | ManyThreads/mythos | 723a4b11e454a0c28e096755140c5e0eecf6a211 | [
"MIT"
] | 6 | 2016-12-09T08:30:08.000Z | 2021-12-10T19:05:04.000Z | /* -*- mode:C++; -*- */
/* MIT License -- MyThOS: The Many-Threads Operating System
*
* 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 ... | 34.595642 | 133 | 0.650756 | ManyThreads |
8317d2c3a6ced5173b14c4ac268fc250a5faeb3f | 13,431 | cpp | C++ | libot/http/httprequest.cpp | goossens/ObjectTalk | ca1d4f558b5ad2459b376102744d52c6283ec108 | [
"MIT"
] | 6 | 2021-11-12T15:03:53.000Z | 2022-01-28T18:30:33.000Z | libot/http/httprequest.cpp | goossens/ObjectTalk | ca1d4f558b5ad2459b376102744d52c6283ec108 | [
"MIT"
] | null | null | null | libot/http/httprequest.cpp | goossens/ObjectTalk | ca1d4f558b5ad2459b376102744d52c6283ec108 | [
"MIT"
] | null | null | null | // ObjectTalk Scripting Language
// Copyright (c) 1993-2022 Johan A. Goossens. All rights reserved.
//
// This work is licensed under the terms of the MIT license.
// For a copy, see <https://opensource.org/licenses/MIT>.
//
// Include files
//
#include <filesystem>
#include "ot/exception.h"
#include "ot/httpreques... | 22.803056 | 107 | 0.680515 | goossens |
83182aa73540b436a9a60277b2c7787ab4551ab1 | 6,480 | cpp | C++ | src/Pegasus/Common/CIMQualifier.cpp | natronkeltner/openpegasus | e64f383c1ed37826041fc63e83b4e65fc1c679ae | [
"ICU",
"Unlicense",
"OpenSSL",
"MIT"
] | 1 | 2021-11-12T21:28:50.000Z | 2021-11-12T21:28:50.000Z | src/Pegasus/Common/CIMQualifier.cpp | natronkeltner/openpegasus | e64f383c1ed37826041fc63e83b4e65fc1c679ae | [
"ICU",
"Unlicense",
"OpenSSL",
"MIT"
] | 39 | 2021-01-18T19:28:41.000Z | 2022-03-27T20:55:36.000Z | src/Pegasus/Common/CIMQualifier.cpp | natronkeltner/openpegasus | e64f383c1ed37826041fc63e83b4e65fc1c679ae | [
"ICU",
"Unlicense",
"OpenSSL",
"MIT"
] | 4 | 2021-07-09T12:52:33.000Z | 2021-12-21T15:05:59.000Z | //%LICENSE////////////////////////////////////////////////////////////////
//
// Licensed to The Open Group (TOG) under one or more contributor license
// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with
// this work for additional information regarding copyright ownership.
// Each contributor lice... | 21.672241 | 80 | 0.620679 | natronkeltner |
83198cf8f54f23c73ee6660554d8aef27839b789 | 5,037 | cpp | C++ | Woopsi/libwoopsi/src/colourpicker.cpp | ant512/Woopsi | e7a568dc5e16ae772a5cad850527861ac2c2e703 | [
"BSD-3-Clause"
] | 14 | 2016-01-25T01:01:25.000Z | 2021-07-02T22:49:27.000Z | Woopsi/libwoopsi/src/colourpicker.cpp | ant512/Woopsi | e7a568dc5e16ae772a5cad850527861ac2c2e703 | [
"BSD-3-Clause"
] | 1 | 2021-07-29T23:14:59.000Z | 2021-07-29T23:14:59.000Z | Woopsi/libwoopsi/src/colourpicker.cpp | ant512/Woopsi | e7a568dc5e16ae772a5cad850527861ac2c2e703 | [
"BSD-3-Clause"
] | 4 | 2016-01-25T01:01:45.000Z | 2021-09-04T23:39:10.000Z | /*
* Copyright Mark Adamson 2010
*/
#include <nds.h>
#include "colourpicker.h"
#include "button.h"
#include "sliderhorizontal.h"
#include "woopsifuncs.h"
using namespace WoopsiUI;
ColourPicker::ColourPicker(s16 x, s16 y, u16 width, u16 height, const WoopsiString& title, u16 colour, GadgetStyle* style)... | 28.948276 | 187 | 0.716101 | ant512 |
83209d49227af0b46467ca11e3c255cd492b7fd7 | 6,996 | cpp | C++ | Server/Shared/Net/src/SocketBuffer.cpp | wayfinder/Wayfinder-Server | a688546589f246ee12a8a167a568a9c4c4ef8151 | [
"BSD-3-Clause"
] | 4 | 2015-08-17T20:12:22.000Z | 2020-05-30T19:53:26.000Z | Server/Shared/Net/src/SocketBuffer.cpp | wayfinder/Wayfinder-Server | a688546589f246ee12a8a167a568a9c4c4ef8151 | [
"BSD-3-Clause"
] | null | null | null | Server/Shared/Net/src/SocketBuffer.cpp | wayfinder/Wayfinder-Server | a688546589f246ee12a8a167a568a9c4c4ef8151 | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (c) 1999 - 2010, Vodafone Group Services Ltd
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list of condit... | 36.061856 | 755 | 0.572041 | wayfinder |
832535cba00d0f1176f861070e58b4b58c4bb575 | 1,970 | cpp | C++ | code/Die.cpp | joshuaherrera/CLI-team-fighting-game | a0393ab3e9bf6aec1a7f85863ba18f092a849d43 | [
"MIT"
] | null | null | null | code/Die.cpp | joshuaherrera/CLI-team-fighting-game | a0393ab3e9bf6aec1a7f85863ba18f092a849d43 | [
"MIT"
] | null | null | null | code/Die.cpp | joshuaherrera/CLI-team-fighting-game | a0393ab3e9bf6aec1a7f85863ba18f092a849d43 | [
"MIT"
] | null | null | null | /*********************************************************************
** Program name:Die.cpp
** Author:Joshua Herrera
** Date:04/23/2017
** Description: The Die.cpp file contains the functions used in the Die
** class that is used to make our die for the game.
********************************************************... | 30.78125 | 71 | 0.428426 | joshuaherrera |
8326a5efbfe70c407d87a01b4d3e9af77e3e7257 | 3,247 | cpp | C++ | api/c++/test/http_request_tests.cpp | AudiovisualMetadataPlatform/mico | 7a4faf553859119faf1abfa15d41a7c88835136f | [
"Apache-2.0"
] | null | null | null | api/c++/test/http_request_tests.cpp | AudiovisualMetadataPlatform/mico | 7a4faf553859119faf1abfa15d41a7c88835136f | [
"Apache-2.0"
] | null | null | null | api/c++/test/http_request_tests.cpp | AudiovisualMetadataPlatform/mico | 7a4faf553859119faf1abfa15d41a7c88835136f | [
"Apache-2.0"
] | null | null | null | /**
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distribu... | 29.252252 | 75 | 0.704034 | AudiovisualMetadataPlatform |
8327b1c09c2b89b0f2755a9b33e932a05b077f5f | 5,305 | cpp | C++ | texturing-test/main.cpp | Phyllostachys/graphics-demos | bf1f1f10c95e0c9f752117ad23295ce06acdb17c | [
"MIT"
] | 1 | 2015-09-05T11:15:07.000Z | 2015-09-05T11:15:07.000Z | texturing-test/main.cpp | Phyllostachys/graphics-demos | bf1f1f10c95e0c9f752117ad23295ce06acdb17c | [
"MIT"
] | null | null | null | texturing-test/main.cpp | Phyllostachys/graphics-demos | bf1f1f10c95e0c9f752117ad23295ce06acdb17c | [
"MIT"
] | null | null | null | #include <cstdint>
#include <ctime>
#include <iostream>
#include <random>
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include "lodepng.h"
#include "shader.h"
void resize_callback(GLFWwindow *window, int width, int height);
void key_callback(GLFWwindow* window, int key, int scancode, int action, int mode);
int m... | 29.803371 | 137 | 0.626956 | Phyllostachys |
832d8299aba9fe092206a40dc4eb7ebb9feae218 | 4,152 | hpp | C++ | Support/Modules/Model3D/Model3D/IMeshBody.hpp | graphisoft-python/TextEngine | 20c2ff53877b20fdfe2cd51ce7abdab1ff676a70 | [
"Apache-2.0"
] | 3 | 2019-07-15T10:54:54.000Z | 2020-01-25T08:24:51.000Z | Support/Modules/Model3D/Model3D/IMeshBody.hpp | graphisoft-python/GSRoot | 008fac2c6bf601ca96e7096705e25b10ba4d3e75 | [
"Apache-2.0"
] | null | null | null | Support/Modules/Model3D/Model3D/IMeshBody.hpp | graphisoft-python/GSRoot | 008fac2c6bf601ca96e7096705e25b10ba4d3e75 | [
"Apache-2.0"
] | 1 | 2020-09-26T03:17:22.000Z | 2020-09-26T03:17:22.000Z | // *********************************************************************************************************************
// Description: MeshBody Interface
//
// Module: Modeler
// Namespace: Modeler
// Contact person: RZ
//
// SG compatible
// ***********************************************************************... | 40.31068 | 176 | 0.594894 | graphisoft-python |
832d97f77ba0c9f2d66debc0962fb2b22a1a28c0 | 2,787 | cpp | C++ | mpas_perm/src/perm.cpp | trainsn/GNN-Surrogate | 9e953884d888edb13d0981639206f69398ae0a8c | [
"MIT"
] | 3 | 2022-02-21T12:49:40.000Z | 2022-03-19T07:11:22.000Z | mpas_perm/src/perm.cpp | trainsn/GNN-Surrogate | 9e953884d888edb13d0981639206f69398ae0a8c | [
"MIT"
] | null | null | null | mpas_perm/src/perm.cpp | trainsn/GNN-Surrogate | 9e953884d888edb13d0981639206f69398ae0a8c | [
"MIT"
] | null | null | null | #include <stdlib.h>
#include <iostream>
#include <fstream>
#include <iterator>
#include <vector>
#include <map>
#include <assert.h>
#include "cnpy.h"
#include "cell.h"
#include "mesh.h"
using namespace std;
int main(int argc, char **argv) {
char input_root[1024];
sprintf(input_root, argv[1]);
... | 29.967742 | 110 | 0.630068 | trainsn |
832edeb22f05b20aab77ebcc1c91f794b98963f3 | 4,828 | cpp | C++ | OmnibotGame/src/Player.cpp | neuroprod/omniBotProto | 5abf1b5a9846ba093325af7a86ee2d7b8cbe12e6 | [
"MIT"
] | 46 | 2017-03-03T20:34:23.000Z | 2021-11-07T02:37:44.000Z | OmnibotGame/src/Player.cpp | neuroprod/omniBotProto | 5abf1b5a9846ba093325af7a86ee2d7b8cbe12e6 | [
"MIT"
] | null | null | null | OmnibotGame/src/Player.cpp | neuroprod/omniBotProto | 5abf1b5a9846ba093325af7a86ee2d7b8cbe12e6 | [
"MIT"
] | 18 | 2017-04-27T09:40:47.000Z | 2021-12-06T05:38:48.000Z | #include "Player.h"
#include "cinder/gl/gl.h"
#include "GSettings.h"
#include "glm\gtc\random.hpp"
using namespace std;
using namespace ci::app;
using namespace ci;
Player::Player()
{
size = GSettings::playerRad;
}
PlayerRef Player::create()
{
return make_shared<Player>();
}
void Player::update()
{
if (glm::leng... | 26.674033 | 151 | 0.725559 | neuroprod |
83357b5b536588ffb21323b374ac97159a524a52 | 737 | cpp | C++ | codeforces/A-Set/0 - 100/58 - Chat Room.cpp | lauslim12/competitive-programming | 6006d36ff5bf377f32437aa331cc4e9d47501028 | [
"MIT"
] | 1 | 2020-10-02T14:37:37.000Z | 2020-10-02T14:37:37.000Z | codeforces/A-Set/0 - 100/58 - Chat Room.cpp | lauslim12/competitive-programming | 6006d36ff5bf377f32437aa331cc4e9d47501028 | [
"MIT"
] | null | null | null | codeforces/A-Set/0 - 100/58 - Chat Room.cpp | lauslim12/competitive-programming | 6006d36ff5bf377f32437aa331cc4e9d47501028 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
char vasyaWord[101];
int wordCounter = 0;
ios::sync_with_stdio(false);
cin.tie(0);
cin >> vasyaWord;
for (int i = 0; vasyaWord[i] != '\0'; i++) {
if (vasyaWord[i] == 'h' && wordCounter == 0)
wordCounter++;
else if (vasyaWord[i] == 'e' &&... | 19.918919 | 55 | 0.519674 | lauslim12 |
833a554754b029de70629847deb2d20cb944de8e | 1,887 | cpp | C++ | src/GameUpgradeScreenState.cpp | Xpost2000/Killbot | 8cc287758e0c26d0350343f383f5adfe0acac0e9 | [
"MIT"
] | null | null | null | src/GameUpgradeScreenState.cpp | Xpost2000/Killbot | 8cc287758e0c26d0350343f383f5adfe0acac0e9 | [
"MIT"
] | null | null | null | src/GameUpgradeScreenState.cpp | Xpost2000/Killbot | 8cc287758e0c26d0350343f383f5adfe0acac0e9 | [
"MIT"
] | null | null | null | #include "GameUpgradeScreenState.h"
#include "StateMachine.h"
#include "GameState.h"
#include "constants.h"
#include "SoundManager.h"
#include "CefManager.h"
GameUpgradeScreenState::GameUpgradeScreenState(InputManager* input) : _input(input){
}
GameUpgradeScreenState::~GameUpgradeScreenState(){
}
void G... | 29.952381 | 202 | 0.703763 | Xpost2000 |
833b4425f4160bcdf1e3594c59cafbc1c0cda8e7 | 922 | cpp | C++ | stat_lib/bernulli_stat_model.cpp | ARGO-group/Argo_CUDA | 7a15252906860f4a725e37b6add211f625b91869 | [
"MIT"
] | null | null | null | stat_lib/bernulli_stat_model.cpp | ARGO-group/Argo_CUDA | 7a15252906860f4a725e37b6add211f625b91869 | [
"MIT"
] | null | null | null | stat_lib/bernulli_stat_model.cpp | ARGO-group/Argo_CUDA | 7a15252906860f4a725e37b6add211f625b91869 | [
"MIT"
] | 1 | 2021-07-10T09:59:52.000Z | 2021-07-10T09:59:52.000Z | #include "bernulli_stat_model.h"
#include "probability.h"
using namespace std;
BernulliStatModel::BernulliStatModel(const std::vector<std::string> &sequences,
bool complementary,
bool use_binom_instead_of_chi2,
... | 35.461538 | 90 | 0.711497 | ARGO-group |
833b8fe360529e6f80e4948442bbbd020dad17a1 | 4,824 | cpp | C++ | powerplant_vistool-private/WorldWindJava-master/lib-external/webview/windows/WebViewProtocol.cpp | chunyuyuan/WorldWind_river_discharge | 5ee8be4b57ec19d5879faafe5e19aa60c1bb33f9 | [
"MIT"
] | null | null | null | powerplant_vistool-private/WorldWindJava-master/lib-external/webview/windows/WebViewProtocol.cpp | chunyuyuan/WorldWind_river_discharge | 5ee8be4b57ec19d5879faafe5e19aa60c1bb33f9 | [
"MIT"
] | null | null | null | powerplant_vistool-private/WorldWindJava-master/lib-external/webview/windows/WebViewProtocol.cpp | chunyuyuan/WorldWind_river_discharge | 5ee8be4b57ec19d5879faafe5e19aa60c1bb33f9 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2012 United States Government as represented by the Administrator of the
* National Aeronautics and Space Administration.
* All Rights Reserved.
*/
/**
* Version: $Id: WebViewProtocol.cpp 1171 2013-02-11 21:45:02Z dcollins $
*/
#include "stdafx.h"
#include "WebViewProtocol.h"
#include "WebVie... | 29.060241 | 125 | 0.612148 | chunyuyuan |
833c9a22621b944420d35d1b05e337d7b50120d2 | 375 | cpp | C++ | qfb-messenger/src/q_network_reply_helper.cpp | NickCis/harbour-facebook-messenger | b2c2305fdcec27321893c3230bbd9e724773bd7d | [
"MIT"
] | 1 | 2015-05-05T22:45:11.000Z | 2015-05-05T22:45:11.000Z | qfb-messenger/src/q_network_reply_helper.cpp | NickCis/harbour-facebook-messenger | b2c2305fdcec27321893c3230bbd9e724773bd7d | [
"MIT"
] | null | null | null | qfb-messenger/src/q_network_reply_helper.cpp | NickCis/harbour-facebook-messenger | b2c2305fdcec27321893c3230bbd9e724773bd7d | [
"MIT"
] | null | null | null | #include "q_network_reply_helper.h"
QNetworkReplyHelper::QNetworkReplyHelper(QNetworkReply* r) :
QObject(NULL),
reply(r)
{
}
QNetworkReplyHelper::~QNetworkReplyHelper(){
this->reply->close();
this->reply->deleteLater();
}
QNetworkReply* QNetworkReplyHelper::operator->(){
return this->reply;
}
QNetworkReply* QN... | 17.857143 | 60 | 0.749333 | NickCis |
833cc5079b56fcceb5fa6dea00924a7c7bccec82 | 30,207 | cxx | C++ | inetsrv/query/fsci/indexing/opendoc.cxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | inetsrv/query/fsci/indexing/opendoc.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | inetsrv/query/fsci/indexing/opendoc.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 2000.
//
// File: opendoc.cxx
//
// Contents: Code that encapsulates an opened file on a Nt volume
//
//---------------------------------------------... | 29.527859 | 133 | 0.472539 | npocmaka |
8340d59eb889ba9202c9c40d8e482cb6cd124fb6 | 1,031 | cpp | C++ | runtime/src/events/ServerScriptEvent.cpp | Timo972/altv-go-module | 9762938c019d47b52eceba6761bb6f900ea4f2e8 | [
"MIT"
] | null | null | null | runtime/src/events/ServerScriptEvent.cpp | Timo972/altv-go-module | 9762938c019d47b52eceba6761bb6f900ea4f2e8 | [
"MIT"
] | null | null | null | runtime/src/events/ServerScriptEvent.cpp | Timo972/altv-go-module | 9762938c019d47b52eceba6761bb6f900ea4f2e8 | [
"MIT"
] | null | null | null | #include "ServerScriptEvent.h"
Go::ServerScriptEvent::ServerScriptEvent(ModuleLibrary *module) : IEvent(module) {}
void Go::ServerScriptEvent::Call(const alt::CEvent *ev) {
static auto call = GET_FUNC(Library, "altServerScriptEvent", bool (*)(const char *name,
void *args, unsigned long long size));
... | 25.775 | 91 | 0.632396 | Timo972 |
83458498dc92b20e726f5434eddb46802378aec1 | 1,208 | cpp | C++ | src/emitter.cpp | ryonagana/shmup2 | e873402dc82dc148340adc2562dd8eb2353f3915 | [
"MIT"
] | 2 | 2019-03-26T15:45:22.000Z | 2019-03-27T13:18:03.000Z | src/emitter.cpp | ryonagana/shmup2 | e873402dc82dc148340adc2562dd8eb2353f3915 | [
"MIT"
] | null | null | null | src/emitter.cpp | ryonagana/shmup2 | e873402dc82dc148340adc2562dd8eb2353f3915 | [
"MIT"
] | 1 | 2019-03-31T02:52:06.000Z | 2019-03-31T02:52:06.000Z | #include <iostream>
#include <cmath>
#include "emitter.h"
#include "shared.h"
CParticleEmitter::CParticleEmitter(float x, float y, int amount){
this->particles = new CParticle[amount + 1];
for(int i = 0; i < amount + 1; i++){
this->particles[i].alive = false;
this->particles[i].x = x;
... | 21.963636 | 83 | 0.540563 | ryonagana |
834d32549399cce659c9ff2c48eea7e303c42d72 | 1,633 | cpp | C++ | Source/Sphere.cpp | PandarinDev/Photon | def2aae59f51c53ea3e75b6daa9572026c338f72 | [
"MIT"
] | null | null | null | Source/Sphere.cpp | PandarinDev/Photon | def2aae59f51c53ea3e75b6daa9572026c338f72 | [
"MIT"
] | null | null | null | Source/Sphere.cpp | PandarinDev/Photon | def2aae59f51c53ea3e75b6daa9572026c338f72 | [
"MIT"
] | null | null | null | #include "Sphere.h"
#include <cmath>
namespace photon {
Sphere::Sphere(const Vec3f& position, double radius, const Material& material)
: Geometry(material), position(position), radius(radius) {}
std::optional<Intersection> Sphere::intersect(const Ray& ray) const {
const auto to_center = ray.... | 37.113636 | 82 | 0.614207 | PandarinDev |
8352a556b860929f4dac4dff2ccfa0defbdfe180 | 1,383 | cpp | C++ | anspwm/test/dspmod_test.cpp | mortenjc/fpgacode | 28849d243f76fad71e0df720e2afe142fcc06ef9 | [
"BSD-2-Clause"
] | null | null | null | anspwm/test/dspmod_test.cpp | mortenjc/fpgacode | 28849d243f76fad71e0df720e2afe142fcc06ef9 | [
"BSD-2-Clause"
] | null | null | null | anspwm/test/dspmod_test.cpp | mortenjc/fpgacode | 28849d243f76fad71e0df720e2afe142fcc06ef9 | [
"BSD-2-Clause"
] | null | null | null | // Copyright (C) 2021 Morten Jagd Christensen, see LICENSE file
//===----------------------------------------------------------------------===//
///
/// \file
/// \brief test harness for dspmod
//===----------------------------------------------------------------------===//
#include <dspmod.h>
#include <verilated.h>
#... | 17.961039 | 80 | 0.509038 | mortenjc |
835719e800b0cfbd9460bcdc2bb6e437e81e829a | 13,139 | cpp | C++ | tests/parser_tests.cpp | Spaghetti-Software/cxx_plugins | e679ef19079d4b9e3fcf26d1422f690b1cf1ebcb | [
"MIT"
] | null | null | null | tests/parser_tests.cpp | Spaghetti-Software/cxx_plugins | e679ef19079d4b9e3fcf26d1422f690b1cf1ebcb | [
"MIT"
] | null | null | null | tests/parser_tests.cpp | Spaghetti-Software/cxx_plugins | e679ef19079d4b9e3fcf26d1422f690b1cf1ebcb | [
"MIT"
] | null | null | null | ///*************************************************************************************************
// * Copyright (C) 2020 by Andrey Ponomarev and Timur Kazhimuratov
// * This file is part of CXX Plugins project.
// * License is available at
// * https://github.com/Spaghetti-Software/cxx_plugins/blob/master/LICENSE
/... | 30.915294 | 101 | 0.605449 | Spaghetti-Software |
835e44623acb7ea39bf429dbcb5281ad061a7112 | 5,506 | cpp | C++ | main.cpp | Franklin-garcia/Lab_examen1__p3_Franklin_Garcia | 01d6fba14eec4588647c8cec9f30893ae6292840 | [
"MIT"
] | null | null | null | main.cpp | Franklin-garcia/Lab_examen1__p3_Franklin_Garcia | 01d6fba14eec4588647c8cec9f30893ae6292840 | [
"MIT"
] | null | null | null | main.cpp | Franklin-garcia/Lab_examen1__p3_Franklin_Garcia | 01d6fba14eec4588647c8cec9f30893ae6292840 | [
"MIT"
] | null | null | null | #include <iostream>
#include "Pieza.h"
#include <string>
#include <stdlib.h>
using namespace std;
string**crearTablero();
string**llenarMatriz(string**);
void imp_tablero(string**);
void eliminarTablero(string**);
int mov_marine(int,int,int,int);
int gano_player1(string**);
int main(){
string**temp=NULL;
temp=cr... | 26.728155 | 213 | 0.565928 | Franklin-garcia |
836000182fc1a7876c2684b660d4a4b575e76123 | 10,522 | cpp | C++ | kdiff3/src-QT4/kdiff3_part.cpp | michaelxzhang/kdiff3 | 471a343af7e2ec3a5f9cd31828b290309959f508 | [
"Intel"
] | 3 | 2021-02-25T14:12:14.000Z | 2021-10-29T22:44:26.000Z | kdiff3/src-QT4/kdiff3_part.cpp | michaelxzhang/kdiff3 | 471a343af7e2ec3a5f9cd31828b290309959f508 | [
"Intel"
] | 3 | 2020-05-16T05:28:21.000Z | 2020-05-26T20:40:25.000Z | kdiff3/src-QT4/kdiff3_part.cpp | michaelxzhang/kdiff3 | 471a343af7e2ec3a5f9cd31828b290309959f508 | [
"Intel"
] | null | null | null | /***************************************************************************
* Copyright (C) 2003-2007 Joachim Eibl <joachim.eibl at gmx.de> *
* *
* This program is free software; you can redistribute it and/or modify *
* it unde... | 32.88125 | 127 | 0.587626 | michaelxzhang |
8361029212864e137d72e5aaa651ed8c8b2dcea3 | 292 | cpp | C++ | algorithms/divizori.cpp | MateiSR/CPP | d9c0d2bd1ab48a44e3c2537b513cee0c72dc371b | [
"Unlicense"
] | null | null | null | algorithms/divizori.cpp | MateiSR/CPP | d9c0d2bd1ab48a44e3c2537b513cee0c72dc371b | [
"Unlicense"
] | null | null | null | algorithms/divizori.cpp | MateiSR/CPP | d9c0d2bd1ab48a44e3c2537b513cee0c72dc371b | [
"Unlicense"
] | null | null | null | #include <iostream>
int main()
{
int n;
std :: cin >> n;
for(int d =1 ; d * d <= n ; d ++ )
if(n % d == 0)
{
std :: cout << d << " ";
if(d * d < n) // dacΔ d != sqrt(n)
std :: cout << n / d << " ";
}
return 0;
}
| 19.466667 | 46 | 0.304795 | MateiSR |
836253ea122748c9852ff1e946f6a37ca214a3fb | 17,059 | cpp | C++ | src/core/graphics/t2kGCore.cpp | DamakoSoft/t2k | df50be732675cd968aba04296724d5d0acba65cf | [
"MIT"
] | 3 | 2022-01-09T09:02:46.000Z | 2022-01-11T01:33:11.000Z | src/core/graphics/t2kGCore.cpp | DamakoSoft/t2k | df50be732675cd968aba04296724d5d0acba65cf | [
"MIT"
] | null | null | null | src/core/graphics/t2kGCore.cpp | DamakoSoft/t2k | df50be732675cd968aba04296724d5d0acba65cf | [
"MIT"
] | null | null | null | // t2k - Tatsuko Driver is a software library designed to drive game development.
// Copyright (C) Damako Soft since 2020, all rights reserved.
// current version is ver. 0.1.
//
// Damako Soft staff:
// Da: Daizo Sasaki
// Ma: yoshiMasa Sugawara
// Ko: Koji Saito
//
// If you are interested in t2k, please follow ou... | 32.932432 | 103 | 0.69582 | DamakoSoft |
836832beaa041e01e1e4317032e1534e1ebfc469 | 1,912 | hpp | C++ | include/pichi/vo/credential.hpp | imuzi/pichi | 5ad1372bff4c3bffd201ccfb41df6c839c83c506 | [
"BSD-3-Clause"
] | 164 | 2018-09-28T09:41:05.000Z | 2021-11-13T09:17:07.000Z | include/pichi/vo/credential.hpp | imuzi/pichi | 5ad1372bff4c3bffd201ccfb41df6c839c83c506 | [
"BSD-3-Clause"
] | 5 | 2018-12-21T13:40:02.000Z | 2021-07-24T04:23:44.000Z | include/pichi/vo/credential.hpp | imuzi/pichi | 5ad1372bff4c3bffd201ccfb41df6c839c83c506 | [
"BSD-3-Clause"
] | 14 | 2018-12-18T09:35:42.000Z | 2021-07-06T12:16:34.000Z | #ifndef PICHI_VO_CREDENTIAL_HPP
#define PICHI_VO_CREDENTIAL_HPP
#include <pichi/common/enumerations.hpp>
#include <rapidjson/document.h>
#include <string>
#include <unordered_map>
#include <unordered_set>
namespace pichi::vo {
struct UpIngressCredential {
std::unordered_map<std::string, std::string> credential_;
}... | 33.54386 | 100 | 0.801778 | imuzi |
836a640bda4b0bf045534138f22a470b38f880d3 | 1,145 | hpp | C++ | include/text_screen/entity.hpp | fishjump/osdevc_textscreen | 70f2996642c63cbc350869bdcc377057729aa687 | [
"MIT"
] | null | null | null | include/text_screen/entity.hpp | fishjump/osdevc_textscreen | 70f2996642c63cbc350869bdcc377057729aa687 | [
"MIT"
] | null | null | null | include/text_screen/entity.hpp | fishjump/osdevc_textscreen | 70f2996642c63cbc350869bdcc377057729aa687 | [
"MIT"
] | null | null | null | #pragma once
#include <color/color.hpp>
#include <font/font.hpp>
#include <screen/screen.hpp>
#include <std/stdcxx.hpp>
namespace system::io::entity {
class TextScreen : public Screen {
public:
TextScreen(system::media::entity::Font defaultFont,
system::media::entity::Color defaultColor);
st... | 27.261905 | 68 | 0.623581 | fishjump |
836bd3386f6a83d62e7e405dad24e932daecef13 | 1,780 | cpp | C++ | utility.cpp | sotaoverride/witherspoon-pfault-analysis-1 | 5b2964fa8e57c46d60c0c0d95d5668c9f9a5ce23 | [
"Apache-2.0"
] | 14 | 2021-11-04T07:47:37.000Z | 2022-03-21T10:10:30.000Z | utility.cpp | sotaoverride/witherspoon-pfault-analysis-1 | 5b2964fa8e57c46d60c0c0d95d5668c9f9a5ce23 | [
"Apache-2.0"
] | 4 | 2019-10-08T10:08:51.000Z | 2022-02-18T07:21:23.000Z | utility.cpp | sotaoverride/witherspoon-pfault-analysis-1 | 5b2964fa8e57c46d60c0c0d95d5668c9f9a5ce23 | [
"Apache-2.0"
] | 6 | 2017-08-16T17:34:20.000Z | 2019-09-05T12:07:18.000Z | /**
* Copyright Β© 2017 IBM Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 30.169492 | 77 | 0.674157 | sotaoverride |
836c20307707f92598086b036a1969c8cf71bae0 | 1,677 | cpp | C++ | source/datasets/Data_RSD.cpp | LBJ-Wade/ClassMC_DE_EoS | eaf9e92fcf867377be622d7627ebdba514fe2bac | [
"MIT"
] | 3 | 2017-04-26T07:17:53.000Z | 2020-01-31T02:41:06.000Z | source/datasets/Data_RSD.cpp | xyh-cosmo/ClassMC | eaf9e92fcf867377be622d7627ebdba514fe2bac | [
"MIT"
] | null | null | null | source/datasets/Data_RSD.cpp | xyh-cosmo/ClassMC | eaf9e92fcf867377be622d7627ebdba514fe2bac | [
"MIT"
] | null | null | null | #include "RSD.hpp"
#include <imcmc/imcmc.hpp>
#include <imcmc/parser++.hpp>
using namespace std;
using namespace imcmc::parser;
Data_RSD::Data_RSD(){
int size = -1;
zeff = NULL;
val = NULL;
err = NULL;
}
Data_RSD::~Data_RSD(){
if( zeff !=NULL ){
delete[] zeff;
zeff = NULL;
}... | 21.5 | 88 | 0.531902 | LBJ-Wade |
836d23a9f584645c138a8707b4e24a90dae07dc3 | 8,865 | cpp | C++ | Source/SIMPLib/Testing/Unused/SyntheticBuilderTest.cpp | v7t/SIMPL | 41c941ac957960ec17d067ffe5c566390c4a2553 | [
"NRL"
] | null | null | null | Source/SIMPLib/Testing/Unused/SyntheticBuilderTest.cpp | v7t/SIMPL | 41c941ac957960ec17d067ffe5c566390c4a2553 | [
"NRL"
] | 2 | 2019-02-23T20:46:12.000Z | 2019-07-11T15:34:13.000Z | Source/SIMPLib/Testing/Unused/SyntheticBuilderTest.cpp | v7t/SIMPL | 41c941ac957960ec17d067ffe5c566390c4a2553 | [
"NRL"
] | null | null | null | /* ============================================================================
* Copyright (c) 2009-2016 BlueQuartz Software, LLC
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* Redistributions of source code must ... | 35.318725 | 123 | 0.713706 | v7t |
836ec1dce6581a3bd9d6d22998405f7061331ca2 | 9,431 | cpp | C++ | looper/firmware/sync.cpp | jessecrossen/hautmidi | 7ef969d842c6cd9bc412d08ca422d962547e88e8 | [
"Unlicense"
] | 4 | 2017-09-28T02:06:42.000Z | 2021-07-15T01:58:58.000Z | looper/firmware/sync.cpp | jessecrossen/hautmidi | 7ef969d842c6cd9bc412d08ca422d962547e88e8 | [
"Unlicense"
] | null | null | null | looper/firmware/sync.cpp | jessecrossen/hautmidi | 7ef969d842c6cd9bc412d08ca422d962547e88e8 | [
"Unlicense"
] | null | null | null | #include "sync.h"
#define TRACE 0
#include "trace.h"
size_t Sync::idealLoopBlocks(Track *track) {
SyncPoint *p;
uint8_t ti;
uint8_t i = track->index;
// count sync points to the track for each other track
size_t *counts = new size_t[_trackCount];
for (ti = 0; ti < _trackCount; ti++) counts[ti] = 0;
for ... | 29.750789 | 87 | 0.608207 | jessecrossen |
837919233197c3444750eb6529a66fdc7331578f | 2,620 | cpp | C++ | test/source/numeric.cpp | nokurn/frequencypp | 5280b7a48ca49249c396603aee20cd89785a80b3 | [
"0BSD"
] | null | null | null | test/source/numeric.cpp | nokurn/frequencypp | 5280b7a48ca49249c396603aee20cd89785a80b3 | [
"0BSD"
] | null | null | null | test/source/numeric.cpp | nokurn/frequencypp | 5280b7a48ca49249c396603aee20cd89785a80b3 | [
"0BSD"
] | null | null | null | // Copyright 2021-2022 Jeremiah Griffin
//
// Permission to use, copy, modify, and/or 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 DISC... | 33.164557 | 75 | 0.692366 | nokurn |
8379633dc6cd78efda04fd67747b3d18c4fb5c13 | 1,586 | cpp | C++ | sources/InfoWindow.cpp | miqlas/W6 | b1940f137e20efee91c0ae060509b7b8507a9159 | [
"MIT"
] | 1 | 2017-08-11T17:04:56.000Z | 2017-08-11T17:04:56.000Z | sources/InfoWindow.cpp | miqlas/W6 | b1940f137e20efee91c0ae060509b7b8507a9159 | [
"MIT"
] | 4 | 2017-08-11T17:05:37.000Z | 2021-02-01T10:28:53.000Z | sources/InfoWindow.cpp | miqlas/W6 | b1940f137e20efee91c0ae060509b7b8507a9159 | [
"MIT"
] | 1 | 2020-10-26T07:26:35.000Z | 2020-10-26T07:26:35.000Z | #include "InfoWindow.h"
#include "ColorWindow.h"
#include "day.h"
#include "country.h"
#include "InfoView.h"
#include "GroupWindow.h"
#include <TranslationUtils.h>
#include <Message.h>
InfoWindow::InfoWindow(BRect frame,Country *Country_id[MAX_COUNTRY],Group *Group_id[MAX_GROUP],Politic *Politic_id[MAX_POLITIC], Day ... | 27.344828 | 143 | 0.728247 | miqlas |
837c978c5619ca42c2d34143f49c6a75fd2b61e3 | 741 | hh | C++ | src/dbus/audio_device_claim.hh | stanford-stagecast/pancake | e9cfd547edf2dd797f324b159252757190211ff2 | [
"Apache-2.0"
] | 2 | 2022-01-05T08:58:11.000Z | 2022-01-06T05:33:14.000Z | src/dbus/audio_device_claim.hh | stanford-stagecast/pancake | e9cfd547edf2dd797f324b159252757190211ff2 | [
"Apache-2.0"
] | null | null | null | src/dbus/audio_device_claim.hh | stanford-stagecast/pancake | e9cfd547edf2dd797f324b159252757190211ff2 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <dbus/dbus.h>
#include <memory>
#include <optional>
#include <string>
class AudioDeviceClaim
{
class DBusConnectionWrapper
{
struct DBusConnection_deleter
{
void operator()( DBusConnection* x ) const;
};
std::unique_ptr<DBusConnection, DBusConnection_deleter> connection... | 21.794118 | 82 | 0.727395 | stanford-stagecast |
837f2cff076c220fdc8f1c756fdabf4df1a0769d | 596 | cpp | C++ | examples/network/application/src/myclient.cpp | lihw/paper3d | a06d056b2ad894a8065b7a996eb7f6ceefec1511 | [
"MIT"
] | 34 | 2015-01-29T12:27:25.000Z | 2022-03-09T08:07:11.000Z | examples/network/application/src/myclient.cpp | lihw/paper3d | a06d056b2ad894a8065b7a996eb7f6ceefec1511 | [
"MIT"
] | 1 | 2015-02-04T07:26:50.000Z | 2015-02-04T07:36:55.000Z | examples/network/application/src/myclient.cpp | lihw/paper3d | a06d056b2ad894a8065b7a996eb7f6ceefec1511 | [
"MIT"
] | 12 | 2015-03-24T22:16:53.000Z | 2018-07-22T02:09:49.000Z | // myclient.cpp
// "Network" example
//
// Copyright 2012 - 2014 Future Interface. All rights reserved.
//
// Future Interface lihw81@gmail.com
//
#include "myclient.h"
MyClient::MyClient(const pchar *address, puint16 port, pint32 timeout, PNetworkManager *networkManager)
: PNetworkClient(address, port, time... | 20.551724 | 103 | 0.699664 | lihw |
837f9c9108b86a525eb948d2d41d6ccc55ab9ab2 | 3,680 | cpp | C++ | Chapter11/blackjack/blackjackold.cpp | Rayyan06/CPP | daeededda19a0d9766115a700dd949d92dfa4963 | [
"MIT"
] | 1 | 2021-04-12T17:01:58.000Z | 2021-04-12T17:01:58.000Z | Chapter11/blackjack/blackjackold.cpp | Rayyan06/CPP | daeededda19a0d9766115a700dd949d92dfa4963 | [
"MIT"
] | null | null | null | Chapter11/blackjack/blackjackold.cpp | Rayyan06/CPP | daeededda19a0d9766115a700dd949d92dfa4963 | [
"MIT"
] | null | null | null | #include <iostream>
#include.mf
struct Card
{
CardRank rank{};
CardSuit suit{};
};
struct Player
{
int score{};
};
using deck_type = std::array<Card, 52>;
using index_type = deck_type::size_type;
// Maximum score before losing.
constexpr int maximumScore{ 21 };
// Minium score that the dealer has to have... | 17.196262 | 93 | 0.589674 | Rayyan06 |
838049378fe0c1c2c357791c878b045183663e12 | 3,922 | cpp | C++ | Lab6/Lab6.cpp | DimanStrelok/Labs_Programming | 7b87bc7d1c3f446afd86adbb8b8b3ab4d751fd3a | [
"MIT"
] | null | null | null | Lab6/Lab6.cpp | DimanStrelok/Labs_Programming | 7b87bc7d1c3f446afd86adbb8b8b3ab4d751fd3a | [
"MIT"
] | null | null | null | Lab6/Lab6.cpp | DimanStrelok/Labs_Programming | 7b87bc7d1c3f446afd86adbb8b8b3ab4d751fd3a | [
"MIT"
] | null | null | null | #include <string>
#include <locale>
#include <iostream>
#include <vector>
enum class Gender {
Man = 0,
Women
};
struct Employee {
int t_num;
std::string name;
int salary;
std::string post;
Gender gender;
friend std::ostream& operator<<(std::ostream& os, const Employee& employee) {
... | 25.467532 | 82 | 0.556604 | DimanStrelok |
838dbcd5a78313892bdf750b932e9cff5f397e0f | 1,574 | cpp | C++ | Olympiad Solutions/URI/1092.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 36 | 2019-12-27T08:23:08.000Z | 2022-01-24T20:35:47.000Z | Olympiad Solutions/URI/1092.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 10 | 2019-11-13T02:55:18.000Z | 2021-10-13T23:28:09.000Z | Olympiad Solutions/URI/1092.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 53 | 2020-08-15T11:08:40.000Z | 2021-10-09T15:51:38.000Z | // Ivan Carvalho
// Solution to https://www.urionlinejudge.com.br/judge/problems/view/1092
#include <cstdio>
#include <algorithm>
using namespace std;
const int MAXN = 610;
int matriz[MAXN][MAXN],indice[MAXN][MAXN],maximocoluna[MAXN],dp[MAXN],resp,N,M;
int main(){
while(scanf("%d %d",&N,&M) && (N||M)){
for(int i=1;i... | 25.387097 | 79 | 0.547014 | Ashwanigupta9125 |
83912da99863681d5e0d70aec537d471c17e99c0 | 264 | cpp | C++ | cpp/ql/src/Critical/LateNegativeTest.cpp | vadi2/codeql | a806a4f08696d241ab295a286999251b56a6860c | [
"MIT"
] | 4,036 | 2020-04-29T00:09:57.000Z | 2022-03-31T14:16:38.000Z | cpp/ql/src/Critical/LateNegativeTest.cpp | vadi2/codeql | a806a4f08696d241ab295a286999251b56a6860c | [
"MIT"
] | 2,970 | 2020-04-28T17:24:18.000Z | 2022-03-31T22:40:46.000Z | cpp/ql/src/Critical/LateNegativeTest.cpp | ScriptBox99/github-codeql | 2ecf0d3264db8fb4904b2056964da469372a235c | [
"MIT"
] | 794 | 2020-04-29T00:28:25.000Z | 2022-03-30T08:21:46.000Z | Record records[SIZE] = ...;
int f() {
int recordIdx = 0;
cin >> recordIdx;
printRecord(&(records[recordIdx])); //incorrect: recordIdx may be negative here
if (recordIdx >= 0) {
processRecord(&(records[recordIdx])); //correct: index checked before use
}
}
| 22 | 80 | 0.670455 | vadi2 |
8391703b13f440f7ecfc90c95c3e1e6799003e81 | 16,751 | cxx | C++ | admin/services/sched/wizard/taskwiz.cxx | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | admin/services/sched/wizard/taskwiz.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | admin/services/sched/wizard/taskwiz.cxx | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //+--------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1994 - 1996.
//
// File: taskwiz.cxx
//
// Contents: Class which creates and invokes the 'create new task' wizard.
//
// Classes: CTaskWizard
//
// Hi... | 28.152941 | 125 | 0.49412 | npocmaka |
8b52227fe6e5a7028a3778fa31853daa6e2d4f87 | 2,968 | hpp | C++ | Engine/Src/Runtime/Core/Public/Core/Utility/MemoryUtil.hpp | Septus10/Fade-Engine | 285a2a1cf14a4e9c3eb8f6d30785d1239cef10b6 | [
"MIT"
] | null | null | null | Engine/Src/Runtime/Core/Public/Core/Utility/MemoryUtil.hpp | Septus10/Fade-Engine | 285a2a1cf14a4e9c3eb8f6d30785d1239cef10b6 | [
"MIT"
] | null | null | null | Engine/Src/Runtime/Core/Public/Core/Utility/MemoryUtil.hpp | Septus10/Fade-Engine | 285a2a1cf14a4e9c3eb8f6d30785d1239cef10b6 | [
"MIT"
] | null | null | null | #pragma once
#include <Core/CoreApi.hpp>
#include <xmemory>
namespace Fade {
template <typename ValueType>
struct TDefaultAllocator : public std::allocator<ValueType>
{
};
// Default deleter for TUniquePtr
template <typename ValueType>
struct TDefaultDelete
{
/*
* Default constructor
*/
constexpr TDefaultDel... | 21.823529 | 125 | 0.718666 | Septus10 |
8b5310ad5681d532f18b6ad821bcc9ee5a15820d | 1,100 | cpp | C++ | p_euler_78.cpp | Krshivam/Project-Euler | 108d4c98450de09315e399956665edd369a50d64 | [
"MIT"
] | null | null | null | p_euler_78.cpp | Krshivam/Project-Euler | 108d4c98450de09315e399956665edd369a50d64 | [
"MIT"
] | null | null | null | p_euler_78.cpp | Krshivam/Project-Euler | 108d4c98450de09315e399956665edd369a50d64 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define f first
#define s second
#define ll long long
#define pb push_back
#define mp make_pair
#define inp(x) cin>>x
#define print(x) cout<<x
#define pii pair<int,int>
#define pll pair<ll,ll>
#define gcd(a,b) __gcd(a,b)
#define reset(d,val) memset(d,val,sizeof... | 20.754717 | 58 | 0.590909 | Krshivam |
8b551bf6fe83a9e75c1add2b10e563ac93c408fa | 411 | hpp | C++ | src/snabl/pos.hpp | codr7/snabl | c49fbcf3dae0ff6209a575c70c67c583c19006f3 | [
"MIT"
] | 4 | 2021-09-26T10:09:35.000Z | 2022-03-26T01:49:24.000Z | src/snabl/pos.hpp | codr7/snabl | c49fbcf3dae0ff6209a575c70c67c583c19006f3 | [
"MIT"
] | null | null | null | src/snabl/pos.hpp | codr7/snabl | c49fbcf3dae0ff6209a575c70c67c583c19006f3 | [
"MIT"
] | 1 | 2022-03-27T17:03:58.000Z | 2022-03-27T17:03:58.000Z | #ifndef SNABL_POS_HPP
#define SNABL_POS_HPP
#include <string>
#include <ostream>
namespace snabl {
using namespace std;
struct Pos {
static const Pos INVALID;
Pos(const string &source = "*invalid*", int line = -1, int column = -1):
source(source), line(line), column(column) {}
string so... | 17.125 | 76 | 0.642336 | codr7 |
8b5565050574954ea78c8f6dd31e9784dba7eb4d | 6,840 | cpp | C++ | TongueQT/TongueQT/src/Vega/libraries/corotationalLinearFEM/corotationalLinearFEMMT.cpp | lrkk1234/TongueSimulation | 347cf38452aa62d1173da1c4935f691456255e46 | [
"MIT"
] | 2 | 2020-03-28T03:15:49.000Z | 2020-09-09T02:54:33.000Z | TongueQT/TongueQT/src/Vega/libraries/corotationalLinearFEM/corotationalLinearFEMMT.cpp | lrkk1234/TongueSimulation | 347cf38452aa62d1173da1c4935f691456255e46 | [
"MIT"
] | null | null | null | TongueQT/TongueQT/src/Vega/libraries/corotationalLinearFEM/corotationalLinearFEMMT.cpp | lrkk1234/TongueSimulation | 347cf38452aa62d1173da1c4935f691456255e46 | [
"MIT"
] | 2 | 2020-09-08T19:28:19.000Z | 2021-07-25T00:35:26.000Z | /*************************************************************************
* *
* Vega FEM Simulation Library Version 2.2 *
* *
* "corotational lin... | 34.545455 | 173 | 0.580848 | lrkk1234 |
8b5a7f74dfe34b65674f2451b8947016be1935da | 7,664 | cpp | C++ | test/src/trajectory_generator_test.cpp | kohonda/state_lattice_planner | 3368f222d0296c6325673027f9c59989b8783733 | [
"BSD-3-Clause"
] | 79 | 2019-05-31T14:57:32.000Z | 2022-03-26T13:49:33.000Z | test/src/trajectory_generator_test.cpp | lucianzhong/state_lattice_planner | 21da9743ad56f58e68dd7bb651c16c2dde57294c | [
"BSD-3-Clause"
] | 17 | 2019-04-18T06:48:16.000Z | 2022-02-01T02:09:11.000Z | test/src/trajectory_generator_test.cpp | lucianzhong/state_lattice_planner | 21da9743ad56f58e68dd7bb651c16c2dde57294c | [
"BSD-3-Clause"
] | 33 | 2019-10-29T07:17:03.000Z | 2022-02-18T06:12:58.000Z | #include <gtest/gtest.h>
#include "trajectory_generator/motion_model_diff_drive.h"
#include "trajectory_generator/trajectory_generator_diff_drive.h"
TEST(MotionModelTest, Interpolation)
{
MotionModelDiffDrive::AngularVelocityParams omega(0, 0.5, 1.0, 5);
omega.calculate_spline();
MotionModelDiffDrive mm;
... | 43.794286 | 182 | 0.691284 | kohonda |
8b5d6f77b8af926c1d591243e707353a221beaa1 | 921 | cpp | C++ | MFC/MFCDemo/Curve.cpp | Johnny-Martin/Win32UI | 570feb103bfda72063f13871b06326c6884cebd1 | [
"MIT"
] | 1 | 2021-02-13T18:10:51.000Z | 2021-02-13T18:10:51.000Z | MFC/MFCDemo/Curve.cpp | Johnny-Martin/Win32UI | 570feb103bfda72063f13871b06326c6884cebd1 | [
"MIT"
] | null | null | null | MFC/MFCDemo/Curve.cpp | Johnny-Martin/Win32UI | 570feb103bfda72063f13871b06326c6884cebd1 | [
"MIT"
] | 3 | 2018-01-28T05:55:00.000Z | 2021-08-18T07:47:20.000Z | #include"stdafx.h"
#include"Curve.h"
using namespace BaseElement;
Curve::Curve(CDC* pDC, int iMaxPointCount, int iLineWidth):
m_vecPoints(),
m_cursor(),
m_iCursor(0),
m_pen(PS_SOLID, 1, RGB(255, 0, 255))
{
m_pDC = pDC;
m_iMaxPointCount = iMaxPointCount;
m_iLineWidth = iLineWidth;
m_pDC->SelectObject(m_pen);... | 18.795918 | 72 | 0.677524 | Johnny-Martin |
8b604c2949bddac25962f3bd9d752913d0cd41d9 | 17,596 | cpp | C++ | cpp/sketches_SDL/Molecular/test_CLCFSF.cpp | ProkopHapala/SimpleSimulationEngine | 240f9b7e85b3a6eda7a27dc15fe3f7b8c08774c5 | [
"MIT"
] | 26 | 2016-12-04T04:45:12.000Z | 2022-03-24T09:39:28.000Z | cpp/sketches_SDL/Molecular/test_CLCFSF.cpp | ProkopHapala/SimpleSimulationEngine | 240f9b7e85b3a6eda7a27dc15fe3f7b8c08774c5 | [
"MIT"
] | null | null | null | cpp/sketches_SDL/Molecular/test_CLCFSF.cpp | ProkopHapala/SimpleSimulationEngine | 240f9b7e85b3a6eda7a27dc15fe3f7b8c08774c5 | [
"MIT"
] | 2 | 2019-02-09T12:31:06.000Z | 2019-04-28T02:24:50.000Z |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <vector>
#include <math.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h>
#include "Draw.h"
#include "Draw3D.h"
#include "DrawIso.h"
#include "Solids.h"
#include "fastmath.h"
#include "Vec3.h"
#include "quaternion.h"
#include "Mat3.h"
#include "... | 32.227106 | 184 | 0.567231 | ProkopHapala |
8b6944d4e79d212983c0f4eeea9811724029f4bb | 11,342 | cpp | C++ | 3rd_party_libs/chai3d_a4/src/world/CShapeCylinder.cpp | atp42/jks-ros-pkg | 367fc00f2a9699f33d05c7957d319a80337f1ed4 | [
"FTL"
] | 3 | 2017-02-02T13:27:45.000Z | 2018-06-17T11:52:13.000Z | 3rd_party_libs/chai3d_a4/src/world/CShapeCylinder.cpp | salisbury-robotics/jks-ros-pkg | 367fc00f2a9699f33d05c7957d319a80337f1ed4 | [
"FTL"
] | null | null | null | 3rd_party_libs/chai3d_a4/src/world/CShapeCylinder.cpp | salisbury-robotics/jks-ros-pkg | 367fc00f2a9699f33d05c7957d319a80337f1ed4 | [
"FTL"
] | null | null | null | //===========================================================================
/*
Software License Agreement (BSD License)
Copyright (c) 2003-2012, CHAI3D.
(www.chai3d.org)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitt... | 39.381944 | 127 | 0.549727 | atp42 |
8b69b564a035f4d92a4cacd7c83d528a87d2396a | 2,138 | cc | C++ | test/log/raw_logging_test.cc | Conun/abel | 485ef38c917c0df3750242cc38966a2bcb163588 | [
"BSD-3-Clause"
] | null | null | null | test/log/raw_logging_test.cc | Conun/abel | 485ef38c917c0df3750242cc38966a2bcb163588 | [
"BSD-3-Clause"
] | null | null | null | test/log/raw_logging_test.cc | Conun/abel | 485ef38c917c0df3750242cc38966a2bcb163588 | [
"BSD-3-Clause"
] | null | null | null | //
// This test serves primarily as a compilation test for base/raw_logging.h.
// Raw logging testing is covered by logging_unittest.cc, which is not as
// portable as this test.
#include <abel/log/raw_logging.h>
#include <tuple>
#include <gtest/gtest.h>
#include <abel/strings/str_cat.h>
namespace {
TEST(RawLogging... | 32.393939 | 76 | 0.67072 | Conun |
8b6a9ab7eb4fe8035c23279520c5ba8a02018596 | 7,646 | cc | C++ | okl4_kernel/okl4_2.1.1-patch.9/tools/magpie/test/fullsystem/pistachio/user/util/piggybacker/ofppc/main.cc | CyberQueenMara/baseband-research | e1605537e10c37e161fff1a3416b908c9894f204 | [
"MIT"
] | 77 | 2018-12-31T22:12:09.000Z | 2021-12-31T22:56:13.000Z | okl4_kernel/okl4_2.1.1-patch.9/tools/magpie/test/fullsystem/pistachio/user/util/piggybacker/ofppc/main.cc | CyberQueenMara/baseband-research | e1605537e10c37e161fff1a3416b908c9894f204 | [
"MIT"
] | null | null | null | okl4_kernel/okl4_2.1.1-patch.9/tools/magpie/test/fullsystem/pistachio/user/util/piggybacker/ofppc/main.cc | CyberQueenMara/baseband-research | e1605537e10c37e161fff1a3416b908c9894f204 | [
"MIT"
] | 24 | 2019-01-20T15:51:52.000Z | 2021-12-25T18:29:13.000Z | /****************************************************************************
*
* Copyright (C) 2002-2003, Karlsruhe University
*
* File path: piggybacker/ofppc/main.cc
* Description: The Open Firmware PowerPC loader for Pistachio.
*
* Redistribution and use in source and binary forms, with or without
* modific... | 32.261603 | 80 | 0.675778 | CyberQueenMara |
8b6b26c97a0681365b3c4da805626a38a5827daf | 106 | hpp | C++ | include/netp/core/platform/osx_x86_.hpp | cainiaoDJ/netplus | 03350d507830b3a39620374225d16c0b57623ef1 | [
"MIT"
] | 48 | 2021-02-22T03:10:40.000Z | 2022-03-29T03:26:33.000Z | include/netp/core/platform/osx_x86_.hpp | cainiaoDJ/netplus | 03350d507830b3a39620374225d16c0b57623ef1 | [
"MIT"
] | 7 | 2021-03-20T09:25:11.000Z | 2022-03-07T03:26:56.000Z | include/netp/core/platform/osx_x86_.hpp | cainiaoDJ/netplus | 03350d507830b3a39620374225d16c0b57623ef1 | [
"MIT"
] | 13 | 2021-02-25T01:49:58.000Z | 2022-03-21T00:30:34.000Z | #ifndef _CORE_PLATFORM_NETP_PLATFORM_OSX_X86_HPP_
#define _CORE_PLATFORM_NETP_PLATFORM_OSX_X86_HPP_
#endif | 35.333333 | 49 | 0.933962 | cainiaoDJ |
8b6c8271568be513899ec162dd37302bd78e1609 | 2,450 | cpp | C++ | operators (overload, week 4).cpp | snow482/cpp_white_belt | 5218c122d69c081d0b00711f0223e6309689061e | [
"MIT"
] | 1 | 2020-11-03T15:16:45.000Z | 2020-11-03T15:16:45.000Z | operators (overload, week 4).cpp | snow482/cpp_white_belt | 5218c122d69c081d0b00711f0223e6309689061e | [
"MIT"
] | null | null | null | operators (overload, week 4).cpp | snow482/cpp_white_belt | 5218c122d69c081d0b00711f0223e6309689061e | [
"MIT"
] | null | null | null | #include <iostream>
#include <sstream>
#include <iomanip>
#include <algorithm>
#include <string>
#include <vector>
using namespace std;
/*using std::vector;
using std::string;
using std::cin;
using std::cout;
using std::endl;
using std::istream;
using std::ostream;*/
struct Duration{
int hour;
int min;
... | 26.344086 | 85 | 0.538776 | snow482 |
8b6e5b2885d1549c1a08cc80b2d0dfcf9d7de855 | 4,449 | cpp | C++ | src/third_party/mozjs/extract/js/src/vm/PlainObject.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | src/third_party/mozjs/extract/js/src/vm/PlainObject.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | src/third_party/mozjs/extract/js/src/vm/PlainObject.cpp | benety/mongo | 203430ac9559f82ca01e3cbb3b0e09149fec0835 | [
"Apache-2.0"
] | null | null | null | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
* vim: set ts=8 sts=2 et sw=2 tw=80:
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
... | 32.007194 | 80 | 0.638346 | benety |
8b6f5316881822682e8f1dc4fc12d338b44e852a | 3,204 | hpp | C++ | sketch/dense_transform_Mixed.hpp | xdata-skylark/libskylark | 89c3736136a24d519c14fc0738c21f37f1e10360 | [
"Apache-2.0"
] | 86 | 2015-01-20T03:12:46.000Z | 2022-01-10T04:05:21.000Z | sketch/dense_transform_Mixed.hpp | xdata-skylark/libskylark | 89c3736136a24d519c14fc0738c21f37f1e10360 | [
"Apache-2.0"
] | 48 | 2015-05-12T09:31:23.000Z | 2018-12-05T14:45:46.000Z | sketch/dense_transform_Mixed.hpp | xdata-skylark/libskylark | 89c3736136a24d519c14fc0738c21f37f1e10360 | [
"Apache-2.0"
] | 25 | 2015-01-18T23:02:11.000Z | 2021-06-12T07:30:35.000Z | #ifndef SKYLARK_DENSE_TRANSFORM_MIXED_HPP
#define SKYLARK_DENSE_TRANSFORM_MIXED_HPP
#include "../base/base.hpp"
#include "transforms.hpp"
#include "dense_transform_data.hpp"
#include "../utility/get_communicator.hpp"
#include "../base/sparse_vc_star_matrix.hpp"
#include "sketch_params.hpp"
namespace skylark { names... | 30.226415 | 81 | 0.634831 | xdata-skylark |
8b72c487a5f0aeffa0622a46fc2000347f63c24c | 912 | cc | C++ | src/libc/sys/uio/writev_test.cc | NuxiNL/CloudLibc | d361c06c3fab3a7814d05b4630abe6da0cc7d757 | [
"BSD-2-Clause"
] | 298 | 2015-03-04T13:36:51.000Z | 2021-12-19T05:11:58.000Z | src/libc/sys/uio/writev_test.cc | NuxiNL/CloudLibc | d361c06c3fab3a7814d05b4630abe6da0cc7d757 | [
"BSD-2-Clause"
] | 31 | 2015-07-27T14:51:55.000Z | 2020-09-14T15:59:57.000Z | src/libc/sys/uio/writev_test.cc | NuxiNL/CloudLibc | d361c06c3fab3a7814d05b4630abe6da0cc7d757 | [
"BSD-2-Clause"
] | 18 | 2016-03-27T13:49:22.000Z | 2021-09-21T19:02:04.000Z | // Copyright (c) 2015 Nuxi, https://nuxi.nl/
//
// SPDX-License-Identifier: BSD-2-Clause
#include <sys/uio.h>
#include <fcntl.h>
#include <unistd.h>
#include "gtest/gtest.h"
#include "src/gtest_with_tmpdir/gtest_with_tmpdir.h"
TEST(writev, example) {
int fd_tmp = gtest_with_tmpdir::CreateTemporaryDirectory();
... | 26.057143 | 76 | 0.633772 | NuxiNL |
8b8500fbcd7b4417f631c39d9d92dc0ad0d9d51e | 5,658 | cc | C++ | chrome/browser/chromeos/login/session/user_session_manager_test.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/chromeos/login/session/user_session_manager_test.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/chromeos/login/session/user_session_manager_test.cc | sarang-apps/darshan_browser | 173649bb8a7c656dc60784d19e7bb73e07c20daa | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/chromeos/login/session/user_session_manager.h"
#include "base/macros.h"
#include "chromeos/dbus/session_manager/fake_session_man... | 40.12766 | 80 | 0.777837 | sarang-apps |
8b85d73a197074773aba1a8dd8510d0bea282537 | 1,924 | cpp | C++ | clients/cpp-pistache-server/generated/model/BranchList__embedded.cpp | shinesolutions/cloudmanager-api-clients | d73a25878f6cc57af954362ba8dccc90d54e6131 | [
"Apache-2.0"
] | 3 | 2020-06-23T05:31:52.000Z | 2020-11-26T05:34:57.000Z | clients/cpp-pistache-server/generated/model/BranchList__embedded.cpp | shinesolutions/cloudmanager-api-clients | d73a25878f6cc57af954362ba8dccc90d54e6131 | [
"Apache-2.0"
] | 2 | 2021-01-21T01:19:54.000Z | 2021-12-09T22:30:22.000Z | clients/cpp-pistache-server/generated/model/BranchList__embedded.cpp | shinesolutions/cloudmanager-api-clients | d73a25878f6cc57af954362ba8dccc90d54e6131 | [
"Apache-2.0"
] | 1 | 2020-11-18T11:48:13.000Z | 2020-11-18T11:48:13.000Z | /**
* Cloud Manager API
* This API allows access to Cloud Manager programs, pipelines, and environments by an authorized technical account created through the Adobe I/O Console. The base url for this API is https://cloudmanager.adobe.io, e.g. to get the list of programs for an organization, you would make a GET request... | 25.653333 | 534 | 0.731809 | shinesolutions |
8b8607ba08f78e6ced9c0c632589327bfd73706d | 330 | cpp | C++ | CPP/CWE-477/3/bad.cpp | squinky86/FUBER | ee1382d01d589dd88d12ac1186c5e908acff240f | [
"ISC"
] | 1 | 2021-06-17T23:05:37.000Z | 2021-06-17T23:05:37.000Z | CPP/CWE-477/3/bad.cpp | squinky86/FUBER | ee1382d01d589dd88d12ac1186c5e908acff240f | [
"ISC"
] | null | null | null | CPP/CWE-477/3/bad.cpp | squinky86/FUBER | ee1382d01d589dd88d12ac1186c5e908acff240f | [
"ISC"
] | null | null | null | /*
* Copyright Β© 2018, Jon Hood www.hoodsecurity.com
* License: ISC
*/
#include <cstdlib>
#include <iostream>
#include <memory>
using namespace std;
int main(int argc, char *argv[])
{
auto_ptr<int> p(new int); //auto_ptr deprecated by C++11 and removed in C++17
*p.get() = 1;
cout << *p << endl;
return EXIT_S... | 16.5 | 78 | 0.657576 | squinky86 |
8b88977a872c289ee6fce09a65fcf940f4291244 | 17,738 | hpp | C++ | include/utils/te.hpp | SakuraEngine/Sakura.Runtime | 5a397fb2b1285326c4216f522fe10e347bd566f7 | [
"MIT"
] | 29 | 2021-11-19T11:28:22.000Z | 2022-03-29T00:26:51.000Z | include/utils/te.hpp | SakuraEngine/Sakura.Runtime | 5a397fb2b1285326c4216f522fe10e347bd566f7 | [
"MIT"
] | null | null | null | include/utils/te.hpp | SakuraEngine/Sakura.Runtime | 5a397fb2b1285326c4216f522fe10e347bd566f7 | [
"MIT"
] | 1 | 2022-03-05T08:14:40.000Z | 2022-03-05T08:14:40.000Z | //
// Copyright (c) 2018-2019 Kris Jusiak (kris 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)
//
#pragma once
#if not defined(__cpp_variadic_templates) or \
n... | 29.563333 | 113 | 0.566242 | SakuraEngine |
8b90cbc75d2671e687e4f050a6fc61a6171237c2 | 3,017 | cpp | C++ | src/lexer/lexer.cpp | shrimpster00/mark-sideways | 16eeebb514d3e3fe1425cda5326bf3ac74f60235 | [
"MIT"
] | 1 | 2021-09-23T22:38:24.000Z | 2021-09-23T22:38:24.000Z | src/lexer/lexer.cpp | shrimpster00/mark-sideways | 16eeebb514d3e3fe1425cda5326bf3ac74f60235 | [
"MIT"
] | null | null | null | src/lexer/lexer.cpp | shrimpster00/mark-sideways | 16eeebb514d3e3fe1425cda5326bf3ac74f60235 | [
"MIT"
] | null | null | null | // //lexer
// v. 0.4.0
//
// Author: Cayden Lund
// Date: 10/30/2021
//
// This file is part of sparkdown, a new markup/markdown language
// for quickly writing and formatting notes.
//
// This file contains the implementation of the lex() method.
// This method is used to lex a line for parsing.
//
// Copyright (C) ... | 29.009615 | 89 | 0.48757 | shrimpster00 |
8b91c42ed431ba8adc12f1ad407bb28526b10573 | 6,773 | cpp | C++ | src/feature_detector.cpp | ChristophPacher/MassKerade | 064b3e6055032a45a917129d6134e9b70f12fb85 | [
"BSD-2-Clause"
] | 1 | 2018-08-14T06:39:55.000Z | 2018-08-14T06:39:55.000Z | src/feature_detector.cpp | ChristophPacher/MassKerade | 064b3e6055032a45a917129d6134e9b70f12fb85 | [
"BSD-2-Clause"
] | null | null | null | src/feature_detector.cpp | ChristophPacher/MassKerade | 064b3e6055032a45a917129d6134e9b70f12fb85 | [
"BSD-2-Clause"
] | null | null | null | /*!
* @file feature_detector.cpp
* @author Christoph Pacher <chris@christophpacher.com>
* @version 1.0
*
* @section LICENSE
*
* Copyright (c) 2014 Christoph Pacher http://www.christophpacher.com
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that
... | 33.20098 | 162 | 0.704119 | ChristophPacher |
8b94d749e8d9ce17043c144ccb320717a71f8f54 | 3,067 | hpp | C++ | ThirdParty-mod/java2cpp/javax/security/auth/AuthPermission.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | 1 | 2019-04-03T01:53:28.000Z | 2019-04-03T01:53:28.000Z | ThirdParty-mod/java2cpp/javax/security/auth/AuthPermission.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | null | null | null | ThirdParty-mod/java2cpp/javax/security/auth/AuthPermission.hpp | kakashidinho/HQEngine | 8125b290afa7c62db6cc6eac14e964d8138c7fd0 | [
"MIT"
] | null | null | null | /*================================================================================
code generated by: java2cpp
author: Zoran Angelov, mailto://baldzar@gmail.com
class: javax.security.auth.AuthPermission
================================================================================*/
#ifndef J2CPP_INCLU... | 28.663551 | 140 | 0.70851 | kakashidinho |
8b98d74b61da3a276dd15b6133f1fb2f6aa49741 | 2,931 | hpp | C++ | libtbag/uvxx/UxTty.hpp | osom8979/tbag | c31e2d884907d946df0836a70d8d5d69c4bf3c27 | [
"MIT"
] | 21 | 2016-04-05T06:08:41.000Z | 2022-03-28T10:20:22.000Z | libtbag/uvxx/UxTty.hpp | osom8979/tbag | c31e2d884907d946df0836a70d8d5d69c4bf3c27 | [
"MIT"
] | null | null | null | libtbag/uvxx/UxTty.hpp | osom8979/tbag | c31e2d884907d946df0836a70d8d5d69c4bf3c27 | [
"MIT"
] | 2 | 2019-07-16T00:37:21.000Z | 2021-11-10T06:14:09.000Z | /**
* @file UxTty.hpp
* @brief UxTty class prototype.
* @author zer0
* @date 2018-12-07
*/
#ifndef __INCLUDE_LIBTBAG__LIBTBAG_UVXX_UXTTY_HPP__
#define __INCLUDE_LIBTBAG__LIBTBAG_UVXX_UXTTY_HPP__
// MS compatible compilers support #pragma once
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
#pragma once
#endif
... | 25.710526 | 90 | 0.647561 | osom8979 |
8bab0d9c5705dc539ab5061f1edffed8f02f73e2 | 656 | cpp | C++ | src/QtCryptography/nPKCS7encryptor.cpp | Vladimir-Lin/QtCryptography | b200e70b38564b274e2d53ab21cfa459e00ed449 | [
"MIT"
] | null | null | null | src/QtCryptography/nPKCS7encryptor.cpp | Vladimir-Lin/QtCryptography | b200e70b38564b274e2d53ab21cfa459e00ed449 | [
"MIT"
] | null | null | null | src/QtCryptography/nPKCS7encryptor.cpp | Vladimir-Lin/QtCryptography | b200e70b38564b274e2d53ab21cfa459e00ed449 | [
"MIT"
] | null | null | null | #include <qtcryptography>
#include <openssl/pkcs7.h>
N::Encrypt::Pkcs7:: Pkcs7 (void)
: Encryptor ( )
{
}
N::Encrypt::Pkcs7::~Pkcs7 (void)
{
}
bool N::Encrypt::Pkcs7::supports (int algorithm)
{
return ( Cryptography::PKI == algorithm ) ;
}
int N::Encrypt::Pkcs7::type(void) const
{
retur... | 14.909091 | 71 | 0.625 | Vladimir-Lin |
8bab373d857ecfb2e79c1eca28424ab7d2523f8d | 8,630 | hh | C++ | RAVL2/Core/IO/Converter.hh | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | RAVL2/Core/IO/Converter.hh | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | RAVL2/Core/IO/Converter.hh | isuhao/ravl2 | 317e0ae1cb51e320b877c3bad6a362447b5e52ec | [
"BSD-Source-Code"
] | null | null | null | // This file is part of RAVL, Recognition And Vision Library
// Copyright (C) 2001, University of Surrey
// This code may be redistributed under the terms of the GNU Lesser
// General Public License (LGPL). See the lgpl.licence file for details or
// see http://www.gnu.org/copyleft/lesser.html
// file-header-ends-here... | 31.381818 | 120 | 0.662225 | isuhao |
8bac1e75876da948620bc82ff1f3e45633e58d9e | 385 | cpp | C++ | Volume102/10257 - Dick and Jane/10257.cpp | rstancioiu/uva-online-judge | 31c536d764462d389b48b4299b9731534824c9f5 | [
"MIT"
] | 1 | 2017-01-25T18:07:49.000Z | 2017-01-25T18:07:49.000Z | Volume102/10257 - Dick and Jane/10257.cpp | rstancioiu/uva-online-judge | 31c536d764462d389b48b4299b9731534824c9f5 | [
"MIT"
] | null | null | null | Volume102/10257 - Dick and Jane/10257.cpp | rstancioiu/uva-online-judge | 31c536d764462d389b48b4299b9731534824c9f5 | [
"MIT"
] | null | null | null | // Author: Stancioiu Nicu Razvan
// Problem: http://uva.onlinejudge.org/external/102/10257.html
#include <cstdio>
using namespace std;
int s,p,y,j,d,spot,puff,yertle,dif;
int main()
{
d=12;
while(scanf("%d %d %d %d",&s,&p,&y,&j)==4)
{
dif=j+d-y-p;
yertle=dif/3;
dif=j+d-yertle-s;
puff=dif/2;
spot=j+d-puff... | 18.333333 | 62 | 0.625974 | rstancioiu |