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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
4f63a755a682db8913d7701abf8dc30b278833eb | 1,240 | cpp | C++ | src/io/json/json.cpp | rxnew/qc | dcb9c0d9b4347d3cc9311fee16c88a0c2dca1dce | [
"MIT"
] | null | null | null | src/io/json/json.cpp | rxnew/qc | dcb9c0d9b4347d3cc9311fee16c88a0c2dca1dce | [
"MIT"
] | null | null | null | src/io/json/json.cpp | rxnew/qc | dcb9c0d9b4347d3cc9311fee16c88a0c2dca1dce | [
"MIT"
] | null | null | null | #include "../json.hpp"
#include "parser.hpp"
#include "dumper.hpp"
#include "../../circuit.hpp"
namespace qc {
namespace io {
Json::Messages const Json::_err_msgs = {
{"E000", "Illegal format. The operation type is not a string."},
{"E001", "Illegal format. Controls or targets is not an array."},
{"E002", "Ille... | 28.837209 | 77 | 0.691129 | rxnew |
4f65f1146d80d98ed780f5ca2bd8eab575ce7795 | 6,447 | cc | C++ | server/core/test/test_logthrottling.cc | crspecter/MaxScale | 471fa20a09ebc954fc3304500037b6b55dbbf9f1 | [
"BSD-3-Clause"
] | 1 | 2021-02-07T01:57:32.000Z | 2021-02-07T01:57:32.000Z | server/core/test/test_logthrottling.cc | crspecter/MaxScale | 471fa20a09ebc954fc3304500037b6b55dbbf9f1 | [
"BSD-3-Clause"
] | null | null | null | server/core/test/test_logthrottling.cc | crspecter/MaxScale | 471fa20a09ebc954fc3304500037b6b55dbbf9f1 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2016 MariaDB Corporation Ab
*
* Use of this software is governed by the Business Source License included
* in the LICENSE.TXT file and at www.mariadb.com/bsl11.
*
* Change Date: 2025-01-25
*
* On the date above, in accordance with the Business Source License, use
* of this software will be g... | 23.107527 | 101 | 0.578253 | crspecter |
4f69c4f371dcf7313ae398afe2d072983238802d | 19,086 | cpp | C++ | nfc/src/DOOM/doomclassic/doom/r_draw.cpp | 1337programming/leviathan | ca9a31b45c25fd23f361d67136ae5ac6b98d2628 | [
"Apache-2.0"
] | null | null | null | nfc/src/DOOM/doomclassic/doom/r_draw.cpp | 1337programming/leviathan | ca9a31b45c25fd23f361d67136ae5ac6b98d2628 | [
"Apache-2.0"
] | null | null | null | nfc/src/DOOM/doomclassic/doom/r_draw.cpp | 1337programming/leviathan | ca9a31b45c25fd23f361d67136ae5ac6b98d2628 | [
"Apache-2.0"
] | null | null | null | /*
===========================================================================
Doom 3 BFG Edition GPL Source Code
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Doom 3 BFG Edition Source Code is free... | 22.721429 | 366 | 0.625904 | 1337programming |
4f6aeaed4c67a34a7d17f8a31228ae952306e84a | 271 | cpp | C++ | tests/test_bonus_5_a_smorse_main.cpp | ThomasPDye/smorse | 9714539a1606974af0870e7cf03b98385ba14106 | [
"MIT"
] | null | null | null | tests/test_bonus_5_a_smorse_main.cpp | ThomasPDye/smorse | 9714539a1606974af0870e7cf03b98385ba14106 | [
"MIT"
] | null | null | null | tests/test_bonus_5_a_smorse_main.cpp | ThomasPDye/smorse | 9714539a1606974af0870e7cf03b98385ba14106 | [
"MIT"
] | null | null | null | #include "test_bonus_5_a_smorse.hpp"
int main(int argc, char **argv)
{
int result = -1;
if (argc == 3)
{
std::string ifn(argv[1]);
std::string code(argv[2]);
result = test_smorse::test_bonus_5_a(ifn, code);
}
return result;
}
| 19.357143 | 56 | 0.571956 | ThomasPDye |
4f6b01c27f01f3fae091c03c51098c80ceccf400 | 6,902 | cpp | C++ | export/release/windows/obj/src/__ASSET__flixel_flixel_ui_img_chrome_png.cpp | SamuraiOfSecrets/Goatmeal-Time-v0.2 | 7b89cbaf6895495b90ee1a5679e9cc696a7fbb53 | [
"Apache-2.0"
] | null | null | null | export/release/windows/obj/src/__ASSET__flixel_flixel_ui_img_chrome_png.cpp | SamuraiOfSecrets/Goatmeal-Time-v0.2 | 7b89cbaf6895495b90ee1a5679e9cc696a7fbb53 | [
"Apache-2.0"
] | null | null | null | export/release/windows/obj/src/__ASSET__flixel_flixel_ui_img_chrome_png.cpp | SamuraiOfSecrets/Goatmeal-Time-v0.2 | 7b89cbaf6895495b90ee1a5679e9cc696a7fbb53 | [
"Apache-2.0"
] | null | null | null | // Generated by Haxe 4.2.2
#include <hxcpp.h>
#ifndef INCLUDED___ASSET__flixel_flixel_ui_img_chrome_png
#include <__ASSET__flixel_flixel_ui_img_chrome_png.h>
#endif
#ifndef INCLUDED_haxe_Resource
#include <haxe/Resource.h>
#endif
#ifndef INCLUDED_haxe_io_Bytes
#include <haxe/io/Bytes.h>
#endif
#ifndef INCLUDED_lime_gr... | 46.013333 | 301 | 0.814547 | SamuraiOfSecrets |
4f6cbac18970bc067ec80802d29fe862405db691 | 1,433 | cpp | C++ | include/cgl/frame/back/win32app.cpp | sdragonx/cgl | d8d45d3a3930bc8f3d0851371760742fda4733b8 | [
"MIT"
] | 1 | 2020-12-30T06:35:47.000Z | 2020-12-30T06:35:47.000Z | include/cgl/frame/back/win32app.cpp | sdragonx/cgl | d8d45d3a3930bc8f3d0851371760742fda4733b8 | [
"MIT"
] | null | null | null | include/cgl/frame/back/win32app.cpp | sdragonx/cgl | d8d45d3a3930bc8f3d0851371760742fda4733b8 | [
"MIT"
] | null | null | null | /*
win32app.cpp
sdragonx 2018-08-02 03:06:02
*/
#ifndef WIN32APP_CPP_20180802030602
#define WIN32APP_CPP_20180802030602
#include "core.hpp"
#include "win32app.hpp"
namespace cgl{
namespace frame{
native_app::native_app() : m_is_run(true)
{
}
tstring_t native_app::exename()
{
TCHAR buf[MA... | 16.858824 | 71 | 0.633636 | sdragonx |
4f6d467f56ea835c36106b13ed0dbd98fedaff9d | 12,383 | cpp | C++ | Editor/MediaSource.cpp | humdingerb/Medo | 61616300a5379e4985cb44dd41af512345e3289c | [
"MIT"
] | 95 | 2020-12-23T02:35:35.000Z | 2022-02-20T19:30:13.000Z | Editor/MediaSource.cpp | humdingerb/Medo | 61616300a5379e4985cb44dd41af512345e3289c | [
"MIT"
] | 21 | 2020-12-23T05:01:36.000Z | 2022-01-11T08:38:26.000Z | Editor/MediaSource.cpp | humdingerb/Medo | 61616300a5379e4985cb44dd41af512345e3289c | [
"MIT"
] | 8 | 2020-12-23T04:47:34.000Z | 2021-08-29T17:18:56.000Z | /* PROJECT: Medo
* AUTHORS: Zenja Solaja, Melbourne Australia
* COPYRIGHT: Zen Yes Pty Ltd, 2019-2021
* DESCRIPTION: Media Source
*/
#include <cassert>
#if 0
extern "C" {
#include <libavformat/avformat.h>
#include <libavcodec/avcodec.h>
}
#endif
#include <MediaKit.h>
#include <StorageKit.h>
#include <interfa... | 26.861171 | 128 | 0.702495 | humdingerb |
4f71227f06f557e66b2590a75dd0259632df4e61 | 2,837 | cc | C++ | src/ppl/nn/engines/common/onnx/sequence_at_kernel.cc | aboluock/ppl.nn | 47c786bee382cc0d779f1393bfeaa40b6ff73654 | [
"Apache-2.0"
] | 1 | 2021-08-23T04:59:26.000Z | 2021-08-23T04:59:26.000Z | src/ppl/nn/engines/common/onnx/sequence_at_kernel.cc | aboluock/ppl.nn | 47c786bee382cc0d779f1393bfeaa40b6ff73654 | [
"Apache-2.0"
] | 1 | 2022-03-07T15:35:35.000Z | 2022-03-07T15:35:35.000Z | src/ppl/nn/engines/common/onnx/sequence_at_kernel.cc | aboluock/ppl.nn | 47c786bee382cc0d779f1393bfeaa40b6ff73654 | [
"Apache-2.0"
] | null | null | null | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | 34.597561 | 115 | 0.613676 | aboluock |
4f73b053bf0d70b1327b04e5f752cb1d23cc77c7 | 14,296 | cpp | C++ | thorlcr/activities/loop/thloop.cpp | timothyklemm/HPCC-Platform | 1ea50797eb59cc192cbf3c76ad70140c34ab3612 | [
"Apache-2.0"
] | null | null | null | thorlcr/activities/loop/thloop.cpp | timothyklemm/HPCC-Platform | 1ea50797eb59cc192cbf3c76ad70140c34ab3612 | [
"Apache-2.0"
] | null | null | null | thorlcr/activities/loop/thloop.cpp | timothyklemm/HPCC-Platform | 1ea50797eb59cc192cbf3c76ad70140c34ab3612 | [
"Apache-2.0"
] | null | null | null | /*##############################################################################
HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
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... | 35.473945 | 200 | 0.633254 | timothyklemm |
4f750e4f25a0b73859dead8ef859cc8b753c462b | 1,078 | cpp | C++ | tests/base/TestStress.cpp | djdron/gamesparks-cpp-base | 00b8af5dc2b58b7954cfa5d99c5ea7ded7115af8 | [
"Apache-2.0"
] | 2 | 2019-09-24T00:02:04.000Z | 2019-11-16T16:43:15.000Z | tests/base/TestStress.cpp | djdron/gamesparks-cpp-base | 00b8af5dc2b58b7954cfa5d99c5ea7ded7115af8 | [
"Apache-2.0"
] | 1 | 2020-04-29T10:19:28.000Z | 2020-04-29T10:19:28.000Z | tests/base/TestStress.cpp | djdron/gamesparks-cpp-base | 00b8af5dc2b58b7954cfa5d99c5ea7ded7115af8 | [
"Apache-2.0"
] | 3 | 2020-01-27T17:36:19.000Z | 2021-03-05T22:34:52.000Z | //
// Created by Benjamin Schulz on 13/03/15.
//
#include <gtest/gtest.h>
#include <GameSparks/GS.h>
#include <GameSparks/generated/GSRequests.h>
#include <chrono>
#include "TestPlatform.h"
/*!
* This test just randomly times out and creates/destoys gamesparks instances.
* This test will fail if any exceptions or ru... | 26.292683 | 133 | 0.630798 | djdron |
4f756435c14b7ad56d616d539bd19fc32073d2d0 | 21,081 | hpp | C++ | example/fenl/fenl_impl.hpp | Char-Aznable/kokkos | 2983b80d9aeafabb81f2c8c1c5a49b40cc0856cb | [
"BSD-3-Clause"
] | 2 | 2019-12-18T20:37:06.000Z | 2020-04-07T00:44:39.000Z | example/fenl/fenl_impl.hpp | Char-Aznable/kokkos | 2983b80d9aeafabb81f2c8c1c5a49b40cc0856cb | [
"BSD-3-Clause"
] | 1 | 2019-09-25T15:41:23.000Z | 2019-09-25T15:41:23.000Z | example/fenl/fenl_impl.hpp | Char-Aznable/kokkos | 2983b80d9aeafabb81f2c8c1c5a49b40cc0856cb | [
"BSD-3-Clause"
] | 2 | 2020-04-01T19:16:16.000Z | 2022-02-09T21:45:19.000Z | /*
//@HEADER
// ************************************************************************
//
// Kokkos v. 2.0
// Copyright (2014) Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
// the U.S. Government retains certain rights in this softw... | 35.193656 | 128 | 0.564442 | Char-Aznable |
4f77ffda8693393b63ffc2770bd6c602f7ae1a61 | 6,644 | cpp | C++ | rali/source/ring_buffer.cpp | Reza-Najafi/MIVisionX | 8b00939cea17534f7b564439c27be1bc4d725fb6 | [
"MIT"
] | null | null | null | rali/source/ring_buffer.cpp | Reza-Najafi/MIVisionX | 8b00939cea17534f7b564439c27be1bc4d725fb6 | [
"MIT"
] | 2 | 2019-11-06T19:55:49.000Z | 2020-03-31T22:36:38.000Z | rali/source/ring_buffer.cpp | Reza-Najafi/MIVisionX | 8b00939cea17534f7b564439c27be1bc4d725fb6 | [
"MIT"
] | 4 | 2019-05-21T06:45:17.000Z | 2020-03-06T23:33:42.000Z | #include <device_manager.h>
#include "ring_buffer.h"
RingBuffer::RingBuffer(unsigned buffer_depth):
BUFF_DEPTH(buffer_depth),
_dev_sub_buffer(buffer_depth),
_host_master_buffers(BUFF_DEPTH)
{
reset();
}
void RingBuffer::block_if_empty()
{
std::unique_lock<std::mutex> lock(_lock);
if... | 29.0131 | 139 | 0.662101 | Reza-Najafi |
4f7c0d2d46caaed0173edc96bae96cc7cddb91f4 | 6,989 | cpp | C++ | Kolokvijumi/2014/2014/2014View.cpp | Dunsteer/Racunarska-Grafika | 280175a491ed5a6df54377f2b2909e84c0d8fe0c | [
"MIT"
] | null | null | null | Kolokvijumi/2014/2014/2014View.cpp | Dunsteer/Racunarska-Grafika | 280175a491ed5a6df54377f2b2909e84c0d8fe0c | [
"MIT"
] | null | null | null | Kolokvijumi/2014/2014/2014View.cpp | Dunsteer/Racunarska-Grafika | 280175a491ed5a6df54377f2b2909e84c0d8fe0c | [
"MIT"
] | null | null | null |
// 2014View.cpp : implementation of the CMy2014View class
//
#include "pch.h"
#include "framework.h"
// SHARED_HANDLERS can be defined in an ATL project implementing preview, thumbnail
// and search filter handlers and allows sharing of document code with that project.
#ifndef SHARED_HANDLERS
#include "2014.... | 22.618123 | 124 | 0.667477 | Dunsteer |
4f7c39edf4c7f7e0a17357286ae47bee772a7dd2 | 1,031 | hpp | C++ | src/editor.hpp | yhamdoud/engine | 0e1e589be4eb3b50ac21f0d166a2c76f576fdeb7 | [
"MIT"
] | 4 | 2021-08-29T09:34:22.000Z | 2022-01-27T00:24:52.000Z | src/editor.hpp | yhamdoud/engine | 0e1e589be4eb3b50ac21f0d166a2c76f576fdeb7 | [
"MIT"
] | null | null | null | src/editor.hpp | yhamdoud/engine | 0e1e589be4eb3b50ac21f0d166a2c76f576fdeb7 | [
"MIT"
] | null | null | null | #pragma once
#include "glm/fwd.hpp"
#include "renderer/renderer.hpp"
#include "window.hpp"
namespace engine
{
struct Gizmo
{
bool do_snap = false;
std::array<float, 3> snap{1.f, 1.f, 1.f};
std::array<float, 6> bounds{-0.5f, -0.5f, -0.5f, 0.5f, 0.5f, 0.5f};
std::array<float, 3> bounds_snap{0.1f, 0.1f,... | 20.215686 | 71 | 0.622696 | yhamdoud |
4f7d49dd99723d1d35709d7fdd6878f1f04c85d6 | 17,514 | cpp | C++ | cpp/ioguild.cpp | lordazzi/Time-Travel-Open-Tibia-Server | 2ccf947ae12a003c03168a0ad43700ab598c50c6 | [
"MIT"
] | null | null | null | cpp/ioguild.cpp | lordazzi/Time-Travel-Open-Tibia-Server | 2ccf947ae12a003c03168a0ad43700ab598c50c6 | [
"MIT"
] | null | null | null | cpp/ioguild.cpp | lordazzi/Time-Travel-Open-Tibia-Server | 2ccf947ae12a003c03168a0ad43700ab598c50c6 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////
// OpenTibia - an opensource roleplaying game
////////////////////////////////////////////////////////////////////////
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License ... | 29.887372 | 471 | 0.641715 | lordazzi |
4f8357eb9eb65297bb087fb3c1b86ec7c9df7d4f | 952 | cpp | C++ | source/Library/Library.Shared/source/DirectionalLight.cpp | sanjay-nambiar/VolumetricLighting | 26642afc217b3e8d950f4df3e5acd3eae498acfd | [
"MIT"
] | 3 | 2017-12-08T07:36:28.000Z | 2018-09-13T08:58:02.000Z | source/Library/Library.Shared/source/DirectionalLight.cpp | sanjay-nambiar/VolumetricLighting | 26642afc217b3e8d950f4df3e5acd3eae498acfd | [
"MIT"
] | null | null | null | source/Library/Library.Shared/source/DirectionalLight.cpp | sanjay-nambiar/VolumetricLighting | 26642afc217b3e8d950f4df3e5acd3eae498acfd | [
"MIT"
] | null | null | null | #include "Library.h"
using namespace glm;
namespace Library
{
RTTI_DEFINITIONS(DirectionalLight)
DirectionalLight::DirectionalLight(Game& game) :
Light(game), mDirection(Vector3Helper::Forward), mUp(Vector3Helper::Up), mRight(Vector3Helper::Right)
{
}
const vec3& DirectionalLight::Direction() const
{
retu... | 19.833333 | 103 | 0.718487 | sanjay-nambiar |
4f84365952aa3ad676d36eb78605490bc8e43ae8 | 4,255 | cpp | C++ | tests/bitonic_sort.tests.cpp | elad8a/GPUSorter | f93eae32f2fc303159660aa76af4b03cbb79e6fc | [
"MIT"
] | null | null | null | tests/bitonic_sort.tests.cpp | elad8a/GPUSorter | f93eae32f2fc303159660aa76af4b03cbb79e6fc | [
"MIT"
] | null | null | null | tests/bitonic_sort.tests.cpp | elad8a/GPUSorter | f93eae32f2fc303159660aa76af4b03cbb79e6fc | [
"MIT"
] | null | null | null | #include "pch.hpp"
#include "catch.hpp"
#include "tests.utils.hpp"
#include "sorting_kernels.hpp"
namespace bc = boost::compute;
TEST_CASE("bitonic sort - 512 elements", "[algo] [sort]")
{
auto queue = boost::compute::system::default_queue();
auto host_vec = generate_uniformly_distributed_vec(512, -135416.0f,... | 31.992481 | 110 | 0.648179 | elad8a |
4f8483b52de57529e8eac3505fcc06f70a2d60d2 | 1,993 | cpp | C++ | Backend/ROS/src/stepper_motor/src/stepper_motor_node.cpp | IEEE-UCF/ASDR | 1ad297e5a08322431e88094c75ab2d20cf74b8d1 | [
"MIT"
] | null | null | null | Backend/ROS/src/stepper_motor/src/stepper_motor_node.cpp | IEEE-UCF/ASDR | 1ad297e5a08322431e88094c75ab2d20cf74b8d1 | [
"MIT"
] | null | null | null | Backend/ROS/src/stepper_motor/src/stepper_motor_node.cpp | IEEE-UCF/ASDR | 1ad297e5a08322431e88094c75ab2d20cf74b8d1 | [
"MIT"
] | null | null | null | /*
* Copyright 2022 Casey Sanchez
*/
#include "stepper_motor_node.hpp"
StepperMotorNode::StepperMotorNode(ros::NodeHandle const &node_handle) :
m_node_handle { node_handle }
{
int32_t stepper_motor_id;
if (!m_node_handle.getParam("stepper_motor_id", stepper_motor_id)) {
throw std::runtime_erro... | 31.140625 | 188 | 0.711992 | IEEE-UCF |
4f859ca6125ab55372fa14fd07c7a0633db9ccc1 | 1,602 | hpp | C++ | Pods/GeoFeatures/GeoFeatures/boost/range/rbegin.hpp | xarvey/Yuuuuuge | 9f4ec32f81cf813ea630ba2c44eb03970c56dad3 | [
"Apache-2.0"
] | 24 | 2015-08-25T05:35:37.000Z | 2020-10-24T14:21:59.000Z | Pods/GeoFeatures/GeoFeatures/boost/range/rbegin.hpp | xarvey/Yuuuuuge | 9f4ec32f81cf813ea630ba2c44eb03970c56dad3 | [
"Apache-2.0"
] | 97 | 2015-08-25T16:11:16.000Z | 2019-03-17T00:54:32.000Z | Pods/GeoFeatures/GeoFeatures/boost/range/rbegin.hpp | xarvey/Yuuuuuge | 9f4ec32f81cf813ea630ba2c44eb03970c56dad3 | [
"Apache-2.0"
] | 9 | 2015-08-26T03:11:38.000Z | 2018-03-21T07:16:29.000Z | // Boost.Range library
//
// Copyright Thorsten Ottosen 2003-2004. Use, modification and
// distribution is subject to the Boost Software License, Version
// 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// For more information, see http://www.boost.org/libs/rang... | 24.272727 | 97 | 0.759675 | xarvey |
4f882d9b8e4b937109c05887903d83221c234487 | 7,395 | cpp | C++ | Windows/WProjectionPursuitDialog.cpp | cas-nctu/multispec | 0bc840bdb073b5feaeec650c2da762cfa34ee37d | [
"Apache-2.0"
] | 11 | 2020-03-10T02:06:00.000Z | 2022-02-17T19:59:50.000Z | Windows/WProjectionPursuitDialog.cpp | cas-nctu/multispec | 0bc840bdb073b5feaeec650c2da762cfa34ee37d | [
"Apache-2.0"
] | null | null | null | Windows/WProjectionPursuitDialog.cpp | cas-nctu/multispec | 0bc840bdb073b5feaeec650c2da762cfa34ee37d | [
"Apache-2.0"
] | 5 | 2020-05-30T00:59:22.000Z | 2021-12-06T01:37:05.000Z | // MultiSpec
//
// Copyright 1988-2020 Purdue Research 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: https://www.apach... | 30.307377 | 101 | 0.721028 | cas-nctu |
4f888102d3cc312296179738cb5ed4c2188c3565 | 2,946 | hpp | C++ | third_party/boost/simd/arch/common/scalar/function/aligned_store.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | 6 | 2018-02-25T22:23:33.000Z | 2021-01-15T15:13:12.000Z | third_party/boost/simd/arch/common/scalar/function/aligned_store.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | null | null | null | third_party/boost/simd/arch/common/scalar/function/aligned_store.hpp | SylvainCorlay/pythran | 908ec070d837baf77d828d01c3e35e2f4bfa2bfa | [
"BSD-3-Clause"
] | 7 | 2017-12-12T12:36:31.000Z | 2020-02-10T14:27:07.000Z | //==================================================================================================
/**
Copyright 2016 NumScale SAS
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
//=====================================... | 36.825 | 100 | 0.518669 | SylvainCorlay |
4f89ba6e89de9fc6c1c6274ba55016f896e5ee36 | 10,305 | cpp | C++ | A1492/1492AC.cpp | instr3/BZOJ-solution-legacy | a71f7df2241602ad744e8ca2453a8423590d5678 | [
"MIT"
] | null | null | null | A1492/1492AC.cpp | instr3/BZOJ-solution-legacy | a71f7df2241602ad744e8ca2453a8423590d5678 | [
"MIT"
] | null | null | null | A1492/1492AC.cpp | instr3/BZOJ-solution-legacy | a71f7df2241602ad744e8ca2453a8423590d5678 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cstring>
#include <cstdlib>
#include <algorithm>
#include <cmath>
#define MAXN 100000
#define MIN(a,b) ((a) < (b) ? (a) : (b))
#define MAX(a,b) ((a) > (b) ? (a) : (b))
#define INFINITE 1e10
#define EPS 1e-8
using namespace std;
int n;
double f[MAXN + 1];
double A[MAXN + 1], B[MAXN + 1], Ra... | 27.48 | 85 | 0.29345 | instr3 |
4f8c2a3f44ed1133318c29d18d715d731484c223 | 8,252 | hpp | C++ | cppcache/src/statistics/StatArchiveWriter.hpp | austxcodemonkey/geode-native | a816ac99cbbac557629686cb2542fdc74d464338 | [
"Apache-2.0"
] | null | null | null | cppcache/src/statistics/StatArchiveWriter.hpp | austxcodemonkey/geode-native | a816ac99cbbac557629686cb2542fdc74d464338 | [
"Apache-2.0"
] | null | null | null | cppcache/src/statistics/StatArchiveWriter.hpp | austxcodemonkey/geode-native | a816ac99cbbac557629686cb2542fdc74d464338 | [
"Apache-2.0"
] | null | null | null | #pragma once
#ifndef GEODE_STATISTICS_STATARCHIVEWRITER_H_
#define GEODE_STATISTICS_STATARCHIVEWRITER_H_
/*
* 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 ownersh... | 29.471429 | 78 | 0.723825 | austxcodemonkey |
4f8e191e8e454971fdd8bbbfbe2efa8ed8dc11f1 | 656 | cpp | C++ | online-judges/leetcode/blind75/container_with_max_rainwater.cpp | zerefwayne/DSA | c767c8ffc52d8da260291217e4dfdd533c329c97 | [
"MIT"
] | 1 | 2020-10-02T01:54:07.000Z | 2020-10-02T01:54:07.000Z | online-judges/leetcode/blind75/container_with_max_rainwater.cpp | zerefwayne/data-structure-and-algorithms | c767c8ffc52d8da260291217e4dfdd533c329c97 | [
"MIT"
] | null | null | null | online-judges/leetcode/blind75/container_with_max_rainwater.cpp | zerefwayne/data-structure-and-algorithms | c767c8ffc52d8da260291217e4dfdd533c329c97 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
class Solution
{
public:
int maxArea(vector<int> &height)
{
if (height.size() < 1)
{
return 0;
}
int max_area = 0;
int l = 0;
int r = height.size() - 1;
while (l < r)
{
in... | 15.619048 | 55 | 0.373476 | zerefwayne |
4f8ef6d5b75c3e6008eabe89a7cb53edaac346ef | 1,299 | cpp | C++ | IA20-DataModelLib/src/ia20/dm/Namespace.cpp | InvenireAude/IA20-BuilderTools | 7ef0116bd2d1db83e3d3583c9059d5b2ee5462d6 | [
"Apache-2.0"
] | null | null | null | IA20-DataModelLib/src/ia20/dm/Namespace.cpp | InvenireAude/IA20-BuilderTools | 7ef0116bd2d1db83e3d3583c9059d5b2ee5462d6 | [
"Apache-2.0"
] | null | null | null | IA20-DataModelLib/src/ia20/dm/Namespace.cpp | InvenireAude/IA20-BuilderTools | 7ef0116bd2d1db83e3d3583c9059d5b2ee5462d6 | [
"Apache-2.0"
] | null | null | null | /*
* File: Namespace.cpp
*
* Copyright (C) 2021, Albert Krzymowski
*
*/
#include "Namespace.h"
#include <ia20/dm/exception/InvalidTypeDefinitionException.h>
namespace IA20 {
namespace DM {
const String& Namespace::CDefaultName("DefaultURI");
/*******************************************************************... | 27.0625 | 140 | 0.52271 | InvenireAude |
4f8f1db332c7cedca554a56a06e9392de54f6a85 | 12,376 | hpp | C++ | libs/full/async_distributed/include/hpx/async_distributed/continuation.hpp | bhumitattarde/hpx | 5b34d8d77b1664fa552445d44cd98e51dc69a74a | [
"BSL-1.0"
] | 1 | 2022-02-08T05:55:09.000Z | 2022-02-08T05:55:09.000Z | libs/full/async_distributed/include/hpx/async_distributed/continuation.hpp | deepaksuresh1411/hpx | aa18024d35fe9884a977d4b6076c764dbb8b26d1 | [
"BSL-1.0"
] | null | null | null | libs/full/async_distributed/include/hpx/async_distributed/continuation.hpp | deepaksuresh1411/hpx | aa18024d35fe9884a977d4b6076c764dbb8b26d1 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2007-2020 Hartmut Kaiser
// Copyright (c) 2016 Thomas Heller
//
// SPDX-License-Identifier: BSL-1.0
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include <hpx/config.hpp>
#inc... | 30.407862 | 80 | 0.56044 | bhumitattarde |
4f927091dec2d40358237eae2b659b90aada918a | 561 | cpp | C++ | tests/GrDrawTargetTest.cpp | tmpvar/skia.cc | 6e36ba7bf19cc7597837bb0416882ad4d699916b | [
"Apache-2.0"
] | 3 | 2015-08-16T03:44:19.000Z | 2015-08-16T17:31:59.000Z | tests/GrDrawTargetTest.cpp | tmpvar/skia.cc | 6e36ba7bf19cc7597837bb0416882ad4d699916b | [
"Apache-2.0"
] | null | null | null | tests/GrDrawTargetTest.cpp | tmpvar/skia.cc | 6e36ba7bf19cc7597837bb0416882ad4d699916b | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2013 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "Test.h"
#if SK_SUPPORT_GPU
#include "GrCaps.h"
#include "GrContext.h"
#include "GrGpu.h"
DEF_GPUTEST_FOR_ALL_CONTEXTS(GrDrawTargetPrint, reporter, ctxInfo) {
/... | 23.375 | 77 | 0.702317 | tmpvar |
4f94f38d39dd12ef70107ebb65dc11a584cc2305 | 1,130 | cpp | C++ | verify/verify-unit-test/int-div.test.cpp | NachiaVivias/library | 73091ddbb00bc59328509c8f6e662fea2b772994 | [
"CC0-1.0"
] | null | null | null | verify/verify-unit-test/int-div.test.cpp | NachiaVivias/library | 73091ddbb00bc59328509c8f6e662fea2b772994 | [
"CC0-1.0"
] | null | null | null | verify/verify-unit-test/int-div.test.cpp | NachiaVivias/library | 73091ddbb00bc59328509c8f6e662fea2b772994 | [
"CC0-1.0"
] | null | null | null | #define PROBLEM "https://judge.yosupo.jp/problem/aplusb"
#include "../../template/template.hpp"
//
#include "../../misc/int_div.hpp"
using namespace Nyaan;
vector<long long> test(long long a, long long b) {
cerr << "floor(" << a << ", " << b << ") = " << floor(a, b) << "\n";
cerr << "under(" << a << ", " << b << ... | 30.540541 | 70 | 0.440708 | NachiaVivias |
4f95ee8046bf8071aee7d933fb121602754688a1 | 1,995 | cpp | C++ | tests/juliet/testcases/CWE78_OS_Command_Injection/s03/CWE78_OS_Command_Injection__char_environment_w32_spawnv_83_bad.cpp | RanerL/analyzer | a401da4680f163201326881802ee535d6cf97f5a | [
"MIT"
] | 28 | 2017-01-20T15:25:54.000Z | 2020-03-17T00:28:31.000Z | testcases/CWE78_OS_Command_Injection/s03/CWE78_OS_Command_Injection__char_environment_w32_spawnv_83_bad.cpp | mellowCS/cwe_checker_juliet_suite | ae604f6fd94964251fbe88ef04d5287f6c1ffbe2 | [
"MIT"
] | 1 | 2017-01-20T15:26:27.000Z | 2018-08-20T00:55:37.000Z | testcases/CWE78_OS_Command_Injection/s03/CWE78_OS_Command_Injection__char_environment_w32_spawnv_83_bad.cpp | mellowCS/cwe_checker_juliet_suite | ae604f6fd94964251fbe88ef04d5287f6c1ffbe2 | [
"MIT"
] | 2 | 2019-07-15T19:07:04.000Z | 2019-09-07T14:21:04.000Z | /* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE78_OS_Command_Injection__char_environment_w32_spawnv_83_bad.cpp
Label Definition File: CWE78_OS_Command_Injection.strings.label.xml
Template File: sources-sink-83_bad.tmpl.cpp
*/
/*
* @description
* CWE: 78 OS Command Injection
* BadSource: environment Read in... | 33.25 | 144 | 0.722807 | RanerL |
4f977b37c94bcb20e99118112622e60db52bc3a6 | 5,993 | cpp | C++ | src/solutionLoader.cpp | IgnacioPomar/vsmake | 739b99fda9788ba981355164697f4b160e160f55 | [
"Unlicense"
] | null | null | null | src/solutionLoader.cpp | IgnacioPomar/vsmake | 739b99fda9788ba981355164697f4b160e160f55 | [
"Unlicense"
] | null | null | null | src/solutionLoader.cpp | IgnacioPomar/vsmake | 739b99fda9788ba981355164697f4b160e160f55 | [
"Unlicense"
] | null | null | null | /*********************************************************************************************
* Name : solutionLoader.cpp
* Description : Loads the solution file to memory
********************************************************************************************/
#include <fstream>
#include <sstream>
#include... | 31.542105 | 97 | 0.591357 | IgnacioPomar |
4f987095023e5dc47ed52199fef77da526822b78 | 84,717 | cpp | C++ | ParserHelper/Bagel/Bagel_RCompiler.cpp | BKEngine/Creator | 5cc08fb828866cfa970951a14e41c38ecd471a8d | [
"CNRI-Python"
] | 25 | 2016-11-20T15:33:09.000Z | 2022-02-22T09:35:20.000Z | ParserHelper/Bagel/Bagel_RCompiler.cpp | BKEngine/Creator | 5cc08fb828866cfa970951a14e41c38ecd471a8d | [
"CNRI-Python"
] | 3 | 2017-05-25T23:19:44.000Z | 2019-07-10T02:18:58.000Z | ParserHelper/Bagel/Bagel_RCompiler.cpp | BKEngine/Creator | 5cc08fb828866cfa970951a14e41c38ecd471a8d | [
"CNRI-Python"
] | 8 | 2016-12-23T22:40:04.000Z | 2021-08-09T04:43:11.000Z | #include "Bagel_RCompiler.h"
#define PUSHCODE(a,b,c,d,e) if(lockcode <= 0)code.code.emplace_back(a, b, c, d, e)
#define PUSHCODE2(a,b,c,d) if(lockcode <= 0)code.code.emplace_back(a, b, c, d)
#define REGSTACK(p) stacks[p]=code.code.size()-1;
#define PUSHCACHE(pos) \
if(jit){ \
PUSHCODE(Bagel_BC::BC_CACHE_NONE, pos, 0... | 27.586128 | 144 | 0.623995 | BKEngine |
4f99ab732f1c278fdebe376e1ee2bfc1e5541730 | 1,312 | cpp | C++ | Funkcje-wyniki-golfowe.cpp | michjag/My-own | 2de819b9899ada7b7c8a9dd67cfa12002b6ae59b | [
"Unlicense"
] | 1 | 2019-07-17T15:29:10.000Z | 2019-07-17T15:29:10.000Z | Funkcje-wyniki-golfowe.cpp | michjag/My-own | 2de819b9899ada7b7c8a9dd67cfa12002b6ae59b | [
"Unlicense"
] | null | null | null | Funkcje-wyniki-golfowe.cpp | michjag/My-own | 2de819b9899ada7b7c8a9dd67cfa12002b6ae59b | [
"Unlicense"
] | null | null | null | #include <iostream>
const int najwiecej = 10;
double wprowadzanie (double wyniki[], int ile_wynikow);
void wyswietlanie(const double wyniki[], int n);
void srednia(double tablica[], int n);
int main()
{
double wprowadz[najwiecej];
int rozmiar = wprowadzanie(wprowadz, najwiecej);
wyswietlanie(wprowadz, rozmiar);
sre... | 19.58209 | 74 | 0.572409 | michjag |
4f99c7ca9feed4e0a9e75d9cd2806332b524e1a6 | 19,775 | cpp | C++ | Siv3D/src/Siv3D/BigFloat/SivBigFloat.cpp | Fuyutsubaki/OpenSiv3D | 4370f6ebe28addd39bfdd75915c5a18e3e5e9273 | [
"MIT"
] | null | null | null | Siv3D/src/Siv3D/BigFloat/SivBigFloat.cpp | Fuyutsubaki/OpenSiv3D | 4370f6ebe28addd39bfdd75915c5a18e3e5e9273 | [
"MIT"
] | null | null | null | Siv3D/src/Siv3D/BigFloat/SivBigFloat.cpp | Fuyutsubaki/OpenSiv3D | 4370f6ebe28addd39bfdd75915c5a18e3e5e9273 | [
"MIT"
] | null | null | null | //-----------------------------------------------
//
// This file is part of the Siv3D Engine.
//
// Copyright (c) 2008-2018 Ryo Suzuki
// Copyright (c) 2016-2018 OpenSiv3D Project
//
// Licensed under the MIT License.
//
//-----------------------------------------------
# include <Siv3D/BigFloat.hpp>
# include <cstri... | 19.387255 | 175 | 0.574008 | Fuyutsubaki |
4f9a9bb60173c55b23cfced28cf8cd3d19aa6add | 2,116 | cpp | C++ | OSkernel/abstract-machine/apps/fceux/src/boards/subor.cpp | vocaltract/ProjectsDemonstration | 5930ea2bd225d1e04a5bdb056d0f1c0744a6fe8c | [
"BSD-3-Clause"
] | null | null | null | OSkernel/abstract-machine/apps/fceux/src/boards/subor.cpp | vocaltract/ProjectsDemonstration | 5930ea2bd225d1e04a5bdb056d0f1c0744a6fe8c | [
"BSD-3-Clause"
] | null | null | null | OSkernel/abstract-machine/apps/fceux/src/boards/subor.cpp | vocaltract/ProjectsDemonstration | 5930ea2bd225d1e04a5bdb056d0f1c0744a6fe8c | [
"BSD-3-Clause"
] | null | null | null | /* FCE Ultra - NES/Famicom Emulator
*
* Copyright notice for this file:
* Copyright (C) 2005 CaH4e3
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
... | 23.775281 | 81 | 0.663043 | vocaltract |
4f9f2ce976af4d4deb4d2cb3074cbc9900a4915d | 2,478 | cpp | C++ | SoundManager.cpp | kaitokidi/Base | ce34067eeaea346dd7ace61f6e0db4dbf44e55f6 | [
"MIT"
] | 1 | 2016-01-27T17:02:03.000Z | 2016-01-27T17:02:03.000Z | SoundManager.cpp | kaitokidi/Base | ce34067eeaea346dd7ace61f6e0db4dbf44e55f6 | [
"MIT"
] | null | null | null | SoundManager.cpp | kaitokidi/Base | ce34067eeaea346dd7ace61f6e0db4dbf44e55f6 | [
"MIT"
] | null | null | null | #include "SoundManager.hpp"
//PLACE HERE A FORWARD DECLARATION OF YOUR STATIC VARIABLES
//sf::SoundBuffer SoundManager::SOUND_NAME;
//sf::Music SoundManager::MUSIC_NAME;
/* Example:
sf::Music SoundManager::overWorldMusic;
sf::SoundBuffer SoundManager::attackBuf;
*/
std::map<std::string, ... | 28.813953 | 117 | 0.678773 | kaitokidi |
4f9f8b218af2d0ba17689fb0cc500944525a700f | 2,808 | hpp | C++ | Nacro/SDK/FN_AthenaTabsScreen_classes.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_AthenaTabsScreen_classes.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2022-01-01T22:51:59.000Z | 2022-01-08T16:14:15.000Z | Nacro/SDK/FN_AthenaTabsScreen_classes.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 8 | 2021-08-09T13:51:54.000Z | 2022-01-26T20:33:37.000Z | #pragma once
// Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
namespace SDK
{
//---------------------------------------------------------------------------
//Classes
//---------------------------------------------------------------------------
// WidgetBlueprintGeneratedClass AthenaTabsScreen.A... | 55.058824 | 644 | 0.672009 | Milxnor |
4fa4772278ad087258875dfef4a0e0ef089e6306 | 6,247 | cc | C++ | compiler/flops.cc | ir5/chainer-compiler | c6d9b9ba3175931321c1e512c17642a613c03bfc | [
"MIT"
] | null | null | null | compiler/flops.cc | ir5/chainer-compiler | c6d9b9ba3175931321c1e512c17642a613c03bfc | [
"MIT"
] | null | null | null | compiler/flops.cc | ir5/chainer-compiler | c6d9b9ba3175931321c1e512c17642a613c03bfc | [
"MIT"
] | null | null | null | #include "compiler/flops.h"
#include <iostream>
#include <compiler/graph.h>
#include <compiler/node.h>
namespace chainer_compiler {
namespace {
bool HasKnownInOuts(const Node& node) {
for (Value* value : node.inputs()) {
if (!value->type().HasKnownShape()) {
return false;
}
}
... | 28.655963 | 83 | 0.608932 | ir5 |
4fa6ab3d96332b8b590b16590be4356f1d3415ba | 2,355 | cpp | C++ | src/context.cpp | linyang0625/pipy | 747116b0a538f16ab1738f6d3d8a833b0d752d42 | [
"BSL-1.0"
] | null | null | null | src/context.cpp | linyang0625/pipy | 747116b0a538f16ab1738f6d3d8a833b0d752d42 | [
"BSL-1.0"
] | null | null | null | src/context.cpp | linyang0625/pipy | 747116b0a538f16ab1738f6d3d8a833b0d752d42 | [
"BSL-1.0"
] | null | null | null | /*
* Copyright (c) 2019 by flomesh.io
*
* Unless prior written consent has been obtained from the copyright
* owner, the following shall not be allowed.
*
* 1. The distribution of any source codes, header files, make files,
* or libraries of the software.
*
* 2. Disclosure of any source codes pertaini... | 29.074074 | 107 | 0.67431 | linyang0625 |
4fa6d46ff925181ff510b879d28953818e9264c3 | 1,115 | cpp | C++ | src/gfx/mg_material_pool.cpp | Magnutic/mg-engine | 09862497bf99198281acc8227b135777491c58d3 | [
"BSD-3-Clause"
] | null | null | null | src/gfx/mg_material_pool.cpp | Magnutic/mg-engine | 09862497bf99198281acc8227b135777491c58d3 | [
"BSD-3-Clause"
] | null | null | null | src/gfx/mg_material_pool.cpp | Magnutic/mg-engine | 09862497bf99198281acc8227b135777491c58d3 | [
"BSD-3-Clause"
] | null | null | null | //**************************************************************************************************
// This file is part of Mg Engine. Copyright (c) 2020, Magnus Bergsten.
// Mg Engine is made available under the terms of the 3-Clause BSD License.
// See LICENSE.txt in the project's root directory.
//*****************... | 30.135135 | 100 | 0.598206 | Magnutic |
4fa78115ad51f775497bb1a3114ad4cabb0dd925 | 1,976 | cpp | C++ | src/test/import_export/csv_meta_test.cpp | IanJamesMcKay/InMemoryDB | a267d9522926eca9add2ad4512f8ce352daac879 | [
"MIT"
] | 1 | 2021-04-14T11:16:52.000Z | 2021-04-14T11:16:52.000Z | src/test/import_export/csv_meta_test.cpp | IanJamesMcKay/InMemoryDB | a267d9522926eca9add2ad4512f8ce352daac879 | [
"MIT"
] | null | null | null | src/test/import_export/csv_meta_test.cpp | IanJamesMcKay/InMemoryDB | a267d9522926eca9add2ad4512f8ce352daac879 | [
"MIT"
] | 1 | 2020-11-30T13:11:04.000Z | 2020-11-30T13:11:04.000Z | #include "../base_test.hpp"
#include "gtest/gtest.h"
#include "import_export/csv_meta.hpp"
namespace opossum {
class CsvMetaTest : public BaseTest {};
TEST_F(CsvMetaTest, ProcessCsvMetaFile) {
auto meta = process_csv_meta_file("src/test/csv/sample_meta_information.csv.json");
auto meta_expected = CsvMeta{};
... | 23.247059 | 118 | 0.674089 | IanJamesMcKay |
4fa78e2a18fe3ae5b9df1e98cbfb7069741be14e | 1,319 | cpp | C++ | code/98.isValidBST.cpp | T1mzhou/LeetCode | 574540d30f5696e55799831dc3c8d8b7246b74f1 | [
"MIT"
] | 1 | 2020-10-04T13:39:34.000Z | 2020-10-04T13:39:34.000Z | code/98.isValidBST.cpp | T1mzhou/LeetCode | 574540d30f5696e55799831dc3c8d8b7246b74f1 | [
"MIT"
] | null | null | null | code/98.isValidBST.cpp | T1mzhou/LeetCode | 574540d30f5696e55799831dc3c8d8b7246b74f1 | [
"MIT"
] | null | null | null | class Solution {
public:
bool isVaildBSTBound(TreeNode* root, TreeNode* lower, TreeNode* upper)
{
if (root == NULL) return true;
if (lower != NULL && lower->val >= root->val) return false;
if (upper != NULL && upper->val <= root->val) return false;
return isVaildBSTBound(roo... | 24.886792 | 101 | 0.557998 | T1mzhou |
4fabb934df0398a44b3a20dcab237730a9218039 | 6,108 | cpp | C++ | src/slave/containerizer/mesos/isolators/windows/mem.cpp | zagrev/mesos | eefec152dffc4977183089b46fbfe37dbd19e9d7 | [
"Apache-2.0"
] | 2 | 2019-04-07T08:39:48.000Z | 2020-04-22T13:07:34.000Z | src/slave/containerizer/mesos/isolators/windows/mem.cpp | zagrev/mesos | eefec152dffc4977183089b46fbfe37dbd19e9d7 | [
"Apache-2.0"
] | 19 | 2018-09-26T14:18:14.000Z | 2021-11-30T17:29:23.000Z | src/slave/containerizer/mesos/isolators/windows/mem.cpp | zagrev/mesos | eefec152dffc4977183089b46fbfe37dbd19e9d7 | [
"Apache-2.0"
] | 7 | 2020-01-29T15:31:06.000Z | 2021-08-22T22:24:59.000Z | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | 27.513514 | 80 | 0.701703 | zagrev |
4fade36abd7c3f4e67ddee44ac418eb5abb12ed4 | 717 | cpp | C++ | train-1/word/word.cpp | CostaDiego/programming-marathon-exercises | ecb07d573b3e77a3436e3ec09c4c8628b1e4407f | [
"MIT"
] | null | null | null | train-1/word/word.cpp | CostaDiego/programming-marathon-exercises | ecb07d573b3e77a3436e3ec09c4c8628b1e4407f | [
"MIT"
] | null | null | null | train-1/word/word.cpp | CostaDiego/programming-marathon-exercises | ecb07d573b3e77a3436e3ec09c4c8628b1e4407f | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
string word;
int lower = 0;
int upper = 0;
int32_t main(){
ios::sync_with_stdio(false);
cin.tie(NULL);
cin >> word;
for (string::size_type i = 0; i < word.size(); i++) {
if (word[i] >= 97 && word[i] <= 122){
lower++;
}
... | 15.586957 | 57 | 0.390516 | CostaDiego |
4fb891c7ac553d420a594c741ec6fd334daee5f3 | 3,927 | cpp | C++ | opencl/test/unit_test/os_interface/windows/file_logger_win_tests.cpp | lukaszgotszaldintel/compute-runtime | 9b12dc43904806db07616ffb8b1c4495aa7d610f | [
"MIT"
] | 1 | 2019-03-01T13:54:45.000Z | 2019-03-01T13:54:45.000Z | opencl/test/unit_test/os_interface/windows/file_logger_win_tests.cpp | lukaszgotszaldintel/compute-runtime | 9b12dc43904806db07616ffb8b1c4495aa7d610f | [
"MIT"
] | 5 | 2019-03-26T17:26:07.000Z | 2021-03-30T12:17:10.000Z | opencl/test/unit_test/os_interface/windows/file_logger_win_tests.cpp | lukaszgotszaldintel/compute-runtime | 9b12dc43904806db07616ffb8b1c4495aa7d610f | [
"MIT"
] | 4 | 2018-05-09T10:04:27.000Z | 2018-07-12T13:33:31.000Z | /*
* Copyright (C) 2019-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "shared/source/debug_settings/debug_settings_manager.h"
#include "shared/source/gmm_helper/gmm.h"
#include "opencl/test/unit_test/fixtures/mock_execution_environment_gmm_fixture.h"
#include "opencl/test/unit_test/mocks/... | 39.27 | 92 | 0.732111 | lukaszgotszaldintel |
4fb9a9cc7afa4021583f5432611c5faa962d02e3 | 13,628 | cpp | C++ | contracts/Network/Network.cpp | KyberNetwork/eos_smart_contracts | e2db9cd6c01efe84250af08007cd78bd565f3aae | [
"MIT"
] | 7 | 2019-05-13T14:51:05.000Z | 2021-05-21T17:09:38.000Z | contracts/Network/Network.cpp | KyberNetwork/eos_smart_contracts | e2db9cd6c01efe84250af08007cd78bd565f3aae | [
"MIT"
] | 10 | 2019-04-04T11:26:49.000Z | 2019-07-28T13:47:34.000Z | contracts/Network/Network.cpp | KyberNetwork/eos_smart_contracts | e2db9cd6c01efe84250af08007cd78bd565f3aae | [
"MIT"
] | 5 | 2019-05-14T10:46:51.000Z | 2021-12-24T16:16:00.000Z | #include "Network.hpp"
#include <math.h>
ACTION Network::init(name admin, name eos_contract, name listener, bool enable) {
eosio_assert(is_account(admin), "admin account does not exist");
eosio_assert(is_account(eos_contract), "eos contract does not exist");
require_auth(_self);
state_type state_inst... | 38.388732 | 100 | 0.661286 | KyberNetwork |
4fba5a47a9bf388a1fb2937c126f256430e388f4 | 5,429 | cc | C++ | src/Core/Algorithms/Legacy/Fields/TransformMesh/ConvertMeshCoordinateSystem.cc | benjaminlarson/SCIRunGUIPrototype | ed34ee11cda114e3761bd222a71a9f397517914d | [
"Unlicense"
] | null | null | null | src/Core/Algorithms/Legacy/Fields/TransformMesh/ConvertMeshCoordinateSystem.cc | benjaminlarson/SCIRunGUIPrototype | ed34ee11cda114e3761bd222a71a9f397517914d | [
"Unlicense"
] | null | null | null | src/Core/Algorithms/Legacy/Fields/TransformMesh/ConvertMeshCoordinateSystem.cc | benjaminlarson/SCIRunGUIPrototype | ed34ee11cda114e3761bd222a71a9f397517914d | [
"Unlicense"
] | null | null | null | /*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2009 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (... | 27.558376 | 81 | 0.628661 | benjaminlarson |
4fba5b505ffea0d63ec5ea5a4a6c679db18daf52 | 4,643 | cpp | C++ | artifact/storm/src/storm-pgcl/storage/pgcl/StatementPrinterVisitor.cpp | glatteis/tacas21-artifact | 30b4f522bd3bdb4bebccbfae93f19851084a3db5 | [
"MIT"
] | null | null | null | artifact/storm/src/storm-pgcl/storage/pgcl/StatementPrinterVisitor.cpp | glatteis/tacas21-artifact | 30b4f522bd3bdb4bebccbfae93f19851084a3db5 | [
"MIT"
] | null | null | null | artifact/storm/src/storm-pgcl/storage/pgcl/StatementPrinterVisitor.cpp | glatteis/tacas21-artifact | 30b4f522bd3bdb4bebccbfae93f19851084a3db5 | [
"MIT"
] | 1 | 2022-02-05T12:39:53.000Z | 2022-02-05T12:39:53.000Z | #include "StatementPrinterVisitor.h"
#include "storm-pgcl/storage/pgcl/AssignmentStatement.h"
#include "storm-pgcl/storage/pgcl/ObserveStatement.h"
#include "storm-pgcl/storage/pgcl/IfStatement.h"
#include "storm-pgcl/storage/pgcl/LoopStatement.h"
#include "storm-pgcl/storage/pgcl/NondeterministicBranch.h"
#include "s... | 49.393617 | 196 | 0.521861 | glatteis |
4fbbd12fbbf5d2e1f7d68ffa8f2860079b33e841 | 2,442 | cpp | C++ | src/server.cpp | SKTT1Ryze/CWebServer | 3c3302273ea24d61803940c1b1ef2ed5e69c9aa1 | [
"MIT"
] | 1 | 2020-10-09T01:46:13.000Z | 2020-10-09T01:46:13.000Z | src/server.cpp | SKTT1Ryze/CWebServer | 3c3302273ea24d61803940c1b1ef2ed5e69c9aa1 | [
"MIT"
] | null | null | null | src/server.cpp | SKTT1Ryze/CWebServer | 3c3302273ea24d61803940c1b1ef2ed5e69c9aa1 | [
"MIT"
] | null | null | null | // Implementation of Server
#include "readfile.h"
#include "socket.h"
#include "prase.h"
#define _BSD_SOURCE
int main() {
Error e;
Socket s;
char rece_message[BUFFER_SIZE];
char html_context[MAX_HTML_WORD] = HTTP_HEAD;
std::vector<std::string> html_list {};
std::string h_root(html_root);
... | 28.729412 | 90 | 0.653153 | SKTT1Ryze |
4fbbd91eb9ba0ca1e86256f33d9546a62c7e9881 | 1,325 | cpp | C++ | source/Ch03/drill/chap3Drill.cpp | Fantasztikus21/UDProg-Introduction | 3828bf41bdfa483decd27aa1a9ab62b5d2633245 | [
"CC0-1.0"
] | null | null | null | source/Ch03/drill/chap3Drill.cpp | Fantasztikus21/UDProg-Introduction | 3828bf41bdfa483decd27aa1a9ab62b5d2633245 | [
"CC0-1.0"
] | null | null | null | source/Ch03/drill/chap3Drill.cpp | Fantasztikus21/UDProg-Introduction | 3828bf41bdfa483decd27aa1a9ab62b5d2633245 | [
"CC0-1.0"
] | null | null | null | #include "std_lib_facilities.h"
int main(){
cout << "Enter your name: " << endl;
string your_name;
cin >> your_name;
cout << "Enter the name of the preson you want to write to: " << endl;
string first_name;
cin >> first_name;
cout << "Enter your friend name: " << endl;
string friend_name;
cin >> friend_na... | 25.480769 | 89 | 0.587925 | Fantasztikus21 |
4fbff9cdeb45f939a8d75633d4f97c8f60ee31fe | 64 | hpp | C++ | src/boost_compute_algorithm_set_symmetric_difference.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_compute_algorithm_set_symmetric_difference.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_compute_algorithm_set_symmetric_difference.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/compute/algorithm/set_symmetric_difference.hpp>
| 32 | 63 | 0.859375 | miathedev |
4fc71af8b030ed9d54fa2687956636b5470655d9 | 665 | hpp | C++ | keops/lib/sequences/include/tao/seq/is_any.hpp | arthurhero/pykeops_backup | 3da70513be4b7af643a526fb9e74a4952ca8b50f | [
"MIT"
] | null | null | null | keops/lib/sequences/include/tao/seq/is_any.hpp | arthurhero/pykeops_backup | 3da70513be4b7af643a526fb9e74a4952ca8b50f | [
"MIT"
] | null | null | null | keops/lib/sequences/include/tao/seq/is_any.hpp | arthurhero/pykeops_backup | 3da70513be4b7af643a526fb9e74a4952ca8b50f | [
"MIT"
] | null | null | null | // Copyright (c) 2015-2019 Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/sequences/
#ifndef TAO_SEQ_IS_ANY_HPP
#define TAO_SEQ_IS_ANY_HPP
#include "config.hpp"
#ifndef TAO_SEQ_FOLD_EXPRESSIONS
#include "is_all.hpp"
#endif
#include <type_traits>
namespace tao
{
namespace seq
... | 16.219512 | 79 | 0.645113 | arthurhero |
4fc72d58575e210d16ab3a2d81862aaf3d518bdd | 903 | cpp | C++ | SDE Sheet Round-2/Day-3/Majority Element - 1.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | null | null | null | SDE Sheet Round-2/Day-3/Majority Element - 1.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | null | null | null | SDE Sheet Round-2/Day-3/Majority Element - 1.cpp | Tiger-Team-01/DSA-A-Z-Practice | e08284ffdb1409c08158dd4e90dc75dc3a3c5b18 | [
"MIT"
] | null | null | null | // Hari
// Problem - Majority Element (>N/2 times). Only 1 majority ele can exist, as all other elements cancel each other's frequency
int majorityElement(vector<int>& nums) {
// fast
ios_base::sync_with_stdio(false);
// Moore's voting algo - we pick an ele as majority ele, and inc it's count... | 37.625 | 155 | 0.580288 | Tiger-Team-01 |
4fc83a2d929f344d9fb89885649cb1d870b6947a | 9,113 | cpp | C++ | Source/10.0.18362.0/ucrt/lowio/ioinit.cpp | 825126369/UCRT | 8853304fdc2a5c216658d08b6dbbe716aa2a7b1f | [
"MIT"
] | 2 | 2021-01-27T10:19:30.000Z | 2021-02-09T06:24:30.000Z | Source/10.0.18362.0/ucrt/lowio/ioinit.cpp | 825126369/UCRT | 8853304fdc2a5c216658d08b6dbbe716aa2a7b1f | [
"MIT"
] | null | null | null | Source/10.0.18362.0/ucrt/lowio/ioinit.cpp | 825126369/UCRT | 8853304fdc2a5c216658d08b6dbbe716aa2a7b1f | [
"MIT"
] | 1 | 2021-01-27T10:19:36.000Z | 2021-01-27T10:19:36.000Z | //
// ioinit.cpp
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// Defines initialization and termination routines for the lowio library, along
// with global data shared by most of the lowio library.
//
#include <corecrt_internal_lowio.h>
#include <corecrt_internal_stdio.h>
// This is a spe... | 34.259398 | 99 | 0.647098 | 825126369 |
4fc86f57bd2c78b1805dc120d406927a820a8822 | 15,738 | cpp | C++ | far/platform.cpp | qlost/FarManager | f6a938157b306ef510bcf02ee404b78e1353e057 | [
"BSD-3-Clause"
] | 1 | 2019-03-09T03:13:22.000Z | 2019-03-09T03:13:22.000Z | far/platform.cpp | qlost/FarManager | f6a938157b306ef510bcf02ee404b78e1353e057 | [
"BSD-3-Clause"
] | null | null | null | far/platform.cpp | qlost/FarManager | f6a938157b306ef510bcf02ee404b78e1353e057 | [
"BSD-3-Clause"
] | null | null | null | /*
platform.cpp
Враперы вокруг некоторых WinAPI функций
*/
/*
Copyright © 1996 Eugene Roshal
Copyright © 2000 Far Group
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code... | 25.100478 | 233 | 0.716228 | qlost |
4fc87690f58da2dbf520b2a1025c4df7fea2eed4 | 1,334 | hpp | C++ | src/src_normal/response/ResponseGenerator.hpp | aprilmayjune135/42_web_server | 46bc46dd6a0008119842e3848d4fe57fcd84526b | [
"MIT"
] | 2 | 2022-01-04T13:07:46.000Z | 2022-01-04T13:08:50.000Z | src/src_normal/response/ResponseGenerator.hpp | aprilmayjune135/web-server | 46bc46dd6a0008119842e3848d4fe57fcd84526b | [
"MIT"
] | 3 | 2021-09-27T08:35:34.000Z | 2021-11-25T09:49:52.000Z | src/src_normal/response/ResponseGenerator.hpp | aprilmayjune135/web-server | 46bc46dd6a0008119842e3848d4fe57fcd84526b | [
"MIT"
] | 2 | 2021-11-17T20:26:55.000Z | 2021-12-22T21:54:24.000Z | #pragma once
#include "utility/HeaderField.hpp"
#include <vector>
struct Response;
class ResponseGenerator
{
private:
typedef HeaderField::const_iterator header_iterator;
typedef std::vector< std::string> method_type;
public:
ResponseGenerator();
private:
ResponseGenerator(ResponseGenerator const & src)... | 30.318182 | 70 | 0.763868 | aprilmayjune135 |
4fca041c0b214685d2e089af10ba8facc622ec35 | 24,053 | cpp | C++ | module/mpc-be/SRC/src/apps/mplayerc/PlayerSeekBar.cpp | 1aq/PBox | 67ced599ee36ceaff097c6584f8100cf96006dfe | [
"MIT"
] | null | null | null | module/mpc-be/SRC/src/apps/mplayerc/PlayerSeekBar.cpp | 1aq/PBox | 67ced599ee36ceaff097c6584f8100cf96006dfe | [
"MIT"
] | null | null | null | module/mpc-be/SRC/src/apps/mplayerc/PlayerSeekBar.cpp | 1aq/PBox | 67ced599ee36ceaff097c6584f8100cf96006dfe | [
"MIT"
] | null | null | null | /*
* (C) 2003-2006 Gabest
* (C) 2006-2020 see Authors.txt
*
* This file is part of MPC-BE.
*
* MPC-BE is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 3 of the License, or
* (at your opt... | 25.975162 | 137 | 0.680206 | 1aq |
4fcd3f34c5d20e94685ef559fdd746318e523dd3 | 836 | cpp | C++ | Linked List/Singly_Linked_List/Reverse Linked List/Iterative Method.cpp | shouryagupta21/Fork_CPP | 8f5baed045ef430cca19d871c8854abc3b6ad44f | [
"MIT"
] | 8 | 2021-02-14T13:13:27.000Z | 2022-01-08T23:58:32.000Z | Linked List/Singly_Linked_List/Reverse Linked List/Iterative Method.cpp | shouryagupta21/Fork_CPP | 8f5baed045ef430cca19d871c8854abc3b6ad44f | [
"MIT"
] | 17 | 2021-02-28T17:03:50.000Z | 2021-10-19T13:02:03.000Z | Linked List/Singly_Linked_List/Reverse Linked List/Iterative Method.cpp | shouryagupta21/Fork_CPP | 8f5baed045ef430cca19d871c8854abc3b6ad44f | [
"MIT"
] | 15 | 2021-03-01T03:54:29.000Z | 2021-10-19T18:29:00.000Z | #include <bits/stdc++.h>
using namespace std;
struct Node{
int data;
Node* next;
Node(int x){
data=x;
next=NULL;
}
};
void printlist(Node *head){
Node *curr=head;
while(curr!=NULL){
cout<<curr->data<<" ";
curr=curr->next;
}cout<<endl;
}
Node *reverse(Node ... | 18.577778 | 65 | 0.551435 | shouryagupta21 |
4fcdb7f1eb5e95980f92b5779ce2ed5065b39cad | 1,749 | cpp | C++ | Lecture Slides/cpp tutorial/code/numeric_solution.cpp | Alexhuyi/cme213-spring-2021 | 3cc49d369f1041c0cf4f960cb6efa28c04acdf60 | [
"MIT"
] | null | null | null | Lecture Slides/cpp tutorial/code/numeric_solution.cpp | Alexhuyi/cme213-spring-2021 | 3cc49d369f1041c0cf4f960cb6efa28c04acdf60 | [
"MIT"
] | null | null | null | Lecture Slides/cpp tutorial/code/numeric_solution.cpp | Alexhuyi/cme213-spring-2021 | 3cc49d369f1041c0cf4f960cb6efa28c04acdf60 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <algorithm>
#include <numeric>
#include <cmath>
double sum_every_other_element(const std::vector<double>& vec)
{
// We want to sum every other element in this vector i.e. vec[0] + vec[2] + ....
// To exercise std::iota and std::accumulate, we'll do it in the foll... | 35.693878 | 103 | 0.616924 | Alexhuyi |
4fce2546f6df91bb154dda69158eca67f8c74dac | 8,529 | cpp | C++ | source/thirdparty/src/md4.cpp | prg318/Raze | 4ff4fa643bcea6a19a6cce5f06dd436c454b88f3 | [
"RSA-MD"
] | 5 | 2021-07-31T03:34:09.000Z | 2021-08-31T21:43:50.000Z | source/thirdparty/src/md4.cpp | prg318/Raze | 4ff4fa643bcea6a19a6cce5f06dd436c454b88f3 | [
"RSA-MD"
] | null | null | null | source/thirdparty/src/md4.cpp | prg318/Raze | 4ff4fa643bcea6a19a6cce5f06dd436c454b88f3 | [
"RSA-MD"
] | null | null | null | /* MD4C.C - RSA Data Security, Inc., MD4 message-digest algorithm
Modified from original version published in RFC1320 by
Jonathon Fowler (jf@jonof.id.au)
*/
/* Copyright (C) 1990-2, RSA Data Security, Inc. All rights reserved.
License to copy and use this software is granted provided that it
is identifie... | 30.902174 | 84 | 0.53746 | prg318 |
4fce36b4e12172b2f0fb13fe8f191d21c15919aa | 8,223 | cpp | C++ | Engine/source/gfx/gfxFontRenderBatcher.cpp | Parcons/Torque3D | 516163fd5debea9c91b558046d858f5f56fc198d | [
"MIT"
] | 417 | 2020-06-01T15:55:15.000Z | 2022-03-31T12:50:51.000Z | Engine/source/gfx/gfxFontRenderBatcher.cpp | Ashry00/Torque3D | 33e3e41c8b7eb41c743a589558bc21302207ef97 | [
"MIT"
] | 186 | 2020-06-02T19:12:39.000Z | 2022-02-15T02:22:27.000Z | Engine/source/gfx/gfxFontRenderBatcher.cpp | Ashry00/Torque3D | 33e3e41c8b7eb41c743a589558bc21302207ef97 | [
"MIT"
] | 84 | 2020-06-01T15:54:44.000Z | 2022-03-24T13:52:59.000Z | //-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 restrictio... | 33.70082 | 109 | 0.611577 | Parcons |
4fcea3e8e3aa2a62795dbd91ef7b3d757930b7ba | 10,256 | cc | C++ | cpp/src/arrow/compute/kernels/aggregate_var_std.cc | tpboudreau/arrow | b93f38a3ea0ef2723728648b719023a69b70d9b6 | [
"Apache-2.0"
] | null | null | null | cpp/src/arrow/compute/kernels/aggregate_var_std.cc | tpboudreau/arrow | b93f38a3ea0ef2723728648b719023a69b70d9b6 | [
"Apache-2.0"
] | 1 | 2022-02-23T21:25:21.000Z | 2022-02-23T21:25:21.000Z | cpp/src/arrow/compute/kernels/aggregate_var_std.cc | tpboudreau/arrow | b93f38a3ea0ef2723728648b719023a69b70d9b6 | [
"Apache-2.0"
] | 2 | 2020-09-12T09:15:37.000Z | 2020-10-12T06:59:06.000Z | // Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. The ASF licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may... | 35.243986 | 89 | 0.661174 | tpboudreau |
4fd07d21f25ecaddea9412aa0c4bf320b88e2dc0 | 11,933 | cpp | C++ | httpserver/https_client.cpp | Vaizon-Project/vaizon-storage-server | ce8f17ce077aa963d6c4882bd439eeed54ea4af0 | [
"MIT"
] | null | null | null | httpserver/https_client.cpp | Vaizon-Project/vaizon-storage-server | ce8f17ce077aa963d6c4882bd439eeed54ea4af0 | [
"MIT"
] | null | null | null | httpserver/https_client.cpp | Vaizon-Project/vaizon-storage-server | ce8f17ce077aa963d6c4882bd439eeed54ea4af0 | [
"MIT"
] | null | null | null | #include "https_client.h"
#include "vaizon_logger.h"
#include "net_stats.h"
#include "signature.h"
#include <openssl/x509.h>
#include <boost/algorithm/string/erase.hpp>
namespace vaizon {
using error_code = boost::system::error_code;
void make_https_request(boost::asio::io_context& ioc,
cons... | 35.097059 | 114 | 0.587866 | Vaizon-Project |
4fd2454e54a51740eb35a43cabe224fc6f1e57a2 | 42,063 | cc | C++ | src/compiler/int64-lowering.cc | patil215/v8 | bb941b58df9ee1e4048b69a555a2ce819fb819ed | [
"BSD-3-Clause"
] | 1 | 2019-01-28T21:10:27.000Z | 2019-01-28T21:10:27.000Z | src/compiler/int64-lowering.cc | nirikshan/v8 | 0152536def3ca437b1b3a79023b6923b0d8880b2 | [
"BSD-3-Clause"
] | null | null | null | src/compiler/int64-lowering.cc | nirikshan/v8 | 0152536def3ca437b1b3a79023b6923b0d8880b2 | [
"BSD-3-Clause"
] | 3 | 2019-03-11T14:35:18.000Z | 2021-07-01T07:51:00.000Z | // Copyright 2014 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "src/compiler/int64-lowering.h"
#include "src/compiler/common-operator.h"
#include "src/compiler/diamond.h"
#include "src/compiler/graph.h"
#i... | 39.794702 | 80 | 0.593372 | patil215 |
4fd4ce730f9de220f0c312cd94f6d6bc0579a5de | 966 | cc | C++ | sorting/c++/selectionsort.cc | shouhardik/Data-Structures-And-Algorithms-1 | 6cef8caa0eab308ea751ffb3376f8d89d1fcb470 | [
"MIT"
] | 26 | 2021-05-26T04:20:09.000Z | 2022-03-06T15:26:56.000Z | sorting/c++/selectionsort.cc | shouhardik/Data-Structures-And-Algorithms-1 | 6cef8caa0eab308ea751ffb3376f8d89d1fcb470 | [
"MIT"
] | 47 | 2021-10-06T07:22:48.000Z | 2021-10-21T10:57:15.000Z | sorting/c++/selectionsort.cc | shouhardik/Data-Structures-And-Algorithms-1 | 6cef8caa0eab308ea751ffb3376f8d89d1fcb470 | [
"MIT"
] | 61 | 2021-10-06T07:33:59.000Z | 2021-11-27T15:54:25.000Z | #include <algorithm>
#include <iostream>
using namespace std;
void
selectionsort(int a[], int n)
{
for (int i = 0; i < n - 1; ++i) {
int min = i;
for (int j = i + 1; j < n; ++j) {
if (a[j] < a[min])
min = j;
}
swap(a[min], a[i]);
}
}
int
min_i(int ... | 16.655172 | 57 | 0.415114 | shouhardik |
4fd5751a1116560782f012d70843c093a6da0c86 | 1,329 | cpp | C++ | client/Utils/NetworkUtils.cpp | gitdnd/NovusCore-Client | 51e76ffe579734cb93a76b6f6d6db8bec8855676 | [
"MIT"
] | 29 | 2019-03-30T12:56:50.000Z | 2022-03-10T05:44:14.000Z | client/Utils/NetworkUtils.cpp | gitdnd/NovusCore-Client | 51e76ffe579734cb93a76b6f6d6db8bec8855676 | [
"MIT"
] | 7 | 2020-01-16T13:55:46.000Z | 2021-07-17T16:40:13.000Z | client/Utils/NetworkUtils.cpp | gitdnd/NovusCore-Client | 51e76ffe579734cb93a76b6f6d6db8bec8855676 | [
"MIT"
] | 10 | 2019-07-01T20:27:08.000Z | 2021-12-19T16:57:33.000Z | #include "NetworkUtils.h"
#include "../ECS/Components/Network/AuthenticationSingleton.h"
#include "../ECS/Components/Network/ConnectionSingleton.h"
#include "../ECS/Systems/Network/ConnectionSystems.h"
namespace NetworkUtils
{
void InitNetwork(entt::registry* registry)
{
ConnectionSingleton& connection... | 33.225 | 100 | 0.664409 | gitdnd |
4fd932a4ebbb78b08213e85af084f3b5234fe3f5 | 14,772 | cpp | C++ | proxygen/lib/http/structuredheaders/test/StructuredHeadersEncoderTest.cpp | waseembasheer/proxygen | 38ef4eba6153a9446d6af3f308ffa80d3fc280a6 | [
"BSD-3-Clause"
] | null | null | null | proxygen/lib/http/structuredheaders/test/StructuredHeadersEncoderTest.cpp | waseembasheer/proxygen | 38ef4eba6153a9446d6af3f308ffa80d3fc280a6 | [
"BSD-3-Clause"
] | null | null | null | proxygen/lib/http/structuredheaders/test/StructuredHeadersEncoderTest.cpp | waseembasheer/proxygen | 38ef4eba6153a9446d6af3f308ffa80d3fc280a6 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <proxygen/lib/http/structuredheaders/StructuredHeadersEncoder.h>
#include <folly/Conv.h>
#in... | 26.712477 | 79 | 0.719672 | waseembasheer |
4fda1ebcb93f756ee8cb5e202987d3f01b31e751 | 2,102 | cpp | C++ | src/classes/Parser.cpp | thibautcornolti/plazza | 253b0dd9f76179aa2ef7e98050fcb7c2bc6c4b25 | [
"MIT"
] | null | null | null | src/classes/Parser.cpp | thibautcornolti/plazza | 253b0dd9f76179aa2ef7e98050fcb7c2bc6c4b25 | [
"MIT"
] | null | null | null | src/classes/Parser.cpp | thibautcornolti/plazza | 253b0dd9f76179aa2ef7e98050fcb7c2bc6c4b25 | [
"MIT"
] | null | null | null | /*
** EPITECH PROJECT, 2018
** cpp_plazza
** File description:
** Parser
*/
#include "Parser.hpp"
const std::regex Plazza::Parser::validator("^[^\\s]+(?:\\s+[^\\s]+?)*\\s+(?:"
"IP_ADDRESS|PHONE_NUMBER|EMAIL_"
"ADDRESS)$");
Plazza::Parser::Parser()
{
}
Plazza::Parser::~Parser()
{
}
std::vector<std::... | 22.847826 | 77 | 0.628925 | thibautcornolti |
4fdbdf921ec11f062d3de712db314bd3cbed3e37 | 14,337 | cc | C++ | thirdparty/aria2/src/DefaultBtMessageFactory.cc | deltegic/deltegic | 9b4f3a505a6842db52efbe850150afbab3af5e2f | [
"BSD-3-Clause"
] | null | null | null | thirdparty/aria2/src/DefaultBtMessageFactory.cc | deltegic/deltegic | 9b4f3a505a6842db52efbe850150afbab3af5e2f | [
"BSD-3-Clause"
] | 2 | 2021-04-08T08:46:23.000Z | 2021-04-08T08:57:58.000Z | thirdparty/aria2/src/DefaultBtMessageFactory.cc | deltegic/deltegic | 9b4f3a505a6842db52efbe850150afbab3af5e2f | [
"BSD-3-Clause"
] | null | null | null | /* <!-- copyright */
/*
* aria2 - The high speed download utility
*
* Copyright (C) 2006 Tatsuhiro Tsujikawa
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the Lice... | 30.43949 | 80 | 0.704471 | deltegic |
4fdddd2fd162a31267ea76eed0419303afd8f6d2 | 1,919 | cpp | C++ | source/ashes/renderer/D3D11Renderer/Core/D3D11Display.cpp | DragonJoker/Ashes | a6ed950b3fd8fb9626c60b4291fbd52ea75ac66e | [
"MIT"
] | 227 | 2018-09-17T16:03:35.000Z | 2022-03-19T02:02:45.000Z | source/ashes/renderer/D3D11Renderer/Core/D3D11Display.cpp | DragonJoker/RendererLib | 0f8ad8edec1b0929ebd10247d3dd0a9ee8f8c91a | [
"MIT"
] | 39 | 2018-02-06T22:22:24.000Z | 2018-08-29T07:11:06.000Z | source/ashes/renderer/D3D11Renderer/Core/D3D11Display.cpp | DragonJoker/Ashes | a6ed950b3fd8fb9626c60b4291fbd52ea75ac66e | [
"MIT"
] | 8 | 2019-05-04T10:33:32.000Z | 2021-04-05T13:19:27.000Z | /*
This file belongs to Ashes.
See LICENSE file in root folder.
*/
#include "Core/D3D11Display.hpp"
#include "Core/D3D11DisplayMode.hpp"
#include "ashesd3d11_api.hpp"
namespace ashes::d3d11
{
DisplayKHR::DisplayKHR( VkPhysicalDevice physicalDevice
, VkExtent2D const & extent
, VkFormat format
, std::vector< D... | 24.291139 | 106 | 0.694633 | DragonJoker |
4fdfddd95d62da53ffaf36169f4342df0d42282c | 3,199 | hh | C++ | include/DetectionSystemTestPlastics.hh | hbidaman/detectorSimulations_v10 | 6ceae8e9561638d5a3c886571f60141abc09922c | [
"MIT"
] | null | null | null | include/DetectionSystemTestPlastics.hh | hbidaman/detectorSimulations_v10 | 6ceae8e9561638d5a3c886571f60141abc09922c | [
"MIT"
] | null | null | null | include/DetectionSystemTestPlastics.hh | hbidaman/detectorSimulations_v10 | 6ceae8e9561638d5a3c886571f60141abc09922c | [
"MIT"
] | null | null | null | //
// ********************************************************************
// * License and Disclaimer *
// * *
// * The Geant4 software is copyright of the Copyright Holders of *
// * the Geant4 Collaboration... | 34.397849 | 85 | 0.603314 | hbidaman |
4fe0347b16584fa2acab8072cb9ad3fde1391e77 | 25,015 | cc | C++ | src/analyzer/protocol/icmp/ICMP.cc | markh15/zeek | b41cb78f8d6e205d49e175aef2d2279918809cf7 | [
"Apache-2.0"
] | null | null | null | src/analyzer/protocol/icmp/ICMP.cc | markh15/zeek | b41cb78f8d6e205d49e175aef2d2279918809cf7 | [
"Apache-2.0"
] | null | null | null | src/analyzer/protocol/icmp/ICMP.cc | markh15/zeek | b41cb78f8d6e205d49e175aef2d2279918809cf7 | [
"Apache-2.0"
] | null | null | null | // See the file "COPYING" in the main distribution directory for copyright.
#include "ICMP.h"
#include <algorithm>
#include "zeek-config.h"
#include "IP.h"
#include "Net.h"
#include "NetVar.h"
#include "Event.h"
#include "Conn.h"
#include "Desc.h"
#include "Reporter.h"
#include "events.bif.h"
#include <netinet/ic... | 26.754011 | 129 | 0.68335 | markh15 |
4fe0ef12a33b9970484ed652a156ee4d623f2fa7 | 455 | cpp | C++ | tests/test_set_default.cpp | seanmiddleditch/logxx | 15d8fa37d20e141b62501e03ee0b4509a3ec688e | [
"Unlicense"
] | 3 | 2019-02-27T17:55:07.000Z | 2020-06-03T14:41:55.000Z | tests/test_set_default.cpp | seanmiddleditch/logxx | 15d8fa37d20e141b62501e03ee0b4509a3ec688e | [
"Unlicense"
] | null | null | null | tests/test_set_default.cpp | seanmiddleditch/logxx | 15d8fa37d20e141b62501e03ee0b4509a3ec688e | [
"Unlicense"
] | null | null | null | #include "logxx/logger_ostream.h"
#include <sstream>
#include <doctest/doctest.h>
DOCTEST_TEST_CASE("set_default_logger") {
std::ostringstream str;
logxx::logger_ostream stream(str);
logxx::logger_base* old_default = nullptr;
logxx::set_default_logger(&stream, &old_default);
LOGXX_LOG_INFO("testin... | 28.4375 | 74 | 0.727473 | seanmiddleditch |
4fe1834fe30679fff915b412e445fa4756c89707 | 1,440 | hpp | C++ | arduino/libraries/LovyanGFX/src/lgfx/v1_autodetect/LGFX_AutoDetect_OpenCV.hpp | Mchaney3/AXSResearch | 6843b833a95010014bb3113ca59dda3b5e1c3663 | [
"Unlicense"
] | null | null | null | arduino/libraries/LovyanGFX/src/lgfx/v1_autodetect/LGFX_AutoDetect_OpenCV.hpp | Mchaney3/AXSResearch | 6843b833a95010014bb3113ca59dda3b5e1c3663 | [
"Unlicense"
] | null | null | null | arduino/libraries/LovyanGFX/src/lgfx/v1_autodetect/LGFX_AutoDetect_OpenCV.hpp | Mchaney3/AXSResearch | 6843b833a95010014bb3113ca59dda3b5e1c3663 | [
"Unlicense"
] | null | null | null | /*----------------------------------------------------------------------------/
Lovyan GFX - Graphics library for embedded devices.
Original Source:
https://github.com/lovyan03/LovyanGFX/
Licence:
[FreeBSD](https://github.com/lovyan03/LovyanGFX/blob/master/license.txt)
Author:
[lovyan03](https://twitter.com/lov... | 24.827586 | 79 | 0.535417 | Mchaney3 |
4fe1ab32aefce67383dadd305dc890f2e8185a7f | 4,005 | cpp | C++ | test/test_struct.cpp | roshanr95/compute | 377e509acd16af466cdb133d70e2dcd525ec1a87 | [
"BSL-1.0"
] | null | null | null | test/test_struct.cpp | roshanr95/compute | 377e509acd16af466cdb133d70e2dcd525ec1a87 | [
"BSL-1.0"
] | null | null | null | test/test_struct.cpp | roshanr95/compute | 377e509acd16af466cdb133d70e2dcd525ec1a87 | [
"BSL-1.0"
] | 1 | 2020-04-09T15:56:37.000Z | 2020-04-09T15:56:37.000Z | //---------------------------------------------------------------------------//
// Copyright (c) 2013-2014 Kyle Lutz <kyle.r.lutz@gmail.com>
//
// 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
//
// See http://boosto... | 31.289063 | 81 | 0.641448 | roshanr95 |
4fea47d223f85698a6c221214d8b678072252820 | 3,088 | cc | C++ | src/kokkostest/KokkosCore/kokkoshost/ProductBase.cc | alexstrel/pixeltrack-standalone | 0b625eef0ef0b5c0f018d9b466457c5575b3442c | [
"Apache-2.0"
] | 9 | 2021-03-02T08:40:18.000Z | 2022-01-24T14:31:40.000Z | src/kokkostest/KokkosCore/kokkoshost/ProductBase.cc | alexstrel/pixeltrack-standalone | 0b625eef0ef0b5c0f018d9b466457c5575b3442c | [
"Apache-2.0"
] | 158 | 2020-03-22T19:46:40.000Z | 2022-03-24T09:51:35.000Z | src/kokkostest/KokkosCore/kokkoshost/ProductBase.cc | alexstrel/pixeltrack-standalone | 0b625eef0ef0b5c0f018d9b466457c5575b3442c | [
"Apache-2.0"
] | 26 | 2020-03-20T15:18:41.000Z | 2022-03-14T16:58:07.000Z | #include "KokkosCore/ProductBase.h"
#ifdef KOKKOS_ENABLE_CUDA
#include "CUDACore/cudaCheck.h"
#include "CUDACore/eventWorkHasCompleted.h"
namespace {
struct CallbackData {
edm::WaitingTaskWithArenaHolder holder;
int device;
};
void CUDART_CB cudaScopedContextCallback(cudaStream_t streamId, cudaError_t ... | 40.631579 | 120 | 0.638925 | alexstrel |
4fec19f0415d81a11c61c9a98235f12f00b0fa8e | 1,499 | cpp | C++ | src/medGui/commonWidgets/medButton.cpp | papadop/medInria-public | fd8bec14c97bb95bf4d58a60741ef3b7c159f757 | [
"BSD-4-Clause"
] | null | null | null | src/medGui/commonWidgets/medButton.cpp | papadop/medInria-public | fd8bec14c97bb95bf4d58a60741ef3b7c159f757 | [
"BSD-4-Clause"
] | null | null | null | src/medGui/commonWidgets/medButton.cpp | papadop/medInria-public | fd8bec14c97bb95bf4d58a60741ef3b7c159f757 | [
"BSD-4-Clause"
] | null | null | null | /*=========================================================================
medInria
Copyright (c) INRIA 2013. All rights reserved.
See LICENSE.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
====... | 21.414286 | 83 | 0.623749 | papadop |
4fed763fc16ff7cba9cdc5101e3a2f755fc996ee | 930 | cpp | C++ | src/Ball.cpp | Swaift/rpg | b4e9ecb68b85c6859a3984aa1234f377c56633fa | [
"MIT"
] | 2 | 2017-03-02T01:00:37.000Z | 2017-03-02T01:00:47.000Z | src/Ball.cpp | Swaift/pong | b4e9ecb68b85c6859a3984aa1234f377c56633fa | [
"MIT"
] | null | null | null | src/Ball.cpp | Swaift/pong | b4e9ecb68b85c6859a3984aa1234f377c56633fa | [
"MIT"
] | null | null | null | #include <SFML/Graphics.hpp>
#include "constants.hpp"
#include "Ball.hpp"
#include <cstdlib> // srand() rand()
#include <ctime> // time()
sf::Ball::Ball(float radius)
: CircleShape(radius)
, dx(0)
, dy(0)
{
std::srand((int) std::time(NULL));
reset();
}
void sf::Ball::reset() {
// place ball ra... | 21.627907 | 97 | 0.593548 | Swaift |
4feed285ee14e7f147ef06f6c7ffbe13bd3f5c5a | 8,825 | cpp | C++ | src/common/Trek Server/trek-svc/CfdpHandler.cpp | gohypergiant/payload-command-console | 2444555ff634f54b5e78f38dc18c777735ef6835 | [
"MIT"
] | 4 | 2021-02-01T22:28:50.000Z | 2021-08-11T23:15:17.000Z | src/common/Trek Server/trek-svc/CfdpHandler.cpp | gohypergiant/payload-command-console | 2444555ff634f54b5e78f38dc18c777735ef6835 | [
"MIT"
] | null | null | null | src/common/Trek Server/trek-svc/CfdpHandler.cpp | gohypergiant/payload-command-console | 2444555ff634f54b5e78f38dc18c777735ef6835 | [
"MIT"
] | null | null | null | #include "CfdpHandler.h"
#include "toolkit_cfdp_api_ansi_c.h"
#include "toolkit_cfdp_api_error_codes.h"
#include "toolkit_ds_api_error_codes.h"
#include "json.hpp"
#include <string>
#include "util.h"
#include <sys/timeb.h>
#include <iostream>
#ifdef _WIN32
#include "winsyslog.h"
#else
#include <syslog.h>
#endif
usin... | 28.376206 | 131 | 0.727705 | gohypergiant |
4fef643658f2f00061570f04ca86b269e35b761c | 1,522 | cpp | C++ | examples/singleton5.cpp | erez-strauss/init_singleton | 1bb6dce63e72bc0cc03c690d2ec1c4d11327f47d | [
"MIT"
] | 3 | 2019-12-31T05:38:44.000Z | 2020-01-07T14:25:00.000Z | examples/singleton5.cpp | erez-strauss/init_singleton | 1bb6dce63e72bc0cc03c690d2ec1c4d11327f47d | [
"MIT"
] | null | null | null | examples/singleton5.cpp | erez-strauss/init_singleton | 1bb6dce63e72bc0cc03c690d2ec1c4d11327f47d | [
"MIT"
] | null | null | null | //
// Created by erez on 12/10/19.
//
#include <singleton.h>
#include <iostream>
namespace es::init {
class std_init
{
public:
std_init() { volatile ::std::ios_base::Init x; }
};
} // namespace es::init
template<unsigned V>
class Data
{
public:
Data()
{
es::init::singleton<es::init::std_init>::... | 20.849315 | 113 | 0.545992 | erez-strauss |
4ff0488741013efb3c56dfb93223edec72e91a87 | 763 | cpp | C++ | test/best_match.cpp | badair/bind_parser | b61648416b7951569732ad8cb35134ac7121aae5 | [
"BSL-1.0"
] | null | null | null | test/best_match.cpp | badair/bind_parser | b61648416b7951569732ad8cb35134ac7121aae5 | [
"BSL-1.0"
] | 1 | 2017-02-26T10:30:26.000Z | 2017-02-26T10:30:26.000Z | test/best_match.cpp | badair/bind_parser | b61648416b7951569732ad8cb35134ac7121aae5 | [
"BSL-1.0"
] | null | null | null | /*
Copyright Barrett Adair 2016
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#include <cassert>
#include <type_traits>
#include <functional>
#include <iostream>
#include <sstream>
#include <memory>
#include <iostream>
#in... | 20.621622 | 78 | 0.682831 | badair |
4ff0cc08baee6bff23699aa5b0d820839bf1f171 | 1,337 | cpp | C++ | Source/PacketFileLogger.cpp | sh4k3n/RakNet | 32b8c230b8a9c72542d0eb0d291eec758bb1e970 | [
"BSD-2-Clause"
] | 4 | 2019-10-05T20:01:22.000Z | 2021-11-30T15:22:03.000Z | Source/PacketFileLogger.cpp | sh4k3n/RakNet | 32b8c230b8a9c72542d0eb0d291eec758bb1e970 | [
"BSD-2-Clause"
] | null | null | null | Source/PacketFileLogger.cpp | sh4k3n/RakNet | 32b8c230b8a9c72542d0eb0d291eec758bb1e970 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2014, Oculus VR, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
... | 21.564516 | 81 | 0.690352 | sh4k3n |
4ff2363c7f375a376d787b7e9c2ca3173c37ec0d | 1,863 | cpp | C++ | test/container/array/static.3d.cpp | jfalcou/kiwaku | 1115516643245f61c5412b837e0be9cbff47608f | [
"MIT"
] | 16 | 2020-11-17T18:25:16.000Z | 2022-03-19T15:12:19.000Z | test/container/array/static.3d.cpp | jfalcou/kiwaku | 1115516643245f61c5412b837e0be9cbff47608f | [
"MIT"
] | 6 | 2021-08-17T16:13:46.000Z | 2022-03-04T09:32:48.000Z | test/container/array/static.3d.cpp | jfalcou/kiwaku | 1115516643245f61c5412b837e0be9cbff47608f | [
"MIT"
] | null | null | null | //==================================================================================================
/**
KIWAKU - Containers Well Made
Copyright 2020 Joel FALCOU
Licensed under the MIT License <http://opensource.org/licenses/MIT>.
SPDX-License-Identifier: MIT
**/
//=============================================... | 28.227273 | 100 | 0.552335 | jfalcou |
4ff4206814c58d7fa695f1e2093a56b722fe9374 | 3,732 | hpp | C++ | libsynthpp/src/LSP/Base/Sample.hpp | my04337/libsynthpp | 99584d0e568e6c92a5c298d4fdcde277fe7511f1 | [
"MIT"
] | 1 | 2018-01-31T14:02:32.000Z | 2018-01-31T14:02:32.000Z | libsynthpp/src/LSP/Base/Sample.hpp | my04337/libsynthpp | 99584d0e568e6c92a5c298d4fdcde277fe7511f1 | [
"MIT"
] | 1 | 2018-02-21T02:33:47.000Z | 2018-02-21T02:36:23.000Z | libsynthpp/src/LSP/Base/Sample.hpp | my04337/libsynthpp | 99584d0e568e6c92a5c298d4fdcde277fe7511f1 | [
"MIT"
] | 1 | 2018-02-20T05:30:52.000Z | 2018-02-20T05:30:52.000Z | #pragma once
#include <LSP/Base/Base.hpp>
#include <LSP/Base/Logging.hpp>
namespace LSP
{
template<typename T>
concept integral_sample_typeable
= std::is_same_v<T, int8_t>
|| std::is_same_v<T, int16_t>
|| std::is_same_v<T, int32_t>
;
template<typename T>
concept floating_sample_typeable
= std::is_same_v<T, flo... | 31.627119 | 88 | 0.754019 | my04337 |
4ff5265fc166fa229ddc548301e7deaa5f50d67a | 588 | hpp | C++ | src/editor/propertyeditor.hpp | seanbutler/engine | 7fa38f43f61c97fc1df28f3a666d90628b699e91 | [
"MIT"
] | null | null | null | src/editor/propertyeditor.hpp | seanbutler/engine | 7fa38f43f61c97fc1df28f3a666d90628b699e91 | [
"MIT"
] | null | null | null | src/editor/propertyeditor.hpp | seanbutler/engine | 7fa38f43f61c97fc1df28f3a666d90628b699e91 | [
"MIT"
] | null | null | null | #pragma once
#include "imgui.h"
namespace Editor {
void ShowPropertyEditorWindow(bool* p_open) {
if (!ImGui::Begin("Property Editor...", p_open, ImGuiWindowFlags_AlwaysAutoResize)) {
ImGui::End();
return;
}
ImGui::Separator();
ImGui::Text("Game Engine With Build In Editor.");
Im... | 23.52 | 89 | 0.64966 | seanbutler |
4ff5723a53310a68b156b52782c09e211730e09a | 18,588 | hpp | C++ | src/boost/type_traits/detail/is_function_ptr_helper.hpp | Liastre/uri | f5a701d19e3dd9cec950dcc70f6a42f0d9151f89 | [
"BSL-1.0"
] | 521 | 2016-02-14T00:39:01.000Z | 2022-03-01T22:39:25.000Z | src/boost/type_traits/detail/is_function_ptr_helper.hpp | Liastre/uri | f5a701d19e3dd9cec950dcc70f6a42f0d9151f89 | [
"BSL-1.0"
] | 8 | 2017-02-21T11:47:33.000Z | 2018-11-01T09:37:14.000Z | src/boost/type_traits/detail/is_function_ptr_helper.hpp | Liastre/uri | f5a701d19e3dd9cec950dcc70f6a42f0d9151f89 | [
"BSL-1.0"
] | 48 | 2017-02-21T10:18:13.000Z | 2022-03-25T02:35:20.000Z |
// Copyright 2000 John Maddock (john@johnmaddock.co.uk)
// Copyright 2002 Aleksey Gurtovoy (agurtovoy@meta-comm.com)
//
// Use, modification and distribution are subject to the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt).
//
//... | 105.016949 | 308 | 0.64972 | Liastre |
4ff8a9655b3530ba9f1a26f4df3bcf3ef276f3a4 | 1,744 | cpp | C++ | Vishv_GE/Framework/Graphics/Src/RasterizerState.cpp | InFaNsO/Vishv_GameEngine | e721afa899fb8715e52cdd67c2656ba6cce7ffed | [
"MIT"
] | 1 | 2021-12-19T02:06:12.000Z | 2021-12-19T02:06:12.000Z | Vishv_GE/Framework/Graphics/Src/RasterizerState.cpp | InFaNsO/Vishv_GameEngine | e721afa899fb8715e52cdd67c2656ba6cce7ffed | [
"MIT"
] | null | null | null | Vishv_GE/Framework/Graphics/Src/RasterizerState.cpp | InFaNsO/Vishv_GameEngine | e721afa899fb8715e52cdd67c2656ba6cce7ffed | [
"MIT"
] | null | null | null | #include "Precompiled.h"
#include "RasterizerState.h"
#include "D3DUtil.h"
using namespace Vishv;
using namespace Vishv::Graphics;
namespace
{
D3D11_CULL_MODE GetCullMode(RasterizerState::CullMode mode)
{
switch (mode)
{
case Vishv::Graphics::RasterizerState::CullMode::Front:
return D3D11_CULL_FRONT;
br... | 22.649351 | 88 | 0.749427 | InFaNsO |
4ffb1d1b306a87880e7789b7a1902b2cb98c4e66 | 336 | cpp | C++ | AtCoder/ALPC/c.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | AtCoder/ALPC/c.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | AtCoder/ALPC/c.cpp | Takumi1122/data-structure-algorithm | 6b9f26e4dbba981f034518a972ecfc698b86d837 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
#include <atcoder/all>
using namespace atcoder;
int main() {
int t;
cin >> t;
rep(i, t) {
ll n, m, a, b;
cin >> n >> m >> a >> b;
cout << floor_sum(n, m, a, b... | 18.666667 | 47 | 0.529762 | Takumi1122 |
4ffb64eaa422e491c6204a51baeaa7037b905327 | 5,076 | cpp | C++ | libraries/fc/src/log/console_appender.cpp | bcchain2020/BCChain | 6947212d12571c536225d3440e4985f5b2093cbc | [
"MIT"
] | 6 | 2019-10-22T07:19:56.000Z | 2022-01-13T22:26:51.000Z | libraries/fc/src/log/console_appender.cpp | dimensionofficial/Dimension-E | a39533d4a457ce358185b4d0a5af544e742fc0ab | [
"MIT"
] | null | null | null | libraries/fc/src/log/console_appender.cpp | dimensionofficial/Dimension-E | a39533d4a457ce358185b4d0a5af544e742fc0ab | [
"MIT"
] | null | null | null | #include <fc/log/console_appender.hpp>
#include <fc/log/log_message.hpp>
#include <fc/string.hpp>
#include <fc/variant.hpp>
#include <fc/reflect/variant.hpp>
#ifndef WIN32
#include <unistd.h>
#endif
#include <boost/thread/mutex.hpp>
#define COLOR_CONSOLE 1
#include "console_defines.h"
#include <fc/exception/exception.h... | 31.52795 | 124 | 0.603625 | bcchain2020 |
4ffbca18a95d22a9cc305cbe44b4524e1cc22054 | 1,780 | cpp | C++ | src/MagDragWindow.cpp | tapeguy/heekscad | e5037d15d642551de756f352e4e14505c39ad7cf | [
"BSD-3-Clause"
] | null | null | null | src/MagDragWindow.cpp | tapeguy/heekscad | e5037d15d642551de756f352e4e14505c39ad7cf | [
"BSD-3-Clause"
] | null | null | null | src/MagDragWindow.cpp | tapeguy/heekscad | e5037d15d642551de756f352e4e14505c39ad7cf | [
"BSD-3-Clause"
] | null | null | null | // MagDragWindow.cpp
// Copyright (c) 2009, Dan Heeks
// This program is released under the BSD license. See the file COPYING for details.
#include "stdafx.h"
#include "MagDragWindow.h"
#include "SelectMode.h"
#include "GraphicsCanvas.h"
#include "HeeksFrame.h"
void MagDragWindow::OnMouse( wxMouseEvent& eve... | 34.230769 | 116 | 0.722472 | tapeguy |
4ffed2d2bdd01a6319fc83c95804a3da3e35d60d | 61,275 | cpp | C++ | src/vm/i386/jitinterfacex86.cpp | dotnet-maestro-bot/coreclr | 000343606a00124501cec18badc9ca551a636dc1 | [
"MIT"
] | 1 | 2017-06-18T05:17:13.000Z | 2017-06-18T05:17:13.000Z | src/vm/i386/jitinterfacex86.cpp | Acidburn0zzz/coreclr | cd72c54483f9ccdcde08cb42a683d2b4df181378 | [
"MIT"
] | null | null | null | src/vm/i386/jitinterfacex86.cpp | Acidburn0zzz/coreclr | cd72c54483f9ccdcde08cb42a683d2b4df181378 | [
"MIT"
] | null | null | null | // 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.
// ===========================================================================
// File: JITinterfaceX86.CPP
//
// ===... | 32.961269 | 181 | 0.636393 | dotnet-maestro-bot |
8b002465500638cb0ca3bd70f191a2c7faafe60b | 577 | hpp | C++ | src/phlib/polymorphic.hpp | andrey-nakin/phlib | f3a23bd1ce39e3873c4289d26f626de2010415ae | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/phlib/polymorphic.hpp | andrey-nakin/phlib | f3a23bd1ce39e3873c4289d26f626de2010415ae | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | src/phlib/polymorphic.hpp | andrey-nakin/phlib | f3a23bd1ce39e3873c4289d26f626de2010415ae | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | /*
* polymorphic.hpp --
*
* This file is part of phlib library.
*
* Copyright (c) 2012 Andrey V. Nakin <andrey.nakin@gmail.com>
* All rights reserved.
*
* See the file "COPYING" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
*/
#ifndef POLYMORPHIC_H_
#d... | 15.184211 | 69 | 0.686308 | andrey-nakin |
8b04afe4184dbc57fc3e4bbf5143f4d838452b01 | 15,544 | cpp | C++ | packages/kokkos/core/src/OpenMP/Kokkos_OpenMP_Exec.cpp | npe9/seacas | 7dffa14be815ff2797053b1476a085bda3c4b328 | [
"MIT",
"NetCDF",
"Zlib",
"BSD-3-Clause"
] | null | null | null | packages/kokkos/core/src/OpenMP/Kokkos_OpenMP_Exec.cpp | npe9/seacas | 7dffa14be815ff2797053b1476a085bda3c4b328 | [
"MIT",
"NetCDF",
"Zlib",
"BSD-3-Clause"
] | null | null | null | packages/kokkos/core/src/OpenMP/Kokkos_OpenMP_Exec.cpp | npe9/seacas | 7dffa14be815ff2797053b1476a085bda3c4b328 | [
"MIT",
"NetCDF",
"Zlib",
"BSD-3-Clause"
] | null | null | null | /*
//@HEADER
// ************************************************************************
//
// Kokkos v. 2.0
// Copyright (2014) Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
// the U.S. Government retains certain rights in this softw... | 32.655462 | 135 | 0.612905 | npe9 |
8b077b57588487cd4b5f8d55a63550ac88777478 | 2,153 | hpp | C++ | include/actl/operation/overload/resolve_overload.hpp | AlCash07/ACTL | 15de4e2783d8e39dbd8e10cd635aaab328ca4f5b | [
"BSL-1.0"
] | 17 | 2018-08-22T06:48:20.000Z | 2022-02-22T21:20:09.000Z | include/actl/operation/overload/resolve_overload.hpp | AlCash07/ACTL | 15de4e2783d8e39dbd8e10cd635aaab328ca4f5b | [
"BSL-1.0"
] | null | null | null | include/actl/operation/overload/resolve_overload.hpp | AlCash07/ACTL | 15de4e2783d8e39dbd8e10cd635aaab328ca4f5b | [
"BSL-1.0"
] | null | null | null | // Copyright 2020 Oleksandr Bacherikov.
//
// Distributed under the Boost Software License, Version 1.0
// (see accompanying file LICENSE.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt).
#pragma once
#include <actl/operation/overload/overload.hpp>
namespace ac {
struct default_context
{};
template <class... | 24.191011 | 78 | 0.671157 | AlCash07 |
8b0800062144f59e7001680508b4ba166cc13bba | 1,090 | cpp | C++ | src/Core/Subsystems/Renderer/CommandBuffer.cpp | tmarrec/vulkan-testings | 954421ca5365c9b509b0bd3765c9b804201d0df5 | [
"MIT"
] | null | null | null | src/Core/Subsystems/Renderer/CommandBuffer.cpp | tmarrec/vulkan-testings | 954421ca5365c9b509b0bd3765c9b804201d0df5 | [
"MIT"
] | null | null | null | src/Core/Subsystems/Renderer/CommandBuffer.cpp | tmarrec/vulkan-testings | 954421ca5365c9b509b0bd3765c9b804201d0df5 | [
"MIT"
] | null | null | null | #include "CommandBuffer.h"
#include <memory>
#include "LogicalDevice.h"
extern std::unique_ptr<LogicalDevice> g_logicalDevice;
CommandBuffer::CommandBuffer(const VkCommandPool vkCommandPool)
{
const VkCommandBufferAllocateInfo commandBufferAllocateInfo =
{
.sType = VK_STRUCTURE_TYPE_COMMAND_BUFFER_... | 29.459459 | 130 | 0.744037 | tmarrec |
8b08b8baea69ecdd6e7faec45a9e6cf96d20a2f2 | 950 | cpp | C++ | test/test_handler/test_binarizer.cpp | authenticateduserdata/RobustPalmRoi | b17c058fae6c1f2f600aff2ecdf5b1e4e6508eb3 | [
"MIT"
] | 15 | 2018-10-07T05:28:25.000Z | 2022-02-24T09:18:34.000Z | test/test_handler/test_binarizer.cpp | authenticateduserdata/RobustPalmRoi | b17c058fae6c1f2f600aff2ecdf5b1e4e6508eb3 | [
"MIT"
] | 16 | 2018-10-08T13:11:31.000Z | 2020-12-22T11:36:42.000Z | test/test_handler/test_binarizer.cpp | authenticateduserdata/RobustPalmRoi | b17c058fae6c1f2f600aff2ecdf5b1e4e6508eb3 | [
"MIT"
] | 5 | 2019-06-21T06:27:00.000Z | 2021-11-09T11:13:47.000Z | // Copyright (c) 2018 leosocy. All rights reserved.
// Use of this source code is governed by a MIT-style license
// that can be found in the LICENSE file.
#include "test_base.h"
#include "handler/handler.h"
namespace {
using cv::Mat;
using rpr::Status;
class BinarizerTestFixture : public RobustPalmRoiTestFixtureB... | 26.388889 | 79 | 0.748421 | authenticateduserdata |
8b0a834efe9e2f0374ef1332b79d93906718511d | 17,310 | cpp | C++ | thirdparty/bullet/Bullet3OpenCL/NarrowphaseCollision/b3VoronoiSimplexSolver.cpp | N0hbdy/godot | d4a222cd9d849a63f0535f70cbf78700bc5c815b | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | 1,279 | 2017-06-21T23:52:43.000Z | 2021-08-05T17:16:52.000Z | thirdparty/bullet/Bullet3OpenCL/NarrowphaseCollision/b3VoronoiSimplexSolver.cpp | N0hbdy/godot | d4a222cd9d849a63f0535f70cbf78700bc5c815b | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | 312 | 2019-06-13T19:39:25.000Z | 2022-03-02T18:37:22.000Z | thirdparty/bullet/Bullet3OpenCL/NarrowphaseCollision/b3VoronoiSimplexSolver.cpp | N0hbdy/godot | d4a222cd9d849a63f0535f70cbf78700bc5c815b | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | 107 | 2017-06-22T10:02:23.000Z | 2021-08-02T14:14:42.000Z |
/*
Bullet Continuous Collision Detection and Physics Library
Copyright (c) 2003-2006 Erwin Coumans http://continuousphysics.com/Bullet/
This software is provided 'as-is', without any express or implied warranty.
In no event will the authors be held liable for any damages arising from the use of this software.
Permis... | 30.104348 | 243 | 0.708319 | N0hbdy |
8b0b2c8b6797ab4f4676647e2bec4b25416ef5f9 | 1,140 | cpp | C++ | example/main.cpp | pqrs-org/cpp-osx-input_source_selector | 0cf81ef962e0e592c92f93f247e7e279b983a56f | [
"BSL-1.0"
] | null | null | null | example/main.cpp | pqrs-org/cpp-osx-input_source_selector | 0cf81ef962e0e592c92f93f247e7e279b983a56f | [
"BSL-1.0"
] | null | null | null | example/main.cpp | pqrs-org/cpp-osx-input_source_selector | 0cf81ef962e0e592c92f93f247e7e279b983a56f | [
"BSL-1.0"
] | null | null | null | #include <csignal>
#include <iostream>
#include <pqrs/osx/input_source_selector.hpp>
namespace {
auto global_wait = pqrs::make_thread_wait();
}
int main(void) {
std::signal(SIGINT, [](int) {
global_wait->notify();
});
auto time_source = std::make_shared<pqrs::dispatcher::hardware_time_source>();
auto dis... | 22.8 | 97 | 0.612281 | pqrs-org |
8b0ce717b1f215fa7453fc7856bd3bf07491a24c | 4,883 | hh | C++ | src/lnav_log.hh | mutanthost/lnav | 55727284de202a9ebfde0f3f9861ef6af1d04c52 | [
"BSD-2-Clause"
] | null | null | null | src/lnav_log.hh | mutanthost/lnav | 55727284de202a9ebfde0f3f9861ef6af1d04c52 | [
"BSD-2-Clause"
] | null | null | null | src/lnav_log.hh | mutanthost/lnav | 55727284de202a9ebfde0f3f9861ef6af1d04c52 | [
"BSD-2-Clause"
] | null | null | null | /**
* Copyright (c) 2014, Timothy Stack
*
* 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 condi... | 29.593939 | 113 | 0.706123 | mutanthost |
8b12d58af7a698a753b94d8becc270e8c0346ea3 | 2,391 | cpp | C++ | isis/tests/LinearAlgebraTests.cpp | kdl222/ISIS3 | aab0e63088046690e6c031881825596c1c2cc380 | [
"CC0-1.0"
] | 134 | 2018-01-18T00:16:24.000Z | 2022-03-24T03:53:33.000Z | isis/tests/LinearAlgebraTests.cpp | kdl222/ISIS3 | aab0e63088046690e6c031881825596c1c2cc380 | [
"CC0-1.0"
] | 3,825 | 2017-12-11T21:27:34.000Z | 2022-03-31T21:45:20.000Z | isis/tests/LinearAlgebraTests.cpp | jlaura/isis3 | 2c40e08caed09968ea01d5a767a676172ad20080 | [
"CC0-1.0"
] | 164 | 2017-11-30T21:15:44.000Z | 2022-03-23T10:22:29.000Z | #include "LinearAlgebra.h"
#include "IException.h"
#include <gtest/gtest.h>
using namespace Isis;
TEST(LinearAlgebraTest, pseudoinverseInvertible) {
LinearAlgebra::Matrix mat(2,2);
mat(0,0) = 1.0;
mat(0,1) = 2.0;
mat(1,0) = 3.0;
mat(1,1) = 4.0;
LinearAlgebra::Matrix inverse = LinearAlgebra::pseudoinvers... | 29.518519 | 109 | 0.684651 | kdl222 |
8b17f78e0bcf9c0990592c71d49c2151ac25c17d | 4,625 | cpp | C++ | llvm/lib/CodeGen/MIRVRegNamerUtils.cpp | nyalloc/llvm | 2d6dcd09b6a418c05c02b7beb6bb042ec73daf43 | [
"Apache-2.0"
] | null | null | null | llvm/lib/CodeGen/MIRVRegNamerUtils.cpp | nyalloc/llvm | 2d6dcd09b6a418c05c02b7beb6bb042ec73daf43 | [
"Apache-2.0"
] | null | null | null | llvm/lib/CodeGen/MIRVRegNamerUtils.cpp | nyalloc/llvm | 2d6dcd09b6a418c05c02b7beb6bb042ec73daf43 | [
"Apache-2.0"
] | null | null | null | //===---------- MIRVRegNamerUtils.cpp - MIR VReg Renaming Utilities -------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 37.298387 | 80 | 0.687784 | nyalloc |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.