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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
74ffd0e5189df995eadad69a8dbe78b9067a9220 | 1,392 | hpp | C++ | BaseEntity.hpp | hrt/CSGO | 5dee3868bc2e101d608fc91fc06ec2c6c7c37446 | [
"MIT"
] | 94 | 2019-08-25T12:54:16.000Z | 2022-03-23T18:39:41.000Z | BaseEntity.hpp | inushahapuarachchi/CSGROW | 5dee3868bc2e101d608fc91fc06ec2c6c7c37446 | [
"MIT"
] | 2 | 2020-06-07T09:56:55.000Z | 2021-02-23T00:18:32.000Z | BaseEntity.hpp | inushahapuarachchi/CSGROW | 5dee3868bc2e101d608fc91fc06ec2c6c7c37446 | [
"MIT"
] | 23 | 2019-08-31T21:01:56.000Z | 2022-03-18T17:52:26.000Z | #pragma once
#include "Include.hpp"
namespace hazedumper
{
class BaseEntity
{
private:
uint32_t base;
Memory* memory = NULL;
public:
Vector3 getBonePosition(uint32_t boneId);
Vector3 getAbsolutePosition();
Vector3 getFeetPosition();
Vector3 getAimPunch();
Vector3 getVelocity();
... | 24.857143 | 46 | 0.686063 | hrt |
2d05c0958be4eb843cf41fb0c3eb06635fe4dfed | 959 | cpp | C++ | controller/queueditem.cpp | bartek56/quetzalcoatl | dc60dbed6e1e9de7b3318d26a6ef65a47a59120c | [
"MIT"
] | 5 | 2015-06-10T07:47:19.000Z | 2021-04-03T21:26:49.000Z | controller/queueditem.cpp | bartek56/quetzalcoatl | dc60dbed6e1e9de7b3318d26a6ef65a47a59120c | [
"MIT"
] | 1 | 2020-07-22T13:57:56.000Z | 2020-08-07T00:03:44.000Z | controller/queueditem.cpp | duganchen/quetzalcoatl2 | 6e7f1ef8f4b2eaf698cc86f4308039afc8df7b44 | [
"MIT"
] | 1 | 2022-01-11T16:02:41.000Z | 2022-01-11T16:02:41.000Z | #include "queueditem.h"
#include "controller.h"
#include "iconnames.h"
QueuedItem::QueuedItem(mpd_entity *entity, Item *parent)
: SongItem(QIcon::fromTheme(IconNames::Audio),
Qt::ItemIsEnabled | Qt::ItemIsSelectable | Qt::ItemIsDragEnabled,
false,
false,
... | 20.404255 | 80 | 0.660063 | bartek56 |
2d07b63b60fef84cd76a05b518a9edd5645ae5fd | 1,467 | hpp | C++ | Game/Profile.hpp | Mateusz00/Space-Invasion | a5c2b501454377f7496db91abbdebcb97ab3c814 | [
"BSD-2-Clause"
] | null | null | null | Game/Profile.hpp | Mateusz00/Space-Invasion | a5c2b501454377f7496db91abbdebcb97ab3c814 | [
"BSD-2-Clause"
] | 1 | 2018-11-18T14:48:56.000Z | 2018-11-26T19:21:07.000Z | Game/Profile.hpp | Mateusz00/2D-Fighter-Jet-Game | a5c2b501454377f7496db91abbdebcb97ab3c814 | [
"BSD-2-Clause"
] | null | null | null | #ifndef PROFILE_HPP
#define PROFILE_HPP
#include <vector>
#include <string>
#include <unordered_map>
class Player;
class KeyBinding;
class Profile
{
public:
using LevelScoresMap = std::unordered_map<int, std::unordered_map<int, int>>; // LevelID, playerID, score
Profile(std::v... | 36.675 | 113 | 0.537151 | Mateusz00 |
2d081c0a50855a4de24d6f2dc76b5837416b5843 | 2,512 | hpp | C++ | Aop/Aop.hpp | wuzhl2018/samples | 57b974d45e9acfd4278d00adb24d3c5d07e531b2 | [
"MIT"
] | null | null | null | Aop/Aop.hpp | wuzhl2018/samples | 57b974d45e9acfd4278d00adb24d3c5d07e531b2 | [
"MIT"
] | null | null | null | Aop/Aop.hpp | wuzhl2018/samples | 57b974d45e9acfd4278d00adb24d3c5d07e531b2 | [
"MIT"
] | 2 | 2019-01-30T08:56:54.000Z | 2020-03-23T13:51:18.000Z | #ifndef _AOP_H
#define _AOP_H
#include <iostream>
#include <typeinfo>
#include <type_traits>
#define HAS_MEMBER(member) \
template<typename T, typename... Args> \
class HasMember##member \
{ \
private: \
template<typename U> \
static auto check(int) -> decltype(std::declval<U>().member(std::declval<Args>()...... | 28.545455 | 139 | 0.611067 | wuzhl2018 |
2d1638494d9158aac0596aa620779f3cbadb68f6 | 12,651 | cc | C++ | memnesia/trace/memnesia-pmpi.cc | nolta/mpimemu | 35d89575c1e40c6330b92bce355acf4f8891c993 | [
"BSD-3-Clause"
] | 17 | 2016-12-07T15:28:37.000Z | 2021-08-17T22:40:41.000Z | memnesia/trace/memnesia-pmpi.cc | nolta/mpimemu | 35d89575c1e40c6330b92bce355acf4f8891c993 | [
"BSD-3-Clause"
] | 10 | 2016-07-20T17:31:38.000Z | 2019-03-01T20:55:59.000Z | memnesia/trace/memnesia-pmpi.cc | nolta/mpimemu | 35d89575c1e40c6330b92bce355acf4f8891c993 | [
"BSD-3-Clause"
] | 5 | 2016-10-27T16:41:42.000Z | 2021-11-01T20:48:39.000Z | /*
* Copyright (c) 2017-2019 Triad National Security, LLC
* All rights reserved.
*
* This file is part of the mpimemu project. See the LICENSE file at the
* top-level directory of this distribution.
*/
#include "memnesia-rt.h"
#include <iostream>
#include "mpi.h"
//////////////////////... | 16.823138 | 80 | 0.443285 | nolta |
2d17ea8fa828b5b0b83be2cd461369d37dfe306e | 7,335 | cpp | C++ | dependencies/DevIL/DevIL/src-ILUT/src/ilut_x11.cpp | amvb/GUCEF | 08fd423bbb5cdebbe4b70df24c0ae51716b65825 | [
"Apache-2.0"
] | 478 | 2015-01-04T16:59:53.000Z | 2022-03-07T20:28:07.000Z | dependencies/DevIL/DevIL/src-ILUT/src/ilut_x11.cpp | amvb/GUCEF | 08fd423bbb5cdebbe4b70df24c0ae51716b65825 | [
"Apache-2.0"
] | 83 | 2015-01-15T21:45:06.000Z | 2021-11-08T11:01:48.000Z | dependencies/DevIL/DevIL/src-ILUT/src/ilut_x11.cpp | amvb/GUCEF | 08fd423bbb5cdebbe4b70df24c0ae51716b65825 | [
"Apache-2.0"
] | 175 | 2015-01-04T03:30:39.000Z | 2020-01-27T17:08:14.000Z | //-----------------------------------------------------------------------------
//
// ImageLib Sources
// Copyright (C) 2002 by Denton Woods
// Copyright (C) 2002 Nelson Rush.
// Last modified: 05/18/2002
//
// Filename: src-ILUT/src/ilut_x11.cpp
//
// Description: X11 Pixmap and XImage binding functions (with XShm)
//... | 18.3375 | 108 | 0.639536 | amvb |
2d252c0fdc9aed9b97f59eb2aae32ca7e2886ca1 | 439 | hpp | C++ | src/Network/Player.hpp | Naxann/DrawAttack | b7de1324a2198105dbd9151d93f7d42fcb9b407e | [
"MIT"
] | 22 | 2015-11-08T04:24:48.000Z | 2018-07-27T22:05:42.000Z | src/Network/Player.hpp | Naxann/DrawAttack | b7de1324a2198105dbd9151d93f7d42fcb9b407e | [
"MIT"
] | 4 | 2015-11-14T20:17:38.000Z | 2019-10-01T17:04:56.000Z | src/Network/Player.hpp | Naxann/DrawAttack | b7de1324a2198105dbd9151d93f7d42fcb9b407e | [
"MIT"
] | 9 | 2015-11-14T17:41:35.000Z | 2017-05-05T14:03:13.000Z | #ifndef DRAWATTACK_PLAYER_HPP
#define DRAWATTACK_PLAYER_HPP
#include <cpp3ds/Network.hpp>
namespace DrawAttack {
class Player {
public:
Player(std::string name);
~Player();
const std::string& getName() const;
void incrementScore();
void setScore(const unsigned int& score);
const unsigned int& getScore() cons... | 16.884615 | 42 | 0.749431 | Naxann |
2d25c87a21a03af9d5a6bea9bf01fa10df9113b4 | 12,751 | cpp | C++ | Engine/src/Platform/OpenGL/glBuffers.cpp | Niels04/Engine | 2bc0f8d65ffb0f29035edc16958c60826da7f535 | [
"Apache-2.0"
] | null | null | null | Engine/src/Platform/OpenGL/glBuffers.cpp | Niels04/Engine | 2bc0f8d65ffb0f29035edc16958c60826da7f535 | [
"Apache-2.0"
] | null | null | null | Engine/src/Platform/OpenGL/glBuffers.cpp | Niels04/Engine | 2bc0f8d65ffb0f29035edc16958c60826da7f535 | [
"Apache-2.0"
] | null | null | null | #include "Engpch.hpp"
#include "glCore.hpp"
#include "GLbuffers.hpp"
namespace Engine
{
//:::::::VERTEX::BUFFER:::::::::
GLvertexBuffer::GLvertexBuffer(const uint32_t size, const void* data, const uint32_t usage)
{
GLCALL(glCreateBuffers(1, &m_renderer_id));
GLCALL(glBindBuffer(GL_ARRAY_BUFFER... | 37.836795 | 197 | 0.655243 | Niels04 |
2d2732c2013bcc936e46790831f6c9ebb79f3ca4 | 1,510 | cpp | C++ | CodeChef/LONG/DEC14/SANSKAR/sans.cpp | VastoLorde95/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 170 | 2017-07-25T14:47:29.000Z | 2022-01-26T19:16:31.000Z | CodeChef/LONG/DEC14/SANSKAR/sans.cpp | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | null | null | null | CodeChef/LONG/DEC14/SANSKAR/sans.cpp | navodit15/Competitive-Programming | 6c990656178fb0cd33354cbe5508164207012f24 | [
"MIT"
] | 55 | 2017-07-28T06:17:33.000Z | 2021-10-31T03:06:22.000Z | #include <iostream>
#include <algorithm>
using namespace std;
bool isSubsetSum (long long int arr[], long long int n, long long int sum)
{
// Base Cases
if (sum == 0)
return true;
if ((n == 0 || arr[n-1]==0) && sum!=0)
return false;
// If last element is greater than sum, then ignore it
if (arr[n-1] > sum)
... | 15.1 | 74 | 0.518543 | VastoLorde95 |
2d299f4503f85f6030dee660fbcf21e8d3a5725d | 6,901 | hpp | C++ | include/clotho/data_spaces/free_space/free_space_task_population_space.hpp | putnampp/clotho | 6dbfd82ef37b4265381cd78888cd6da8c61c68c2 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2015-06-16T21:27:57.000Z | 2022-01-25T23:26:54.000Z | include/clotho/data_spaces/free_space/free_space_task_population_space.hpp | putnampp/clotho | 6dbfd82ef37b4265381cd78888cd6da8c61c68c2 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2015-06-16T21:12:42.000Z | 2015-06-23T12:41:00.000Z | include/clotho/data_spaces/free_space/free_space_task_population_space.hpp | putnampp/clotho | 6dbfd82ef37b4265381cd78888cd6da8c61c68c2 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | // Copyright 2015 Patrick Putnam
//
// 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 o... | 35.389744 | 138 | 0.565425 | putnampp |
2d2c2ed1a5163b6966a64fddfdb02c9fb284d111 | 1,462 | hpp | C++ | Sort/Quicksort.hpp | A200K/Sort | fdeff6fd237dd1fe0e9259606ff2f7e23d7a075d | [
"MIT"
] | null | null | null | Sort/Quicksort.hpp | A200K/Sort | fdeff6fd237dd1fe0e9259606ff2f7e23d7a075d | [
"MIT"
] | null | null | null | Sort/Quicksort.hpp | A200K/Sort | fdeff6fd237dd1fe0e9259606ff2f7e23d7a075d | [
"MIT"
] | 1 | 2021-08-09T03:46:17.000Z | 2021-08-09T03:46:17.000Z | #ifndef QUICKSORT_H
#define QUICKSORT_H
#include "Sort.hpp"
/*
Quicksort
Best-Case Perf: O( n * log( n ) )
Average Perf: O( n * log( n ) )
Worst-Case Perf: O( n² )
Worst-Case Space: O( n )
*/
template<typename T>
class Quicksort : public SortBase<T>
{
public:
Quicksort( ) {}
virtual wchar_t *GetName( )
{
... | 16.804598 | 66 | 0.577975 | A200K |
2d2e81768e132cebc5ac5e8423b5971db6f1b5a8 | 1,571 | cpp | C++ | demos/stm32f10x/gpio_interrupts/source/main.cpp | SJSURoboticsTeam/urc-control_systems-2020 | 35dff34c1bc0beecc94ad6b8f2d4b551969c6854 | [
"Apache-2.0"
] | 1 | 2020-02-22T20:26:41.000Z | 2020-02-22T20:26:41.000Z | demos/stm32f10x/gpio_interrupts/source/main.cpp | SJSURoboticsTeam/urc-control_systems-2020 | 35dff34c1bc0beecc94ad6b8f2d4b551969c6854 | [
"Apache-2.0"
] | null | null | null | demos/stm32f10x/gpio_interrupts/source/main.cpp | SJSURoboticsTeam/urc-control_systems-2020 | 35dff34c1bc0beecc94ad6b8f2d4b551969c6854 | [
"Apache-2.0"
] | 4 | 2019-10-17T03:42:03.000Z | 2020-05-23T20:32:03.000Z | #include "L1_Peripheral/stm32f10x/gpio.hpp"
#include "utility/log.hpp"
int main()
{
sjsu::LogInfo("Staring GPIO Interrupt Application...");
sjsu::stm32f10x::Gpio pin0('A', 8);
sjsu::stm32f10x::Gpio pin1('B', 10);
sjsu::stm32f10x::Gpio pin2('B', 12);
pin0.Initialize();
pin1.Initialize();
pin2.Initialize... | 29.641509 | 77 | 0.665818 | SJSURoboticsTeam |
2d2e938140390d54e488bb7e171387f3a2c6a25a | 1,926 | cpp | C++ | aws-cpp-sdk-greengrassv2/source/model/LambdaDeviceMount.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-05T18:20:03.000Z | 2022-01-05T18:20:03.000Z | aws-cpp-sdk-greengrassv2/source/model/LambdaDeviceMount.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-01-03T23:59:37.000Z | 2022-01-03T23:59:37.000Z | aws-cpp-sdk-greengrassv2/source/model/LambdaDeviceMount.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-12-30T04:25:33.000Z | 2021-12-30T04:25:33.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/greengrassv2/model/LambdaDeviceMount.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Utils::Json;
using namespace Aws::Utils;
namespace Aws
... | 20.709677 | 125 | 0.745067 | perfectrecall |
2d36b7e93e7ea1678e8932d72424a299a0979711 | 4,352 | cpp | C++ | tests/testsCommon.cpp | markuspf/velocypack | 0cf8f21764f0336c32925ccd48f488cb8068a097 | [
"BSD-2-Clause",
"Apache-2.0"
] | 12,278 | 2015-01-29T17:11:33.000Z | 2022-03-31T21:12:00.000Z | tests/testsCommon.cpp | markuspf/velocypack | 0cf8f21764f0336c32925ccd48f488cb8068a097 | [
"BSD-2-Clause",
"Apache-2.0"
] | 9,469 | 2015-01-30T05:33:07.000Z | 2022-03-31T16:17:21.000Z | tests/testsCommon.cpp | markuspf/velocypack | 0cf8f21764f0336c32925ccd48f488cb8068a097 | [
"BSD-2-Clause",
"Apache-2.0"
] | 892 | 2015-01-29T16:26:19.000Z | 2022-03-20T07:44:30.000Z | ////////////////////////////////////////////////////////////////////////////////
/// @brief Library to build up VPack documents.
///
/// DISCLAIMER
///
/// Copyright 2015 ArangoDB GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except in compl... | 28.631579 | 80 | 0.691636 | markuspf |
2d39bfd227042e36b3993935bf380917e697933d | 2,404 | cpp | C++ | libs/bimap/example/standard_map_comparison.cpp | zyiacas/boost-doc-zh | 689e5a3a0a4dbead1a960f7b039e3decda54aa2c | [
"BSL-1.0"
] | 198 | 2015-01-13T05:47:18.000Z | 2022-03-09T04:46:46.000Z | libs/bimap/example/standard_map_comparison.cpp | sdfict/boost-doc-zh | 689e5a3a0a4dbead1a960f7b039e3decda54aa2c | [
"BSL-1.0"
] | 9 | 2015-01-28T16:33:19.000Z | 2020-04-12T23:03:28.000Z | libs/bimap/example/standard_map_comparison.cpp | sdfict/boost-doc-zh | 689e5a3a0a4dbead1a960f7b039e3decda54aa2c | [
"BSL-1.0"
] | 139 | 2015-01-15T20:09:31.000Z | 2022-01-31T15:21:16.000Z | // Boost.Bimap
//
// Copyright (c) 2006-2007 Matias Capeletto
//
// 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)
// VC++ 8.0 warns on usage of certain Standard Library and API functions that
// can be... | 25.574468 | 80 | 0.59193 | zyiacas |
2d40a349a84d3a477f3c0d9089f4e7fe540f490c | 346 | cpp | C++ | tests/math_test.cpp | Happysword/Circuits | aaec86fad83a5f8775b3b21984351365ebf51248 | [
"MIT"
] | 6 | 2016-05-12T12:24:52.000Z | 2022-03-16T02:15:14.000Z | tests/math_test.cpp | Happysword/Circuits | aaec86fad83a5f8775b3b21984351365ebf51248 | [
"MIT"
] | null | null | null | tests/math_test.cpp | Happysword/Circuits | aaec86fad83a5f8775b3b21984351365ebf51248 | [
"MIT"
] | 3 | 2016-10-01T05:41:26.000Z | 2020-11-26T03:24:59.000Z | #include "gtest/gtest.h"
TEST(SimpleMathTest, Sum) {
// TEST(TestCase, TestName
EXPECT_EQ(2, 1 + 1);
EXPECT_EQ(4, 2 + 2);
// EXPECT_EQ(expected, actual)
}
TEST(SimpleMathTest, Difference) {
EXPECT_EQ(0, 1 - 1);
EXPECT_EQ(1, 2 - 1);
EXPECT_EQ(2, 3 - 1);
}
TEST(SimpleMathTest, Multiplication) {... | 18.210526 | 39 | 0.618497 | Happysword |
2d445423494a3cbc2cbd46ffe59c3c4f5215354b | 2,172 | cpp | C++ | code/Other2/OctreeNode.cpp | warzes/SapphireShooter | 10ce2efbb9426050f0e16629aadc1977055ca62c | [
"MIT"
] | null | null | null | code/Other2/OctreeNode.cpp | warzes/SapphireShooter | 10ce2efbb9426050f0e16629aadc1977055ca62c | [
"MIT"
] | null | null | null | code/Other2/OctreeNode.cpp | warzes/SapphireShooter | 10ce2efbb9426050f0e16629aadc1977055ca62c | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Ray.h"
#include "Scene.h"
#include "Camera.h"
#include "Octree.h"
OctreeNode::OctreeNode() :
octree(nullptr),
octant(nullptr),
lastFrameNumber(0),
distance(0.0f)
{
SetFlag(NF_BOUNDING_BOX_DIRTY, true);
}
OctreeNode::~OctreeNode()
{
RemoveFromOctree();
}
void Octr... | 23.868132 | 99 | 0.675414 | warzes |
2d4467c52f19f270c572ab6dd1ae9e315d0dedd5 | 36,282 | hpp | C++ | src/Thunks/api-ms-win-core-threadpool.hpp | sonyps5201314/YY-Thunks | bec45dabefea67e34a80f98a5aa68d5791604a79 | [
"MIT"
] | 174 | 2018-05-17T12:31:57.000Z | 2022-03-29T16:30:48.000Z | src/Thunks/api-ms-win-core-threadpool.hpp | sonyps5201314/YY-Thunks | bec45dabefea67e34a80f98a5aa68d5791604a79 | [
"MIT"
] | 35 | 2018-06-01T09:27:26.000Z | 2022-01-28T02:20:24.000Z | src/Thunks/api-ms-win-core-threadpool.hpp | sonyps5201314/YY-Thunks | bec45dabefea67e34a80f98a5aa68d5791604a79 | [
"MIT"
] | 48 | 2018-06-27T12:10:58.000Z | 2022-03-25T13:17:33.000Z |
#include <threadpoolapiset.h>
#ifdef YY_Thunks_Implemented
struct _TP_CLEANUP_GROUP_FUNCS
{
//0
void (__fastcall* pTppWorkpFree)(_TP_WORK* Work);
//4
void* pTppWorkCallbackEpilog;
//8
SRWLOCK srwLock;
//C
void* pTppWorkCancelPendingCallbacks;
//0x10
};
struct TaskVFuncs
{
void(__fastcall* pExecuteCallbac... | 21.430597 | 175 | 0.674412 | sonyps5201314 |
2d4747191e72b8d204eb6229296906a13eff781f | 10,755 | cpp | C++ | tools/extractors/main.cpp | Jarskih/OpenApoc | 16f13f1d5eb5ea5639cdc0ee488d71b70c5a8cc3 | [
"MIT"
] | null | null | null | tools/extractors/main.cpp | Jarskih/OpenApoc | 16f13f1d5eb5ea5639cdc0ee488d71b70c5a8cc3 | [
"MIT"
] | null | null | null | tools/extractors/main.cpp | Jarskih/OpenApoc | 16f13f1d5eb5ea5639cdc0ee488d71b70c5a8cc3 | [
"MIT"
] | null | null | null | #include "framework/configfile.h"
#include "framework/data.h"
#include "framework/framework.h"
#include "game/state/gamestate.h"
#include "game/state/rules/battle/battlemapsector.h"
#include "game/state/rules/battle/battlemaptileset.h"
#include "game/state/rules/battle/battleunitimagepack.h"
#include "library/strings_f... | 33.092308 | 98 | 0.597397 | Jarskih |
2d4ad9fcdec5b4ed013081099377c740b70d655b | 3,021 | hpp | C++ | src/char_code.hpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/char_code.hpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/char_code.hpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | #pragma once
#include <cstdint>
#include <string>
#include "lubee/src/error.hpp"
namespace rev {
template <class T>
class AbstString;
using c8Str = AbstString<char>;
using c16Str = AbstString<char16_t>;
using c32Str = AbstString<char32_t>;
struct InvalidUnicode : std::invalid_argument {
using std::invalid_arg... | 32.483871 | 77 | 0.723932 | degarashi |
2d4cd8b6087b391b639e6b4dd495267e994d84d5 | 5,039 | hpp | C++ | src/uml/src_gen/uml/impl/ConsiderIgnoreFragmentImpl.hpp | MDE4CPP/MDE4CPP | 9db9352dd3b1ae26a5f640e614ed3925499b93f1 | [
"MIT"
] | 12 | 2017-02-17T10:33:51.000Z | 2022-03-01T02:48:10.000Z | src/uml/src_gen/uml/impl/ConsiderIgnoreFragmentImpl.hpp | ndongmo/MDE4CPP | 9db9352dd3b1ae26a5f640e614ed3925499b93f1 | [
"MIT"
] | 28 | 2017-10-17T20:23:52.000Z | 2021-03-04T16:07:13.000Z | src/uml/src_gen/uml/impl/ConsiderIgnoreFragmentImpl.hpp | ndongmo/MDE4CPP | 9db9352dd3b1ae26a5f640e614ed3925499b93f1 | [
"MIT"
] | 22 | 2017-03-24T19:03:58.000Z | 2022-03-31T12:10:07.000Z | //********************************************************************
//*
//* Warning: This file was generated by ecore4CPP Generator
//*
//********************************************************************
#ifndef UML_CONSIDERIGNOREFRAGMENTCONSIDERIGNOREFRAGMENTIMPL_HPP
#define UML_CONSIDERIGNOREFRAGMENTCONSID... | 34.993056 | 145 | 0.644175 | MDE4CPP |
2d4ec2d60dc8047911c072b78328c0c830f11756 | 10,108 | cpp | C++ | third-part/7z/CPP/7zip/Archive/7z/7zExtract.cpp | wzaen/soui2 | 30735bbb84184fc26f0e70edbfede889e24fba5b | [
"MIT"
] | 33 | 2018-07-04T09:38:12.000Z | 2021-06-19T06:11:45.000Z | third-part/7z/CPP/7zip/Archive/7z/7zExtract.cpp | wzaen/soui2 | 30735bbb84184fc26f0e70edbfede889e24fba5b | [
"MIT"
] | null | null | null | third-part/7z/CPP/7zip/Archive/7z/7zExtract.cpp | wzaen/soui2 | 30735bbb84184fc26f0e70edbfede889e24fba5b | [
"MIT"
] | 13 | 2018-07-01T01:55:17.000Z | 2021-08-03T10:55:45.000Z | // 7zExtract.cpp
#include "../../../../C/7zCrc.h"
#include "../../../Common/ComTry.h"
#include "../../Common/ProgressUtils.h"
#include "7zDecode.h"
#include "7zHandler.h"
// EXTERN_g_ExternalCodecs
namespace NArchive {
namespace N7z {
class CFolderOutStream:
public ISequentialOutStream,
... | 24.713936 | 107 | 0.618124 | wzaen |
2d53d76b44211d7e55e813f4ab2037c1e362fb6b | 2,368 | hpp | C++ | src/GUI/Dialogs/AboutDialog.hpp | aspicat/shaderide | 18a36ce94ca649f009489f864c00b6e98ed840e2 | [
"MIT"
] | 17 | 2019-11-30T21:39:39.000Z | 2020-05-26T03:00:37.000Z | src/GUI/Dialogs/AboutDialog.hpp | thedamncoder/shaderide | 18a36ce94ca649f009489f864c00b6e98ed840e2 | [
"MIT"
] | 2 | 2021-01-15T11:15:03.000Z | 2021-02-14T14:08:59.000Z | src/GUI/Dialogs/AboutDialog.hpp | thedamncoder/shaderide | 18a36ce94ca649f009489f864c00b6e98ed840e2 | [
"MIT"
] | null | null | null | /**
* AboutDialog Class
*
* -------------------------------------------------------------------------------
* This file is part of "Shader IDE" -> https://github.com/thedamncoder/shaderide.
* -------------------------------------------------------------------------------
*
* Copyright (c) 2019 - 2021 Florian Rot... | 35.878788 | 82 | 0.665963 | aspicat |
2d549a112e07ae20c181156fc74feae816981a5c | 2,095 | hh | C++ | src/ds++/dbc.hh | Seeenman/Draco | 8540aeb8bbbf467c3aa1caa9521d0910e0ca7917 | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | src/ds++/dbc.hh | Seeenman/Draco | 8540aeb8bbbf467c3aa1caa9521d0910e0ca7917 | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | src/ds++/dbc.hh | Seeenman/Draco | 8540aeb8bbbf467c3aa1caa9521d0910e0ca7917 | [
"BSD-3-Clause-Open-MPI"
] | null | null | null | //--------------------------------------------*-C++-*---------------------------------------------//
/*!
* \file ds++/dbc.hh
* \author Kent G. Budge
* \date Wed Jan 22 15:18:23 MST 2003
* \brief Extensions to the STL algorithm library
* \note Copyright (C) 2016-2020 Triad National Security, LLC., All rights... | 41.9 | 100 | 0.636754 | Seeenman |
2d54dd4e80f286ad58b378219bec0e115b6efcdc | 2,124 | hpp | C++ | libs/core/futures/include/hpx/futures/traits/future_traits.hpp | bhumitattarde/hpx | 5b34d8d77b1664fa552445d44cd98e51dc69a74a | [
"BSL-1.0"
] | 1 | 2022-02-08T05:55:09.000Z | 2022-02-08T05:55:09.000Z | libs/core/futures/include/hpx/futures/traits/future_traits.hpp | deepaksuresh1411/hpx | aa18024d35fe9884a977d4b6076c764dbb8b26d1 | [
"BSL-1.0"
] | null | null | null | libs/core/futures/include/hpx/futures/traits/future_traits.hpp | deepaksuresh1411/hpx | aa18024d35fe9884a977d4b6076c764dbb8b26d1 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2007-2021 Hartmut Kaiser
//
// 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>
#include <hpx/futures/traits/is_future.hp... | 24.697674 | 80 | 0.600753 | bhumitattarde |
2d5c3b74be51cc1c4d3ed040167b1158fa189fd6 | 2,332 | cpp | C++ | N64 Sound Tool/N64SoundListToolUpdated/N64SoundLibrary/yay0.cpp | Raspberryfloof/N64-Tools | 96738d434ce3922dec0168cdd42f8e7ca131d0c5 | [
"Unlicense"
] | 160 | 2018-09-15T00:33:00.000Z | 2022-03-28T23:39:46.000Z | N64 Sound Tool/N64SoundListToolUpdated/N64SoundLibrary/yay0.cpp | Raspberryfloof/N64-Tools | 96738d434ce3922dec0168cdd42f8e7ca131d0c5 | [
"Unlicense"
] | 32 | 2018-09-15T17:49:01.000Z | 2022-03-17T21:38:46.000Z | N64 Sound Tool/N64SoundListToolUpdated/N64SoundLibrary/yay0.cpp | Raspberryfloof/N64-Tools | 96738d434ce3922dec0168cdd42f8e7ca131d0c5 | [
"Unlicense"
] | 132 | 2018-09-15T00:44:39.000Z | 2022-03-26T01:46:36.000Z | #include "stdafx.h"
//version 1.0 (20050701)
//by thakis
#include "YAY0.h"
#include <cstdio>
#include <cstdlib>
using namespace std;
typedef unsigned char u8;
typedef unsigned char u16;
typedef unsigned int u32;
u32 toDWORD(u32 d)
{
u8 w1 = d & 0xFF;
u8 w2 = (d >> 8) & 0xFF;
u8 w3 = (d >> 16) & 0xFF;
u8 w4 =... | 20.821429 | 88 | 0.550172 | Raspberryfloof |
2d5df0e3d715e020aa947a6fa5cd2b496572c150 | 718 | cpp | C++ | Baekjoon Online Judge/1 ~ 9999/2023/boj-2023.cpp | kesakiyo/Competitive-Programming | e42331b28c3d8c10bd4853c8fa0ebbfc58dfa033 | [
"MIT"
] | 1 | 2019-05-17T16:16:43.000Z | 2019-05-17T16:16:43.000Z | Baekjoon Online Judge/1 ~ 9999/2023/boj-2023.cpp | kesakiyo/Competitive-Programming | e42331b28c3d8c10bd4853c8fa0ebbfc58dfa033 | [
"MIT"
] | null | null | null | Baekjoon Online Judge/1 ~ 9999/2023/boj-2023.cpp | kesakiyo/Competitive-Programming | e42331b28c3d8c10bd4853c8fa0ebbfc58dfa033 | [
"MIT"
] | null | null | null | /*
Copyright(c) 2019. Minho Cheon. All rights reserved.
*/
#include <iostream>
using namespace std;
bool isPrime(int n) {
if (n == 1) {
return false;
}
for (long long i = 2 ; i * i <= (long long)n ; ++i) {
if (n % i == 0) {
return false;
}
}
return true;
}
... | 16.318182 | 57 | 0.401114 | kesakiyo |
2d5f7e98de55e471bd9a3414152f7fd374dc19b4 | 2,662 | cpp | C++ | src/mos/gfx/assets.cpp | morganbengtsson/mo | c719ff6b35478b068988901d0bf7253cb672e87a | [
"MIT"
] | 230 | 2016-02-15T20:46:01.000Z | 2022-03-07T11:56:12.000Z | src/mos/gfx/assets.cpp | morganbengtsson/mo | c719ff6b35478b068988901d0bf7253cb672e87a | [
"MIT"
] | 79 | 2016-02-07T11:37:04.000Z | 2021-09-29T09:14:27.000Z | src/mos/gfx/assets.cpp | morganbengtsson/mo | c719ff6b35478b068988901d0bf7253cb672e87a | [
"MIT"
] | 14 | 2018-05-16T13:10:22.000Z | 2021-09-28T10:23:31.000Z | #include <mos/gfx/assets.hpp>
#include <cstring>
#include <filesystem>
#include <fstream>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtx/euler_angles.hpp>
#include <glm/gtx/io.hpp>
#include <glm/gtx/matrix_decompose.hpp>
#include <mos/util.hpp>
#include <iostream>
namespace mos::gfx {
using namespace nlohmann;
Ass... | 32.463415 | 179 | 0.605935 | morganbengtsson |
2d628196797003420ead7cdd5c7e59c1cc26e03b | 16,830 | cpp | C++ | dependencies/Cegui/src/samples/HUDDemo/HUDemo.cpp | eloymore/P32021 | 58bbbe08252df256abbed08a1c1c203931924fb4 | [
"MIT"
] | 3 | 2021-03-14T15:06:28.000Z | 2021-06-07T12:38:38.000Z | dependencies/Cegui/src/samples/HUDDemo/HUDemo.cpp | eloymore/P32021 | 58bbbe08252df256abbed08a1c1c203931924fb4 | [
"MIT"
] | 11 | 2021-03-19T18:11:28.000Z | 2021-05-13T18:53:40.000Z | dependencies/Cegui/src/samples/HUDDemo/HUDemo.cpp | eloymore/P32021 | 58bbbe08252df256abbed08a1c1c203931924fb4 | [
"MIT"
] | 1 | 2021-03-16T17:47:51.000Z | 2021-03-16T17:47:51.000Z | /***********************************************************************
created: 11/8/2012
author: Lukas E Meindl
*************************************************************************/
/***************************************************************************
* Copyright (C) 2004 - 2012 Paul D Turner & ... | 32.303263 | 180 | 0.671242 | eloymore |
2d65c8f53323b79873758040a5ca93bb24589826 | 3,827 | cpp | C++ | src/ripple/overlay/impl/PeerSet.cpp | ChainSQL/chainsqld | 6af7eb0624c67776098250a39eae9f195d8a473a | [
"BSL-1.0"
] | 211 | 2017-12-11T03:11:37.000Z | 2022-03-15T12:38:19.000Z | src/ripple/overlay/impl/PeerSet.cpp | ChainSQL/chainsqld | 6af7eb0624c67776098250a39eae9f195d8a473a | [
"BSL-1.0"
] | 17 | 2017-12-18T07:22:06.000Z | 2022-02-15T10:24:29.000Z | src/ripple/overlay/impl/PeerSet.cpp | ChainSQL/chainsqld | 6af7eb0624c67776098250a39eae9f195d8a473a | [
"BSL-1.0"
] | 81 | 2017-12-11T03:09:21.000Z | 2022-03-20T09:42:42.000Z | //------------------------------------------------------------------------------
/*
This file is part of rippled: https://github.com/ripple/rippled
Copyright (c) 2012, 2013 Ripple Labs Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby ... | 25.684564 | 80 | 0.588712 | ChainSQL |
2d681447d9d5a69700ebefc55ccd73c86466e378 | 959 | cpp | C++ | build/compiled_eigen/doc/snippets/compile_SelfAdjointEigenSolver_operatorInverseSqrt.cpp | aminulce/soil_model_cpp | 027803c29cbf5bddd1222839ba73019876533f87 | [
"MIT"
] | null | null | null | build/compiled_eigen/doc/snippets/compile_SelfAdjointEigenSolver_operatorInverseSqrt.cpp | aminulce/soil_model_cpp | 027803c29cbf5bddd1222839ba73019876533f87 | [
"MIT"
] | null | null | null | build/compiled_eigen/doc/snippets/compile_SelfAdjointEigenSolver_operatorInverseSqrt.cpp | aminulce/soil_model_cpp | 027803c29cbf5bddd1222839ba73019876533f87 | [
"MIT"
] | null | null | null | static bool eigen_did_assert = false;
#define eigen_assert(X) if(!eigen_did_assert && !(X)){ std::cout << "### Assertion raised in " << __FILE__ << ":" << __LINE__ << ":\n" #X << "\n### The following would happen without assertions:\n"; eigen_did_assert = true;}
#include <iostream>
#include <Eigen/Eigen>
#ifndef M_PI... | 29.060606 | 224 | 0.684046 | aminulce |
2d6a869e3f552f5588fb3de89027486cb968e143 | 984 | hpp | C++ | source/gui_box.hpp | llGuy/saska | a478a28c162a136aeb19f70dddd7c6be4de9bd78 | [
"MIT"
] | null | null | null | source/gui_box.hpp | llGuy/saska | a478a28c162a136aeb19f70dddd7c6be4de9bd78 | [
"MIT"
] | null | null | null | source/gui_box.hpp | llGuy/saska | a478a28c162a136aeb19f70dddd7c6be4de9bd78 | [
"MIT"
] | null | null | null | #pragma once
#include "gui_math.hpp"
struct ui_box_t {
ui_box_t *parent {nullptr};
relative_to_t relative_to;
ui_vector2_t relative_position;
ui_vector2_t gls_position;
ui_vector2_t px_position;
ui_vector2_t gls_max_values;
ui_vector2_t px_current_size;
ui_vector2_t gls_cur... | 32.8 | 74 | 0.669715 | llGuy |
062b7a7cded86fe78172f3710819ba20130956b0 | 2,761 | cpp | C++ | src/main.cpp | zyniac/command-handler | 311eaf9316e7b63a7d756ca7d547942d95f4e8b6 | [
"MIT"
] | null | null | null | src/main.cpp | zyniac/command-handler | 311eaf9316e7b63a7d756ca7d547942d95f4e8b6 | [
"MIT"
] | null | null | null | src/main.cpp | zyniac/command-handler | 311eaf9316e7b63a7d756ca7d547942d95f4e8b6 | [
"MIT"
] | null | null | null | #include <ArgumentList.h>
#include <iostream>
#include <string>
#include <Interpreter.h>
#include "Command.h"
#include "CommandHandler.h"
#include <vector>
class PrintCommand : public Command
{
public:
PrintCommand()
: Command("print")
{}
CommandStatus Run(ArgumentList& al) override
{
size_t ... | 21.238462 | 99 | 0.607751 | zyniac |
062c1a9c1e917ed3502c8a32139424adda33e37e | 16,975 | cxx | C++ | src/texture/UniCode.cxx | rita0222/FK | bc5786a5da0dd732e2f411c1a953b331323ee432 | [
"BSD-3-Clause"
] | 4 | 2020-05-15T03:43:53.000Z | 2021-06-05T16:21:31.000Z | src/texture/UniCode.cxx | rita0222/FK | bc5786a5da0dd732e2f411c1a953b331323ee432 | [
"BSD-3-Clause"
] | 1 | 2020-05-19T09:27:16.000Z | 2020-05-21T02:12:54.000Z | src/texture/UniCode.cxx | rita0222/FK | bc5786a5da0dd732e2f411c1a953b331323ee432 | [
"BSD-3-Clause"
] | null | null | null | #define FK_DEF_SIZETYPE
#include <map>
#include <FK/UniCode.h>
#include <FK/Error.H>
#include <sstream>
#include <unicode/unistr.h>
using namespace std;
using namespace FK;
#if defined(_MACOSX_) || defined(_LINUX_)
using iconvpp = char **;
#else
using iconvpp = const char **;
#endif
namespace FK {
class fk_StrStac... | 20.256563 | 95 | 0.685832 | rita0222 |
062cb44ffee5fa5791829519f00ae380b9c6a4e0 | 3,212 | hpp | C++ | NWNXLib/API/Linux/API/CNWSScriptVarTable.hpp | acaos/nwnxee-unified | 0e4c318ede64028c1825319f39c012e168e0482c | [
"MIT"
] | 1 | 2019-06-04T04:30:24.000Z | 2019-06-04T04:30:24.000Z | NWNXLib/API/Linux/API/CNWSScriptVarTable.hpp | presscad/nwnee | 0f36b281524e0b7e9796bcf30f924792bf9b8a38 | [
"MIT"
] | null | null | null | NWNXLib/API/Linux/API/CNWSScriptVarTable.hpp | presscad/nwnee | 0f36b281524e0b7e9796bcf30f924792bf9b8a38 | [
"MIT"
] | 1 | 2019-10-20T07:54:45.000Z | 2019-10-20T07:54:45.000Z | #pragma once
#include <cstdint>
#include "CExoArrayListTemplatedCNWSScriptVar.hpp"
#include "CExoString.hpp"
#include "CScriptLocation.hpp"
namespace NWNXLib {
namespace API {
// Forward class declarations (defined in the source file)
struct CNWSCreature;
struct CNWSScriptVar;
struct CResGFF;
struct CResStruct;
s... | 42.826667 | 107 | 0.813823 | acaos |
062f4205985e89441ba705fb4a78faecebd30558 | 2,390 | cpp | C++ | test/src/TradingCenter_Tests.cpp | gravity981/settlers | 0e2684f2358dbab8fdc70de4a9c94133a324a2b7 | [
"Unlicense"
] | null | null | null | test/src/TradingCenter_Tests.cpp | gravity981/settlers | 0e2684f2358dbab8fdc70de4a9c94133a324a2b7 | [
"Unlicense"
] | null | null | null | test/src/TradingCenter_Tests.cpp | gravity981/settlers | 0e2684f2358dbab8fdc70de4a9c94133a324a2b7 | [
"Unlicense"
] | null | null | null | #include "settlers/TradingCenter.h"
#include <gtest/gtest.h>
#include <spdlog/spdlog.h>
TEST(TradingCenterTests, initFromOriginalFileShouldWork)
{
TradingCenter tradingCenter;
ASSERT_TRUE(tradingCenter.initFromFile("data/building_costs_original.json"));
auto resource = tradingCenter.getCostOf(TradingCenter::BU... | 44.259259 | 79 | 0.764854 | gravity981 |
063b5d978abb2eb23ab6c9cd18befce9d06be3ad | 421 | hpp | C++ | Rom.hpp | timlump/psx-emu-mk2 | a711044213bf50a60bcefe758bcdaacf60e6743f | [
"MIT"
] | 7 | 2020-01-27T13:33:47.000Z | 2022-03-12T22:57:26.000Z | Rom.hpp | timlump/psx-emu-mk2 | a711044213bf50a60bcefe758bcdaacf60e6743f | [
"MIT"
] | null | null | null | Rom.hpp | timlump/psx-emu-mk2 | a711044213bf50a60bcefe758bcdaacf60e6743f | [
"MIT"
] | 1 | 2020-09-29T13:26:06.000Z | 2020-09-29T13:26:06.000Z | #pragma once
#include "Bus.hpp"
class Rom : public Bus::BusDevice
{
public:
static Rom * get_instance();
virtual bool is_address_for_device(unsigned int address) final;
virtual unsigned char get_byte(unsigned int address) final;
bool load_bios(std::string bios_filepath);
private:
Rom() = default;
~Rom() = def... | 20.047619 | 64 | 0.729216 | timlump |
063bf24de8ac90aec95ab263c08e187a2fff8088 | 16,248 | cpp | C++ | assignment-client/src/Agent.cpp | stojce/hifi | 8e6c860a243131859c0706424097db56e6a604bd | [
"Apache-2.0"
] | null | null | null | assignment-client/src/Agent.cpp | stojce/hifi | 8e6c860a243131859c0706424097db56e6a604bd | [
"Apache-2.0"
] | null | null | null | assignment-client/src/Agent.cpp | stojce/hifi | 8e6c860a243131859c0706424097db56e6a604bd | [
"Apache-2.0"
] | null | null | null | //
// Agent.cpp
// assignment-client/src
//
// Created by Stephen Birarda on 7/1/13.
// Copyright 2013 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include <QtCore/QCoreApplication>
#includ... | 40.62 | 133 | 0.676391 | stojce |
064095707938aa8d669524af2cd1758f553320aa | 719 | hpp | C++ | src/DataReader.hpp | ismo-karkkainen/datalackey | 32267fd0cd48c918dde6459e843c49234b88758e | [
"UPL-1.0"
] | null | null | null | src/DataReader.hpp | ismo-karkkainen/datalackey | 32267fd0cd48c918dde6459e843c49234b88758e | [
"UPL-1.0"
] | null | null | null | src/DataReader.hpp | ismo-karkkainen/datalackey | 32267fd0cd48c918dde6459e843c49234b88758e | [
"UPL-1.0"
] | null | null | null | //
// DataReader.hpp
// datalackey
//
// Created by Ismo Kärkkäinen on 21.1.18.
// Copyright © 2018 Ismo Kärkkäinen. All rights reserved.
//
// Licensed under Universal Permissive License. See License.txt.
#ifndef DataReader_hpp
#define DataReader_hpp
#include "RawData.hpp"
#include <memory>
#include <cstddef>
... | 20.542857 | 79 | 0.702364 | ismo-karkkainen |
06448d11fe4e61c48888ea95fef78f5947d8dd57 | 14,980 | cpp | C++ | src/qt/qtbase/tests/auto/gui/text/qsyntaxhighlighter/tst_qsyntaxhighlighter.cpp | power-electro/phantomjs-Gohstdriver-DIY-openshift | a571d301a9658a4c1b524d07e15658b45f8a0579 | [
"BSD-3-Clause"
] | 1 | 2020-04-30T15:47:35.000Z | 2020-04-30T15:47:35.000Z | src/qt/qtbase/tests/auto/gui/text/qsyntaxhighlighter/tst_qsyntaxhighlighter.cpp | power-electro/phantomjs-Gohstdriver-DIY-openshift | a571d301a9658a4c1b524d07e15658b45f8a0579 | [
"BSD-3-Clause"
] | null | null | null | src/qt/qtbase/tests/auto/gui/text/qsyntaxhighlighter/tst_qsyntaxhighlighter.cpp | power-electro/phantomjs-Gohstdriver-DIY-openshift | a571d301a9658a4c1b524d07e15658b45f8a0579 | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees holding valid commercia... | 27.486239 | 96 | 0.669226 | power-electro |
06460b343c23c92166a43a8c86f83a13faff0bcb | 1,240 | cpp | C++ | examples/example.cpp | julio77it/spdlog-sinks | e7049bc2fee9134dc808bd7187a65a4ad3ca5ef5 | [
"MIT"
] | null | null | null | examples/example.cpp | julio77it/spdlog-sinks | e7049bc2fee9134dc808bd7187a65a4ad3ca5ef5 | [
"MIT"
] | null | null | null | examples/example.cpp | julio77it/spdlog-sinks | e7049bc2fee9134dc808bd7187a65a4ad3ca5ef5 | [
"MIT"
] | 1 | 2020-12-22T06:34:06.000Z | 2020-12-22T06:34:06.000Z |
#if !defined(SPDLOG_LEVEL_NAMES)
#define SPDLOG_LEVEL_NAMES \
{ \
... | 29.52381 | 140 | 0.437903 | julio77it |
064d2b6d85c2ead58940ceac92fbb029e70d0d27 | 740 | cpp | C++ | recursion/recursive-examples/print_triangle.cpp | punithpatil/csci1300-recitation-notes | b6ad687e56bc58ff808e5786e7381d125089beeb | [
"MIT"
] | 2 | 2019-04-11T16:41:42.000Z | 2019-11-19T22:07:57.000Z | recursion/recursive-examples/print_triangle.cpp | punithpatil/csci1300-recitation-notes | b6ad687e56bc58ff808e5786e7381d125089beeb | [
"MIT"
] | null | null | null | recursion/recursive-examples/print_triangle.cpp | punithpatil/csci1300-recitation-notes | b6ad687e56bc58ff808e5786e7381d125089beeb | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
void print_triangle_recursive(int count, int n){
if (count > n) // base case: stop execution
return ;
for(int i = 0; i <= count; i++)
cout<<"#";
cout<<endl;
print_triangle_recursive(count + 1, n);
for(int i = 0; i <= count; i++)
cou... | 21.142857 | 49 | 0.482432 | punithpatil |
064f4f1f931347831a9a93042186d227dd2d23c5 | 1,143 | cpp | C++ | server/example.cpp | ortogonal/dbus-properties | 6b62b2d3d96f955790a85f0956958f4e88b823eb | [
"MIT"
] | null | null | null | server/example.cpp | ortogonal/dbus-properties | 6b62b2d3d96f955790a85f0956958f4e88b823eb | [
"MIT"
] | null | null | null | server/example.cpp | ortogonal/dbus-properties | 6b62b2d3d96f955790a85f0956958f4e88b823eb | [
"MIT"
] | null | null | null | #include "example.h"
#include <QDebug>
#include <QTimer>
Example::Example(QObject *parent)
: DBusAdapterObject("org.example", "/example", QDBusConnection::sessionBus(), parent)
{
m_adapter = new ExampleAdaptor(this);
connectAdapter(m_adapter);
QTimer *t = new QTimer(this);
t->setInterval(1000);
... | 16.098592 | 89 | 0.591426 | ortogonal |
064f69f5894896e2df53b0990bc22beece598959 | 24,882 | cpp | C++ | Src/Details/Vulkan/xgpu_vulkan_pipeline.cpp | LIONant-depot/xGPU | 9a10408d55e6e3dd09ee82e7587d3b09e47db0a7 | [
"MIT"
] | 3 | 2022-01-11T13:16:45.000Z | 2022-03-13T03:25:11.000Z | Src/Details/Vulkan/xgpu_vulkan_pipeline.cpp | LIONant-depot/xGPU | 9a10408d55e6e3dd09ee82e7587d3b09e47db0a7 | [
"MIT"
] | null | null | null | Src/Details/Vulkan/xgpu_vulkan_pipeline.cpp | LIONant-depot/xGPU | 9a10408d55e6e3dd09ee82e7587d3b09e47db0a7 | [
"MIT"
] | 6 | 2022-01-12T03:19:15.000Z | 2022-03-29T03:48:24.000Z | namespace xgpu::vulkan
{
//----------------------------------------------------------------------------------------
constexpr static
auto ConvertSampler
( const xgpu::pipeline::sampler::mipmap_sampler MipmapSampler
) noexcept
{
return (MipmapSampler == xgpu::pipeline::sampler::mipmap_sam... | 62.833333 | 183 | 0.631983 | LIONant-depot |
064ff82c68619cf87fcab2504cf2705ce6947fba | 2,655 | cpp | C++ | Renderer/src/Backends/Vulkan/DiagnosticCheckpoint.cpp | ChewyGumball/bengine | a993471b1b135bcfe848de25ec539d93ed97445f | [
"MIT"
] | null | null | null | Renderer/src/Backends/Vulkan/DiagnosticCheckpoint.cpp | ChewyGumball/bengine | a993471b1b135bcfe848de25ec539d93ed97445f | [
"MIT"
] | null | null | null | Renderer/src/Backends/Vulkan/DiagnosticCheckpoint.cpp | ChewyGumball/bengine | a993471b1b135bcfe848de25ec539d93ed97445f | [
"MIT"
] | null | null | null | #include <Renderer/Backends/Vulkan/DiagnosticCheckpoint.h>
#include <Renderer/Backends/Vulkan/VulkanQueue.h>
namespace {
PFN_vkCmdSetCheckpointNV vkCmdSetCheckpointNV_FN = nullptr;
PFN_vkGetQueueCheckpointDataNV vkGetQueueCheckpointDataNV_FN = nullptr;
} // namespace
namespace Renderer::Backends::Vul... | 40.846154 | 110 | 0.710358 | ChewyGumball |
0650fc1e1f4593bbf6d9d1bd5059518ffa56fdfe | 1,845 | cpp | C++ | ShaderGLLib/Program.cpp | EPAC-Saxon/scene-graph-JulienBaumgartner | c13922b9651b37ccf73c8f970770e8e18cde18fa | [
"MIT"
] | null | null | null | ShaderGLLib/Program.cpp | EPAC-Saxon/scene-graph-JulienBaumgartner | c13922b9651b37ccf73c8f970770e8e18cde18fa | [
"MIT"
] | null | null | null | ShaderGLLib/Program.cpp | EPAC-Saxon/scene-graph-JulienBaumgartner | c13922b9651b37ccf73c8f970770e8e18cde18fa | [
"MIT"
] | null | null | null | #include "Program.h"
#include <stdexcept>
namespace sgl {
Program::Program()
{
program_id_ = glCreateProgram();
}
Program::~Program()
{
glDeleteProgram(program_id_);
}
void Program::AddShader(const Shader& shader)
{
glAttachShader(program_id_, shader.GetId());
}
void Program::LinkShader()
{
glLi... | 20.730337 | 79 | 0.708401 | EPAC-Saxon |
06536ddafd59dffef11abea8683fb03470c72468 | 17,846 | cpp | C++ | Project1/myopenglwidget.cpp | MarcLF/CuteTProject1 | fc2e2e596e5bce495dc059d29b3f36141ad33be5 | [
"Apache-2.0"
] | null | null | null | Project1/myopenglwidget.cpp | MarcLF/CuteTProject1 | fc2e2e596e5bce495dc059d29b3f36141ad33be5 | [
"Apache-2.0"
] | null | null | null | Project1/myopenglwidget.cpp | MarcLF/CuteTProject1 | fc2e2e596e5bce495dc059d29b3f36141ad33be5 | [
"Apache-2.0"
] | null | null | null | #include "myopenglwidget.h"
#include "camera.h"
#include "mesh.h"
#include "mainwindow.h"
#include "hierarchy.h"
#include "entity.h"
#include "componentrender.h"
#include "componenttransform.h"
#include "vertexformat.h"
#include "submesh.h"
QOpenGLFunctions_3_3_Core * gl = nullptr;
MyOpenGLWidget::MyOpenGLWidget(QWid... | 31.924866 | 190 | 0.689118 | MarcLF |
06542c8f9631318117de6c977f896751bec51134 | 954 | cpp | C++ | src/GreensTensor/GreensTensorFactory.cpp | QuaCaTeam/quaca | ab2d213f3e0e357bd72930ae1e4e703184130270 | [
"MIT"
] | 2 | 2020-05-19T09:01:40.000Z | 2020-05-20T07:57:54.000Z | src/GreensTensor/GreensTensorFactory.cpp | myoelmy/quaca | def47981b710a73f2fb3a7c14c354f8de91cf88f | [
"MIT"
] | 31 | 2020-05-19T08:01:46.000Z | 2020-05-28T07:33:35.000Z | src/GreensTensor/GreensTensorFactory.cpp | myoelmy/quaca | def47981b710a73f2fb3a7c14c354f8de91cf88f | [
"MIT"
] | null | null | null | #include <iostream>
// json parser
#include <boost/property_tree/json_parser.hpp>
#include <boost/property_tree/ptree.hpp>
namespace pt = boost::property_tree;
#include "GreensTensorFactory.h"
#include "GreensTensorPlate.h"
#include "GreensTensorVacuum.h"
// Green's tensor factory
std::shared_ptr<GreensTensor>
Green... | 27.257143 | 71 | 0.687631 | QuaCaTeam |
065491448c5ce484b8de47fe6ddb77a8e2dfd1cf | 3,816 | cpp | C++ | src/EvtGenBase/EvtDalitzResPdf.cpp | qdcampagna/BTODSTARLNUNP_EVTGEN_Model | 9623a0ffe2625450a1228a80d6baae74ed6c0965 | [
"CC0-1.0"
] | null | null | null | src/EvtGenBase/EvtDalitzResPdf.cpp | qdcampagna/BTODSTARLNUNP_EVTGEN_Model | 9623a0ffe2625450a1228a80d6baae74ed6c0965 | [
"CC0-1.0"
] | null | null | null | src/EvtGenBase/EvtDalitzResPdf.cpp | qdcampagna/BTODSTARLNUNP_EVTGEN_Model | 9623a0ffe2625450a1228a80d6baae74ed6c0965 | [
"CC0-1.0"
] | null | null | null |
/***********************************************************************
* Copyright 1998-2020 CERN for the benefit of the EvtGen authors *
* *
* This file is part of EvtGen. *
* ... | 36.692308 | 78 | 0.51782 | qdcampagna |
0654d7891543de39ad6a65b107738577b000424e | 2,578 | cpp | C++ | android-ndk-r10b/sources/android/crazy_linker/src/crazy_linker_util.cpp | perezite/Boost4Android | 9ed03a45815aead156c129da1927cc04b8caa6a3 | [
"BSL-1.0"
] | 1 | 2019-07-10T15:21:02.000Z | 2019-07-10T15:21:02.000Z | android-ndk-r10b/sources/android/crazy_linker/src/crazy_linker_util.cpp | perezite/Boost4Android | 9ed03a45815aead156c129da1927cc04b8caa6a3 | [
"BSL-1.0"
] | null | null | null | android-ndk-r10b/sources/android/crazy_linker/src/crazy_linker_util.cpp | perezite/Boost4Android | 9ed03a45815aead156c129da1927cc04b8caa6a3 | [
"BSL-1.0"
] | 1 | 2019-02-25T11:55:44.000Z | 2019-02-25T11:55:44.000Z | // Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "crazy_linker_util.h"
#include <stdio.h>
namespace crazy {
// Return the base name from a file path. Important: this is a pointer
// into ... | 20.624 | 73 | 0.633825 | perezite |
06620ed3a1c3aad361f59e243de14fe46b6ee985 | 22,109 | cc | C++ | src/Actor.cc | doisyg/sdformat | f6e029bc88d2ca6c2586fc88dddc0c21f0798f03 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | src/Actor.cc | doisyg/sdformat | f6e029bc88d2ca6c2586fc88dddc0c21f0798f03 | [
"ECL-2.0",
"Apache-2.0"
] | 3 | 2020-10-30T19:22:51.000Z | 2020-12-03T20:57:20.000Z | src/Actor.cc | doisyg/sdformat | f6e029bc88d2ca6c2586fc88dddc0c21f0798f03 | [
"ECL-2.0",
"Apache-2.0"
] | null | null | null | /*
* Copyright 2019 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicab... | 25.768065 | 80 | 0.552942 | doisyg |
0664a5bc6a4b17520b686a05ddfebbd9565df125 | 14,465 | hpp | C++ | include/Bit/Network/Net/Server.hpp | jimmiebergmann/Bit-Engine | 39324a9e7fb5ab4b1cf3738f871470e0a9ef7575 | [
"Zlib"
] | null | null | null | include/Bit/Network/Net/Server.hpp | jimmiebergmann/Bit-Engine | 39324a9e7fb5ab4b1cf3738f871470e0a9ef7575 | [
"Zlib"
] | null | null | null | include/Bit/Network/Net/Server.hpp | jimmiebergmann/Bit-Engine | 39324a9e7fb5ab4b1cf3738f871470e0a9ef7575 | [
"Zlib"
] | null | null | null | // Copyright (C) 2013 Jimmie Bergmann - jimmiebergmann@gmail.com
//
// 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.
//
// Permission is granted to anyone to use this software for any p... | 40.518207 | 133 | 0.490978 | jimmiebergmann |
0672065966f6ed8aa9cbfca785782fa2a8ee7726 | 35,973 | cpp | C++ | cops/live/diff_finder.cpp | milad621/livehd | 370b4274809ef95f880da07a603245bffcadf05e | [
"BSD-3-Clause"
] | 1 | 2022-01-30T03:06:22.000Z | 2022-01-30T03:06:22.000Z | cops/live/diff_finder.cpp | milad621/livehd | 370b4274809ef95f880da07a603245bffcadf05e | [
"BSD-3-Clause"
] | null | null | null | cops/live/diff_finder.cpp | milad621/livehd | 370b4274809ef95f880da07a603245bffcadf05e | [
"BSD-3-Clause"
] | null | null | null | // This file is distributed under the BSD 3-Clause License. See LICENSE for details.
#include <stdlib.h>
#include <fstream>
#include "absl/strings/substitute.h"
#include "graph_library.hpp"
#include "lgedgeiter.hpp"
#include "pass.hpp"
#include "diff_finder.hpp"
using namespace Live; // REVIEW: NOT so nice to us... | 42.978495 | 147 | 0.652017 | milad621 |
06809509c500ae83d15994aa6342b6948b04ee81 | 3,721 | cc | C++ | src/formats/input_graph.cc | KyleBurns/bigraph-stuff | a17db9566343a8cc21bb9192156534dbf1c7c85e | [
"MIT"
] | null | null | null | src/formats/input_graph.cc | KyleBurns/bigraph-stuff | a17db9566343a8cc21bb9192156534dbf1c7c85e | [
"MIT"
] | null | null | null | src/formats/input_graph.cc | KyleBurns/bigraph-stuff | a17db9566343a8cc21bb9192156534dbf1c7c85e | [
"MIT"
] | null | null | null | /* vim: set sw=4 sts=4 et foldmethod=syntax : */
#include "formats/input_graph.hh"
#include <algorithm>
#include <limits>
#include <string_view>
using std::distance;
using std::find;
using std::numeric_limits;
using std::make_optional;
using std::make_pair;
using std::max;
using std::nullopt;
using std::optional;
us... | 21.760234 | 79 | 0.681268 | KyleBurns |
06886a1b5b8deb4d34fcb81361cf0225e6bb415d | 6,069 | cpp | C++ | src/lib/rtm/OutPortPushConnector.cpp | r-kurose/OpenRTM-aist | 258c922c55a97c6d1265dbf45e1e8b2ea29b2d86 | [
"RSA-MD"
] | null | null | null | src/lib/rtm/OutPortPushConnector.cpp | r-kurose/OpenRTM-aist | 258c922c55a97c6d1265dbf45e1e8b2ea29b2d86 | [
"RSA-MD"
] | null | null | null | src/lib/rtm/OutPortPushConnector.cpp | r-kurose/OpenRTM-aist | 258c922c55a97c6d1265dbf45e1e8b2ea29b2d86 | [
"RSA-MD"
] | null | null | null | // -*- C++ -*-
/*!
* @file OutPortPushConnector.cpp
* @brief OutPortPush type connector class
* @date $Date$
* @author Noriaki Ando <n-ando@aist.go.jp>
*
* Copyright (C) 2009
* Noriaki Ando
* Task-intelligence Research Group,
* Intelligent Systems Research Institute,
* National Institute of
... | 23.707031 | 107 | 0.611633 | r-kurose |
068b51a52a5860d3d1ec59abdac9225b16d32cd7 | 419 | cpp | C++ | src/PinCommand.cpp | sgsiebers/SimpleAnimation | a1e42860fef23abf22cd998ae0ee457144b5c475 | [
"MIT"
] | null | null | null | src/PinCommand.cpp | sgsiebers/SimpleAnimation | a1e42860fef23abf22cd998ae0ee457144b5c475 | [
"MIT"
] | null | null | null | src/PinCommand.cpp | sgsiebers/SimpleAnimation | a1e42860fef23abf22cd998ae0ee457144b5c475 | [
"MIT"
] | 1 | 2018-07-17T10:52:19.000Z | 2018-07-17T10:52:19.000Z | #include "PinCommand.h"
PinCommand::PinCommand(uint8_t _pin, uint8_t _direction, uint16_t _delay):
pin( _pin),
direction( _direction),
timer(Timer(_delay)) {}
void PinCommand::begin(){
DEBUG_PRINT("Begin PinCommand");
done = false;
timer.reset();
}
void PinCommand::update(){
if(!done && timer.expired... | 19.952381 | 74 | 0.670644 | sgsiebers |
068d0685c487d494dafbf8020bd8a0c8cb885c55 | 1,490 | hpp | C++ | lib/libAnalyzer/include/analyzers/SectionStatsEA.hpp | cyber-itl/citl-static-analysis | 32ef8e519dac1c6a49ff41d902a62df8f5a8e948 | [
"MIT"
] | 14 | 2021-05-03T16:03:22.000Z | 2022-02-14T23:42:39.000Z | lib/libAnalyzer/include/analyzers/SectionStatsEA.hpp | cyber-itl/citl-static-analysis | 32ef8e519dac1c6a49ff41d902a62df8f5a8e948 | [
"MIT"
] | 1 | 2021-09-27T12:01:33.000Z | 2021-09-27T12:01:33.000Z | lib/libAnalyzer/include/analyzers/SectionStatsEA.hpp | cyber-itl/citl-static-analysis | 32ef8e519dac1c6a49ff41d902a62df8f5a8e948 | [
"MIT"
] | null | null | null | #pragma once
#include <cstdint>
#include <string>
#include <vector>
#include "analyzers/BaseEnvAnalyzer.hpp"
#include "llvm/Object/ELFObjectFile.h"
#include "llvm/Object/COFF.h"
#include "llvm/Object/MachO.h"
using namespace llvm;
using namespace object;
class SectionStatsEA : public BaseEnvAnalyzer {
public:
... | 21.911765 | 86 | 0.697987 | cyber-itl |
06911df3c78328fbbcaa74d3ad048d8a032df8f5 | 28,348 | cpp | C++ | pd_plus/pd512_plus.cpp | TheHolyJoker/Pocket-Dictionaries-Benchmarks | f651d1082c277e539964e831a526e9404c623a44 | [
"Apache-2.0"
] | null | null | null | pd_plus/pd512_plus.cpp | TheHolyJoker/Pocket-Dictionaries-Benchmarks | f651d1082c277e539964e831a526e9404c623a44 | [
"Apache-2.0"
] | null | null | null | pd_plus/pd512_plus.cpp | TheHolyJoker/Pocket-Dictionaries-Benchmarks | f651d1082c277e539964e831a526e9404c623a44 | [
"Apache-2.0"
] | null | null | null | /*
* Taken from this repository.
* https://github.com/jbapple/crate-dictionary
* */
#include "pd512_plus.hpp"
namespace v_pd512_plus {
void bin_print_header(uint64_t header) {
// assert(_mm_popcnt_u64(header) == 32);
uint64_t b = 1ULL << (64ul - 1u);
while (b) {
std::string ... | 39.592179 | 115 | 0.501411 | TheHolyJoker |
06928d483a2f6ca983bb16b25001878a223148f0 | 643 | cpp | C++ | CentipedeGame_gageoconnor/Game Components/SplashController.cpp | Shaditto/centipede-teal | f078b11eaecddae17709dc9f917348b7b0733d56 | [
"MIT"
] | null | null | null | CentipedeGame_gageoconnor/Game Components/SplashController.cpp | Shaditto/centipede-teal | f078b11eaecddae17709dc9f917348b7b0733d56 | [
"MIT"
] | null | null | null | CentipedeGame_gageoconnor/Game Components/SplashController.cpp | Shaditto/centipede-teal | f078b11eaecddae17709dc9f917348b7b0733d56 | [
"MIT"
] | 1 | 2019-11-13T19:26:34.000Z | 2019-11-13T19:26:34.000Z | /*SplashController.cpp - Gage O'Connor, September 2017*/
#include "SplashController.h"
#include "Level1.h"
SplashController::SplashController()
{
//assigns texture
//SplashSprite = sf::Sprite(ResourceManager::GetTexture("Splashpage"));
RegisterInput(InputFlags::KeyPressed);
}
SplashController::~SplashController... | 22.172414 | 112 | 0.762053 | Shaditto |
0698aab7290157081639539880f09546fc75b80e | 21,662 | cpp | C++ | src/sensesp/net/ws_client.cpp | gregsyoung/SensESP | 4be5286f9b156b94ce6f7918cdfadbe40580b08c | [
"Apache-2.0"
] | null | null | null | src/sensesp/net/ws_client.cpp | gregsyoung/SensESP | 4be5286f9b156b94ce6f7918cdfadbe40580b08c | [
"Apache-2.0"
] | null | null | null | src/sensesp/net/ws_client.cpp | gregsyoung/SensESP | 4be5286f9b156b94ce6f7918cdfadbe40580b08c | [
"Apache-2.0"
] | null | null | null | #include "ws_client.h"
#include <ArduinoJson.h>
#include <ESPmDNS.h>
#include <HTTPClient.h>
#include <WiFiClient.h>
#include "Arduino.h"
#include "elapsedMillis.h"
#include "sensesp/signalk/signalk_listener.h"
#include "sensesp/signalk/signalk_put_request.h"
#include "sensesp/signalk/signalk_put_request_listener.h"
... | 30.00277 | 119 | 0.665682 | gregsyoung |
069e82d735e64c0c2dcbbde977b929d9490fb692 | 1,932 | hh | C++ | Mu2eUtilities/inc/PoissonHistogramBinning.hh | lborrel/Offline | db9f647bad3c702171ab5ffa5ccc04c82b3f8984 | [
"Apache-2.0"
] | 9 | 2020-03-28T00:21:41.000Z | 2021-12-09T20:53:26.000Z | Mu2eUtilities/inc/PoissonHistogramBinning.hh | lborrel/Offline | db9f647bad3c702171ab5ffa5ccc04c82b3f8984 | [
"Apache-2.0"
] | 684 | 2019-08-28T23:37:43.000Z | 2022-03-31T22:47:45.000Z | Mu2eUtilities/inc/PoissonHistogramBinning.hh | lborrel/Offline | db9f647bad3c702171ab5ffa5ccc04c82b3f8984 | [
"Apache-2.0"
] | 61 | 2019-08-16T23:28:08.000Z | 2021-12-20T08:29:48.000Z | #ifndef Mu2eUtilities_PoissonHistogramBinning_hh
#define Mu2eUtilities_PoissonHistogramBinning_hh
//
// Choose a suitable range for histogramming a random variate distributed
// according to a mu2e::PoissonOrFixed distribution.
//
//
// Contact author Rob Kutschke
//
// The mu2e::PoissonOrFixed distribution is construc... | 26.465753 | 75 | 0.652174 | lborrel |
a6337970ca6de70677825a8fb8308b1e0f6e9e6e | 335 | cxx | C++ | source/Engine/source/Core.Rendering/Resource.cxx | selmentdev/recr-game-native-cxx-shooter | c924477cb2adb1500bed2a2958aaf4f1ee96391b | [
"Apache-2.0"
] | null | null | null | source/Engine/source/Core.Rendering/Resource.cxx | selmentdev/recr-game-native-cxx-shooter | c924477cb2adb1500bed2a2958aaf4f1ee96391b | [
"Apache-2.0"
] | null | null | null | source/Engine/source/Core.Rendering/Resource.cxx | selmentdev/recr-game-native-cxx-shooter | c924477cb2adb1500bed2a2958aaf4f1ee96391b | [
"Apache-2.0"
] | null | null | null | //
// Copyright (C) Selmentdev, 2017
//
// See LICENSE file in the project root for full license information.
//
#include <Core.Rendering/Resource.hxx>
namespace Core::Rendering
{
//
// Nothing to see here. Move along.
//
Resource::Resource() noexcept = default;
Resource::~Resource() noexce... | 18.611111 | 74 | 0.653731 | selmentdev |
a635ec1c137f03a8ed1c5e62256801f8a1be7bfb | 266 | cpp | C++ | contest/AtCoder/abc121/D.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 7 | 2018-04-14T14:55:51.000Z | 2022-01-31T10:49:49.000Z | contest/AtCoder/abc121/D.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | 5 | 2018-04-14T14:28:49.000Z | 2019-05-11T02:22:10.000Z | contest/AtCoder/abc121/D.cpp | not522/Competitive-Programming | be4a7d25caf5acbb70783b12899474a56c34dedb | [
"Unlicense"
] | null | null | null | #include "template.hpp"
uint64_t f(uint64_t i) {
switch (i % 4) {
case 0:
return i;
case 1:
return 1;
case 2:
return i ^ 1;
case 3:
return 0;
}
return -1;
}
int main() {
uint64_t a(in), b(in);
cout << (f(a - 1) ^ f(b)) << endl;
}
| 12.666667 | 36 | 0.503759 | not522 |
a6370b7e91873febc2090d86c9bb7b7a1f868289 | 440 | cc | C++ | gneis-geant4/test/src/isnp/init/FacilityMessengerTest.cc | andrey-nakin/gneis-geant4 | 6def0304b5664a5dafdcfd58344ad2006ef44d62 | [
"MIT"
] | null | null | null | gneis-geant4/test/src/isnp/init/FacilityMessengerTest.cc | andrey-nakin/gneis-geant4 | 6def0304b5664a5dafdcfd58344ad2006ef44d62 | [
"MIT"
] | null | null | null | gneis-geant4/test/src/isnp/init/FacilityMessengerTest.cc | andrey-nakin/gneis-geant4 | 6def0304b5664a5dafdcfd58344ad2006ef44d62 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <G4UImanager.hh>
#include "isnp/init/FacilityMessenger.hh"
namespace isnp {
namespace init {
TEST(FacilityMessenger, SetFacility)
{
auto const uiManager = G4UImanager::GetUIpointer();
EXPECT_EQ(0, uiManager->ApplyCommand("/isnp/facility beam5"));
EXPECT_EQ(0, uiManager->ApplyCo... | 19.130435 | 73 | 0.75 | andrey-nakin |
a63b23f6e3b1e7981b9cd16318e92837656594e2 | 744 | hpp | C++ | include/PlantArchitect/Volumes/CubeVolume.hpp | edisonlee0212/PlantArchitect | f01e48fb67291947407a45494178db982b9be0e3 | [
"BSD-3-Clause"
] | 1 | 2021-08-25T06:25:00.000Z | 2021-08-25T06:25:00.000Z | include/PlantArchitect/Volumes/CubeVolume.hpp | edisonlee0212/PlantArchitect-dev | f01e48fb67291947407a45494178db982b9be0e3 | [
"BSD-3-Clause"
] | null | null | null | include/PlantArchitect/Volumes/CubeVolume.hpp | edisonlee0212/PlantArchitect-dev | f01e48fb67291947407a45494178db982b9be0e3 | [
"BSD-3-Clause"
] | 1 | 2022-02-07T02:54:05.000Z | 2022-02-07T02:54:05.000Z | #pragma once
#include <IVolume.hpp>
#include <plant_architect_export.h>
using namespace UniEngine;
namespace PlantArchitect {
class PLANT_ARCHITECT_API CubeVolume : public IVolume {
public:
void ApplyMeshRendererBounds();
void OnCreate() override;
bool m_displayPoints = false;
bool m_displayBounds = false;
Bo... | 33.818182 | 92 | 0.774194 | edisonlee0212 |
a63e1f8b3e30ff162aa6f378f35f12f4fbe7fbc4 | 1,240 | cpp | C++ | codeforces/667/digit_dp.cpp | udayan14/Competitive_Coding | 79e23fdeb909b4161a193d88697a4fe5f4fbbdce | [
"MIT"
] | null | null | null | codeforces/667/digit_dp.cpp | udayan14/Competitive_Coding | 79e23fdeb909b4161a193d88697a4fe5f4fbbdce | [
"MIT"
] | null | null | null | codeforces/667/digit_dp.cpp | udayan14/Competitive_Coding | 79e23fdeb909b4161a193d88697a4fe5f4fbbdce | [
"MIT"
] | null | null | null | //#define _GLIBCXX_DEBUG
#include <iostream>
#include <cassert>
#include <cstring>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int t;
cin >> t;
while(t--){
long long int n;
int s;
cin >> n >> s;
... | 23.396226 | 95 | 0.479839 | udayan14 |
a63ecb042d414f15d431487a514ec31b799bbe06 | 561 | hpp | C++ | querier/ChunkSeriesSetInterface.hpp | Jimx-/tsdb-fork | f92cfa0a998c03b3a2cb4c8e46990de8b47aae15 | [
"Apache-2.0"
] | 1 | 2020-06-04T06:56:40.000Z | 2020-06-04T06:56:40.000Z | querier/ChunkSeriesSetInterface.hpp | Jimx-/tsdb-fork | f92cfa0a998c03b3a2cb4c8e46990de8b47aae15 | [
"Apache-2.0"
] | null | null | null | querier/ChunkSeriesSetInterface.hpp | Jimx-/tsdb-fork | f92cfa0a998c03b3a2cb4c8e46990de8b47aae15 | [
"Apache-2.0"
] | 1 | 2020-06-04T03:35:58.000Z | 2020-06-04T03:35:58.000Z | #ifndef CHUNKSERIESSETINTERFACE_H
#define CHUNKSERIESSETINTERFACE_H
#include "base/Error.hpp"
#include "querier/ChunkSeriesMeta.hpp"
namespace tsdb{
namespace querier{
// Expose actual series' labels and series' data points
class ChunkSeriesSetInterface{
public:
virtual bool next() const=0;
virtu... | 24.391304 | 75 | 0.716578 | Jimx- |
a64603b0a20dc23fbd398c614e8337720528f639 | 621 | cpp | C++ | Trees/BinaryTree/shortestDistanceInfiniteTree/shortestDistance.cpp | UltraProton/Placement-Prepration | cc70f174c4410c254ce0469737a884fffdc81164 | [
"MIT"
] | null | null | null | Trees/BinaryTree/shortestDistanceInfiniteTree/shortestDistance.cpp | UltraProton/Placement-Prepration | cc70f174c4410c254ce0469737a884fffdc81164 | [
"MIT"
] | 3 | 2020-05-08T18:02:51.000Z | 2020-05-09T08:37:35.000Z | Trees/BinaryTree/shortestDistanceInfiniteTree/shortestDistance.cpp | UltraProton/PlacementPrep | cc70f174c4410c254ce0469737a884fffdc81164 | [
"MIT"
] | null | null | null | /*
https://practice.geeksforgeeks.org/problems/find-the-distance-between-two-nodes/0/?ref=self
! Pending.
*/
#include<bits/stdc++.h>
using namespace std;
int shortest_dist(int x, int y);
int main(int argc, char const *argv[])
{
/* code */
int t=0;
int x=0;
int y=0;
cin>>t;
while (t>0)... | 14.785714 | 117 | 0.550725 | UltraProton |
a646f3cd6f70c9eeed7e61ff316c4c78ad9acc28 | 1,751 | cc | C++ | Part-I/Ch02/2.6.2/2.41.cc | RingZEROtlf/Cpp-Primer | bde40534eeca733350825c41f268415fdccb1cc3 | [
"MIT"
] | 1 | 2021-09-23T13:13:12.000Z | 2021-09-23T13:13:12.000Z | Part-I/Ch02/2.6.2/2.41.cc | RingZEROtlf/Cpp-Primer | bde40534eeca733350825c41f268415fdccb1cc3 | [
"MIT"
] | null | null | null | Part-I/Ch02/2.6.2/2.41.cc | RingZEROtlf/Cpp-Primer | bde40534eeca733350825c41f268415fdccb1cc3 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
struct Sales_data {
std::string bookNo;
unsigned int units_sold = 0;
double revenue = 0.0;
double avg_price = 0.0;
};
// 1.20
void ch1_p20()
{
Sales_data data;
double price;
while (std::cin >> data.bookNo >> data.units_sold >> price) {
data.rev... | 21.353659 | 72 | 0.55968 | RingZEROtlf |
a6491f09ee808c34426bdb9c52d28624fc1baf8d | 2,715 | cpp | C++ | rendu/src/etats/E12.cpp | H4112/GrammairesLangages | 437a1b692217d85c7146404b0bdb7b8d292de6bd | [
"Apache-2.0"
] | null | null | null | rendu/src/etats/E12.cpp | H4112/GrammairesLangages | 437a1b692217d85c7146404b0bdb7b8d292de6bd | [
"Apache-2.0"
] | null | null | null | rendu/src/etats/E12.cpp | H4112/GrammairesLangages | 437a1b692217d85c7146404b0bdb7b8d292de6bd | [
"Apache-2.0"
] | null | null | null | /*************************************************************************
E12 - Etat de l'analyseur
-------------------
début : 8 mars 2016 10:43:21
copyright : (C) 2016 par H4112
***********************************************... | 27.989691 | 74 | 0.363168 | H4112 |
a64941ab1bb1613984baa859b8eab14f2730f08c | 2,389 | cpp | C++ | Optional/main.cpp | alexey-malov/CppMeeting-Kazan2017 | e000e901450d1f0871387a83fd966611f329c01d | [
"WTFPL"
] | 2 | 2017-06-08T15:53:05.000Z | 2017-06-10T18:39:12.000Z | Optional/main.cpp | alexey-malov/modern-cpp-usage | e915578850c9cc7adbbccfe6eb1c63f69db4d7a6 | [
"WTFPL"
] | null | null | null | Optional/main.cpp | alexey-malov/modern-cpp-usage | e915578850c9cc7adbbccfe6eb1c63f69db4d7a6 | [
"WTFPL"
] | null | null | null | #define HAS_STD_OPTIONAL 1
#define HAS_BOOST_OPTIONAL 1
#if HAS_STD_OPTIONAL
#include <optional>
#include <string_view>
#endif
#if HAS_BOOST_OPTIONAL
#include <boost/optional.hpp>
#endif
#define CATCH_CONFIG_MAIN
#include "../unit_testing/catch.hpp"
#include <iostream>
#include <algorithm>
#include <numeric>
#if HAS... | 21.522523 | 69 | 0.707409 | alexey-malov |
a64d3748509828c84fd57e89d5b27b19c31727fe | 8,107 | hpp | C++ | NetKet/Machine/Layers/py_layer.hpp | flatironinstitute/netket | 888a4b56b6242d62b45d32eda43e10066c65fdf9 | [
"Apache-2.0"
] | 2 | 2019-06-13T19:00:04.000Z | 2021-09-23T01:03:15.000Z | NetKet/Machine/Layers/py_layer.hpp | flatironinstitute/netket | 888a4b56b6242d62b45d32eda43e10066c65fdf9 | [
"Apache-2.0"
] | null | null | null | NetKet/Machine/Layers/py_layer.hpp | flatironinstitute/netket | 888a4b56b6242d62b45d32eda43e10066c65fdf9 | [
"Apache-2.0"
] | 1 | 2021-09-23T01:04:00.000Z | 2021-09-23T01:04:00.000Z | // Copyright 2018 The Simons Foundation, Inc. - All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requi... | 36.191964 | 115 | 0.569755 | flatironinstitute |
a6582e4e3dc6d23c47808f3594cfc53e73caad41 | 7,035 | cpp | C++ | srcs/utils/opengl/Texture.cpp | tnicolas42/bomberman | 493d7243fabb1e5b6d5adfdcb5eb5973869b83a2 | [
"MIT"
] | 6 | 2020-03-13T16:45:13.000Z | 2022-03-30T18:20:48.000Z | srcs/utils/opengl/Texture.cpp | tnicolas42/bomberman | 493d7243fabb1e5b6d5adfdcb5eb5973869b83a2 | [
"MIT"
] | 191 | 2020-03-02T14:47:19.000Z | 2020-06-03T08:13:00.000Z | srcs/utils/opengl/Texture.cpp | tnicolas42/bomberman | 493d7243fabb1e5b6d5adfdcb5eb5973869b83a2 | [
"MIT"
] | null | null | null | #define STB_IMAGE_IMPLEMENTATION
#include "libs/stb_image.h"
#include "Texture.hpp"
#include "Logging.hpp"
// -- textureFromFile ----------------------------------------------------------
/**
* @brief load image from file and convert it to an OpenGl texture
*
* @param path image file location
* @param inSpaceSRGB ... | 33.183962 | 90 | 0.701635 | tnicolas42 |
a65a95559b1dd313306622c742fd90dc4e358ba4 | 11,040 | cpp | C++ | source/engine/camera_component.cpp | Lauvak/ray | 906d3991ddd232a7f78f0e51f29aeead008a139a | [
"BSD-3-Clause"
] | 113 | 2015-06-25T06:24:59.000Z | 2021-09-26T02:46:02.000Z | source/engine/camera_component.cpp | Lauvak/ray | 906d3991ddd232a7f78f0e51f29aeead008a139a | [
"BSD-3-Clause"
] | 2 | 2015-05-03T07:22:49.000Z | 2017-12-11T09:17:20.000Z | source/engine/camera_component.cpp | Lauvak/ray | 906d3991ddd232a7f78f0e51f29aeead008a139a | [
"BSD-3-Clause"
] | 17 | 2015-11-10T15:07:15.000Z | 2021-01-19T15:28:16.000Z | // +----------------------------------------------------------------------
// | Project : ray.
// | All rights reserved.
// +----------------------------------------------------------------------
// | Copyright (c) 2013-2017.
// +----------------------------------------------------------------------
// | * Redistributi... | 24.478936 | 118 | 0.720924 | Lauvak |
a65f097cc1453c2bd1689e311b72cbd1664367fc | 1,930 | cpp | C++ | unit_tests/test_classes/class_member_enums.cpp | SoapyMan/oolua | 9d25a865b05bbb6aaff56726b46e5b746572e490 | [
"MIT"
] | 4 | 2018-12-19T09:30:24.000Z | 2021-06-26T05:38:11.000Z | unit_tests/test_classes/class_member_enums.cpp | SoapyMan/oolua | 9d25a865b05bbb6aaff56726b46e5b746572e490 | [
"MIT"
] | null | null | null | unit_tests/test_classes/class_member_enums.cpp | SoapyMan/oolua | 9d25a865b05bbb6aaff56726b46e5b746572e490 | [
"MIT"
] | 2 | 2017-03-28T18:38:30.000Z | 2018-10-17T19:01:05.000Z | # include "oolua_tests_pch.h"
# include "common_cppunit_headers.h"
# include "oolua.h"
# include "expose_class_enums.h"
class ClassMemberEnums : public CppUnit::TestFixture
{
CPPUNIT_TEST_SUITE(ClassMemberEnums);
CPPUNIT_TEST(enumIsRegistered_safeAtReturnsTrue);
CPPUNIT_TEST(queriesKnownValue_enum0AsInt_safeAtretu... | 28.80597 | 90 | 0.776684 | SoapyMan |
a65f1a6704d5aac5b1964c3eb5a1157164b50687 | 9,226 | cpp | C++ | src/model/Model.cpp | ryanberryhill/iimc | 2746410d283c53c494cc2389638bfd8c0a0b3404 | [
"BSD-3-Clause"
] | null | null | null | src/model/Model.cpp | ryanberryhill/iimc | 2746410d283c53c494cc2389638bfd8c0a0b3404 | [
"BSD-3-Clause"
] | null | null | null | src/model/Model.cpp | ryanberryhill/iimc | 2746410d283c53c494cc2389638bfd8c0a0b3404 | [
"BSD-3-Clause"
] | 2 | 2019-02-06T04:20:23.000Z | 2019-02-10T18:25:46.000Z | /********************************************************************
Copyright (c) 2010-2015, Regents of the University of Colorado
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 s... | 26.511494 | 95 | 0.648819 | ryanberryhill |
a6622eb4adcfcf53f596ed58f49eccb8930d10ed | 1,353 | cc | C++ | src/bytes.cc | dosco/devildb | 05969c766ab17b44a141e04804c2638bd4ac2d05 | [
"MIT"
] | 3 | 2015-01-30T08:15:08.000Z | 2021-12-01T13:25:56.000Z | src/bytes.cc | dosco/devildb | 05969c766ab17b44a141e04804c2638bd4ac2d05 | [
"MIT"
] | null | null | null | src/bytes.cc | dosco/devildb | 05969c766ab17b44a141e04804c2638bd4ac2d05 | [
"MIT"
] | 2 | 2020-09-12T22:28:48.000Z | 2021-09-16T07:37:34.000Z | //#include <iomanip>
#include "bytes.h"
Bytes::Bytes(const Bytes& other) : len_(other.len_), pos_(0) {
set_data(other.data_, other.len_);
};
Bytes::Bytes(const char *str) : len_(strlen(str)), pos_(0) {
set_data((char *) str, len_);
};
Bytes::Bytes(const char *data, ssize_t len) : len_(len), pos_(0) {
set_data... | 22.932203 | 89 | 0.592018 | dosco |
a66262e32bb560c7e31a1a50b604704726a6f209 | 1,062 | cpp | C++ | source/ShadowVolume.cpp | mackron/GTGameEngine | 380d1e01774fe6bc2940979e4e5983deef0bf082 | [
"BSD-3-Clause"
] | 31 | 2015-03-19T08:44:48.000Z | 2021-12-15T20:52:31.000Z | source/ShadowVolume.cpp | mackron/GTGameEngine | 380d1e01774fe6bc2940979e4e5983deef0bf082 | [
"BSD-3-Clause"
] | 19 | 2015-07-09T09:02:44.000Z | 2016-06-09T03:51:03.000Z | source/ShadowVolume.cpp | mackron/GTGameEngine | 380d1e01774fe6bc2940979e4e5983deef0bf082 | [
"BSD-3-Clause"
] | 3 | 2017-10-04T23:38:18.000Z | 2022-03-07T08:27:13.000Z | // Copyright (C) 2011 - 2014 David Reid. See included LICENCE.
#include <GTGE/ShadowVolume.hpp>
#include <GTGE/MeshBuilder.hpp>
namespace GT
{
ShadowVolume::ShadowVolume()
: vertexArray(Renderer::CreateVertexArray(VertexArrayUsage_Dynamic, VertexFormat::P3))
{
}
ShadowVolume::~ShadowVolume()
... | 32.181818 | 167 | 0.664783 | mackron |
a662df9921f656a8235a410ffe38a8263daa2f74 | 1,490 | cpp | C++ | json/src/deductionjson.cpp | Grayson/deduction | 91652a65e1c8bd42de535efdf8fdbf3f10b5dd97 | [
"BSD-2-Clause"
] | null | null | null | json/src/deductionjson.cpp | Grayson/deduction | 91652a65e1c8bd42de535efdf8fdbf3f10b5dd97 | [
"BSD-2-Clause"
] | null | null | null | json/src/deductionjson.cpp | Grayson/deduction | 91652a65e1c8bd42de535efdf8fdbf3f10b5dd97 | [
"BSD-2-Clause"
] | null | null | null | //
// deductionjson.cpp
// deductionjson
//
// Created by Grayson Hansard on 3/26/18.
// Copyright © 2018 From Concentrate Software. All rights reserved.
//
#include "deductionjson.hpp"
#include <vector>
#include <deduction/datatypes/alias.hpp>
#include <deduction/datatypes/function.hpp>
#include <deduction/datat... | 28.113208 | 108 | 0.744295 | Grayson |
a6669914cb16f620626c20841a90e397c3b9ce85 | 992 | cpp | C++ | src/io/MemFile.cpp | caseymcc/Vorb | a2782bbff662c226002fa69bae688a44770deaf4 | [
"MIT"
] | 1 | 2018-10-17T06:37:17.000Z | 2018-10-17T06:37:17.000Z | src/io/MemFile.cpp | caseymcc/Vorb | a2782bbff662c226002fa69bae688a44770deaf4 | [
"MIT"
] | null | null | null | src/io/MemFile.cpp | caseymcc/Vorb | a2782bbff662c226002fa69bae688a44770deaf4 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "io/MemFile.h"
#include "os.h"
MemFile::MemFile() {
m_file = tmpfile();
#ifdef VORB_OS_WINDOWS
m_fileDescriptor = _fileno(m_file);
HANDLE fm;
HANDLE h = (HANDLE)_get_osfhandle(m_fileDescriptor);
fm = CreateFileMapping(h, nullptr, PAGE_READWRITE | SEC_RESERVE, 0, 1638... | 25.435897 | 88 | 0.552419 | caseymcc |
a671a9f922cdf88621cb808364a2c03b2a6827b7 | 8,577 | cpp | C++ | VortexBaseRuntime/VortexBase/View.cpp | d0si/vortex | a97031227d4e867986918d39eeb2d184147cf118 | [
"MIT"
] | 2 | 2019-12-27T22:06:25.000Z | 2020-01-13T18:43:29.000Z | VortexBaseRuntime/VortexBase/View.cpp | D0si/Vortex | a97031227d4e867986918d39eeb2d184147cf118 | [
"MIT"
] | 25 | 2020-01-29T23:04:23.000Z | 2020-04-17T06:40:11.000Z | VortexBaseRuntime/VortexBase/View.cpp | D0si/Vortex | a97031227d4e867986918d39eeb2d184147cf118 | [
"MIT"
] | 1 | 2022-03-09T09:14:47.000Z | 2022-03-09T09:14:47.000Z | #include <VortexBase/View.h>
#include <Core/GlobalRuntime.h>
#include <Core/Modules/DependencyInjection.h>
using Vortex::Core::RuntimeInterface;
using Vortex::Core::GlobalRuntime;
namespace VortexBase {
View::View(RuntimeInterface* runtime)
: ViewInterface(runtime) {}
void View::output() {
_... | 31.417582 | 139 | 0.443628 | d0si |
a6756273722ccd26a242a79ac4164c7da1e0ec67 | 683 | hpp | C++ | experimental/Pomdog.Experimental/Skeletal2D/AnimationNode.hpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | experimental/Pomdog.Experimental/Skeletal2D/AnimationNode.hpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | experimental/Pomdog.Experimental/Skeletal2D/AnimationNode.hpp | ValtoForks/pomdog | 73798ae5f4a4c3b9b1e1e96239187c4b842c93b2 | [
"MIT"
] | null | null | null | // Copyright (c) 2013-2018 mogemimi. Distributed under the MIT license.
#pragma once
#include "AnimationTimeInterval.hpp"
namespace Pomdog {
namespace Detail {
namespace Skeletal2D {
class AnimationGraphWeightCollection;
} // namespace Skeletal2D
} // namespace Detail
class Skeleton;
class SkeletonPose;
class An... | 21.34375 | 74 | 0.745242 | ValtoForks |
a678e0e6d28052e50b732d49dd9849d8dae37136 | 3,747 | cpp | C++ | src/geom/SxRotation.cpp | ashtonmv/sphinx_vdw | 5896fee0d92c06e883b72725cb859d732b8b801f | [
"Apache-2.0"
] | 1 | 2020-02-29T03:26:32.000Z | 2020-02-29T03:26:32.000Z | src/geom/SxRotation.cpp | ashtonmv/sphinx_vdw | 5896fee0d92c06e883b72725cb859d732b8b801f | [
"Apache-2.0"
] | null | null | null | src/geom/SxRotation.cpp | ashtonmv/sphinx_vdw | 5896fee0d92c06e883b72725cb859d732b8b801f | [
"Apache-2.0"
] | null | null | null | // ---------------------------------------------------------------------------
//
// The ab-initio based multiscale library
//
// S / P H I / n X
//
// Copyright: Max-Planck-Institute for Iron Research
// 40237 Duesseldorf, Germany
//
// Contact: https://sxlib.mpie.d... | 28.603053 | 79 | 0.518815 | ashtonmv |
a67f34339e80c55e4099d0136a27c53b292ea0c3 | 1,189 | cpp | C++ | KDL/NotifyIcon.cpp | ara-ayvazyan/kdl | 62af2d2e891f2676fdb28a9fb9e5f190c30a4edc | [
"MIT"
] | 1 | 2018-03-05T17:44:22.000Z | 2018-03-05T17:44:22.000Z | KDL/NotifyIcon.cpp | ara-ayvazyan/kdl | 62af2d2e891f2676fdb28a9fb9e5f190c30a4edc | [
"MIT"
] | null | null | null | KDL/NotifyIcon.cpp | ara-ayvazyan/kdl | 62af2d2e891f2676fdb28a9fb9e5f190c30a4edc | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "NotifyIcon.h"
namespace KDL
{
NotifyIcon::NotifyIcon(HWND hWnd, UINT msg, HICON hIcon, const wchar_t* tip)
: _hWnd{ hWnd },
_msg{ msg }
{
::NOTIFYICONDATAW tnid;
ConfigIcon(tnid, hIcon, tip);
::Shell_NotifyIconW(NIM_ADD, &tnid);
}
... | 22.865385 | 89 | 0.573591 | ara-ayvazyan |
a67fecd86cfb5406eb5e553c24b3fc7e631956d7 | 2,256 | hpp | C++ | src/exception.hpp | legnaleurc/socks5_proxy | 50425b0b6c6ca1f31e714ae61a99cdeda38b4295 | [
"MIT"
] | null | null | null | src/exception.hpp | legnaleurc/socks5_proxy | 50425b0b6c6ca1f31e714ae61a99cdeda38b4295 | [
"MIT"
] | null | null | null | src/exception.hpp | legnaleurc/socks5_proxy | 50425b0b6c6ca1f31e714ae61a99cdeda38b4295 | [
"MIT"
] | null | null | null | /*
* SOCKS5 proxy server.
* Copyright (C) 2017 Wei-Cheng Pan <legnaleurc@gmail.com>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation ... | 25.636364 | 80 | 0.741578 | legnaleurc |
a68087ba22d18dff28e4e7420c3ab7d4abdbe449 | 1,176 | cpp | C++ | src/common/test/test_term_match.cpp | datavetaren/prologcoin | 8583db7d99a8007f634210aefdfb92bf45596fd3 | [
"MIT"
] | 38 | 2017-06-14T07:13:10.000Z | 2022-02-16T15:41:25.000Z | src/common/test/test_term_match.cpp | datavetaren/prologcoin | 8583db7d99a8007f634210aefdfb92bf45596fd3 | [
"MIT"
] | 10 | 2017-07-01T11:13:10.000Z | 2021-02-27T05:40:30.000Z | src/common/test/test_term_match.cpp | datavetaren/prologcoin | 8583db7d99a8007f634210aefdfb92bf45596fd3 | [
"MIT"
] | 7 | 2017-07-05T20:38:51.000Z | 2021-08-02T04:30:46.000Z | #include <common/term.hpp>
#include <common/term_match.hpp>
using namespace prologcoin::common;
#include <type_traits>
static void header( const std::string &str )
{
std::cout << "\n";
std::cout << "--- [" + str + "] " + std::string(60 - str.length(), '-') << "\n";
std::cout << "\n";
}
static void test_... | 18.375 | 84 | 0.516156 | datavetaren |
a680976d96e1edb0b051607b58730fef8ba0cc62 | 3,097 | cpp | C++ | Marlin/src/lcd/extui/mks_ui/draw_jerk_settings.cpp | tom-2273/Tronxy_SKR_mini_E3_V20 | bc4a8dc2c6c627e4bd7aa423794246f5b051448d | [
"CC0-1.0"
] | null | null | null | Marlin/src/lcd/extui/mks_ui/draw_jerk_settings.cpp | tom-2273/Tronxy_SKR_mini_E3_V20 | bc4a8dc2c6c627e4bd7aa423794246f5b051448d | [
"CC0-1.0"
] | null | null | null | Marlin/src/lcd/extui/mks_ui/draw_jerk_settings.cpp | tom-2273/Tronxy_SKR_mini_E3_V20 | bc4a8dc2c6c627e4bd7aa423794246f5b051448d | [
"CC0-1.0"
] | null | null | null | /**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General... | 30.97 | 152 | 0.725218 | tom-2273 |
a681ce8be9a0921b1b97b5ad1661760af528b1f9 | 1,455 | cpp | C++ | src/planner/binder/statement/bind_create_vertex.cpp | graindb/graindb-demonstration | be901b3e66fc991ea3ecfbcfabdcd07af82dd2d7 | [
"MIT"
] | 1 | 2021-08-30T16:08:17.000Z | 2021-08-30T16:08:17.000Z | src/planner/binder/statement/bind_create_vertex.cpp | graindb/graindb-demonstration | be901b3e66fc991ea3ecfbcfabdcd07af82dd2d7 | [
"MIT"
] | 1 | 2021-12-12T03:36:02.000Z | 2021-12-12T03:36:02.000Z | src/planner/binder/statement/bind_create_vertex.cpp | graindb/graindb-demonstration | be901b3e66fc991ea3ecfbcfabdcd07af82dd2d7 | [
"MIT"
] | null | null | null | #include "duckdb/parser/parsed_data/create_vertex_info.hpp"
#include "duckdb/planner/binder.hpp"
#include "duckdb/planner/operator/list.hpp"
#include "duckdb/planner/parsed_data/bound_create_vertex_info.hpp"
#include "duckdb/planner/tableref/bound_basetableref.hpp"
namespace duckdb {
unique_ptr<BoundCreateVertexInfo>... | 41.571429 | 117 | 0.778007 | graindb |
a682c7d9d7b48e3d17c220dbfa5c64b6f31934e7 | 7,511 | inl | C++ | include/mathos/vmconvert_sse.inl | napina/mathos | c29bf3d2b9e191d4b3644b49f1d014cbaa787706 | [
"MIT"
] | 1 | 2021-03-31T13:14:54.000Z | 2021-03-31T13:14:54.000Z | include/mathos/vmconvert_sse.inl | napina/mathos | c29bf3d2b9e191d4b3644b49f1d014cbaa787706 | [
"MIT"
] | null | null | null | include/mathos/vmconvert_sse.inl | napina/mathos | c29bf3d2b9e191d4b3644b49f1d014cbaa787706 | [
"MIT"
] | null | null | null | /*=============================================================================
Copyright (c) 2010 Ville Ruusutie
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including wi... | 28.888462 | 99 | 0.684063 | napina |
a683a5e374c800ecfc180ce8576e04e6e840b7dc | 2,916 | hpp | C++ | fon9/fmkt/MdRtsTypes.hpp | fonwin/Plan | 3bfa9407ab04a26293ba8d23c2208bbececb430e | [
"Apache-2.0"
] | 21 | 2019-01-29T14:41:46.000Z | 2022-03-11T00:22:56.000Z | fon9/fmkt/MdRtsTypes.hpp | fonwin/Plan | 3bfa9407ab04a26293ba8d23c2208bbececb430e | [
"Apache-2.0"
] | null | null | null | fon9/fmkt/MdRtsTypes.hpp | fonwin/Plan | 3bfa9407ab04a26293ba8d23c2208bbececb430e | [
"Apache-2.0"
] | 9 | 2019-01-27T14:19:33.000Z | 2022-03-11T06:18:24.000Z | // \file fon9/fmkt/MdRtsTypes.hpp
// \author fonwinz@gmail.com
#ifndef __fon9_fmkt_MdRtsTypes_hpp__
#define __fon9_fmkt_MdRtsTypes_hpp__
#include "fon9/fmkt/FmktTypes.hpp"
#include "fon9/fmkt/FmdRtsPackType.h"
#include "fon9/seed/Tab.hpp"
#include "fon9/TimeStamp.hpp"
fon9_ENABLE_ENUM_BITWISE_OP(f9sv_MdRtsKind);
nam... | 35.13253 | 101 | 0.644719 | fonwin |
a69218f8a1195091652da62c35b45a8bc953a531 | 4,822 | cpp | C++ | src/server/world/server_world.cpp | Bluppie05/open-builder | 524b0f1a960802fc8c212ef5996716fbba12f5b1 | [
"MIT"
] | null | null | null | src/server/world/server_world.cpp | Bluppie05/open-builder | 524b0f1a960802fc8c212ef5996716fbba12f5b1 | [
"MIT"
] | null | null | null | src/server/world/server_world.cpp | Bluppie05/open-builder | 524b0f1a960802fc8c212ef5996716fbba12f5b1 | [
"MIT"
] | null | null | null | #include "server_world.h"
#include "../lua/server_lua_api.h"
#include <cassert>
#include "terrain_generation.h"
#include <common/maths.h>
ServerWorld::ServerWorld(int size)
: m_luaCallbacks(m_lua)
{
m_entities.resize(1024);
// Initialise the Lua API
luaInitDataApi(m_lua, m_biomeData, m_voxelData);
... | 27.397727 | 86 | 0.598092 | Bluppie05 |
a698721594d90fe1788971e9afc473b35dee5dff | 763 | cpp | C++ | Source/PlayFabGSDK/Private/GSDKFunctionLibrary.cpp | narthur157/playfab-gsdk-ue4 | 30597c5c553bcb25b0701e2fcb833a79e01b34fb | [
"MIT"
] | 14 | 2020-05-02T04:43:57.000Z | 2021-12-10T18:22:42.000Z | Source/PlayFabGSDK/Private/GSDKFunctionLibrary.cpp | narthur157/playfab-gsdk-ue4 | 30597c5c553bcb25b0701e2fcb833a79e01b34fb | [
"MIT"
] | 3 | 2021-04-30T14:46:57.000Z | 2021-05-12T13:56:36.000Z | Source/PlayFabGSDK/Private/GSDKFunctionLibrary.cpp | narthur157/playfab-gsdk-ue4 | 30597c5c553bcb25b0701e2fcb833a79e01b34fb | [
"MIT"
] | 1 | 2020-05-28T04:29:36.000Z | 2020-05-28T04:29:36.000Z | // Copyright MIT - Nicholas Arthur
#include "PlayFabGSDK/Public/GSDKFunctionLibrary.h"
#if UE_SERVER
#include "gsdk.h"
#include "string.h"
#endif
FString UGSDKFunctionLibrary::GetMatchId()
{
#if UE_SERVER
return GetGSDKConfigValue("sessionId");
#endif
UE_LOG(LogTemp, Warning, TEXT("Clients should not try to re... | 21.194444 | 110 | 0.752294 | narthur157 |
a698fd2ae0426a98aac0738c8344a40886096b7e | 2,011 | cpp | C++ | sources/complex.cpp | BURNINGTIGER/Complex | c87aa365aa123a89608aa176342dc4ee9db019fb | [
"MIT"
] | null | null | null | sources/complex.cpp | BURNINGTIGER/Complex | c87aa365aa123a89608aa176342dc4ee9db019fb | [
"MIT"
] | null | null | null | sources/complex.cpp | BURNINGTIGER/Complex | c87aa365aa123a89608aa176342dc4ee9db019fb | [
"MIT"
] | null | null | null | #include "complex.hpp"
#include <iostream>
using namespace std;
Complex Complex::add(const Complex b) const
{
return Complex(rel + b.rel, img + b.img);
}
Complex Complex::sub(const Complex b) const
{
return Complex(rel - b.rel, img - b.img);
}
Complex Complex::mult(const int i) const
{
return Complex(rel * i , img... | 16.483607 | 75 | 0.613128 | BURNINGTIGER |
a69a3f943e40669648e9e1fd7ee6d1d36c9c61ec | 374 | hpp | C++ | pythran/pythonic/include/numpy/isrealobj.hpp | artas360/pythran | 66dad52d52be71693043e9a7d7578cfb9cb3d1da | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/include/numpy/isrealobj.hpp | artas360/pythran | 66dad52d52be71693043e9a7d7578cfb9cb3d1da | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/include/numpy/isrealobj.hpp | artas360/pythran | 66dad52d52be71693043e9a7d7578cfb9cb3d1da | [
"BSD-3-Clause"
] | null | null | null | #ifndef PYTHONIC_INCLUDE_NUMPY_ISREALOBJ_HPP
#define PYTHONIC_INCLUDE_NUMPY_ISREALOBJ_HPP
#include "pythonic/utils/proxy.hpp"
#include "pythonic/types/ndarray.hpp"
#include "pythonic/types/traits.hpp"
namespace pythonic
{
namespace numpy
{
template <class E>
constexpr bool isrealobj(E const &expr);
... | 17.809524 | 44 | 0.762032 | artas360 |
a6a41a3b82f362a3f8237c3c21beef1be351aa04 | 1,300 | inl | C++ | c++/Ail/RRNetListener.inl | aamshukov/miscellaneous | 6fc0d2cb98daff70d14f87b2dfc4e58e61d2df60 | [
"MIT"
] | null | null | null | c++/Ail/RRNetListener.inl | aamshukov/miscellaneous | 6fc0d2cb98daff70d14f87b2dfc4e58e61d2df60 | [
"MIT"
] | null | null | null | c++/Ail/RRNetListener.inl | aamshukov/miscellaneous | 6fc0d2cb98daff70d14f87b2dfc4e58e61d2df60 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////////////
//......................................................................................
// This is a part of AI Library [Arthur's Interfaces Library]. .
// 1998-2001 Arthur Amshukov ... | 40.625 | 88 | 0.320769 | aamshukov |
a6a50cf05c521a25d37c0743f99330adb6b60bec | 532 | cpp | C++ | program.cpp | pouladzade/KomoG | 41a1002f49e2e78352ada69f8c0911e5c5afc692 | [
"Apache-2.0"
] | null | null | null | program.cpp | pouladzade/KomoG | 41a1002f49e2e78352ada69f8c0911e5c5afc692 | [
"Apache-2.0"
] | null | null | null | program.cpp | pouladzade/KomoG | 41a1002f49e2e78352ada69f8c0911e5c5afc692 | [
"Apache-2.0"
] | null | null | null | #include "program.h"
Program::Program()
{
Process = nullptr;
}
Program::Program(QString text, QString comm, QStringList args, ProcessKey key)
{
Process = nullptr;
Command = comm;
Arguments = args;
Label = text;
Pkey = key;
}
Program::Program(QString text, QString comm, QStringList args)
{
... | 15.647059 | 78 | 0.601504 | pouladzade |
a6a5dbf56fae1c9532c3a12b4e23203f5a36f715 | 20,114 | cc | C++ | src/trainer/trainer.cc | kaiping/RNNLM | 0bdc679deaf40216e8162f77d68b4e746b0b7516 | [
"Apache-2.0"
] | null | null | null | src/trainer/trainer.cc | kaiping/RNNLM | 0bdc679deaf40216e8162f77d68b4e746b0b7516 | [
"Apache-2.0"
] | null | null | null | src/trainer/trainer.cc | kaiping/RNNLM | 0bdc679deaf40216e8162f77d68b4e746b0b7516 | [
"Apache-2.0"
] | null | null | null | #include <thread>
#include <vector>
#include <map>
#include <queue>
#include <chrono>
#include <glog/logging.h>
#include "proto/common.pb.h"
#include "trainer/trainer.h"
#include "mshadow/tensor.h"
namespace singa {
using std::vector;
using std::map;
using namespace std::chrono;
using std::make_shared;
typedef std::c... | 33.635452 | 88 | 0.620314 | kaiping |
a6a63e70099d14c0b036cb2ffdd899b60d167b6d | 1,362 | cpp | C++ | graph-source-code/402-E/6422816.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/402-E/6422816.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/402-E/6422816.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | //Language: GNU C++
#include <iostream>
#include <sstream>
#include <ios>
#include <iomanip>
#include <functional>
#include <algorithm>
#include <vector>
#include <string>
#include <list>
#include <queue>
#include <deque>
#include <stack>
#include <set>
#include <map>
#include <cstdio>
#include <cstdlib>
#include <cm... | 14.645161 | 41 | 0.58884 | AmrARaouf |
16f6c926857ac32ec3aff961a57c8f4ad6f6321e | 1,254 | cpp | C++ | example/trainingExample/main.cpp | PhiniteLab/levenberg-marquardt-nn-Cpp-toolbox | a92b965b410304f8527264d2b253217bf1f4676e | [
"Apache-2.0"
] | 2 | 2021-09-14T11:28:39.000Z | 2021-09-16T02:40:26.000Z | example/trainingExample/main.cpp | PhiniteLab/levenberg-marquardt-nn-Cpp-toolbox | a92b965b410304f8527264d2b253217bf1f4676e | [
"Apache-2.0"
] | null | null | null | example/trainingExample/main.cpp | PhiniteLab/levenberg-marquardt-nn-Cpp-toolbox | a92b965b410304f8527264d2b253217bf1f4676e | [
"Apache-2.0"
] | 1 | 2021-09-13T18:26:16.000Z | 2021-09-13T18:26:16.000Z | #include "..\..\include\phiNNLibSettings.hpp"
using namespace std;
int main()
{
phiNNParameters pNN;
pNN.phiInOutFileName = "nnInputOutputFile.txt";
pNN.phiInOutReadFileFromText();
pNN.phiInOutWriteDataSetMatrices();
/////////////////////////////////////////////////////////////
///////////... | 23.660377 | 71 | 0.464115 | PhiniteLab |
16f756d6df890d05a150c07af116f380787e0b6f | 6,964 | cpp | C++ | src/Character.cpp | digladieux/TP5_SMA | 450153930410982c79dc79c5694885268fd4a04d | [
"Apache-2.0"
] | null | null | null | src/Character.cpp | digladieux/TP5_SMA | 450153930410982c79dc79c5694885268fd4a04d | [
"Apache-2.0"
] | null | null | null | src/Character.cpp | digladieux/TP5_SMA | 450153930410982c79dc79c5694885268fd4a04d | [
"Apache-2.0"
] | null | null | null | /**
* \file Character.cpp
* \author Gladieux Cunha Dimitri & Gonzales Florian
* \brief Fichier d'implementation de la classe Character
* \date 2018-12-03
*/
#include "../header/Character.hpp"
#include "../header/Exception.hpp"
#include "../header/Constantes.hpp"
#include "../header/mt19937ar.h"
/**
* \brief Var... | 32.092166 | 335 | 0.738943 | digladieux |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.