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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8c4ccc6398c38a0a284c7b2f9375389dda0b45c3 | 74 | cpp | C++ | source/languages/cpp/examples/#186.cpp | DoDoENT/cpp-textmate-grammar | f8c66603957ae3240ff828256d6d6d32e01913be | [
"MIT"
] | 81 | 2019-02-28T07:46:31.000Z | 2021-09-07T11:48:50.000Z | source/languages/cpp/examples/#186.cpp | DoDoENT/cpp-textmate-grammar | f8c66603957ae3240ff828256d6d6d32e01913be | [
"MIT"
] | 457 | 2019-02-08T23:45:20.000Z | 2021-09-11T02:22:42.000Z | test/fixtures/issues/186.cpp | derkallevombau/better-shell-syntax-reloaded | 7ea63e1db06eea1ce7b1953b41b4592a1c124e98 | [
"MIT"
] | 35 | 2019-02-28T07:50:23.000Z | 2021-08-22T00:13:59.000Z | std::vector<pair<int,int>> *g = new std::vector<pair<int,int>>[n];
for int | 37 | 66 | 0.662162 | DoDoENT |
8c52a22349eb656c96f2385e319f06d21644b11a | 2,011 | hpp | C++ | RealtekCardReader/ClosedRange.hpp | MK-986123/RealtekCardReader | 0b1a4c66082b63d057cba2a54721b62cbf11c0ac | [
"BSD-3-Clause"
] | 106 | 2021-07-16T03:27:28.000Z | 2022-03-31T15:35:50.000Z | RealtekCardReader/ClosedRange.hpp | MK-986123/RealtekCardReader | 0b1a4c66082b63d057cba2a54721b62cbf11c0ac | [
"BSD-3-Clause"
] | 28 | 2021-07-16T09:03:10.000Z | 2022-03-28T03:36:47.000Z | RealtekCardReader/ClosedRange.hpp | MK-986123/RealtekCardReader | 0b1a4c66082b63d057cba2a54721b62cbf11c0ac | [
"BSD-3-Clause"
] | 14 | 2021-07-16T16:15:09.000Z | 2022-02-24T22:08:21.000Z | //
// ClosedRange.hpp
// RealtekCardReader
//
// Created by FireWolf on 9/25/20.
// Copyright © 2020 FireWolf. All rights reserved.
//
#ifndef ClosedRange_hpp
#define ClosedRange_hpp
#include <libkern/OSTypes.h>
#include "Debug.hpp"
/// A structure that describes a closed interval from a lower bound to an upper ... | 24.52439 | 85 | 0.62904 | MK-986123 |
8c5d3c1f35397cbe8592c7e053cc24436a031613 | 8,399 | cpp | C++ | sl3.cpp | ojwoodford/liegroups | 2f7c30c2356f3a32e9df71a163085ced08ac3a57 | [
"BSD-1-Clause"
] | 1 | 2021-09-06T12:09:39.000Z | 2021-09-06T12:09:39.000Z | src/sl3.cpp | pangfumin/liegroups | 8a72700457e35d083f7de4f9ca9b51f7d23980c0 | [
"BSD-1-Clause"
] | null | null | null | src/sl3.cpp | pangfumin/liegroups | 8a72700457e35d083f7de4f9ca9b51f7d23980c0 | [
"BSD-1-Clause"
] | 1 | 2019-10-18T01:24:37.000Z | 2019-10-18T01:24:37.000Z | #include <liegroups/sl3.hpp>
#include <liegroups/scalar.hpp>
#include <liegroups/matrix.hpp>
#include <cmath>
#include <iostream>
template <> const liegroups::SL3<float>
liegroups::SL3<float>::identity = { {1.f, 0.f, 0.f,
0.f, 1.f, 0.f,
0.f, 0.f... | 33.329365 | 150 | 0.535659 | ojwoodford |
8c623244b6944b6d0bd3e99b6aa3517fc7b43883 | 1,915 | cpp | C++ | nnforge/cuda/layer_testing_schema.cpp | anshumang/nnForgeINST | 1e9ea1b539cadbb03daa39f5d81025c1b17c21d8 | [
"Apache-2.0"
] | 2 | 2015-08-19T08:02:59.000Z | 2017-06-18T21:10:36.000Z | nnforge/cuda/layer_testing_schema.cpp | yanshanjing/nnForge | 6d2baa1174a90b8e5e8bf2a4b259ce8a37fbddf1 | [
"Apache-2.0"
] | null | null | null | nnforge/cuda/layer_testing_schema.cpp | yanshanjing/nnForge | 6d2baa1174a90b8e5e8bf2a4b259ce8a37fbddf1 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2011-2013 Maxim Milakov
*
* 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 applic... | 28.161765 | 106 | 0.742559 | anshumang |
8c65448f196ac451808eefb9d4c61faeb6c5fd8f | 2,403 | hpp | C++ | libcaf_core/caf/detail/tick_emitter.hpp | Hamdor/actor-framework | ce63edffa2b7acb698cfaea571142029d38e9ef0 | [
"BSD-3-Clause"
] | 2,517 | 2015-01-04T22:19:43.000Z | 2022-03-31T12:20:48.000Z | libcaf_core/caf/detail/tick_emitter.hpp | Hamdor/actor-framework | ce63edffa2b7acb698cfaea571142029d38e9ef0 | [
"BSD-3-Clause"
] | 894 | 2015-01-07T14:21:21.000Z | 2022-03-30T06:37:18.000Z | libcaf_core/caf/detail/tick_emitter.hpp | Hamdor/actor-framework | ce63edffa2b7acb698cfaea571142029d38e9ef0 | [
"BSD-3-Clause"
] | 570 | 2015-01-21T18:59:33.000Z | 2022-03-31T19:00:02.000Z | // This file is part of CAF, the C++ Actor Framework. See the file LICENSE in
// the main distribution directory for license terms and copyright or visit
// https://github.com/actor-framework/actor-framework/blob/master/LICENSE.
#pragma once
#include <chrono>
#include <initializer_list>
#include "caf/config.hpp"
#in... | 30.417722 | 80 | 0.697878 | Hamdor |
8c6808431b37d0adf403a314104b2422f4199369 | 497 | cpp | C++ | components/config/ConfigSingleton.cpp | DigitalFuturesAda/Battleships | ce2e4a77bc3f3284ea2a8d8c43204ae9acab61fc | [
"BSD-Source-Code"
] | null | null | null | components/config/ConfigSingleton.cpp | DigitalFuturesAda/Battleships | ce2e4a77bc3f3284ea2a8d8c43204ae9acab61fc | [
"BSD-Source-Code"
] | null | null | null | components/config/ConfigSingleton.cpp | DigitalFuturesAda/Battleships | ce2e4a77bc3f3284ea2a8d8c43204ae9acab61fc | [
"BSD-Source-Code"
] | 1 | 2021-03-24T00:40:12.000Z | 2021-03-24T00:40:12.000Z | //
// Created by Suraj Lyons on 14/03/2021.
//
#include "ConfigSingleton.h"
#include <utility>
ConfigSingleton* ConfigSingleton::instance = nullptr;
ConfigSingleton* ConfigSingleton::getInstance() {
if (instance == nullptr) {
instance = new ConfigSingleton();
}
return instance;
}
void ConfigSin... | 19.88 | 63 | 0.720322 | DigitalFuturesAda |
8c721ddae4f52b1184b13ce2a603b1d5a225d846 | 543 | cpp | C++ | src/1000/1890.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | 8 | 2018-04-12T15:54:09.000Z | 2020-06-05T07:41:15.000Z | src/1000/1890.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | null | null | null | src/1000/1890.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | null | null | null | #include <cstdio>
typedef long long ll;
ll adj[100][100], dp[100][100] = {};
int n;
ll ans(int x, int y)
{
if (dp[x][y] != -1)
return dp[x][y];
dp[x][y] = 0;
for (int i = x-1; i >= 0; i--)
if (i + adj[i][y] == x)
dp[x][y] += ans(i, y);
for (int i = y-1; i >= 0; i--)
if (i + adj[x][i] == y)
dp[x][y]... | 15.970588 | 42 | 0.429098 | upple |
8c740923f23a50e712ee2d1c7c3d66da4ec8bb33 | 1,180 | hpp | C++ | engine/src/gfx/platform/platformframebuffer.hpp | TRBFLXR/x808 | d5ab9e96c5a6109283151a591c261e4183628075 | [
"MIT"
] | null | null | null | engine/src/gfx/platform/platformframebuffer.hpp | TRBFLXR/x808 | d5ab9e96c5a6109283151a591c261e4183628075 | [
"MIT"
] | null | null | null | engine/src/gfx/platform/platformframebuffer.hpp | TRBFLXR/x808 | d5ab9e96c5a6109283151a591c261e4183628075 | [
"MIT"
] | null | null | null | //
// Created by FLXR on 8/8/2018.
//
#ifndef X808_PLATFORMFRAMEBUFFER_HPP
#define X808_PLATFORMFRAMEBUFFER_HPP
#include <unordered_map>
#include <xe/gfx/texture.hpp>
namespace xe::internal {
class PlatformFrameBuffer {
public:
virtual ~PlatformFrameBuffer() = default;
virtual void load(const std::uno... | 28.095238 | 94 | 0.738136 | TRBFLXR |
8c7898076df441970240f31fc2e5c286cc31b382 | 5,803 | cpp | C++ | VectorAsteroids/RockController.cpp | LanceJZ/SDL2VectorAsteroids | 4f91590cbd9dccd88a0adb290ca20f3eefa3e5cd | [
"Unlicense"
] | 3 | 2015-12-04T08:23:57.000Z | 2020-08-17T04:54:51.000Z | VectorAsteroids/RockController.cpp | LanceJZ/SDL2VectorAsteroids | 4f91590cbd9dccd88a0adb290ca20f3eefa3e5cd | [
"Unlicense"
] | null | null | null | VectorAsteroids/RockController.cpp | LanceJZ/SDL2VectorAsteroids | 4f91590cbd9dccd88a0adb290ca20f3eefa3e5cd | [
"Unlicense"
] | 2 | 2015-01-02T14:56:53.000Z | 2021-05-06T09:06:04.000Z | #include "RockController.h"
void RockController::Update(double *Frame)
{
for (int rock = 0; rock < m_LargeRocks.size(); rock++)
{
m_LargeRocks[rock]->Update(Frame);
}
for (int rock = 0; rock < m_MedRocks.size(); rock++)
{
m_MedRocks[rock]->Update(Frame);
}
for (int rock = 0; rock < m_SmallRocks.size(); ro... | 19.343333 | 85 | 0.686197 | LanceJZ |
8c7c3c467f9db27f3f6a43792beab6c09c20abca | 9,111 | cpp | C++ | TrackAlgTLD/src/cvblobs/ComponentLabeling.cpp | RayanWang/CameraTrackingFramework | 1ab2f7289cd000a4baa584bca469744a5486610f | [
"MIT"
] | 3 | 2016-11-05T03:31:48.000Z | 2016-12-07T05:57:28.000Z | TrackAlgTLD/src/cvblobs/ComponentLabeling.cpp | RayanWang/CameraTrackingFramework | 1ab2f7289cd000a4baa584bca469744a5486610f | [
"MIT"
] | null | null | null | TrackAlgTLD/src/cvblobs/ComponentLabeling.cpp | RayanWang/CameraTrackingFramework | 1ab2f7289cd000a4baa584bca469744a5486610f | [
"MIT"
] | 3 | 2018-11-10T17:19:49.000Z | 2020-04-11T16:30:26.000Z |
#include "ComponentLabeling.h"
//! Conversion from freeman code to coordinate increments (counterclockwise)
static const CvPoint freemanCodeIncrement[8] =
{ {1, 0}, {1, -1}, {0, -1}, {-1, -1}, {-1, 0}, {-1, 1}, {0, 1}, {1, 1} };
inline unsigned char GET_ABOVE_IMAGEPIXEL( unsigned char *currentPixel, I... | 27.197015 | 104 | 0.644057 | RayanWang |
8c80eb44cf8a1172b7b7eecfb8f758e4f9544ab2 | 1,759 | cpp | C++ | Token.cpp | MarkLeone/WeekendCompiler | 4c0588e0425f3b374f3a951dbaf05343b11967ef | [
"MIT"
] | 15 | 2018-12-15T03:20:18.000Z | 2022-01-25T20:12:03.000Z | Token.cpp | MarkLeone/WeekendCompiler | 4c0588e0425f3b374f3a951dbaf05343b11967ef | [
"MIT"
] | null | null | null | Token.cpp | MarkLeone/WeekendCompiler | 4c0588e0425f3b374f3a951dbaf05343b11967ef | [
"MIT"
] | 2 | 2020-03-03T05:27:26.000Z | 2020-03-28T13:38:10.000Z | #include "Token.h"
#include <string>
std::string Token::ToString() const
{
switch( GetTag() )
{
case kTokenNum:
{
std::stringstream stream;
stream << GetNum();
return stream.str();
}
case kTokenId: return GetId();
... | 35.18 | 49 | 0.484366 | MarkLeone |
8c80eddf6d5bb8c6c50ac591638cd5cd5314399d | 542 | cpp | C++ | src/KinectFusionManager.cpp | diegomazala/QtKinect | c51819980af92b857d87a417d19c5f01d8fada77 | [
"MIT"
] | 5 | 2016-08-04T14:14:11.000Z | 2018-05-27T13:46:13.000Z | src/KinectFusionManager.cpp | diegomazala/QtKinect | c51819980af92b857d87a417d19c5f01d8fada77 | [
"MIT"
] | null | null | null | src/KinectFusionManager.cpp | diegomazala/QtKinect | c51819980af92b857d87a417d19c5f01d8fada77 | [
"MIT"
] | 4 | 2015-12-08T06:22:46.000Z | 2022-03-15T10:29:17.000Z |
#include "KinectFusionManager.h"
#include "QKinectGrabberFromFile.h"
#include <iostream>
KinectFusionManager::KinectFusionManager(
QKinectGrabberFromFile* kinect_grabber,
QObject* parent) :
QObject(parent)
, kinectGrabber(kinect_grabber)
{
}
KinectFusionManager::~KinectFusionManager()
{
}
void KinectFu... | 15.941176 | 90 | 0.715867 | diegomazala |
8c89159a087d9592332c8cfdf20698405698ce38 | 455 | cpp | C++ | cf/Educational Codeforces Round 41 (Rated for Div. 2) /a.cpp | emengdeath/acmcode | cc1b0e067464e754d125856004a991d6eb92a2cd | [
"MIT"
] | null | null | null | cf/Educational Codeforces Round 41 (Rated for Div. 2) /a.cpp | emengdeath/acmcode | cc1b0e067464e754d125856004a991d6eb92a2cd | [
"MIT"
] | null | null | null | cf/Educational Codeforces Round 41 (Rated for Div. 2) /a.cpp | emengdeath/acmcode | cc1b0e067464e754d125856004a991d6eb92a2cd | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
const int N=1001;
int a[N];
int n,m,sum;
int main(){
ios::sync_with_stdio(false);
cin>>n>>m;
int ans=0;
for (int i=1;i<=m;i++){
int x;
cin>>x;
if (!a[x])sum++;
a[x]++;
if (sum==n){
for (int j=1;j<=n;j++){
... | 17.5 | 35 | 0.378022 | emengdeath |
8c968038e69428784260048933ce2e591057669a | 5,343 | cpp | C++ | Tests/26/Test.cpp | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 28 | 2015-09-22T21:43:32.000Z | 2022-02-28T01:35:01.000Z | Tests/26/Test.cpp | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 98 | 2015-01-22T03:21:27.000Z | 2022-03-02T01:47:00.000Z | Tests/26/Test.cpp | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 4 | 2019-02-21T16:45:25.000Z | 2022-02-18T13:40:04.000Z | /*
* Copyright(c) Sophist Solutions, Inc. 1990-2021. All rights reserved
*/
// TEST Foundation::Containers::SortedMapping
// STATUS Alpha-Late
#include "Stroika/Foundation/StroikaPreComp.h"
#include <iostream>
#include <sstream>
#include "Stroika/Foundation/Containers/Concrete/SortedMapping_stdmap.h"
#in... | 44.525 | 191 | 0.689126 | SophistSolutions |
8c9767e075a89dcb702f70516171ceff3b1e90c1 | 10,810 | tcc | C++ | cxxblas/level3/syrk.tcc | ccecka/FLENS | b6cd7e630d490fde5432c6e9fc357089861bdffd | [
"BSD-3-Clause"
] | 3 | 2015-04-10T18:09:12.000Z | 2018-03-27T23:43:32.000Z | cxxblas/level3/syrk.tcc | ccecka/FLENS | b6cd7e630d490fde5432c6e9fc357089861bdffd | [
"BSD-3-Clause"
] | null | null | null | cxxblas/level3/syrk.tcc | ccecka/FLENS | b6cd7e630d490fde5432c6e9fc357089861bdffd | [
"BSD-3-Clause"
] | 4 | 2015-09-06T20:24:35.000Z | 2021-07-31T07:50:55.000Z | /*
* Copyright (c) 2009, Michael Lehn
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1) Redistributions of source code must retain the above copyright
* notice,... | 33.058104 | 95 | 0.594265 | ccecka |
8c97c66f342bae246e6e5f82fa18e4d4fd1dcd2f | 856 | hpp | C++ | include/boost/simd/function/combine.hpp | yaeldarmon/boost.simd | 561316cc54bdc6353ca78f3b6d7e9120acd11144 | [
"BSL-1.0"
] | null | null | null | include/boost/simd/function/combine.hpp | yaeldarmon/boost.simd | 561316cc54bdc6353ca78f3b6d7e9120acd11144 | [
"BSL-1.0"
] | null | null | null | include/boost/simd/function/combine.hpp | yaeldarmon/boost.simd | 561316cc54bdc6353ca78f3b6d7e9120acd11144 | [
"BSL-1.0"
] | null | null | null | //==================================================================================================
/*!
@file
@copyright 2016 NumScale SAS
@copyright 2016 J.T. Lapreste
Distributed under the Boost Software License, Version 1.0.
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
... | 25.939394 | 100 | 0.575935 | yaeldarmon |
8c9e9fd090600d28b27ad10d73fa9684ea621563 | 3,510 | cpp | C++ | src/rosbot/IMU.cpp | ygjukim/hFramework | 994ea7550c34b4943e2fa2d5e9ca447aa555f39e | [
"MIT"
] | 33 | 2017-07-03T22:49:30.000Z | 2022-03-31T19:32:55.000Z | src/rosbot/IMU.cpp | ygjukim/hFramework | 994ea7550c34b4943e2fa2d5e9ca447aa555f39e | [
"MIT"
] | 6 | 2017-07-13T13:23:22.000Z | 2019-10-25T17:51:28.000Z | src/rosbot/IMU.cpp | ygjukim/hFramework | 994ea7550c34b4943e2fa2d5e9ca447aa555f39e | [
"MIT"
] | 17 | 2017-07-01T05:35:47.000Z | 2022-03-22T23:33:00.000Z | #include "hFramework.h"
#include <SparkFunMPU9250-DMP.h>
#include "IMU.h"
MPU9250_DMP mpu;
void quatVisualisation()
{
static uint8_t teapotPacket[14] = {'$', 0x02, 0, 0, 0, 0, 0, 0, 0, 0, 0x00, 0x00, '\r', '\n'};
static int i = 0;
if (i == 0)
{
i = 1;
}
teapotPacket[2] = 0xff & (mpu.qw >> 24);
teapotPacket... | 23.716216 | 101 | 0.623932 | ygjukim |
8ca0f097cd16299e1bdbd803ff36c7390b71ca32 | 358 | cpp | C++ | source/Views/Object/Over.cpp | 1pkg/halfo | a57dc4b68d29165d6ab7ed36c7886326e414e269 | [
"MIT"
] | null | null | null | source/Views/Object/Over.cpp | 1pkg/halfo | a57dc4b68d29165d6ab7ed36c7886326e414e269 | [
"MIT"
] | null | null | null | source/Views/Object/Over.cpp | 1pkg/halfo | a57dc4b68d29165d6ab7ed36c7886326e414e269 | [
"MIT"
] | null | null | null | #include "components.hpp"
#include "Over.hpp"
namespace Views
{
namespace Object
{
Over::Over()
{
const std::array<cocos2d::Vec2, 2> & over = Master::instance().get<Components::Metric>().over();
_draw = cocos2d::DrawNode::create();
_draw->drawLine(over[0], over[1], cocos2d::Color4F::RED);
}
cocos2d::Node *
Over:... | 14.32 | 97 | 0.664804 | 1pkg |
8ca35884fd9fb90f98c4ca7c44b2cec9732ae88b | 688 | hpp | C++ | include/boost/mysql/detail/protocol/text_deserialization.hpp | madmongo1/mysql-asio | 26c57e92ddeebfee22e08e5ea05e7bb51248eba5 | [
"BSL-1.0"
] | 1 | 2020-03-31T11:48:12.000Z | 2020-03-31T11:48:12.000Z | include/boost/mysql/detail/protocol/text_deserialization.hpp | madmongo1/mysql-asio | 26c57e92ddeebfee22e08e5ea05e7bb51248eba5 | [
"BSL-1.0"
] | null | null | null | include/boost/mysql/detail/protocol/text_deserialization.hpp | madmongo1/mysql-asio | 26c57e92ddeebfee22e08e5ea05e7bb51248eba5 | [
"BSL-1.0"
] | null | null | null | #ifndef MYSQL_ASIO_IMPL_DESERIALIZE_ROW_HPP
#define MYSQL_ASIO_IMPL_DESERIALIZE_ROW_HPP
#include "boost/mysql/detail/protocol/serialization.hpp"
#include "boost/mysql/error.hpp"
#include "boost/mysql/value.hpp"
#include "boost/mysql/metadata.hpp"
#include <vector>
namespace boost {
namespace mysql {
namespace detail ... | 20.848485 | 68 | 0.784884 | madmongo1 |
8ca5be6230ad6f9f372ab1d5184738c0e07101f9 | 174 | cpp | C++ | src/peer-server/game.cpp | kosmigramma/HumbleNet | 368de8d66ad31b91d0f97a413db6eab7f0c33e3a | [
"BSD-3-Clause"
] | 598 | 2017-06-29T17:02:45.000Z | 2022-03-22T16:57:13.000Z | src/peer-server/game.cpp | kosmigramma/HumbleNet | 368de8d66ad31b91d0f97a413db6eab7f0c33e3a | [
"BSD-3-Clause"
] | 26 | 2017-07-22T20:30:06.000Z | 2021-08-03T08:16:59.000Z | src/peer-server/game.cpp | kosmigramma/HumbleNet | 368de8d66ad31b91d0f97a413db6eab7f0c33e3a | [
"BSD-3-Clause"
] | 54 | 2017-06-30T03:40:56.000Z | 2021-12-16T11:28:33.000Z | #include "game.h"
#include "p2p_connection.h"
#include "humblenet_utils.h"
namespace humblenet {
void Game::erasePeerAliases(PeerId p)
{
erase_value(aliases, p);
}
}
| 13.384615 | 38 | 0.718391 | kosmigramma |
8ca9ca1c97977774c424f8fbbf777f0463755626 | 3,999 | cpp | C++ | src/list.cpp | npeshek-spotx/libpriamcql | 19bf933f796cd022c5f5a6737b8c8e1ebda5c490 | [
"Apache-2.0"
] | 1 | 2021-01-11T19:26:29.000Z | 2021-01-11T19:26:29.000Z | src/list.cpp | npeshek-spotx/libpriamcql | 19bf933f796cd022c5f5a6737b8c8e1ebda5c490 | [
"Apache-2.0"
] | 10 | 2020-04-22T16:17:11.000Z | 2021-02-04T19:48:46.000Z | src/list.cpp | npeshek-spotx/libpriamcql | 19bf933f796cd022c5f5a6737b8c8e1ebda5c490 | [
"Apache-2.0"
] | 2 | 2019-08-15T02:07:38.000Z | 2021-01-11T18:21:17.000Z | #include "priam/list.hpp"
namespace priam
{
statement_list::statement_list(size_t reserve_size)
: m_cass_collection_ptr(cass_collection_new(CassCollectionType::CASS_COLLECTION_TYPE_LIST, reserve_size))
{
}
auto statement_list::append_ascii(std::string_view data) -> bool
{
return cass_collection_append_string_... | 29.843284 | 120 | 0.740685 | npeshek-spotx |
8cab06b90412c6aebcfb18a0c5c51f1d550f687f | 2,356 | cpp | C++ | RayTracing/sources/hittables/BVHNode.cpp | MdeLaharpe/RayTracing | c4fe9358e09af86a6b3e392a6e67fd826334cefa | [
"Apache-2.0"
] | null | null | null | RayTracing/sources/hittables/BVHNode.cpp | MdeLaharpe/RayTracing | c4fe9358e09af86a6b3e392a6e67fd826334cefa | [
"Apache-2.0"
] | null | null | null | RayTracing/sources/hittables/BVHNode.cpp | MdeLaharpe/RayTracing | c4fe9358e09af86a6b3e392a6e67fd826334cefa | [
"Apache-2.0"
] | null | null | null | #include "hittables/BVHNode.h"
#include <iostream>
#include <functional>
#include <algorithm>
#include "Random.h"
namespace rt
{
BVHNode::BVHNode(std::vector<std::shared_ptr<Hittable>>& list, size_t start, size_t end, float time0, float time1)
{
size_t span = end - start;
if (span == 1)
{
left = right = ... | 25.89011 | 115 | 0.621817 | MdeLaharpe |
8cab2b2de1eee86e838275693286227acf0ec2f8 | 1,526 | hpp | C++ | include/cdv/core/color/single_hue_interpolators.hpp | cpp-niel/cdv | 9aa310c6fe66dbc7f224ace3a3d4212ca6f0ed4a | [
"MIT"
] | 1 | 2020-08-09T01:05:30.000Z | 2020-08-09T01:05:30.000Z | include/cdv/core/color/single_hue_interpolators.hpp | cpp-niel/cdv | 9aa310c6fe66dbc7f224ace3a3d4212ca6f0ed4a | [
"MIT"
] | null | null | null | include/cdv/core/color/single_hue_interpolators.hpp | cpp-niel/cdv | 9aa310c6fe66dbc7f224ace3a3d4212ca6f0ed4a | [
"MIT"
] | null | null | null | #pragma once
#include <cdv/core/color/interpolator.hpp>
namespace cdv::interpolator
{
constexpr auto reds =
detail::color_interpolator(std::array{0xfff5f0ffu, 0xfee0d2ffu, 0xfcbba1ffu, 0xfc9272ffu, 0xfb6a4affu,
0xef3b2cffu, 0xcb181dffu, 0xa50f15ffu, 0x67000dff... | 50.866667 | 110 | 0.633028 | cpp-niel |
8cadd710366c1d30f85e7b5b4f6e6ddf88e07a57 | 126 | cpp | C++ | IL/src/IL/Renderer/RendererAPI.cpp | ILLmew/IL-engine | 8d5fd11263fcf332c2fc3afd33e73546d10efd7d | [
"Apache-2.0"
] | 4 | 2021-04-08T16:18:59.000Z | 2021-09-29T12:23:33.000Z | IL/src/IL/Renderer/RendererAPI.cpp | CrystaLamb/IL-engine | 8d5fd11263fcf332c2fc3afd33e73546d10efd7d | [
"Apache-2.0"
] | null | null | null | IL/src/IL/Renderer/RendererAPI.cpp | CrystaLamb/IL-engine | 8d5fd11263fcf332c2fc3afd33e73546d10efd7d | [
"Apache-2.0"
] | 1 | 2021-09-29T12:23:35.000Z | 2021-09-29T12:23:35.000Z | #include "ilpch.h"
#include "RendererAPI.h"
namespace IL
{
RendererAPI::API RendererAPI::s_API = RendererAPI::API::OpenGL;
} | 18 | 64 | 0.738095 | ILLmew |
8cb11c8c785246011cf25c3e0d2694a5d9bf7a7b | 5,740 | hpp | C++ | tlx/die.hpp | SDEagle/tlx | f234dc33d5117d9c10baec5a822ca70ef4eadcb7 | [
"BSL-1.0"
] | null | null | null | tlx/die.hpp | SDEagle/tlx | f234dc33d5117d9c10baec5a822ca70ef4eadcb7 | [
"BSL-1.0"
] | null | null | null | tlx/die.hpp | SDEagle/tlx | f234dc33d5117d9c10baec5a822ca70ef4eadcb7 | [
"BSL-1.0"
] | null | null | null | /*******************************************************************************
* tlx/die.hpp
*
* Part of tlx - http://panthema.net/tlx
*
* Copyright (C) 2016-2017 Timo Bingmann <tb@panthema.net>
*
* All rights reserved. Published under the Boost Software License, Version 1.0
**********************************... | 41.594203 | 80 | 0.380488 | SDEagle |
8cb3c36ea2a4ea5ea52cb892899e85d21cad1daa | 7,012 | cpp | C++ | Source/NTGame/Private/NTGame_PlayerController.cpp | AlCaTrAzzALZ/UE4-Networked-PhysX-Component | 15289c3ea2802b5b01d81222d9b6b2f89bd8ff0f | [
"MIT"
] | 12 | 2017-02-09T11:15:37.000Z | 2021-11-12T22:28:04.000Z | Source/NTGame/Private/NTGame_PlayerController.cpp | blockspacer/UE4-Networked-PhysX-Component | 15289c3ea2802b5b01d81222d9b6b2f89bd8ff0f | [
"MIT"
] | null | null | null | Source/NTGame/Private/NTGame_PlayerController.cpp | blockspacer/UE4-Networked-PhysX-Component | 15289c3ea2802b5b01d81222d9b6b2f89bd8ff0f | [
"MIT"
] | 12 | 2019-01-27T21:01:57.000Z | 2021-10-06T05:32:29.000Z | // Copyright (C) James Baxter 2017. All Rights Reserved.
#include "NTGame.h"
#include "NTGame_PlayerController.h"
ANTGame_PlayerController::ANTGame_PlayerController(const FObjectInitializer& OI)
: Super(OI)
{}
/////////////////
///// Input /////
/////////////////
void ANTGame_PlayerController::SetupInputComponent(... | 39.615819 | 131 | 0.758414 | AlCaTrAzzALZ |
8cb508704cdcc9e5908b29951a129eca983c1784 | 1,469 | hpp | C++ | Project/Model/IModel.hpp | Conny14156/asian-viking | 3b8a0acfb4d98ee80be16c7ef646a157f9045650 | [
"Zlib",
"BSD-3-Clause"
] | 1 | 2015-03-13T22:57:35.000Z | 2015-03-13T22:57:35.000Z | Project/Model/IModel.hpp | Conny14156/asian-viking | 3b8a0acfb4d98ee80be16c7ef646a157f9045650 | [
"Zlib",
"BSD-3-Clause"
] | null | null | null | Project/Model/IModel.hpp | Conny14156/asian-viking | 3b8a0acfb4d98ee80be16c7ef646a157f9045650 | [
"Zlib",
"BSD-3-Clause"
] | 2 | 2018-10-11T17:49:26.000Z | 2018-10-24T06:06:49.000Z | #ifndef MODEL_HPP
#define MODEL_HPP
#include <SFML\Graphics\RenderTarget.hpp>
#include <Core\String.hpp>
#include <Core\Vector.h>
#include <Asset\ObjectSaveMode.hpp>
#include <Asset\SpriteRef.hpp>
#include <Asset\IRequestable.hpp>
class IModel : public sf::Drawable, public IRequestable
{
protected:
SpriteRef* m_r... | 20.690141 | 87 | 0.742682 | Conny14156 |
8cb58dd3f2e1226c692605f58e1a68ebdbaa46c9 | 6,017 | cc | C++ | proc/elf_loader.cc | electrojustin/moonshine-os | 565b25a298ca8761fe2dbef2dec6126354cd878f | [
"BSD-3-Clause"
] | 1 | 2021-07-12T13:37:31.000Z | 2021-07-12T13:37:31.000Z | proc/elf_loader.cc | electrojustin/moonshine-os | 565b25a298ca8761fe2dbef2dec6126354cd878f | [
"BSD-3-Clause"
] | null | null | null | proc/elf_loader.cc | electrojustin/moonshine-os | 565b25a298ca8761fe2dbef2dec6126354cd878f | [
"BSD-3-Clause"
] | null | null | null | #include <stddef.h>
#include <stdint.h>
#include "filesystem/fat32.h"
#include "lib/std/memory.h"
#include "lib/std/stdio.h"
#include "lib/std/string.h"
#include "proc/elf_loader.h"
#include "proc/process.h"
namespace proc {
namespace {
using filesystem::directory_entry;
using filesystem::file_descriptor;
using fil... | 27.35 | 80 | 0.691208 | electrojustin |
8cc0c6ea9edaedb67fa0fe5ba89f1895549480dd | 24,204 | cpp | C++ | Blizzlike/ArcEmu/C++/World/Channel.cpp | 499453466/Lua-Other | 43fd2b72405faf3f2074fd2a2706ef115d16faa6 | [
"Unlicense"
] | 2 | 2015-06-23T16:26:32.000Z | 2019-06-27T07:45:59.000Z | Blizzlike/ArcEmu/C++/World/Channel.cpp | Eduardo-Silla/Lua-Other | db610f946dbcaf81b3de9801f758e11a7bf2753f | [
"Unlicense"
] | null | null | null | Blizzlike/ArcEmu/C++/World/Channel.cpp | Eduardo-Silla/Lua-Other | db610f946dbcaf81b3de9801f758e11a7bf2753f | [
"Unlicense"
] | 3 | 2015-01-10T18:22:59.000Z | 2021-04-27T21:28:28.000Z | /*
* ArcEmu MMORPG Server
* Copyright (C) 2005-2007 Ascent Team <http://www.ascentemu.com/>
* Copyright (C) 2008-2011 <http://www.ArcEmu.org/>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software... | 25.831377 | 135 | 0.681912 | 499453466 |
8cc28a9b947f0da659dce3d5c1a20595bd8e169b | 111,251 | cpp | C++ | src/samplers/SamplerCapCVT/gx_capcvt2d/generated/Ltheta_rho18.cpp | FrancoisGaits/utk | 8c408dd79635f98c46ed075c098f15e23972aad0 | [
"BSD-2-Clause-FreeBSD"
] | 44 | 2018-01-09T19:56:29.000Z | 2022-03-03T06:38:54.000Z | src/samplers/SamplerCapCVT/gx_capcvt2d/generated/Ltheta_rho18.cpp | FrancoisGaits/utk | 8c408dd79635f98c46ed075c098f15e23972aad0 | [
"BSD-2-Clause-FreeBSD"
] | 16 | 2018-01-29T18:01:42.000Z | 2022-03-31T07:01:09.000Z | src/samplers/SamplerCapCVT/gx_capcvt2d/generated/Ltheta_rho18.cpp | FrancoisGaits/utk | 8c408dd79635f98c46ed075c098f15e23972aad0 | [
"BSD-2-Clause-FreeBSD"
] | 12 | 2018-03-14T00:24:14.000Z | 2022-03-03T06:40:07.000Z | #include "Ltheta_rho18.h"
namespace Geex {
Ltheta_rho18::Ltheta_rho18() : Function(1,8,0){}
void Ltheta_rho18::eval(bool do_f, bool do_g, bool do_H) {
if(do_f) {
{
double tmp_1 = x(7);
double tmp_2 = (tmp_1*tmp_1)+1.0;
double tmp_3 = 1.0/(tmp_2);
double tmp_4 = x(6);
double tmp_5 = sin(tmp_4);
double tmp_6 ... | 328.174041 | 16,802 | 0.723229 | FrancoisGaits |
bc4687634898028f3a5e11693bfc8d66a76d55b5 | 254 | hpp | C++ | include/ev_ctr_os_interface.hpp | leoagomes/3ds.js | 8ab2783cc86ad81e8c0981864ffef5910a613dfe | [
"MIT"
] | 1 | 2022-03-14T10:45:25.000Z | 2022-03-14T10:45:25.000Z | include/ev_ctr_os_interface.hpp | leoagomes/3ds.js | 8ab2783cc86ad81e8c0981864ffef5910a613dfe | [
"MIT"
] | null | null | null | include/ev_ctr_os_interface.hpp | leoagomes/3ds.js | 8ab2783cc86ad81e8c0981864ffef5910a613dfe | [
"MIT"
] | null | null | null | #pragma once
#include "event_loop.hpp"
namespace ev {
class ctr_os_interface : public event::os_interface {
public:
uint64_t get_monotonic_tick();
uint64_t millis_to_ticks(uint64_t millis);
uint64_t ticks_to_millis(uint64_t ticks);
};
};
| 16.933333 | 53 | 0.748031 | leoagomes |
bc537acbbc5ba27efbc2f1b0b505e1b6941a01e0 | 2,298 | cc | C++ | Code/2104-operations-on-tree.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | 2 | 2019-12-06T14:08:57.000Z | 2020-01-15T15:25:32.000Z | Code/2104-operations-on-tree.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | 1 | 2020-01-15T16:29:16.000Z | 2020-01-26T12:40:13.000Z | Code/2104-operations-on-tree.cc | SMartQi/Leetcode | 9e35c65a48ba1ecd5436bbe07dd65f993588766b | [
"MIT"
] | null | null | null | class LockingTree {
unordered_map<int, unordered_set<int>> child;
int par[2000];
int lockby[2000];
int n;
bool checkedChild = false;
public:
LockingTree(vector<int>& parent) {
memset(lockby, -1, sizeof(lockby));
n = parent.size();
for (int i = 0; i < n; i++) {
... | 23.9375 | 67 | 0.416449 | SMartQi |
bc569e2d70b8d4fa78c360ecc5bba84f3e923219 | 14,047 | cpp | C++ | AnalyticNSIE/modes_ana.cpp | glenco/SLsimLib | fb7a3c450d2487a823fa3f0ae8c8ecf7945c3ebb | [
"MIT"
] | 2 | 2017-03-22T13:18:32.000Z | 2021-05-01T01:54:31.000Z | AnalyticNSIE/modes_ana.cpp | glenco/SLsimLib | fb7a3c450d2487a823fa3f0ae8c8ecf7945c3ebb | [
"MIT"
] | 49 | 2016-10-05T03:08:38.000Z | 2020-11-03T15:39:26.000Z | AnalyticNSIE/modes_ana.cpp | glenco/SLsimLib | fb7a3c450d2487a823fa3f0ae8c8ecf7945c3ebb | [
"MIT"
] | 1 | 2017-07-10T08:52:53.000Z | 2017-07-10T08:52:53.000Z | /**
* Created on: March 28, 2014
* Author: D. Leier
*/
#include "lens_halos.h"
/*
PosType LensHalo::modfunc(int modnumber, PosType my_slope, PosType my_fratio){
if(modnumber==0){return 1.0;};
PosType a=amodfunc(modnumber, my_fratio);
PosType b=bmodfunc(modnumber, my_fratio);
PosType ans=a+... | 57.569672 | 188 | 0.660853 | glenco |
bc57ca454ed21a6910e632bfa7b4ef22d4cacbdb | 597 | cpp | C++ | luogu/codes/P4549.cpp | Tony031218/OI | 562f5f45d0448f4eab77643b99b825405a123d92 | [
"MIT"
] | 1 | 2018-12-22T06:43:59.000Z | 2018-12-22T06:43:59.000Z | luogu/codes/P4549.cpp | Tony031218/OI | 562f5f45d0448f4eab77643b99b825405a123d92 | [
"MIT"
] | null | null | null | luogu/codes/P4549.cpp | Tony031218/OI | 562f5f45d0448f4eab77643b99b825405a123d92 | [
"MIT"
] | null | null | null | /*************************************************************
* > File Name : P4549.cpp
* > Author : Tony
* > Created Time : 2019/05/08 15:31:10
**************************************************************/
#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
LL gcd(LL a, ... | 22.961538 | 63 | 0.341709 | Tony031218 |
bc65421fd74470d7da46069c1a151d82615899f4 | 8,845 | cpp | C++ | source/utl/UTL_Analysis.cpp | Shakebones/VFXEpoch | 014c51d5f98253b45b947fcecec940b20b1a5f04 | [
"MIT"
] | null | null | null | source/utl/UTL_Analysis.cpp | Shakebones/VFXEpoch | 014c51d5f98253b45b947fcecec940b20b1a5f04 | [
"MIT"
] | null | null | null | source/utl/UTL_Analysis.cpp | Shakebones/VFXEpoch | 014c51d5f98253b45b947fcecec940b20b1a5f04 | [
"MIT"
] | null | null | null | /*******************************************************************************
VFXEPOCH - Physically based simulation VFX
Copyright (c) 2016 Snow Tsui <trevor.miscellaneous@gmail.com>
All rights reserved. Use of this source code is governed by
the MIT license as written in the LICENSE file.
********... | 34.686275 | 151 | 0.534087 | Shakebones |
bc66190eea78b84a9f884290290f1aae532c9e9f | 154 | cpp | C++ | old/practice/lesson8/ocpWithout.cpp | Lyuminarskiy/oop | b8c6a4b1cf8905c8bbeea5aa80769b5519307654 | [
"MIT"
] | 3 | 2018-02-16T11:22:55.000Z | 2018-03-23T14:10:33.000Z | old/practice/lesson8/ocpWithout.cpp | OOP-course/OOP-course | b8c6a4b1cf8905c8bbeea5aa80769b5519307654 | [
"MIT"
] | null | null | null | old/practice/lesson8/ocpWithout.cpp | OOP-course/OOP-course | b8c6a4b1cf8905c8bbeea5aa80769b5519307654 | [
"MIT"
] | 1 | 2020-04-28T17:13:02.000Z | 2020-04-28T17:13:02.000Z | // Работа с хранилищем заказов.
// Тип хранилища нельзя изменить.
struct OrderRepository
{
void load();
void save();
void update();
void del();
}; | 17.111111 | 33 | 0.675325 | Lyuminarskiy |
bc6d87151733a526cf53840d36df088b2a0cfcca | 7,769 | hpp | C++ | NetworkLib/src/RangedInteger.hpp | Bousk/Net | bb77d61f870a28752fdf7509c111d446819aff31 | [
"MIT"
] | 2 | 2021-12-29T16:29:13.000Z | 2022-03-27T15:48:20.000Z | NetworkLib/src/RangedInteger.hpp | Bousk/Net | bb77d61f870a28752fdf7509c111d446819aff31 | [
"MIT"
] | null | null | null | NetworkLib/src/RangedInteger.hpp | Bousk/Net | bb77d61f870a28752fdf7509c111d446819aff31 | [
"MIT"
] | 1 | 2020-10-31T23:50:23.000Z | 2020-10-31T23:50:23.000Z | #pragma once
#include <Types.hpp>
#include <Serialization/Serialization.hpp>
#include <Serialization/Serializer.hpp>
#include <Serialization/Deserializer.hpp>
#include <Utils.hpp>
namespace Bousk
{
// Extract a type from a value
// Extract the most fitting type, ie : -1 => int8, 257 => uint16, ...
template<auto V,... | 44.649425 | 169 | 0.693912 | Bousk |
bc701075e8ddb7383c108511ba233f7251802968 | 291 | cpp | C++ | 1 sem/7 week/2 problem/2 problem/main.cpp | resueman/HW_Sem1 | f096c7b026ce13ec4b7df5c9bea980a33697e60a | [
"Apache-2.0"
] | null | null | null | 1 sem/7 week/2 problem/2 problem/main.cpp | resueman/HW_Sem1 | f096c7b026ce13ec4b7df5c9bea980a33697e60a | [
"Apache-2.0"
] | 1 | 2018-11-22T14:14:55.000Z | 2018-11-22T14:14:55.000Z | 1 sem/7 week/2 problem/2 problem/main.cpp | resueman/HW_Sem1 | f096c7b026ce13ec4b7df5c9bea980a33697e60a | [
"Apache-2.0"
] | null | null | null | #include "tree.h"
#include "test.h"
#include <iostream>
int main()
{
if (!test())
{
std::cout << "Program doesn't work";
return -1;
}
Tree* tree = readFromFile("file.txt");
printTree(tree);
std::cout << std::endl;
std::cout << treeValue(tree);
deleteTree(tree);
return 0;
}
| 13.857143 | 39 | 0.611684 | resueman |
bc7188daf788e2bc3edd7d78852648b7f12d3e7b | 2,462 | cpp | C++ | Codility_StrSymmetricPoint.cpp | CharlieGearsTech/Codility | b0c4355eb68f05f24390075e3fe2fe555d40b6b9 | [
"MIT"
] | 1 | 2021-01-31T22:59:59.000Z | 2021-01-31T22:59:59.000Z | Codility_StrSymmetricPoint.cpp | CharlieGearsTech/Codility | b0c4355eb68f05f24390075e3fe2fe555d40b6b9 | [
"MIT"
] | null | null | null | Codility_StrSymmetricPoint.cpp | CharlieGearsTech/Codility | b0c4355eb68f05f24390075e3fe2fe555d40b6b9 | [
"MIT"
] | null | null | null | /*
Write a function:
int solution(string &S);
that, given a string S, returns the index (counting from 0) of a character such that the part of the string to the left of that character is a reversal of the part of the string to its right. The function should return −1 if no such index exists.
Note: reversing an ... | 20.864407 | 246 | 0.63485 | CharlieGearsTech |
bc72cad1897f118c42d1b17ff54854e62d6bb365 | 3,780 | cpp | C++ | src/autogen/cfdapi_get_issuance_blinding_key_json.cpp | fujita-cg/cfd-js | 6113374d3f04495a30854c06c73d7094ea361fdb | [
"MIT"
] | null | null | null | src/autogen/cfdapi_get_issuance_blinding_key_json.cpp | fujita-cg/cfd-js | 6113374d3f04495a30854c06c73d7094ea361fdb | [
"MIT"
] | null | null | null | src/autogen/cfdapi_get_issuance_blinding_key_json.cpp | fujita-cg/cfd-js | 6113374d3f04495a30854c06c73d7094ea361fdb | [
"MIT"
] | null | null | null | // Copyright 2019 CryptoGarage
/**
* @file cfdapi_get_issuance_blinding_key_json.cpp
*
* @brief JSONマッピングファイル (自動生成)
*/
#include <set>
#include <string>
#include <vector>
#include "cfdapi_get_issuance_blinding_key_json.h" // NOLINT
namespace cfd {
namespace js {
namespace api {
namespace json {
using cfd::core:... | 31.5 | 105 | 0.725397 | fujita-cg |
bc7af59e662906d453c6b6acbab8bec4c8bb97f5 | 25,204 | cpp | C++ | src/Display.cpp | Gbertaz/GloBoSaT | ab983c6c8ca8a988b6521cc4c23f9717eb877d9f | [
"MIT"
] | 7 | 2021-05-25T10:40:42.000Z | 2022-01-19T15:16:53.000Z | src/Display.cpp | Gbertaz/GloBoSaT | ab983c6c8ca8a988b6521cc4c23f9717eb877d9f | [
"MIT"
] | null | null | null | src/Display.cpp | Gbertaz/GloBoSaT | ab983c6c8ca8a988b6521cc4c23f9717eb877d9f | [
"MIT"
] | null | null | null | // MIT License
//
// Copyright(c) 2021 Giovanni Bertazzoni <nottheworstdev@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 th... | 37.843844 | 194 | 0.550429 | Gbertaz |
bc7baf3894d834a5c2a825e6de0785025cd57eb5 | 7,908 | cpp | C++ | utillib/basenode.cpp | ahuachen/ethslurp | bc7354cc03599eaa82fdc431f7adc8b223619fc1 | [
"MIT"
] | 3 | 2020-12-29T16:10:55.000Z | 2021-12-20T19:13:11.000Z | utillib/basenode.cpp | ahuachen/ethslurp | bc7354cc03599eaa82fdc431f7adc8b223619fc1 | [
"MIT"
] | null | null | null | utillib/basenode.cpp | ahuachen/ethslurp | bc7354cc03599eaa82fdc431f7adc8b223619fc1 | [
"MIT"
] | 3 | 2017-10-08T00:43:04.000Z | 2021-12-20T19:13:16.000Z | /*--------------------------------------------------------------------------------
The MIT License (MIT)
Copyright (c) 2016 Great Hill Corporation
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 ... | 25.025316 | 138 | 0.484446 | ahuachen |
bc815f9396a23f69d18679f7ed8f5d31e0479101 | 2,577 | hh | C++ | hackt_docker/hackt/src/Object/ref/meta_value_reference.hh | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/Object/ref/meta_value_reference.hh | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | hackt_docker/hackt/src/Object/ref/meta_value_reference.hh | broken-wheel/hacktist | 36e832ae7dd38b27bca9be7d0889d06054dc2806 | [
"MIT"
] | null | null | null | /**
\file "Object/ref/meta_value_reference.hh"
$Id: meta_value_reference.hh,v 1.7 2010/01/03 01:34:43 fang Exp $
*/
#ifndef __HAC_OBJECT_REF_META_VALUE_REFERENCE_H__
#define __HAC_OBJECT_REF_META_VALUE_REFERENCE_H__
#include "util/macros.h"
#include "Object/ref/meta_value_reference_base.hh"
#include "Object/traits... | 27.709677 | 79 | 0.734575 | broken-wheel |
bc85665eca9e378d287694242eeca203c91a1d59 | 3,206 | hpp | C++ | Source/Utility/String/Format/Impl/ToStringImpl.hpp | KingKiller100/kLibrary | 37971acd3c54f9ea0decdf78b13e47c935d4bbf0 | [
"Apache-2.0"
] | null | null | null | Source/Utility/String/Format/Impl/ToStringImpl.hpp | KingKiller100/kLibrary | 37971acd3c54f9ea0decdf78b13e47c935d4bbf0 | [
"Apache-2.0"
] | null | null | null | Source/Utility/String/Format/Impl/ToStringImpl.hpp | KingKiller100/kLibrary | 37971acd3c54f9ea0decdf78b13e47c935d4bbf0 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "../FormatSymbols.hpp"
#include "../kStringIdentity.hpp"
#include "../../Tricks/kStringData.hpp"
#include "../../../../TypeTraits/StringTraits.hpp"
#include "../../../../TypeTraits/ConditionalReference.hpp"
#include <string>
namespace klib::kString::secret::impl
{
template<class Char_t>
USE_R... | 30.826923 | 193 | 0.700561 | KingKiller100 |
bc86d3a39d5aef7ee301ba852fd3d762f4e283f1 | 1,089 | cc | C++ | benchmarks/rlpBenchmark.cc | ketlller/UniswapSniperBot | b5a508660ad133348ec74a48758b431529bf2d3e | [
"MIT"
] | 127 | 2021-05-03T15:04:50.000Z | 2022-03-28T02:26:43.000Z | benchmarks/rlpBenchmark.cc | brianleect/UniswapSniperBot | c04c225ffb08a69e8beb5db20ff4497995eea50c | [
"MIT"
] | 2 | 2021-05-14T10:07:58.000Z | 2021-07-15T20:53:02.000Z | benchmarks/rlpBenchmark.cc | brianleect/UniswapSniperBot | c04c225ffb08a69e8beb5db20ff4497995eea50c | [
"MIT"
] | 56 | 2021-05-05T00:13:07.000Z | 2022-03-08T13:24:15.000Z | #include <benchmark/benchmark.h>
#include <rlp.hpp>
#include <utils.hpp>
static void encodeLength(benchmark::State &state) {
Utils::Byte output[2];
for(auto _ : state) {
benchmark::DoNotOptimize(RLP::encodeLength(255, 0x80, output));
}
}
static void encodeItem(benchmark::State &state) {
Utils::Byte buff... | 21.78 | 79 | 0.650138 | ketlller |
bc8a9766c483c11e04a8daa1c827e4f7af8d9aa1 | 1,517 | cpp | C++ | leetcode/medium/764. Largest Plus Sign.cpp | fpdjsns/Algorithm | 0128da7c333d0c065f6d266d9e6dce4a91842525 | [
"MIT"
] | 7 | 2019-08-05T14:49:41.000Z | 2022-03-13T07:10:51.000Z | leetcode/medium/764. Largest Plus Sign.cpp | fpdjsns/Algorithm | 0128da7c333d0c065f6d266d9e6dce4a91842525 | [
"MIT"
] | null | null | null | leetcode/medium/764. Largest Plus Sign.cpp | fpdjsns/Algorithm | 0128da7c333d0c065f6d266d9e6dce4a91842525 | [
"MIT"
] | 4 | 2021-01-04T03:45:22.000Z | 2021-10-06T06:11:00.000Z | /**
* problem : https://leetcode.com/problems/largest-plus-sign/
* time/space complexity : O(N^2)
*/
class Solution {
public:
int orderOfLargestPlusSign(int n, vector<vector<int>>& mines) {
set<pair<int,int>> zeros;
for(auto mine: mines){
zeros.insert({mine[0], mine[1]});
}
... | 31.604167 | 72 | 0.415293 | fpdjsns |
bc91d1fb6aa5593096062f38c9d28d40da5323b8 | 10,526 | cpp | C++ | leven/src/compute_csg.cpp | nickgildea/leven | 118bf1cacb75fdb3b306ccf27477037720af86e8 | [
"Unlicense"
] | 92 | 2017-10-08T17:26:12.000Z | 2022-03-31T04:27:41.000Z | leven/src/compute_csg.cpp | nickgildea/leven | 118bf1cacb75fdb3b306ccf27477037720af86e8 | [
"Unlicense"
] | 1 | 2021-02-11T01:12:19.000Z | 2021-02-11T01:12:19.000Z | leven/src/compute_csg.cpp | nickgildea/leven | 118bf1cacb75fdb3b306ccf27477037720af86e8 | [
"Unlicense"
] | 10 | 2018-01-13T14:13:52.000Z | 2021-12-23T00:44:36.000Z | #include "compute_local.h"
#include "compute_program.h"
#include "volume_constants.h"
#include "volume_materials.h"
#include <Remotery.h>
#include <sstream>
// ----------------------------------------------------------------------------
int ApplyCSGOperations(
MeshGenerationContext* meshGen,
const std::vector<CSGO... | 43.495868 | 145 | 0.754798 | nickgildea |
bc9498757e2658d26bfb067d5fcc14c2f7665dff | 10,605 | cpp | C++ | test/common/tx.cpp | adlerjohn/ech-cpp-dev | 60584994266b1c83e997e831238d14f5bd015e5a | [
"Apache-2.0"
] | 2 | 2020-06-01T00:30:12.000Z | 2020-06-05T18:41:48.000Z | test/common/tx.cpp | adlerjohn/ech-cpp-dev | 60584994266b1c83e997e831238d14f5bd015e5a | [
"Apache-2.0"
] | null | null | null | test/common/tx.cpp | adlerjohn/ech-cpp-dev | 60584994266b1c83e997e831238d14f5bd015e5a | [
"Apache-2.0"
] | 1 | 2020-06-05T18:33:28.000Z | 2020-06-05T18:33:28.000Z | #include "catch2/catch.hpp"
// Project includes
#include "common/tx.hpp"
using namespace ech;
using Catch::Matchers::Equals;
TEST_CASE("tx data zero", "[common][txdata]")
{
const uint32_t version = 0u;
const auto inputs = std::vector<Input>{};
const auto outputs = std::vector<TXO>{};
const uint64_t heightMin = 0... | 44.1875 | 177 | 0.758133 | adlerjohn |
bc99aee4caf55f0085df2f10d1b9ab4111202db5 | 387 | inl | C++ | node_modules/lzz-gyp/lzz-source/smtc_ParamToNavCtorParam.inl | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | 3 | 2019-09-18T16:44:33.000Z | 2021-03-29T13:45:27.000Z | node_modules/lzz-gyp/lzz-source/smtc_ParamToNavCtorParam.inl | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | null | null | null | node_modules/lzz-gyp/lzz-source/smtc_ParamToNavCtorParam.inl | SuperDizor/dizornator | 9f57dbb3f6af80283b4d977612c95190a3d47900 | [
"ISC"
] | 2 | 2019-03-29T01:06:38.000Z | 2019-09-18T16:44:34.000Z | // smtc_ParamToNavCtorParam.inl
//
#ifdef LZZ_ENABLE_INLINE
#define LZZ_INLINE inline
#else
#define LZZ_INLINE
#endif
namespace smtc
{
LZZ_INLINE ParamPtr ParamToNavCtorParam::operator () (ParamPtr const & param) const
{
return paramToNavCtorParam (param);
}
}
namespace smtc
{
LZZ_INLINE ParamToNavCtorPara... | 17.590909 | 85 | 0.731266 | SuperDizor |
bc9abf9958914fd1d4d4841944037194826cad54 | 2,356 | hpp | C++ | Assign2/DisplayModule/Messages.hpp | thekana/MTRN3500-Assign2 | 07083eb3aab3f3b061c42159d83cbe50b5f55c68 | [
"OLDAP-2.5"
] | null | null | null | Assign2/DisplayModule/Messages.hpp | thekana/MTRN3500-Assign2 | 07083eb3aab3f3b061c42159d83cbe50b5f55c68 | [
"OLDAP-2.5"
] | null | null | null | Assign2/DisplayModule/Messages.hpp | thekana/MTRN3500-Assign2 | 07083eb3aab3f3b061c42159d83cbe50b5f55c68 | [
"OLDAP-2.5"
] | null | null | null | #ifndef MTRN3500_MESSAGES_H
#define MTRN3500_MESSAGES_H
#include <vector>
#include <string>
// --- code for handling vehicle state ---
struct VehicleState
{
int remoteID;
float x;
float z; // y up
float rotation;
float speed;
float steering;
};
// --- code for handling vehicle models ---
enum ShapeType
{
UN... | 20.310345 | 71 | 0.707131 | thekana |
bc9b8d0af7dc1fa7e05f6841c20d8a6ef10c5ac8 | 330 | cpp | C++ | snippets/cpp/VS_Snippets_CodeAnalysis/FxCop.Design.CallUriOverload/cpp/FxCop.Design.CallUriOverload.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 834 | 2017-06-24T10:40:36.000Z | 2022-03-31T19:48:51.000Z | snippets/cpp/VS_Snippets_CodeAnalysis/FxCop.Design.CallUriOverload/cpp/FxCop.Design.CallUriOverload.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 7,042 | 2017-06-23T22:34:47.000Z | 2022-03-31T23:05:23.000Z | snippets/cpp/VS_Snippets_CodeAnalysis/FxCop.Design.CallUriOverload/cpp/FxCop.Design.CallUriOverload.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 1,640 | 2017-06-23T22:31:39.000Z | 2022-03-31T02:45:37.000Z | //<Snippet1>
#using <system.dll>
using namespace System;
namespace DesignLibrary
{
public ref class History
{
public:
void AddToHistory(String^ uriString)
{
Uri^ newUri = gcnew Uri(uriString);
AddToHistory(newUri);
}
void AddToHistory(Uri^ uriType) { }
};
}
//</... | 16.5 | 45 | 0.606061 | BohdanMosiyuk |
bc9e7c8941dedb8b12e5c40e4b435c3cb3681525 | 5,091 | inl | C++ | scimitar/util/biguint.inl | grandmaster789/scimitar | 8f12caa2c3a9b9c6b366871d58d25f72cacbd825 | [
"MIT"
] | null | null | null | scimitar/util/biguint.inl | grandmaster789/scimitar | 8f12caa2c3a9b9c6b366871d58d25f72cacbd825 | [
"MIT"
] | null | null | null | scimitar/util/biguint.inl | grandmaster789/scimitar | 8f12caa2c3a9b9c6b366871d58d25f72cacbd825 | [
"MIT"
] | null | null | null | #pragma once
#include "biguint.h"
#include "codec/base_n.h"
#include <cassert>
namespace scimitar::util {
template <std::unsigned_integral T, int N>
template <int M>
requires (M < N)
Biguint<T, N>::Biguint(const Biguint<T, M>& x) noexcept {
int i = 0;
for (; i < M; ++i)
m_Digits[i] = x.m_Digits[i];
fo... | 23.246575 | 87 | 0.628364 | grandmaster789 |
bca3d5f95c1e34ade1bb9fb18f2e42f274fb44be | 1,440 | hpp | C++ | C++/leetcode/Out_of_Boundary_Paths/solution.hpp | pterodragon/programming | 1e9c10490c3aaebe51bc06f8e0c6566e9f8b461c | [
"MIT"
] | 2 | 2018-10-06T14:43:13.000Z | 2019-02-03T13:07:14.000Z | C++/leetcode/Out_of_Boundary_Paths/solution.hpp | pterodragon/programming | 1e9c10490c3aaebe51bc06f8e0c6566e9f8b461c | [
"MIT"
] | null | null | null | C++/leetcode/Out_of_Boundary_Paths/solution.hpp | pterodragon/programming | 1e9c10490c3aaebe51bc06f8e0c6566e9f8b461c | [
"MIT"
] | null | null | null | #ifndef SOLUTION_HPP
#define SOLUTION_HPP
#include <iostream>
#include <string>
#include <utility>
#include <vector>
using namespace std;
struct Input {
int m;
int n;
int N;
int i;
int j;
friend std::ostream &operator<<(std::ostream &s, const Input &x) {
return s << x.m << ", " << x.n << ", " << x.N <... | 24.40678 | 80 | 0.404861 | pterodragon |
bca87cba48152db2267b8a023bc8ef29da2f4e7e | 508 | cpp | C++ | ExpTest/ExpTest.prj/IndexDlg.cpp | rrvt/ExpTest | 94391b48afd974d0d77e5b02c04ff234fa2d9e54 | [
"MIT"
] | null | null | null | ExpTest/ExpTest.prj/IndexDlg.cpp | rrvt/ExpTest | 94391b48afd974d0d77e5b02c04ff234fa2d9e54 | [
"MIT"
] | null | null | null | ExpTest/ExpTest.prj/IndexDlg.cpp | rrvt/ExpTest | 94391b48afd974d0d77e5b02c04ff234fa2d9e54 | [
"MIT"
] | null | null | null | // IndexDlg.cpp : implementation file
//
#include "stdafx.h"
#include "IndexDlg.h"
// IndexDlg dialog
IMPLEMENT_DYNAMIC(IndexDlg, CDialogEx)
IndexDlg::IndexDlg(CWnd* pParent) : CDialogEx(IDD_Index, pParent), indexReq(_T("")), index(_T("")) { }
IndexDlg::~IndexDlg() { }
void IndexDlg::DoDataExchange(CDataExchan... | 18.142857 | 102 | 0.718504 | rrvt |
bca969beb80d122ba1dd2895e1d8e09dc9ecd3a6 | 325 | hpp | C++ | ospp/impl/mml/clipboard.hpp | volcoma/ospp | 48de0844b66acf515ac17dc5e673435b33876b35 | [
"MIT"
] | 1 | 2019-05-26T19:50:29.000Z | 2019-05-26T19:50:29.000Z | ospp/impl/mml/clipboard.hpp | volcoma/ospp | 48de0844b66acf515ac17dc5e673435b33876b35 | [
"MIT"
] | null | null | null | ospp/impl/mml/clipboard.hpp | volcoma/ospp | 48de0844b66acf515ac17dc5e673435b33876b35 | [
"MIT"
] | null | null | null | #pragma once
#include "../../keyboard.h"
#include "config.hpp"
namespace os
{
namespace clipboard
{
namespace detail
{
namespace mml
{
inline auto get_text() noexcept -> std::string
{
return ::mml::clipboard::get_string();
}
inline void set_text(const std::string& text)
{
::mml::clipboard::set_string(text);
}
}
}... | 11.607143 | 46 | 0.686154 | volcoma |
bca990c4ebc334b3805cf296a810ac240e910b1e | 3,488 | cpp | C++ | fmaimage/src/image/PixelClass.cpp | BenjaminSchulte/fma | df2aa5b0644c75dd34a92defeff9beaa4a32ffea | [
"MIT"
] | 14 | 2018-01-25T10:31:05.000Z | 2022-02-19T13:08:11.000Z | fmaimage/src/image/PixelClass.cpp | BenjaminSchulte/fma | df2aa5b0644c75dd34a92defeff9beaa4a32ffea | [
"MIT"
] | 1 | 2020-12-24T10:10:28.000Z | 2020-12-24T10:10:28.000Z | fmaimage/src/image/PixelClass.cpp | BenjaminSchulte/fma | df2aa5b0644c75dd34a92defeff9beaa4a32ffea | [
"MIT"
] | null | null | null | #include <image/PixelClass.hpp>
#include <image/BaseCanvasClass.hpp>
#include <fma/core/Number.hpp>
#include <fma/core/String.hpp>
#include <fma/types/ClassPrototype.hpp>
#include <fma/types/Undefined.hpp>
#include <fma/types/Object.hpp>
#include <fma/interpret/ParameterList.hpp>
#include <fma/Project.hpp>
#include <ss... | 42.536585 | 133 | 0.650516 | BenjaminSchulte |
bcaa1945e59872161cbcb64bf3445ee3e4cb4791 | 941 | cpp | C++ | Codeforces/1185C1.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null | Codeforces/1185C1.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null | Codeforces/1185C1.cpp | DT3264/ProgrammingContestsSolutions | a297f2da654c2ca2815b9aa375c2b4ca0052269d | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
struct test{
int test;
int index;
};
bool compareTests(test t1, test t2){
return t1.test<t2.test;
}
vector<test> tests, sortedTests;
int total;
void insertTest(test t){
total+=t.test;
tests.push_back(t);
sortedTests.push_back(t);
sort(sortedTests... | 20.911111 | 63 | 0.539851 | DT3264 |
bcb087db260b55e3b3ebec6c82d217785b8bafc9 | 6,310 | cpp | C++ | libs/draw/text.cpp | kdt3rd/gecko | 756a4e4587eb5023495294d9b6c6d80ebd79ebde | [
"MIT"
] | 15 | 2017-10-18T05:08:16.000Z | 2022-02-02T11:01:46.000Z | libs/draw/text.cpp | kdt3rd/gecko | 756a4e4587eb5023495294d9b6c6d80ebd79ebde | [
"MIT"
] | null | null | null | libs/draw/text.cpp | kdt3rd/gecko | 756a4e4587eb5023495294d9b6c6d80ebd79ebde | [
"MIT"
] | 1 | 2018-11-10T03:12:57.000Z | 2018-11-10T03:12:57.000Z | // SPDX-License-Identifier: MIT
// Copyright contributors to the gecko project.
#include "text.h"
#include <gl/element_buffer_data.h>
#include <gl/vertex_buffer_data.h>
namespace draw
{
////////////////////////////////////////
text::text( void ) : _scale( 1.F, 1.F ), _color( 0.f, 0.f, 0.f, 1.f ) {}
///////////////... | 27.198276 | 90 | 0.495563 | kdt3rd |
bcb1cb80335fbc76b48b40b970d3fb86a14a4683 | 478 | cpp | C++ | modules/core/src/Dialog/gmDialogAbout.cpp | GraphMIC/GraphMIC | 8fc2aeb0143ee1292c6757f010fc9e8c68823e2b | [
"BSD-3-Clause"
] | 43 | 2016-04-11T11:34:05.000Z | 2022-03-31T03:37:57.000Z | modules/core/src/Dialog/gmDialogAbout.cpp | kevinlq/GraphMIC | 8fc2aeb0143ee1292c6757f010fc9e8c68823e2b | [
"BSD-3-Clause"
] | 1 | 2016-05-17T12:58:16.000Z | 2016-05-17T12:58:16.000Z | modules/core/src/Dialog/gmDialogAbout.cpp | kevinlq/GraphMIC | 8fc2aeb0143ee1292c6757f010fc9e8c68823e2b | [
"BSD-3-Clause"
] | 14 | 2016-05-13T20:23:16.000Z | 2021-12-20T10:33:19.000Z | #include "gmDialogAbout.hpp"
namespace gm
{
namespace Dialog
{
About* About::instance = nullptr;
About::About() : Base("About")
{
log_trace(Log::New, this);
}
auto About::Show() -> void
{
log_trace(Log::Func);
... | 17.703704 | 41 | 0.382845 | GraphMIC |
bcb1ed90985fce7dd1cd633de633c54b6b485179 | 4,135 | cpp | C++ | WKC/WebKit/WKC/helpers/privates/WKCFrameLoader.cpp | s1rcheese/nintendo-3ds-internetbrowser-sourcecode | 3dd05f035e0a5fc9723300623e9b9b359be64e11 | [
"Unlicense"
] | 15 | 2016-01-05T12:43:41.000Z | 2022-03-15T10:34:47.000Z | WKC/WebKit/WKC/helpers/privates/WKCFrameLoader.cpp | s1rcheese/nintendo-3ds-internetbrowser-sourcecode | 3dd05f035e0a5fc9723300623e9b9b359be64e11 | [
"Unlicense"
] | null | null | null | WKC/WebKit/WKC/helpers/privates/WKCFrameLoader.cpp | s1rcheese/nintendo-3ds-internetbrowser-sourcecode | 3dd05f035e0a5fc9723300623e9b9b359be64e11 | [
"Unlicense"
] | 2 | 2020-11-30T18:36:01.000Z | 2021-02-05T23:20:24.000Z | /*
* Copyright (c) 2011 ACCESS CO., LTD. All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later ve... | 25.524691 | 92 | 0.750665 | s1rcheese |
bcb6e43a4ca683d318da48b9d57e80a537f35661 | 7,479 | cc | C++ | graphicsdisplay.cc | woongbinchoi/Sorcery | d8e6e2b684490b0b6b982c704282a8b785b50d13 | [
"MIT"
] | null | null | null | graphicsdisplay.cc | woongbinchoi/Sorcery | d8e6e2b684490b0b6b982c704282a8b785b50d13 | [
"MIT"
] | null | null | null | graphicsdisplay.cc | woongbinchoi/Sorcery | d8e6e2b684490b0b6b982c704282a8b785b50d13 | [
"MIT"
] | null | null | null | #include "graphicsdisplay.h"
#include "card.h"
#include "board.h"
#include "enchantlist.h"
#include "ascii_graphics.h"
using namespace std;
GraphicsDisplay::GraphicsDisplay(int winSize):
width{winSize * 2}, height{winSize}, xw{winSize * 2, winSize} {
CardHeight = CARD_TEMPLATE_EMPTY.size();
CardWidth = CARD_TEMPLAT... | 38.158163 | 161 | 0.677898 | woongbinchoi |
bcbc7889a5d4177c7ae611d767a12a9d54f9d4d4 | 3,683 | cc | C++ | example/example.cc | wamonite/Pandrift | 8f7d8dace2d68f030562d4698c9830d7f9624718 | [
"MIT"
] | 3 | 2021-09-09T04:49:23.000Z | 2022-01-23T22:33:50.000Z | example/example.cc | wamonite/Pandrift | 8f7d8dace2d68f030562d4698c9830d7f9624718 | [
"MIT"
] | null | null | null | example/example.cc | wamonite/Pandrift | 8f7d8dace2d68f030562d4698c9830d7f9624718 | [
"MIT"
] | 3 | 2016-05-23T00:05:58.000Z | 2019-06-12T06:36:21.000Z | /*################################################################
Pandrift
Copyright (c) 2013 Warren Moore
This software may be redistributed under the terms of the MIT License.
See the file LICENSE for details.
################################################################*/
#include "pandaFramework.h"
#include "... | 31.478632 | 86 | 0.708661 | wamonite |
bcc2454f1f0332ef2081b2786df6a23c5a636a3a | 5,050 | cpp | C++ | src/eleKtro/effect3d.cpp | aestesis/elektronika | 870f72ca7f64942f8316b3cd8f733f43c7d2d117 | [
"Apache-2.0"
] | 14 | 2016-05-09T01:14:03.000Z | 2021-10-12T21:41:02.000Z | src/eleKtro/effect3d.cpp | aestesis/elektronika | 870f72ca7f64942f8316b3cd8f733f43c7d2d117 | [
"Apache-2.0"
] | null | null | null | src/eleKtro/effect3d.cpp | aestesis/elektronika | 870f72ca7f64942f8316b3cd8f733f43c7d2d117 | [
"Apache-2.0"
] | 6 | 2015-08-19T01:28:54.000Z | 2020-10-25T05:17:08.000Z | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#include "elektroexp.h"
////////////////////////////////////////////... | 43.913043 | 137 | 0.228119 | aestesis |
bcc2c4fda51af30bd0bb83bfeb934763e56dc042 | 1,257 | cpp | C++ | app/appinit.cpp | leolin0518/CDoc | 52f0edaecd69f2aeec9856c473a867bab306f4b8 | [
"Apache-2.0"
] | null | null | null | app/appinit.cpp | leolin0518/CDoc | 52f0edaecd69f2aeec9856c473a867bab306f4b8 | [
"Apache-2.0"
] | null | null | null | app/appinit.cpp | leolin0518/CDoc | 52f0edaecd69f2aeec9856c473a867bab306f4b8 | [
"Apache-2.0"
] | 1 | 2018-09-14T05:52:52.000Z | 2018-09-14T05:52:52.000Z | #include "appinit.h"
#include "myhelper.h"
/*
* APP初始化化类
*/
AppInit::AppInit(QObject *parent) : QObject(parent)
{
mousePressed = false;
qApp->installEventFilter(this);
}
bool AppInit::eventFilter(QObject *obj, QEvent *evt)
{
QWidget *w = (QWidget *)obj;
if (!w->property("CanMove").toBool()) {
... | 25.14 | 67 | 0.588703 | leolin0518 |
344ab2380abc016823604592f3c505d4618c5d66 | 4,939 | cpp | C++ | src/polybench/POLYBENCH_FDTD_2D-Hip.cpp | crtrott/KokkosPerf | 7f33ca298efd298474541f3e954a888d636abea4 | [
"BSD-3-Clause"
] | 1 | 2022-03-11T22:00:42.000Z | 2022-03-11T22:00:42.000Z | src/polybench/POLYBENCH_FDTD_2D-Hip.cpp | jonesholger/RAJAPerf | 7b8c01cdeb32eedb832dd1cc9696d0da0831a3b5 | [
"BSD-3-Clause"
] | null | null | null | src/polybench/POLYBENCH_FDTD_2D-Hip.cpp | jonesholger/RAJAPerf | 7b8c01cdeb32eedb832dd1cc9696d0da0831a3b5 | [
"BSD-3-Clause"
] | null | null | null | //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~//
// Copyright (c) 2017-20, Lawrence Livermore National Security, LLC
// and RAJA Performance Suite project contributors.
// See the RAJAPerf/COPYRIGHT file for details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
//~~~~~~~~~~~~~~~~~~~~~~~~... | 25.590674 | 103 | 0.59263 | crtrott |
344afde7f43af9fc259dd11323abfcfccdfa33ca | 4,618 | hpp | C++ | 2dparty/spencer_tracking_rviz_plugin/include/spencer_tracking_rviz_plugin/human_attributes_display.hpp | saurabhp369/pedsim_ros2 | 001491d4cd1b8df14be43673703fa232404feb84 | [
"BSD-2-Clause"
] | 5 | 2018-12-22T08:35:08.000Z | 2021-05-14T04:59:23.000Z | 2dparty/spencer_tracking_rviz_plugin/include/spencer_tracking_rviz_plugin/human_attributes_display.hpp | saurabhp369/pedsim_ros2 | 001491d4cd1b8df14be43673703fa232404feb84 | [
"BSD-2-Clause"
] | 2 | 2020-07-24T10:13:37.000Z | 2020-08-24T07:16:30.000Z | 2dparty/spencer_tracking_rviz_plugin/include/spencer_tracking_rviz_plugin/human_attributes_display.hpp | saurabhp369/pedsim_ros2 | 001491d4cd1b8df14be43673703fa232404feb84 | [
"BSD-2-Clause"
] | 11 | 2018-06-08T09:15:16.000Z | 2021-02-02T01:37:46.000Z | /*
* Software License Agreement (BSD License)
*
* Copyright (c) 2013-2015, Timm Linder, Social Robotics Lab, University of Freiburg
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redis... | 40.867257 | 107 | 0.728237 | saurabhp369 |
344b3f6dee27e26304798b682509667dd087f416 | 3,862 | cpp | C++ | ExtLib/Aurora/Systems/RocketLibSystem/RocketLibSystemGLFW.cpp | Mechap/ODFAEG | ad4bf026ee7055aaf168c5a8e3dc57baaaf42e40 | [
"Zlib"
] | null | null | null | ExtLib/Aurora/Systems/RocketLibSystem/RocketLibSystemGLFW.cpp | Mechap/ODFAEG | ad4bf026ee7055aaf168c5a8e3dc57baaaf42e40 | [
"Zlib"
] | 1 | 2020-02-14T14:19:44.000Z | 2020-12-04T17:39:17.000Z | ExtLib/Aurora/Systems/RocketLibSystem/RocketLibSystemGLFW.cpp | Mechap/ODFAEG | ad4bf026ee7055aaf168c5a8e3dc57baaaf42e40 | [
"Zlib"
] | 2 | 2021-05-23T13:45:28.000Z | 2021-07-24T13:36:13.000Z | /*
* This source file is part of libRocket, the HTML/CSS Interface Middleware
*
* For the latest information, see http://www.librocket.com
*
* Copyright (c) 2008-2010 CodePoint Ltd, Shift Technology Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and assoc... | 22.988095 | 90 | 0.738995 | Mechap |
344ca228bac72d68fe36c094379f60add6b1c3a6 | 6,630 | cpp | C++ | infer_server/tests/unit/test_request_ctrl.cpp | zhn6818/Cambricon_easydk | e696bda55c32d5b569afbd0b3869198b9ec9160e | [
"Apache-2.0"
] | 2 | 2021-09-14T09:00:35.000Z | 2021-09-16T01:34:35.000Z | infer_server/tests/unit/test_request_ctrl.cpp | zhn6818/Cambricon_easydk | e696bda55c32d5b569afbd0b3869198b9ec9160e | [
"Apache-2.0"
] | null | null | null | infer_server/tests/unit/test_request_ctrl.cpp | zhn6818/Cambricon_easydk | e696bda55c32d5b569afbd0b3869198b9ec9160e | [
"Apache-2.0"
] | null | null | null | /*************************************************************************
* Copyright (C) [2020] by Cambricon, 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 a... | 33.654822 | 112 | 0.669231 | zhn6818 |
344cd6e863bcb1b431359f66c95c221534019997 | 4,022 | cpp | C++ | colorsamplerview.cpp | yvt/terravox | 25412f892f295d2c259d9c5df3387d635616d555 | [
"MIT"
] | 24 | 2015-02-26T06:38:41.000Z | 2021-06-06T15:51:43.000Z | colorsamplerview.cpp | BuildandShoot/terravox | c7f5d21b053aa7c7ed3b2442d3eae65171495b5a | [
"MIT"
] | 17 | 2015-02-26T07:53:57.000Z | 2017-07-28T06:31:42.000Z | colorsamplerview.cpp | yvt/terravox | 25412f892f295d2c259d9c5df3387d635616d555 | [
"MIT"
] | 6 | 2015-02-26T06:38:45.000Z | 2020-03-29T19:12:10.000Z | #include "colorsamplerview.h"
#include <QPainter>
#include "terrainview.h"
#include <QTimer>
#include <QApplication>
#include <QPixmap>
#include "terrain.h"
ColorSamplerView::ColorSamplerView(TerrainView *view, QObject *parent) :
QObject(parent),
view(view),
active(false),
hover(false),
otherActive... | 25.1375 | 90 | 0.597961 | yvt |
3453c1208dc9898b20a1794c78139bf799e0a4c6 | 5,091 | cpp | C++ | 2.0/pio-2.2/src/hub/main.cpp | msmcs-robotics/robot1 | cc467daf23eefabd4dd8ffaf053f4c72c91a1e15 | [
"0BSD"
] | null | null | null | 2.0/pio-2.2/src/hub/main.cpp | msmcs-robotics/robot1 | cc467daf23eefabd4dd8ffaf053f4c72c91a1e15 | [
"0BSD"
] | null | null | null | 2.0/pio-2.2/src/hub/main.cpp | msmcs-robotics/robot1 | cc467daf23eefabd4dd8ffaf053f4c72c91a1e15 | [
"0BSD"
] | null | null | null | #include <Arduino.h>
#include <Wire.h>
#include <pb_decode.h>
#include <Ultrasonic.h> // lib link - https://github.com/JRodrigoTech/Ultrasonic-HC-SR04
#include <SD.h>
#include "ref.pb.h"
// I2C packets
const auto BAUD_RATE = 115200;
const auto I2C_ADDRESS = 8;
void handle_packet(int packet_len);
// setup SD card pi... | 24.242857 | 149 | 0.602829 | msmcs-robotics |
34553b781399bb04075e09e25f573f4f5a61dd09 | 7,401 | cpp | C++ | Dark Basic Public Shared/Dark Basic Pro SDK/Shared/Core/SteamCheckForWorkshop.cpp | domydev/Dark-Basic-Pro | 237fd8d859782cb27b9d5994f3c34bc5372b6c04 | [
"MIT"
] | 231 | 2018-01-28T00:06:56.000Z | 2022-03-31T21:39:56.000Z | Dark Basic Public Shared/Dark Basic Pro SDK/Shared/Core/SteamCheckForWorkshop.cpp | domydev/Dark-Basic-Pro | 237fd8d859782cb27b9d5994f3c34bc5372b6c04 | [
"MIT"
] | 9 | 2016-02-10T10:46:16.000Z | 2017-12-06T17:27:51.000Z | Dark Basic Public Shared/Dark Basic Pro SDK/Shared/Core/SteamCheckForWorkshop.cpp | domydev/Dark-Basic-Pro | 237fd8d859782cb27b9d5994f3c34bc5372b6c04 | [
"MIT"
] | 66 | 2018-01-28T21:54:52.000Z | 2022-02-16T22:50:57.000Z | #define _CRT_SECURE_NO_WARNINGS
#include "SteamCheckForWorkshop.h"
#include <stdio.h>
// Steam Multiplayer DLL functions needed
HMODULE SteamMultiplayerModule = NULL;
typedef void (*t_SteamGetWorkshopItemPathDLL)(LPSTR);
typedef int (*t_SteamIsWorkshopLoadingOnDLL)();
t_SteamGetWorkshopItemPathDLL Steam_SteamGetWo... | 30.709544 | 151 | 0.686529 | domydev |
345988252dc830cd1fb53e38e8bfb2a985e84351 | 3,886 | cpp | C++ | HDUOJ/2242/tarjan_edcc.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | 2 | 2018-02-14T01:59:31.000Z | 2018-03-28T03:30:45.000Z | HDUOJ/2242/tarjan_edcc.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | null | null | null | HDUOJ/2242/tarjan_edcc.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | 2 | 2017-12-30T02:46:35.000Z | 2018-03-28T03:30:49.000Z | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <cmath>
#include <string>
#include <cstring>
#include <iomanip>
#include <climits>
#include <vector>
#include <queue>
#include <map>
#include <set>
#include <stack>
#define EDGE_SIZE 40100
#define VERTEX_SIZE 10010
using namespace std;
typedef struct ... | 21.234973 | 63 | 0.492795 | codgician |
345dafc0f0eeca907ad8fc1d640c2450986a17c8 | 1,337 | cpp | C++ | 07/src/main.cpp | mert-kurttutan/nand2tetris_course2 | b7ef8b4448c2b2576c338ac68a1ed5f23ab9fe6a | [
"MIT"
] | null | null | null | 07/src/main.cpp | mert-kurttutan/nand2tetris_course2 | b7ef8b4448c2b2576c338ac68a1ed5f23ab9fe6a | [
"MIT"
] | null | null | null | 07/src/main.cpp | mert-kurttutan/nand2tetris_course2 | b7ef8b4448c2b2576c338ac68a1ed5f23ab9fe6a | [
"MIT"
] | null | null | null | #include <iostream>
#include <parser.hpp>
#include <codewriter.hpp>
#include <utils.hpp>
#include <iomanip>
void VMTranslator(string file_name, string output_name);
void print(std::vector <string> const &a) {
std::cout << "The vector elements are : ";
for(int i=0; i < int(a.size()); i++)
std::cout << a.at... | 23.45614 | 95 | 0.62902 | mert-kurttutan |
345feea02687b7057157c591fd850cfb7674ba7b | 3,115 | cpp | C++ | src/driver.cpp | pcdangio/ros-interface_quad_encoder | af2cc49acbde8f5684a65b16a18f50d54d0cdc87 | [
"MIT"
] | null | null | null | src/driver.cpp | pcdangio/ros-interface_quad_encoder | af2cc49acbde8f5684a65b16a18f50d54d0cdc87 | [
"MIT"
] | 1 | 2019-05-26T18:25:43.000Z | 2019-05-26T18:25:43.000Z | src/driver.cpp | pcdangio/ros-interface_quad_encoder | af2cc49acbde8f5684a65b16a18f50d54d0cdc87 | [
"MIT"
] | null | null | null | #include "driver.h"
#include <math.h>
// CONSTRUCTORS
driver::driver()
{
// Set default values
driver::m_current_position = 0;
driver::m_prior_state = 0;
driver::m_pulses_missed = 0;
// Set the parameters.
driver::m_cpr = 400;
// Set up the qmatrix, which is to be indexed by (prior_state... | 27.8125 | 99 | 0.666453 | pcdangio |
34648bec9320e1871bcc01e8941a248c15a878d8 | 835 | cpp | C++ | pointers/this_pointer.cpp | gunnarpope/cpp_tutorials | e8e152668b0d12c5ce7b5152580d6ddcc731ecb7 | [
"MIT"
] | null | null | null | pointers/this_pointer.cpp | gunnarpope/cpp_tutorials | e8e152668b0d12c5ce7b5152580d6ddcc731ecb7 | [
"MIT"
] | null | null | null | pointers/this_pointer.cpp | gunnarpope/cpp_tutorials | e8e152668b0d12c5ce7b5152580d6ddcc731ecb7 | [
"MIT"
] | null | null | null | // how to use the this pointer
// p344 C++CompleteGuide.pdf
/*
""The this pointer points to the object that invoked pwr( ). Thus, this –>b refers to that
object's copy of b. For example, if pwr( ) had been invoked by x (as in x(4.0, 2)), then
this in the preceding statement would have been pointing to x. Writing the s... | 19.880952 | 90 | 0.623952 | gunnarpope |
346a0db646e964fb8401631336321228c508d189 | 806 | hxx | C++ | tests/cvmuls.hxx | zardchim/opencvx | f3727c9be5532f9a41c29f558e72aa19b6db97a4 | [
"Unlicense"
] | 10 | 2015-01-29T23:21:06.000Z | 2019-07-05T06:27:16.000Z | tests/cvmuls.hxx | zardchim/opencvx | f3727c9be5532f9a41c29f558e72aa19b6db97a4 | [
"Unlicense"
] | null | null | null | tests/cvmuls.hxx | zardchim/opencvx | f3727c9be5532f9a41c29f558e72aa19b6db97a4 | [
"Unlicense"
] | 13 | 2015-04-13T20:50:36.000Z | 2022-03-20T16:06:05.000Z | #ifdef _MSC_VER
#pragma warning(disable:4996)
#pragma comment(lib, "cv.lib")
#pragma comment(lib, "cxcore.lib")
#pragma comment(lib, "cvaux.lib")
#pragma comment(lib, "highgui.lib")
#endif
#include <stdio.h>
#include <stdlib.h>
#include "cv.h"
#include "cvaux.h"
#include "cxcore.h"
#include "highgui.h"
#include "cvmul... | 23.028571 | 63 | 0.590571 | zardchim |
346ea73300540c234280ad163d17c9655a54a3b0 | 657 | cpp | C++ | DSA-450/04SearchSort/07repMiss.cpp | vikkastiwari/cpp-coding-questions | 020790e1a3b26c7b24991427004730b3f0785c71 | [
"MIT"
] | null | null | null | DSA-450/04SearchSort/07repMiss.cpp | vikkastiwari/cpp-coding-questions | 020790e1a3b26c7b24991427004730b3f0785c71 | [
"MIT"
] | null | null | null | DSA-450/04SearchSort/07repMiss.cpp | vikkastiwari/cpp-coding-questions | 020790e1a3b26c7b24991427004730b3f0785c71 | [
"MIT"
] | null | null | null | // question link: https://practice.geeksforgeeks.org/problems/find-missing-and-repeating2512/1#
#include <bits/stdc++.h>
using namespace std;
void findTwoElement(int *arr, int n)
{
unordered_map<int, int> twice;
for (int i = 0; i < n; i++)
{
twice[arr[i]]++;
}
sort(arr, arr + n);
int m... | 21.193548 | 95 | 0.502283 | vikkastiwari |
3471d96a365bb3a26e53c9ff6d13960d8babee3a | 1,301 | cpp | C++ | detection/src/zed_rot.cpp | ammolitor/open_ptrack_v2 | a4af0c24883e38a298fb65dd03f76d39ad835616 | [
"BSD-3-Clause"
] | null | null | null | detection/src/zed_rot.cpp | ammolitor/open_ptrack_v2 | a4af0c24883e38a298fb65dd03f76d39ad835616 | [
"BSD-3-Clause"
] | null | null | null | detection/src/zed_rot.cpp | ammolitor/open_ptrack_v2 | a4af0c24883e38a298fb65dd03f76d39ad835616 | [
"BSD-3-Clause"
] | null | null | null | // ROS includes:
#include <ros/ros.h>
#include <ros/package.h>
// PCL includes:
#include <pcl/conversions.h>
#include <pcl_ros/point_cloud.h>
#include <pcl/point_types.h>
#include <pcl/visualization/pcl_visualizer.h>
#include <pcl/sample_consensus/sac_model_plane.h>
#include <pcl_conversions/pcl_conversions.h>
#includ... | 26.02 | 92 | 0.760184 | ammolitor |
34735f7805ae19561cb3c0e7f6e785dad57e7c02 | 2,047 | cpp | C++ | C_-_Knight_Fork.cpp | jnvshubham7/CPP_Programming | a17c4a42209556495302ca305b7c3026df064041 | [
"Apache-2.0"
] | 1 | 2021-12-22T12:37:36.000Z | 2021-12-22T12:37:36.000Z | C_-_Knight_Fork.cpp | jnvshubham7/CPP_Programming | a17c4a42209556495302ca305b7c3026df064041 | [
"Apache-2.0"
] | null | null | null | C_-_Knight_Fork.cpp | jnvshubham7/CPP_Programming | a17c4a42209556495302ca305b7c3026df064041 | [
"Apache-2.0"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
#define ll long long
int main(){
// The distance between points (2,1) and (x1,y1) is (0−2)2+(0−1)2
// =5
// ;
// the distance between points
// (2,1) and (x2,y2) is (3−2)2+(3−1)2
// =5
// ;
// point
// (2,1) is a lattice point,
ll x1,y1,x2,y2;
cin>>x1>>y1>>x2>>y2... | 15.276119 | 75 | 0.536395 | jnvshubham7 |
34793e94eca2a38cab5c90782fa6d2d436292146 | 3,463 | cpp | C++ | src/modules/warehouse/VouchersFindDialog.cpp | Thorsten-Geppert/Warehouse | b064e5b422d0b484ca702cc4433cbda90f40e009 | [
"BSD-3-Clause"
] | null | null | null | src/modules/warehouse/VouchersFindDialog.cpp | Thorsten-Geppert/Warehouse | b064e5b422d0b484ca702cc4433cbda90f40e009 | [
"BSD-3-Clause"
] | null | null | null | src/modules/warehouse/VouchersFindDialog.cpp | Thorsten-Geppert/Warehouse | b064e5b422d0b484ca702cc4433cbda90f40e009 | [
"BSD-3-Clause"
] | null | null | null | #include "VouchersFindDialog.h"
#include "../lib/KeyValueDatabaseLibrary.h"
#include "Configuration.h"
#include "resources/images/WarehouseIcon.xpm"
BEGIN_EVENT_TABLE(VouchersFindDialog, wxDialog)
EVT_MENU(FIND_EVENT, VouchersFindDialog::FindKeyEvent)
EVT_MENU(CANCEL_EVENT, VouchersFindDialog::CancelKeyEvent)
END_EV... | 34.63 | 84 | 0.77274 | Thorsten-Geppert |
347aad507de9bd6a965e36ddf32231fb0aa739bd | 7,199 | hpp | C++ | vector_methods.hpp | MrTAB/GameDevUtilities | aba3543efbfcfee4efeec36fe73382c1bf85e420 | [
"MIT"
] | null | null | null | vector_methods.hpp | MrTAB/GameDevUtilities | aba3543efbfcfee4efeec36fe73382c1bf85e420 | [
"MIT"
] | null | null | null | vector_methods.hpp | MrTAB/GameDevUtilities | aba3543efbfcfee4efeec36fe73382c1bf85e420 | [
"MIT"
] | null | null | null | /*
*
* vector_methods.hpp
*
* Utility methods for working on vectors of two floats
*
* These utility methods were created in this format for work with the Box2D
* physics engine, and thus Box2D is a dependency on this unit
*
------------------------------------------------------------------------------... | 30.504237 | 87 | 0.690374 | MrTAB |
347cd862a4aec18fe769d2334020bd7bd09862b3 | 572 | cpp | C++ | solved/o-q/professor-lazy-phd/professor.cpp | abuasifkhan/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | 13 | 2015-09-30T19:18:04.000Z | 2021-06-26T21:11:30.000Z | solved/o-q/professor-lazy-phd/professor.cpp | sbmaruf/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | null | null | null | solved/o-q/professor-lazy-phd/professor.cpp | sbmaruf/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | 13 | 2015-01-04T09:49:54.000Z | 2021-06-03T13:18:44.000Z | #include <cstdio>
typedef long long i64;
int a, b;
i64 n;
int main()
{
while (true) {
scanf("%d%d%lld", &a, &b, &n);
if (a == 0) break;
int ans = 0;
switch (n % 5) {
case 0:
ans = a;
break;
case 1:
ans = b;
break;
... | 15.459459 | 38 | 0.33042 | abuasifkhan |
34844efbf2f5c482087ba346375852e7fb460a61 | 120 | cpp | C++ | MoreRadioWheels/NativeWheel.cpp | LfxB/MoreNativeWheels-GTAV | 9e8a4f67729054ba7b5e5fe61584a90c94f873ef | [
"MIT"
] | 2 | 2020-08-31T00:23:45.000Z | 2022-01-16T10:32:10.000Z | MoreRadioWheels/NativeWheel.cpp | LfxB/MoreNativeWheels-GTAV | 9e8a4f67729054ba7b5e5fe61584a90c94f873ef | [
"MIT"
] | null | null | null | MoreRadioWheels/NativeWheel.cpp | LfxB/MoreNativeWheels-GTAV | 9e8a4f67729054ba7b5e5fe61584a90c94f873ef | [
"MIT"
] | null | null | null | #include "NativeWheel.hpp"
NativeWheel::NativeWheel(string name)
{
Name = name;
}
NativeWheel::~NativeWheel()
{
}
| 8.571429 | 37 | 0.691667 | LfxB |
34855cb2edcdb0e6854c5a396acabbcbd8667d40 | 907 | hpp | C++ | include/Exception.hpp | niniemann/sempr | 2f3b04c031d70b9675ad441f97728a8fb839abed | [
"BSD-3-Clause"
] | 8 | 2018-03-28T19:45:47.000Z | 2022-03-23T16:53:24.000Z | include/Exception.hpp | niniemann/sempr | 2f3b04c031d70b9675ad441f97728a8fb839abed | [
"BSD-3-Clause"
] | 58 | 2018-01-31T11:10:04.000Z | 2021-08-13T11:48:31.000Z | include/Exception.hpp | niniemann/sempr | 2f3b04c031d70b9675ad441f97728a8fb839abed | [
"BSD-3-Clause"
] | 1 | 2018-07-04T12:30:06.000Z | 2018-07-04T12:30:06.000Z | #ifndef SEMPR_CORE_EXCEPTION_HPP_
#define SEMPR_CORE_EXCEPTION_HPP_
#include <exception>
#include <string>
/// namespace only sempr. TODO: refactor the rest of the code? simplify it, use namespaces to group themes together, not code-similarities?
namespace sempr {
/**
A basic sempr-exception. Why our own? Becaus... | 32.392857 | 139 | 0.732084 | niniemann |
348665551d12834aaadea5e31eeba8501719cea8 | 3,178 | cpp | C++ | owEngine/SceneManager.cpp | adan830/OpenWow | 9b6e9c248bd185b1677fe616d2a3a81a35ca8894 | [
"Apache-2.0"
] | null | null | null | owEngine/SceneManager.cpp | adan830/OpenWow | 9b6e9c248bd185b1677fe616d2a3a81a35ca8894 | [
"Apache-2.0"
] | null | null | null | owEngine/SceneManager.cpp | adan830/OpenWow | 9b6e9c248bd185b1677fe616d2a3a81a35ca8894 | [
"Apache-2.0"
] | 1 | 2020-05-11T13:32:49.000Z | 2020-05-11T13:32:49.000Z | #include "stdafx.h"
// General
#include "SceneManager.h"
CSceneManager::CSceneManager(SceneNode* _rootNode) :
m_RootNode(_rootNode),
m_IntersectedNode(nullptr),
m_MainCamera(nullptr),
m_FrustrumCamera(nullptr),
m_RenderQueueDebug(false),
m_Engine(GetManager<IEngine>()),
m_Video(GetSettingsGroup<CGroupVideo>())... | 21.186667 | 146 | 0.695721 | adan830 |
3486d65f9c86aaa01c1bb8245a5e35311989f601 | 438 | cpp | C++ | src/ui/puiframe.cpp | pandepic/PandaSDL | 5e57859ea4b3870926428439b1e4c4b90e6d4cd9 | [
"MIT"
] | 3 | 2020-09-02T00:13:23.000Z | 2021-08-14T23:13:11.000Z | src/ui/puiframe.cpp | pandepic/PandaSDL | 5e57859ea4b3870926428439b1e4c4b90e6d4cd9 | [
"MIT"
] | null | null | null | src/ui/puiframe.cpp | pandepic/PandaSDL | 5e57859ea4b3870926428439b1e4c4b90e6d4cd9 | [
"MIT"
] | 1 | 2021-06-17T05:46:19.000Z | 2021-06-17T05:46:19.000Z | #include "puiframe.h"
PandaSDL::PUIFrame::PUIFrame(PUIMenu *parent, pugi::xml_node &node, const PUIWidgetBuilder &widgetBuilder)
{
Parent = parent;
auto widgetsRoot = node.child("Widgets");
_widgetContainer.Load(widgetsRoot, widgetBuilder);
}
PandaSDL::PUIFrame::~PUIFrame()
{
}
std::shared_ptr<... | 21.9 | 106 | 0.723744 | pandepic |
348fc6232951f4e215e25e897501375d16f2b6ed | 948 | hpp | C++ | headers/sourceapp.hpp | CNLouisLiu/cso2-launcher | 11e054318d08a19ae923130541271cd898ac047b | [
"MIT"
] | 1 | 2019-12-01T20:21:36.000Z | 2019-12-01T20:21:36.000Z | headers/sourceapp.hpp | CNLouisLiu/cso2-launcher | 11e054318d08a19ae923130541271cd898ac047b | [
"MIT"
] | null | null | null | headers/sourceapp.hpp | CNLouisLiu/cso2-launcher | 11e054318d08a19ae923130541271cd898ac047b | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include "appframework/AppFramework.h"
#include "tier0/ICommandLine.h"
class CAppSystemGroup;
class IFileSystem;
//-----------------------------------------------------------------------------
// Inner loop: initialize, shutdown main systems, load steam to
//--------------------------... | 26.333333 | 79 | 0.593882 | CNLouisLiu |
349c6068739ac9c08f301dceb935fd15470feaab | 6,975 | cpp | C++ | src/apps/backend/face/face_recognizer_service.cpp | raymanfx/seraphim | 4d388d21831d349fe1085bc3cb7c73f5d2b103a7 | [
"MIT"
] | null | null | null | src/apps/backend/face/face_recognizer_service.cpp | raymanfx/seraphim | 4d388d21831d349fe1085bc3cb7c73f5d2b103a7 | [
"MIT"
] | null | null | null | src/apps/backend/face/face_recognizer_service.cpp | raymanfx/seraphim | 4d388d21831d349fe1085bc3cb7c73f5d2b103a7 | [
"MIT"
] | null | null | null | /*
* (C) Copyright 2019
* The Seraphim Project Developers.
*
* SPDX-License-Identifier: MIT
*/
#include <seraphim/face/utils.h>
#include <seraphim/iop/opencv/mat.h>
#include <utils.h>
#include "face_recognizer_service.h"
using namespace sph;
using namespace sph::face;
FaceRecognizerService::FaceRecognizerServi... | 33.056872 | 100 | 0.581935 | raymanfx |
349ccc0d150e5cf3e08115f2234e34d0fef203dc | 19,490 | hpp | C++ | include/vulkan/internal/struct/VkPerformance.hpp | skyline-emu/vkhpp | a4b8f74942a932ea191dc95cc4a210fea524508f | [
"Apache-2.0"
] | 2 | 2020-04-22T21:14:24.000Z | 2021-11-03T18:21:12.000Z | include/vulkan/internal/struct/VkPerformance.hpp | skyline-emu/vkhpp | a4b8f74942a932ea191dc95cc4a210fea524508f | [
"Apache-2.0"
] | null | null | null | include/vulkan/internal/struct/VkPerformance.hpp | skyline-emu/vkhpp | a4b8f74942a932ea191dc95cc4a210fea524508f | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2015-2019 The Khronos Group Inc.
//
// 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... | 34.495575 | 248 | 0.723756 | skyline-emu |
349ec6e62d5838b7a22655ea2df7ddf19c2d2928 | 511 | cpp | C++ | hw1_2/identify.cpp | kinstaky/CourseDataAnalysis | 9f44f5816ca55b2419df2aa4251fa4107bd9f3fc | [
"MIT"
] | null | null | null | hw1_2/identify.cpp | kinstaky/CourseDataAnalysis | 9f44f5816ca55b2419df2aa4251fa4107bd9f3fc | [
"MIT"
] | null | null | null | hw1_2/identify.cpp | kinstaky/CourseDataAnalysis | 9f44f5816ca55b2419df2aa4251fa4107bd9f3fc | [
"MIT"
] | null | null | null | void identify() {
TFile *ipf = new TFile("AddVeto.root");
TTree *tree = (TTree*)ipf->Get("tree");
tree->AddFriend("tree", "TOFNorm.root");
tree->AddFriend("tree", "QProcessor.root");
//tree->Draw("q0:ntof >> (480, 4, 20, 450, 0, 4500) ", "qLimit && tLimit && ntof > 5", "colz");
tree->Draw("q0:ce >> (480... | 36.5 | 103 | 0.544031 | kinstaky |
34a20746c7007bd70d4e99263acc0fd496b26e3f | 3,567 | cpp | C++ | src/cd++/parser/pini.cpp | SimulationEverywhere/CDPP_SantiSimulator | 7dde59e48a7d8cca6d505b6d5323a57825c97a5b | [
"MIT"
] | 4 | 2018-10-26T20:13:27.000Z | 2020-11-21T21:42:43.000Z | src/cd++/parser/pini.cpp | SimulationEverywhere/CDPP_SantiSimulator | 7dde59e48a7d8cca6d505b6d5323a57825c97a5b | [
"MIT"
] | 13 | 2018-10-29T03:16:16.000Z | 2020-09-16T05:57:24.000Z | src/cd++/parser/pini.cpp | SimulationEverywhere/CDPP_SantiSimulator | 7dde59e48a7d8cca6d505b6d5323a57825c97a5b | [
"MIT"
] | 4 | 2019-04-28T00:20:48.000Z | 2019-11-27T22:02:45.000Z | /*******************************************************************
*
* DESCRIPTION: class PIni
*
* AUTHOR: Alejandro Troccoli
*
* EMAIL: mailto://atroccol@dc.uba.ar
*
* DATE: 17/8/2000
*
*******************************************************************/
/** include files **/
#include <fstream>
#include "pi... | 25.478571 | 80 | 0.428091 | SimulationEverywhere |
34a433909f1c704640045e20dda7348e37a767d8 | 2,120 | cpp | C++ | src/String.cpp | ASxa86/asx-object | e18d96cdbdfa3fedec0fcb7fec004e1ee0625352 | [
"MIT"
] | null | null | null | src/String.cpp | ASxa86/asx-object | e18d96cdbdfa3fedec0fcb7fec004e1ee0625352 | [
"MIT"
] | null | null | null | src/String.cpp | ASxa86/asx-object | e18d96cdbdfa3fedec0fcb7fec004e1ee0625352 | [
"MIT"
] | null | null | null | #include <asx-object/String.h>
namespace
{
// https://stackoverflow.com/questions/68472720/stdto-chars-minimal-floating-point-buffer-size
template <typename T>
constexpr int Log10ceil(T num)
{
return num < 10 ? 1 : 1 + Log10ceil(num / 10);
}
template <typename T>
constexpr int BufferSizeScientific()
{
ret... | 24.651163 | 115 | 0.696698 | ASxa86 |
34ae79771c4af6de6e8882755c1031b77728d002 | 1,347 | hpp | C++ | include/make_heap.hpp | vreverdy/bit-algorithms | bc12928d46846eb32b3d9e0a006549a947c4803f | [
"BSD-3-Clause"
] | 16 | 2019-06-17T23:56:15.000Z | 2021-07-04T23:35:31.000Z | include/make_heap.hpp | bkille/bit-algorithms | bc12928d46846eb32b3d9e0a006549a947c4803f | [
"BSD-3-Clause"
] | 3 | 2019-04-28T04:53:31.000Z | 2019-06-01T15:15:11.000Z | include/make_heap.hpp | bkille/bit-algorithms | bc12928d46846eb32b3d9e0a006549a947c4803f | [
"BSD-3-Clause"
] | 6 | 2019-03-13T19:21:36.000Z | 2020-01-01T12:31:34.000Z | // =============================== MAKE HEAP =============================== //
// Project: The Experimental Bit Algorithms Library
// Name: make_heap.hpp
// Description: bit_iterator overloads for std::make_heap
// Creator: Vincent Reverdy
// Contributor(s):
// License: BSD 3-Clause License
// =======================... | 32.071429 | 85 | 0.446177 | vreverdy |
34b372f8a4898f11d993543eca940fed8acadddb | 2,115 | cpp | C++ | GLFramework/Components/CameraComponent.cpp | Illation/GLFramework | 2b9d3d67d4e951e2ff5ace0241750a438d6e743f | [
"MIT"
] | 39 | 2016-03-23T00:39:46.000Z | 2022-02-07T21:26:05.000Z | GLFramework/Components/CameraComponent.cpp | Illation/GLFramework | 2b9d3d67d4e951e2ff5ace0241750a438d6e743f | [
"MIT"
] | 1 | 2016-03-24T14:39:45.000Z | 2016-03-24T17:34:39.000Z | GLFramework/Components/CameraComponent.cpp | Illation/GLFramework | 2b9d3d67d4e951e2ff5ace0241750a438d6e743f | [
"MIT"
] | 3 | 2016-08-15T01:27:13.000Z | 2021-12-29T01:37:51.000Z | #include "stdafx.hpp"
#include "CameraComponent.hpp"
#include "../Base/Settings.hpp"
#include "../Base/Context.hpp"
#include "TransformComponent.hpp"
#include "../Graphics/Frustum.h"
#include <glm/gtc/matrix_transform.hpp>
#define CONTEXT Context::GetInstance()
CameraComponent::CameraComponent():
m_FOV(45),
m_Nea... | 24.882353 | 116 | 0.725768 | Illation |
34b3dac7cec0c7bc467310ce629e557054f9a804 | 2,900 | cpp | C++ | Source/MLJuceApp/MLAppWindow.cpp | afofo/madronalib | 14816a124c8d3a225540ffb408e602aa024fdb4b | [
"MIT"
] | null | null | null | Source/MLJuceApp/MLAppWindow.cpp | afofo/madronalib | 14816a124c8d3a225540ffb408e602aa024fdb4b | [
"MIT"
] | null | null | null | Source/MLJuceApp/MLAppWindow.cpp | afofo/madronalib | 14816a124c8d3a225540ffb408e602aa024fdb4b | [
"MIT"
] | null | null | null |
// MadronaLib: a C++ framework for DSP applications.
// Copyright (c) 2013 Madrona Labs LLC. http://www.madronalabs.com
// Distributed under the MIT license: http://madrona-labs.mit-license.org/
#include "MLAppWindow.h"
// --------------------------------------------------------------------------------
#pragma mark... | 24.166667 | 85 | 0.67069 | afofo |
34b4c37afbd952aacd86039a6a80b6d253d66581 | 1,452 | cpp | C++ | src/comments/commentssortfiltermodel.cpp | black-sheep-dev/harbour-hafenschau | 8384e769a0d6d5b85787e92565c475be9d2f37fa | [
"MIT"
] | 8 | 2021-01-09T21:37:36.000Z | 2022-01-05T09:27:13.000Z | src/comments/commentssortfiltermodel.cpp | black-sheep-dev/harbour-hafenschau | 8384e769a0d6d5b85787e92565c475be9d2f37fa | [
"MIT"
] | null | null | null | src/comments/commentssortfiltermodel.cpp | black-sheep-dev/harbour-hafenschau | 8384e769a0d6d5b85787e92565c475be9d2f37fa | [
"MIT"
] | 1 | 2021-03-13T11:21:03.000Z | 2021-03-13T11:21:03.000Z | #include "commentssortfiltermodel.h"
#include "commentsmodel.h"
CommentsSortFilterModel::CommentsSortFilterModel(QObject *parent) :
QSortFilterProxyModel(parent)
{
setSortRole(CommentsModel::TimestampRole);
connect(this, &CommentsSortFilterModel::sortOrderChanged, this, &CommentsSortFilterModel::sortMode... | 26.888889 | 121 | 0.731405 | black-sheep-dev |
34b52bd1ecb6656963d7055a0bceda41e19bd20c | 12,703 | cpp | C++ | code/parser/xml_cprocessor.cpp | jmpcosta/arta | c9fdfc039e34d9d887c9e4c96bf9d506f1a66bb3 | [
"MIT"
] | 1 | 2019-03-28T20:40:36.000Z | 2019-03-28T20:40:36.000Z | code/parser/xml_cprocessor.cpp | jmpcosta/arta | c9fdfc039e34d9d887c9e4c96bf9d506f1a66bb3 | [
"MIT"
] | null | null | null | code/parser/xml_cprocessor.cpp | jmpcosta/arta | c9fdfc039e34d9d887c9e4c96bf9d506f1a66bb3 | [
"MIT"
] | null | null | null | // *****************************************************************************************
//
// File description:
//
// Author: Joao Costa
// Purpose: Implementation of a generic XML configuration processor
//
// *****************************************************************************************
// **********... | 25.714575 | 113 | 0.609541 | jmpcosta |
34b80b13252c1e04619a75ea7c3d211782ace9be | 1,969 | hpp | C++ | E_Util/Include/Vector.hpp | EavanKim/E_Flow_Dev | a8b076df8f748d4cc2f0d6da2ee01e7601f860b8 | [
"MIT"
] | null | null | null | E_Util/Include/Vector.hpp | EavanKim/E_Flow_Dev | a8b076df8f748d4cc2f0d6da2ee01e7601f860b8 | [
"MIT"
] | null | null | null | E_Util/Include/Vector.hpp | EavanKim/E_Flow_Dev | a8b076df8f748d4cc2f0d6da2ee01e7601f860b8 | [
"MIT"
] | null | null | null | #ifndef VECTOR_HPP__
#define VECTOR_HPP__
namespace util
{
class UTIL_EXPORTS Vector
{
public:
Vector();
Vector(__m128 _Vector);
Vector(float _x, float _y, float _z, float _a);
Vector(const Vector& other);
float x() const;
float y() const;
float z() const;
float a() const;
void set(const std::in... | 26.608108 | 62 | 0.727273 | EavanKim |
34b952038bd4e593498fc451b8f0eb2b120171d3 | 1,543 | cpp | C++ | Source/Scripting/bsfScript/Generated/BsScriptSkeletonBoneInfoEx.generated.cpp | bsf2dev/bsf | b318cd4eb1b0299773d625e6c870b8d503cf539e | [
"MIT"
] | 1,745 | 2018-03-16T02:10:28.000Z | 2022-03-26T17:34:21.000Z | Source/Scripting/bsfScript/Generated/BsScriptSkeletonBoneInfoEx.generated.cpp | bsf2dev/bsf | b318cd4eb1b0299773d625e6c870b8d503cf539e | [
"MIT"
] | 395 | 2018-03-16T10:18:20.000Z | 2021-08-04T16:52:08.000Z | Source/Scripting/bsfScript/Generated/BsScriptSkeletonBoneInfoEx.generated.cpp | bsf2dev/bsf | b318cd4eb1b0299773d625e6c870b8d503cf539e | [
"MIT"
] | 267 | 2018-03-17T19:32:54.000Z | 2022-02-17T16:55:50.000Z | //********************************* bs::framework - Copyright 2018-2019 Marko Pintera ************************************//
//*********** Licensed under the MIT license. See LICENSE.md for full terms. This notice is not to be removed. ***********//
#include "BsScriptSkeletonBoneInfoEx.generated.h"
#include "BsMonoMeth... | 29.673077 | 124 | 0.73558 | bsf2dev |
34bad13772c44783bb48ca469eb1b7be8bbc95a8 | 6,741 | cpp | C++ | src/libtextmode/utf8.cpp | joelpob/ansilove-term | 2842c41bc2429a98d51e02e2d6eb55254afa79bb | [
"BSD-3-Clause"
] | null | null | null | src/libtextmode/utf8.cpp | joelpob/ansilove-term | 2842c41bc2429a98d51e02e2d6eb55254afa79bb | [
"BSD-3-Clause"
] | null | null | null | src/libtextmode/utf8.cpp | joelpob/ansilove-term | 2842c41bc2429a98d51e02e2d6eb55254afa79bb | [
"BSD-3-Clause"
] | null | null | null | #include "utf8.h"
#include <string>
uint16_t cp_437_to_unicode(const uint8_t& cp_437)
{
switch(cp_437) {
case 1:
return 0x263A;
case 2:
return 0x263B;
case 3:
return 0x2665;
case 4:
return 0x2666;
case 5:
return 0x2663;
case 6:
return 0x2660;
... | 18.829609 | 63 | 0.519804 | joelpob |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.