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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
c41d7aab2e06c08b50d323d766b88a3ea35d1d02 | 2,206 | cpp | C++ | src/main.cpp | qualibit/rtspmjpegclient | 9bf7f4cfa0223fc573d41727f6d9f29e3254f297 | [
"Apache-2.0"
] | 4 | 2017-01-17T21:32:01.000Z | 2018-10-23T13:53:54.000Z | src/main.cpp | qualibit/rtspmjpegclient | 9bf7f4cfa0223fc573d41727f6d9f29e3254f297 | [
"Apache-2.0"
] | null | null | null | src/main.cpp | qualibit/rtspmjpegclient | 9bf7f4cfa0223fc573d41727f6d9f29e3254f297 | [
"Apache-2.0"
] | 3 | 2016-08-08T10:15:48.000Z | 2022-01-24T23:49:53.000Z | /*
* Copyright 2016 Qualibit S.r.l.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http ://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... | 27.575 | 146 | 0.631006 | qualibit |
c41dcc28c49ee68785c31c5f2555636781bc4a1f | 761 | hpp | C++ | core/database/driver/postgresql/DatabaseClientStorageDriver.hpp | PlatformerTeam/mad | 8768e3127a0659f1d831dcb6c96ba2bb71c30795 | [
"MIT"
] | 2 | 2022-02-21T08:23:02.000Z | 2022-03-17T10:01:40.000Z | core/database/driver/postgresql/DatabaseClientStorageDriver.hpp | PlatformerTeam/mad | 8768e3127a0659f1d831dcb6c96ba2bb71c30795 | [
"MIT"
] | 43 | 2022-02-21T13:07:08.000Z | 2022-03-22T11:02:16.000Z | core/database/driver/postgresql/DatabaseClientStorageDriver.hpp | PlatformerTeam/mad | 8768e3127a0659f1d831dcb6c96ba2bb71c30795 | [
"MIT"
] | null | null | null | #ifndef MAD_DATABASECLIENTSTORAGEDRIVER_H
#define MAD_DATABASECLIENTSTORAGEDRIVER_H
#include <database/database/Database.hpp>
#include <database/driver/ClientStorageDriver.hpp>
#include <memory>
namespace mad::core {
class DatabaseClientStorageDriver : public ClientStorageDriver {
public:
explicit ... | 22.382353 | 81 | 0.735874 | PlatformerTeam |
c41f8a54cceda8db9841d384ad84a63c76144dbd | 823 | cpp | C++ | src/xr_3da/xrGame/object_property_evaluator_state.cpp | ixray-team/ixray-b2945 | ad5ef375994ee9cd790c4144891e9f00e7efe565 | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:19.000Z | 2022-03-26T17:00:19.000Z | src/xr_3da/xrGame/object_property_evaluator_state.cpp | ixray-team/ixray-b2945 | ad5ef375994ee9cd790c4144891e9f00e7efe565 | [
"Linux-OpenIB"
] | null | null | null | src/xr_3da/xrGame/object_property_evaluator_state.cpp | ixray-team/ixray-b2945 | ad5ef375994ee9cd790c4144891e9f00e7efe565 | [
"Linux-OpenIB"
] | 1 | 2022-03-26T17:00:21.000Z | 2022-03-26T17:00:21.000Z | ////////////////////////////////////////////////////////////////////////////
// Module : object_property_evaluator_state.cpp
// Created : 13.03.2004
// Modified : 13.03.2004
// Author : Dmitriy Iassenev
// Description : Object state property evaluator
////////////////////////////////////////////////////////... | 32.92 | 125 | 0.589307 | ixray-team |
c421ce1aaf686b93c1d71ff6ebbf47695c2f34df | 34,793 | cpp | C++ | src/navier_stokes/INSStaggeredPPMConvectiveOperator.cpp | MSV-Project/IBAMR | 3cf614c31bb3c94e2620f165ba967cba719c45ea | [
"BSD-3-Clause"
] | 2 | 2017-12-06T06:16:36.000Z | 2021-03-13T12:28:08.000Z | src/navier_stokes/INSStaggeredPPMConvectiveOperator.cpp | MSV-Project/IBAMR | 3cf614c31bb3c94e2620f165ba967cba719c45ea | [
"BSD-3-Clause"
] | null | null | null | src/navier_stokes/INSStaggeredPPMConvectiveOperator.cpp | MSV-Project/IBAMR | 3cf614c31bb3c94e2620f165ba967cba719c45ea | [
"BSD-3-Clause"
] | null | null | null | // Filename: INSStaggeredPPMConvectiveOperator.cpp
// Created on 08 May 2008 by Boyce Griffith
//
// Copyright (c) 2002-2013, Boyce Griffith
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
... | 51.166176 | 215 | 0.596528 | MSV-Project |
c424eb398a132292d30dc8d022db6250f5def7f5 | 2,610 | hxx | C++ | include/kry/NKPF.hxx | rcgoodfellow/kry | 29b0616d92c514b015eab4a93ad2c2c04d412190 | [
"BSD-2-Clause"
] | null | null | null | include/kry/NKPF.hxx | rcgoodfellow/kry | 29b0616d92c514b015eab4a93ad2c2c04d412190 | [
"BSD-2-Clause"
] | null | null | null | include/kry/NKPF.hxx | rcgoodfellow/kry | 29b0616d92c514b015eab4a93ad2c2c04d412190 | [
"BSD-2-Clause"
] | null | null | null | /******************************************************************************
* libKrylov
* =========
* NKPF.hxx
*
* This file contains definitions pertaining to Newton-Krylov power flow
*
* 21 August 2014
* ~ ry
* ***************************************************************************/
#ifndef KRY_NKPF_... | 21.932773 | 79 | 0.53295 | rcgoodfellow |
c425a4871b41fa9e0f298c677ff122bef96b4f2a | 2,038 | hpp | C++ | src/mainwindow.hpp | Leonardo2718/tffm | a0d96331af5d7e9710fd115e050c9c46bbe536ea | [
"MIT"
] | null | null | null | src/mainwindow.hpp | Leonardo2718/tffm | a0d96331af5d7e9710fd115e050c9c46bbe536ea | [
"MIT"
] | null | null | null | src/mainwindow.hpp | Leonardo2718/tffm | a0d96331af5d7e9710fd115e050c9c46bbe536ea | [
"MIT"
] | null | null | null | /*
Project: tffm
Author: Leonardo Banderali
Description:
tffm is a simple, keyboard-centric file manager intended for use with tiling
window managers such as Xmonad.
License:
MIT License
Copyright (c) 2016 Leonardo Banderali
Permission is hereby granted, free of charge, to any person obtaining ... | 30.41791 | 82 | 0.740432 | Leonardo2718 |
c42c84124be57a284d9291df2f555b55d5a6c701 | 531 | cc | C++ | hackerrank/algorithms/warmup/mini-max-sum.cc | andrewcpacifico/programming | bbbd16d41d34ea7316e207b8a82ae76377d80420 | [
"Apache-2.0"
] | null | null | null | hackerrank/algorithms/warmup/mini-max-sum.cc | andrewcpacifico/programming | bbbd16d41d34ea7316e207b8a82ae76377d80420 | [
"Apache-2.0"
] | null | null | null | hackerrank/algorithms/warmup/mini-max-sum.cc | andrewcpacifico/programming | bbbd16d41d34ea7316e207b8a82ae76377d80420 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (c) 2015 - Andrew C. Pacifico - All Rights Reserved.
* @author Andrew C. Pacifico <andrewcpacifico@gmail.com>
*/
#include <stdio.h>
int main(int argc, char *argv[])
{
long long v[5], i, sum = 0, min, max;
for (i = 0; i < 5; i++) {
scanf("%lld", &v[i]);
sum += v[i];
}
... | 20.423077 | 65 | 0.468927 | andrewcpacifico |
c42d40ecfdefeedf5dd42741837f8072a5e0f749 | 307 | hpp | C++ | zen/hash_map.hpp | ZenLibraries/ZenLibraries | ae189b5080c75412cbd4f33cf6cfb51e15f6ee66 | [
"Apache-2.0"
] | null | null | null | zen/hash_map.hpp | ZenLibraries/ZenLibraries | ae189b5080c75412cbd4f33cf6cfb51e15f6ee66 | [
"Apache-2.0"
] | 2 | 2020-02-06T17:01:39.000Z | 2020-02-12T17:50:14.000Z | zen/hash_map.hpp | ZenLibraries/ZenLibraries | ae189b5080c75412cbd4f33cf6cfb51e15f6ee66 | [
"Apache-2.0"
] | null | null | null | #ifndef ZEN_HASH_MAP_HPP
#define ZEN_HASH_MAP_HPP
#include <stddef.h>
#include "zen/allocator.hpp"
ZEN_NAMESPACE_START
template<
typename T,
typename SizeT = size_t,
typename AllocatorT = DefaultAllocator<T>
>
class HashMap {
public:
};
ZEN_NAMESPACE_END
#endif // of #ifndef ZEN_HASH_MAP_HPP
| 12.791667 | 43 | 0.762215 | ZenLibraries |
c42d75928f352e1e11884d4961afb5350f5d1c76 | 1,539 | tpp | C++ | queue/queue.tpp | gefjon/data_structures | 9bf9f35272e168ffc7ffb30fa44e87761773b845 | [
"MIT"
] | null | null | null | queue/queue.tpp | gefjon/data_structures | 9bf9f35272e168ffc7ffb30fa44e87761773b845 | [
"MIT"
] | null | null | null | queue/queue.tpp | gefjon/data_structures | 9bf9f35272e168ffc7ffb30fa44e87761773b845 | [
"MIT"
] | null | null | null | namespace Queue {
template< class T >
bool Queue< T >::head_is_defined() {
return (this->head_) ? true : false;
}
template< class T >
bool Queue< T >::tail_is_defined() {
return (this->tail_) ? true : false;
}
template< class T >
void Queue< T >::assert_defined() {
assert(this->head_is_def... | 21.082192 | 81 | 0.566602 | gefjon |
c42e8ce16db9537241f8671f542ec8e84911d132 | 11,884 | cpp | C++ | VST3 SDK/base/source/frect.cpp | jagilley/MrsWatson | dd00b6a3740cce4bf7c10d3342d4742c7d1b4836 | [
"BSD-2-Clause"
] | 2 | 2019-06-14T10:20:30.000Z | 2020-02-19T17:53:42.000Z | VST3 SDK/base/source/frect.cpp | jagilley/MrsWatson | dd00b6a3740cce4bf7c10d3342d4742c7d1b4836 | [
"BSD-2-Clause"
] | null | null | null | VST3 SDK/base/source/frect.cpp | jagilley/MrsWatson | dd00b6a3740cce4bf7c10d3342d4742c7d1b4836 | [
"BSD-2-Clause"
] | 1 | 2021-03-16T13:02:17.000Z | 2021-03-16T13:02:17.000Z | //------------------------------------------------------------------------
// Project : SDK Base
// Version : 1.0
//
// Category : Helpers
// Filename : base/source/frect.cpp
// Created by : Steinberg, 1995
// Description :
//
//---------------------------------------------------------------------------... | 26.408889 | 107 | 0.460114 | jagilley |
c430c5eab260ab5743bf2c493423163886d36cc8 | 11,543 | cpp | C++ | src/parser.cpp | amSangi/SimpleInterpreter | cbfcfccbe7740f3853e6d108264eb228843932c5 | [
"MIT"
] | null | null | null | src/parser.cpp | amSangi/SimpleInterpreter | cbfcfccbe7740f3853e6d108264eb228843932c5 | [
"MIT"
] | null | null | null | src/parser.cpp | amSangi/SimpleInterpreter | cbfcfccbe7740f3853e6d108264eb228843932c5 | [
"MIT"
] | null | null | null | #include <sstream>
#include <iostream>
#include "parser.h"
using std::make_shared;
using std::shared_ptr;
using std::vector;
using std::string;
Parser::Parser(const string& filename)
: lexer_(filename), current_token_(InvalidToken), next_token_(InvalidToken) {
current_token_ = lexer_.GetNext();
next_token_ = le... | 23.461382 | 105 | 0.672702 | amSangi |
c43b3b29f4c2b9aead625896309afd4afe00f551 | 6,795 | cpp | C++ | PlayerEntityInteraction.cpp | IvarJonsson/Project-Unknown | 4675b41bbb5e90135c7bf3aded2c2e262b50f351 | [
"BSL-1.0"
] | null | null | null | PlayerEntityInteraction.cpp | IvarJonsson/Project-Unknown | 4675b41bbb5e90135c7bf3aded2c2e262b50f351 | [
"BSL-1.0"
] | null | null | null | PlayerEntityInteraction.cpp | IvarJonsson/Project-Unknown | 4675b41bbb5e90135c7bf3aded2c2e262b50f351 | [
"BSL-1.0"
] | null | null | null | // Copyright 2001-2016 Crytek GmbH / Crytek Group. All rights reserved.
#include "StdAfx.h"
#include "Player.h"
#include "PlayerEntityInteraction.h"
#include "IInteractor.h"
#include "GameActions.h"
#include "UI/HUD/HUDEventWrapper.h"
#include "UI/HUD/HUDEventDispatcher.h"
#include "PlayerPlugin_Interaction.h"
#includ... | 24.981618 | 135 | 0.724209 | IvarJonsson |
c43f80344cd433c8b41b71bb9d82b22ee132fae0 | 2,540 | cpp | C++ | src/types/OE_TCM.cpp | antsouchlos/OxygenEngine2 | 5a123a2dacbc3b66ba9e97b9e5db7d8c17490ddb | [
"MIT"
] | null | null | null | src/types/OE_TCM.cpp | antsouchlos/OxygenEngine2 | 5a123a2dacbc3b66ba9e97b9e5db7d8c17490ddb | [
"MIT"
] | 22 | 2020-05-19T18:18:45.000Z | 2022-03-31T12:11:08.000Z | src/types/OE_TCM.cpp | antsouchlos/OxygenEngine2 | 5a123a2dacbc3b66ba9e97b9e5db7d8c17490ddb | [
"MIT"
] | null | null | null | #include <types/OE_TCM.h>
#include <types/OE_World.h>
using namespace std;
OE_TCM_Texture::OE_TCM_Texture(){}
OE_TCM_Texture::~OE_TCM_Texture(){}
std::string OE_TCM_Texture::to_str() const{
string output = outputTypeTag("TCM_Texture", {});
CSL_WriterBase::indent = CSL_WriterBase::indent + 1;
output... | 28.539326 | 121 | 0.589764 | antsouchlos |
c44025b33c739370b13780f010faddb3269d47d0 | 2,631 | cpp | C++ | 3rdparty/aws-sdk-cpp-master/aws-cpp-sdk-codepipeline/source/model/ActionOwner.cpp | prateek-s/mesos | 4b81147797e4d9a45e0b2f5e5634d4a214dbc4e8 | [
"Apache-2.0"
] | 2 | 2019-02-08T21:29:57.000Z | 2021-07-27T06:59:19.000Z | 3rdparty/aws-sdk-cpp-master/aws-cpp-sdk-codepipeline/source/model/ActionOwner.cpp | prateek-s/mesos | 4b81147797e4d9a45e0b2f5e5634d4a214dbc4e8 | [
"Apache-2.0"
] | null | null | null | 3rdparty/aws-sdk-cpp-master/aws-cpp-sdk-codepipeline/source/model/ActionOwner.cpp | prateek-s/mesos | 4b81147797e4d9a45e0b2f5e5634d4a214dbc4e8 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file... | 30.241379 | 92 | 0.627898 | prateek-s |
c444b20dbf0a892c04c5ae054b982a1891d074de | 222 | cpp | C++ | Plugins/SimpleUGC/Source/SimpleUGC/Private/UGCBlueprintLibrary.cpp | Dr-Turtle/DRG_ModPresetManager | abd7ff98a820969504491a1fe68cf2f9302410dc | [
"MIT"
] | null | null | null | Plugins/SimpleUGC/Source/SimpleUGC/Private/UGCBlueprintLibrary.cpp | Dr-Turtle/DRG_ModPresetManager | abd7ff98a820969504491a1fe68cf2f9302410dc | [
"MIT"
] | null | null | null | Plugins/SimpleUGC/Source/SimpleUGC/Private/UGCBlueprintLibrary.cpp | Dr-Turtle/DRG_ModPresetManager | abd7ff98a820969504491a1fe68cf2f9302410dc | [
"MIT"
] | null | null | null | #include "UGCBlueprintLibrary.h"
class UObject;
class UUGCRegistry;
UUGCRegistry* UUGCBlueprintLibrary::GetUGCRegistry(UObject* WorldContextObject) {
return NULL;
}
UUGCBlueprintLibrary::UUGCBlueprintLibrary() {
}
| 17.076923 | 81 | 0.797297 | Dr-Turtle |
c44651d5068dfd51f367ce9519782b2cd8d2b4bd | 652 | cpp | C++ | Binary Trees/25_longest_bloddline_sum.cpp | ritikrajdev/450DSA | a9efa8c8be781fd7b101407ac807a83b8a0929f4 | [
"MIT"
] | null | null | null | Binary Trees/25_longest_bloddline_sum.cpp | ritikrajdev/450DSA | a9efa8c8be781fd7b101407ac807a83b8a0929f4 | [
"MIT"
] | null | null | null | Binary Trees/25_longest_bloddline_sum.cpp | ritikrajdev/450DSA | a9efa8c8be781fd7b101407ac807a83b8a0929f4 | [
"MIT"
] | null | null | null | class Solution
{
public:
pair<int, int> max(pair<int, int> l, pair<int, int> r) {
if (l.first > r.first)
return l;
else if (r.first > l.first)
return r;
else
return r.second > l.second ? r : l;
}
pair<int, int> helper(Node* root) {
i... | 21.032258 | 62 | 0.46319 | ritikrajdev |
c44b20b5819c50c808b09be2a2d36b3a82c47157 | 318 | hpp | C++ | include/SAMPCpp/Everything.hpp | pacc-repo/samp-cpp | f23f9bb67f3210a1f46293b1d589e8daddae16f9 | [
"MIT"
] | null | null | null | include/SAMPCpp/Everything.hpp | pacc-repo/samp-cpp | f23f9bb67f3210a1f46293b1d589e8daddae16f9 | [
"MIT"
] | null | null | null | include/SAMPCpp/Everything.hpp | pacc-repo/samp-cpp | f23f9bb67f3210a1f46293b1d589e8daddae16f9 | [
"MIT"
] | null | null | null | #pragma once
#include SAMPCPP_PCH
#include <SAMPCpp/SAMP/Player.hpp>
#include <SAMPCpp/SAMP/Vehicle.hpp>
#include <SAMPCpp/SAMP/Server.hpp>
#include <SAMPCpp/SAMP/Native.hpp>
#include <SAMPCpp/Core/Color.hpp>
#include <SAMPCpp/Core/String.hpp>
#include <SAMPCpp/Core/Formatting.hpp>
#include <SAMPCpp/Core/Math.hpp> | 24.461538 | 38 | 0.773585 | pacc-repo |
c44bd964f34eb6425f17e67ae9d1bdaaae283785 | 3,670 | cpp | C++ | Stikboldt/_MyPrefabs/UI/PF_PlayerPawn.cpp | Kair0z/StikBoldt-PC | 5d978aa6b67e9f3a140136f2f0b766061e765c74 | [
"MIT"
] | null | null | null | Stikboldt/_MyPrefabs/UI/PF_PlayerPawn.cpp | Kair0z/StikBoldt-PC | 5d978aa6b67e9f3a140136f2f0b766061e765c74 | [
"MIT"
] | null | null | null | Stikboldt/_MyPrefabs/UI/PF_PlayerPawn.cpp | Kair0z/StikBoldt-PC | 5d978aa6b67e9f3a140136f2f0b766061e765c74 | [
"MIT"
] | 1 | 2021-09-23T06:21:53.000Z | 2021-09-23T06:21:53.000Z | #include "stdafx.h"
#include "PF_PlayerPawn.h"
#include "SpriteComponent.h"
#define InputID(playerID) (42 + (playerID + 1) * 2)
PF_PlayerPawn::PF_PlayerPawn(size_t playerID)
: m_pSprite{nullptr}
, m_PlayerID{playerID}
, m_Velocity{}
, m_Speed{450.f}
, m_PlayRequest{false}
, m_State{State::Idle}
, m_ExitRequest... | 23.525641 | 132 | 0.738147 | Kair0z |
c44cd029d7d5e611b88e6b6634545698e07f12a4 | 9,188 | cpp | C++ | compiler/AST/Operators/OperatorNode.cpp | mattmassicotte/three | 3986c656724d1317bdb46d4777f8f952103d7ce7 | [
"MIT"
] | 8 | 2015-01-02T21:40:55.000Z | 2016-05-12T10:48:09.000Z | compiler/AST/Operators/OperatorNode.cpp | mattmassicotte/three | 3986c656724d1317bdb46d4777f8f952103d7ce7 | [
"MIT"
] | null | null | null | compiler/AST/Operators/OperatorNode.cpp | mattmassicotte/three | 3986c656724d1317bdb46d4777f8f952103d7ce7 | [
"MIT"
] | null | null | null | #include "OperatorNode.h"
#include "MemberAccessNode.h"
#include "IndexerNode.h"
#include "UnaryOperatorNode.h"
#include "BinaryOperatorNode.h"
#include "TernaryOperatorNode.h"
#include "Callable/FunctionCallOperatorNode.h"
#include "Callable/MethodCallOperatorNode.h"
#include "compiler/AST/Variables/VariableNode.h"
#i... | 45.711443 | 121 | 0.61232 | mattmassicotte |
c44ddfa9a83a1d57935a9f41692006c150a06bb0 | 1,352 | hpp | C++ | include/dbus-glue-system/dbus/interfaces.hpp | 5cript/dbus-mockery-system | 3af2e94f6fd2340315d65088fda91dfb575c360c | [
"MIT"
] | null | null | null | include/dbus-glue-system/dbus/interfaces.hpp | 5cript/dbus-mockery-system | 3af2e94f6fd2340315d65088fda91dfb575c360c | [
"MIT"
] | null | null | null | include/dbus-glue-system/dbus/interfaces.hpp | 5cript/dbus-mockery-system | 3af2e94f6fd2340315d65088fda91dfb575c360c | [
"MIT"
] | null | null | null | #pragma once
#include <dbus-glue/dbus_interface.hpp>
namespace DBus::org::freedesktop::DBus
{
class ObjectManager
{
public:
virtual ~ObjectManager() = default;
public: // Methods
virtual auto GetManagedObjects() -> std::unordered_map <
DBusGlue::object_path,
std::unordered_map <
std::s... | 21.125 | 95 | 0.681953 | 5cript |
c4538e0bef1287b5e25d7aa830319162c90719f1 | 3,997 | cpp | C++ | src/metadata/constraints.cpp | blumf/flamerobin | 3b442c6786d916383f885d81f0303171fd8ce7c2 | [
"MIT"
] | 2 | 2019-05-29T08:32:18.000Z | 2021-02-17T08:19:00.000Z | src/metadata/constraints.cpp | blumf/flamerobin | 3b442c6786d916383f885d81f0303171fd8ce7c2 | [
"MIT"
] | null | null | null | src/metadata/constraints.cpp | blumf/flamerobin | 3b442c6786d916383f885d81f0303171fd8ce7c2 | [
"MIT"
] | 1 | 2020-06-15T06:49:18.000Z | 2020-06-15T06:49:18.000Z | /*
Copyright (c) 2004-2016 The FlameRobin Development Team
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 the rights to use, copy, modi... | 29.828358 | 97 | 0.677758 | blumf |
c4556beff38dd7e4c62aa3481341e1f910047daf | 150 | hpp | C++ | firing_char/xsdl_image.hpp | phao/topshooter_xp | e5cc75e47751fa116ca106580b5b4d46cf781c4c | [
"MIT"
] | 4 | 2018-07-09T19:38:27.000Z | 2021-03-02T19:31:38.000Z | firing_char/xsdl_image.hpp | phao/topshooter_xp | e5cc75e47751fa116ca106580b5b4d46cf781c4c | [
"MIT"
] | null | null | null | firing_char/xsdl_image.hpp | phao/topshooter_xp | e5cc75e47751fa116ca106580b5b4d46cf781c4c | [
"MIT"
] | 2 | 2020-04-25T18:05:30.000Z | 2020-07-14T21:19:17.000Z | #ifndef X_SDL_IMAGE_HPP
#define X_SDL_IMAGE_HPP
#include "xsdl.hpp"
namespace ximg {
xsdl::Surface
load(const char *file_name);
} // ximg
#endif
| 10.714286 | 28 | 0.74 | phao |
c4659a0414befd2926015d41a149aecc6cb578a5 | 3,438 | hpp | C++ | include/sireen/metrics.hpp | Jetpie/SiReen | 00365023117bec88391bfb37d9549fdca75ac10b | [
"BSD-2-Clause"
] | 4 | 2015-03-18T15:00:38.000Z | 2016-01-04T13:09:59.000Z | include/sireen/metrics.hpp | Jetpie/SiReen | 00365023117bec88391bfb37d9549fdca75ac10b | [
"BSD-2-Clause"
] | null | null | null | include/sireen/metrics.hpp | Jetpie/SiReen | 00365023117bec88391bfb37d9549fdca75ac10b | [
"BSD-2-Clause"
] | null | null | null | // Optimized spatial distance metrics
//
// @author: Bingqing Qu
//
// Copyright (C) 2014-2015 Bingqing Qu <sylar.qu@gmail.com>
//
// @license: See LICENSE at root directory
#ifndef SIREEN_METRICS_H_
#define SIREEN_METRICS_H_
#include <string.h>
#include <math.h>
//#define NDEBUG
using namespace std;
// spatial
name... | 27.285714 | 73 | 0.509889 | Jetpie |
c46706b3346eb05e789949f808b5583b4baf7800 | 21,299 | hpp | C++ | framework/areg/base/RuntimeObject.hpp | Ali-Nasrolahi/areg-sdk | 4fbc2f2644220196004a31672a697a864755f0b6 | [
"Apache-2.0"
] | 70 | 2021-07-20T11:26:16.000Z | 2022-03-27T11:17:43.000Z | framework/areg/base/RuntimeObject.hpp | Ali-Nasrolahi/areg-sdk | 4fbc2f2644220196004a31672a697a864755f0b6 | [
"Apache-2.0"
] | 32 | 2021-07-31T05:20:44.000Z | 2022-03-20T10:11:52.000Z | framework/areg/base/RuntimeObject.hpp | Ali-Nasrolahi/areg-sdk | 4fbc2f2644220196004a31672a697a864755f0b6 | [
"Apache-2.0"
] | 40 | 2021-11-02T09:45:38.000Z | 2022-03-27T11:17:46.000Z | #pragma once
/************************************************************************
* This file is part of the AREG SDK core engine.
* AREG SDK is dual-licensed under Free open source (Apache version 2.0
* License) and Commercial (with various pricing models) licenses, depending
* on the nature of the project (c... | 58.837017 | 164 | 0.487206 | Ali-Nasrolahi |
c467743a3f61ba501bfd1e1caccf2bad61cf15a5 | 3,492 | cpp | C++ | GutsAndMaggots/hooks/update_status_effects.cpp | idmontie/gptp | 14d68e5eac84c2f3085ac25a7fff31a07ea387f6 | [
"0BSD"
] | 8 | 2015-04-03T16:50:59.000Z | 2021-01-06T17:12:29.000Z | GutsAndMaggots/hooks/update_status_effects.cpp | idmontie/gptp | 14d68e5eac84c2f3085ac25a7fff31a07ea387f6 | [
"0BSD"
] | 6 | 2015-04-03T18:10:56.000Z | 2016-02-18T05:04:21.000Z | GutsAndMaggots/hooks/update_status_effects.cpp | idmontie/gptp | 14d68e5eac84c2f3085ac25a7fff31a07ea387f6 | [
"0BSD"
] | 6 | 2015-04-04T04:37:33.000Z | 2018-04-09T09:03:50.000Z | #include "update_status_effects.h"
#include "../SCBW/api.h"
#include "../SCBW/enumerations.h"
#include "../SCBW/scbwdata.h"
#include "irradiate.h"
namespace {
//Helper functions that should be used only in this file
u8 getAcidSporeOverlayAdjustment(const CUnit* const unit);
} //unnamed namespace
namespace... | 29.1 | 103 | 0.642039 | idmontie |
c469db436015ada74c52e6e95e303beb0bf05009 | 4,545 | cpp | C++ | src/2016/day10.cpp | BruJu/AdventOfCode | a9161649882429bc1f995424544ce4cdafb69caa | [
"WTFPL",
"MIT"
] | 1 | 2020-12-11T13:37:06.000Z | 2020-12-11T13:37:06.000Z | src/2016/day10.cpp | BruJu/AdventOfCode2020 | a9161649882429bc1f995424544ce4cdafb69caa | [
"WTFPL",
"MIT"
] | null | null | null | src/2016/day10.cpp | BruJu/AdventOfCode2020 | a9161649882429bc1f995424544ce4cdafb69caa | [
"WTFPL",
"MIT"
] | null | null | null | #include "../advent_of_code.hpp"
#include "../util/instruction_reader.hpp"
#include <algorithm>
#include <regex>
#include <array>
#include <variant>
#include <stack>
// https://adventofcode.com/2016/day/10
namespace {
class Taker {
public:
virtual void take(int32_t value) = 0;
};
class Robot ... | 27.379518 | 97 | 0.520572 | BruJu |
c47807c65b9c4376647474a730705a2d7fce8aaa | 9,561 | cpp | C++ | src/meshWalker.cpp | jildertviet/ofxJVisuals | 878c5b0e7a7dda49ddb71b3f5d19c13987706a73 | [
"MIT"
] | null | null | null | src/meshWalker.cpp | jildertviet/ofxJVisuals | 878c5b0e7a7dda49ddb71b3f5d19c13987706a73 | [
"MIT"
] | 6 | 2021-10-16T07:10:04.000Z | 2021-12-26T13:23:54.000Z | src/meshWalker.cpp | jildertviet/ofxJVisuals | 878c5b0e7a7dda49ddb71b3f5d19c13987706a73 | [
"MIT"
] | null | null | null | //
// meshWalker.cpp
// meshTrails
//
// Created by Jildert Viet on 18-01-18.
//
//
#include "meshWalker.hpp"
meshWalker::meshWalker(ofMesh* m, ofVec2f dimensions){
this->m = m;
destination = m->getVertex(0);
this->dimensions = dimensions;
numPoints = ((dimensions.x + 1) * (dime... | 34.268817 | 126 | 0.50957 | jildertviet |
c47d1cf850386dfc1675f15a4a4526073fa855e0 | 4,597 | cpp | C++ | utils/signals/programmer.cpp | racktopsystems/kyua | 1929dccc5cda71cddda71485094822d3c3862902 | [
"BSD-3-Clause"
] | 106 | 2015-01-20T14:49:12.000Z | 2022-03-09T01:31:51.000Z | utils/signals/programmer.cpp | racktopsystems/kyua | 1929dccc5cda71cddda71485094822d3c3862902 | [
"BSD-3-Clause"
] | 81 | 2015-02-23T23:23:41.000Z | 2021-07-21T13:51:56.000Z | utils/signals/programmer.cpp | racktopsystems/kyua | 1929dccc5cda71cddda71485094822d3c3862902 | [
"BSD-3-Clause"
] | 27 | 2015-09-30T20:33:34.000Z | 2022-02-14T04:00:08.000Z | // Copyright 2010 The Kyua Authors.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditio... | 33.071942 | 79 | 0.700239 | racktopsystems |
c47ef9f0f6157a2c37fa70b2f0bc5edfc2a3055d | 697 | cpp | C++ | Wonderland/Wonderland/Editor/Modules/VulkanWrapper/Resource/Texture/Texture Backup/VWTextureGroupRequest.cpp | RodrigoHolztrattner/Wonderland | ffb71d47c1725e7cd537e2d1380962b5dfdc3d75 | [
"MIT"
] | 3 | 2018-04-09T13:01:07.000Z | 2021-03-18T12:28:48.000Z | Wonderland/Wonderland/Editor/Modules/VulkanWrapper/Resource/Texture/Texture Backup/VWTextureGroupRequest.cpp | RodrigoHolztrattner/Wonderland | ffb71d47c1725e7cd537e2d1380962b5dfdc3d75 | [
"MIT"
] | null | null | null | Wonderland/Wonderland/Editor/Modules/VulkanWrapper/Resource/Texture/Texture Backup/VWTextureGroupRequest.cpp | RodrigoHolztrattner/Wonderland | ffb71d47c1725e7cd537e2d1380962b5dfdc3d75 | [
"MIT"
] | 1 | 2021-03-18T12:28:50.000Z | 2021-03-18T12:28:50.000Z | ////////////////////////////////////////////////////////////////////////////////
// Filename: FluxMyWrapper.cpp
////////////////////////////////////////////////////////////////////////////////
#include "VWTextureGroupRequest.h"
#include "..\..\VWContext.h"
VulkanWrapper::VWTextureGroupRequest::VWTextureGroupRequest()
... | 29.041667 | 138 | 0.602582 | RodrigoHolztrattner |
c4803c8e8e7fc061fab3079af3b618cec0979e3e | 5,396 | cpp | C++ | vision/src/main/cpp/TapeProcessing.cpp | ben327/2019-DeepSpace | 0eda4ebde9335952afe73701928d68766aeb2651 | [
"MIT"
] | null | null | null | vision/src/main/cpp/TapeProcessing.cpp | ben327/2019-DeepSpace | 0eda4ebde9335952afe73701928d68766aeb2651 | [
"MIT"
] | null | null | null | vision/src/main/cpp/TapeProcessing.cpp | ben327/2019-DeepSpace | 0eda4ebde9335952afe73701928d68766aeb2651 | [
"MIT"
] | null | null | null | #include "Display.h"
#include "Capture.h"
#include "TapeProcessing.h"
#include "Display.h"
#include <opencv2/opencv.hpp>
#include "opencv2/objdetect.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/core/co... | 36.958904 | 210 | 0.62954 | ben327 |
c48bae73c6d29a327730869255a726ec6efb542f | 219 | cpp | C++ | baidusearch.cpp | serpapi/serpapi-search-cpp | fc1cafc05d3e2c2b1661789d96f916441d33ecd3 | [
"MIT"
] | null | null | null | baidusearch.cpp | serpapi/serpapi-search-cpp | fc1cafc05d3e2c2b1661789d96f916441d33ecd3 | [
"MIT"
] | null | null | null | baidusearch.cpp | serpapi/serpapi-search-cpp | fc1cafc05d3e2c2b1661789d96f916441d33ecd3 | [
"MIT"
] | null | null | null | #include <serpapisearch.hpp>
#include <baidusearch.hpp>
namespace serpapi
{
using namespace std;
BaiduSearch::BaiduSearch(map<string,string> parameter, string apiKey): SerpApiSearch(parameter, apiKey, "baidu")
{
}
} | 21.9 | 113 | 0.767123 | serpapi |
c48c60716eb89d1dc2806360078782fd80bef0f8 | 1,034 | cpp | C++ | src/Mods.cpp | hntd187/RE2-Mod-Framework | 40e078e6cc31b84d729219e53614659d5338efff | [
"MIT"
] | 8 | 2019-12-01T11:45:09.000Z | 2021-07-28T20:50:51.000Z | src/Mods.cpp | hntd187/RE2-Mod-Framework | 40e078e6cc31b84d729219e53614659d5338efff | [
"MIT"
] | 1 | 2020-09-01T01:18:18.000Z | 2021-04-19T01:47:25.000Z | src/Mods.cpp | hntd187/RE2-Mod-Framework | 40e078e6cc31b84d729219e53614659d5338efff | [
"MIT"
] | 1 | 2021-04-08T15:21:24.000Z | 2021-04-08T15:21:24.000Z | #include <spdlog/spdlog.h>
#include "IntegrityCheckBypass.hpp"
#include "PositionHooks.hpp"
#include "DeveloperTools.hpp"
#include "Speedrun.h"
#include "Mods.hpp"
#include "ObjectExplorer.hpp"
Mods::Mods()
{
#ifdef RE3
m_mods.emplace_back(std::make_unique<IntegrityCheckBypass>());
#endif
m_mods.emplace_bac... | 19.509434 | 66 | 0.635397 | hntd187 |
c48cc454fa9326c11402b9eb583a3ad946e39d35 | 8,264 | cc | C++ | src/io/io_hdf5.cc | EPTlib/b1map-sim | 2f5836907b06453cd71a15c8e7a632f7327d621c | [
"MIT"
] | 3 | 2021-03-02T19:36:56.000Z | 2022-02-03T00:01:11.000Z | src/io/io_hdf5.cc | EPTlib/b1map-sim | 2f5836907b06453cd71a15c8e7a632f7327d621c | [
"MIT"
] | 1 | 2021-06-10T13:43:00.000Z | 2021-06-10T13:43:00.000Z | src/io/io_hdf5.cc | EPTlib/b1map-sim | 2f5836907b06453cd71a15c8e7a632f7327d621c | [
"MIT"
] | null | null | null | /*****************************************************************************
*
* Program: b1map-sim
* Author: Alessandro Arduino <a.arduino@inrim.it>
*
* MIT License
*
* Copyright (c) 2020 Alessandro Arduino
* Istituto Nazionale di Ricerca Metrologica (INRiM)
* Strada delle cacce 91, 10135 Torino
* ITAL... | 34.722689 | 122 | 0.606486 | EPTlib |
c48ee9cb4d13e7b44b02486b378f5612c0ba7ab6 | 601 | cpp | C++ | Online-Judge-Solution/Codeforces Solutions/ECR(A.Maximum Increase).cpp | arifparvez14/Basic-and-competetive-programming | 4cb9ee7fbed3c70307d0f63499fcede86ed3c732 | [
"MIT"
] | null | null | null | Online-Judge-Solution/Codeforces Solutions/ECR(A.Maximum Increase).cpp | arifparvez14/Basic-and-competetive-programming | 4cb9ee7fbed3c70307d0f63499fcede86ed3c732 | [
"MIT"
] | null | null | null | Online-Judge-Solution/Codeforces Solutions/ECR(A.Maximum Increase).cpp | arifparvez14/Basic-and-competetive-programming | 4cb9ee7fbed3c70307d0f63499fcede86ed3c732 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#define ll long long int
#define max 100009
using namespace std;
int main()
{
ll a[max],i,n,k;
while(cin>>n)
{
ll count=0,k=1;
for(i=0; i<n; i++)
{
cin>>a[i];
}
for(i=0; i<(n-1); i++)
{
if(a[i]<a[i+1])
... | 18.212121 | 35 | 0.33777 | arifparvez14 |
c492c455f06727073b4745a7c606fceda8b828dd | 9,862 | cc | C++ | libqpdf/QPDFAnnotationObjectHelper.cc | tomty89/qpdf | e0775238b8b011755b9682555a8449b8a71f33eb | [
"Apache-2.0"
] | 1,812 | 2015-01-27T09:07:20.000Z | 2022-03-30T23:03:15.000Z | libqpdf/QPDFAnnotationObjectHelper.cc | tomty89/qpdf | e0775238b8b011755b9682555a8449b8a71f33eb | [
"Apache-2.0"
] | 584 | 2015-01-24T00:31:12.000Z | 2022-03-24T21:42:38.000Z | libqpdf/QPDFAnnotationObjectHelper.cc | tomty89/qpdf | e0775238b8b011755b9682555a8449b8a71f33eb | [
"Apache-2.0"
] | 204 | 2015-04-09T16:28:06.000Z | 2022-03-29T14:29:45.000Z | #include <qpdf/QPDFAnnotationObjectHelper.hh>
#include <qpdf/QTC.hh>
#include <qpdf/QPDFMatrix.hh>
#include <qpdf/QUtil.hh>
#include <qpdf/QPDF.hh>
#include <qpdf/QPDFNameTreeObjectHelper.hh>
QPDFAnnotationObjectHelper::Members::~Members()
{
}
QPDFAnnotationObjectHelper::Members::Members()
{
}
QPDFAnnotationObjectHe... | 34.725352 | 77 | 0.639018 | tomty89 |
c4950a24915a3d1aca02ce229cd2cd7374a32d0f | 958 | cpp | C++ | C++/Ugly Number.cpp | mafia1989/leetcode | f0bc9708a58602866818120556d8b8caf114811e | [
"MIT"
] | 3 | 2015-08-29T15:25:13.000Z | 2015-08-29T15:25:21.000Z | C++/Ugly Number.cpp | mafia1989/leetcode | f0bc9708a58602866818120556d8b8caf114811e | [
"MIT"
] | null | null | null | C++/Ugly Number.cpp | mafia1989/leetcode | f0bc9708a58602866818120556d8b8caf114811e | [
"MIT"
] | null | null | null |
// Ugly Number
// Total Accepted: 20939 Total Submissions: 63734 Difficulty: Easy
// Write a program to check whether a given number is an ugly number.
// Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For example, 6, 8 are ugly while 14 is not ugly since it includes another prime factor... | 21.288889 | 168 | 0.458246 | mafia1989 |
c49664c18de62fa563a3253581516fef411f1350 | 1,303 | cpp | C++ | Src/EBAMRElliptic/AMReX_NeumannConductivityEBBC.cpp | jameslehoux/amrex | 5553b6af63da745ef13ecdb51654b72ec1cca544 | [
"BSD-3-Clause-LBNL"
] | 1 | 2021-05-20T13:04:05.000Z | 2021-05-20T13:04:05.000Z | Src/EBAMRElliptic/AMReX_NeumannConductivityEBBC.cpp | jameslehoux/amrex | 5553b6af63da745ef13ecdb51654b72ec1cca544 | [
"BSD-3-Clause-LBNL"
] | null | null | null | Src/EBAMRElliptic/AMReX_NeumannConductivityEBBC.cpp | jameslehoux/amrex | 5553b6af63da745ef13ecdb51654b72ec1cca544 | [
"BSD-3-Clause-LBNL"
] | null | null | null | #include "AMReX_NeumannConductivityEBBC.H"
#include "AMReX_EBArith.H"
namespace amrex
{
void NeumannConductivityEBBC::applyEBFlux(EBCellFAB & a_lphi,
const EBCellFAB & a_phi,
const vector<VolIndex>... | 36.194444 | 92 | 0.508058 | jameslehoux |
7bcb82e29563a71d25d737bde2758280045927a5 | 3,164 | cpp | C++ | src/mods/SecretMissionTimer.cpp | praydog/dx11_mod_base | cfbce80313b782813a959c2d2ceb69705643a6cd | [
"MIT"
] | 1 | 2022-03-26T22:57:55.000Z | 2022-03-26T22:57:55.000Z | src/mods/SecretMissionTimer.cpp | praydog/dx11_mod_base | cfbce80313b782813a959c2d2ceb69705643a6cd | [
"MIT"
] | null | null | null | src/mods/SecretMissionTimer.cpp | praydog/dx11_mod_base | cfbce80313b782813a959c2d2ceb69705643a6cd | [
"MIT"
] | null | null | null | #include "SecretMissionTimer.hpp"
bool SecretMissionTimer::cheaton{false};
bool SecretMissionTimer::isM9NoStart{false};
uintptr_t SecretMissionTimer::timerRet;
uintptr_t SecretMissionTimer::m9Ret;
uintptr_t SecretMissionTimer::m9Jne;
float SecretMissionTimer::timer = 90.0f;
static naked void timer_detour()
{
__asm... | 26.588235 | 124 | 0.738938 | praydog |
7bd14cc97d73ffe5159cf4892b3de434212037bf | 6,407 | cc | C++ | tests/spp_alloc_test.cc | RadoslawChmielarz/sparsepp | 856dd563c8e453d8d9c5d0c6e43f404eb22db6d2 | [
"BSD-3-Clause"
] | 1,212 | 2016-08-22T00:34:34.000Z | 2022-03-23T16:28:38.000Z | tests/spp_alloc_test.cc | RadoslawChmielarz/sparsepp | 856dd563c8e453d8d9c5d0c6e43f404eb22db6d2 | [
"BSD-3-Clause"
] | 82 | 2016-08-23T11:05:50.000Z | 2021-07-21T20:57:23.000Z | tests/spp_alloc_test.cc | RadoslawChmielarz/sparsepp | 856dd563c8e453d8d9c5d0c6e43f404eb22db6d2 | [
"BSD-3-Clause"
] | 143 | 2016-08-22T20:03:33.000Z | 2022-03-05T02:18:17.000Z | #include <memory>
#include <cassert>
#include <cstdio>
#include <stdlib.h>
#include <algorithm>
#include <vector>
// enable debugging code in spp_bitset.h
#define SPP_TEST 1
#include <sparsepp/spp_timer.h>
#include <sparsepp/spp_memory.h>
#include <sparsepp/spp_dlalloc.h>
using namespace std;
static float _to_mb(... | 33.369792 | 111 | 0.469018 | RadoslawChmielarz |
7bdba162b837c48ca49d0467939958e31b57a7a0 | 408 | cpp | C++ | Leetcode/problem_solving/leetcode_easy_Q448.cpp | Vikash-8090-Yadav/AllProgramming_Basic | 76721256edcb91520d1b5132aa59ac37eebdf7c3 | [
"MIT"
] | 2 | 2022-01-04T12:04:51.000Z | 2022-01-04T18:52:26.000Z | Leetcode/problem_solving/leetcode_easy_Q448.cpp | Vikash-8090-Yadav/AllProgramming_Basic | 76721256edcb91520d1b5132aa59ac37eebdf7c3 | [
"MIT"
] | null | null | null | Leetcode/problem_solving/leetcode_easy_Q448.cpp | Vikash-8090-Yadav/AllProgramming_Basic | 76721256edcb91520d1b5132aa59ac37eebdf7c3 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
vector<int> findDisappearedNumbers(vector<int>& nums){
int len = nums.size();
vector<int> v2;
unordered_map<int,int> m;
for(auto x : nums){
m[x]++;
}
for(int i =1;i<=len;++i){
if(m[i]==0){
v2.push_back(i);
}
}
return v2;
}
int main(){
vector<int> v1 ={1,... | 16.32 | 54 | 0.598039 | Vikash-8090-Yadav |
7bded11f95e69e9b76e45c9d0e63015881e432c6 | 359 | cc | C++ | leet_code/Minimum_Swaps_to_Make_Strings_Equal/solve.cc | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | 1 | 2020-04-11T22:04:23.000Z | 2020-04-11T22:04:23.000Z | leet_code/Minimum_Swaps_to_Make_Strings_Equal/solve.cc | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | null | null | null | leet_code/Minimum_Swaps_to_Make_Strings_Equal/solve.cc | ldy121/algorithm | 7939cb4c15e2bc655219c934f00c2bb74ddb4eec | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
int minimumSwap(string s1, string s2) {
int xy = 0, yx = 0;
for (int i = 0; i < s1.length(); ++i) {
if (s1[i] == 'x' && s2[i] == 'y') {
++xy;
} else if (s1[i] == 'y' && s2[i] == 'x') {
++yx;
}
}
if (xy % 2 == yx % 2) {
return (xy / 2) + (yx / 2) + (xy % 2) + (yx % ... | 17.95 | 52 | 0.392758 | ldy121 |
7be4bec1c6efd3175475046cf14766102156ba75 | 1,774 | cpp | C++ | modules/ReadLine/readline.cpp | Rod-Lin/Ink | 527b258afc35b3d2a723d198c54cfb57bdaac127 | [
"MIT"
] | 1 | 2016-01-01T02:23:55.000Z | 2016-01-01T02:23:55.000Z | modules/ReadLine/readline.cpp | Rod-Lin/Ink | 527b258afc35b3d2a723d198c54cfb57bdaac127 | [
"MIT"
] | null | null | null | modules/ReadLine/readline.cpp | Rod-Lin/Ink | 527b258afc35b3d2a723d198c54cfb57bdaac127 | [
"MIT"
] | null | null | null | #include <readline/readline.h>
#include <readline/history.h>
#include <string>
#include "core/object.h"
#include "core/general.h"
#include "core/native/native.h"
#include "core/interface/engine.h"
using namespace ink;
using namespace std;
Ink_Object *InkNative_ReadLine_Read(Ink_InterpreteEngine *engine, Ink_ContextC... | 24.30137 | 168 | 0.756483 | Rod-Lin |
7be68f6b9e8eff8c84d7be9bafd1c1d3100c6fb6 | 463 | cpp | C++ | Introduction to CPP/Easy/Vector_Erase.cpp | voids-solutions/Hacker-Rank-Solutions | 05ac3b61890c7b032ca22166184090428ddcfcbd | [
"Unlicense"
] | 1 | 2019-04-07T20:13:20.000Z | 2019-04-07T20:13:20.000Z | Introduction to CPP/Easy/Vector_Erase.cpp | voids-solutions/Hacker-Rank-Solutions | 05ac3b61890c7b032ca22166184090428ddcfcbd | [
"Unlicense"
] | null | null | null | Introduction to CPP/Easy/Vector_Erase.cpp | voids-solutions/Hacker-Rank-Solutions | 05ac3b61890c7b032ca22166184090428ddcfcbd | [
"Unlicense"
] | null | null | null | #include <cmath>
#include <cstdio>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int main() {
vector<int> vec;
int x,a,b,c,temp;
cin >>x;
for (size_t i = 0; i < x; i++) {
cin >>temp;
vec.push_back(temp);
}
cin >>a>>b>>c;
vec.erase(vec.begin... | 17.148148 | 47 | 0.533477 | voids-solutions |
7becd015a53697294f33a8e3e85f56546484eefb | 4,501 | cpp | C++ | src/Screens/MusicSelect/Options/OptionPage.cpp | Subject38/jujube | 664b995cc65fa6045433b4837d765c62fe6490b4 | [
"MIT"
] | 19 | 2020-02-28T20:34:12.000Z | 2022-01-28T20:18:25.000Z | src/Screens/MusicSelect/Options/OptionPage.cpp | Subject38/jujube | 664b995cc65fa6045433b4837d765c62fe6490b4 | [
"MIT"
] | 7 | 2019-10-22T09:43:16.000Z | 2022-03-12T00:15:13.000Z | src/Screens/MusicSelect/Options/OptionPage.cpp | Subject38/jujube | 664b995cc65fa6045433b4837d765c62fe6490b4 | [
"MIT"
] | 5 | 2019-10-22T08:14:57.000Z | 2021-03-13T06:32:04.000Z | #include "OptionPage.hpp"
#include <iostream>
#include <memory>
#include <vector>
#include "../Ribbon.hpp"
#include "../Panels/SubpagePanel.hpp"
#include "../Panels/MarkerPanel.hpp"
#include "AudioOffset.hpp"
#include "InputRemap.hpp"
namespace MusicSelect {
void OptionPage::update() {
this->setPosition... | 35.164063 | 117 | 0.65341 | Subject38 |
7beda22fc0e27a949e1cf4e5e51de920dfcec6eb | 656 | cpp | C++ | examples/array/validator.cpp | fushar/tokilib | 1fcb3f9da6007350b5ae4aacd5e85803326a006f | [
"MIT"
] | 16 | 2015-08-09T05:22:01.000Z | 2022-03-30T08:51:43.000Z | examples/array/validator.cpp | fushar/tokilib | 1fcb3f9da6007350b5ae4aacd5e85803326a006f | [
"MIT"
] | 3 | 2015-08-08T15:46:05.000Z | 2015-08-08T15:46:06.000Z | examples/array/validator.cpp | fushar/tokilib | 1fcb3f9da6007350b5ae4aacd5e85803326a006f | [
"MIT"
] | 11 | 2015-11-15T08:30:35.000Z | 2022-03-30T08:51:54.000Z | /*
* Test Case Validator via tokilib
*
* Problem: Array
* Problem author: TOKI Scientific Committee
* Validator author: TOKI Scientific Committee
*/
#include "../../validator.h"
int N_max, data_max;
void validateCase()
{
int N = inf.readInt(1, N_max, "N");
inf.readEoln();
for (int i = 0; i < N; i++)
{
i... | 18.742857 | 63 | 0.628049 | fushar |
7bf023bd40c7e7a78ac7150fe64d4035009fb078 | 9,440 | hpp | C++ | include/ripple/container/array_traits.hpp | robclu/ripple | 734dfa77e100a86b3c60589d41ca627e41d4a783 | [
"MIT"
] | 4 | 2021-04-25T16:38:12.000Z | 2021-12-23T08:32:15.000Z | include/ripple/container/array_traits.hpp | robclu/ripple | 734dfa77e100a86b3c60589d41ca627e41d4a783 | [
"MIT"
] | null | null | null | include/ripple/container/array_traits.hpp | robclu/ripple | 734dfa77e100a86b3c60589d41ca627e41d4a783 | [
"MIT"
] | null | null | null | /**=--- ripple/container/array_traits.hpp ------------------ -*- C++ -*- ---==**
*
* Ripple
*
* Copyright (c) 2019 - 2021 Rob Clucas.
*
* This file is distributed under the MIT License. See LICENSE for details.
*
*==-----------------------------------------... | 33.239437 | 80 | 0.66928 | robclu |
7bf2d2a01e2861c008f227ee1be9c110408f24a0 | 1,381 | cc | C++ | tests/cc/swap.cc | project-arcana/arcana-samples | 7dbe2cab765d4d86c6e96b4ab542cac75608a0b0 | [
"MIT"
] | 2 | 2019-08-06T08:13:27.000Z | 2019-09-28T07:16:46.000Z | tests/swap.cc | Philip-Trettner/clean-core | dc70db2432e753f1d77a722070c398464590e0a1 | [
"MIT"
] | null | null | null | tests/swap.cc | Philip-Trettner/clean-core | dc70db2432e753f1d77a722070c398464590e0a1 | [
"MIT"
] | 1 | 2020-01-22T18:04:53.000Z | 2020-01-22T18:04:53.000Z | #include <nexus/test.hh>
#include <clean-core/utility.hh>
#include <clean-core/vector.hh>
#include <vector>
namespace foo
{
bool used_custom_swap = false;
struct bar
{
};
void swap(bar&, bar&) { used_custom_swap = true; }
}
namespace fuz
{
struct baz
{
};
}
TEST("cc::swap")
{
foo::bar a, b;
// found via ... | 18.413333 | 50 | 0.589428 | project-arcana |
7bf6b5fd532c0961967365c3af1dd31c1a4a7d93 | 759 | cpp | C++ | Dev/src/Core/assert.cpp | MarkusRannare/FryEngine | 79f60599c1cd5f4f28714f24916950461d5cbbba | [
"MIT"
] | 1 | 2021-12-20T14:21:41.000Z | 2021-12-20T14:21:41.000Z | Dev/src/Core/assert.cpp | MarkusRannare/FryEngine | 79f60599c1cd5f4f28714f24916950461d5cbbba | [
"MIT"
] | null | null | null | Dev/src/Core/assert.cpp | MarkusRannare/FryEngine | 79f60599c1cd5f4f28714f24916950461d5cbbba | [
"MIT"
] | null | null | null | #include "Assert.h"
#include "Debug.h"
#include "message_box.h"
#include "string_stream.h"
#include <cstdlib>
using namespace foundation;
namespace fry_core
{
void Assert( const char* Expression, const char* File, int Line )
{
using namespace string_stream;
Buffer B( foundation::memory_globals::default_alloc... | 23.71875 | 160 | 0.682477 | MarkusRannare |
7bf736ec7e5c1175e6a45af2f03054acca6691bc | 350 | cpp | C++ | yarpl/src/yarpl/Refcounted.cpp | benjchristensen/rsocket-cpp | 26299669be5c9df67d11fa105deb5f453436803d | [
"BSD-3-Clause"
] | null | null | null | yarpl/src/yarpl/Refcounted.cpp | benjchristensen/rsocket-cpp | 26299669be5c9df67d11fa105deb5f453436803d | [
"BSD-3-Clause"
] | null | null | null | yarpl/src/yarpl/Refcounted.cpp | benjchristensen/rsocket-cpp | 26299669be5c9df67d11fa105deb5f453436803d | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2004-present Facebook. All Rights Reserved.
#include "yarpl/Refcounted.h"
namespace yarpl {
#if !defined(NDEBUG)
Refcounted::Refcounted() {
++objects_;
}
Refcounted::~Refcounted() {
--objects_;
}
size_t Refcounted::objects() {
return objects_;
}
std::atomic_size_t Refcounted::objects_{0};
#en... | 13.461538 | 56 | 0.688571 | benjchristensen |
7bfa613c902f2e9d0d1b13c4c8bfdfa46a4d091e | 1,556 | cpp | C++ | server/src/cache_support_filter.cpp | courtarro/beefweb | 879f68d8be5339c73b02bf32c9fa39027cd66fab | [
"MIT"
] | 148 | 2017-08-25T13:32:05.000Z | 2022-03-17T18:40:49.000Z | server/src/cache_support_filter.cpp | courtarro/beefweb | 879f68d8be5339c73b02bf32c9fa39027cd66fab | [
"MIT"
] | 160 | 2017-08-16T19:58:53.000Z | 2022-02-26T09:57:38.000Z | server/src/cache_support_filter.cpp | courtarro/beefweb | 879f68d8be5339c73b02bf32c9fa39027cd66fab | [
"MIT"
] | 24 | 2018-05-23T18:59:47.000Z | 2022-03-23T17:25:01.000Z | #include "cache_support_filter.hpp"
#include "request.hpp"
#include "response.hpp"
#include "fnv_hash.hpp"
namespace msrv {
CacheSupportFilter::CacheSupportFilter() = default;
CacheSupportFilter::~CacheSupportFilter() = default;
void CacheSupportFilter::endRequest(Request* request)
{
FileResponse* fileResponse =... | 28.290909 | 86 | 0.706298 | courtarro |
d00e503e1f37bc9361d0c1c3ed8e343cf4cbecc5 | 3,898 | cpp | C++ | Chapter05/standard_algorithm_features.cpp | markusbuchholz/Cpp-High-Performance-Second-Edition | 9d8ce97fae15a5f893a780fb3f8b187d11961a43 | [
"MIT"
] | 57 | 2020-07-09T22:54:31.000Z | 2022-03-31T14:18:41.000Z | Chapter05/standard_algorithm_features.cpp | markusbuchholz/Cpp-High-Performance-Second-Edition | 9d8ce97fae15a5f893a780fb3f8b187d11961a43 | [
"MIT"
] | 5 | 2021-04-02T17:25:31.000Z | 2021-07-30T09:38:42.000Z | Chapter05/standard_algorithm_features.cpp | PacktPublishing/Cpp-High-Performance-Second-Edition | 9d8ce97fae15a5f893a780fb3f8b187d11961a43 | [
"MIT"
] | 36 | 2019-12-25T19:30:47.000Z | 2022-03-16T16:41:02.000Z | // Requires C++20
#include <version>
#if defined(__cpp_lib_ranges)
#include <gtest/gtest.h>
#include <algorithm>
#include <iostream>
#include <list>
#include <numeric>
#include <ranges>
#include <vector>
TEST(AlgorithmFeatures, RemoveErase) {
auto v = std::vector{1, 2, 2, 3};
auto new_end = std::remove(v.begin(... | 27.069444 | 74 | 0.592612 | markusbuchholz |
d010fc722b5a3de9fb104ff8d42937dedb4da325 | 5,484 | cpp | C++ | src/to_420.cpp | stevenhoving/yuvconvert | 40d36ee0fc036b10f128c3aabe346b93748afde0 | [
"MIT"
] | 3 | 2020-01-28T16:54:53.000Z | 2020-12-22T06:45:39.000Z | src/to_420.cpp | stevenhoving/yuvconvert | 40d36ee0fc036b10f128c3aabe346b93748afde0 | [
"MIT"
] | 1 | 2018-09-16T13:54:22.000Z | 2018-09-16T13:54:22.000Z | src/to_420.cpp | stevenhoving/yuvconvert | 40d36ee0fc036b10f128c3aabe346b93748afde0 | [
"MIT"
] | null | null | null | /* Copyright(c) 2018 Steven Hoving
*
* 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 the rights
* to use, copy, modify, merge, publish, d... | 33.036145 | 142 | 0.652443 | stevenhoving |
d01cb9d1d05d4fcf90117b4fa4bca9a2876427a7 | 50,374 | cpp | C++ | src/server/game/DataStores/DBCStores.cpp | Arkania/ArkCORE | 2484554a7b54be0b652f9dc3c5a8beba79df9fbf | [
"OpenSSL"
] | 42 | 2015-01-05T10:00:07.000Z | 2022-02-18T14:51:33.000Z | src/server/game/DataStores/DBCStores.cpp | superllout/WOW | 3d0eeb940cccf8ab7854259172c6d75a85ee4f7d | [
"OpenSSL"
] | null | null | null | src/server/game/DataStores/DBCStores.cpp | superllout/WOW | 3d0eeb940cccf8ab7854259172c6d75a85ee4f7d | [
"OpenSSL"
] | 31 | 2015-01-09T02:04:29.000Z | 2021-09-01T13:20:20.000Z | /*
* Copyright (C) 2005 - 2013 MaNGOS <http://www.getmangos.com/>
*
* Copyright (C) 2008 - 2013 Trinity <http://www.trinitycore.org/>
*
* Copyright (C) 2010 - 2013 ProjectSkyfire <http://www.projectskyfire.org/>
*
* Copyright (C) 2011 - 2013 ArkCORE <http://www.arkania.net/>
*
* This program is free software; ... | 49.241447 | 236 | 0.737464 | Arkania |
d01f65514da65687d4aabcb70c42f4a1bbab3b63 | 14,869 | cc | C++ | src/utils/cocos2d_math_util.cc | pengdu/bubblefs | 9b27e191a287b3a1d012adfd3bab6a30629a5f33 | [
"BSD-3-Clause"
] | 1 | 2021-01-11T14:19:51.000Z | 2021-01-11T14:19:51.000Z | src/utils/cocos2d_math_util.cc | pengdu/bubblefs | 9b27e191a287b3a1d012adfd3bab6a30629a5f33 | [
"BSD-3-Clause"
] | null | null | null | src/utils/cocos2d_math_util.cc | pengdu/bubblefs | 9b27e191a287b3a1d012adfd3bab6a30629a5f33 | [
"BSD-3-Clause"
] | null | null | null | /**
Copyright 2013 BlackBerry 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 applicable law or agreed to in writing, software
distr... | 32.183983 | 101 | 0.530231 | pengdu |
d020d26d520901947aa4ab199623061fe35f83c3 | 449 | cpp | C++ | 01-what-is-cpp/8-doctest/FactorialTest2.cpp | erelsgl-at-ariel/cpp-5780 | 181ae712a05031f85fe3f9f7b16c5e60350e1577 | [
"MIT"
] | 6 | 2020-03-19T13:49:17.000Z | 2020-05-27T16:04:37.000Z | 01-what-is-cpp/8-doctest/FactorialTest2.cpp | erelsgl-at-ariel/cpp-5780 | 181ae712a05031f85fe3f9f7b16c5e60350e1577 | [
"MIT"
] | null | null | null | 01-what-is-cpp/8-doctest/FactorialTest2.cpp | erelsgl-at-ariel/cpp-5780 | 181ae712a05031f85fe3f9f7b16c5e60350e1577 | [
"MIT"
] | 23 | 2020-03-12T13:21:29.000Z | 2021-02-22T21:29:48.000Z | #include "doctest.h"
#include "Factorial.hpp"
#include <stdexcept>
TEST_CASE("Factorials of negative numbers") {
CHECK_THROWS(factorial(-1)); // check that some exception is thrown
CHECK_THROWS_AS(factorial(-2), std::out_of_range); // check that a specific exception type is thrown
CHECK_THROWS_AS(factor... | 37.416667 | 120 | 0.726058 | erelsgl-at-ariel |
d0214b7b943c4538bc3e1b117a67dd191104c3c6 | 7,468 | cpp | C++ | src/execution/operator/scan/physical_lookup.cpp | graindb/graindb-demonstration | be901b3e66fc991ea3ecfbcfabdcd07af82dd2d7 | [
"MIT"
] | 1 | 2021-08-30T16:08:17.000Z | 2021-08-30T16:08:17.000Z | src/execution/operator/scan/physical_lookup.cpp | graindb/graindb-demonstration | be901b3e66fc991ea3ecfbcfabdcd07af82dd2d7 | [
"MIT"
] | 1 | 2021-12-12T03:36:02.000Z | 2021-12-12T03:36:02.000Z | src/execution/operator/scan/physical_lookup.cpp | graindb/graindb-demonstration | be901b3e66fc991ea3ecfbcfabdcd07af82dd2d7 | [
"MIT"
] | null | null | null | #include "duckdb/execution/operator/scan/physical_lookup.hpp"
#include "duckdb/catalog/catalog_entry/table_catalog_entry.hpp"
#include "duckdb/main/client_context.hpp"
#include "duckdb/main/database.hpp"
#include "duckdb/storage/buffer_manager.hpp"
#include "duckdb/storage/numeric_segment.hpp"
#include "duckdb/storage... | 37.154229 | 117 | 0.693224 | graindb |
d02376b328cf4f2fc99cccb96fad786b8643bb01 | 7,044 | cpp | C++ | src/rfx/graphics/ShaderCompiler.cpp | rfruesmer/rfx | 96c15a11ee8e2192c9d2ff233924eee884835f17 | [
"MIT"
] | null | null | null | src/rfx/graphics/ShaderCompiler.cpp | rfruesmer/rfx | 96c15a11ee8e2192c9d2ff233924eee884835f17 | [
"MIT"
] | null | null | null | src/rfx/graphics/ShaderCompiler.cpp | rfruesmer/rfx | 96c15a11ee8e2192c9d2ff233924eee884835f17 | [
"MIT"
] | null | null | null | #include "rfx/pch.h"
#include "rfx/graphics/ShaderCompiler.h"
#include "rfx/common/StringUtil.h"
using namespace rfx;
using namespace glslang;
using namespace std;
namespace rfx {
// ---------------------------------------------------------------------------------------------------------------------
EShLanguage fi... | 37.468085 | 120 | 0.615701 | rfruesmer |
d0237d5d9d8be67eead862f7a4432d4d40d43300 | 1,189 | cpp | C++ | tests/config/configurationfixture.cpp | DavidHamburg/mqtt-to-influxdb | 5a306f1186433c7ee426959a53ea575c03d9a4a1 | [
"MIT"
] | null | null | null | tests/config/configurationfixture.cpp | DavidHamburg/mqtt-to-influxdb | 5a306f1186433c7ee426959a53ea575c03d9a4a1 | [
"MIT"
] | null | null | null | tests/config/configurationfixture.cpp | DavidHamburg/mqtt-to-influxdb | 5a306f1186433c7ee426959a53ea575c03d9a4a1 | [
"MIT"
] | null | null | null | #include <catch2/catch.hpp>
#include <string>
#include <libmqtt-to-influxdb/config/configuration.hpp>
class configurationfixture{};
TEST_CASE_METHOD(configurationfixture, "can load valid configuration") {
auto sample = R"(
settings:
influxdb:
database: iot
thermostat:
- topic: "zigbee2mq... | 25.847826 | 80 | 0.590412 | DavidHamburg |
d028efd654f17238eecf7a697b7a41655aecab3e | 3,578 | cpp | C++ | test/eventcollision.cpp | breakin/sednl | 1003b55793b36dbf1d3e652e375d2990f31b3878 | [
"Zlib"
] | 9 | 2015-01-27T16:14:09.000Z | 2016-11-10T00:12:35.000Z | test/eventcollision.cpp | breakin/sednl | 1003b55793b36dbf1d3e652e375d2990f31b3878 | [
"Zlib"
] | 2 | 2016-01-26T13:36:51.000Z | 2017-11-07T13:00:55.000Z | test/eventcollision.cpp | breakin/sednl | 1003b55793b36dbf1d3e652e375d2990f31b3878 | [
"Zlib"
] | 4 | 2021-01-07T08:53:47.000Z | 2022-03-10T00:28:00.000Z | // SEDNL - Copyright (c) 2013 Jeremy S. Cochoy
//
// 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 purpose,
// includi... | 41.126437 | 99 | 0.488262 | breakin |
d02ebb773afc3f29b9aec486947691c0b7af6aa6 | 11,285 | cpp | C++ | qt_float/qt_float_tool/qtfloattool.cpp | silas1037/qt_float_tool | 58be7f489d0febddcf6a9272ad5363271e340a76 | [
"Apache-2.0"
] | null | null | null | qt_float/qt_float_tool/qtfloattool.cpp | silas1037/qt_float_tool | 58be7f489d0febddcf6a9272ad5363271e340a76 | [
"Apache-2.0"
] | null | null | null | qt_float/qt_float_tool/qtfloattool.cpp | silas1037/qt_float_tool | 58be7f489d0febddcf6a9272ad5363271e340a76 | [
"Apache-2.0"
] | 1 | 2020-11-03T06:03:05.000Z | 2020-11-03T06:03:05.000Z | #include "qtfloattool.h"
#include "ui_qtfloattool.h"
#include <QDebug>
#include <QValidator>
#include <QRegExp>
#include <float.h>
#define UPDATE_OPTION_CHECKBOX 1
#define UPDATE_OPTION_USER_INPUT 2
#define UPDATE_OPTION_REAL_FLOAT 4
#define UPDATE_OPTION_HEX 8
#define UPDATE_OPTION_BITS ... | 27.192771 | 86 | 0.663181 | silas1037 |
d030caa59755374feab288f8e39bb2d841aa8689 | 9,104 | cpp | C++ | system-equipment-data/src/gpuinfo.cpp | Sytroxitz/sed | eb751ee51e9c7231f4a76e5906731fca55bee21e | [
"MIT"
] | 1 | 2021-06-24T23:19:03.000Z | 2021-06-24T23:19:03.000Z | system-equipment-data/src/gpuinfo.cpp | Sytroxitz/sed | eb751ee51e9c7231f4a76e5906731fca55bee21e | [
"MIT"
] | null | null | null | system-equipment-data/src/gpuinfo.cpp | Sytroxitz/sed | eb751ee51e9c7231f4a76e5906731fca55bee21e | [
"MIT"
] | null | null | null | #include "headers/gpuinfo.h"
const std::string GPUInfo::NVIDIA_IDENTIFIER_STRING = "NVIDIA";
const std::string GPUInfo::INTEL_IDENTIFIER_STRING = "INTEL";
const std::string GPUInfo::AMD_IDENTIFIER_STRING = "AMD";
const std::string GPUInfo::NAME_IDENTIFIER_STRING = "Name=";
const std::string GPUInfo::MANUFACTURER_IDENT... | 36.8583 | 153 | 0.646309 | Sytroxitz |
d034a054c02450f67ae0f682c7b79be1de52947d | 567 | cpp | C++ | module04/ex01/Enemy.cpp | M-Philippe/cpp_piscine | 9584ebcb030c54ca522dbcf795bdcb13a0325f77 | [
"MIT"
] | null | null | null | module04/ex01/Enemy.cpp | M-Philippe/cpp_piscine | 9584ebcb030c54ca522dbcf795bdcb13a0325f77 | [
"MIT"
] | null | null | null | module04/ex01/Enemy.cpp | M-Philippe/cpp_piscine | 9584ebcb030c54ca522dbcf795bdcb13a0325f77 | [
"MIT"
] | null | null | null | #include "Enemy.hpp"
Enemy::Enemy() {}
Enemy::Enemy(int hp, std::string const& type) {
_hp = hp;
_type = type;
}
Enemy::Enemy(const Enemy& org) {
*this = org;
}
Enemy& Enemy::operator=(const Enemy& org) {
_hp = org._hp;
_type = org._type;
return (*this);
}
Enemy::~Enemy() {}
int Enemy::getHp() const {
re... | 14.921053 | 55 | 0.597884 | M-Philippe |
d03d0bd603fdfb5a67590c267e62338e6a2e3060 | 1,179 | cpp | C++ | umd/ddi/umd_ddi_deferredcontext.cpp | tnamet/Crystal | 9fbce322a014547326ba690092e412d019f1ecb4 | [
"MIT"
] | 2 | 2021-07-09T19:41:39.000Z | 2022-02-01T10:50:05.000Z | umd/ddi/umd_ddi_deferredcontext.cpp | tnamet/Crystal | 9fbce322a014547326ba690092e412d019f1ecb4 | [
"MIT"
] | 1 | 2021-07-09T19:50:40.000Z | 2021-07-10T09:01:38.000Z | umd/ddi/umd_ddi_deferredcontext.cpp | tnamet/Crystal | 9fbce322a014547326ba690092e412d019f1ecb4 | [
"MIT"
] | 1 | 2022-02-01T10:50:08.000Z | 2022-02-01T10:50:08.000Z | #include "pch.h"
namespace Crystal
{
namespace UMD
{
namespace DDI
{
////////////////////////////////////////////////////////////////////////////////
VOID WINAPI CreateDeferredContext(
D3D10DDI_HDEVICE hDevice,
const D3D11DDIARG_CREATEDEFERREDCONTEXT* pCreateDeferredContext )
{
LOG_DLL_ENTRY... | 24.061224 | 81 | 0.518236 | tnamet |
d03d4743fa6bac993003ee16a2fb3c65ac5be83b | 86 | cpp | C++ | src/hal/GPIO_base.cpp | suburbanembedded/emb_util | ded1f54e5c10ce962351416e6b6840dbedb112ba | [
"BSD-3-Clause"
] | null | null | null | src/hal/GPIO_base.cpp | suburbanembedded/emb_util | ded1f54e5c10ce962351416e6b6840dbedb112ba | [
"BSD-3-Clause"
] | null | null | null | src/hal/GPIO_base.cpp | suburbanembedded/emb_util | ded1f54e5c10ce962351416e6b6840dbedb112ba | [
"BSD-3-Clause"
] | null | null | null | #include "hal/GPIO_base.hpp"
GPIO_base::GPIO_base()
{
}
GPIO_base::~GPIO_base()
{
} | 8.6 | 28 | 0.674419 | suburbanembedded |
d03d797fa13e4b039474557606e84c462d3b9c35 | 1,248 | cpp | C++ | RingedOrb/Graphics/roGPUContextManager.cpp | JohnCKangwa/RingedOrb | 7aa8ab642e8938838c86a8d9951b589976f3ebd9 | [
"MIT"
] | null | null | null | RingedOrb/Graphics/roGPUContextManager.cpp | JohnCKangwa/RingedOrb | 7aa8ab642e8938838c86a8d9951b589976f3ebd9 | [
"MIT"
] | null | null | null | RingedOrb/Graphics/roGPUContextManager.cpp | JohnCKangwa/RingedOrb | 7aa8ab642e8938838c86a8d9951b589976f3ebd9 | [
"MIT"
] | null | null | null | #include "roGPUContextManager.h"
#include "roGPUContext12.h"
#include "roCommandAllocator.h"
#include "roCommandQueue.h"
roGPUContext12* roGPUContextManager::GetGPUContext(std::string name) {
std::lock_guard<std::mutex> lg(sm_GPUContexManagerMutex);
roGPUContext12* gpuContext = nullptr;
if (!sm_FreeGPUContextPool... | 28.363636 | 85 | 0.773237 | JohnCKangwa |
d03ec768e65c6cc702d2e1a2a3824cda3c74d951 | 786 | cpp | C++ | essentials/demos/ex-variants/main.cpp | sfaure-witekio/qt-training-material | d166e4ed9cc5f5faab85b0337c5844c4cdcb206e | [
"BSD-3-Clause"
] | 16 | 2017-01-11T17:28:03.000Z | 2021-09-27T16:12:01.000Z | essentials/demos/ex-variants/main.cpp | sfaure-witekio/qt-training-material | d166e4ed9cc5f5faab85b0337c5844c4cdcb206e | [
"BSD-3-Clause"
] | null | null | null | essentials/demos/ex-variants/main.cpp | sfaure-witekio/qt-training-material | d166e4ed9cc5f5faab85b0337c5844c4cdcb206e | [
"BSD-3-Clause"
] | 4 | 2017-03-17T02:44:32.000Z | 2021-01-22T07:57:34.000Z | /*************************************************************************
*
* Copyright (c) 2016 The Qt Company
* All rights reserved.
*
* See the LICENSE.txt file shipped along with this file for the license.
*
*************************************************************************/
#include <QDebug>
#inclu... | 28.071429 | 75 | 0.503817 | sfaure-witekio |
d03f1774db2ae493d4e53fdfe507f6130ec37207 | 121 | cpp | C++ | src/app/kxlol/PlayerObject.cpp | wohaaitinciu/zpublic | 0e4896b16e774d2f87e1fa80f1b9c5650b85c57e | [
"Unlicense"
] | 50 | 2015-01-07T01:54:54.000Z | 2021-01-15T00:41:48.000Z | src/app/kxlol/PlayerObject.cpp | sinmx/ZPublic | 0e4896b16e774d2f87e1fa80f1b9c5650b85c57e | [
"Unlicense"
] | 1 | 2015-05-26T07:40:19.000Z | 2015-05-26T07:40:19.000Z | src/app/kxlol/PlayerObject.cpp | sinmx/ZPublic | 0e4896b16e774d2f87e1fa80f1b9c5650b85c57e | [
"Unlicense"
] | 39 | 2015-01-07T02:03:15.000Z | 2021-01-15T00:41:50.000Z | #include "stdafx.h"
#include "PlayerObject.h"
CPlayerObject::CPlayerObject()
{
}
CPlayerObject::~CPlayerObject()
{
}
| 9.307692 | 31 | 0.710744 | wohaaitinciu |
d0433bff624d617c7e6e0884e323f423bd599b9b | 1,792 | cpp | C++ | solved/f-h/factovisors/factovisors.cpp | abuasifkhan/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | 13 | 2015-09-30T19:18:04.000Z | 2021-06-26T21:11:30.000Z | solved/f-h/factovisors/factovisors.cpp | sbmaruf/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | null | null | null | solved/f-h/factovisors/factovisors.cpp | sbmaruf/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | 13 | 2015-01-04T09:49:54.000Z | 2021-06-03T13:18:44.000Z | #include <cmath>
#include <cstdio>
#include <vector>
using namespace std;
#define cFor(t,v,c) for(t::const_iterator v=c.begin(); v != c.end(); ++v)
typedef pair<int, int> II;
typedef vector<int> IV;
typedef vector<II> IIV;
//
// Number Theory
//
#define IsComp(n) (_c[n>>6]&(1<<((n>>1)&31)))
#define SetCo... | 22.4 | 78 | 0.500558 | abuasifkhan |
d046ce315c7172e9ede50b16af15a29655ee076e | 1,270 | cpp | C++ | School/Grade 10/01. Struct/exercise_3.cpp | slaweykow/School_CPP | d7dda3740f88eb4be925fe478305d8be30ff40fc | [
"MIT"
] | null | null | null | School/Grade 10/01. Struct/exercise_3.cpp | slaweykow/School_CPP | d7dda3740f88eb4be925fe478305d8be30ff40fc | [
"MIT"
] | null | null | null | School/Grade 10/01. Struct/exercise_3.cpp | slaweykow/School_CPP | d7dda3740f88eb4be925fe478305d8be30ff40fc | [
"MIT"
] | null | null | null | #include <cstdlib>
#include <iostream>
using namespace std;
int main(int argc, char *argv[])
{
int n, vazovBooks = 0, softPressBooks = 0;
cout << "Enter a number: ";
cin >> n;
struct Book
{
char name[20];
char author[30];
char publisher[20];
int yearOfRelease;
} books[n];
for(int i = 0; i < n;... | 16.075949 | 73 | 0.546457 | slaweykow |
d04747d9d8bf2af20046ce7ca83bb86c2007c451 | 4,061 | cpp | C++ | weightinit/Init3DGaussWeights.cpp | PetaVision/ObsoletePV | e99a42bf4292e944b252e144b5e07442b0715697 | [
"MIT"
] | null | null | null | weightinit/Init3DGaussWeights.cpp | PetaVision/ObsoletePV | e99a42bf4292e944b252e144b5e07442b0715697 | [
"MIT"
] | null | null | null | weightinit/Init3DGaussWeights.cpp | PetaVision/ObsoletePV | e99a42bf4292e944b252e144b5e07442b0715697 | [
"MIT"
] | null | null | null | /*
* Init3DGaussWeights.cpp
*
* Created on: Sep 6, 2011
* Author: kpeterson
*/
#include "Init3DGaussWeights.hpp"
#include "Init3DGaussWeightsParams.hpp"
namespace PV {
Init3DGaussWeights::Init3DGaussWeights(HyPerConn * conn)
{
initialize_base();
initialize(conn);
}
Init3DGaussWeights::Init3DGaussWe... | 32.488 | 136 | 0.651071 | PetaVision |
d0496181f37b10eda56b1e0fe54a0a1361d3e139 | 1,020 | cpp | C++ | cmake/tests/cxx11_explicit_variadic_templates.cpp | bremerm31/hpx | a9d22b8eb2e443d2e95991da9b1a621f94d4ebaa | [
"BSL-1.0"
] | 3 | 2017-04-06T16:36:38.000Z | 2018-05-19T11:28:54.000Z | cmake/tests/cxx11_explicit_variadic_templates.cpp | bremerm31/hpx | a9d22b8eb2e443d2e95991da9b1a621f94d4ebaa | [
"BSL-1.0"
] | 1 | 2018-08-13T17:42:55.000Z | 2018-08-13T18:20:23.000Z | cmake/tests/cxx11_explicit_variadic_templates.cpp | biddisco/hpx | 2d244e1e27c6e014189a6cd59c474643b31fad4b | [
"BSL-1.0"
] | 2 | 2018-05-25T06:33:50.000Z | 2019-02-25T20:09:13.000Z | // Copyright (C) 2016 Hartmut Kaiser
//
// 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)
template <typename ... Ts>
struct tuple
{
template <typename ... Args>
tuple(Args && ...) {}
};
struct tag1 {};
... | 20.816327 | 80 | 0.642157 | bremerm31 |
d04a0edd2c69e258bbe3efc01adbf602b85a9e75 | 2,949 | cpp | C++ | amot/amot_pool.cpp | sartrey/cpp-memory-pool | 2385ad6734e224524610bbef7430ded8b28c6cb4 | [
"MIT"
] | 3 | 2017-12-01T23:58:36.000Z | 2021-12-31T09:14:30.000Z | amot/amot_pool.cpp | sartrey/cpp-memory-pool | 2385ad6734e224524610bbef7430ded8b28c6cb4 | [
"MIT"
] | null | null | null | amot/amot_pool.cpp | sartrey/cpp-memory-pool | 2385ad6734e224524610bbef7430ded8b28c6cb4 | [
"MIT"
] | null | null | null | #include "amot_pool.h"
#include "amot_setting.h"
#include "amot_factory.h"
#include "amot_block.h"
namespace amot
{
Pool::Pool(Setting* setting)
{
_Setting = (setting == null ? new Setting() : setting);
_MaxBlockCount = _Setting->MaxBlockCount();
_MaxBlockSize = _Setting->MaxBlockSize();
_Factory = new amot... | 17.76506 | 57 | 0.56765 | sartrey |
d050bee744dfb370e0b69dd44b32809706162c4c | 3,461 | cpp | C++ | plan_executor/src/plan_executor_node.cpp | faranik/home_service_robot | e0f88dd7dedd80632de8c9acdf747275caece991 | [
"Unlicense"
] | null | null | null | plan_executor/src/plan_executor_node.cpp | faranik/home_service_robot | e0f88dd7dedd80632de8c9acdf747275caece991 | [
"Unlicense"
] | null | null | null | plan_executor/src/plan_executor_node.cpp | faranik/home_service_robot | e0f88dd7dedd80632de8c9acdf747275caece991 | [
"Unlicense"
] | null | null | null | #include <ros/ros.h>
#include <mover/Move.h>
#include <obj_manipulator/ObjManipulation.h>
class SubscribeAndPublish
{
public:
SubscribeAndPublish()
{
// Register as client of mover service.
moverClient = n.serviceClient<mover::Move>("/robot_mover");
// Register as client of object manipulator servi... | 25.262774 | 100 | 0.598093 | faranik |
d054ba89132f662ee477ef3ba24c3b949b9aea00 | 619 | cpp | C++ | C++/minimize-product-sum-of-two-arrays.cpp | Priyansh2/LeetCode-Solutions | d613da1881ec2416ccbe15f20b8000e36ddf1291 | [
"MIT"
] | 3,269 | 2018-10-12T01:29:40.000Z | 2022-03-31T17:58:41.000Z | C++/minimize-product-sum-of-two-arrays.cpp | Priyansh2/LeetCode-Solutions | d613da1881ec2416ccbe15f20b8000e36ddf1291 | [
"MIT"
] | 53 | 2018-12-16T22:54:20.000Z | 2022-02-25T08:31:20.000Z | C++/minimize-product-sum-of-two-arrays.cpp | Priyansh2/LeetCode-Solutions | d613da1881ec2416ccbe15f20b8000e36ddf1291 | [
"MIT"
] | 1,236 | 2018-10-12T02:51:40.000Z | 2022-03-30T13:30:37.000Z | // Time: O(nlogn)
// Space: O(1)
// Same problem from https://codingcompetitions.withgoogle.com/codejam/round/00000000004330f6/0000000000432f33
class Solution {
public:
int minProductSum(vector<int>& nums1, vector<int>& nums2) {
sort(begin(nums1), end(nums1));
sort(begin(nums2), end(nums2), greate... | 28.136364 | 110 | 0.602585 | Priyansh2 |
d05664f8155c74396e3bad5f9d446f7cb3482518 | 3,476 | cpp | C++ | raygun/window.cpp | maggo007/Raygun | f6be537c835976a9d6cc356ebe187feba6592847 | [
"MIT"
] | null | null | null | raygun/window.cpp | maggo007/Raygun | f6be537c835976a9d6cc356ebe187feba6592847 | [
"MIT"
] | null | null | null | raygun/window.cpp | maggo007/Raygun | f6be537c835976a9d6cc356ebe187feba6592847 | [
"MIT"
] | null | null | null | // The MIT License (MIT)
//
// Copyright (c) 2019,2020 The Raygun Authors.
//
// 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 the
// right... | 29.210084 | 87 | 0.70397 | maggo007 |
d058b71a6258272b18705f1098ca96bc45d3dda2 | 2,839 | cc | C++ | src/arch/os2/fonts/bdf2fnt.cc | swingflip/C64_mini_VICE | 7a6d9d41ae60409a2bb985bb8d6324a7269a0daa | [
"Apache-2.0"
] | 2 | 2018-11-15T19:52:34.000Z | 2022-01-17T19:45:01.000Z | src/arch/os2/fonts/bdf2fnt.cc | Classicmods/C64_mini_VICE | 7a6d9d41ae60409a2bb985bb8d6324a7269a0daa | [
"Apache-2.0"
] | null | null | null | src/arch/os2/fonts/bdf2fnt.cc | Classicmods/C64_mini_VICE | 7a6d9d41ae60409a2bb985bb8d6324a7269a0daa | [
"Apache-2.0"
] | 3 | 2019-06-30T05:37:04.000Z | 2021-12-04T17:12:35.000Z | #include <iostream.h>
#include <fstream.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
/**************************************************************
*
* To create a header file:
* create a font, with:
* - fixed size
* - width & height = 8
* - no empty characters
*
******************... | 21.02963 | 81 | 0.349771 | swingflip |
d05cb25d6fb6975e8a03a636d9fc58438d662120 | 5,298 | cpp | C++ | src/popnode-payments.cpp | POPChainFoundation/PopChain-Original | a99f5fbdf6ca96a281491482530c20a4c5915492 | [
"MIT"
] | 20 | 2018-04-28T06:38:05.000Z | 2018-07-28T04:44:42.000Z | src/popnode-payments.cpp | POPChainFoundation/PopChain-Original | a99f5fbdf6ca96a281491482530c20a4c5915492 | [
"MIT"
] | 2 | 2018-05-15T15:14:36.000Z | 2018-05-18T00:51:48.000Z | src/popnode-payments.cpp | POPChainFoundation/PopChain-Original | a99f5fbdf6ca96a281491482530c20a4c5915492 | [
"MIT"
] | 7 | 2018-05-15T12:28:19.000Z | 2018-08-23T04:59:39.000Z | // Copyright (c) 2017-2018 The Popchain Core Developers
#include "activepopnode.h"
#include "popsend.h"
#include "superblock.h"
#include "popnode-payments.h"
#include "popnode-sync.h"
#include "popnodeman.h"
#include "netfulfilledman.h"
#include "fork.h"
#include "util.h"
#include <boost/lexical_cast.hpp>
// Popchai... | 42.725806 | 169 | 0.671763 | POPChainFoundation |
d0602212038a7f84a9d844517c89923af79b09d2 | 653 | cpp | C++ | leetcode/problems/easy/171-excel-sheet-column-number.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | 18 | 2020-08-27T05:27:50.000Z | 2022-03-08T02:56:48.000Z | leetcode/problems/easy/171-excel-sheet-column-number.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | null | null | null | leetcode/problems/easy/171-excel-sheet-column-number.cpp | wingkwong/competitive-programming | e8bf7aa32e87b3a020b63acac20e740728764649 | [
"MIT"
] | 1 | 2020-10-13T05:23:58.000Z | 2020-10-13T05:23:58.000Z | /*
Excel Sheet Column Number
Given a column title as appear in an Excel sheet, return its corresponding column number.
For example:
A -> 1
B -> 2
C -> 3
...
Z -> 26
AA -> 27
AB -> 28
...
Example 1:
Input: "A"
Output: 1
Example 2:
Input: "AB"
Output: 28
Example 3:
Input: "ZY"
Outpu... | 14.840909 | 89 | 0.586524 | wingkwong |
d065e7190a94e25235fdc4c1eed0d6899d3398ef | 624 | cpp | C++ | functions/tests/test_matrix_polynomial.cpp | GuylainGreer/manifolds | 96f996f67fc523c726f2edbc9705125c212bedae | [
"MIT"
] | null | null | null | functions/tests/test_matrix_polynomial.cpp | GuylainGreer/manifolds | 96f996f67fc523c726f2edbc9705125c212bedae | [
"MIT"
] | null | null | null | functions/tests/test_matrix_polynomial.cpp | GuylainGreer/manifolds | 96f996f67fc523c726f2edbc9705125c212bedae | [
"MIT"
] | null | null | null | #include "functions/integral_polynomial.hh"
#include "functions/polynomial.hh"
#include "functions/operators.hh"
#include <boost/test/unit_test.hpp>
#include <complex>
#include "functions/std_functions.hh"
#include "functions/all_simplifications.hh"
#include "data/matrix.hh"
BOOST_AUTO_TEST_CASE(matrix_polynomial_test... | 27.130435 | 53 | 0.700321 | GuylainGreer |
d0695d8829baa159a8e0ee1176b9b1e7e50ee294 | 16,093 | cpp | C++ | ie/src/v20200304/model/VideoInfo.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 43 | 2019-08-14T08:14:12.000Z | 2022-03-30T12:35:09.000Z | ie/src/v20200304/model/VideoInfo.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 12 | 2019-07-15T10:44:59.000Z | 2021-11-02T12:35:00.000Z | ie/src/v20200304/model/VideoInfo.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 28 | 2019-07-12T09:06:22.000Z | 2022-03-30T08:04:18.000Z | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. 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
... | 27.276271 | 138 | 0.650531 | suluner |
d06a32013ce8c96441c19e00767beda7a8842d24 | 4,461 | hpp | C++ | library/L1_Peripheral/can.hpp | WilliamMajor/SJSU-Dev2 | 8c9f0a0791448d0f6b7ce161e597cf41ca3119a0 | [
"Apache-2.0"
] | null | null | null | library/L1_Peripheral/can.hpp | WilliamMajor/SJSU-Dev2 | 8c9f0a0791448d0f6b7ce161e597cf41ca3119a0 | [
"Apache-2.0"
] | null | null | null | library/L1_Peripheral/can.hpp | WilliamMajor/SJSU-Dev2 | 8c9f0a0791448d0f6b7ce161e597cf41ca3119a0 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <algorithm>
#include <array>
#include <cstddef>
#include <cstdint>
#include <initializer_list>
#include <span>
#include "module.hpp"
#include "utility/error_handling.hpp"
namespace sjsu
{
/// The common interface for the CANBUS peripherals.
/// @ingroup l1_peripheral
class Can : public Module
{... | 30.979167 | 80 | 0.541134 | WilliamMajor |
d06e64e56865d0d82cde4d50ad23a0a47a38fe24 | 2,327 | cpp | C++ | src/loop053.cpp | TannerRogalsky/Demoloops | 13cb7c4b1bba892c24ddb8bbd78f4953b9c9a9d5 | [
"MIT"
] | 4 | 2016-11-07T12:50:14.000Z | 2020-04-30T19:48:05.000Z | src/loop053.cpp | TannerRogalsky/Demoloops | 13cb7c4b1bba892c24ddb8bbd78f4953b9c9a9d5 | [
"MIT"
] | 1 | 2017-04-17T12:00:16.000Z | 2017-04-17T12:00:16.000Z | src/loop053.cpp | TannerRogalsky/Demoloops | 13cb7c4b1bba892c24ddb8bbd78f4953b9c9a9d5 | [
"MIT"
] | null | null | null |
#include "demoloop.h"
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/rotate_vector.hpp>
#include "graphics/shader.h"
using namespace std;
using namespace demoloop;
const uint32_t CYCLE_LENGTH = 10;
const static std::string shaderCode = R"===(
uniform mediump float cycle_ratio;
#define DEMOLOOP_M_PI 3.141... | 24.494737 | 132 | 0.647185 | TannerRogalsky |
d072bf8e980a2e0ac029242b4a64e4fb5df6e8ee | 5,214 | cc | C++ | src/lib/dhcpsrv/logging.cc | sebschrader/debian-pkg-isc-kea | 1bdb18f90c48dd9674374fb8454d0efb846656bc | [
"Apache-2.0"
] | 1 | 2017-08-24T19:55:21.000Z | 2017-08-24T19:55:21.000Z | src/lib/dhcpsrv/logging.cc | sebschrader/debian-pkg-isc-kea | 1bdb18f90c48dd9674374fb8454d0efb846656bc | [
"Apache-2.0"
] | null | null | null | src/lib/dhcpsrv/logging.cc | sebschrader/debian-pkg-isc-kea | 1bdb18f90c48dd9674374fb8454d0efb846656bc | [
"Apache-2.0"
] | null | null | null | // Copyright (C) 2014-2015 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include <config.h>
#include <cc/data.h>
#inc... | 34.078431 | 90 | 0.614308 | sebschrader |
4edc0a48fc07cea0a6389c1b9d6a866cc57a209b | 10,801 | hh | C++ | src/FractalStruct/misc_class.hh | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 22 | 2018-07-31T21:38:22.000Z | 2020-06-29T08:58:33.000Z | src/FractalStruct/misc_class.hh | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 41 | 2020-09-28T23:14:27.000Z | 2022-03-28T17:01:33.000Z | src/FractalStruct/misc_class.hh | markguozhiming/spheral | bbb982102e61edb8a1d00cf780bfa571835e1b61 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 7 | 2019-12-01T07:00:06.000Z | 2020-09-15T21:12:39.000Z | #ifndef _Misc_Defined_
#define _Misc_Defined_
#include <vector>
#include <fstream>
namespace FractalSpace
{
class Misc
{
bool debug;
public:
Group* p_group_0;
int zoom;
int grid_multiply;
static int dim0;
static int dim1;
static int dim2;
Misc()
{
assert(this);
de... | 26.868159 | 163 | 0.535321 | jmikeowen |
4ee2c7138c8c781c8b3996d4ab39a98f9f204452 | 1,316 | cpp | C++ | src/materialsystem/stdshaders/viewalpha.cpp | DeadZoneLuna/csso-src | 6c978ea304ee2df3796bc9c0d2916bac550050d5 | [
"Unlicense"
] | 4 | 2021-10-03T05:16:55.000Z | 2021-12-28T16:49:27.000Z | src/materialsystem/stdshaders/viewalpha.cpp | cafeed28/what | 08e51d077f0eae50afe3b592543ffa07538126f5 | [
"Unlicense"
] | null | null | null | src/materialsystem/stdshaders/viewalpha.cpp | cafeed28/what | 08e51d077f0eae50afe3b592543ffa07538126f5 | [
"Unlicense"
] | 3 | 2022-02-02T18:09:58.000Z | 2022-03-06T18:54:39.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $Header: $
// $NoKeywords: $
//===========================================================================//
#include "shaderlib/cshader.h"
// memdbgon must be the last include file in a .cpp file!!!
#include "tier0/mem... | 26.857143 | 79 | 0.703647 | DeadZoneLuna |
4ee4dd0412257db61f5f79339226297cd5c50c6e | 4,710 | hpp | C++ | INCLUDE/Vcl/ClxSprigs.hpp | earthsiege2/borland-cpp-ide | 09bcecc811841444338e81b9c9930c0e686f9530 | [
"Unlicense",
"FSFAP",
"Apache-1.1"
] | 1 | 2022-01-13T01:03:55.000Z | 2022-01-13T01:03:55.000Z | INCLUDE/Vcl/ClxSprigs.hpp | earthsiege2/borland-cpp-ide | 09bcecc811841444338e81b9c9930c0e686f9530 | [
"Unlicense",
"FSFAP",
"Apache-1.1"
] | null | null | null | INCLUDE/Vcl/ClxSprigs.hpp | earthsiege2/borland-cpp-ide | 09bcecc811841444338e81b9c9930c0e686f9530 | [
"Unlicense",
"FSFAP",
"Apache-1.1"
] | null | null | null | // Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved
// (DO NOT EDIT: machine generated header) 'ClxSprigs.pas' rev: 6.00
#ifndef ClxSprigsHPP
#define ClxSprigsHPP
#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Tre... | 32.482759 | 131 | 0.712527 | earthsiege2 |
4eeb93e160da13cf980f0e9e184f807dce735f0c | 9,864 | cpp | C++ | TitaniumRose/src/Platform/D3D12/D3D12DeviceResources.cpp | Zinadore/Hazel-D3D12 | 084cf9a473b6c66a2890f107667f687d6c7ed0a0 | [
"Apache-2.0"
] | null | null | null | TitaniumRose/src/Platform/D3D12/D3D12DeviceResources.cpp | Zinadore/Hazel-D3D12 | 084cf9a473b6c66a2890f107667f687d6c7ed0a0 | [
"Apache-2.0"
] | null | null | null | TitaniumRose/src/Platform/D3D12/D3D12DeviceResources.cpp | Zinadore/Hazel-D3D12 | 084cf9a473b6c66a2890f107667f687d6c7ed0a0 | [
"Apache-2.0"
] | null | null | null | #include "trpch.h"
#include "D3D12DeviceResources.h"
#include "D3D12Helpers.h"
namespace Roses {
D3D12DeviceResources::D3D12DeviceResources(UINT bufferCount)
{
if (bufferCount < 2) {
HZ_CORE_ERROR("Buffer count cannot be less than 2. Was give {0}", bufferCount);
bufferCount = 2;... | 40.261224 | 238 | 0.679136 | Zinadore |
4eec55e37180c62ea9113fecfc1feb071b46e1cf | 1,541 | hpp | C++ | Acid/include/acid/Events/Observer.hpp | Equilibrium-Games/Acid-Sharp | 7b079a052e3e03f90fd4a4190184f1fbe765ca58 | [
"MIT"
] | 3 | 2018-10-19T23:33:37.000Z | 2019-04-07T11:46:44.000Z | Sources/Events/Observer.hpp | sum01/Acid | d921472e062fc26b87c0163918aab553ac20739a | [
"MIT"
] | null | null | null | Sources/Events/Observer.hpp | sum01/Acid | d921472e062fc26b87c0163918aab553ac20739a | [
"MIT"
] | null | null | null | #pragma once
#include <functional>
#include <vector>
#include "Engine/Exports.hpp"
namespace acid
{
/// <summary>
/// A class that holds a array of subscribed event callbacks.
/// </summary>
template<typename ...Args>
class Observer
{
private:
std::vector<std::function<void(Args...)>> m_subscribed;
public:
... | 22.333333 | 84 | 0.622972 | Equilibrium-Games |
4eed2954463a514c143da9a5834d85f615748ed3 | 3,752 | hpp | C++ | include/codegen/include/GlobalNamespace/HowToPlayViewController.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/GlobalNamespace/HowToPlayViewController.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/GlobalNamespace/HowToPlayViewController.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
// Including type: HMUI.ViewController
#include "HMUI/ViewController.hpp"
... | 41.688889 | 142 | 0.74307 | Futuremappermydud |
4eed9f47912298bee34b66e0dde1049d76534c9c | 46,516 | cpp | C++ | test/unittest_uart.cpp | NewJapanRadio/NJU9103_eva_mcu | f5eaef3e2ff8dcde9e7334f40ae8ab2fcec13fbc | [
"MIT"
] | 1 | 2018-03-20T08:31:57.000Z | 2018-03-20T08:31:57.000Z | test/unittest_uart.cpp | NewJapanRadio/NJU9103_eva_mcu | f5eaef3e2ff8dcde9e7334f40ae8ab2fcec13fbc | [
"MIT"
] | null | null | null | test/unittest_uart.cpp | NewJapanRadio/NJU9103_eva_mcu | f5eaef3e2ff8dcde9e7334f40ae8ab2fcec13fbc | [
"MIT"
] | null | null | null | #include <limits.h>
#define private public
#include "nju9103.h"
#undef private
#include "gtest/gtest.h"
#include <stdio.h>
using namespace ::testing;
extern Packet rxPacket;
extern ReceiveDataStatus receiveDataStatus;
extern Command command;
extern NewJapanRadio::Serial uart;
extern NewJapanRadio::Timer packetWat... | 32.642807 | 123 | 0.573996 | NewJapanRadio |
4ef3b5c42c10e5060eadccf67795828260d1a368 | 21,406 | cpp | C++ | WonderBrush/src/gui/listviews/ListViews.cpp | waddlesplash/WonderBrush-v2 | df20b6a43115d02e4606c71f27d0712ac2aebb62 | [
"MIT"
] | 11 | 2018-11-10T11:14:11.000Z | 2021-12-27T17:17:08.000Z | WonderBrush/src/gui/listviews/ListViews.cpp | waddlesplash/WonderBrush-v2 | df20b6a43115d02e4606c71f27d0712ac2aebb62 | [
"MIT"
] | 27 | 2018-11-11T00:06:25.000Z | 2021-06-24T06:43:38.000Z | WonderBrush/src/gui/listviews/ListViews.cpp | waddlesplash/WonderBrush-v2 | df20b6a43115d02e4606c71f27d0712ac2aebb62 | [
"MIT"
] | 7 | 2018-11-10T20:32:49.000Z | 2021-03-15T18:03:42.000Z | // ListViews.cpp
#include <stdio.h>
#include <malloc.h>
#include <Bitmap.h>
#include <Cursor.h>
#include <Entry.h>
#include <MessageRunner.h>
#include <Messenger.h>
#include <ScrollBar.h>
#include <ScrollView.h>
#include <String.h>
#include <Window.h>
#include "cursors.h"
#include "ListViews.h"
#define MAX_DRAG_HE... | 23.705426 | 94 | 0.674437 | waddlesplash |
4efbe771379047c03250c09e4ebd4a9f154e18b8 | 10,823 | cpp | C++ | Engine/Interface/UITextureManager.cpp | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | 1 | 2022-02-14T15:46:44.000Z | 2022-02-14T15:46:44.000Z | Engine/Interface/UITextureManager.cpp | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | null | null | null | Engine/Interface/UITextureManager.cpp | openlastchaos/lastchaos-source-client | 3d88594dba7347b1bb45378136605e31f73a8555 | [
"Apache-2.0"
] | 2 | 2022-01-10T22:17:06.000Z | 2022-01-17T09:34:08.000Z | #include "stdh.h"
#include <Engine/Interface/UITextureManager.h>
#include <Engine/Interface/UIManager.h>
#include <Engine/Help/DefineHelp.h>
// ----------------------------------------------------------------------------
// Name : CUIFontTextureManager()
// Desc : Constructor
// --------------------------------------... | 25.111369 | 79 | 0.583849 | openlastchaos |
4efe07d47b67960cc0d7ebd883582a768ecb5828 | 1,230 | hpp | C++ | include/range/v3/utility/tagged_tuple.hpp | seewpx/range-v3 | 8527a9741518dd61082bc3e2139aed8ecb5da4f6 | [
"MIT"
] | 3,436 | 2015-01-05T14:27:21.000Z | 2022-03-31T07:56:04.000Z | include/range/v3/utility/tagged_tuple.hpp | seewpx/range-v3 | 8527a9741518dd61082bc3e2139aed8ecb5da4f6 | [
"MIT"
] | 1,197 | 2015-01-01T21:27:32.000Z | 2022-03-29T17:46:09.000Z | include/range/v3/utility/tagged_tuple.hpp | seewpx/range-v3 | 8527a9741518dd61082bc3e2139aed8ecb5da4f6 | [
"MIT"
] | 490 | 2015-01-04T00:18:04.000Z | 2022-03-25T18:59:43.000Z | /// \file
// Range v3 library
//
// Copyright Eric Niebler 2013-present
//
// Use, modification and distribution is subject to the
// Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
// Project home: https://github.com/ericniebler... | 26.73913 | 86 | 0.73252 | seewpx |
4efedbb5006b17af465fa191aaf495036daebabd | 1,169 | cpp | C++ | gecode/string/tests/str_ex10.cpp | ramadini/gecode | ff0d261486a67f66895850a771f161bfa8bf9839 | [
"MIT-feh"
] | 1 | 2021-05-26T13:27:00.000Z | 2021-05-26T13:27:00.000Z | gecode/string/tests/str_ex10.cpp | ramadini/gecode | ff0d261486a67f66895850a771f161bfa8bf9839 | [
"MIT-feh"
] | null | null | null | gecode/string/tests/str_ex10.cpp | ramadini/gecode | ff0d261486a67f66895850a771f161bfa8bf9839 | [
"MIT-feh"
] | null | null | null | #include <gecode/string.hh>
#include <gecode/driver.hh>
using namespace Gecode;
using namespace String;
class StringOptions : public Options {
public:
StringOptions(const char* s): Options(s) { }
};
class Ex10 : public Script {
StringVarArray string_vars;
public:
static bool unsat;
Ex10(Ex10& s): ... | 18.854839 | 53 | 0.612489 | ramadini |
4eff64c9ba8fd2cc001e1de93b7726fefc97ede3 | 542 | hpp | C++ | include/mango/image/quantize.hpp | JessyDL/mango | 8db9632fb2e81ba0a13129d3d19019688fab7bd1 | [
"Zlib"
] | null | null | null | include/mango/image/quantize.hpp | JessyDL/mango | 8db9632fb2e81ba0a13129d3d19019688fab7bd1 | [
"Zlib"
] | null | null | null | include/mango/image/quantize.hpp | JessyDL/mango | 8db9632fb2e81ba0a13129d3d19019688fab7bd1 | [
"Zlib"
] | null | null | null | /*
MANGO Multimedia Development Platform
Copyright (C) 2012-2019 Twilight Finland 3D Oy Ltd. All rights reserved.
*/
#pragma once
#include "format.hpp"
#include "surface.hpp"
namespace mango {
namespace image {
struct ColorQuantizeOptions
{
float quality = 0.90f;
bool dithering = true... | 19.357143 | 103 | 0.666052 | JessyDL |
f60116f898c6d861145323ac507b1906e7d7b73f | 7,506 | cpp | C++ | Plugins/AdvKitPlugin/Source/AdvKitRuntime/Private/Environment/BuildModules/AdvKitBuildModule_Ledge_Tightspace.cpp | crimsonstrife/velorum-defunct | 1a6e1eab9057293da2aa045eff021d069df54c5e | [
"CC0-1.0"
] | null | null | null | Plugins/AdvKitPlugin/Source/AdvKitRuntime/Private/Environment/BuildModules/AdvKitBuildModule_Ledge_Tightspace.cpp | crimsonstrife/velorum-defunct | 1a6e1eab9057293da2aa045eff021d069df54c5e | [
"CC0-1.0"
] | null | null | null | Plugins/AdvKitPlugin/Source/AdvKitRuntime/Private/Environment/BuildModules/AdvKitBuildModule_Ledge_Tightspace.cpp | crimsonstrife/velorum-defunct | 1a6e1eab9057293da2aa045eff021d069df54c5e | [
"CC0-1.0"
] | null | null | null | // Copyright 2015 Pascal Krabbe
#include "AdvKitRuntime.h"
#include "AdvKitTypes.h"
#include "Player/AdvKitCharacter.h"
#include "Environment/Zones/AdvKitZoneLine.h"
#include "Environment/BuildModules/AdvKitBuildModule_Ledge_Tightspace.h"
#include "Environment/Transitions/AdvKitTransitionComponentPoint.h"
#include "E... | 37.343284 | 186 | 0.800693 | crimsonstrife |
f6123fa6b3077eb7e373405e3b46a8c3782910e2 | 562 | hpp | C++ | include/Quasura/Common.hpp | jcoder39/Quasura | f6a8b43620aa77f5488327f0cfe4773b7301bae4 | [
"MIT"
] | null | null | null | include/Quasura/Common.hpp | jcoder39/Quasura | f6a8b43620aa77f5488327f0cfe4773b7301bae4 | [
"MIT"
] | null | null | null | include/Quasura/Common.hpp | jcoder39/Quasura | f6a8b43620aa77f5488327f0cfe4773b7301bae4 | [
"MIT"
] | null | null | null | /*
* Common.hpp
*
* Created by Viacheslav Borisenko
*
* Copyright (c) 2018 spectrobyte http://spectrobyte.com
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*
*/
#ifndef QUASURA_COMMON_HPP
#define QUASURA_COMMON_HPP
#... | 24.434783 | 65 | 0.729537 | jcoder39 |
f61a3522035b21de3e09acb93bb718ef63a77de5 | 1,181 | cc | C++ | checkcsa.cc | super-mini-shogi/dobutsu | c93425078fe0b07441fce260da1842c60a8b397f | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | checkcsa.cc | super-mini-shogi/dobutsu | c93425078fe0b07441fce260da1842c60a8b397f | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | checkcsa.cc | super-mini-shogi/dobutsu | c93425078fe0b07441fce260da1842c60a8b397f | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-12-28T07:44:45.000Z | 2019-12-28T07:44:45.000Z | /**
* csa形式の棋譜ファイルを読み込んで,それぞれの手の勝敗をチェックする
*/
#include "allStateTable.h"
#include "dobutsu.h"
#include "winLoseTable.h"
void usage() { std::cerr << "Usage: checkcsa csafile" << std::endl; }
int main(int ac, char **ag) {
if (ac < 2) {
usage();
}
vMove moves = readMoveFile(ag[1]);
AllStateTable allS("allst... | 27.465116 | 76 | 0.510584 | super-mini-shogi |
f61a88b2e0953f9770cd66cea0d3d7921318da9f | 10,310 | cc | C++ | src/vt/vrt/collection/balance/read_lb.cc | rbuch/vt | 74c2e0cae3201dfbcbfda7644c354703ddaed6bb | [
"BSD-3-Clause"
] | 26 | 2019-11-26T08:36:15.000Z | 2022-02-15T17:13:21.000Z | src/vt/vrt/collection/balance/read_lb.cc | rbuch/vt | 74c2e0cae3201dfbcbfda7644c354703ddaed6bb | [
"BSD-3-Clause"
] | 1,215 | 2019-09-09T14:31:33.000Z | 2022-03-30T20:20:14.000Z | src/vt/vrt/collection/balance/read_lb.cc | rbuch/vt | 74c2e0cae3201dfbcbfda7644c354703ddaed6bb | [
"BSD-3-Clause"
] | 12 | 2019-09-08T00:03:05.000Z | 2022-02-23T21:28:35.000Z | /*
//@HEADER
// *****************************************************************************
//
// read_lb.cc
// DARMA/vt => Virtual Transport
//
// Copyright 2019-2021 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS). Under the terms of Contr... | 27.789757 | 81 | 0.610572 | rbuch |
f61b9ef994f4a86b570db2d439160792d47021a6 | 38,946 | cpp | C++ | Eudora71/Eudora/PaigeStyle.cpp | dusong7/eudora-win | 850a6619e6b0d5abc770bca8eb5f3b9001b7ccd2 | [
"BSD-3-Clause-Clear"
] | 10 | 2018-05-23T10:43:48.000Z | 2021-12-02T17:59:48.000Z | Eudora71/Eudora/PaigeStyle.cpp | dusong7/eudora-win | 850a6619e6b0d5abc770bca8eb5f3b9001b7ccd2 | [
"BSD-3-Clause-Clear"
] | 1 | 2019-03-19T03:56:36.000Z | 2021-05-26T18:36:03.000Z | Eudora71/Eudora/PaigeStyle.cpp | evilneuro/eudora-win | 850a6619e6b0d5abc770bca8eb5f3b9001b7ccd2 | [
"BSD-3-Clause-Clear"
] | 11 | 2018-05-23T10:43:53.000Z | 2021-12-27T15:42:58.000Z | // PaigeStyle.cpp : implementation file
//
// Copyright (c) 1997-2001 by QUALCOMM, Incorporated
/* Copyright (c) 2016, Computer History Museum
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted (subject to
the limitations in the disclaimer below) p... | 30.237578 | 145 | 0.69527 | dusong7 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.