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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9c7d255d3c4aeeaa13cfb69977543d596294483a | 5,769 | hpp | C++ | src/3rd party/boost/boost/mpl/aux_/preprocessed/msvc60/list.hpp | OLR-xray/OLR-3.0 | b6a9bb2a0c1fb849b8c6cea2e831e1ceea5cc611 | [
"Apache-2.0"
] | 8 | 2016-01-25T20:18:51.000Z | 2019-03-06T07:00:04.000Z | src/3rd party/boost/boost/mpl/aux_/preprocessed/msvc60/list.hpp | OLR-xray/OLR-3.0 | b6a9bb2a0c1fb849b8c6cea2e831e1ceea5cc611 | [
"Apache-2.0"
] | null | null | null | src/3rd party/boost/boost/mpl/aux_/preprocessed/msvc60/list.hpp | OLR-xray/OLR-3.0 | b6a9bb2a0c1fb849b8c6cea2e831e1ceea5cc611 | [
"Apache-2.0"
] | 3 | 2016-02-14T01:20:43.000Z | 2021-02-03T11:19:11.000Z | // preprocessed version of 'boost/mpl/list.hpp' header
// see the original for copyright information
namespace boost {
namespace mpl {
namespace aux {
template< nttp_int N > struct list_impl_chooser;
}
namespace aux {
template<>
struct list_impl_chooser<0>
{
template<
typename T0, typename T1, typenam... | 20.603571 | 75 | 0.585717 | OLR-xray |
9c7e1ef90a8ec0f15ee218c55331ddf8b327742a | 4,361 | hpp | C++ | src/framework/types.hpp | awcross1/qiskit-aer | 72863e804ec3d07c0da2ebeb665a31db7a7e3010 | [
"Apache-2.0"
] | null | null | null | src/framework/types.hpp | awcross1/qiskit-aer | 72863e804ec3d07c0da2ebeb665a31db7a7e3010 | [
"Apache-2.0"
] | null | null | null | src/framework/types.hpp | awcross1/qiskit-aer | 72863e804ec3d07c0da2ebeb665a31db7a7e3010 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright 2018, IBM.
*
* This source code is licensed under the Apache License, Version 2.0 found in
* the LICENSE.txt file in the root directory of this source tree.
*/
#ifndef _aer_framework_types_hpp_
#define _aer_framework_types_hpp_
#include <cstdint>
#include <complex>
#include <iostream>
#include <m... | 27.086957 | 86 | 0.557441 | awcross1 |
9c7fc413e99ff5d562b8e24818372c33ed501fe5 | 21,547 | cpp | C++ | stl/src/vector_algorithms.cpp | tetex7/x46_STL | 5a28cb89d58c05c41ea1704e59a74ee57005e428 | [
"Apache-2.0"
] | 1 | 2021-02-07T07:05:49.000Z | 2021-02-07T07:05:49.000Z | stl/src/vector_algorithms.cpp | tetex7/x46_STL | 5a28cb89d58c05c41ea1704e59a74ee57005e428 | [
"Apache-2.0"
] | null | null | null | stl/src/vector_algorithms.cpp | tetex7/x46_STL | 5a28cb89d58c05c41ea1704e59a74ee57005e428 | [
"Apache-2.0"
] | null | null | null | // Copyright (c) Microsoft Corporation.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
// This must be as small as possible, because its contents are
// injected into the msvcprt.lib and msvcprtd.lib import libraries.
// Do not include or define anything else here.
// In particular, basic_string must... | 51.059242 | 121 | 0.635587 | tetex7 |
9c813eaec6bd5b9db67e99391aa855f09f428692 | 11,281 | cpp | C++ | src/ListView.cpp | ok/FontBoy | dc3079d6099e97382ae536a08a858ccab86ed491 | [
"Artistic-1.0"
] | 2 | 2018-01-27T20:00:21.000Z | 2022-03-27T10:11:43.000Z | src/ListView.cpp | ok/FontBoy | dc3079d6099e97382ae536a08a858ccab86ed491 | [
"Artistic-1.0"
] | 39 | 2015-01-07T07:17:18.000Z | 2022-03-13T14:12:37.000Z | src/ListView.cpp | ok/FontBoy | dc3079d6099e97382ae536a08a858ccab86ed491 | [
"Artistic-1.0"
] | 13 | 2015-01-06T17:50:12.000Z | 2021-02-07T19:16:53.000Z | /* ListView for displaing Fonts */
#include "Fontboy.h"
#include "Prefs.h"
#include "ListView.h"
#include "ListWindow.h"
#include "FontList.h"
#include "MsgVals.h"
#ifdef FFont_Support
#include "FFont.h"
#endif
#include "Debug.h"
ListView::ListView(BRect frame)
:MultiBoxView(frame)
{
fontboy = dynamic_cast<Font... | 27.31477 | 99 | 0.659871 | ok |
9c835c14925a857847ef4ce03475a3a58f006ddc | 283 | cpp | C++ | DroneClient/Image.cpp | poli0048/Recon-DJI-IOS-Interface | 65ec4858baab57a8acb5521102b972f5fe738bf5 | [
"BSD-3-Clause"
] | 1 | 2021-12-26T13:33:05.000Z | 2021-12-26T13:33:05.000Z | DroneClient/Image.cpp | poli0048/Recon-DJI-IOS-Interface | 65ec4858baab57a8acb5521102b972f5fe738bf5 | [
"BSD-3-Clause"
] | null | null | null | DroneClient/Image.cpp | poli0048/Recon-DJI-IOS-Interface | 65ec4858baab57a8acb5521102b972f5fe738bf5 | [
"BSD-3-Clause"
] | 2 | 2021-04-27T06:33:19.000Z | 2021-12-26T13:33:13.000Z | //
// Image.m
// DroneClient
//
// Created by Ben Choi on 4/11/21.
//
#include "Image.hpp"
Image::Image(unsigned char * bitmap, int rows, int cols, int size_pixel) {
this->bitmap = bitmap;
this->rows = rows;
this->cols = cols;
this->size_pixel = size_pixel;
}
| 15.722222 | 74 | 0.614841 | poli0048 |
9c8785d2fb133558cba8b7f2181081a1217a5890 | 701 | cpp | C++ | Array/At least two greater elements.cpp | DY-2001/DSA | 0f1f7a19304a2e5cfef690bf51a22bbc73eef4bc | [
"MIT"
] | null | null | null | Array/At least two greater elements.cpp | DY-2001/DSA | 0f1f7a19304a2e5cfef690bf51a22bbc73eef4bc | [
"MIT"
] | null | null | null | Array/At least two greater elements.cpp | DY-2001/DSA | 0f1f7a19304a2e5cfef690bf51a22bbc73eef4bc | [
"MIT"
] | null | null | null | // { Driver Code Starts
#include<bits/stdc++.h>
using namespace std;
// } Driver Code Ends
class Solution{
public:
vector<int> findElements(int a[], int n)
{
vector<int> v;
sort(a, a + n);
for(int i = 0; i < n - 2; i++) {
v.push_back(a[i]);
}
return v;
... | 17.097561 | 48 | 0.442225 | DY-2001 |
9c8792fa01d52b431dc851bb2a7f3f45fa82c123 | 3,218 | cpp | C++ | Based_Engine/Based_Engine/PlayerController.cpp | Sanmopre/Based_Engine | 2a408dc501f6357bde9872e2eef70f67295e0a3a | [
"MIT"
] | null | null | null | Based_Engine/Based_Engine/PlayerController.cpp | Sanmopre/Based_Engine | 2a408dc501f6357bde9872e2eef70f67295e0a3a | [
"MIT"
] | null | null | null | Based_Engine/Based_Engine/PlayerController.cpp | Sanmopre/Based_Engine | 2a408dc501f6357bde9872e2eef70f67295e0a3a | [
"MIT"
] | null | null | null | #include "Application.h"
#include "Input.h"
#include "ObjectManager.h"
#include "PlayerController.h"
#include "GameObject.h"
#include "RigidBodyComponent.h"
#include "imgui_impl_sdl.h"
#include "imgui_impl_opengl3.h"
#include "misc/cpp/imgui_stdlib.h"
#include "PxPhysicsAPI.h"
PlayerController::PlayerController(ch... | 26.162602 | 97 | 0.668428 | Sanmopre |
9c8a049dbf64464ff7f49239eb93319075ef031c | 6,857 | cpp | C++ | platform/gucefCORE/src/gucefCORE_CBusyWaitPulseGeneratorDriver.cpp | amvb/GUCEF | 08fd423bbb5cdebbe4b70df24c0ae51716b65825 | [
"Apache-2.0"
] | 5 | 2016-04-18T23:12:51.000Z | 2022-03-06T05:12:07.000Z | platform/gucefCORE/src/gucefCORE_CBusyWaitPulseGeneratorDriver.cpp | amvb/GUCEF | 08fd423bbb5cdebbe4b70df24c0ae51716b65825 | [
"Apache-2.0"
] | 2 | 2015-10-09T19:13:25.000Z | 2018-12-25T17:16:54.000Z | platform/gucefCORE/src/gucefCORE_CBusyWaitPulseGeneratorDriver.cpp | amvb/GUCEF | 08fd423bbb5cdebbe4b70df24c0ae51716b65825 | [
"Apache-2.0"
] | 15 | 2015-02-23T16:35:28.000Z | 2022-03-25T13:40:33.000Z | /*
* gucefCORE: GUCEF module providing O/S abstraction and generic solutions
* Copyright (C) 2002 - 2008. Dinand Vanvelzen
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundati... | 37.883978 | 124 | 0.448884 | amvb |
9c8fb782fe8976e50b6a830c33d521b6bcfc7006 | 4,231 | hpp | C++ | include/Convolver.hpp | Buerner/laproque | c44ebf7705770d269bf5df14b4be0a76869e66d5 | [
"MIT"
] | null | null | null | include/Convolver.hpp | Buerner/laproque | c44ebf7705770d269bf5df14b4be0a76869e66d5 | [
"MIT"
] | null | null | null | include/Convolver.hpp | Buerner/laproque | c44ebf7705770d269bf5df14b4be0a76869e66d5 | [
"MIT"
] | null | null | null | //
// Convolver.hpp
// laproque - https://github.com/Buerner/laproque
//
// Copyright © 2017 Martin Bürner. All rights reserved.
// Licensed under the MIT License. See LICENSE.md file in the project root for full license information.
//
#ifndef Convolver_hpp
#define Convolver_hpp
#include <stdio.h>
#include <ff... | 30.221429 | 236 | 0.684235 | Buerner |
9c8fda6067ee26ee33f42a94c47ea70a9d9effba | 1,170 | cpp | C++ | CurveSim/Edge.cpp | suvojit-0x55aa/CurveSim | 57b49eddb038330919f365635628be619d4120cc | [
"MIT"
] | 1 | 2019-11-23T06:15:57.000Z | 2019-11-23T06:15:57.000Z | CurveSim/Edge.cpp | suvojit-0x55aa/CurveSim | 57b49eddb038330919f365635628be619d4120cc | [
"MIT"
] | null | null | null | CurveSim/Edge.cpp | suvojit-0x55aa/CurveSim | 57b49eddb038330919f365635628be619d4120cc | [
"MIT"
] | null | null | null | #include "Edge.h"
//Author : Suvojit Manna
//Application : CurveSim
Edge::Edge( const std::bitset<STATES> &fromState,
const size_t fromID,
const std::bitset<STATES> &toState,
const size_t toID,
const size_t latency )
{
this->toState = toState;
this->fromStat... | 24.893617 | 72 | 0.651282 | suvojit-0x55aa |
9c94756193805c751b12866c2fdcba1390389984 | 2,064 | cpp | C++ | Source/GameBaseFramework/Private/GameFramework/GBFSaveGame.cpp | TheEmidee/UEGameBaseFramework | 10ab0e7a508a155844c12421c2713e459b8c68ad | [
"MIT"
] | null | null | null | Source/GameBaseFramework/Private/GameFramework/GBFSaveGame.cpp | TheEmidee/UEGameBaseFramework | 10ab0e7a508a155844c12421c2713e459b8c68ad | [
"MIT"
] | null | null | null | Source/GameBaseFramework/Private/GameFramework/GBFSaveGame.cpp | TheEmidee/UEGameBaseFramework | 10ab0e7a508a155844c12421c2713e459b8c68ad | [
"MIT"
] | null | null | null | #include "GameFramework/GBFSaveGame.h"
#include <Kismet/GameplayStatics.h>
UGBFSaveGame::UGBFSaveGame() :
EnableForceFeedback( true ),
EnableSubtitles( true )
{
}
int UGBFSaveGame::GetAchievementCurrentCount( const FName & achievement_id ) const
{
if ( const auto current_count = AchievementsC... | 21.5 | 104 | 0.636143 | TheEmidee |
9c948d8da63f539fb871d4dbf714cfa7d4d518bd | 652 | cpp | C++ | src/common/HostStencilFactory.cpp | ashwinma/mpiacc-contention-tests | 6246ad9b177095220aa9cea5c85def7effd78222 | [
"BSD-3-Clause-Clear",
"BSD-3-Clause"
] | 23 | 2015-04-07T20:36:11.000Z | 2021-12-12T23:22:30.000Z | spectral-methods/fft/opencl/common/HostStencilFactory.cpp | rusiqe/AssemblyScript-vs-Javascript-bench | 75a6590f1952b3c4f2c8c47fbd23ab84d9aa7087 | [
"MIT"
] | 38 | 2015-06-06T07:43:35.000Z | 2021-07-22T15:39:19.000Z | spectral-methods/fft/opencl/common/HostStencilFactory.cpp | rusiqe/AssemblyScript-vs-Javascript-bench | 75a6590f1952b3c4f2c8c47fbd23ab84d9aa7087 | [
"MIT"
] | 12 | 2015-04-07T20:35:55.000Z | 2020-03-24T09:12:24.000Z | #include <iostream>
#include "HostStencilFactory.h"
#include "HostStencil.h"
template<class T>
Stencil<T>*
HostStencilFactory<T>::BuildStencil( const OptionParser& options )
{
// get options for base class
T wCenter;
T wCardinal;
T wDiagonal;
StencilFactory<T>::ExtractOptions( options, wCenter, wCa... | 21.733333 | 80 | 0.708589 | ashwinma |
9c990b6a35fb90d0d0ca93ce6f9a8246afe887b9 | 739 | cpp | C++ | InternalLib/src/SDL/SDLDrawResource.cpp | NoixChou/CreamyGameLib | f3268d8f6d468e2cce93efc70206d4d19e8c3716 | [
"MIT"
] | null | null | null | InternalLib/src/SDL/SDLDrawResource.cpp | NoixChou/CreamyGameLib | f3268d8f6d468e2cce93efc70206d4d19e8c3716 | [
"MIT"
] | 2 | 2021-01-04T23:27:20.000Z | 2021-01-04T23:31:46.000Z | InternalLib/src/SDL/SDLDrawResource.cpp | NoixChou/CreamyGameLib | f3268d8f6d468e2cce93efc70206d4d19e8c3716 | [
"MIT"
] | null | null | null | #ifdef CREAMY_USE_SDL
#include "DrawResource.hpp"
#include "Resource/TextureResource.hpp"
#include "../../../CreamyGameLib/include/Util/Color.hpp"
#include "../../../CreamyGameLib/include/Math/Vector2.hpp"
#include "SDL.h"
namespace creamyLib::impl
{
void DrawTexture2D(const LibHandlePointer& libHandle, const ... | 28.423077 | 158 | 0.699594 | NoixChou |
9c9ba2fd9964c22bd4d15769fd4b0129e50b7777 | 364 | hpp | C++ | RIT_Library/src/include/structures/VertexInclude.hpp | PWrGitHub194238/RIT | 74ae41ce8cfdca3f14fc1e9a36840c68dff42b23 | [
"Apache-2.0"
] | null | null | null | RIT_Library/src/include/structures/VertexInclude.hpp | PWrGitHub194238/RIT | 74ae41ce8cfdca3f14fc1e9a36840c68dff42b23 | [
"Apache-2.0"
] | 1 | 2016-02-14T18:27:05.000Z | 2016-03-15T17:32:11.000Z | BinaryIMST_Library/src/include/structures/VertexInclude.hpp | PWrGitHub194238/BinaryIMST | 53490c10580fd4ad61c9234b82b3140c5cce5de0 | [
"Apache-2.0"
] | null | null | null | /*
* VertexInclude.hpp
*
* Created on: 6 sty 2016
* Author: tomasz
*/
#ifndef INCLUDE_STRUCTURES_VERTEXINCLUDE_HPP_
#define INCLUDE_STRUCTURES_VERTEXINCLUDE_HPP_
#define VertexIF_Vertex
#include "VertexIF.hpp"
#ifdef VertexIF_Vertex
#include "Vertex/Vertex.hpp"
#endif
typedef Vertex VertexImpl;
#endif ... | 16.545455 | 50 | 0.774725 | PWrGitHub194238 |
9c9c53ad6ff50734b89dcadb516fc989934bba43 | 5,572 | cpp | C++ | src/frame.cpp | plnegre/stereo_odometry | 0abd84d51478c40d101bde959a158c1b81ad620f | [
"BSD-4-Clause"
] | null | null | null | src/frame.cpp | plnegre/stereo_odometry | 0abd84d51478c40d101bde959a158c1b81ad620f | [
"BSD-4-Clause"
] | null | null | null | src/frame.cpp | plnegre/stereo_odometry | 0abd84d51478c40d101bde959a158c1b81ad620f | [
"BSD-4-Clause"
] | null | null | null | #include "frame.h"
namespace odom
{
Frame::Frame() {}
Frame::Frame(Featools* feat, const cv::Mat l_img, const cv::Mat r_img, const uint frame_uid, uint& feat_uid) : featools_(feat)
{
// Copy
l_img.copyTo(l_img_);
r_img.copyTo(r_img_);
// Extract keypoints
vector<cv::KeyPoint> l_kp, r_kp;
... | 33.166667 | 128 | 0.615578 | plnegre |
9c9c8091a390244b6b6268248f0c38b0c4a17881 | 2,024 | cpp | C++ | src/Programs/Desktop/Desktop.cpp | Kaj9296/Electric_OS | 31e1d9318943e50e2bc095dc2ba32d4ce26e7e8b | [
"MIT"
] | 7 | 2022-02-20T16:34:48.000Z | 2022-02-26T06:14:51.000Z | src/Programs/Desktop/Desktop.cpp | fantomphreaker/Electric_OS | 138c00cb19497ec8592f3c155339fd02beb44259 | [
"MIT"
] | null | null | null | src/Programs/Desktop/Desktop.cpp | fantomphreaker/Electric_OS | 138c00cb19497ec8592f3c155339fd02beb44259 | [
"MIT"
] | 4 | 2022-02-20T16:25:44.000Z | 2022-03-20T07:49:25.000Z | #include "Desktop.h"
#include "STL/System/System.h"
#include "STL/Graphics/Framebuffer.h"
#include "STL/String/cstr.h"
#include "Programs/Topbar/Topbar.h"
namespace Desktop
{
void(*CurrentAnimation)(STL::Framebuffer*);
uint64_t AnimationCounter = 0;
inline void StartAnimation(void(*Animation)(STL::Frame... | 23 | 86 | 0.494071 | Kaj9296 |
9c9d14c2c1eba2c6bb803a8cace040f692d9be49 | 1,704 | hpp | C++ | common/Dependencies/amy/amy/detail/mysql_option.hpp | avennstrom/NovusCore-Common | f0687f0df75c0651137d11bb14aba6fede918d93 | [
"MIT"
] | 181 | 2016-11-07T17:50:25.000Z | 2022-02-09T14:09:07.000Z | common/Dependencies/amy/amy/detail/mysql_option.hpp | avennstrom/NovusCore-Common | f0687f0df75c0651137d11bb14aba6fede918d93 | [
"MIT"
] | 19 | 2016-11-10T21:36:19.000Z | 2021-03-30T23:15:00.000Z | common/Dependencies/amy/amy/detail/mysql_option.hpp | avennstrom/NovusCore-Common | f0687f0df75c0651137d11bb14aba6fede918d93 | [
"MIT"
] | 43 | 2016-11-08T04:49:39.000Z | 2021-05-18T03:33:15.000Z | #ifndef __AMY_DETAIL_MYSQL_OPTION_HPP__
#define __AMY_DETAIL_MYSQL_OPTION_HPP__
#include <amy/detail/mysql_types.hpp>
#include <string>
namespace amy {
namespace detail {
namespace mysql_option {
template<int Option, typename Uint = unsigned int>
class unsigned_integer {
public:
unsigned_integer() :
val... | 16.075472 | 54 | 0.618545 | avennstrom |
9c9f9340db44ea8e933d2f11446f93fdbc5857a0 | 704,933 | cpp | C++ | test/bidi_character_test_039.cpp | eightysquirrels/text | d935545648777786dc196a75346cde8906da846a | [
"BSL-1.0"
] | null | null | null | test/bidi_character_test_039.cpp | eightysquirrels/text | d935545648777786dc196a75346cde8906da846a | [
"BSL-1.0"
] | 1 | 2021-03-05T12:56:59.000Z | 2021-03-05T13:11:53.000Z | test/bidi_character_test_039.cpp | eightysquirrels/text | d935545648777786dc196a75346cde8906da846a | [
"BSL-1.0"
] | 3 | 2019-10-30T18:38:15.000Z | 2021-03-05T12:10:13.000Z | // Warning! This file is autogenerated.
#include <boost/text/bidirectional.hpp>
#include "bidi_tests.hpp"
#include <gtest/gtest.h>
#include <algorithm>
TEST(bidi_character, bidi_character_039_000)
{
{
// line 27301
std::vector<uint32_t> const cps = { 0x0028, 0x05D0, 0x005B, 0x0061, 0x2680, 0x0... | 33.589031 | 109 | 0.438669 | eightysquirrels |
9c9fa0f655c1a187506993368188743c6d312596 | 4,601 | cpp | C++ | Plugins/org.mitk.gui.qt.segmentation/src/internal/QmitkCreatePolygonModelAction.cpp | samsmu/MITK | c93dce6dc38d8f4c961de4440e4dd113b9841c8c | [
"BSD-3-Clause"
] | 5 | 2015-02-05T10:58:41.000Z | 2019-04-17T15:04:07.000Z | Plugins/org.mitk.gui.qt.segmentation/src/internal/QmitkCreatePolygonModelAction.cpp | kometa-dev/MITK | 984b5f7ac8ea614e80f303381ef1fc77d8ca4c3d | [
"BSD-3-Clause"
] | 141 | 2015-03-03T06:52:01.000Z | 2020-12-10T07:28:14.000Z | Plugins/org.mitk.gui.qt.segmentation/src/internal/QmitkCreatePolygonModelAction.cpp | kometa-dev/MITK | 984b5f7ac8ea614e80f303381ef1fc77d8ca4c3d | [
"BSD-3-Clause"
] | 4 | 2015-02-19T06:48:13.000Z | 2020-06-19T16:20:25.000Z | /*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty o... | 32.631206 | 149 | 0.73484 | samsmu |
9ca6da7d7d2d0c677621b7e1a81c8aa64ee2964c | 574 | cpp | C++ | C++/Data_Structures/Symmetric_Trees.cpp | snehnakrani14/HactoberFest21 | 1d387ff4efec1f17fe20d42f46490564c5a87b52 | [
"Unlicense"
] | 1 | 2021-10-04T14:39:02.000Z | 2021-10-04T14:39:02.000Z | C++/Data_Structures/Symmetric_Trees.cpp | snehnakrani14/HactoberFest21 | 1d387ff4efec1f17fe20d42f46490564c5a87b52 | [
"Unlicense"
] | 1 | 2021-10-06T04:41:55.000Z | 2021-10-06T04:41:55.000Z | C++/Data_Structures/Symmetric_Trees.cpp | snehnakrani14/HactoberFest21 | 1d387ff4efec1f17fe20d42f46490564c5a87b52 | [
"Unlicense"
] | 1 | 2021-10-08T12:31:04.000Z | 2021-10-08T12:31:04.000Z | /**
* Definition for binary tree
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
int isSymmetricTree(TreeNode* A,TreeNode* B){
if(A==NULL&&B==NULL) return 1;
else if(A==NULL||B==NULL) return 0;
//if(A... | 24.956522 | 89 | 0.599303 | snehnakrani14 |
9ca8729f481431f59417e1ac121701f539db34c5 | 170 | cpp | C++ | Data Types/sizeofoperator2.cpp | dealbisac/cprograms | 89af58a30295099b45406cf192f4c4eb4a06f9fe | [
"Unlicense"
] | 4 | 2019-01-27T01:00:44.000Z | 2019-01-29T02:09:55.000Z | Data Types/sizeofoperator2.cpp | dealbisac/cprograms | 89af58a30295099b45406cf192f4c4eb4a06f9fe | [
"Unlicense"
] | null | null | null | Data Types/sizeofoperator2.cpp | dealbisac/cprograms | 89af58a30295099b45406cf192f4c4eb4a06f9fe | [
"Unlicense"
] | 1 | 2019-02-04T11:34:40.000Z | 2019-02-04T11:34:40.000Z | //Example of sizeof() operator in expression
#include<stdio.h>
int main()
{
int a = 0;
double d = 10.21;
printf("%d", sizeof(a+d));
return 0;
}
| 15.454545 | 44 | 0.547059 | dealbisac |
66d72e0eb1c645d0218163722ccf58099ecbaa4d | 65,719 | cc | C++ | gui/minimap.cc | lindleyw/simutrans-extended | d7d1230ca431e5c12fc9daa26c0629b6dc2c0fba | [
"Artistic-1.0"
] | null | null | null | gui/minimap.cc | lindleyw/simutrans-extended | d7d1230ca431e5c12fc9daa26c0629b6dc2c0fba | [
"Artistic-1.0"
] | null | null | null | gui/minimap.cc | lindleyw/simutrans-extended | d7d1230ca431e5c12fc9daa26c0629b6dc2c0fba | [
"Artistic-1.0"
] | null | null | null | /*
* This file is part of the Simutrans-Extended project under the Artistic License.
* (see LICENSE.txt)
*/
#include "../simevent.h"
#include "../simcolor.h"
#include "../simconvoi.h"
#include "../vehicle/vehicle.h"
#include "../simdepot.h"
#include "../simhalt.h"
#include "../simfab.h"
#include "../simcity.h"
#inc... | 31.504794 | 296 | 0.644547 | lindleyw |
66d886e7a1cf1bb3fa78dc1941c025f650a6dba9 | 13,762 | cxx | C++ | thirdparty/ConsoleDemoMod/ConsoleDemoMod.cxx | ph4m/DepthSenseGrabber | 4a54ef0322a9221b8b89dc396cd980f496fe7563 | [
"MIT"
] | 27 | 2015-03-25T19:02:28.000Z | 2021-11-23T03:57:31.000Z | thirdparty/ConsoleDemoMod/ConsoleDemoMod.cxx | ph4m/DepthSenseGrabber | 4a54ef0322a9221b8b89dc396cd980f496fe7563 | [
"MIT"
] | 2 | 2015-01-04T13:07:17.000Z | 2021-05-16T22:50:04.000Z | thirdparty/ConsoleDemoMod/ConsoleDemoMod.cxx | ph4m/DepthSenseGrabber | 4a54ef0322a9221b8b89dc396cd980f496fe7563 | [
"MIT"
] | 18 | 2015-03-31T11:30:38.000Z | 2020-01-29T21:28:35.000Z | ////////////////////////////////////////////////////////////////////////////////
// SoftKinetic DepthSense SDK
//
// COPYRIGHT AND CONFIDENTIALITY NOTICE - SOFTKINETIC CONFIDENTIAL
// INFORMATION
//
// All rights reserved to SOFTKINETIC SENSORS NV (a
// company incorporated and existing under the laws of Belgium, with
... | 28.670833 | 107 | 0.59519 | ph4m |
66d8c90e0b7c4107814b87356c117caff234d421 | 3,306 | cpp | C++ | test/unit/math/mix/scal/fun/bessel_second_kind_test.cpp | jrmie/math | 2850ec262181075a5843968e805dc9ad1654e069 | [
"BSD-3-Clause"
] | 1 | 2019-09-06T15:53:17.000Z | 2019-09-06T15:53:17.000Z | test/unit/math/mix/scal/fun/bessel_second_kind_test.cpp | jrmie/math | 2850ec262181075a5843968e805dc9ad1654e069 | [
"BSD-3-Clause"
] | 8 | 2019-01-17T18:51:16.000Z | 2019-01-17T18:51:39.000Z | test/unit/math/mix/scal/fun/bessel_second_kind_test.cpp | jrmie/math | 2850ec262181075a5843968e805dc9ad1654e069 | [
"BSD-3-Clause"
] | null | null | null | #include <stan/math/mix/scal.hpp>
#include <gtest/gtest.h>
#include <test/unit/math/rev/scal/fun/util.hpp>
#include <test/unit/math/mix/scal/fun/nan_util.hpp>
TEST(AgradFwdBesselSecondKind, FvarVar_1stDeriv) {
using stan::math::bessel_second_kind;
using stan::math::fvar;
using stan::math::var;
fvar<var> z(3.0... | 25.627907 | 77 | 0.676346 | jrmie |
66dd2acc37aff7b61297334204ac1c67bbfb8397 | 3,933 | cpp | C++ | source/netadr.cpp | vindemiator/gm_sourcenet | 5c0e48899d3be833fdb5cd03b2545a685d01d749 | [
"BSD-3-Clause"
] | 62 | 2016-02-02T01:38:31.000Z | 2022-02-08T05:36:40.000Z | source/netadr.cpp | vindemiator/gm_sourcenet | 5c0e48899d3be833fdb5cd03b2545a685d01d749 | [
"BSD-3-Clause"
] | 39 | 2016-09-16T13:01:48.000Z | 2022-01-16T16:53:28.000Z | source/netadr.cpp | vindemiator/gm_sourcenet | 5c0e48899d3be833fdb5cd03b2545a685d01d749 | [
"BSD-3-Clause"
] | 23 | 2016-05-14T11:20:06.000Z | 2022-03-27T01:33:42.000Z | #include "netadr.hpp"
#include "netadr.h"
namespace netadr
{
static int32_t metatype = 0;
static const char *metaname = "netadr_t";
void Push( GarrysMod::Lua::ILuaBase *LUA, const netadr_t &netadr )
{
netadr_t *adr = LUA->NewUserType<netadr_t>( metatype );
*adr = netadr;
LUA->PushMetaTable( metatype );
L... | 19.763819 | 77 | 0.636664 | vindemiator |
66df77d11dc300ae7b0ffbab6d6704c8db606ddc | 101,210 | cpp | C++ | Engine/source/assets/assetManager.cpp | John3/t3d_benchmarking | 27a5780ad704aa91b45ff1bb0d69ed07668d03be | [
"MIT"
] | 10 | 2015-03-12T20:20:34.000Z | 2021-02-03T08:07:31.000Z | Engine/source/assets/assetManager.cpp | John3/t3d_benchmarking | 27a5780ad704aa91b45ff1bb0d69ed07668d03be | [
"MIT"
] | 3 | 2015-07-04T23:50:43.000Z | 2016-08-01T09:19:52.000Z | Engine/source/assets/assetManager.cpp | John3/t3d_benchmarking | 27a5780ad704aa91b45ff1bb0d69ed07668d03be | [
"MIT"
] | 6 | 2015-11-28T16:18:26.000Z | 2020-03-29T17:14:56.000Z | //-----------------------------------------------------------------------------
// Copyright (c) 2013 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.535454 | 196 | 0.599298 | John3 |
66dff57b67b1b5981e5d3a45cee4b4f61e6df27e | 5,910 | cpp | C++ | Dependencies/Source/FreeImage/OpenEXR/Imath/ImathRandom.cpp | gamekit-developers/gamekit | 74c896af5826ebe8fb72f2911015738f38ab7bb2 | [
"Zlib",
"MIT"
] | 241 | 2015-01-04T00:36:58.000Z | 2022-01-06T19:19:23.000Z | Dependencies/Source/FreeImage/OpenEXR/Imath/ImathRandom.cpp | gamekit-developers/gamekit | 74c896af5826ebe8fb72f2911015738f38ab7bb2 | [
"Zlib",
"MIT"
] | 10 | 2015-07-10T18:27:17.000Z | 2019-06-26T20:59:59.000Z | Dependencies/Source/FreeImage/OpenEXR/Imath/ImathRandom.cpp | gamekit-developers/gamekit | 74c896af5826ebe8fb72f2911015738f38ab7bb2 | [
"Zlib",
"MIT"
] | 82 | 2015-01-25T18:02:35.000Z | 2022-03-05T12:28:17.000Z |
///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2002, Industrial Light & Magic, a division of Lucas
// Digital Ltd. LLC
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided ... | 30.153061 | 80 | 0.603892 | gamekit-developers |
66e0c4e7f326ea2990592d8fe14f78a0e7d93b33 | 911 | cpp | C++ | src/Tools/Interleaver/NO/Interleaver_core_NO.cpp | bonben/aff3ct | 8e78123bfc0a377947ecb690ce1e0d70c0dc0a68 | [
"MIT"
] | null | null | null | src/Tools/Interleaver/NO/Interleaver_core_NO.cpp | bonben/aff3ct | 8e78123bfc0a377947ecb690ce1e0d70c0dc0a68 | [
"MIT"
] | 4 | 2018-09-27T16:46:31.000Z | 2018-11-22T11:10:41.000Z | src/Tools/Interleaver/NO/Interleaver_core_NO.cpp | bonben/aff3ct | 8e78123bfc0a377947ecb690ce1e0d70c0dc0a68 | [
"MIT"
] | null | null | null | #include <numeric>
#include "Interleaver_core_NO.hpp"
using namespace aff3ct;
using namespace aff3ct::tools;
template <typename T>
Interleaver_core_NO<T>
::Interleaver_core_NO(const int size, const int n_frames)
: Interleaver_core<T>(size, "NO", false, n_frames)
{
}
template <typename T>
void Interleaver_core_NO<T>... | 31.413793 | 119 | 0.63337 | bonben |
66e34d1dd12652b655b96f1e5bb9f8caf30a4101 | 1,451 | cpp | C++ | C++/354.russian-doll-envelopes.cpp | WilliamZhaoz/github | 2aa0eb17e272249fc225cf2e9861c4c44bd0e265 | [
"MIT"
] | 1 | 2018-03-06T05:07:22.000Z | 2018-03-06T05:07:22.000Z | C++/354.russian-doll-envelopes.cpp | WilliamZhaoz/github | 2aa0eb17e272249fc225cf2e9861c4c44bd0e265 | [
"MIT"
] | 1 | 2021-12-24T16:41:02.000Z | 2021-12-24T16:41:02.000Z | C++/354.russian-doll-envelopes.cpp | WilliamZhaoz/github | 2aa0eb17e272249fc225cf2e9861c4c44bd0e265 | [
"MIT"
] | null | null | null | class Solution {
public:
int maxEnvelopes(vector<pair<int, int>>& envelopes) {
// version 1: BS & DP
// after sorting increasing by the w and decreasing by the h, this problem is equle to "Longest Increasing Subsequence"
// dp[i] means the min value of the last value of the size(dp) increas... | 41.457143 | 128 | 0.516885 | WilliamZhaoz |
66e4dbe357beef8bc07f3e102ae55275cf1fa874 | 550 | cpp | C++ | toki/src/Document.cpp | frankencode/fluxkit | 0436454f0791d8fddf8e0adc383ef7c54080245d | [
"BSD-3-Clause"
] | 3 | 2016-02-10T04:58:32.000Z | 2020-09-15T06:39:43.000Z | toki/src/Document.cpp | frankencode/fluxkit | 0436454f0791d8fddf8e0adc383ef7c54080245d | [
"BSD-3-Clause"
] | null | null | null | toki/src/Document.cpp | frankencode/fluxkit | 0436454f0791d8fddf8e0adc383ef7c54080245d | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2007-2015 Frank Mertens.
*
* Use of this source is governed by a BSD-style license that can be
* found in the LICENSE file.
*
*/
#include <flux/File>
#include <flux/toki/Document>
namespace flux {
namespace toki {
Ref<Document> Document::load(String path)
{
return Document::create(File::... | 17.1875 | 68 | 0.656364 | frankencode |
66e4fbe64730e265caa10e05ef06110eed84543f | 20,187 | cc | C++ | cartographer/mapping/internal/3d/scan_matching/fast_correlative_scan_matcher_3d.cc | sotnik-github/cartographer | 73d18e5fc54bfa4e4e61fd7feb615b46834aa584 | [
"Apache-2.0"
] | 35 | 2018-08-02T02:38:20.000Z | 2022-03-21T07:48:06.000Z | cartographer/mapping/internal/3d/scan_matching/fast_correlative_scan_matcher_3d.cc | sotnik-github/cartographer | 73d18e5fc54bfa4e4e61fd7feb615b46834aa584 | [
"Apache-2.0"
] | 17 | 2017-06-02T01:55:21.000Z | 2022-03-02T01:52:58.000Z | cartographer/mapping/internal/3d/scan_matching/fast_correlative_scan_matcher_3d.cc | sotnik-github/cartographer | 73d18e5fc54bfa4e4e61fd7feb615b46834aa584 | [
"Apache-2.0"
] | 37 | 2018-07-26T00:07:40.000Z | 2021-12-31T07:57:50.000Z | /*
* Copyright 2016 The Cartographer Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... | 43.694805 | 98 | 0.735077 | sotnik-github |
66e5e586be6f384bf06857a800b9d6927ffb16be | 3,814 | cpp | C++ | vendor/android-tools/demangle/demangle.cpp | dylanh333/android-unmkbootimg | 7c30a58b5bc3d208fbbbbc713717e2aae98df699 | [
"MIT"
] | 3 | 2018-04-01T18:35:29.000Z | 2020-12-18T21:09:53.000Z | vendor/android-tools/demangle/demangle.cpp | dylanh333/android-unmkbootimg | 7c30a58b5bc3d208fbbbbc713717e2aae98df699 | [
"MIT"
] | 2 | 2017-04-24T12:29:05.000Z | 2017-05-09T12:27:10.000Z | vendor/android-tools/demangle/demangle.cpp | dylanh333/android-unmkbootimg | 7c30a58b5bc3d208fbbbbc713717e2aae98df699 | [
"MIT"
] | null | null | null | /*
* Copyright (C) 2017 The Android Open Source Project
*
* 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 app... | 28.462687 | 84 | 0.641059 | dylanh333 |
66e8301ebdd578d6a0c203ed3642bdc9fbc94587 | 516 | cpp | C++ | variadic_templates/03.4.1.forwarding_simple.cpp | vnikolai/cpp_examples | a4686b0a0e0ed3da513621e309e8a511d9e44632 | [
"MIT"
] | 4 | 2021-09-21T16:23:00.000Z | 2021-11-14T16:59:59.000Z | variadic_templates/03.4.1.forwarding_simple.cpp | vnikolai/cpp_examples | a4686b0a0e0ed3da513621e309e8a511d9e44632 | [
"MIT"
] | null | null | null | variadic_templates/03.4.1.forwarding_simple.cpp | vnikolai/cpp_examples | a4686b0a0e0ed3da513621e309e8a511d9e44632 | [
"MIT"
] | 1 | 2021-09-21T17:06:17.000Z | 2021-09-21T17:06:17.000Z | #include <iostream>
#include <map>
#include <tuple>
#define PRINT_FUNCTION std::cout << __PRETTY_FUNCTION__ << std::endl
struct A
{
A() { PRINT_FUNCTION; }
A(const A&) { PRINT_FUNCTION; }
A(A&&) { PRINT_FUNCTION; }
};
template<typename... Args>
void func(Args... args)
{
PRINT_FUNCTION;
}
template<ty... | 15.636364 | 68 | 0.631783 | vnikolai |
66e8c71ecbded88fa8638caa33c2f33e7c4a85d5 | 1,462 | cpp | C++ | snippets/cpp/VS_Snippets_CLR/math.atanx/CPP/atan.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 2 | 2020-03-12T19:26:36.000Z | 2022-01-10T21:45:33.000Z | snippets/cpp/VS_Snippets_CLR/math.atanx/CPP/atan.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 555 | 2019-09-23T22:22:58.000Z | 2021-07-15T18:51:12.000Z | snippets/cpp/VS_Snippets_CLR/math.atanx/CPP/atan.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 3 | 2020-01-29T16:31:15.000Z | 2021-08-24T07:00:15.000Z |
//<snippet1>
// This example demonstrates Math.Atan()
// Math.Atan2()
// Math.Tan()
using namespace System;
int main()
{
double x = 1.0;
double y = 2.0;
double angle;
double radians;
double result;
// Calculate the tangent of 30 degrees.
angl... | 30.458333 | 85 | 0.638167 | BohdanMosiyuk |
66e933ccfb90cdb9c2eea191569f2a23f2e94d15 | 1,001 | cpp | C++ | binary_tree/binary_tree/mid_num_heap/main.cpp | hcnhcn012/algorithms | 856d3889dcaac65dd7ad7be1b50076393aa66088 | [
"MIT"
] | 1 | 2021-01-11T12:36:46.000Z | 2021-01-11T12:36:46.000Z | binary_tree/binary_tree/mid_num_heap/main.cpp | hcnhcn012/algorithms | 856d3889dcaac65dd7ad7be1b50076393aa66088 | [
"MIT"
] | null | null | null | binary_tree/binary_tree/mid_num_heap/main.cpp | hcnhcn012/algorithms | 856d3889dcaac65dd7ad7be1b50076393aa66088 | [
"MIT"
] | null | null | null | //
// main.cpp
// mid_num_heap
//
// Created by ChengnanHu on 2/1/21.
//
#include <iostream>
#include <queue>
using namespace std;
void Insert(int num);
double GetMiddle();
priority_queue<int> max_heap;
priority_queue<int, vector<int >, greater<int >> min_heap;
int n = 0;
int main(int argc, const char * argv[]... | 16.683333 | 69 | 0.531469 | hcnhcn012 |
66ea9eba5315d728d1d4c4516081819217f8089d | 181,043 | cpp | C++ | Sources/Rosetta/PlayMode/CardSets/DalaranCardsGen.cpp | Hearthstonepp/Hearthstonepp | ee17ae6de1ee0078dab29d75c0fbe727a14e850e | [
"MIT"
] | 62 | 2017-08-21T14:11:00.000Z | 2018-04-23T16:09:02.000Z | Sources/Rosetta/PlayMode/CardSets/DalaranCardsGen.cpp | Hearthstonepp/Hearthstonepp | ee17ae6de1ee0078dab29d75c0fbe727a14e850e | [
"MIT"
] | 37 | 2017-08-21T11:13:07.000Z | 2018-04-30T08:58:41.000Z | Sources/Rosetta/PlayMode/CardSets/DalaranCardsGen.cpp | Hearthstonepp/Hearthstonepp | ee17ae6de1ee0078dab29d75c0fbe727a14e850e | [
"MIT"
] | 10 | 2017-08-21T03:44:12.000Z | 2018-01-10T22:29:10.000Z | // This code is based on Sabberstone project.
// Copyright (c) 2017-2021 SabberStone Team, darkfriend77 & rnilva
// RosettaStone is hearthstone simulator using C++ with reinforcement learning.
// Copyright (c) 2017-2021 Chris Ohk
#include <Rosetta/PlayMode/Actions/CastSpell.hpp>
#include <Rosetta/PlayMode/Actions/Choo... | 44.329824 | 80 | 0.453202 | Hearthstonepp |
66eb4fdb23fcee252f2c081236d710f9cc8f901f | 9,021 | cxx | C++ | test/integration/file/file_system_path_itest.cxx | ANSAKsoftware/ansak-lib | 93eff12a50464f3071b27c8eb16336f93d0d04c6 | [
"BSD-2-Clause"
] | null | null | null | test/integration/file/file_system_path_itest.cxx | ANSAKsoftware/ansak-lib | 93eff12a50464f3071b27c8eb16336f93d0d04c6 | [
"BSD-2-Clause"
] | null | null | null | test/integration/file/file_system_path_itest.cxx | ANSAKsoftware/ansak-lib | 93eff12a50464f3071b27c8eb16336f93d0d04c6 | [
"BSD-2-Clause"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2015, Arthur N. Klassen
// 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... | 34.431298 | 152 | 0.677419 | ANSAKsoftware |
66eba512c0ab5e256302c89973cc39facd55f297 | 4,264 | cpp | C++ | src/ast/ast.cpp | strandfield/libscript | 5d413762ad8ce88ff887642f6947032017dd284c | [
"MIT"
] | 3 | 2020-12-28T01:40:45.000Z | 2021-05-18T01:47:07.000Z | src/ast/ast.cpp | strandfield/libscript | 5d413762ad8ce88ff887642f6947032017dd284c | [
"MIT"
] | 4 | 2019-06-29T12:23:11.000Z | 2020-07-25T15:38:46.000Z | src/ast/ast.cpp | strandfield/libscript | 5d413762ad8ce88ff887642f6947032017dd284c | [
"MIT"
] | 1 | 2021-11-17T01:49:42.000Z | 2021-11-17T01:49:42.000Z | // Copyright (C) 2018-2020 Vincent Chambrin
// This file is part of the libscript library
// For conditions of distribution and use, see copyright notice in LICENSE
#include "script/ast.h"
#include "script/ast/ast_p.h"
#include "script/script.h"
#include "script/parser/parser.h"
namespace script
{
namespace ast
{
... | 20.401914 | 98 | 0.680582 | strandfield |
66ecedb542778696ac08c948f03f710a17989572 | 1,303 | hpp | C++ | sprout/operation/fixed/pop_front.hpp | jwakely/Sprout | a64938fad0a64608f22d39485bc55a1e0dc07246 | [
"BSL-1.0"
] | 1 | 2018-09-21T23:50:44.000Z | 2018-09-21T23:50:44.000Z | sprout/operation/fixed/pop_front.hpp | jwakely/Sprout | a64938fad0a64608f22d39485bc55a1e0dc07246 | [
"BSL-1.0"
] | null | null | null | sprout/operation/fixed/pop_front.hpp | jwakely/Sprout | a64938fad0a64608f22d39485bc55a1e0dc07246 | [
"BSL-1.0"
] | null | null | null | #ifndef SPROUT_OPERATION_FIXED_POP_FRONT_HPP
#define SPROUT_OPERATION_FIXED_POP_FRONT_HPP
#include <cstddef>
#include <sprout/config.hpp>
#include <sprout/index_tuple.hpp>
#include <sprout/container/traits.hpp>
#include <sprout/container/functions.hpp>
#include <sprout/operation/fixed/erase.hpp>
namespace s... | 27.723404 | 138 | 0.712203 | jwakely |
66f280f9b1e2b8eb1baa1f423e6ca7cad0f381c1 | 14,166 | cpp | C++ | src/sksl/SkSLConstantFolder.cpp | kita-ui/skia | c09761f57605f408e473a73fbfe25a2636676bfa | [
"BSD-3-Clause"
] | null | null | null | src/sksl/SkSLConstantFolder.cpp | kita-ui/skia | c09761f57605f408e473a73fbfe25a2636676bfa | [
"BSD-3-Clause"
] | null | null | null | src/sksl/SkSLConstantFolder.cpp | kita-ui/skia | c09761f57605f408e473a73fbfe25a2636676bfa | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2020 Google LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/sksl/SkSLConstantFolder.h"
#include <limits>
#include "src/sksl/SkSLContext.h"
#include "src/sksl/SkSLErrorReporter.h"
#include "src/sksl/ir/SkSLBinaryExpressio... | 42.413174 | 100 | 0.552802 | kita-ui |
66f87bd07f2a3f2ac283c3fa24534763080fc38a | 8,252 | cc | C++ | icing/index/iterator/doc-hit-info-iterator-and.cc | PixelPlusUI-SnowCone/external_icing | 206a7d6b4ab83c6acdb8b14565e2431751c9e4cf | [
"Apache-2.0"
] | null | null | null | icing/index/iterator/doc-hit-info-iterator-and.cc | PixelPlusUI-SnowCone/external_icing | 206a7d6b4ab83c6acdb8b14565e2431751c9e4cf | [
"Apache-2.0"
] | null | null | null | icing/index/iterator/doc-hit-info-iterator-and.cc | PixelPlusUI-SnowCone/external_icing | 206a7d6b4ab83c6acdb8b14565e2431751c9e4cf | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2019 Google LLC
//
// 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... | 36.034934 | 80 | 0.706495 | PixelPlusUI-SnowCone |
0f007ab125e34219206e41bd0566f58baa5e1ede | 12,890 | hpp | C++ | externals/stlsoft-1.9.118/include/winstl/performance/threadtimes_counter.hpp | betasheet/diffingo | 285d21b16c118155e5c149b20fcb20a20276f3d7 | [
"MIT"
] | 17 | 2015-03-26T14:10:25.000Z | 2022-02-09T20:55:04.000Z | externals/stlsoft-1.9.118/include/winstl/performance/threadtimes_counter.hpp | betasheet/diffingo | 285d21b16c118155e5c149b20fcb20a20276f3d7 | [
"MIT"
] | null | null | null | externals/stlsoft-1.9.118/include/winstl/performance/threadtimes_counter.hpp | betasheet/diffingo | 285d21b16c118155e5c149b20fcb20a20276f3d7 | [
"MIT"
] | 3 | 2019-05-05T22:10:56.000Z | 2019-08-22T22:24:23.000Z | /* /////////////////////////////////////////////////////////////////////////
* File: winstl/performance/threadtimes_counter.hpp
*
* Purpose: WinSTL thread-time performance counter class.
*
* Created: 22nd March 2002
* Updated: 6th May 2010
*
* Home: http://stlsoft.org/
*
* ... | 35.027174 | 119 | 0.675795 | betasheet |
0f0163418e986baae0109e0fc5fe9b675895bd69 | 6,055 | cpp | C++ | level_zero/tools/source/sysman/pci/linux/os_pci_imp.cpp | kcencele/compute-runtime | bec8cdd6f1392bf0549e3b9340b4926b6e84f89a | [
"Intel",
"MIT"
] | null | null | null | level_zero/tools/source/sysman/pci/linux/os_pci_imp.cpp | kcencele/compute-runtime | bec8cdd6f1392bf0549e3b9340b4926b6e84f89a | [
"Intel",
"MIT"
] | null | null | null | level_zero/tools/source/sysman/pci/linux/os_pci_imp.cpp | kcencele/compute-runtime | bec8cdd6f1392bf0549e3b9340b4926b6e84f89a | [
"Intel",
"MIT"
] | null | null | null | /*
* Copyright (C) 2020-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "level_zero/tools/source/sysman/pci/linux/os_pci_imp.h"
#include "level_zero/tools/source/sysman/linux/fs_access.h"
#include "level_zero/tools/source/sysman/sysman_const.h"
#include "sysman/pci/pci_imp.h"
namespace L0... | 34.016854 | 124 | 0.653014 | kcencele |
0f016646f07582e9224ef4ba3d786e57bd6392df | 948 | hpp | C++ | server/homeserver/scripting/Scriptable.hpp | williamkoehler/home-server | ce99af73ea2e53fea3939fe0c4442433e65ac670 | [
"MIT"
] | 1 | 2021-07-05T21:11:59.000Z | 2021-07-05T21:11:59.000Z | server/homeserver/scripting/Scriptable.hpp | williamkoehler/home-server | ce99af73ea2e53fea3939fe0c4442433e65ac670 | [
"MIT"
] | null | null | null | server/homeserver/scripting/Scriptable.hpp | williamkoehler/home-server | ce99af73ea2e53fea3939fe0c4442433e65ac670 | [
"MIT"
] | null | null | null | #pragma once
#include "../common.hpp"
#include <utils/Property.hpp>
#include <utils/Timer.hpp>
#include <utils/Event.hpp>
namespace server
{
class Scriptable
{
public:
virtual bool AddAttribute(const std::string& id, const char* json) = 0;
virtual bool RemoveAttribute(const std::string& id) = 0;
... | 33.857143 | 94 | 0.67827 | williamkoehler |
0f02842b81f70087aee1e30f8076ec66927bf50b | 945 | cpp | C++ | Engine/source/shaderGen/shaderDependency.cpp | fr1tz/alux3d | 249a3b51751ce3184d52879b481f83eabe89e7e3 | [
"MIT"
] | 46 | 2015-01-05T17:34:43.000Z | 2022-01-04T04:03:09.000Z | Engine/source/shaderGen/shaderDependency.cpp | fr1tz/alux3d | 249a3b51751ce3184d52879b481f83eabe89e7e3 | [
"MIT"
] | 10 | 2015-01-20T23:14:46.000Z | 2019-04-05T22:04:15.000Z | Engine/source/shaderGen/shaderDependency.cpp | fr1tz/terminal-overload | 85f0689a40022e5eb7e54dcb6ddfb5ddd82a0a60 | [
"CC-BY-4.0"
] | 9 | 2015-08-08T18:46:06.000Z | 2021-02-01T13:53:20.000Z | // Copyright information can be found in the file named COPYING
// located in the root directory of this distribution.
#include "platform/platform.h"
#include "shaderGen/shaderDependency.h"
#include "core/stream/fileStream.h"
#include "core/frameAllocator.h"
ShaderIncludeDependency::ShaderIncludeDependency( const T... | 32.586207 | 101 | 0.71746 | fr1tz |
0f045eb3ae7e51c8eee5033f23351532814e124e | 1,241 | cpp | C++ | src/test/json/big_list_of_naughty_strings.cpp | ClausKlein/json | eeabe4bdef13ccba985b4423ce558438fd2f5497 | [
"BSD-3-Clause",
"Apache-2.0",
"MIT"
] | null | null | null | src/test/json/big_list_of_naughty_strings.cpp | ClausKlein/json | eeabe4bdef13ccba985b4423ce558438fd2f5497 | [
"BSD-3-Clause",
"Apache-2.0",
"MIT"
] | null | null | null | src/test/json/big_list_of_naughty_strings.cpp | ClausKlein/json | eeabe4bdef13ccba985b4423ce558438fd2f5497 | [
"BSD-3-Clause",
"Apache-2.0",
"MIT"
] | null | null | null | // Copyright (c) 2017-2020 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/json/
#include "test.hpp"
#include <tao/json/from_file.hpp>
#include <tao/json/from_string.hpp>
#include <tao/json/to_string.hpp>
#include <tao/json/value.hpp>
#include <fstream>
#include ... | 26.978261 | 77 | 0.625302 | ClausKlein |
0f0691bada8b570f7902e6bda627484f343b120b | 749 | cpp | C++ | src/util/noise.cpp | ArneDJ/terranova | 533e9e5687d464153418f73a1d811f57e7c572b9 | [
"CC0-1.0"
] | null | null | null | src/util/noise.cpp | ArneDJ/terranova | 533e9e5687d464153418f73a1d811f57e7c572b9 | [
"CC0-1.0"
] | null | null | null | src/util/noise.cpp | ArneDJ/terranova | 533e9e5687d464153418f73a1d811f57e7c572b9 | [
"CC0-1.0"
] | null | null | null | #include "../extern/fastnoise/FastNoise.h"
#include "image.h"
#include "noise.h"
namespace util {
void noise_image(Image<float> &image, FastNoise *fastnoise, const glm::vec2 &sample_freq, uint8_t channel)
{
const int nsteps = 32;
const int stepsize = image.width() / nsteps;
#pragma omp parallel for
for (int ste... | 24.966667 | 106 | 0.623498 | ArneDJ |
0f07ec79e97c75b954de15d912455bf2c3850df7 | 586 | cpp | C++ | client/include/game/CTaskComplexLeaveCar.cpp | MayconFelipeA/sampvoiceatt | 3fae8a2cf37dfad2e3925d56aebfbbcd4162b0ff | [
"MIT"
] | 368 | 2015-01-01T21:42:00.000Z | 2022-03-29T06:22:22.000Z | client/include/game/CTaskComplexLeaveCar.cpp | MayconFelipeA/sampvoiceatt | 3fae8a2cf37dfad2e3925d56aebfbbcd4162b0ff | [
"MIT"
] | 92 | 2019-01-23T23:02:31.000Z | 2022-03-23T19:59:40.000Z | client/include/game/CTaskComplexLeaveCar.cpp | MayconFelipeA/sampvoiceatt | 3fae8a2cf37dfad2e3925d56aebfbbcd4162b0ff | [
"MIT"
] | 179 | 2015-02-03T23:41:17.000Z | 2022-03-26T08:27:16.000Z | /*
Plugin-SDK (Grand Theft Auto San Andreas) source file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#include "CTaskComplexLeaveCar.h"
CTaskComplexLeaveCar::CTaskComplexLeaveCar(CVehicle* pTargetVehicle, int nTargetDoor, int nD... | 39.066667 | 174 | 0.78157 | MayconFelipeA |
0f08c5ae6fe4323ed96133a0fb109da4445346a3 | 8,701 | cpp | C++ | Source/OceanCS/CSFFT/fft_512x512_c2c.cpp | ytt747536970/ocean | 1bd27aae62294229c8b8b07058a94b7d60723b1b | [
"MIT"
] | null | null | null | Source/OceanCS/CSFFT/fft_512x512_c2c.cpp | ytt747536970/ocean | 1bd27aae62294229c8b8b07058a94b7d60723b1b | [
"MIT"
] | null | null | null | Source/OceanCS/CSFFT/fft_512x512_c2c.cpp | ytt747536970/ocean | 1bd27aae62294229c8b8b07058a94b7d60723b1b | [
"MIT"
] | null | null | null | // Copyright (c) 2011 NVIDIA Corporation. All rights reserved.
//
// TO THE MAXIMUM EXTENT PERMITTED BY APPLICABLE LAW, THIS SOFTWARE IS PROVIDED
// *AS IS* AND NVIDIA AND ITS SUPPLIERS DISCLAIM ALL WARRANTIES, EITHER EXPRESS
// OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, NONINFRINGEMENT,IMPLIED WARRANTIES OF... | 32.958333 | 122 | 0.748765 | ytt747536970 |
0f0cbbacc6522724d921f7ac2982bf39918e8c85 | 504 | hpp | C++ | Server/participant.hpp | Whiskarek/UDPChat | c7b5b34a1028a39c3b66a6154285688e05b2a3a9 | [
"Apache-2.0"
] | 1 | 2021-04-15T11:31:39.000Z | 2021-04-15T11:31:39.000Z | Server/participant.hpp | AndrewShkrob/UDPChat | c7b5b34a1028a39c3b66a6154285688e05b2a3a9 | [
"Apache-2.0"
] | null | null | null | Server/participant.hpp | AndrewShkrob/UDPChat | c7b5b34a1028a39c3b66a6154285688e05b2a3a9 | [
"Apache-2.0"
] | null | null | null | #ifndef SERVER_PARTICIPANT_HPP
#define SERVER_PARTICIPANT_HPP
#include <memory>
#include "chat_message.hpp"
class Participant {
public:
Participant(std::string username) : _username(std::move(username)) {}
virtual ~Participant() {}
virtual void deliver(const ChatMessage &msg) = 0;
std::string get_u... | 19.384615 | 73 | 0.724206 | Whiskarek |
0f1114891df4246096544ed101e3dee4a012dc0f | 1,862 | cc | C++ | src/connector/native/window.cc | andyshand/bitwig-enhancement-suite | 914bf362444becac6a471faa431c3be735122e36 | [
"MIT"
] | 12 | 2020-10-20T13:37:33.000Z | 2021-02-17T21:06:08.000Z | src/connector/native/window.cc | andyshand/modwig | 914bf362444becac6a471faa431c3be735122e36 | [
"MIT"
] | 28 | 2020-10-06T19:04:03.000Z | 2022-03-25T19:12:14.000Z | src/connector/native/window.cc | andyshand/bitwig-enhancement-suite | 914bf362444becac6a471faa431c3be735122e36 | [
"MIT"
] | null | null | null | #include "point.h"
#include "window.h"
#include "rect.h"
#include <CoreGraphics/CoreGraphics.h>
#include <napi.h>
#include <iostream>
#include <string>
#include "string.h"
Napi::Value GetMainScreen(const Napi::CallbackInfo &info) {
Napi::Env env = info.Env();
auto mainDisplayId = CGMainDisplayID();
CGFlo... | 38 | 138 | 0.691729 | andyshand |
0f12aeeb61c100b731a89caba2295b7d73be1daa | 3,280 | cpp | C++ | src/libtsduck/dtv/codec/tsHEVCAccessUnitDelimiter.cpp | ethouris/tsduck | a1963c55c22086a9227a7530718fc5b3e8a69873 | [
"BSD-2-Clause"
] | 1 | 2019-04-23T21:16:00.000Z | 2019-04-23T21:16:00.000Z | src/libtsduck/dtv/codec/tsHEVCAccessUnitDelimiter.cpp | ethouris/tsduck | a1963c55c22086a9227a7530718fc5b3e8a69873 | [
"BSD-2-Clause"
] | null | null | null | src/libtsduck/dtv/codec/tsHEVCAccessUnitDelimiter.cpp | ethouris/tsduck | a1963c55c22086a9227a7530718fc5b3e8a69873 | [
"BSD-2-Clause"
] | null | null | null | //----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2021, Thierry Lelegard
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the f... | 36.853933 | 98 | 0.557317 | ethouris |
0f137a3dd45a8d4196586c4b2039b8a74d55408d | 2,402 | hpp | C++ | nexxT/src/Services.hpp | pfrydlewicz/nexxT | 33616dbeee448c59201aa3009d637fe6b8d2b39c | [
"Apache-2.0"
] | 5 | 2020-05-03T10:52:14.000Z | 2022-03-02T10:32:33.000Z | nexxT/src/Services.hpp | pfrydlewicz/nexxT | 33616dbeee448c59201aa3009d637fe6b8d2b39c | [
"Apache-2.0"
] | 32 | 2020-05-18T15:49:00.000Z | 2022-02-22T20:10:56.000Z | nexxT/src/Services.hpp | pfrydlewicz/nexxT | 33616dbeee448c59201aa3009d637fe6b8d2b39c | [
"Apache-2.0"
] | 2 | 2020-03-21T15:04:46.000Z | 2021-03-01T15:42:49.000Z | /*
* SPDX-License-Identifier: Apache-2.0
* Copyright (C) 2020 ifm electronic gmbh
*
* THE PROGRAM IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND.
*/
/**
\file Services.hpp
The interface corresponding to \verbatim embed:rst :py:mod:`nexxT.interface.Services \endverbatim
*/
#ifndef NEXXT_SERVICES_HPP
#d... | 30.025 | 119 | 0.652373 | pfrydlewicz |
0f159463ad01cfd4420b9df75be7f521f7be5b73 | 4,008 | hpp | C++ | src/split_strand_graph.hpp | lnceballosz/vg | 82d8ba2f38299525c0b0a6b19dcb785d2c439cfa | [
"MIT"
] | null | null | null | src/split_strand_graph.hpp | lnceballosz/vg | 82d8ba2f38299525c0b0a6b19dcb785d2c439cfa | [
"MIT"
] | null | null | null | src/split_strand_graph.hpp | lnceballosz/vg | 82d8ba2f38299525c0b0a6b19dcb785d2c439cfa | [
"MIT"
] | null | null | null | // SPDX-FileCopyrightText: 2014 Erik Garrison
//
// SPDX-License-Identifier: MIT
#ifndef VG_SPLIT_STRAND_GRAPH_HPP_INCLUDED
#define VG_SPLIT_STRAND_GRAPH_HPP_INCLUDED
/** \file
* split_strand_graph.hpp: defines a handle graph overlay that duplicates nodes
* and edges so that both the forward and reverse strand of t... | 37.811321 | 94 | 0.609032 | lnceballosz |
0f15d2decb8d3148129fcd200d0dbe58c916ada8 | 5,625 | cpp | C++ | tutorial/test_async_memory_layout.cpp | tearshark/librf | 4299e2ff264aac9bcd9e4788e528de80044252c8 | [
"Apache-2.0"
] | 434 | 2017-09-24T06:41:06.000Z | 2022-03-29T10:24:14.000Z | tutorial/test_async_memory_layout.cpp | tearshark/librf | 4299e2ff264aac9bcd9e4788e528de80044252c8 | [
"Apache-2.0"
] | 7 | 2017-12-06T13:08:33.000Z | 2021-12-01T07:46:12.000Z | tutorial/test_async_memory_layout.cpp | tearshark/librf | 4299e2ff264aac9bcd9e4788e528de80044252c8 | [
"Apache-2.0"
] | 95 | 2017-09-24T06:14:04.000Z | 2022-03-22T06:23:14.000Z | #include <chrono>
#include <iostream>
#include <string>
#include <thread>
#include "librf.h"
using namespace resumef;
#ifndef __GNUC__ //GCC: 没有提供__builtin_coro_frame这样的内置函数
template<class _Ctype>
static void callback_get_long(int64_t a, int64_t b, _Ctype&& cb)
{
std::cout << std::endl << __FUNCTION__ << " - begi... | 37.751678 | 111 | 0.619911 | tearshark |
0f17d10a59bb17880ee6879713a1ef0cefe9f7fd | 2,132 | cpp | C++ | src/shared/data/settings.cpp | snowmeltarcade/projectbirdracing | 55cd479c81979de535b0cf496e91dd8d48b99fa8 | [
"MIT"
] | null | null | null | src/shared/data/settings.cpp | snowmeltarcade/projectbirdracing | 55cd479c81979de535b0cf496e91dd8d48b99fa8 | [
"MIT"
] | 3 | 2021-11-13T02:18:59.000Z | 2021-12-04T18:16:01.000Z | src/shared/data/settings.cpp | snowmeltarcade/projectbirdracing | 55cd479c81979de535b0cf496e91dd8d48b99fa8 | [
"MIT"
] | null | null | null | #include "settings.h"
#include "shared/utils/strings.h"
namespace pbr::shared::data {
std::optional<std::string> settings::get(const std::string& key) noexcept {
auto it = this->_map.find(key);
if (it == this->_map.end()) {
return {};
}
return this->_map[key];
}
... | 25.380952 | 107 | 0.515009 | snowmeltarcade |
0f1e07e1f1601881011c03e5da4c7c024b97f363 | 4,351 | cpp | C++ | src/qt/src/corelib/animation/qpauseanimation.cpp | martende/phantomjs | 5cecd7dde7b8fd04ad2c036d16f09a8d2a139854 | [
"BSD-3-Clause"
] | 1 | 2015-03-16T20:49:09.000Z | 2015-03-16T20:49:09.000Z | src/qt/src/corelib/animation/qpauseanimation.cpp | firedfox/phantomjs | afb0707c9db7b5e693ad1b216a50081565c08ebb | [
"BSD-3-Clause"
] | null | null | null | src/qt/src/corelib/animation/qpauseanimation.cpp | firedfox/phantomjs | afb0707c9db7b5e693ad1b216a50081565c08ebb | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtCore module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
**... | 27.891026 | 118 | 0.709262 | martende |
0f1f0460beb53978edc7a32feda7567bfbbf1e9f | 1,955 | cpp | C++ | aws-cpp-sdk-wellarchitected/source/model/ListLensReviewImprovementsResult.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-wellarchitected/source/model/ListLensReviewImprovementsResult.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2021-10-14T16:57:00.000Z | 2021-10-18T10:47:24.000Z | aws-cpp-sdk-wellarchitected/source/model/ListLensReviewImprovementsResult.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/wellarchitected/model/ListLensReviewImprovementsResult.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <aws/core/AmazonWebServiceResult.h>
#include <aws/core/utils/StringUtil... | 25.723684 | 146 | 0.759079 | perfectrecall |
0f1f3f75ea02c1daa2f765b06c2e26545b533f58 | 5,604 | cpp | C++ | src/tests/DispatcherTest/DispatcherTest.cpp | ADDubovik/StateReportable | 07132939e5ce5b38037e611c6dc5231566294b79 | [
"MIT"
] | 1 | 2022-02-13T11:42:50.000Z | 2022-02-13T11:42:50.000Z | src/tests/DispatcherTest/DispatcherTest.cpp | ADDubovik/StateReportable | 07132939e5ce5b38037e611c6dc5231566294b79 | [
"MIT"
] | null | null | null | src/tests/DispatcherTest/DispatcherTest.cpp | ADDubovik/StateReportable | 07132939e5ce5b38037e611c6dc5231566294b79 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include "core/Dispatcher.h"
#include "core/ReportLine.h"
#include "core/DispatcherImplementation.h"
#include "core/VectorHelpers.h"
#include <vector>
#include <algorithm>
#include <array>
using namespace StateReportable;
struct TestDestination
{
using Data = core::ReportLine;
using S... | 25.017857 | 107 | 0.680585 | ADDubovik |
0f1f86bc14907e305c772afcc328455974073934 | 8,325 | cpp | C++ | Game/Client/CEGUI/CEGUI/WidgetSets/Falagard/src/FalEditbox.cpp | hackerlank/SourceCode | b702c9e0a9ca5d86933f3c827abb02a18ffc9a59 | [
"MIT"
] | 4 | 2021-07-31T13:56:01.000Z | 2021-11-13T02:55:10.000Z | Game/Client/CEGUI/CEGUI/WidgetSets/Falagard/src/FalEditbox.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | null | null | null | Game/Client/CEGUI/CEGUI/WidgetSets/Falagard/src/FalEditbox.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | 7 | 2021-08-31T14:34:23.000Z | 2022-01-19T08:25:58.000Z | /************************************************************************
filename: FalEditbox.cpp
created: Sat Jun 25 2005
author: Paul D Turner <paul@cegui.org.uk>
*************************************************************************/
/*********************************************************... | 35.729614 | 118 | 0.578979 | hackerlank |
0f2129d3c5cf137aa56d9fda33d3e43d490ab804 | 7,603 | cpp | C++ | part2/main.cpp | enjalot/adventures_in_opencl | c222d15c076ee3f5f81b529eb47e87c8d8057096 | [
"MIT"
] | 152 | 2015-01-04T00:58:08.000Z | 2022-02-02T00:11:58.000Z | part2/main.cpp | ahmadm-atallah/adventures_in_opencl | c222d15c076ee3f5f81b529eb47e87c8d8057096 | [
"MIT"
] | 1 | 2017-09-21T13:36:15.000Z | 2017-09-21T13:36:15.000Z | part2/main.cpp | ahmadm-atallah/adventures_in_opencl | c222d15c076ee3f5f81b529eb47e87c8d8057096 | [
"MIT"
] | 71 | 2015-02-11T17:12:09.000Z | 2021-12-06T14:05:28.000Z | /*
* Adventures in OpenCL tutorial series
* Part 2
*
* author: Ian Johnson
* htt://enja.org
* code based on advisor Gordon Erlebacher's work
* NVIDIA's examples
* as well as various blogs and resources on the internet
*/
#include <stdio.h>
#include <stdlib.h>
#include <sstream>
#include <iomanip>
#include <mat... | 27.250896 | 89 | 0.592661 | enjalot |
0f225de35f273e6db5774e0e24ece82455e242cd | 926 | cpp | C++ | Game/Scorpio/src/PhysicsSimulation/PS_MovableCollider.cpp | hackerlank/SourceCode | b702c9e0a9ca5d86933f3c827abb02a18ffc9a59 | [
"MIT"
] | 4 | 2021-07-31T13:56:01.000Z | 2021-11-13T02:55:10.000Z | Game/Scorpio/src/PhysicsSimulation/PS_MovableCollider.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | null | null | null | Game/Scorpio/src/PhysicsSimulation/PS_MovableCollider.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | 7 | 2021-08-31T14:34:23.000Z | 2022-01-19T08:25:58.000Z | #include "PS_MovableCollider.h"
//------------------------------------------------------------------------------
void PS_MovableCollider::setPosition(PS_Scalar x, PS_Scalar y, PS_Scalar z)
{
setPosition(PS_Vector3(x, y, z));
}
//------------------------------------------------------------------------------
void PS... | 33.071429 | 80 | 0.430886 | hackerlank |
0f22d1d4a84242d0f1652994198fd0fe6981c9ec | 1,252 | hpp | C++ | silkrpc/types/log.hpp | enriavil1/silkrpc | 1fa2109658d4c89b6cfdd5190d919bd1324f367e | [
"Apache-2.0"
] | 9 | 2021-03-08T13:26:46.000Z | 2022-02-25T23:23:16.000Z | silkrpc/types/log.hpp | enriavil1/silkrpc | 1fa2109658d4c89b6cfdd5190d919bd1324f367e | [
"Apache-2.0"
] | 151 | 2020-11-22T15:42:58.000Z | 2022-03-31T20:12:18.000Z | silkrpc/types/log.hpp | enriavil1/silkrpc | 1fa2109658d4c89b6cfdd5190d919bd1324f367e | [
"Apache-2.0"
] | 5 | 2021-03-15T11:01:34.000Z | 2022-03-12T15:45:00.000Z | /*
Copyright 2020 The Silkrpc Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed t... | 24.54902 | 75 | 0.718051 | enriavil1 |
0f24cfb6e46e468609fabc0ebc9f89efadaf80fd | 611 | hpp | C++ | source/clock.hpp | blauerpullover/programmiersprachen-aufgabenblatt-3 | 6a9fdcbc88b348cbd52a99f45ec01d17f9b56872 | [
"MIT"
] | null | null | null | source/clock.hpp | blauerpullover/programmiersprachen-aufgabenblatt-3 | 6a9fdcbc88b348cbd52a99f45ec01d17f9b56872 | [
"MIT"
] | null | null | null | source/clock.hpp | blauerpullover/programmiersprachen-aufgabenblatt-3 | 6a9fdcbc88b348cbd52a99f45ec01d17f9b56872 | [
"MIT"
] | null | null | null | #ifndef CLOCK_HPP
#define CLOCK_HPP
#include "window.hpp"
#include "circle.hpp"
#include "color.hpp"
class Clock{
public:
Clock(Vec2 const& ctr, float r, Color const& clr);
void center (Vec2 const& ctr);
Vec2 center() const;
void radius (float r); //setter
float radius() co... | 21.068966 | 60 | 0.582651 | blauerpullover |
0f274c4904dea2542446d2abdfe933619aa2da34 | 5,570 | cpp | C++ | source/d3d9/d3d9_impl_swapchain.cpp | resistancelion/reshade | 5d2436eb8af1b7a17cae58e48a7dc4b7bce8243f | [
"BSD-3-Clause"
] | null | null | null | source/d3d9/d3d9_impl_swapchain.cpp | resistancelion/reshade | 5d2436eb8af1b7a17cae58e48a7dc4b7bce8243f | [
"BSD-3-Clause"
] | 11 | 2021-09-25T12:31:44.000Z | 2022-02-04T22:56:35.000Z | source/d3d9/d3d9_impl_swapchain.cpp | resistancelion/reshade | 5d2436eb8af1b7a17cae58e48a7dc4b7bce8243f | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2014 Patrick Mours. All rights reserved.
* License: https://github.com/crosire/reshade#license
*/
#include "d3d9_impl_device.hpp"
#include "d3d9_impl_swapchain.hpp"
#include "d3d9_impl_type_convert.hpp"
#include "dll_log.hpp" // Include late to get HRESULT log overloads
reshade::d3d9::swapchain_... | 33.963415 | 193 | 0.767864 | resistancelion |
0f282de197bb6cc18fee106ad360723323cc87cb | 808 | hpp | C++ | ui/src/core/model/graph/SequenceModel.hpp | thebigG/trackerboy | c6a818954b2a57bb1d883ad1d52764c6bd29de6d | [
"MIT"
] | null | null | null | ui/src/core/model/graph/SequenceModel.hpp | thebigG/trackerboy | c6a818954b2a57bb1d883ad1d52764c6bd29de6d | [
"MIT"
] | null | null | null | ui/src/core/model/graph/SequenceModel.hpp | thebigG/trackerboy | c6a818954b2a57bb1d883ad1d52764c6bd29de6d | [
"MIT"
] | null | null | null |
#pragma once
#include "core/model/graph/GraphModel.hpp"
#include "trackerboy/data/Sequence.hpp"
class SequenceModel : public GraphModel {
Q_OBJECT
public:
explicit SequenceModel(Module &mod, QObject *parent = nullptr);
virtual int count() override;
virtual DataType dataAt(int index) override;
... | 19.238095 | 77 | 0.69802 | thebigG |
0f2a0e28aa7a187dcde06ca5959f83b4b677d9da | 373 | hpp | C++ | include/awl/backends/sdl/system/event/timer_type_fwd.hpp | freundlich/libawl | 0d51f388a6b662373058cb51a24ef25ed826fa0f | [
"BSL-1.0"
] | null | null | null | include/awl/backends/sdl/system/event/timer_type_fwd.hpp | freundlich/libawl | 0d51f388a6b662373058cb51a24ef25ed826fa0f | [
"BSL-1.0"
] | null | null | null | include/awl/backends/sdl/system/event/timer_type_fwd.hpp | freundlich/libawl | 0d51f388a6b662373058cb51a24ef25ed826fa0f | [
"BSL-1.0"
] | null | null | null | #ifndef AWL_BACKENDS_SDL_SYSTEM_EVENT_TIMER_TYPE_FWD_HPP_INCLUDED
#define AWL_BACKENDS_SDL_SYSTEM_EVENT_TIMER_TYPE_FWD_HPP_INCLUDED
#include <awl/backends/sdl/system/event/type_fwd.hpp>
#include <fcppt/declare_strong_typedef.hpp>
namespace awl::backends::sdl::system::event
{
FCPPT_DECLARE_STRONG_TYPEDEF(awl::backend... | 24.866667 | 82 | 0.836461 | freundlich |
0f2d9d06364c7ffad253c80beaee054f06872230 | 170 | hxx | C++ | src/Primitives.hxx | LittleGreyCells/escheme-oops | 61adf2416e1ffe91f205e074d68d72d4ffbf49b9 | [
"MIT"
] | null | null | null | src/Primitives.hxx | LittleGreyCells/escheme-oops | 61adf2416e1ffe91f205e074d68d72d4ffbf49b9 | [
"MIT"
] | null | null | null | src/Primitives.hxx | LittleGreyCells/escheme-oops | 61adf2416e1ffe91f205e074d68d72d4ffbf49b9 | [
"MIT"
] | null | null | null | #ifndef SCHEME_PRIMITIVES_HXX
#define SCHEME_PRIMITIVES_HXX
#include "Node.hxx"
namespace scheme
{
namespace Primitives
{
void initialize();
}
}
#endif
| 11.333333 | 29 | 0.711765 | LittleGreyCells |
0f321520bac6a5826c58bccdacb60ab7281a61c5 | 9,120 | cc | C++ | src/logic/lib/factpp/expression.cc | amartya00/libowlcpp | cea67243502d007d1b97ee2bd5d5bc66553df0ad | [
"BSL-1.0"
] | null | null | null | src/logic/lib/factpp/expression.cc | amartya00/libowlcpp | cea67243502d007d1b97ee2bd5d5bc66553df0ad | [
"BSL-1.0"
] | null | null | null | src/logic/lib/factpp/expression.cc | amartya00/libowlcpp | cea67243502d007d1b97ee2bd5d5bc66553df0ad | [
"BSL-1.0"
] | null | null | null | /** @file "/owlcpp/lib/logic/factpp/expression.cpp"
part of owlcpp project.
@n @n Distributed under the Boost Software License, Version 1.0; see doc/license.txt.
@n Copyright Mikhail K Levin 2012
*******************************************************************************/
#include "expression.hpp"
#include "obj_t... | 34.029851 | 86 | 0.600329 | amartya00 |
0f3663fc3d6a8895897b7c20af75d7b6731506fd | 3,099 | cc | C++ | gltracesim/src/generator/pipeline/analysis_queue.cc | JRPan/gltracesim | 79708f503047922538ca2983392c0e9f99a4345a | [
"BSD-3-Clause"
] | 11 | 2018-06-12T01:38:52.000Z | 2021-05-21T19:53:27.000Z | gltracesim/src/generator/pipeline/analysis_queue.cc | JRPan/gltracesim | 79708f503047922538ca2983392c0e9f99a4345a | [
"BSD-3-Clause"
] | null | null | null | gltracesim/src/generator/pipeline/analysis_queue.cc | JRPan/gltracesim | 79708f503047922538ca2983392c0e9f99a4345a | [
"BSD-3-Clause"
] | 3 | 2019-03-31T15:00:50.000Z | 2021-12-07T22:05:03.000Z | #include "generator/pipeline/analysis_queue.hh"
namespace gltracesim {
namespace pipeline {
AnalysisQueue::AnalysisQueue() :
fout_buffer(&_data0), analysis_buffer(&_data1)
{
}
AnalysisQueue::~AnalysisQueue()
{
}
//
void
AnalysisQueue::add_work_thread(int tid)
{
//
work_threads.push_back(work_thread_t(... | 15.974227 | 67 | 0.547273 | JRPan |
0f3a1fdbf8a8affc85768b879a621344e82feeb1 | 2,577 | hpp | C++ | src/emu6502/common.hpp | macsimbodnar/emu | 017bac23e38269065f2229dae89d92e788aeee73 | [
"MIT"
] | 3 | 2019-10-01T12:20:10.000Z | 2021-03-02T15:31:46.000Z | src/emu6502/common.hpp | macsimbodnar/emu | 017bac23e38269065f2229dae89d92e788aeee73 | [
"MIT"
] | null | null | null | src/emu6502/common.hpp | macsimbodnar/emu | 017bac23e38269065f2229dae89d92e788aeee73 | [
"MIT"
] | null | null | null | #pragma once
#include <stdint.h>
#include <string>
enum class access_mode_t { // Access mode type
READ = 0, // Read from memory
WRITE, // Write to memory
READ_ONLY
};
/**
* Callback used by the MOS6502 Class to read / write memory
*
* usr_data User data will be passed her... | 37.347826 | 80 | 0.648428 | macsimbodnar |
0f3a597799a7eaa8093311e54cb6677504541707 | 1,169 | hpp | C++ | include/PageContainer.hpp | FORTYSS0/lab-refactoring-12 | 898d5011a74fdfff3c9c077c9cfa45c9aa3f9f6f | [
"MIT"
] | null | null | null | include/PageContainer.hpp | FORTYSS0/lab-refactoring-12 | 898d5011a74fdfff3c9c077c9cfa45c9aa3f9f6f | [
"MIT"
] | null | null | null | include/PageContainer.hpp | FORTYSS0/lab-refactoring-12 | 898d5011a74fdfff3c9c077c9cfa45c9aa3f9f6f | [
"MIT"
] | null | null | null | // Copyright 2021 by FORTYSS
#ifndef INCLUDE_PAGECONTAINER_HPP_
#define INCLUDE_PAGECONTAINER_HPP_
#include <algorithm>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#include <iostream>
#include "Histogram.hpp"
#include "Loger.hpp"
#include "Statistic.hpp"
#include "UsedMemory.hpp"
constexpr ... | 23.38 | 78 | 0.727973 | FORTYSS0 |
0f3e553415fd79a5674ae86830770da5e4a8354c | 248 | cpp | C++ | C++/04_structor_example/04_structor_example.cpp | alientek-openedv/Embedded-Qt-Tutorial | 3c75142235b4d39c22e1ad56a5bd92d08c1a0d42 | [
"MIT"
] | 1 | 2022-02-21T03:19:36.000Z | 2022-02-21T03:19:36.000Z | C++/04_structor_example/04_structor_example.cpp | alientek-openedv/Embedded-Qt-Tutorial | 3c75142235b4d39c22e1ad56a5bd92d08c1a0d42 | [
"MIT"
] | null | null | null | C++/04_structor_example/04_structor_example.cpp | alientek-openedv/Embedded-Qt-Tutorial | 3c75142235b4d39c22e1ad56a5bd92d08c1a0d42 | [
"MIT"
] | 1 | 2021-10-19T04:03:56.000Z | 2021-10-19T04:03:56.000Z | #include <iostream>
#include <string>
using namespace std;
class Dog
{
public:
Dog();
~Dog();
};
int main()
{
Dog dog;
cout<<"构造与析构函数示例"<<endl;
return 0;
}
Dog::Dog()
{
cout<<"构造函数执行!"<<endl;
}
Dog::~Dog()
{
cout<<"析构函数执行!"<<endl;
}
| 8.551724 | 25 | 0.572581 | alientek-openedv |
0f43c0b90bd56351ccf107153b23eb75c5e60b44 | 4,487 | cc | C++ | src/kiwi/http/server.cc | hugopeixoto/kiwi-http | 7149939dcbb59a793e87b27ae4df771123356467 | [
"MIT"
] | null | null | null | src/kiwi/http/server.cc | hugopeixoto/kiwi-http | 7149939dcbb59a793e87b27ae4df771123356467 | [
"MIT"
] | null | null | null | src/kiwi/http/server.cc | hugopeixoto/kiwi-http | 7149939dcbb59a793e87b27ae4df771123356467 | [
"MIT"
] | null | null | null | /**
* @file response.h
* kiwi/http
*
* Copyright (c) 2013 Hugo Peixoto.
* Distributed under the MIT License.
*/
#include "kiwi/http/server.h"
#include "kiwi/http/response.h"
#include "kiwi/http/parser.h"
#include <unistd.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/select.h... | 19.76652 | 89 | 0.611767 | hugopeixoto |
0f574392a4810bec21ea7f18cc3411d1b382d42e | 38,669 | cc | C++ | system-test/maxtest/src/mariadb_nodes.cc | mariadb-corporation/MaxScale | e18ccc287d7714165479992f5214aacc7486048d | [
"BSD-3-Clause"
] | 1,157 | 2015-01-06T15:44:47.000Z | 2022-03-28T02:52:37.000Z | system-test/maxtest/src/mariadb_nodes.cc | mariadb-corporation/MaxScale | e18ccc287d7714165479992f5214aacc7486048d | [
"BSD-3-Clause"
] | 80 | 2015-02-13T11:49:05.000Z | 2022-01-17T09:00:11.000Z | system-test/maxtest/src/mariadb_nodes.cc | mariadb-corporation/MaxScale | e18ccc287d7714165479992f5214aacc7486048d | [
"BSD-3-Clause"
] | 361 | 2015-01-14T03:01:00.000Z | 2022-03-28T00:14:04.000Z | /**
* @file mariadb_nodes.cpp - backend nodes routines
*
* @verbatim
* Revision History
*
* Date Who Description
* 17/11/14 Timofey Turenko Initial implementation
*
* @endverbatim
*/
#include <maxtest/mariadb_nodes.hh>
#include <algorithm>
#include <cassert>
#include <future>
#include <functional>
#i... | 28.122909 | 131 | 0.552768 | mariadb-corporation |
0f576940fad4537a92bde833800536844b2229db | 1,619 | hpp | C++ | psrdada_cpp/effelsberg/edd/test/SpectralKurtosis.hpp | MPIfR-BDG/psrdada_cpp | aa9436e59eeb6ee597173caeba8a9e15db8d7d46 | [
"MIT"
] | null | null | null | psrdada_cpp/effelsberg/edd/test/SpectralKurtosis.hpp | MPIfR-BDG/psrdada_cpp | aa9436e59eeb6ee597173caeba8a9e15db8d7d46 | [
"MIT"
] | 3 | 2020-02-15T12:57:36.000Z | 2020-04-08T14:48:57.000Z | psrdada_cpp/effelsberg/edd/test/SpectralKurtosis.hpp | MPIfR-BDG/psrdada_cpp | aa9436e59eeb6ee597173caeba8a9e15db8d7d46 | [
"MIT"
] | 5 | 2020-01-09T14:34:54.000Z | 2022-03-14T07:15:39.000Z | #ifndef PSRDADA_CPP_EFFELSBERG_EDD_SPECTRALKURTOSIS_HPP
#define PSRDADA_CPP_EFFELSBERG_EDD_SPECTRALKURTOSIS_HPP
#include "psrdada_cpp/common.hpp"
#include <complex>
#include <vector>
#include <numeric>
namespace psrdada_cpp {
namespace effelsberg {
namespace edd {
struct RFIStatistics{
std::vector<int> rfi_stat... | 26.983333 | 95 | 0.644842 | MPIfR-BDG |
0f5866e40250bcd794a374b9e0bd22db67eceb0f | 33,597 | hh | C++ | include/maxscale/buffer.hh | crspecter/MaxScale | 471fa20a09ebc954fc3304500037b6b55dbbf9f1 | [
"BSD-3-Clause"
] | 1 | 2021-02-07T01:57:32.000Z | 2021-02-07T01:57:32.000Z | include/maxscale/buffer.hh | crspecter/MaxScale | 471fa20a09ebc954fc3304500037b6b55dbbf9f1 | [
"BSD-3-Clause"
] | null | null | null | include/maxscale/buffer.hh | crspecter/MaxScale | 471fa20a09ebc954fc3304500037b6b55dbbf9f1 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2018 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... | 25.337104 | 106 | 0.589547 | crspecter |
0f5974c018f76d79140baea5a192be4cb146ed94 | 701 | cpp | C++ | libc/test/src/math/ldexp_test.cpp | dongkyunahn-intel/llvm | a3bbc1105cf41809e6ea546ee1c541e8522db6d6 | [
"Apache-2.0"
] | null | null | null | libc/test/src/math/ldexp_test.cpp | dongkyunahn-intel/llvm | a3bbc1105cf41809e6ea546ee1c541e8522db6d6 | [
"Apache-2.0"
] | null | null | null | libc/test/src/math/ldexp_test.cpp | dongkyunahn-intel/llvm | a3bbc1105cf41809e6ea546ee1c541e8522db6d6 | [
"Apache-2.0"
] | 1 | 2021-11-23T17:16:34.000Z | 2021-11-23T17:16:34.000Z | //===-- Unittests for ldexp -----------------------------------------------===//
//
// 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
//
//===---------------------------... | 31.863636 | 80 | 0.606277 | dongkyunahn-intel |
0f5ae69f1efba23d170638182fc096508665ec27 | 3,105 | cpp | C++ | sources/libcore/geometry/linesDistances.cpp | ucpu/cage | c7abf329d84a81a40ff11f93c6ce88290bb898ac | [
"MIT"
] | 23 | 2018-03-18T14:28:26.000Z | 2022-03-25T20:32:29.000Z | sources/libcore/geometry/linesDistances.cpp | ucpu/cage | c7abf329d84a81a40ff11f93c6ce88290bb898ac | [
"MIT"
] | 8 | 2018-08-12T20:14:34.000Z | 2021-09-04T21:24:19.000Z | sources/libcore/geometry/linesDistances.cpp | ucpu/cage | c7abf329d84a81a40ff11f93c6ce88290bb898ac | [
"MIT"
] | 2 | 2019-11-03T17:11:51.000Z | 2021-03-31T02:05:33.000Z | #include <cage-core/geometry.h>
namespace cage
{
namespace
{
Real distanceLines(const Vec3 a1, const Vec3 &a2, const Vec3 &b1, const Vec3 &b2)
{
// algorithm taken from http://geomalgorithms.com/a07-_distance.html and modified
// Copyright 2001 softSurfer, 2012 Dan Sunday
// This code may be freely use... | 23.522727 | 92 | 0.530757 | ucpu |
0f5b88720be614925babe717f4aa09ee3937960c | 450 | cpp | C++ | jp.atcoder/abc027/abc027_b/11437293.cpp | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-09T03:06:25.000Z | 2022-02-09T03:06:25.000Z | jp.atcoder/abc027/abc027_b/11437293.cpp | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | 1 | 2022-02-05T22:53:18.000Z | 2022-02-09T01:29:30.000Z | jp.atcoder/abc027/abc027_b/11437293.cpp | kagemeka/atcoder-submissions | 91d8ad37411ea2ec582b10ba41b1e3cae01d4d6e | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
int n;
cin >> n;
vector<int> a(n+1);
for (int i = 0; i < n; i++) {cin >> a[i+1]; a[i+1] += a[i];}
if (a[n] % n) {cout << -1 << '\n'; return 0;}
int tot = 0;
int q = a[n] / n;
int l = 1;
for (int r = 1; r < n + 1; r++) {
if ... | 19.565217 | 63 | 0.366667 | kagemeka |
0f5d8c5fa66dd891ed707137bd40ded78638a874 | 4,429 | cpp | C++ | Testing/nbsimBasicTest.cpp | NottingDuck/PHAS0100Assignment2 | d1b191f3133fe084c856ea15cefe1f1e536de50c | [
"BSD-3-Clause"
] | null | null | null | Testing/nbsimBasicTest.cpp | NottingDuck/PHAS0100Assignment2 | d1b191f3133fe084c856ea15cefe1f1e536de50c | [
"BSD-3-Clause"
] | null | null | null | Testing/nbsimBasicTest.cpp | NottingDuck/PHAS0100Assignment2 | d1b191f3133fe084c856ea15cefe1f1e536de50c | [
"BSD-3-Clause"
] | null | null | null | /*=============================================================================
PHAS0100ASSIGNMENT2: PHAS0100 Assignment 2 Gravitational N-body Simulation
Copyright (c) University College London (UCL). All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty o... | 27.855346 | 100 | 0.688191 | NottingDuck |
0f5e824b4206373e208449a040f3c019d3bcc63a | 14,882 | tpp | C++ | src/biomolecules/sprelay/core/command_queue.tpp | lumik/sprelay | aaae1167038fc5477fc5dc9ee026d08c1d1b88bc | [
"BSD-3-Clause"
] | null | null | null | src/biomolecules/sprelay/core/command_queue.tpp | lumik/sprelay | aaae1167038fc5477fc5dc9ee026d08c1d1b88bc | [
"BSD-3-Clause"
] | 65 | 2017-04-11T14:40:39.000Z | 2022-01-28T18:24:39.000Z | src/biomolecules/sprelay/core/command_queue.tpp | lumik/sprelay | aaae1167038fc5477fc5dc9ee026d08c1d1b88bc | [
"BSD-3-Clause"
] | null | null | null | // -*-c++-*-
/***************************************************************************
** **
** Controlling interface for K8090 8-Channel Relay Card from Velleman **
** through usb using virtual serial port in Qt. *... | 38.654545 | 118 | 0.662814 | lumik |
0f5ee5e711b35806f48ab3cd7c1f23426c6e469c | 808 | cpp | C++ | xtd.forms/src/xtd/forms/button_base.cpp | lineCode/xtd.forms | 53b126a41513b4009870498b9f8e522dfc94c8de | [
"MIT"
] | 1 | 2022-02-04T08:15:31.000Z | 2022-02-04T08:15:31.000Z | xtd.forms/src/xtd/forms/button_base.cpp | lineCode/xtd.forms | 53b126a41513b4009870498b9f8e522dfc94c8de | [
"MIT"
] | null | null | null | xtd.forms/src/xtd/forms/button_base.cpp | lineCode/xtd.forms | 53b126a41513b4009870498b9f8e522dfc94c8de | [
"MIT"
] | null | null | null | #include "../../../include/xtd/forms/button_base.hpp"
#include <xtd/forms/native/window_button.hpp>
using namespace xtd;
using namespace xtd::forms;
button_base::button_base() {
this->make_control(*this);
this->control::data_->auto_size_mode_ = forms::auto_size_mode::grow_only;
this->control::data_->size_ = thi... | 26.064516 | 75 | 0.72896 | lineCode |
0f60ef3f6b37b1f32a7ceaa0b1683fcc73d0ad03 | 5,753 | hpp | C++ | src/core/linear-algebra/Tines_Gemv.hpp | mschmidt271/Tines | 2e754c930dcb0bfb52f0c8d06064076bc5f68230 | [
"BSD-2-Clause"
] | null | null | null | src/core/linear-algebra/Tines_Gemv.hpp | mschmidt271/Tines | 2e754c930dcb0bfb52f0c8d06064076bc5f68230 | [
"BSD-2-Clause"
] | null | null | null | src/core/linear-algebra/Tines_Gemv.hpp | mschmidt271/Tines | 2e754c930dcb0bfb52f0c8d06064076bc5f68230 | [
"BSD-2-Clause"
] | null | null | null | /*----------------------------------------------------------------------------------
Tines - Time Integrator, Newton and Eigen Solver - version 1.0
Copyright (2021) NTESS
https://github.com/sandialabs/Tines
Copyright 2021 National Technology & Engineering Solutions of Sandia, LLC (NTESS).
Under the terms of Contract... | 41.688406 | 84 | 0.61255 | mschmidt271 |
0f637e5d6c69c8f24c304ff2b2620b98ed627980 | 335 | cpp | C++ | linepass/main.cpp | yalehwy/linepw | 8e22ffaa49fa49dca44a6a8d6e38a16a64a41aa0 | [
"Apache-2.0"
] | null | null | null | linepass/main.cpp | yalehwy/linepw | 8e22ffaa49fa49dca44a6a8d6e38a16a64a41aa0 | [
"Apache-2.0"
] | null | null | null | linepass/main.cpp | yalehwy/linepw | 8e22ffaa49fa49dca44a6a8d6e38a16a64a41aa0 | [
"Apache-2.0"
] | null | null | null | //
// main.cpp
// linepasswordindex
//
// Created by Saber on 2018/4/27.
// Copyright © 2018年 Saber. All rights reserved.
//
//
#include <iostream>
#include "comprogram.hpp"
int main(int argc,char* argv[]) {
ComProgram *cp = new ComProgram();
int retVal = cp->main(argc, argv);
delete cp;
cp = nullptr;
re... | 17.631579 | 49 | 0.647761 | yalehwy |
0f63a4cf72ddde00946293cac4b29206657fed51 | 2,103 | cpp | C++ | dbms/src/Processors/Formats/Impl/JSONCompactRowOutputFormat.cpp | enriqueChen/ClickHouse | aef0e2c0a387e26645fca340e6ec7fc332562149 | [
"Apache-2.0"
] | null | null | null | dbms/src/Processors/Formats/Impl/JSONCompactRowOutputFormat.cpp | enriqueChen/ClickHouse | aef0e2c0a387e26645fca340e6ec7fc332562149 | [
"Apache-2.0"
] | null | null | null | dbms/src/Processors/Formats/Impl/JSONCompactRowOutputFormat.cpp | enriqueChen/ClickHouse | aef0e2c0a387e26645fca340e6ec7fc332562149 | [
"Apache-2.0"
] | 1 | 2020-05-22T18:44:44.000Z | 2020-05-22T18:44:44.000Z | #include <Processors/Formats/Impl/JSONCompactRowOutputFormat.h>
#include <Formats/FormatFactory.h>
#include <IO/WriteHelpers.h>
namespace DB
{
JSONCompactRowOutputFormat::JSONCompactRowOutputFormat(
WriteBuffer & out_, const Block & header, const FormatSettings & settings_)
: JSONRowOutputFormat(out_, heade... | 22.612903 | 114 | 0.68331 | enriqueChen |
0f6761a49555015a14415d6fe47b3a79e5af7542 | 3,592 | cpp | C++ | tagpool.cpp | theme/MangaLib | 76af5a4f73c19cb52e00188bf8f01a5bb2e80e49 | [
"BSD-3-Clause"
] | 1 | 2017-09-23T14:32:48.000Z | 2017-09-23T14:32:48.000Z | tagpool.cpp | theme/MangaLib | 76af5a4f73c19cb52e00188bf8f01a5bb2e80e49 | [
"BSD-3-Clause"
] | null | null | null | tagpool.cpp | theme/MangaLib | 76af5a4f73c19cb52e00188bf8f01a5bb2e80e49 | [
"BSD-3-Clause"
] | null | null | null | #include "tagpool.h"
TagPool::TagPool(SQLiteDB *db, QObject *parent) :
QObject(parent),db_(db)
{
connect(db_, SIGNAL(sigOpened()), this, SLOT(loadDBtags()));
connect(db_, SIGNAL(sigClosed()), this, SLOT(clearCache()));
}
QString TagPool::tagType(QString tag)
{
if (tagcache_.contains(tag)){
ret... | 23.788079 | 89 | 0.521993 | theme |
0f6839e4435289ca259207c7437b4d92c7447a6b | 632 | cpp | C++ | CPP/language/interface.cpp | lemming-life/Snippets | 796d34f3d33cb0e38d38197938bc36397ce8a27b | [
"Unlicense"
] | null | null | null | CPP/language/interface.cpp | lemming-life/Snippets | 796d34f3d33cb0e38d38197938bc36397ce8a27b | [
"Unlicense"
] | null | null | null | CPP/language/interface.cpp | lemming-life/Snippets | 796d34f3d33cb0e38d38197938bc36397ce8a27b | [
"Unlicense"
] | null | null | null | // Author: http://lemming.life
// Language: C++
// Description: Shows how to implement an interface in C++
/* At terminal do:
g++ interface.cpp
./a.out
*/
#include <iostream>
using namespace std;
// An interface
// - A promise that function(s) must be implemented.
class Interface {
public:
virtual int ge... | 21.066667 | 81 | 0.643987 | lemming-life |
0f683d69652c37a156c1ff7e7d990c8bfb17f3cd | 40,969 | cpp | C++ | examples/renderer/device_ispc/api/ispc_device.cpp | mbdriscoll/embree | 77bb760c005fb7097335da2defe4b4711c15cdd3 | [
"Intel",
"Apache-2.0"
] | 1 | 2016-03-20T23:59:42.000Z | 2016-03-20T23:59:42.000Z | examples/renderer/device_ispc/api/ispc_device.cpp | mbdriscoll/embree | 77bb760c005fb7097335da2defe4b4711c15cdd3 | [
"Intel",
"Apache-2.0"
] | null | null | null | examples/renderer/device_ispc/api/ispc_device.cpp | mbdriscoll/embree | 77bb760c005fb7097335da2defe4b4711c15cdd3 | [
"Intel",
"Apache-2.0"
] | null | null | null | // ======================================================================== //
// Copyright 2009-2013 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); //
// y... | 45.070407 | 185 | 0.641802 | mbdriscoll |
0f69e5708189f5495a4218bb1e77140215dbecbc | 1,439 | hpp | C++ | cpp/godot-cpp/include/gen/DampedSpringJoint2D.hpp | GDNative-Gradle/proof-of-concept | 162f467430760cf959f68f1638adc663fd05c5fd | [
"MIT"
] | 1 | 2021-03-16T09:51:00.000Z | 2021-03-16T09:51:00.000Z | cpp/godot-cpp/include/gen/DampedSpringJoint2D.hpp | GDNative-Gradle/proof-of-concept | 162f467430760cf959f68f1638adc663fd05c5fd | [
"MIT"
] | null | null | null | cpp/godot-cpp/include/gen/DampedSpringJoint2D.hpp | GDNative-Gradle/proof-of-concept | 162f467430760cf959f68f1638adc663fd05c5fd | [
"MIT"
] | null | null | null | #ifndef GODOT_CPP_DAMPEDSPRINGJOINT2D_HPP
#define GODOT_CPP_DAMPEDSPRINGJOINT2D_HPP
#include <gdnative_api_struct.gen.h>
#include <stdint.h>
#include <core/CoreTypes.hpp>
#include <core/Ref.hpp>
#include "Joint2D.hpp"
namespace godot {
class DampedSpringJoint2D : public Joint2D {
struct ___method_bindings {
go... | 26.163636 | 245 | 0.789437 | GDNative-Gradle |
0f6a22b643f4ad1210e6ebd33e8ff0b62d56941d | 1,479 | cpp | C++ | src/scomp/ast/expression.cpp | agatan/scomp | 24965bf78193a45cea6050e9f7db400c640012b9 | [
"MIT"
] | 1 | 2017-10-11T06:22:01.000Z | 2017-10-11T06:22:01.000Z | src/scomp/ast/expression.cpp | agatan/scomp | 24965bf78193a45cea6050e9f7db400c640012b9 | [
"MIT"
] | null | null | null | src/scomp/ast/expression.cpp | agatan/scomp | 24965bf78193a45cea6050e9f7db400c640012b9 | [
"MIT"
] | null | null | null | #include <scomp/ast/expression.hpp>
#include <boost/format.hpp>
#include <boost/algorithm/string/join.hpp>
#include <boost/range/adaptor/transformed.hpp>
#include <scomp/ast/statement.hpp>
namespace scomp {
namespace ast {
namespace node {
std::string literal_expr::to_string() const {
struct vis... | 29 | 88 | 0.505747 | agatan |
0f6b243297e2dccdb90e39622fe1c93511270781 | 4,454 | cpp | C++ | Luna/app/postEffect/screenCaptureTask.cpp | MetroGirl/Src_LUNA | f59befa48bd79ab3a8bf71e3c5b975c8e76e6b79 | [
"Artistic-2.0"
] | 3 | 2015-04-09T10:09:38.000Z | 2018-08-10T13:15:48.000Z | Luna/app/postEffect/screenCaptureTask.cpp | MetroGirl/Src_LUNA | f59befa48bd79ab3a8bf71e3c5b975c8e76e6b79 | [
"Artistic-2.0"
] | null | null | null | Luna/app/postEffect/screenCaptureTask.cpp | MetroGirl/Src_LUNA | f59befa48bd79ab3a8bf71e3c5b975c8e76e6b79 | [
"Artistic-2.0"
] | null | null | null | #include "stdafx.h"
#include "screenCaptureTask.h"
#include "app/renderer.h"
#include "app/renderPass/postEffectPass.h"
namespace luna{
LUNA_IMPLEMENT_CONCRETE(luna::ScreenCaptureTask);
ScreenCaptureTask::ScreenCaptureTask()
: mResourcePtr(nullptr)
{
}
ScreenCaptureTask::~ScreenCaptureTask()
{
}
bool Scr... | 26.35503 | 156 | 0.69533 | MetroGirl |
0f6bf355518a3d58829f8c1df8efbf1745480abd | 40 | cpp | C++ | Engine/Code/Engine/Core/EngineCommon.cpp | cugone/Abrams2022 | 54efe5fdd7d2d9697f005ee45a171ecea68d0df8 | [
"MIT"
] | 1 | 2020-07-14T06:58:50.000Z | 2020-07-14T06:58:50.000Z | Engine/Code/Engine/Core/EngineCommon.cpp | cugone/Abrams2022 | 54efe5fdd7d2d9697f005ee45a171ecea68d0df8 | [
"MIT"
] | 20 | 2021-11-29T14:09:33.000Z | 2022-03-26T20:12:44.000Z | Engine/Code/Engine/Core/EngineCommon.cpp | cugone/Abrams2022 | 54efe5fdd7d2d9697f005ee45a171ecea68d0df8 | [
"MIT"
] | 2 | 2019-05-01T21:49:33.000Z | 2021-04-01T08:22:21.000Z | #include "Engine/Core/EngineCommon.hpp"
| 20 | 39 | 0.8 | cugone |
0f6d34595c5014f2cf63ea5fc18e9d10e5902e98 | 12,053 | cpp | C++ | lib/var.cpp | scottshotgg/express | b4a2644154a731fc7486f77757deac035b18a8f3 | [
"Apache-2.0"
] | 3 | 2018-08-10T19:41:53.000Z | 2020-02-10T18:18:25.000Z | lib/var.cpp | scottshotgg/express | b4a2644154a731fc7486f77757deac035b18a8f3 | [
"Apache-2.0"
] | null | null | null | lib/var.cpp | scottshotgg/express | b4a2644154a731fc7486f77757deac035b18a8f3 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <list>
#include <map>
#include <string>
using namespace std;
enum varType {
pointerType,
intType,
boolType,
charType,
floatType,
stringType,
structType,
objectType,
arrayType
};
class var {
private:
varType type;
void* data;
public:
void deallocate() {
switch... | 26.374179 | 82 | 0.541608 | scottshotgg |
0f6e1d2ca7e2d3f7cbab6ab2a290237839e9182b | 3,112 | cpp | C++ | Game/Xerces/src/xercesc/dom/impl/DOMNodeVector.cpp | hackerlank/SourceCode | b702c9e0a9ca5d86933f3c827abb02a18ffc9a59 | [
"MIT"
] | 4 | 2021-07-31T13:56:01.000Z | 2021-11-13T02:55:10.000Z | Game/Xerces/src/xercesc/dom/impl/DOMNodeVector.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | null | null | null | Game/Xerces/src/xercesc/dom/impl/DOMNodeVector.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | 7 | 2021-08-31T14:34:23.000Z | 2022-01-19T08:25:58.000Z | /*
* Copyright 2001-2002,2004 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... | 24.503937 | 112 | 0.67063 | hackerlank |
0f6e546f36dc8c0ca1221eb76e3f814a8d3a9091 | 1,403 | cpp | C++ | tests/test_serialize_file.cpp | xaxousis/toml11 | d82814fc86c4afd8ad013239322f83c4788e469f | [
"MIT"
] | null | null | null | tests/test_serialize_file.cpp | xaxousis/toml11 | d82814fc86c4afd8ad013239322f83c4788e469f | [
"MIT"
] | null | null | null | tests/test_serialize_file.cpp | xaxousis/toml11 | d82814fc86c4afd8ad013239322f83c4788e469f | [
"MIT"
] | null | null | null | #define BOOST_TEST_MODULE "test_serialize_file"
#ifdef UNITTEST_FRAMEWORK_LIBRARY_EXIST
#include <boost/test/unit_test.hpp>
#else
#define BOOST_TEST_NO_LIB
#include <boost/test/included/unit_test.hpp>
#endif
#include <toml.hpp>
#include <iostream>
#include <fstream>
BOOST_AUTO_TEST_CASE(test_example)
{
const auto... | 25.509091 | 69 | 0.617249 | xaxousis |
0f6e7a342d4daa7b6da186ebc6910708efdbc484 | 1,034 | cpp | C++ | Mother Vertex - GFG/mother-vertex.cpp | champmaniac/LeetCode | 65810e0123e0ceaefb76d0a223436d1525dac0d4 | [
"MIT"
] | 1 | 2022-02-27T09:01:07.000Z | 2022-02-27T09:01:07.000Z | Mother Vertex - GFG/mother-vertex.cpp | champmaniac/LeetCode | 65810e0123e0ceaefb76d0a223436d1525dac0d4 | [
"MIT"
] | null | null | null | Mother Vertex - GFG/mother-vertex.cpp | champmaniac/LeetCode | 65810e0123e0ceaefb76d0a223436d1525dac0d4 | [
"MIT"
] | null | null | null | // { Driver Code Starts
#include<bits/stdc++.h>
using namespace std;
// } Driver Code Ends
class Solution
{
public:
//Function to find a Mother Vertex in the Graph.
void dfs(int s, vector<int>adj[], bool visit[], int &count){
visit[s] = true;
count++;
for(int v : adj[s]){
... | 18.464286 | 64 | 0.502901 | champmaniac |
0f6e8036d5b28b84f20123b4952bc7f807d7966d | 320 | cpp | C++ | abc_172/tempCodeRunnerFile.cpp | dashimaki360/atcoder | 1462150d59d50f270145703df579dba8c306376c | [
"MIT"
] | null | null | null | abc_172/tempCodeRunnerFile.cpp | dashimaki360/atcoder | 1462150d59d50f270145703df579dba8c306376c | [
"MIT"
] | null | null | null | abc_172/tempCodeRunnerFile.cpp | dashimaki360/atcoder | 1462150d59d50f270145703df579dba8c306376c | [
"MIT"
] | null | null | null | int main() {
// int n, m;
// cin >> n >> m;
// mint sum = 0;
// rep(k,n+1){
// mint tmp = comb(m,k);
// tmp *= comb.p(m-k, n-k);
// if(k&1) sum -= tmp;
// else sum += tmp;
// // cout << "tmp " << tmp.val() << endl;
// }
// sum *= comb.p(m,n);
// cout << sum << endl;
// return 0;
// } | 21.333333 | 46 | 0.378125 | dashimaki360 |
0f6f5108498ccb0b3000d9e64093d7c2f7e5623c | 7,783 | cpp | C++ | org/ortc/RTCSrtpSdesTransport.cpp | ortclib/ortclib-uwp | 7bf18f5a780a05ac6df7de5c30306699f634829b | [
"BSD-2-Clause"
] | 3 | 2017-03-02T00:56:18.000Z | 2019-07-24T09:30:13.000Z | org/ortc/RTCSrtpSdesTransport.cpp | ortclib/ortclib-uwp | 7bf18f5a780a05ac6df7de5c30306699f634829b | [
"BSD-2-Clause"
] | 3 | 2018-08-07T12:58:13.000Z | 2019-02-08T21:33:12.000Z | org/ortc/RTCSrtpSdesTransport.cpp | ortclib/ortclib-uwp | 7bf18f5a780a05ac6df7de5c30306699f634829b | [
"BSD-2-Clause"
] | 7 | 2016-10-13T16:14:39.000Z | 2018-10-19T02:30:30.000Z | #include "pch.h"
#include <org/ortc/RTCSrtpSdesTransport.h>
#include <org/ortc/RTCIceTransport.h>
#include <org/ortc/helpers.h>
#include <org/ortc/Error.h>
#include <ortc/services/IHelper.h>
#include <zsLib/SafeInt.h>
using Platform::Collections::Vector;
using Platform::Array;
using Platform::Object;
using namespa... | 33.403433 | 173 | 0.663369 | ortclib |
0f79271a627c0c2c0a828c65b24c0067a4b1d31f | 643 | cpp | C++ | test/cuda/cuda_device_guard.cpp | ipapadop/accxx | 29e771f75c4e916b1c5eca6c3d636d2b2ee3f631 | [
"MIT"
] | null | null | null | test/cuda/cuda_device_guard.cpp | ipapadop/accxx | 29e771f75c4e916b1c5eca6c3d636d2b2ee3f631 | [
"MIT"
] | null | null | null | test/cuda/cuda_device_guard.cpp | ipapadop/accxx | 29e771f75c4e916b1c5eca6c3d636d2b2ee3f631 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2019-2020 Yiannis Papadopoulos
*
* Distributed under the terms of the MIT License.
*
* (See accompanying file LICENSE or copy at http://opensource.org/licenses/MIT)
*/
#include <catch2/catch.hpp>
#include <cuda_runtime_api.h>
#include "accxx/cuda/call.hpp"
#include "accxx/cuda/cuda_device_gua... | 21.433333 | 80 | 0.692068 | ipapadop |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.