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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1e1fa20d104929410e212682c30692a0aeafa0d6 | 487 | hpp | C++ | PP/concepts/pointer_to_member.hpp | Petkr/PP | 646cc156603a6a9461e74d8f54786c0d5a9c32d2 | [
"MIT"
] | 3 | 2019-07-12T23:12:24.000Z | 2019-09-05T07:57:45.000Z | PP/concepts/pointer_to_member.hpp | Petkr/PP | 646cc156603a6a9461e74d8f54786c0d5a9c32d2 | [
"MIT"
] | null | null | null | PP/concepts/pointer_to_member.hpp | Petkr/PP | 646cc156603a6a9461e74d8f54786c0d5a9c32d2 | [
"MIT"
] | null | null | null | #pragma once
#include <PP/compose.hpp>
#include <PP/get_type.hpp>
#include <PP/overloaded.hpp>
#include <PP/remove_cv.hpp>
namespace PP
{
PP_CIA is_pointer_to_member =
compose(overloaded(
[]<typename T, typename Class>(type_t<T Class::*>)
{
return true;
... | 21.173913 | 66 | 0.49692 | Petkr |
1e2d13ac8bc4481b41902a0b91138e16ac003f56 | 1,427 | cpp | C++ | src/viewer/GlErrors.cpp | serserar/ModelConverter | 23e6237a347dc959de191d4cc378defb0a9d044b | [
"MIT"
] | null | null | null | src/viewer/GlErrors.cpp | serserar/ModelConverter | 23e6237a347dc959de191d4cc378defb0a9d044b | [
"MIT"
] | null | null | null | src/viewer/GlErrors.cpp | serserar/ModelConverter | 23e6237a347dc959de191d4cc378defb0a9d044b | [
"MIT"
] | null | null | null | /* -*- c++ -*- */
/////////////////////////////////////////////////////////////////////////////
//
// GlErrors.cpp -- Copyright (c) 2006-2007 David Henry
// last modification: jan. 24, 2007
//
// This code is licenced under the MIT license.
//
// This software is provided "as is" without express or implied
// warranti... | 26.924528 | 77 | 0.537491 | serserar |
1e35abe759f50e9a5cb976bc75ffd4aa1dedfa94 | 1,595 | cpp | C++ | src/RDP/Unity/main.cpp | RoboticsDevelopmentProjects/spp-base-library | f8e1be763da49fd226b708e5aeeaaccc2ef37246 | [
"MIT"
] | null | null | null | src/RDP/Unity/main.cpp | RoboticsDevelopmentProjects/spp-base-library | f8e1be763da49fd226b708e5aeeaaccc2ef37246 | [
"MIT"
] | null | null | null | src/RDP/Unity/main.cpp | RoboticsDevelopmentProjects/spp-base-library | f8e1be763da49fd226b708e5aeeaaccc2ef37246 | [
"MIT"
] | null | null | null | #include "Unity.h"
#include <ros/ros.h>
#if 0
#include <ros/ros.h>
#include <std_msgs/Empty.h>
int main(int argc, char *argv[]){
ros::init(argc, argv, "Unity");
ros::NodeHandle node;
ros::Publisher pub = node.advertise<std_msgs::Empty>("startSpeechRecognition", 100);
ros::Rate loopRate(5);
... | 19.45122 | 88 | 0.618182 | RoboticsDevelopmentProjects |
1e380c5622561779bd3440e733a1cf5ec7ffc016 | 29,728 | cpp | C++ | videowidget.cpp | Svensational/TrackIt | 7dc9d24ce4a7fb7ed79f0f915027316d9b225cb1 | [
"MIT"
] | null | null | null | videowidget.cpp | Svensational/TrackIt | 7dc9d24ce4a7fb7ed79f0f915027316d9b225cb1 | [
"MIT"
] | null | null | null | videowidget.cpp | Svensational/TrackIt | 7dc9d24ce4a7fb7ed79f0f915027316d9b225cb1 | [
"MIT"
] | null | null | null | #include "videowidget.h"
#include <iostream>
#include <QtCore/QTimer>
#include <QtGui/QFileDialog>
#include <QtGui/QFormLayout>
#include <QtGui/QLabel>
#include <QtGui/QMessageBox>
#include <QtGui/QPushButton>
#include <QtGui/QSpinBox>
#include <QtGui/QWheelEvent>
#include <opencv2/core/core.hpp>
#include <GL/glext.h>
... | 30.806218 | 133 | 0.623856 | Svensational |
1e3b07d31cedae760548d839efa3e6f79d63eb23 | 13,976 | cpp | C++ | src/core/Common.cpp | BlauHimmel/Hikari | 38746e5d03a8e106a346a6f792f3093034a576bb | [
"MIT"
] | 11 | 2018-11-22T03:07:10.000Z | 2022-03-31T15:51:29.000Z | src/core/Common.cpp | BlauHimmel/Hikari | 38746e5d03a8e106a346a6f792f3093034a576bb | [
"MIT"
] | 2 | 2019-02-14T15:05:42.000Z | 2019-07-26T06:07:13.000Z | src/core/Common.cpp | BlauHimmel/Hikari | 38746e5d03a8e106a346a6f792f3093034a576bb | [
"MIT"
] | 4 | 2018-12-18T12:40:07.000Z | 2022-03-31T15:51:31.000Z | #include <core\Common.hpp>
#include <core\Object.hpp>
#include <core\Vector.hpp>
#if defined(__PLATFORM_LINUX__)
#include <malloc.h>
#endif
#if defined(__PLATFORM_WINDOWS__)
#include <windows.h>
#endif
#if defined(__PLATFORM_MACOS__)
#include <sys/sysctl.h>
#endif
NAMESPACE_BEGIN
int GetCoreCount()
{
return int(s... | 22.009449 | 114 | 0.607112 | BlauHimmel |
1e4168f58d211abc3e375778731a52f68592f23a | 112,298 | cpp | C++ | 01.Firmware/components/FabGL/examples/VGA/MultitaskingCPM/src/BDOS.cpp | POMIN-163/xbw | ebda2fb925ec54e48e806ba1c3cd4e04a7b25368 | [
"Apache-2.0"
] | 5 | 2022-02-14T03:12:57.000Z | 2022-03-06T11:58:31.000Z | 01.Firmware/components/FabGL/examples/VGA/MultitaskingCPM/src/BDOS.cpp | POMIN-163/xbw | ebda2fb925ec54e48e806ba1c3cd4e04a7b25368 | [
"Apache-2.0"
] | null | null | null | 01.Firmware/components/FabGL/examples/VGA/MultitaskingCPM/src/BDOS.cpp | POMIN-163/xbw | ebda2fb925ec54e48e806ba1c3cd4e04a7b25368 | [
"Apache-2.0"
] | 4 | 2022-02-23T07:00:59.000Z | 2022-03-10T03:58:11.000Z | /*
Created by Fabrizio Di Vittorio (fdivitto2013@gmail.com) - <http://www.fabgl.com>
Copyright (c) 2019-2021 Fabrizio Di Vittorio.
All rights reserved.
* Please contact fdivitto2013@gmail.com if you need a commercial license.
* This library and related software is available under GPL v3.
FabGL is free soft... | 25.833448 | 171 | 0.623012 | POMIN-163 |
1e420b0407854e8f026b8e07ba0a6796441cbb1e | 6,541 | cpp | C++ | Source/ArchQOR/x86/Assembler/BatchCPU/i586CPU.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 9 | 2016-05-27T01:00:39.000Z | 2021-04-01T08:54:46.000Z | Source/ArchQOR/x86/Assembler/BatchCPU/i586CPU.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 1 | 2016-03-03T22:54:08.000Z | 2016-03-03T22:54:08.000Z | Source/ArchQOR/x86/Assembler/BatchCPU/i586CPU.cpp | mfaithfull/QOR | 0fa51789344da482e8c2726309265d56e7271971 | [
"BSL-1.0"
] | 4 | 2016-05-27T01:00:43.000Z | 2018-08-19T08:47:49.000Z | //i586CPU.cpp
// Copyright (c) 2008-2010, Petr Kobalicek <kobalicek.petr@gmail.com>
// Copyright (c) Querysoft Limited 2013
//
// Permission is hereby granted, free of charge, to any person or organization
// obtaining a copy of the software and accompanying documentation covered by
// this license (the "Software") to... | 34.067708 | 85 | 0.541202 | mfaithfull |
1e4407c4faf59b2aef39e4ece8e4bcfba39571b6 | 19,167 | cpp | C++ | SYEngine/Engine/SceneManager/EntityManager/ComponentManager/Component/Rendering/SkeletalModel.cpp | FrankMejzlik/syengine | 27929bbea5e05d1b1ce97abe408c5a90f29ab4dc | [
"MIT"
] | 1 | 2022-02-14T18:39:49.000Z | 2022-02-14T18:39:49.000Z | SYEngine/Engine/SceneManager/EntityManager/ComponentManager/Component/Rendering/SkeletalModel.cpp | FrankMejzlik/syengine | 27929bbea5e05d1b1ce97abe408c5a90f29ab4dc | [
"MIT"
] | null | null | null | SYEngine/Engine/SceneManager/EntityManager/ComponentManager/Component/Rendering/SkeletalModel.cpp | FrankMejzlik/syengine | 27929bbea5e05d1b1ce97abe408c5a90f29ab4dc | [
"MIT"
] | null | null | null | //
//#include "SkeletalModel.h"
//
//using namespace SYE;
//
//glm::mat3 aiMatrix3x3ToGlm(const aiMatrix3x3 &from)
//{
// glm::mat3 to = std::move(glm::mat4(1.0f));
// //the a,b,c,d in assimp is the row ; the 1,2,3,4 is the column
// to[0][0] = from.a1; to[1][0] = from.a2; to[2][0] = from.a3;
// to[0][1] = from.b1... | 33.685413 | 212 | 0.648406 | FrankMejzlik |
1e492915206c1c32a6f4f79efada46d6b27d8a8b | 193 | cpp | C++ | src/Lab2/main.cpp | viktormuzyka/ooop | 9d89d1f9884166a7fd6267bab231c6d9ac98c676 | [
"Apache-2.0"
] | 1 | 2021-10-04T17:42:42.000Z | 2021-10-04T17:42:42.000Z | src/Lab2/main.cpp | viktormuzyka/ooop | 9d89d1f9884166a7fd6267bab231c6d9ac98c676 | [
"Apache-2.0"
] | null | null | null | src/Lab2/main.cpp | viktormuzyka/ooop | 9d89d1f9884166a7fd6267bab231c6d9ac98c676 | [
"Apache-2.0"
] | null | null | null | #include <QtWidgets>
#include "texthook.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
AddressBook addressBook;
addressBook.show();
return app.exec();
}
| 14.846154 | 33 | 0.658031 | viktormuzyka |
1e4c56171378f5a6299614434f3a188bcc30deba | 13,108 | hpp | C++ | include/Newtonsoft/Json/Utilities/TypeExtensions.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/Newtonsoft/Json/Utilities/TypeExtensions.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/Newtonsoft/Json/Utilities/TypeExtensions.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
#include "beatsaber-hook/shared/utils/typedefs-string.... | 60.12844 | 207 | 0.741303 | RedBrumbler |
1e4c8b0adf1d13acd4e8d6359ce133fdf65a2e0f | 5,127 | cc | C++ | src/internal/nb_http_request_factory.cc | rk0jima/baas-sdk-embedded | 2481a43ab114008e37966964d2032970cda2a1bf | [
"Apache-2.0"
] | null | null | null | src/internal/nb_http_request_factory.cc | rk0jima/baas-sdk-embedded | 2481a43ab114008e37966964d2032970cda2a1bf | [
"Apache-2.0"
] | null | null | null | src/internal/nb_http_request_factory.cc | rk0jima/baas-sdk-embedded | 2481a43ab114008e37966964d2032970cda2a1bf | [
"Apache-2.0"
] | 1 | 2022-01-31T23:30:04.000Z | 2022-01-31T23:30:04.000Z | /*
* Copyright (C) 2017 NEC Corporation
*/
#include "necbaas/internal/nb_http_request_factory.h"
#include <curlpp/cURLpp.hpp>
#include "necbaas/internal/nb_constants.h"
#include "necbaas/internal/nb_logger.h"
namespace necbaas {
using std::string;
using std::list;
using std::multimap;
NbHttpRequestFactory::NbHttp... | 30.885542 | 118 | 0.679735 | rk0jima |
1e4d4524d0bdc15e17224e494ae463cd24fae58f | 4,046 | cpp | C++ | edbee-lib/edbee/util/simpleprofiler.cpp | UniSwarm/edbee-lib | b1f0b440d32f5a770877b11c6b24944af1131b91 | [
"BSD-2-Clause"
] | 445 | 2015-01-04T16:30:56.000Z | 2022-03-30T02:27:05.000Z | edbee-lib/edbee/util/simpleprofiler.cpp | UniSwarm/edbee-lib | b1f0b440d32f5a770877b11c6b24944af1131b91 | [
"BSD-2-Clause"
] | 305 | 2015-01-04T09:20:03.000Z | 2020-10-01T08:45:45.000Z | edbee-lib/edbee/util/simpleprofiler.cpp | UniSwarm/edbee-lib | b1f0b440d32f5a770877b11c6b24944af1131b91 | [
"BSD-2-Clause"
] | 49 | 2015-02-14T01:43:38.000Z | 2022-02-15T17:03:55.000Z | /**
* Copyright 2011-2012 - Reliable Bits Software by Blommers IT. All Rights Reserved.
* Author Rick Blommers
*/
#include "simpleprofiler.h"
#include <QDateTime>
#include "edbee/debug.h"
namespace edbee {
/// This method returns the profile instance
SimpleProfiler *SimpleProfiler::instance()
{
static SimpleP... | 30.19403 | 156 | 0.615175 | UniSwarm |
1e50a1baa34895844921e60463f38fec98fc7304 | 1,569 | cc | C++ | palindrome-number.cc | yevka/leetcode | abc3150d25069545ed155eed2751d75159f55342 | [
"MIT"
] | null | null | null | palindrome-number.cc | yevka/leetcode | abc3150d25069545ed155eed2751d75159f55342 | [
"MIT"
] | null | null | null | palindrome-number.cc | yevka/leetcode | abc3150d25069545ed155eed2751d75159f55342 | [
"MIT"
] | null | null | null | // 9. Palindrome Number
// https://leetcode.com/problems/palindrome-number/
#include <gtest/gtest.h>
#include <string>
#include <algorithm>
#include <iostream>
using namespace std;
class Solution {
public:
bool isPalindrome(int x) {
if (x < 0) {
return false;
} else if (x == 0) {
... | 21.493151 | 51 | 0.581899 | yevka |
1e5169b8db08d00bca8008714c3541a9527bed92 | 1,647 | cc | C++ | aleyen.cc | jdb19937/makemore | 61297dd322b3a9bb6cdfdd15e8886383cb490534 | [
"MIT"
] | null | null | null | aleyen.cc | jdb19937/makemore | 61297dd322b3a9bb6cdfdd15e8886383cb490534 | [
"MIT"
] | null | null | null | aleyen.cc | jdb19937/makemore | 61297dd322b3a9bb6cdfdd15e8886383cb490534 | [
"MIT"
] | null | null | null | #include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <dirent.h>
#include <sys/stat.h>
#include <string>
#include <vector>
#include <algorithm>
#include "numutils.hh"
#include "imgutils.hh"
#include "strutils.hh"
#include "partrait.hh"
using namespace std;
using namespace makemore;
double pld(double x... | 22.561644 | 111 | 0.612022 | jdb19937 |
1e5290d32b146fb3fc13a9d7c49dc08d17013964 | 9,624 | cpp | C++ | rai/secure/http.cpp | gokoo/Raicoin | 494be83a1e29106d268f71e613fac1e4033a82f2 | [
"MIT"
] | 94 | 2019-09-25T05:57:44.000Z | 2021-12-30T09:08:06.000Z | rai/secure/http.cpp | lannuary12/Raicoin | b5d10726f79e233b46e14e6ec064fa20ece1bb15 | [
"MIT"
] | 4 | 2020-05-06T10:10:14.000Z | 2021-12-26T09:35:16.000Z | rai/secure/http.cpp | lannuary12/Raicoin | b5d10726f79e233b46e14e6ec064fa20ece1bb15 | [
"MIT"
] | 13 | 2019-09-25T05:57:52.000Z | 2022-02-24T02:09:03.000Z | #include <rai/secure/http.hpp>
#include <boost/property_tree/json_parser.hpp>
rai::HttpClient::HttpClient(boost::asio::io_service& service)
: service_(service),
used_(false),
resolver_(service),
ctx_(boost::asio::ssl::context::tlsv12_client)
{
}
std::shared_ptr<rai::HttpClient> rai::HttpClient::... | 27.976744 | 79 | 0.543537 | gokoo |
1e550c2919b79c1008da21b51f158c6eaf004951 | 1,354 | hpp | C++ | sdk/core/azure-core/src/private/environment_log_level_listener.hpp | mikeharder/azure-sdk-for-cpp | da1451586a6ef50bac4e3dead9eba2c094c2d91a | [
"MIT"
] | null | null | null | sdk/core/azure-core/src/private/environment_log_level_listener.hpp | mikeharder/azure-sdk-for-cpp | da1451586a6ef50bac4e3dead9eba2c094c2d91a | [
"MIT"
] | null | null | null | sdk/core/azure-core/src/private/environment_log_level_listener.hpp | mikeharder/azure-sdk-for-cpp | da1451586a6ef50bac4e3dead9eba2c094c2d91a | [
"MIT"
] | null | null | null | // Copyright (c) Microsoft Corporation. All rights reserved.
// SPDX-License-Identifier: MIT
#pragma once
#include "azure/core/diagnostics/logger.hpp"
#if defined(AZ_PLATFORM_WINDOWS)
#if !defined(WIN32_LEAN_AND_MEAN)
#define WIN32_LEAN_AND_MEAN
#endif
#if !defined(NOMINMAX)
#define NOMINMAX
#endif
// This use of w... | 30.088889 | 99 | 0.718612 | mikeharder |
1e55e496fcd2dcde8efd416f5637d07772fd25f0 | 975 | cpp | C++ | Kattis/leftandright.cpp | YourName0729/competitive-programming | 437ef18a46074f520e0bfa0bdd718bb6b1c92800 | [
"MIT"
] | 3 | 2021-02-19T17:01:11.000Z | 2021-03-11T16:50:19.000Z | Kattis/leftandright.cpp | YourName0729/competitive-programming | 437ef18a46074f520e0bfa0bdd718bb6b1c92800 | [
"MIT"
] | null | null | null | Kattis/leftandright.cpp | YourName0729/competitive-programming | 437ef18a46074f520e0bfa0bdd718bb6b1c92800 | [
"MIT"
] | null | null | null | // greedy
// https://open.kattis.com/problems/leftandright
#include <bits/stdc++.h>
#include <ext/pb_ds/tree_policy.hpp>
#include <ext/pb_ds/assoc_container.hpp>
#define For(i, n) for (int i = 0; i < n; ++i)
#define Forcase int __t = 0; cin >> __t; while (__t--)
#define pb push_back
#define ll long long
#define ull un... | 22.674419 | 117 | 0.594872 | YourName0729 |
1e5a29bcdb25a9e5b5625b701065f2c88c8ffead | 4,322 | cpp | C++ | test/unit-test/src/test-xml-001.cpp | solosTec/cyng | 3862a6b7a2b536d1f00fef20700e64170772dcff | [
"MIT"
] | null | null | null | test/unit-test/src/test-xml-001.cpp | solosTec/cyng | 3862a6b7a2b536d1f00fef20700e64170772dcff | [
"MIT"
] | null | null | null | test/unit-test/src/test-xml-001.cpp | solosTec/cyng | 3862a6b7a2b536d1f00fef20700e64170772dcff | [
"MIT"
] | null | null | null |
/*
* The MIT License (MIT)
*
* Copyright (c) 2018 Sylko Olzscher
*
*/
#include "test-xml-001.h"
#include <iostream>
#include <boost/test/unit_test.hpp>
#include <cyng/xml.h>
#include <cyng/object.h>
#include <cyng/factory.h>
#include <cyng/io/serializer.h>
#include <boost/uuid/random_generator.hpp>
#include <... | 35.138211 | 128 | 0.648542 | solosTec |
1e5b542f3fb95c2b36220a2c7a4b4310a6461bd8 | 2,609 | cpp | C++ | legacy/c3_trajectory_generator/src/waypoint_validity.cpp | DSsoto/SubjuGator | fb3861442399540e1dc4472af6e98a817a81e607 | [
"MIT"
] | null | null | null | legacy/c3_trajectory_generator/src/waypoint_validity.cpp | DSsoto/SubjuGator | fb3861442399540e1dc4472af6e98a817a81e607 | [
"MIT"
] | null | null | null | legacy/c3_trajectory_generator/src/waypoint_validity.cpp | DSsoto/SubjuGator | fb3861442399540e1dc4472af6e98a817a81e607 | [
"MIT"
] | null | null | null | #include "waypoint_validity.hpp"
// Point and sub_size must be relative to ogrid (IE, in ogrid-cell units)
bool WaypointValidity::check_if_hit(cv::Point center, cv::Size sub_size)
{
for (int x = center.x - sub_size.width / 2; x < center.x + sub_size.width / 2; ++x)
{
for (int y = center.y - sub_size.height / 2... | 33.448718 | 119 | 0.647374 | DSsoto |
1e5ebc48a00a599d8291db052ed3d7e7e52a941a | 1,526 | hpp | C++ | Nacro/SDK/FN_StatusWidget_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_StatusWidget_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2022-01-01T22:51:59.000Z | 2022-01-08T16:14:15.000Z | Nacro/SDK/FN_StatusWidget_parameters.hpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 8 | 2021-08-09T13:51:54.000Z | 2022-01-26T20:33:37.000Z | #pragma once
// Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Parameters
//---------------------------------------------------------------------------
// Function StatusWidget.... | 27.25 | 152 | 0.537353 | Milxnor |
1e62875135ba024ee4b17d5d6d3fd54aa2cf01c3 | 7,128 | cpp | C++ | src/dtl/filter/model/calibration_data_test.cpp | peterboncz/bloomfilter-bsd | bae83545a091555e48b5495669c7adcb99fd2047 | [
"Apache-2.0",
"BSD-3-Clause"
] | 15 | 2018-08-26T15:31:49.000Z | 2022-01-28T06:28:33.000Z | lib/bsd/src/dtl/filter/model/calibration_data_test.cpp | tum-db/partitioned-filters | 56c20102715a442cbec9ecb732d41de15b31c828 | [
"MIT"
] | 1 | 2019-12-20T22:56:22.000Z | 2019-12-20T22:56:22.000Z | lib/bsd/src/dtl/filter/model/calibration_data_test.cpp | tum-db/partitioned-filters | 56c20102715a442cbec9ecb732d41de15b31c828 | [
"MIT"
] | 8 | 2018-10-02T09:15:29.000Z | 2021-12-29T15:45:42.000Z | #include "gtest/gtest.h"
#include <iostream>
#include <fstream>
#include <cstdio>
#include <dtl/dtl.hpp>
#include "dtl/filter/model/calibration_data.hpp"
#include "dtl/filter/model/timing.hpp"
using namespace dtl::filter::model;
//===----------------------------------------------------------------------===//
TEST(... | 31.126638 | 82 | 0.668771 | peterboncz |
1e65a32b91642689bffc2adbd6ca65e625e1c876 | 1,753 | hpp | C++ | Stats/ReservoirSampler.hpp | 3nprob/clboss | 0435b6c074347ce82e490a5988534054e9d7348d | [
"MIT"
] | 108 | 2020-10-01T17:12:40.000Z | 2022-03-30T09:18:03.000Z | Stats/ReservoirSampler.hpp | 3nprob/clboss | 0435b6c074347ce82e490a5988534054e9d7348d | [
"MIT"
] | 94 | 2020-10-03T13:40:30.000Z | 2022-03-30T09:18:00.000Z | Stats/ReservoirSampler.hpp | 3nprob/clboss | 0435b6c074347ce82e490a5988534054e9d7348d | [
"MIT"
] | 17 | 2020-10-29T13:27:59.000Z | 2022-03-18T13:05:03.000Z | #ifndef STATS_RESERVOIRSAMPLER_HPP
#define STATS_RESERVOIRSAMPLER_HPP
#include"Util/vector_emplace_back.hpp"
#include<cstdint>
#include<random>
#include<vector>
namespace Stats {
/** class ReservoirSampler<Sample, Weight>
*
* @brief selects a number of samples, biased by
* weight (higher weight items are more lik... | 20.623529 | 60 | 0.673702 | 3nprob |
1e6cf705100563897a92ad607cf604b6c0e5dc6d | 6,521 | cpp | C++ | dmengine/utils/dmzonehelper.cpp | damao1222/dmengine | 09ab62c043a520f8f6b15eb8790c7ee56c006931 | [
"Apache-2.0"
] | null | null | null | dmengine/utils/dmzonehelper.cpp | damao1222/dmengine | 09ab62c043a520f8f6b15eb8790c7ee56c006931 | [
"Apache-2.0"
] | null | null | null | dmengine/utils/dmzonehelper.cpp | damao1222/dmengine | 09ab62c043a520f8f6b15eb8790c7ee56c006931 | [
"Apache-2.0"
] | null | null | null | /*
Copyright (C) 2012 Xiongfa Li
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 conditions and the following dis... | 24.062731 | 754 | 0.636712 | damao1222 |
1e6d00cf7194038426023c237d038f6f9018ff34 | 2,671 | hpp | C++ | src/Domain/ElementIndex.hpp | osheamonn/spectre | 4a3332c61d749d83c161ea1c2ea014a937fd5dd8 | [
"MIT"
] | null | null | null | src/Domain/ElementIndex.hpp | osheamonn/spectre | 4a3332c61d749d83c161ea1c2ea014a937fd5dd8 | [
"MIT"
] | null | null | null | src/Domain/ElementIndex.hpp | osheamonn/spectre | 4a3332c61d749d83c161ea1c2ea014a937fd5dd8 | [
"MIT"
] | null | null | null | // Distributed under the MIT License.
// See LICENSE.txt for details.
/// \file
/// Defines class ElementIndex.
#pragma once
#include <array>
#include <cstddef>
#include <functional>
#include <iosfwd>
#include "Utilities/ConstantExpressions.hpp"
/// \cond
template <size_t>
struct ElementId;
/// \endcond
struct Seg... | 30.701149 | 78 | 0.7383 | osheamonn |
1e6e82cca00613fe75de13ca5b8ed198da177878 | 4,415 | cpp | C++ | tests/0100_GUI_App(Skia)/skia/modules/skgui/src/GUI_IconView.cpp | ILW000/SDL_gui | 2c916fb73fa5b469cecb91b674032e2b624f0b9b | [
"MIT"
] | 243 | 2015-12-30T00:33:06.000Z | 2022-03-22T20:37:41.000Z | tests/0100_GUI_App(Skia)/skia/modules/skgui/src/GUI_IconView.cpp | ILW000/SDL_gui | 2c916fb73fa5b469cecb91b674032e2b624f0b9b | [
"MIT"
] | 13 | 2019-02-09T17:05:57.000Z | 2021-12-23T18:10:17.000Z | tests/0100_GUI_App(Skia)/skia/modules/skgui/src/GUI_IconView.cpp | ILW000/SDL_gui | 2c916fb73fa5b469cecb91b674032e2b624f0b9b | [
"MIT"
] | 53 | 2016-01-06T23:49:36.000Z | 2022-03-15T15:47:33.000Z | //
// GUI_IconView.cpp
// GUI_TextView
//
// Created by Panutat Tejasen on 12/1/2562 BE.
// Copyright © 2562 Jimmy Software Co., Ltd. All rights reserved.
//
#include "GUI_IconView.h"
#include "GUI_Fonts.h"
#include "skgui.h"
#include "include/core/SkSurface.h"
#include "include/core/SkImage.h"
#include "include/c... | 29.238411 | 144 | 0.591846 | ILW000 |
1e7621afd0524730fc90776b57a2d30426f3b883 | 2,392 | cpp | C++ | src/test/entity.t.cpp | bkentel/boken-old | 8967856be5f283989d0c10843bcb739728423152 | [
"MIT"
] | null | null | null | src/test/entity.t.cpp | bkentel/boken-old | 8967856be5f283989d0c10843bcb739728423152 | [
"MIT"
] | null | null | null | src/test/entity.t.cpp | bkentel/boken-old | 8967856be5f283989d0c10843bcb739728423152 | [
"MIT"
] | 1 | 2020-04-11T12:20:00.000Z | 2020-04-11T12:20:00.000Z | #if !defined(BK_NO_TESTS)
#include "catch.hpp"
#include "entity.hpp"
#include "entity_def.hpp"
#include <algorithm>
#include <array>
#include <vector>
TEST_CASE("property_set") {
using namespace boken;
enum class test_enum {
a, b, c, d, e
};
property_set<test_enum, char> properties;
REQ... | 28.819277 | 70 | 0.559783 | bkentel |
1e764c80fcbaf1ef35c4c59ca1b9429c98484065 | 661 | cc | C++ | solved/two-sum.cc | vizee/leetcode | 26c44eee5dd1fcb84fa697db650b01732a6ce79e | [
"MIT"
] | null | null | null | solved/two-sum.cc | vizee/leetcode | 26c44eee5dd1fcb84fa697db650b01732a6ce79e | [
"MIT"
] | null | null | null | solved/two-sum.cc | vizee/leetcode | 26c44eee5dd1fcb84fa697db650b01732a6ce79e | [
"MIT"
] | null | null | null | class Solution {
public:
vector<int> twoSum(vector<int>& nums, int target) {
vector<int> m(nums);
sort(m.begin(), m.end());
vector<int> r;
for (size_t i = 0; i < nums.size() && r.empty(); i++) {
auto v = target - nums[i];
auto p = lower_bound(m.begin(), m.end(... | 27.541667 | 63 | 0.361573 | vizee |
1e76b079caf308566d7d86d2051496dd595b7f41 | 954 | cpp | C++ | source/vec2.cpp | Snoopyxxel/programmiersprachen-aufgabenblatt-2 | 3fb4cd58296e951cfe48ae88796b23961082de94 | [
"MIT"
] | null | null | null | source/vec2.cpp | Snoopyxxel/programmiersprachen-aufgabenblatt-2 | 3fb4cd58296e951cfe48ae88796b23961082de94 | [
"MIT"
] | null | null | null | source/vec2.cpp | Snoopyxxel/programmiersprachen-aufgabenblatt-2 | 3fb4cd58296e951cfe48ae88796b23961082de94 | [
"MIT"
] | null | null | null | #include "vec2.hpp"
Vec2 &Vec2::operator+=(Vec2 const &v) {
this->x = this->x + v.x;
this->y = this->y + v.y;
return *this;
}
Vec2 &Vec2::operator-=(Vec2 const &v) {
this->x = this->x - v.x;
this->y = this->y - v.y;
return *this;
}
Vec2 &Vec2::operator*=(float s) {
this->x = this->x * s;
... | 19.08 | 46 | 0.528302 | Snoopyxxel |
1e8284b1de226497a3f68e2aee7a299a29c50ad5 | 405 | cpp | C++ | Battleships/Source/Core/Input/FInput.cpp | RodrigoHolztrattner/Battleships | cf3e9c8a4a40f52aee41a7b9baaac5a406365a06 | [
"MIT"
] | 3 | 2018-04-09T13:01:07.000Z | 2021-03-18T12:28:48.000Z | Battleships/Source/Core/Input/FInput.cpp | RodrigoHolztrattner/Battleships | cf3e9c8a4a40f52aee41a7b9baaac5a406365a06 | [
"MIT"
] | null | null | null | Battleships/Source/Core/Input/FInput.cpp | RodrigoHolztrattner/Battleships | cf3e9c8a4a40f52aee41a7b9baaac5a406365a06 | [
"MIT"
] | 1 | 2021-03-18T12:28:50.000Z | 2021-03-18T12:28:50.000Z | ///////////////////////////////////////////////////////////////////////////////
// Filename: FInput.cpp
///////////////////////////////////////////////////////////////////////////////
#include "FInput.h"
FInput::FInput()
{
}
FInput::FInput(const FInput& other)
{
}
FInput::~FInput()
{
}
////////////
// GLOBAL //
///... | 17.608696 | 79 | 0.37037 | RodrigoHolztrattner |
1e8292c55a655b1215ac7812dbf6636205efee25 | 132 | cpp | C++ | Source/Event/twEventArgs.cpp | microqq/TwinkleGraphics | e3975dc6dad5b6b8d5db1d54e30e815072db162e | [
"MIT"
] | null | null | null | Source/Event/twEventArgs.cpp | microqq/TwinkleGraphics | e3975dc6dad5b6b8d5db1d54e30e815072db162e | [
"MIT"
] | 1 | 2020-07-03T03:13:39.000Z | 2020-07-03T03:13:39.000Z | Source/Event/twEventArgs.cpp | microqq/TwinkleGraphics | e3975dc6dad5b6b8d5db1d54e30e815072db162e | [
"MIT"
] | null | null | null | #include "twEventArgs.h"
namespace TwinkleGraphics
{
BaseEventArgs::~BaseEventArgs() {}
} // namespace TwinkleGraphics
| 16.5 | 39 | 0.704545 | microqq |
1e843fbe9d97b9986b55625d9d73c48da627b571 | 3,207 | hxx | C++ | OCC/opencascade-7.2.0/x64/debug/inc/BRepExtrema_TriangleSet.hxx | jiaguobing/FastCAE | 2348ab87e83fe5c704e4c998cf391229c25ac5d5 | [
"BSD-3-Clause"
] | 2 | 2020-02-21T01:04:35.000Z | 2020-02-21T03:35:37.000Z | OCC/opencascade-7.2.0/x64/debug/inc/BRepExtrema_TriangleSet.hxx | Sunqia/FastCAE | cbc023fe07b6e306ceefae8b8bd7c12bc1562acb | [
"BSD-3-Clause"
] | 1 | 2020-03-06T04:49:42.000Z | 2020-03-06T04:49:42.000Z | OCC/opencascade-7.2.0/x64/debug/inc/BRepExtrema_TriangleSet.hxx | Sunqia/FastCAE | cbc023fe07b6e306ceefae8b8bd7c12bc1562acb | [
"BSD-3-Clause"
] | 1 | 2021-11-21T13:03:26.000Z | 2021-11-21T13:03:26.000Z | // Created on: 2014-10-20
// Created by: Denis BOGOLEPOV
// Copyright (c) 2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as pu... | 34.483871 | 129 | 0.757406 | jiaguobing |
1e8551759b0584a07ea62c464dc5c9ff7a83042c | 1,954 | cc | C++ | policies/DIF/RMT/MaxQueue/ReadRateReducer/ReadRateReducer.cc | AthirahJohar/RINASIM | 70b0d83e243b0d4d6949efcd36d5dc4ead94356c | [
"MIT"
] | null | null | null | policies/DIF/RMT/MaxQueue/ReadRateReducer/ReadRateReducer.cc | AthirahJohar/RINASIM | 70b0d83e243b0d4d6949efcd36d5dc4ead94356c | [
"MIT"
] | null | null | null | policies/DIF/RMT/MaxQueue/ReadRateReducer/ReadRateReducer.cc | AthirahJohar/RINASIM | 70b0d83e243b0d4d6949efcd36d5dc4ead94356c | [
"MIT"
] | null | null | null | //
// Copyright © 2014 - 2015 PRISTINE Consortium (http://ict-pristine.eu)
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) an... | 32.032787 | 79 | 0.670931 | AthirahJohar |
1e93a83db9ced0290c839ab25269b3e5d8da514a | 1,387 | cpp | C++ | WixApp/WixApp.prj/PathUnits.cpp | rrvt/WixApp | f72724f74d4d7eb8153646424f78823def9b7e35 | [
"MIT"
] | null | null | null | WixApp/WixApp.prj/PathUnits.cpp | rrvt/WixApp | f72724f74d4d7eb8153646424f78823def9b7e35 | [
"MIT"
] | null | null | null | WixApp/WixApp.prj/PathUnits.cpp | rrvt/WixApp | f72724f74d4d7eb8153646424f78823def9b7e35 | [
"MIT"
] | 1 | 2020-02-25T09:11:37.000Z | 2020-02-25T09:11:37.000Z | // Parse a path into an array
#include "stdafx.h"
#include "PathUnits.h"
PathUnits& PathUnits::operator= (String& path) {
parse(path); return *this;
}
// disect the path to a file into bite size chunks, mostly directories (e.g. D:\, \abc\, etc.)
void PathUnits::parse(const String& path) {
String t = path;
... | 17.556962 | 95 | 0.583994 | rrvt |
1e97e094a4450e5b378b3458af5a5c08b41020a3 | 2,107 | cpp | C++ | Days 111 - 120/Day 112/FindLowestCommonAncestor.cpp | LucidSigma/Daily-Coding-Problems | 21dc8f7e615edd535d7beb1f5d0e41dd3b4bcc1a | [
"MIT"
] | null | null | null | Days 111 - 120/Day 112/FindLowestCommonAncestor.cpp | LucidSigma/Daily-Coding-Problems | 21dc8f7e615edd535d7beb1f5d0e41dd3b4bcc1a | [
"MIT"
] | null | null | null | Days 111 - 120/Day 112/FindLowestCommonAncestor.cpp | LucidSigma/Daily-Coding-Problems | 21dc8f7e615edd535d7beb1f5d0e41dd3b4bcc1a | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iostream>
#include <memory>
#include <utility>
struct Node
{
char value;
std::shared_ptr<Node> left;
std::shared_ptr<Node> right;
std::shared_ptr<Node> parent = nullptr;
explicit Node(char value, const std::shared_ptr<Node>& left = nullptr, const std::shared_ptr<Node>& right = nu... | 23.674157 | 126 | 0.689606 | LucidSigma |
1e9a4dd9b0f311d1cb53610d769f4c5248e2ce82 | 11,974 | cpp | C++ | Tools/ModelConverter/ModelConverter/ObjModelLoader.cpp | AnkurSheel/RoutePlanner | a50b6ccb735db42ff4e5b2f4c87e710819c4564b | [
"CC-BY-4.0"
] | null | null | null | Tools/ModelConverter/ModelConverter/ObjModelLoader.cpp | AnkurSheel/RoutePlanner | a50b6ccb735db42ff4e5b2f4c87e710819c4564b | [
"CC-BY-4.0"
] | null | null | null | Tools/ModelConverter/ModelConverter/ObjModelLoader.cpp | AnkurSheel/RoutePlanner | a50b6ccb735db42ff4e5b2f4c87e710819c4564b | [
"CC-BY-4.0"
] | null | null | null | // *************************************************************************
// ObjModelLoader version: 1.0 Ankur Sheel date: 2012/10/29
// ------------------------------------------------------------------------
//
// ------------------------------------------------------------------------
// Copyright (C)... | 31.761273 | 98 | 0.618423 | AnkurSheel |
1e9fd884fed24bdc6d07825d9b30cbffa3d5ebbd | 5,102 | cpp | C++ | grpc/cpp-cubic/cubic_client.cpp | tumarsal/sdk-cubic | ce366b032e4401bd796599b5c2cdce7e6f280649 | [
"Apache-2.0"
] | 1 | 2020-01-08T15:10:21.000Z | 2020-01-08T15:10:21.000Z | grpc/cpp-cubic/cubic_client.cpp | iZIVer/sdk-cubic | 12c0f20c50b777c2a9f00cf881fa492bdd00e3cc | [
"Apache-2.0"
] | null | null | null | grpc/cpp-cubic/cubic_client.cpp | iZIVer/sdk-cubic | 12c0f20c50b777c2a9f00cf881fa492bdd00e3cc | [
"Apache-2.0"
] | null | null | null | // Copyright (2019) Cobalt Speech and Language, Inc.
#include "cubic_client.h"
#include <chrono>
#include <grpc/grpc.h>
#include <grpcpp/channel.h>
#include <grpcpp/client_context.h>
#include <grpcpp/create_channel.h>
#include <grpcpp/security/credentials.h>
#include "cubic.grpc.pb.h"
#include "cubic_exception.h"
... | 30.011765 | 92 | 0.688554 | tumarsal |
1ea035b4bde24e1a106dc28294b70b982f388b2c | 271 | cpp | C++ | chp3/excercises/excercise3-3.cpp | justinePrasad/PPC2nd | fc28c10dace8b46bd35abc9b62d1f56577035c19 | [
"MIT"
] | null | null | null | chp3/excercises/excercise3-3.cpp | justinePrasad/PPC2nd | fc28c10dace8b46bd35abc9b62d1f56577035c19 | [
"MIT"
] | null | null | null | chp3/excercises/excercise3-3.cpp | justinePrasad/PPC2nd | fc28c10dace8b46bd35abc9b62d1f56577035c19 | [
"MIT"
] | null | null | null | #include "../../../../std_lib_facilities.h"
//header file from Programming-_Principles_and_Practice_Using_Cpp
int main()
{
//some key words are reserved, and identifier can't start with numbers
char 3 = 'a';
int double = 0;
char int = '1';
char send = 'a';
}
| 22.583333 | 71 | 0.667897 | justinePrasad |
1ea4281e5b8799f25917b3d74078c39dd9924a9c | 1,069 | hpp | C++ | Electro/src/Renderer/Renderer2D.hpp | SurgeTechnologies/Electro | 8a7dfb6aabdf5d2e6fe31a8d9c976607fc2f1394 | [
"MIT"
] | 21 | 2021-08-30T15:30:22.000Z | 2022-02-09T14:05:36.000Z | Electro/src/Renderer/Renderer2D.hpp | SurgeTechnologies/Electro | 8a7dfb6aabdf5d2e6fe31a8d9c976607fc2f1394 | [
"MIT"
] | null | null | null | Electro/src/Renderer/Renderer2D.hpp | SurgeTechnologies/Electro | 8a7dfb6aabdf5d2e6fe31a8d9c976607fc2f1394 | [
"MIT"
] | null | null | null | // ELECTRO ENGINE
// Copyright(c) 2021 - Electro Team - All rights reserved
#pragma once
#include "Core/Base.hpp"
#include "Math/BoundingBox.hpp"
#include "Renderer/Camera/EditorCamera.hpp"
#include "Scene/Components.hpp"
#include "Scene/SceneCamera.hpp"
namespace Electro
{
class Renderer2D
... | 34.483871 | 137 | 0.638915 | SurgeTechnologies |
1ea5dc5fec27d2447a909e202a959efea15592ee | 761 | hpp | C++ | Framework/Common/include/MemoryManager.hpp | Quanwei1992/RTR | cd4e6e056de2bd0ec7ee993b06975508a561b0d6 | [
"MIT"
] | 3 | 2021-03-30T09:02:56.000Z | 2022-03-16T05:43:21.000Z | Framework/Common/include/MemoryManager.hpp | Quanwei1992/RTR | cd4e6e056de2bd0ec7ee993b06975508a561b0d6 | [
"MIT"
] | null | null | null | Framework/Common/include/MemoryManager.hpp | Quanwei1992/RTR | cd4e6e056de2bd0ec7ee993b06975508a561b0d6 | [
"MIT"
] | null | null | null | #pragma once
#include <new>
#include "IRuntimeModule.hpp"
#include "Allocator.hpp"
RTR_BEGIN_NAMESPACE
class MemoryManager : implements IRuntimeModule
{
public:
template<class T, typename... Arguments>
T* New(Arguments... parameters)
{
return new (Allocate(sizeof(T))) T(parameters...);
}
template<class T>
voi... | 18.560976 | 52 | 0.722733 | Quanwei1992 |
1ea6eb36eabefc34b6b5f9f90572fec59af660fb | 9,506 | cpp | C++ | GPU2/lib/gpunb.avx.cpp | JamesAPetts/NBODY6df | bc1d1d765a7a0608f2fcc650e31a20e50ff4ada7 | [
"MIT"
] | 4 | 2017-03-04T07:30:10.000Z | 2020-02-06T01:50:38.000Z | GPU2/lib/gpunb.avx.cpp | JamesAPetts/NBODY6df | bc1d1d765a7a0608f2fcc650e31a20e50ff4ada7 | [
"MIT"
] | 1 | 2018-03-15T15:03:18.000Z | 2018-03-26T16:20:11.000Z | GPU2/lib/gpunb.avx.cpp | JamesAPetts/NBODY6df | bc1d1d765a7a0608f2fcc650e31a20e50ff4ada7 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cassert>
#define TMAX 8 // maximum number of threads
#if 1
#include <omp.h>
#else
static inline int omp_get_num_threads(){return 1;}
static inline int omp_get_thread_num() {return 0;}
#endif
#define PROFILE
#ifdef PROFILE
#include <sys/time.h>
static dou... | 27.082621 | 93 | 0.60425 | JamesAPetts |
1eace8ab8944f394274dd8a1ebc2f9c66bece4c9 | 2,097 | cpp | C++ | src/option/Options.cpp | agxmaster/polarphp | 31012ff7e6c0f72ee587546c296b06013c98cf9a | [
"PHP-3.01"
] | 1,083 | 2018-05-26T09:12:13.000Z | 2022-02-14T00:13:01.000Z | src/option/Options.cpp | agxmaster/polarphp | 31012ff7e6c0f72ee587546c296b06013c98cf9a | [
"PHP-3.01"
] | 27 | 2018-08-25T07:28:25.000Z | 2021-05-06T06:31:09.000Z | src/option/Options.cpp | agxmaster/polarphp | 31012ff7e6c0f72ee587546c296b06013c98cf9a | [
"PHP-3.01"
] | 78 | 2018-08-28T02:43:09.000Z | 2020-11-21T15:45:24.000Z | //===--- Options.cpp - Option info & table --------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | 31.298507 | 85 | 0.668574 | agxmaster |
1eae03a6503fdb6ac21b41d940a53dc91558f605 | 5,349 | cpp | C++ | types/DatetimeIntervalType.cpp | Hacker0912/quickstep-datalog | 1de22e7ab787b5efa619861a167a097ff6a4f549 | [
"Apache-2.0"
] | 82 | 2016-04-18T03:59:06.000Z | 2019-02-04T11:46:08.000Z | types/DatetimeIntervalType.cpp | Hacker0912/quickstep-datalog | 1de22e7ab787b5efa619861a167a097ff6a4f549 | [
"Apache-2.0"
] | 265 | 2016-04-19T17:52:43.000Z | 2018-10-11T17:55:08.000Z | types/DatetimeIntervalType.cpp | Hacker0912/quickstep-datalog | 1de22e7ab787b5efa619861a167a097ff6a4f549 | [
"Apache-2.0"
] | 68 | 2016-04-18T05:00:34.000Z | 2018-10-30T12:41:02.000Z | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 34.509677 | 85 | 0.662554 | Hacker0912 |
1eb2a72e9061eea16eb8bd0959a0a5efe8208bc7 | 2,606 | cpp | C++ | sort/mergesort.cpp | thebenhurley/Cplusplus-Examples | 918d7d4b6389f23d79be0cbdadb6a8710c91460f | [
"MIT"
] | null | null | null | sort/mergesort.cpp | thebenhurley/Cplusplus-Examples | 918d7d4b6389f23d79be0cbdadb6a8710c91460f | [
"MIT"
] | null | null | null | sort/mergesort.cpp | thebenhurley/Cplusplus-Examples | 918d7d4b6389f23d79be0cbdadb6a8710c91460f | [
"MIT"
] | null | null | null | // Benjamin Hurley
// mergesort.cpp
#include <iostream>
using namespace std;
void mergeSort(int[], int, int);
void merge(int[], int, int, int);
void printArray(int[], int);
int main()
{
// For this example, we will use an array and
// populate it with random numbers each time
const int count = 20;
... | 21.716667 | 57 | 0.495012 | thebenhurley |
1eb59372bc2629eaffc9801aaae0d2013a79d85f | 4,933 | cc | C++ | sys/sde/main.cc | cwolsen7905/UbixOS | 2f6063103347a8e8c369aacdd1399911bb4a4776 | [
"BSD-3-Clause"
] | null | null | null | sys/sde/main.cc | cwolsen7905/UbixOS | 2f6063103347a8e8c369aacdd1399911bb4a4776 | [
"BSD-3-Clause"
] | null | null | null | sys/sde/main.cc | cwolsen7905/UbixOS | 2f6063103347a8e8c369aacdd1399911bb4a4776 | [
"BSD-3-Clause"
] | null | null | null | /*-
* Copyright (c) 2002-2018 The UbixOS Project.
* All rights reserved.
*
* This was developed by Christopher W. Olsen for the UbixOS Project.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted
* provided that the following conditions are met:
*
* 1) Redistribut... | 34.256944 | 156 | 0.627205 | cwolsen7905 |
1eb647e9b129c2db4e4a42f67b32ebda8f344b55 | 2,251 | cc | C++ | test_uuid.cc | pallas/libuuidpp | abe53378e5317aca4e3d569fce86ef987e133520 | [
"Zlib"
] | null | null | null | test_uuid.cc | pallas/libuuidpp | abe53378e5317aca4e3d569fce86ef987e133520 | [
"Zlib"
] | null | null | null | test_uuid.cc | pallas/libuuidpp | abe53378e5317aca4e3d569fce86ef987e133520 | [
"Zlib"
] | null | null | null | #include "uuidpp.h"
#include <lace/hash.h>
#include <cassert>
#include <cstdlib>
#include <iostream>
#include <sstream>
#include <vector>
int main(int argc, char* argv[]) {
for (int i = 0 ; i < argc ; ++i) {
uuid u;
std::stringstream(argv[i]) >> u;
std::cout
<< (bool)u << '\t... | 30.013333 | 97 | 0.423812 | pallas |
1eb736b63d326eeb8bde768f6f921e034555a25f | 16,466 | cpp | C++ | Source/RenderPostProcess.cpp | marcussvensson92/vulkan_testbed | 6cfbee9fd5fb245f10c1d5694812eda6232b9a6c | [
"MIT"
] | 10 | 2020-03-26T08:51:29.000Z | 2021-08-17T07:43:12.000Z | Source/RenderPostProcess.cpp | marcussvensson92/vulkan_testbed | 6cfbee9fd5fb245f10c1d5694812eda6232b9a6c | [
"MIT"
] | null | null | null | Source/RenderPostProcess.cpp | marcussvensson92/vulkan_testbed | 6cfbee9fd5fb245f10c1d5694812eda6232b9a6c | [
"MIT"
] | null | null | null | #include "RenderPostProcess.h"
#include "VkUtil.h"
void RenderPostProcess::Create(const RenderContext& rc)
{
// Temporal Blend
{
VkDescriptorSetLayoutBinding set_layout_bindings[] =
{
{ 0, VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, 1, VK_SHADER_STAGE_COMPUTE_BIT, NULL },
{ 1, VK... | 50.048632 | 187 | 0.760658 | marcussvensson92 |
1eb81b1f1b3072768ab983093acb96909760b317 | 602 | cpp | C++ | Zerojudge/d784.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | 9 | 2017-10-08T16:22:03.000Z | 2021-08-20T09:32:17.000Z | Zerojudge/d784.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | null | null | null | Zerojudge/d784.cpp | w181496/OJ | 67d1d32770376865eba8a9dd1767e97dae68989a | [
"MIT"
] | 2 | 2018-01-15T16:35:44.000Z | 2019-03-21T18:30:04.000Z | #include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
int main()
{
int n,t;
cin>>n;
for(int i=1;i<=n;++i)
{
cin>>t;
vector<int>k(t);
for(int j=0;j<t;++j)
{
cin>>k[j];
}
int x=k[0];
... | 17.705882 | 35 | 0.345515 | w181496 |
3634a29f1e422c725b1208ef3498411f5340c4d1 | 17,816 | cc | C++ | cvmfs/cache_transport.cc | traylenator/cvmfs | c7873bf3d1586524b2c7988eb219cea065ceffbc | [
"BSD-3-Clause"
] | null | null | null | cvmfs/cache_transport.cc | traylenator/cvmfs | c7873bf3d1586524b2c7988eb219cea065ceffbc | [
"BSD-3-Clause"
] | null | null | null | cvmfs/cache_transport.cc | traylenator/cvmfs | c7873bf3d1586524b2c7988eb219cea065ceffbc | [
"BSD-3-Clause"
] | null | null | null | /**
* This file is part of the CernVM File System.
*/
#include "cvmfs_config.h"
#include "cache_transport.h"
#include <alloca.h>
#include <errno.h>
#include <sys/socket.h>
#include <cassert>
#include <cstdlib>
#include <cstring>
#include "hash.h"
#include "logging.h"
#include "smalloc.h"
#include "util/posix.h"
/... | 31.871199 | 80 | 0.699315 | traylenator |
3636bbb95cf966a10468d9162c765ac31eeb6d49 | 6,418 | cc | C++ | Testbed/src/cache/evictionStrategies/rand/RANDCache.cc | leowangx2013/Proactive-Caching-ACDC | a510960d11bd3a5514b65bd3c6bd471e08e2b727 | [
"Apache-2.0"
] | null | null | null | Testbed/src/cache/evictionStrategies/rand/RANDCache.cc | leowangx2013/Proactive-Caching-ACDC | a510960d11bd3a5514b65bd3c6bd471e08e2b727 | [
"Apache-2.0"
] | null | null | null | Testbed/src/cache/evictionStrategies/rand/RANDCache.cc | leowangx2013/Proactive-Caching-ACDC | a510960d11bd3a5514b65bd3c6bd471e08e2b727 | [
"Apache-2.0"
] | null | null | null | //
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it wil... | 31.615764 | 109 | 0.698348 | leowangx2013 |
363accbb170ed8254e97d335d205d9e269152404 | 1,123 | cpp | C++ | sdl2/uMario/uNext/Flag.cpp | pdpdds/SDLGameProgramming | 3af68e2133296f3e7bc3d7454d9301141bca2d5a | [
"BSD-2-Clause"
] | 2 | 2021-02-09T11:29:38.000Z | 2021-08-06T10:37:17.000Z | cpp/mario/src/Flag.cpp | SergiiSharpov/tcpp | b5d3840b6b5bedc736b617a22fe779ceba90ac6f | [
"MIT"
] | null | null | null | cpp/mario/src/Flag.cpp | SergiiSharpov/tcpp | b5d3840b6b5bedc736b617a22fe779ceba90ac6f | [
"MIT"
] | null | null | null | #include "Flag.h"
#include "Core.h"
/* ******************************************** */
Flag::Flag(int iXPos, int iYPos) {
this->iXPos = iXPos;
this->iYPos = iYPos;
this->iYTextPos = CCFG::GAME_HEIGHT - 3*32;
this->iPoints = -1;
this->iBlockID = CCore::getMap()->getLevelType() == 4 || CCore::getMap()->getLevelT... | 24.413043 | 138 | 0.54675 | pdpdds |
36411c8aef9c82ac93cfc0a34bfc2167f302d526 | 743 | cpp | C++ | cf1656B.cpp | yonghuatang/codeforces | 7e1268443e14b001049ef854d2b230f1449d5a2d | [
"MIT"
] | null | null | null | cf1656B.cpp | yonghuatang/codeforces | 7e1268443e14b001049ef854d2b230f1449d5a2d | [
"MIT"
] | null | null | null | cf1656B.cpp | yonghuatang/codeforces | 7e1268443e14b001049ef854d2b230f1449d5a2d | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main() {
int t;
cin >> t;
for (int tc=1; tc<=t; tc++) {
int n, k;
cin >> n >> k;
vector<int> v(n, 0);
bool valid = false;
for (int i=0; i<n; i++) {
cin >> v[i];
}
set<int> s(v.begin(), v.en... | 23.21875 | 52 | 0.325707 | yonghuatang |
3649cd645f04a2c11fa1c2be5751592c3aee5e08 | 5,748 | cpp | C++ | LoganEngine/src/lTest/TestResourceManager/HierarchyTest/TestHierarchyBuilder.cpp | sereslorant/logan_engine | a596b4128d0a58236be00f93064e276e43484017 | [
"MIT"
] | 1 | 2019-12-26T13:22:29.000Z | 2019-12-26T13:22:29.000Z | LoganEngine/src/lTest/TestResourceManager/HierarchyTest/TestHierarchyBuilder.cpp | sereslorant/logan_engine | a596b4128d0a58236be00f93064e276e43484017 | [
"MIT"
] | null | null | null | LoganEngine/src/lTest/TestResourceManager/HierarchyTest/TestHierarchyBuilder.cpp | sereslorant/logan_engine | a596b4128d0a58236be00f93064e276e43484017 | [
"MIT"
] | null | null | null |
#include <lCore/lResourceManager/lrmResourceManager/lrmResourceManager.hpp>
#include <lUtils/lJSON/lJSON.h>
#include <iostream>
#include <lUtils/lJSON/lJSON_TypeRetriever.h>
#include <fstream>
const liJSON_Object *RootObject(std::istream &in)
{
liJSON_Value *FileContent;
lJSON_Util::Parse(in,FileContent);
if(F... | 26.127273 | 141 | 0.728253 | sereslorant |
3649e45161f4af8dee42d5162b531ee7ee0d8b9a | 4,747 | cpp | C++ | haxelib/native-glue/android/src/android-main.cpp | Kakise/hx-gameplay | e7fe3d4e79e0e12d439b3f3c930d85d78f2eba8d | [
"MIT"
] | 3 | 2021-07-07T08:50:41.000Z | 2021-07-15T00:53:53.000Z | haxelib/native-glue/android/src/android-main.cpp | Kakise/hx-gameplay | e7fe3d4e79e0e12d439b3f3c930d85d78f2eba8d | [
"MIT"
] | 1 | 2015-09-04T15:44:37.000Z | 2015-09-04T19:07:01.000Z | haxelib/native-glue/android/src/android-main.cpp | Kakise/hx-gameplay | e7fe3d4e79e0e12d439b3f3c930d85d78f2eba8d | [
"MIT"
] | 1 | 2017-11-01T21:03:22.000Z | 2017-11-01T21:03:22.000Z | #ifdef __ANDROID__
#include <stdlib.h>
#include <stdio.h>
#include <dlfcn.h>
#include <android/log.h>
#include <android_native_app_glue.h>
#define ERROR(msg) __android_log_print(ANDROID_LOG_ERROR, "ERROR", msg)
#define DEBUG(msg) __android_log_print(ANDROID_LOG_DEBUG, "DEBUG", msg);
/**
* TODO
*/
static void *load... | 30.235669 | 132 | 0.679376 | Kakise |
364adf89e74a56afb5ccd0ad9ea857e0bc2d4172 | 778 | hpp | C++ | Spiel/src/engine/util/Perf.hpp | Ipotrick/CPP-2D-Game-Engine | 9cd87c369d813904d76668fe6153c7c4e8686023 | [
"MIT"
] | null | null | null | Spiel/src/engine/util/Perf.hpp | Ipotrick/CPP-2D-Game-Engine | 9cd87c369d813904d76668fe6153c7c4e8686023 | [
"MIT"
] | null | null | null | Spiel/src/engine/util/Perf.hpp | Ipotrick/CPP-2D-Game-Engine | 9cd87c369d813904d76668fe6153c7c4e8686023 | [
"MIT"
] | null | null | null | #pragma once
#include <chrono>
#include "types/Timing.hpp"
struct PerfLogger {
public:
inline void clear() {
timeMap.clear();
timeFloatMap.clear();
}
inline void commitTimes() {
for (auto& el : timeMap) {
timeFloatMap[el.first] = micsecToFloat(el.second);
el.second = std::chrono::microseconds(0);
}
... | 25.096774 | 110 | 0.712082 | Ipotrick |
3652d579b85fc97a779b03272288dfc9c7cdf8d6 | 1,999 | cc | C++ | libhcandata/data_file.cc | hcanIngo/openHCAN | 8aef7070482af7ae996755799e5d65d0d3b56553 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 21 | 2015-12-19T21:08:02.000Z | 2021-09-09T09:39:23.000Z | libhcandata/data_file.cc | RealMerlin/openHCAN | 7e15e725c3d6f2a5a36ccd55f5699685356d8287 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 10 | 2015-12-18T20:24:22.000Z | 2021-07-03T12:30:15.000Z | libhcandata/data_file.cc | RealMerlin/openHCAN | 7e15e725c3d6f2a5a36ccd55f5699685356d8287 | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 6 | 2015-12-27T17:15:21.000Z | 2021-09-09T09:39:38.000Z | #include "data_file.h"
#include <libhcan++/traceable_error.h>
#include <libhcandata/file_format_v1.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>
#include <string.h>
#include <sys/mman.h>
using namespace hcan;
data_file::data_file(const std::string &filename... | 22.977011 | 76 | 0.727864 | hcanIngo |
365999a1264ae33e95c3692cd6fd175c8ba7056c | 2,989 | cpp | C++ | Source/Base/src/ResolverSelf_IP_v4.cpp | RamilGauss/MMO-Framework | c7c97b019adad940db86d6533861deceafb2ba04 | [
"MIT"
] | 27 | 2015-01-08T08:26:29.000Z | 2019-02-10T03:18:05.000Z | Source/Base/src/ResolverSelf_IP_v4.cpp | RamilGauss/MMO-Framework | c7c97b019adad940db86d6533861deceafb2ba04 | [
"MIT"
] | 1 | 2017-04-05T02:02:14.000Z | 2017-04-05T02:02:14.000Z | Source/Base/src/ResolverSelf_IP_v4.cpp | RamilGauss/MMO-Framework | c7c97b019adad940db86d6533861deceafb2ba04 | [
"MIT"
] | 17 | 2015-01-18T02:50:01.000Z | 2019-02-08T21:00:53.000Z | /*
Author: Gudakov Ramil Sergeevich a.k.a. Gauss
Гудаков Рамиль Сергеевич
Contacts: [ramil2085@mail.ru, ramil2085@gmail.com]
See for more information LICENSE.md.
*/
#include "ResolverSelf_IP_v4.h"
#include "SingletonManager.h"
#include <stdio.h>
#include <boost/asio.hpp>
#include <string.h>
#ifndef WIN32... | 28.466667 | 85 | 0.560723 | RamilGauss |
365a237c9ef04c3c69ee4c12a0bcd9dd512816b5 | 1,384 | hpp | C++ | console/console_app.hpp | BKarschat/wlanitor | e2ac42b6989d4200dc00385c2601c60e198cdc2f | [
"MIT"
] | null | null | null | console/console_app.hpp | BKarschat/wlanitor | e2ac42b6989d4200dc00385c2601c60e198cdc2f | [
"MIT"
] | null | null | null | console/console_app.hpp | BKarschat/wlanitor | e2ac42b6989d4200dc00385c2601c60e198cdc2f | [
"MIT"
] | null | null | null | /* uses ncurses to interact with user
by Bastian Karschat 5.3.2017
*/
class Print_devices;
#ifndef CONSOLE_APP_HPP
#define CONSOLE_APP_HPP
#include "../DeviceMonitor/Device_Monitor.hpp"
#include "../DeviceMonitor/bss.hpp"
#include <unistd.h>
#include <ncurses.h> /* ncurses.h includes stdio.h */... | 23.457627 | 98 | 0.708815 | BKarschat |
365f0d2138197adc0b0f5c169285aeb8fa8bef2f | 1,762 | hpp | C++ | libs/fnd/tuple/include/bksge/fnd/tuple/inl/tuple_init_type_inl.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/fnd/tuple/include/bksge/fnd/tuple/inl/tuple_init_type_inl.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/fnd/tuple/include/bksge/fnd/tuple/inl/tuple_init_type_inl.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file tuple_init_type_inl.hpp
*
* @brief tuple_init_type の実装
*
* @author myoukaku
*/
#ifndef BKSGE_FND_TUPLE_INL_TUPLE_INIT_TYPE_INL_HPP
#define BKSGE_FND_TUPLE_INL_TUPLE_INIT_TYPE_INL_HPP
#include <bksge/fnd/tuple/tuple_init_type.hpp>
#include <bksge/fnd/tuple/tuple_element.hpp>
#include <b... | 20.729412 | 54 | 0.713394 | myoukaku |
366024cf6b599b67673c37cc4b6fcc16160d4f88 | 667 | hpp | C++ | src/Utils/str.hpp | Reewr/master | 76725548d0b6ff3ac22f5383eb0c773d2fcc2a4b | [
"MIT"
] | 4 | 2017-05-22T04:14:06.000Z | 2022-02-09T19:15:10.000Z | src/Utils/str.hpp | Reewr/master | 76725548d0b6ff3ac22f5383eb0c773d2fcc2a4b | [
"MIT"
] | null | null | null | src/Utils/str.hpp | Reewr/master | 76725548d0b6ff3ac22f5383eb0c773d2fcc2a4b | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <vector>
namespace str {
std::string toUpper(const std::string& s);
std::string toLower(const std::string& s);
std::string utf8toStr(unsigned int utf8);
std::string replace(const std::string& s,
const std::string& replaceStr,
... | 27.791667 | 75 | 0.652174 | Reewr |
3660667fbb42bfba3160ad417b2fac58e709f355 | 5,117 | cpp | C++ | simulator/src/main.cpp | rollends/SE499 | 949b9cc85abe558b84289d906b730605c2f32c3b | [
"MIT"
] | null | null | null | simulator/src/main.cpp | rollends/SE499 | 949b9cc85abe558b84289d906b730605c2f32c3b | [
"MIT"
] | null | null | null | simulator/src/main.cpp | rollends/SE499 | 949b9cc85abe558b84289d906b730605c2f32c3b | [
"MIT"
] | null | null | null | #include <array>
#include <boost/numeric/odeint.hpp>
#include <Eigen/Geometry>
#include <iostream>
#include "rose499/sfcontrol.hpp"
#include "rose499/sylvester.hpp"
#include "rose499/trackcontrol.hpp"
using namespace Eigen;
using namespace SimulatorTypes;
void fillCampusWorld(World& world);
int main(int argc, char*... | 35.783217 | 133 | 0.618917 | rollends |
3669a43cdc015482eb9f121ba9da9e12832f36ef | 369 | cpp | C++ | pulsar/datastore/CacheData.cpp | pulsar-chem/BPModule | f8e64e04fdb01947708f098e833600c459c2ff0e | [
"BSD-3-Clause"
] | null | null | null | pulsar/datastore/CacheData.cpp | pulsar-chem/BPModule | f8e64e04fdb01947708f098e833600c459c2ff0e | [
"BSD-3-Clause"
] | null | null | null | pulsar/datastore/CacheData.cpp | pulsar-chem/BPModule | f8e64e04fdb01947708f098e833600c459c2ff0e | [
"BSD-3-Clause"
] | null | null | null | #include "pulsar/datastore/CacheData.hpp"
namespace pulsar {
std::set<std::string> CacheData::get_keys(void) const
{
return get_my_keys_();
}
size_t CacheData::size(void) const noexcept
{
return get_my_keys_().size();
}
size_t CacheData::erase(const std::string & key)
{
return parent_cmap_->erase(make_... | 16.043478 | 53 | 0.712737 | pulsar-chem |
36787590687cb44f6aa8ea1f02254ff56f7bf2ac | 709 | hpp | C++ | include/RadonFramework/Threading/Scopelock.hpp | tak2004/RadonFramework | e916627a54a80fac93778d5010c50c09b112259b | [
"Apache-2.0"
] | 3 | 2015-09-15T06:57:50.000Z | 2021-03-16T19:05:02.000Z | include/RadonFramework/Threading/Scopelock.hpp | tak2004/RadonFramework | e916627a54a80fac93778d5010c50c09b112259b | [
"Apache-2.0"
] | 2 | 2015-09-26T12:41:10.000Z | 2015-12-08T08:41:37.000Z | include/RadonFramework/Threading/Scopelock.hpp | tak2004/RadonFramework | e916627a54a80fac93778d5010c50c09b112259b | [
"Apache-2.0"
] | 1 | 2015-07-09T02:56:34.000Z | 2015-07-09T02:56:34.000Z | #ifndef RF_THREADING_SCOPELOCK_HPP
#define RF_THREADING_SCOPELOCK_HPP
#if _MSC_VER > 1000
#pragma once
#endif
namespace RadonFramework::System::Threading
{
class Mutex;
}
namespace RadonFramework::Threading
{
class Scopelock
{
public:
Scopelock(System::Threading::Mutex& Ref);
~Scopelock();
protected:
System::T... | 20.257143 | 48 | 0.787024 | tak2004 |
36787d0ed9f3f2155ec8cd66c180de69135c4b21 | 22,913 | cpp | C++ | silkrpc/txpool/miner_test.cpp | enriavil1/silkrpc | 1fa2109658d4c89b6cfdd5190d919bd1324f367e | [
"Apache-2.0"
] | null | null | null | silkrpc/txpool/miner_test.cpp | enriavil1/silkrpc | 1fa2109658d4c89b6cfdd5190d919bd1324f367e | [
"Apache-2.0"
] | null | null | null | silkrpc/txpool/miner_test.cpp | enriavil1/silkrpc | 1fa2109658d4c89b6cfdd5190d919bd1324f367e | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2020-2021 The Silkrpc Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agr... | 43.150659 | 173 | 0.672195 | enriavil1 |
367956547b77b4893d8a733a9bef7d1a6bef90c8 | 1,891 | cpp | C++ | Candy Crush/Candy Crush/SDL_Button.cpp | JoanStinson/CandyCrush | 0e1f478fbf50a1e1073f8bf955a0ef25eba527e2 | [
"MIT"
] | 2 | 2020-08-20T04:04:52.000Z | 2021-03-31T03:42:29.000Z | Candy Crush/Candy Crush/SDL_Button.cpp | JoanStinson/Candy_Crush | 0e1f478fbf50a1e1073f8bf955a0ef25eba527e2 | [
"MIT"
] | null | null | null | Candy Crush/Candy Crush/SDL_Button.cpp | JoanStinson/Candy_Crush | 0e1f478fbf50a1e1073f8bf955a0ef25eba527e2 | [
"MIT"
] | 1 | 2020-05-05T12:47:25.000Z | 2020-05-05T12:47:25.000Z | // SDL_button.c - an implementation of buttons to be used with SDL
// Author : Tim Smith (tim14smith@gmail.com)
#include "SDL_Button.h"
#include <stdbool.h>
void SDL_Button_free(SDL_Button_t *button) {
delete button->internal_surface;
delete button->location_and_size;
delete button;
}
// Get a new SDL button
SDL_... | 27.808824 | 117 | 0.717081 | JoanStinson |
367ae162e9c19dc2a98717c7c154c55e849f8b61 | 1,908 | cpp | C++ | modules/complex-number/test/test_chernyh_daria_complex_number.cpp | splashbros30/devtools-course-practice | 4f4c987ce2ee602e835b9b94ece03f3590abbafc | [
"CC-BY-4.0"
] | 1 | 2021-03-20T18:53:08.000Z | 2021-03-20T18:53:08.000Z | modules/complex-number/test/test_chernyh_daria_complex_number.cpp | splashbros30/devtools-course-practice | 4f4c987ce2ee602e835b9b94ece03f3590abbafc | [
"CC-BY-4.0"
] | 3 | 2021-04-22T17:12:19.000Z | 2021-05-14T12:16:25.000Z | modules/complex-number/test/test_chernyh_daria_complex_number.cpp | splashbros30/devtools-course-practice | 4f4c987ce2ee602e835b9b94ece03f3590abbafc | [
"CC-BY-4.0"
] | null | null | null | // Copyright 2021 Chernyh Daria
#include <gtest/gtest.h>
#include <tuple>
#include "include/complex_number.h"
typedef testing::TestWithParam<std::tuple<double, double>>
Chernyh_Daria_ComplexNumberTest_Parametrized;
TEST_P(Chernyh_Daria_ComplexNumberTest_Parametrized,
Addition_of_conjugate) {
double numberRe = s... | 32.896552 | 75 | 0.760482 | splashbros30 |
36803d7e72611ff0e7be48aa4911641c428805df | 2,924 | cpp | C++ | vendor/mysql-connector-c++-1.1.3/test/CJUnitTestsPort/ccpptests.cpp | caiqingfeng/libmrock | bb7c94482a105e92b6d3e8640b13f9ff3ae49a83 | [
"Apache-2.0"
] | 1 | 2015-12-01T04:16:54.000Z | 2015-12-01T04:16:54.000Z | vendor/mysql-connector-c++-1.1.3/test/CJUnitTestsPort/ccpptests.cpp | caiqingfeng/libmrock | bb7c94482a105e92b6d3e8640b13f9ff3ae49a83 | [
"Apache-2.0"
] | null | null | null | vendor/mysql-connector-c++-1.1.3/test/CJUnitTestsPort/ccpptests.cpp | caiqingfeng/libmrock | bb7c94482a105e92b6d3e8640b13f9ff3ae49a83 | [
"Apache-2.0"
] | null | null | null | /*
Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved.
The MySQL Connector/C++ is licensed under the terms of the GPLv2
<http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
MySQL Connectors. There are special exceptions to the terms and
conditions of the GPLv2 as it is applied to... | 34.4 | 93 | 0.711012 | caiqingfeng |
36857639e24cf4649e2fb9ca19db3cf37ff3dd80 | 1,218 | hpp | C++ | mathutils/graph/util/set/set_impl.hpp | rxnew/mathutils | 2e8e8c9c99f7cfdbcc4f972f5b68e37dd1fc4f0d | [
"MIT"
] | null | null | null | mathutils/graph/util/set/set_impl.hpp | rxnew/mathutils | 2e8e8c9c99f7cfdbcc4f972f5b68e37dd1fc4f0d | [
"MIT"
] | null | null | null | mathutils/graph/util/set/set_impl.hpp | rxnew/mathutils | 2e8e8c9c99f7cfdbcc4f972f5b68e37dd1fc4f0d | [
"MIT"
] | null | null | null | #pragma once
namespace mathutils {
namespace util {
inline namespace set {
template <class T>
auto set_union(const std::unordered_set<T>& set, const T& value)
-> std::unordered_set<T> {
std::unordered_set<T> result = set;
result.insert(value);
return std::move(result);
}
template <class T>
auto set_union(cons... | 23.423077 | 64 | 0.633005 | rxnew |
368675bb9995135c0fdd2797963671c0457ac37e | 298 | cpp | C++ | Hackerearth/linear search/counting-frog-paths.cpp | Yayady1999/Complete-coding-notes | 3236d315248e0d130b8b9c6d591d3c45577282c6 | [
"MIT"
] | 54 | 2020-07-31T14:50:23.000Z | 2022-03-14T11:03:02.000Z | Other/Hackerearth/linear search/counting-frog-paths.cpp | SahilMund/dsa | a94151b953b399ea56ff50cf30dfe96100e8b9a7 | [
"MIT"
] | null | null | null | Other/Hackerearth/linear search/counting-frog-paths.cpp | SahilMund/dsa | a94151b953b399ea56ff50cf30dfe96100e8b9a7 | [
"MIT"
] | 30 | 2020-08-15T17:39:02.000Z | 2022-03-10T06:50:18.000Z | #include <bits/stdc++.h>
#include <iostream>
using namespace std;
int main() {
int x,y,s,t,points=0;
cin >> x >> y >> s >> t;
for(int i=0, j=t; i<=t; i++, j--) {
if(j>=y && j<=y+s) {
points += min(max(0,i-x+1), s+1);
}
}
cout << points << endl;
}
| 17.529412 | 45 | 0.432886 | Yayady1999 |
3688cc4b2fc04a23bf2114ac88e9c5fb28291171 | 1,296 | cpp | C++ | amr-wind/derive/field_algebra.cpp | mchurchf/amr-wind | 4bd712966e830a7c9412b0a4ec4cd8d1e6e0582f | [
"BSD-3-Clause"
] | 40 | 2019-11-27T15:38:45.000Z | 2022-03-07T10:56:35.000Z | amr-wind/derive/field_algebra.cpp | mchurchf/amr-wind | 4bd712966e830a7c9412b0a4ec4cd8d1e6e0582f | [
"BSD-3-Clause"
] | 207 | 2019-11-07T22:53:02.000Z | 2022-03-30T21:41:57.000Z | amr-wind/derive/field_algebra.cpp | mchurchf/amr-wind | 4bd712966e830a7c9412b0a4ec4cd8d1e6e0582f | [
"BSD-3-Clause"
] | 55 | 2019-11-08T19:25:08.000Z | 2022-03-15T20:36:25.000Z | #include "amr-wind/core/FieldRepo.H"
namespace amr_wind {
template <typename FType>
void normalize_field(FType& Field)
{
const auto& repo = Field.repo();
const auto ncomp = Field.num_comp();
const int nlevels = repo.num_active_levels();
for (int lev = 0; lev < nlevels; ++lev) {
for (amrex::MFI... | 34.105263 | 72 | 0.490741 | mchurchf |
3689659933c4e1d734fddeedf7aa55803ead976c | 596 | cc | C++ | src/game_process.cc | neguse/hakonotaiatari | 9a9d402133abb112e31e2fd12da5b22619ee08ff | [
"Unlicense"
] | null | null | null | src/game_process.cc | neguse/hakonotaiatari | 9a9d402133abb112e31e2fd12da5b22619ee08ff | [
"Unlicense"
] | null | null | null | src/game_process.cc | neguse/hakonotaiatari | 9a9d402133abb112e31e2fd12da5b22619ee08ff | [
"Unlicense"
] | null | null | null |
#include "precompile.h"
#include "game_process.h"
#include "state.h"
void GameProcess::onInit()
{
}
void GameProcess::onUpdate(f32 dt)
{
if (m_pState) {
m_pState->onUpdate(dt);
IState* pNext = m_pState->nextState();
if (pNext) {
trans(pNext);
}
}
}
void GameProcess::onRender()
{
... | 13.545455 | 41 | 0.583893 | neguse |
368a7b3068e8b537638bb737ae1434fe31eecbe1 | 4,682 | cpp | C++ | TommyGun/Plugins/ImageEditor/MonochromePalette/MonochromePalettePlugin.cpp | tonyt73/TommyGun | 2c2ffae3dcd5dc25fd64d68a9f4cc96d99a1cd36 | [
"BSD-3-Clause"
] | 34 | 2017-05-08T18:39:13.000Z | 2022-02-13T05:05:33.000Z | TommyGun/Plugins/ImageEditor/MonochromePalette/MonochromePalettePlugin.cpp | tonyt73/TommyGun | 2c2ffae3dcd5dc25fd64d68a9f4cc96d99a1cd36 | [
"BSD-3-Clause"
] | null | null | null | TommyGun/Plugins/ImageEditor/MonochromePalette/MonochromePalettePlugin.cpp | tonyt73/TommyGun | 2c2ffae3dcd5dc25fd64d68a9f4cc96d99a1cd36 | [
"BSD-3-Clause"
] | 6 | 2017-05-27T01:14:20.000Z | 2020-01-20T14:54:30.000Z | /*---------------------------------------------------------------------------
(c) 2004 Scorpio Software
19 Wittama Drive
Glenmore Park
Sydney NSW 2745
Australia
-----------------------------------------------------------------------------
$Workfile:: ... | 36.294574 | 100 | 0.452371 | tonyt73 |
368e88dc7e3baece30fa70d8da1ec1a07e5320d3 | 3,344 | cpp | C++ | samples/sample/MainScene.cpp | zapolnov/game_engine | cd22dc0f49aeadd660eec3ea9b95b1ca2696f97a | [
"MIT",
"Unlicense"
] | null | null | null | samples/sample/MainScene.cpp | zapolnov/game_engine | cd22dc0f49aeadd660eec3ea9b95b1ca2696f97a | [
"MIT",
"Unlicense"
] | null | null | null | samples/sample/MainScene.cpp | zapolnov/game_engine | cd22dc0f49aeadd660eec3ea9b95b1ca2696f97a | [
"MIT",
"Unlicense"
] | null | null | null | /*
* Copyright (c) 2015 Nikolay Zapolnov (zapolnov@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 the rights
* to use, c... | 35.574468 | 106 | 0.666567 | zapolnov |
3691e36b8e33dfe46947810d9704b5e53f00f8bc | 4,680 | hpp | C++ | include/opcodes.hpp | mujido/moove | 380fd0ea2eb2ad59b62a27bb86079ecb8c5b783b | [
"Apache-2.0"
] | null | null | null | include/opcodes.hpp | mujido/moove | 380fd0ea2eb2ad59b62a27bb86079ecb8c5b783b | [
"Apache-2.0"
] | null | null | null | include/opcodes.hpp | mujido/moove | 380fd0ea2eb2ad59b62a27bb86079ecb8c5b783b | [
"Apache-2.0"
] | null | null | null | //Copyright (c) 2004 Kurt Stutsman. All rights reserved.
/**
* \file
* \brief Define the opcodes used for byte compilation and interpretation
*/
#ifndef MOOVE_OPCODES_HPP
#define MOOVE_OPCODES_HPP
#include "codevect.hpp"
#include "immediate.hpp"
namespace Moove {
/**
* Opcodes handled internally by the VM.
*
*... | 35.725191 | 122 | 0.426282 | mujido |
3695f4e8d8a68fbb19f75c4d585507840338a596 | 3,326 | cpp | C++ | src/org/apache/poi/hssf/record/aggregates/DataValidityTable.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/hssf/record/aggregates/DataValidityTable.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/hssf/record/aggregates/DataValidityTable.cpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /POI/java/org/apache/poi/hssf/record/aggregates/DataValidityTable.java
#include <org/apache/poi/hssf/record/aggregates/DataValidityTable.hpp>
#include <java/lang/Class.hpp>
#include <java/lang/ClassCastException.hpp>
#include <java/lang/NullPointerException.hpp>
#include <java/lang/Object.hpp>
#inclu... | 33.938776 | 157 | 0.69543 | pebble2015 |
369be65e03323cec46f38841022822a5cc4a82f6 | 1,266 | cc | C++ | src/simple-quic/quicsock/quicsock_alarm.cc | Hasan-Jawaheri/quic-tor | f8a5b8b93a82eb515808d381bfbb2cc662e12513 | [
"MIT"
] | null | null | null | src/simple-quic/quicsock/quicsock_alarm.cc | Hasan-Jawaheri/quic-tor | f8a5b8b93a82eb515808d381bfbb2cc662e12513 | [
"MIT"
] | null | null | null | src/simple-quic/quicsock/quicsock_alarm.cc | Hasan-Jawaheri/quic-tor | f8a5b8b93a82eb515808d381bfbb2cc662e12513 | [
"MIT"
] | null | null | null | #include "quicsock/quicsock_alarm.h"
#include "base/logging.h"
#include "net/quic/quic_time.h"
namespace quicsock {
QuicSockAlarm::QuicSockAlarm(const net::QuicClock* clock,
net::QuicAlarm::Delegate* delegate, QuicSockEventHandler *event_handler)
: net::QuicAlarm(delegate),
clock_(clock),
... | 24.346154 | 80 | 0.703002 | Hasan-Jawaheri |
369cdad1421e383cc31aaac0c3da8fba587bde8a | 8,730 | cpp | C++ | particle-system/particle-system-app.cpp | ddiakopoulos/sandbox | fd4aa4d0e1cd6e45459cdee44aa18d0087adb708 | [
"Unlicense"
] | 177 | 2015-09-19T19:51:57.000Z | 2021-11-08T11:25:55.000Z | particle-system/particle-system-app.cpp | ddiakopoulos/gfx_dev | fd4aa4d0e1cd6e45459cdee44aa18d0087adb708 | [
"Unlicense"
] | 1 | 2016-03-16T23:27:11.000Z | 2016-03-17T08:12:54.000Z | particle-system/particle-system-app.cpp | ddiakopoulos/gfx_dev | fd4aa4d0e1cd6e45459cdee44aa18d0087adb708 | [
"Unlicense"
] | 16 | 2016-03-16T13:06:55.000Z | 2020-06-20T04:57:04.000Z | #include "index.hpp"
#include "particle-system-app.hpp"
#include "imgui/imgui_internal.h"
using namespace avl;
constexpr const char basic_vert[] = R"(#version 330
layout(location = 0) in vec3 vertex;
uniform mat4 u_mvp;
void main()
{
gl_Position = u_mvp * vec4(vertex.xyz, 1);
}
)";
conste... | 29.693878 | 161 | 0.659679 | ddiakopoulos |
36a4f5dda86073051037eaaf5fa0c696fde83c61 | 490 | cpp | C++ | Problems/Codeforces/CF-1200B.cpp | zhugezy/giggle | dfa50744a9fd328678b75af8135bbd770f18a6ac | [
"MIT"
] | 6 | 2019-10-12T15:14:10.000Z | 2020-02-02T11:16:00.000Z | Problems/Codeforces/CF-1200B.cpp | zhugezy/giggle | dfa50744a9fd328678b75af8135bbd770f18a6ac | [
"MIT"
] | 73 | 2019-10-11T15:09:40.000Z | 2020-09-15T07:49:24.000Z | Problems/Codeforces/CF-1200B.cpp | zhugezy/giggle | dfa50744a9fd328678b75af8135bbd770f18a6ac | [
"MIT"
] | 5 | 2019-10-14T02:57:39.000Z | 2020-06-19T09:38:34.000Z | // 1200B
#include <bits/stdc++.h>
using namespace std;
int T, n, m, k;
int h[110];
int main() {
cin >> T;
while (T--) {
cin >> n >> m >> k;
for (int i = 1; i <= n; ++i)
cin >> h[i];
bool flag = true;
for (int i = 1; i < n; ++i) {
int d = max(0, h[i + 1] - k);
if (d > h[i] + m) {... | 16.333333 | 35 | 0.383673 | zhugezy |
36a87e6e8147da72f3f3322e2eb701f5a59f668d | 7,606 | cpp | C++ | artifact/storm/src/storm/transformer/MemoryIncorporation.cpp | glatteis/tacas21-artifact | 30b4f522bd3bdb4bebccbfae93f19851084a3db5 | [
"MIT"
] | null | null | null | artifact/storm/src/storm/transformer/MemoryIncorporation.cpp | glatteis/tacas21-artifact | 30b4f522bd3bdb4bebccbfae93f19851084a3db5 | [
"MIT"
] | null | null | null | artifact/storm/src/storm/transformer/MemoryIncorporation.cpp | glatteis/tacas21-artifact | 30b4f522bd3bdb4bebccbfae93f19851084a3db5 | [
"MIT"
] | 1 | 2022-02-05T12:39:53.000Z | 2022-02-05T12:39:53.000Z | #include "MemoryIncorporation.h"
#include "storm/models/sparse/Mdp.h"
#include "storm/models/sparse/MarkovAutomaton.h"
#include "storm/models/sparse/StandardRewardModel.h"
#include "storm/storage/memorystructure/MemoryStructureBuilder.h"
#include "storm/storage/memorystructure/NondeterministicMemoryStructureBuilder.h"... | 71.084112 | 236 | 0.705233 | glatteis |
36ac700a1898833842a0f452688ae8ae2a38a2e7 | 1,182 | cpp | C++ | DSP/extensions/WindowFunctionLib/source/TTHanningWindow.cpp | avilleret/JamomaCore | b09cfb684527980f30845f664e1f922005c24e60 | [
"BSD-3-Clause"
] | 31 | 2015-02-28T23:51:10.000Z | 2021-12-25T04:16:01.000Z | DSP/extensions/WindowFunctionLib/source/TTHanningWindow.cpp | avilleret/JamomaCore | b09cfb684527980f30845f664e1f922005c24e60 | [
"BSD-3-Clause"
] | 126 | 2015-01-01T13:42:05.000Z | 2021-07-13T14:11:42.000Z | DSP/extensions/WindowFunctionLib/source/TTHanningWindow.cpp | avilleret/JamomaCore | b09cfb684527980f30845f664e1f922005c24e60 | [
"BSD-3-Clause"
] | 14 | 2015-02-10T15:08:32.000Z | 2019-09-17T01:21:25.000Z | /** @file
*
* @ingroup dspWindowFunctionLib
*
* @brief Hanning Window Function Unit for Jamoma DSP
*
* @details This implements a window function as described @
http://local.wasp.uwa.edu.au/~pbourke/miscellaneous/windows/ @n
hanning(x) = 0.5 + 0.5*cos(2*PI*(x-0.5)) @n
*
* @authors Nils Peters, Trond Lossius, ... | 23.176471 | 94 | 0.734349 | avilleret |
a5dd5ecf27213b2def0027b5f1fdbbef7412ba1f | 909 | cpp | C++ | sources/libcpp53iip_precision/iip_precision_bw_to_uchargray.cpp | Savraska2/GTS | 78c8b4d634f1379eb3e33642716717f53bf7e1ad | [
"BSD-3-Clause"
] | 61 | 2016-03-26T03:04:43.000Z | 2021-09-17T02:11:18.000Z | sources/libcpp53iip_precision/iip_precision_bw_to_uchargray.cpp | sahwar/GTS | b25734116ea81eb0d7e2eabc8ce16cdd1c8b22dd | [
"BSD-3-Clause"
] | 92 | 2016-04-10T23:40:22.000Z | 2022-03-11T21:49:12.000Z | sources/libcpp53iip_precision/iip_precision_bw_to_uchargray.cpp | sahwar/GTS | b25734116ea81eb0d7e2eabc8ce16cdd1c8b22dd | [
"BSD-3-Clause"
] | 18 | 2016-03-26T11:19:14.000Z | 2021-08-07T00:26:02.000Z | #include <limits.h> /* CHAR_BIT */
#include "pri.h"
#include "iip_precision.h"
#include "calcu_precision.h"
void iip_precision::_bw_to_uchargray( long l_width, long l_height, long l_max, unsigned char *ucharp_in_bw, unsigned char *ucharp_out_gray )
{
long xx,yy, l_in_bits;
/* カウントダウン表示始め */
if (ON == this->get_i_... | 23.921053 | 140 | 0.630363 | Savraska2 |
a5e0621d63f479bd9cf7347e37ff70b97e0e9da0 | 21,132 | cpp | C++ | src/shared/zip.cpp | project-imprimis/libprimis | ce0c0bae6852b42709736c8e324bcc2ef26d8dc9 | [
"Zlib"
] | 30 | 2020-10-30T20:21:55.000Z | 2022-03-19T02:23:48.000Z | src/shared/zip.cpp | project-imprimis/libprimis | ce0c0bae6852b42709736c8e324bcc2ef26d8dc9 | [
"Zlib"
] | 74 | 2020-11-06T03:40:44.000Z | 2022-03-30T20:18:07.000Z | src/shared/zip.cpp | project-imprimis/libprimis | ce0c0bae6852b42709736c8e324bcc2ef26d8dc9 | [
"Zlib"
] | 5 | 2020-12-21T19:29:27.000Z | 2022-01-12T05:17:06.000Z | #include "../engine/engine.h"
#include "../engine/interface/console.h"
enum
{
Zip_LocalFileSignature = 0x04034B50,
Zip_LocalFileSize = 30,
Zip_FileSignature = 0x02014B50,
Zip_FileSize = 46,
Zip_DirectorySignature = 0x06054B50,
Zip_DirectorySize = 22
};
struct zi... | 27.231959 | 241 | 0.479273 | project-imprimis |
a5e234e23a8237072a6610bf60c1fd72a500d036 | 2,724 | hpp | C++ | Graph_Instruction.hpp | gydrogen/hydrogen | 6c448b67471ce2bbef12a36a0182b58ac56a7da3 | [
"MIT"
] | 3 | 2020-04-02T17:09:07.000Z | 2020-12-23T11:27:17.000Z | Graph_Instruction.hpp | gydrogen/hydrogen | 6c448b67471ce2bbef12a36a0182b58ac56a7da3 | [
"MIT"
] | null | null | null | Graph_Instruction.hpp | gydrogen/hydrogen | 6c448b67471ce2bbef12a36a0182b58ac56a7da3 | [
"MIT"
] | 4 | 2020-04-04T23:22:48.000Z | 2020-08-06T08:39:23.000Z | /**
* @author Ashwin K J
* @file
* Graph_Instruction Class: Graph Data-structure for LLVM instructions
*/
#ifndef GRAPH_INSTRUCTION_H
#define GRAPH_INSTRUCTION_H
#include <list>
#include <llvm/IR/Module.h>
#include <set>
namespace hydrogen_framework {
/* Forward declaration */
class Graph_Edge;
class Graph_Line;
c... | 26.192308 | 101 | 0.674009 | gydrogen |
a5ee134dfa8b9a1daf7c99bd259d70225a506b50 | 589 | cpp | C++ | stlport/test/regression/uprbnd1.cpp | masscry/dmc | c7638f7c524a65bc2af0876c76621d8a11da42bb | [
"BSL-1.0"
] | 86 | 2018-05-24T12:03:44.000Z | 2022-03-13T03:01:25.000Z | stlport/test/regression/uprbnd1.cpp | masscry/dmc | c7638f7c524a65bc2af0876c76621d8a11da42bb | [
"BSL-1.0"
] | 1 | 2019-05-30T01:38:40.000Z | 2019-10-26T07:15:01.000Z | stlport/test/regression/uprbnd1.cpp | masscry/dmc | c7638f7c524a65bc2af0876c76621d8a11da42bb | [
"BSL-1.0"
] | 14 | 2018-07-16T08:29:12.000Z | 2021-08-23T06:21:30.000Z | // STLport regression testsuite component.
// To compile as a separate example, please #define MAIN.
#include <algorithm>
#include <iostream>
#ifdef MAIN
#define uprbnd1_test main
#endif
#if !defined (STLPORT) || defined(__STL_USE_NAMESPACES)
using namespace std;
#endif
int uprbnd1_test(int, char**)
{
cout<<"Resu... | 20.310345 | 61 | 0.633277 | masscry |
a5eec2dcc0ee6a02b8e59f79843d22a3dc1425d6 | 4,063 | cpp | C++ | wxSnapshot/src/common/statbmpcmn.cpp | KeyWorksRW/wxUiTesting | 249861f72b71221220c95c6271d496d6e1b6d10a | [
"Apache-2.0"
] | null | null | null | wxSnapshot/src/common/statbmpcmn.cpp | KeyWorksRW/wxUiTesting | 249861f72b71221220c95c6271d496d6e1b6d10a | [
"Apache-2.0"
] | 4 | 2022-01-23T02:05:42.000Z | 2022-01-26T18:03:34.000Z | wxSnapshot/src/common/statbmpcmn.cpp | KeyWorksRW/wxUiTesting | 249861f72b71221220c95c6271d496d6e1b6d10a | [
"Apache-2.0"
] | null | null | null | /////////////////////////////////////////////////////////////////////////////
// Name: src/common/statbmpcmn.cpp
// Purpose: wxStaticBitmap common code
// Author: Julian Smart
// Modified by:
// Created: 04/01/98
// Copyright: (c) Julian Smart
// Licence: wxWindows licence
////////////////////... | 28.815603 | 80 | 0.587989 | KeyWorksRW |
a5f0e60549f4018b1fb770c5e73bd0802cec8bec | 125 | cpp | C++ | examples/include_this.cpp | andrewkatson/denarii | ee5f07f43255b02aac521a6ae9715cc7c80eaa65 | [
"MIT"
] | null | null | null | examples/include_this.cpp | andrewkatson/denarii | ee5f07f43255b02aac521a6ae9715cc7c80eaa65 | [
"MIT"
] | null | null | null | examples/include_this.cpp | andrewkatson/denarii | ee5f07f43255b02aac521a6ae9715cc7c80eaa65 | [
"MIT"
] | null | null | null | //
// Created by katso on 2/16/2022.
//
#include "include_this.h"
void include_this::do_something() {
std::string str;
} | 12.5 | 35 | 0.664 | andrewkatson |
a5f3d6ceafefaff233e74736bea050db1943fba1 | 1,968 | hpp | C++ | inst/include/target/utils.hpp | kkholst/gof | 806286ccec6509155e44fb221eb34aaf0b3bfb20 | [
"Apache-2.0"
] | null | null | null | inst/include/target/utils.hpp | kkholst/gof | 806286ccec6509155e44fb221eb34aaf0b3bfb20 | [
"Apache-2.0"
] | null | null | null | inst/include/target/utils.hpp | kkholst/gof | 806286ccec6509155e44fb221eb34aaf0b3bfb20 | [
"Apache-2.0"
] | null | null | null | /*!
@file utils.hpp
@author Klaus K. Holst
@copyright 2020, Klaus Kähler Holst
@brief Various utility functions and constants
*/
#pragma once
#ifndef ARMA_R
#include <armadillo>
#endif
#if defined(ARMA_R)
#include <RcppArmadillo.h>
#endif
#include <cmath>
#include <complex>
#include <cfloat> // precisio... | 26.958904 | 101 | 0.64685 | kkholst |
a5f559354eeb67e2ce81fd607c86be10ab5eabba | 2,011 | hpp | C++ | source/hougfx/include/hou/gfx/glyph.hpp | DavideCorradiDev/houzi-game-engine | d704aa9c5b024300578aafe410b7299c4af4fcec | [
"MIT"
] | 2 | 2018-04-12T20:59:20.000Z | 2018-07-26T16:04:07.000Z | source/hougfx/include/hou/gfx/glyph.hpp | DavideCorradiDev/houzi-game-engine | d704aa9c5b024300578aafe410b7299c4af4fcec | [
"MIT"
] | null | null | null | source/hougfx/include/hou/gfx/glyph.hpp | DavideCorradiDev/houzi-game-engine | d704aa9c5b024300578aafe410b7299c4af4fcec | [
"MIT"
] | null | null | null | // Houzi Game Engine
// Copyright (c) 2018 Davide Corradi
// Licensed under the MIT license.
#ifndef HOU_GFX_GLYPH_HPP
#define HOU_GFX_GLYPH_HPP
#include "hou/gfx/gfx_config.hpp"
#include "hou/gfx/glyph_metrics.hpp"
#include "hou/sys/image.hpp"
#include <iostream>
namespace hou
{
/** Class describing a glyph, i... | 19.152381 | 73 | 0.664843 | DavideCorradiDev |
570832e0c44f4b20771d63d64d0ef251931f02ca | 1,707 | hpp | C++ | include/process.hpp | MRLintern/System-Monitor | c7acce4b88ece5791906a8aaca6c4cbc9f584183 | [
"MIT"
] | 5 | 2021-02-16T16:39:33.000Z | 2021-08-11T04:08:45.000Z | include/process.hpp | MRLintern/System-Monitor | c7acce4b88ece5791906a8aaca6c4cbc9f584183 | [
"MIT"
] | 2 | 2021-08-17T22:05:25.000Z | 2021-08-21T02:18:43.000Z | include/process.hpp | MRLintern/System-Monitor | c7acce4b88ece5791906a8aaca6c4cbc9f584183 | [
"MIT"
] | 10 | 2020-04-15T18:57:48.000Z | 2022-01-07T17:18:22.000Z | #ifndef PROCESS_H
#define PROCESS_H
#include <string>
/*
Basic class for Process representation
It contains relevant attributes as shown below
*/
class Process {
public:
// constructor to initialize Process with the read process-ID from filesystem
Process(int pid);
// Return this process's ID
int Pid();
// ... | 27.532258 | 79 | 0.721734 | MRLintern |
570a931589d79c90268ae265d814f68e9f604274 | 4,955 | cpp | C++ | gui/miniplot.cpp | klindworth/disparity_estimation | 74759d35f7635ff725629a1ae555d313f3e9fb29 | [
"BSD-2-Clause"
] | null | null | null | gui/miniplot.cpp | klindworth/disparity_estimation | 74759d35f7635ff725629a1ae555d313f3e9fb29 | [
"BSD-2-Clause"
] | null | null | null | gui/miniplot.cpp | klindworth/disparity_estimation | 74759d35f7635ff725629a1ae555d313f3e9fb29 | [
"BSD-2-Clause"
] | null | null | null | /*
Copyright (c) 2013, Kai Klindworth
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, this
list of conditions and the followi... | 25.807292 | 119 | 0.708981 | klindworth |
570e37a193fabb0d9f7421016ba27d0c7c1edc71 | 16,306 | cpp | C++ | src/dlgcanalinterfacesettings.cpp | benys/vscpworks | 755a1733d0c55c8dd22d65e0e1ed1598311ef999 | [
"MIT"
] | 1 | 2019-11-22T15:24:50.000Z | 2019-11-22T15:24:50.000Z | src/dlgcanalinterfacesettings.cpp | benys/vscpworks | 755a1733d0c55c8dd22d65e0e1ed1598311ef999 | [
"MIT"
] | 1 | 2020-05-05T18:40:57.000Z | 2020-05-05T18:40:57.000Z | src/dlgcanalinterfacesettings.cpp | benys/vscpworks | 755a1733d0c55c8dd22d65e0e1ed1598311ef999 | [
"MIT"
] | 1 | 2020-05-05T08:07:32.000Z | 2020-05-05T08:07:32.000Z | /////////////////////////////////////////////////////////////////////////////
// Name: dlgcanalinterfacesettings.cpp
// Purpose:
// Author: Ake Hedman
// Modified by:
// Created: Thu 28 Jun 2007 20:45:11 CEST
// RCS-ID:
// Copyright: (C) 2007-2017
// Ake Hedman, Grodans Paradis AB, <akhe@... | 42.243523 | 164 | 0.703545 | benys |
570ee372540af36521e1f71b807ea5826353f4cd | 588 | hh | C++ | include/BucatiniSteppingAction.hh | EdoPro98/Bucatini | a904d9a8c48ec90b3dfe9d370ae51f0653b14def | [
"MIT"
] | null | null | null | include/BucatiniSteppingAction.hh | EdoPro98/Bucatini | a904d9a8c48ec90b3dfe9d370ae51f0653b14def | [
"MIT"
] | null | null | null | include/BucatiniSteppingAction.hh | EdoPro98/Bucatini | a904d9a8c48ec90b3dfe9d370ae51f0653b14def | [
"MIT"
] | null | null | null | #ifndef BucatiniSteppingAction_h
#define BucatiniSteppingAction_h 1
#include "G4UserSteppingAction.hh"
class BucatiniDetectorConstruction;
class BucatiniEventAction;
class BucatiniSteppingAction : public G4UserSteppingAction {
public:
BucatiniSteppingAction(BucatiniEventAction* eventAction);
~BucatiniSteppingAc... | 21.777778 | 60 | 0.746599 | EdoPro98 |
571228983be129c0cc201f4b7dba8738bc2d5afa | 203 | cpp | C++ | BasicGameFramework/Object/SampleSprite.cpp | dlwlxns4/WitchHouse | 7b2fd8acead69baa9b0850e0ddcb7520b32ef47e | [
"BSD-3-Clause"
] | null | null | null | BasicGameFramework/Object/SampleSprite.cpp | dlwlxns4/WitchHouse | 7b2fd8acead69baa9b0850e0ddcb7520b32ef47e | [
"BSD-3-Clause"
] | null | null | null | BasicGameFramework/Object/SampleSprite.cpp | dlwlxns4/WitchHouse | 7b2fd8acead69baa9b0850e0ddcb7520b32ef47e | [
"BSD-3-Clause"
] | null | null | null | #include "SampleSprite.h"
#include "../Component/TileSelectComponent.h"
void SampleSprite::Init()
{
TileSelectComponent* tileSelectComponent = new TileSelectComponent(this,1);
GameObject::Init();
}
| 18.454545 | 76 | 0.763547 | dlwlxns4 |
57127b1a41a6840be801500e09dd26dc88503986 | 8,403 | cpp | C++ | CPP/7zip/UI/FileManager/SettingsPage.cpp | sdottaka/sevenzip | 69f3d03c97753429c3989cc26243578ec32b18b0 | [
"DOC",
"Info-ZIP"
] | 8 | 2019-01-04T03:06:36.000Z | 2022-03-17T07:32:41.000Z | CPP/7zip/UI/FileManager/SettingsPage.cpp | WinMerge/sevenzip | 69f3d03c97753429c3989cc26243578ec32b18b0 | [
"DOC",
"Info-ZIP"
] | 1 | 2021-12-24T14:50:09.000Z | 2021-12-27T11:58:49.000Z | CPP/7zip/UI/FileManager/SettingsPage.cpp | WinMerge/sevenzip | b361efa151e94e117741298bbf12b5e98ef49005 | [
"DOC",
"Info-ZIP"
] | 1 | 2019-03-20T07:28:01.000Z | 2019-03-20T07:28:01.000Z | // SettingsPage.cpp
#include "StdAfx.h"
// #include "../../../Common/IntToString.h"
// #include "../../../Common/StringConvert.h"
#ifndef UNDER_CE
#include "../../../Windows/MemoryLock.h"
// #include "../../../Windows/System.h"
#endif
// #include "../Common/ZipRegistry.h"
#include "HelpUtils.h"
#inc... | 23.940171 | 87 | 0.613709 | sdottaka |
571346c554ca35c100e13f7ccd627a56d54347ea | 4,309 | cpp | C++ | rfsim/plugins/BallFollowMovement.cpp | thofyb/RobotFootballSim | 646f88b52e1c29aa7480dc9e473fec1e8ce41ecf | [
"MIT"
] | 1 | 2021-04-13T08:31:05.000Z | 2021-04-13T08:31:05.000Z | rfsim/plugins/BallFollowMovement.cpp | thofyb/RobotFootballSim | 646f88b52e1c29aa7480dc9e473fec1e8ce41ecf | [
"MIT"
] | 2 | 2021-04-06T19:03:17.000Z | 2021-04-07T16:32:28.000Z | rfsim/plugins/BallFollowMovement.cpp | thofyb/RobotFootballSim | 646f88b52e1c29aa7480dc9e473fec1e8ce41ecf | [
"MIT"
] | 1 | 2021-04-19T12:06:52.000Z | 2021-04-19T12:06:52.000Z | ////////////////////////////////////////////////////////////////////////////////////
// MIT License //
// //
// Copyright (c) 2021 The RobotFootballSim project authors ... | 39.898148 | 105 | 0.534231 | thofyb |
571a48315a826edb35159bb76166f2d6eecadf01 | 175 | cpp | C++ | CentipedeGame_gageoconnor/Game Components/CommandScore.cpp | Shaditto/centipede-teal | f078b11eaecddae17709dc9f917348b7b0733d56 | [
"MIT"
] | null | null | null | CentipedeGame_gageoconnor/Game Components/CommandScore.cpp | Shaditto/centipede-teal | f078b11eaecddae17709dc9f917348b7b0733d56 | [
"MIT"
] | null | null | null | CentipedeGame_gageoconnor/Game Components/CommandScore.cpp | Shaditto/centipede-teal | f078b11eaecddae17709dc9f917348b7b0733d56 | [
"MIT"
] | 1 | 2019-11-13T19:26:34.000Z | 2019-11-13T19:26:34.000Z | #include "CommandScore.h"
#include "ScoreManager.h"
CommandScore::CommandScore(int val)
: points(val)
{
}
void CommandScore::Execute()
{
ScoreManager::AddScore(points);
} | 13.461538 | 35 | 0.731429 | Shaditto |
571d76f07da5c29965a72473add85ae74559115e | 142,960 | cpp | C++ | source/fen_moyenne.cpp | yves-marieRaiffaud/school-marks-logger | 817f03d7c13673ed161b4f4804b4e4f64204507f | [
"MIT"
] | null | null | null | source/fen_moyenne.cpp | yves-marieRaiffaud/school-marks-logger | 817f03d7c13673ed161b4f4804b4e4f64204507f | [
"MIT"
] | null | null | null | source/fen_moyenne.cpp | yves-marieRaiffaud/school-marks-logger | 817f03d7c13673ed161b4f4804b4e4f64204507f | [
"MIT"
] | null | null | null | #include "fen_moyenne.h"
fen_moyenne :: fen_moyenne()
{
setting = new QSettings("Mamouth Corporation", "Gestionnaire de Scolarité");
m_loc_annee_compare = new QString(setting->value("Location Fichiers/Annee.txt").toString());
QString root_folder = *m_loc_annee_compare;
QString annee = "/Annee.tx... | 49.330573 | 167 | 0.455519 | yves-marieRaiffaud |
57232002a64be89ab425f4f5bec3d71778adcc29 | 6,529 | hpp | C++ | Library/Private/APICommon/API/Common/Iterator.hpp | KonstantinTomashevich/Emergence | 83b1d52bb62bf619f9402e3081dd9de6b0cb232c | [
"Apache-2.0"
] | 3 | 2021-06-02T05:06:48.000Z | 2022-01-26T09:39:44.000Z | Library/Private/APICommon/API/Common/Iterator.hpp | KonstantinTomashevich/Emergence | 83b1d52bb62bf619f9402e3081dd9de6b0cb232c | [
"Apache-2.0"
] | null | null | null | Library/Private/APICommon/API/Common/Iterator.hpp | KonstantinTomashevich/Emergence | 83b1d52bb62bf619f9402e3081dd9de6b0cb232c | [
"Apache-2.0"
] | null | null | null | #pragma once
/// \brief Adds common forward iterator operators, copy constructor, move constructor and destructor.
/// \details There is a lot of similar iterators in different services. Therefore it's better to hide their common
/// operations under macro to avoid unnecessary declaration and documentation du... | 110.661017 | 120 | 0.277378 | KonstantinTomashevich |
5730683fc3301f945b3e80f30a8d8af1c5d2e3bd | 319 | cpp | C++ | 2-19/ASSIGNMENTS/POINTERSETC/pointerexample3.cpp | domijin/ComPhy | 0dea6d7b09eb4880b7f2d8f55c321c827e713488 | [
"MIT"
] | null | null | null | 2-19/ASSIGNMENTS/POINTERSETC/pointerexample3.cpp | domijin/ComPhy | 0dea6d7b09eb4880b7f2d8f55c321c827e713488 | [
"MIT"
] | null | null | null | 2-19/ASSIGNMENTS/POINTERSETC/pointerexample3.cpp | domijin/ComPhy | 0dea6d7b09eb4880b7f2d8f55c321c827e713488 | [
"MIT"
] | null | null | null | /***************
POINTEREXAMPLE
This program will run since a value is established
for a that can be pointed to by p.
*********/
#include<iostream>
using namespace std;
int main()
{
int * p; //p is declared as a pointer
int a=15;
*p=a;//the value 15 is put in the memory
//location p
return 0;
}
| 16.789474 | 50 | 0.611285 | domijin |
57314defd4cb12e2f5ef3d77c7036a50f80d2467 | 2,601 | cpp | C++ | QCIFSServer/SocketServer/Main.cpp | rodrigomr/VFS | 6b68b00df8cb668106c2d0841cbcd46138298717 | [
"Apache-2.0"
] | 38 | 2018-09-24T09:37:41.000Z | 2022-02-21T04:16:43.000Z | QCIFSServer/SocketServer/Main.cpp | rodrigomr/VFS | 6b68b00df8cb668106c2d0841cbcd46138298717 | [
"Apache-2.0"
] | 1 | 2018-10-02T17:57:44.000Z | 2018-10-07T06:55:44.000Z | QCIFSServer/SocketServer/Main.cpp | rodrigomr/VFS | 6b68b00df8cb668106c2d0841cbcd46138298717 | [
"Apache-2.0"
] | 6 | 2018-10-02T17:12:38.000Z | 2021-01-27T10:01:30.000Z | // Copyright 2018 Grass Valley, A Belden Brand
// 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 ag... | 44.844828 | 191 | 0.68243 | rodrigomr |
5731e3fb93794c5688a279f7c24004968ac50bde | 1,135 | cc | C++ | sokoban_cl.cc | gress2/pseudo-feedback-mcts | d8957d505feb4a146e1b76cd6484846dac2d399e | [
"MIT"
] | null | null | null | sokoban_cl.cc | gress2/pseudo-feedback-mcts | d8957d505feb4a146e1b76cd6484846dac2d399e | [
"MIT"
] | null | null | null | sokoban_cl.cc | gress2/pseudo-feedback-mcts | d8957d505feb4a146e1b76cd6484846dac2d399e | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include "sokoban_env.hpp"
using direction = sokoban_env::direction;
int main() {
sokoban_env env("skbn_cfgs/1.cfg");
env.render();
std::string input;
while (!env.is_game_over()) {
auto possible_moves = env.get_possible_moves();
std::cout << "possible moves: " <<... | 26.395349 | 76 | 0.562996 | gress2 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.