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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
eec17c14fba99a6d7c2327853aaaffb651da76cd | 784 | cpp | C++ | COJ/BalancedWordsII.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | 1 | 2019-09-29T03:58:35.000Z | 2019-09-29T03:58:35.000Z | COJ/BalancedWordsII.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | null | null | null | COJ/BalancedWordsII.cpp | MartinAparicioPons/Competitive-Programming | 58151df0ed08a5e4e605abefdd69fef1ecc10fa0 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <string>
#include <cstring>
using namespace std;
int main(){
int M1, m1, M2, m2, n, j;
cin >> n;
for(;n--;){
string s;
cin >> s;
m1 = 0;
M1 = 0;
M2 = 0;
m2 = 0;
if (s.size() == 1)
printf("SI\n");
else {
fo... | 18.232558 | 53 | 0.378827 | MartinAparicioPons |
eec2c016ac8dad05c48c89248f15dc47707cab18 | 6,749 | cpp | C++ | src/coremods/core_list/cmd_lget.cpp | BerilBBJ/beryldb | 6569b568796e4cea64fe7f42785b0319541a0284 | [
"BSD-3-Clause"
] | 206 | 2021-04-27T21:44:24.000Z | 2022-02-23T12:01:20.000Z | src/coremods/core_list/cmd_lget.cpp | BerilBBJ/beryldb | 6569b568796e4cea64fe7f42785b0319541a0284 | [
"BSD-3-Clause"
] | 10 | 2021-05-04T19:46:59.000Z | 2021-10-01T23:43:07.000Z | src/coremods/core_list/cmd_lget.cpp | berylcorp/beryl | 6569b568796e4cea64fe7f42785b0319541a0284 | [
"BSD-3-Clause"
] | 7 | 2021-04-28T16:17:56.000Z | 2021-12-10T01:14:42.000Z | /*
* BerylDB - A lightweight database.
* http://www.beryldb.com
*
* Copyright (C) 2021 - Carlos F. Ferry <cferry@beryldb.com>
*
* This file is part of BerylDB. BerylDB is free software: you can
* redistribute it and/or modify it under the terms of the BSD License
* version 3.
*
* More information about our l... | 27.659836 | 117 | 0.6032 | BerilBBJ |
eec82fbb92529c7a02722a79a494e254c6ef96d1 | 3,546 | cpp | C++ | stages/bgSub.cpp | simonfojtu/FireSight | c096fa165a1ec6a389008a1d703ab8e45b32ee8d | [
"MIT"
] | null | null | null | stages/bgSub.cpp | simonfojtu/FireSight | c096fa165a1ec6a389008a1d703ab8e45b32ee8d | [
"MIT"
] | null | null | null | stages/bgSub.cpp | simonfojtu/FireSight | c096fa165a1ec6a389008a1d703ab8e45b32ee8d | [
"MIT"
] | null | null | null | #include <cassert>
#include <string.h>
#include <math.h>
#include <iostream>
#include <stdexcept>
#include "FireLog.h"
#include "Pipeline.h"
#include "opencv2/features2d/features2d.hpp"
#include "opencv2/video/background_segm.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "j... | 31.105263 | 101 | 0.671743 | simonfojtu |
eece0df635da27ede5a69c0f7aa4ac511e7f2ea7 | 27,788 | cpp | C++ | stocks_exchange/src/binance_query.cpp | Rapprise/b2s-trader | ac8a3c2221d15c4df8df63842d20dafd6801e535 | [
"BSD-2-Clause"
] | 21 | 2020-06-07T20:34:47.000Z | 2021-08-10T20:19:59.000Z | stocks_exchange/src/binance_query.cpp | Rapprise/b2s-trader | ac8a3c2221d15c4df8df63842d20dafd6801e535 | [
"BSD-2-Clause"
] | null | null | null | stocks_exchange/src/binance_query.cpp | Rapprise/b2s-trader | ac8a3c2221d15c4df8df63842d20dafd6801e535 | [
"BSD-2-Clause"
] | 4 | 2020-07-13T10:19:44.000Z | 2022-03-11T12:15:43.000Z | /*
* Copyright (c) 2020, Rapprise.
* 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 condition... | 43.898894 | 100 | 0.711746 | Rapprise |
eed55109a3add719048ba9a2a5a395db7b981568 | 10,204 | hpp | C++ | foothold_planner/include/foothold_planner/FootholdPlanner.hpp | lukechencqu/laikago_trotting_up_stairs | 1d1433671f95a1b4834ffb489a47a4b893b05018 | [
"Apache-2.0"
] | 4 | 2021-04-26T11:28:09.000Z | 2021-12-09T13:18:13.000Z | foothold_planner/include/foothold_planner/FootholdPlanner.hpp | superxh/laikago_trotting_up_stairs | 1d1433671f95a1b4834ffb489a47a4b893b05018 | [
"Apache-2.0"
] | 1 | 2021-04-16T18:19:42.000Z | 2021-04-16T18:19:42.000Z | foothold_planner/include/foothold_planner/FootholdPlanner.hpp | superxh/laikago_trotting_up_stairs | 1d1433671f95a1b4834ffb489a47a4b893b05018 | [
"Apache-2.0"
] | 2 | 2021-08-13T03:40:58.000Z | 2021-12-24T01:32:42.000Z |
#pragma once
//! STL
#include <thread>
//! ROS
#include <ros/ros.h>
#include <geometry_msgs/Vector3.h>
#include <geometry_msgs/PolygonStamped.h>
#include <geometry_msgs/PointStamped.h>
#include <visualization_msgs/Marker.h>
#include <std_srvs/Empty.h>
//! grid map
//#include <grid_map_msgs/GridMap.h>
//#include <gr... | 31.493827 | 139 | 0.52352 | lukechencqu |
eed64da7d0ed7b4fcd466a1eb25c586dfe7368c8 | 626 | cpp | C++ | src/traderlib/core/apiclient/apiconversation.cpp | AndreaCitrolo/Trader | 5ebaff6d5661471357cb827d3b0c61adafc24b50 | [
"MIT"
] | null | null | null | src/traderlib/core/apiclient/apiconversation.cpp | AndreaCitrolo/Trader | 5ebaff6d5661471357cb827d3b0c61adafc24b50 | [
"MIT"
] | 1 | 2019-11-06T23:15:30.000Z | 2019-11-11T10:04:32.000Z | src/traderlib/core/apiclient/apiconversation.cpp | AndreaCitrolo/Trader | 5ebaff6d5661471357cb827d3b0c61adafc24b50 | [
"MIT"
] | 1 | 2019-11-10T00:01:07.000Z | 2019-11-10T00:01:07.000Z | #include "apiconversation.hpp"
#include "../apiclient/apiresponsebuilder.hpp"
namespace bitinvest {
namespace core {
namespace apiclient {
ApiConversation::ApiConversation(const core::bom::ApiRequest & iRequest,
QObject* parent = 0):
QObject(parent), mRequest(iRequest)
{}
void A... | 23.185185 | 110 | 0.733227 | AndreaCitrolo |
eed8ffcc1b1230a316a4b71b0c7dfe0ea36e8ec7 | 4,928 | cpp | C++ | Practice/2018/2018.1.25/BZOJ4825.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | 4 | 2017-10-31T14:25:18.000Z | 2018-06-10T16:10:17.000Z | Practice/2018/2018.1.25/BZOJ4825.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | Practice/2018/2018.1.25/BZOJ4825.cpp | SYCstudio/OI | 6e9bfc17dbd4b43467af9b19aa2aed41e28972fa | [
"MIT"
] | null | null | null | #include<iostream>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<algorithm>
#include<set>
#include<map>
using namespace std;
#define ll long long
#define mem(Arr,x) memset(Arr,x,sizeof(Arr))
const int maxN=100010;
const int inf=2147483647;
class Splay_Data
{
public:
int fa,ch[2];
int size,rev;
int... | 19.555556 | 76 | 0.596185 | SYCstudio |
4abff9a8a572c75a67e79edca531568c5a8a61b1 | 3,746 | hpp | C++ | 3rdparty/link-android/include/ableton/link/Kalman.hpp | ferluht/pocketdaw | 0e40b32191e431cde54cd5944611c4b5b293ea68 | [
"BSD-2-Clause"
] | null | null | null | 3rdparty/link-android/include/ableton/link/Kalman.hpp | ferluht/pocketdaw | 0e40b32191e431cde54cd5944611c4b5b293ea68 | [
"BSD-2-Clause"
] | null | null | null | 3rdparty/link-android/include/ableton/link/Kalman.hpp | ferluht/pocketdaw | 0e40b32191e431cde54cd5944611c4b5b293ea68 | [
"BSD-2-Clause"
] | 1 | 2022-03-29T19:45:51.000Z | 2022-03-29T19:45:51.000Z | /* Copyright 2016, Ableton AG, Berlin. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
... | 26.013889 | 89 | 0.642285 | ferluht |
4ac2028e5f6a4332472ef1dc9917db2e9899a8d0 | 1,573 | cpp | C++ | LeetCodeCPP/112. Path Sum/main.cpp | 18600130137/leetcode | fd2dc72c0b85da50269732f0fcf91326c4787d3a | [
"Apache-2.0"
] | 1 | 2019-03-29T03:33:56.000Z | 2019-03-29T03:33:56.000Z | LeetCodeCPP/112. Path Sum/main.cpp | 18600130137/leetcode | fd2dc72c0b85da50269732f0fcf91326c4787d3a | [
"Apache-2.0"
] | null | null | null | LeetCodeCPP/112. Path Sum/main.cpp | 18600130137/leetcode | fd2dc72c0b85da50269732f0fcf91326c4787d3a | [
"Apache-2.0"
] | null | null | null | //
// main.cpp
// 112. Path Sum
//
// Created by admin on 2019/4/12.
// Copyright © 2019年 liu. All rights reserved.
//
#include <iostream>
#include <vector>
#include <queue>
using namespace std;
/**
* Definition for a binary tree node.
*/
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
... | 21.847222 | 73 | 0.534011 | 18600130137 |
4ac552fd82e86dad28892f11a61f334b60ce0cc6 | 15,338 | cpp | C++ | Engine/Platforms/Vulkan/110/Vk1RenderPass.cpp | azhirnov/GraphicsGenFramework-modular | 348be601f1991f102defa0c99250529f5e44c4d3 | [
"BSD-2-Clause"
] | 12 | 2017-12-23T14:24:57.000Z | 2020-10-02T19:52:12.000Z | Engine/Platforms/Vulkan/110/Vk1RenderPass.cpp | azhirnov/ModularGraphicsFramework | 348be601f1991f102defa0c99250529f5e44c4d3 | [
"BSD-2-Clause"
] | null | null | null | Engine/Platforms/Vulkan/110/Vk1RenderPass.cpp | azhirnov/ModularGraphicsFramework | 348be601f1991f102defa0c99250529f5e44c4d3 | [
"BSD-2-Clause"
] | null | null | null | // Copyright (c) Zhirnov Andrey. For more information see 'LICENSE.txt'
#include "Core/Config/Engine.Config.h"
#ifdef GRAPHICS_API_VULKAN
#include "Engine/Platforms/Vulkan/110/Vk1RenderPassCache.h"
#include "Engine/Platforms/Vulkan/VulkanObjectsConstructor.h"
namespace Engine
{
namespace PlatformVK
{
//
// Vu... | 32.087866 | 171 | 0.632155 | azhirnov |
4ad0f1fcbdf3b1f2a1471f11a2f98558efe4314f | 941 | cpp | C++ | src/chrono/Clock.cpp | bander9289/StratifyAPI | 9b45091aa71a4e5718047438ea4044c1fdc814a3 | [
"MIT"
] | 2 | 2016-05-21T03:09:19.000Z | 2016-08-27T03:40:51.000Z | src/chrono/Clock.cpp | bander9289/StratifyAPI | 9b45091aa71a4e5718047438ea4044c1fdc814a3 | [
"MIT"
] | 75 | 2017-10-08T22:21:19.000Z | 2020-03-30T21:13:20.000Z | src/chrono/Clock.cpp | StratifyLabs/StratifyLib | 975a5c25a84296fd0dec64fe4dc579cf7027abe6 | [
"MIT"
] | 5 | 2018-03-27T16:44:09.000Z | 2020-07-08T16:45:55.000Z | /*! \file */ // Copyright 2011-2020 Tyler Gilbert and Stratify Labs, Inc; see LICENSE.md for rights.
#include "chrono/Clock.hpp"
#if defined __macosx
#include <sys/time.h>
static int clock_gettime(int clk_id, struct timespec* t) {
MCU_UNUSED_ARGUMENT(clk_id);
struct timeval now;
int rv = gettimeofday(&now, NULL);
... | 22.95122 | 100 | 0.730074 | bander9289 |
4adb403c3f6f9b1d804f2c787f60af1e16d98259 | 3,452 | hh | C++ | libs/quadwild/libs/CoMISo/NSolver/NConstraintInterface.hh | Pentacode-IAFA/Quad-Remeshing | f8fd4c10abf1c54656b38a00b8a698b952a85fe2 | [
"Apache-2.0"
] | null | null | null | libs/quadwild/libs/CoMISo/NSolver/NConstraintInterface.hh | Pentacode-IAFA/Quad-Remeshing | f8fd4c10abf1c54656b38a00b8a698b952a85fe2 | [
"Apache-2.0"
] | null | null | null | libs/quadwild/libs/CoMISo/NSolver/NConstraintInterface.hh | Pentacode-IAFA/Quad-Remeshing | f8fd4c10abf1c54656b38a00b8a698b952a85fe2 | [
"Apache-2.0"
] | null | null | null | //=============================================================================
//
// CLASS NConstraintInterface
//
//=============================================================================
#ifndef COMISO_NCONSTRAINTINTERFACE_HH
#define COMISO_NCONSTRAINTINTERFACE_HH
//== COMPILE-TIME PACKAGE REQUIREMENTS ===... | 31.099099 | 100 | 0.490151 | Pentacode-IAFA |
4adbc688521346e3b456f53c960516c3d8ad0bac | 4,817 | cc | C++ | mmap/mmap_file.cc | datacratic/DasDB | 5ccc1fc7c6c69c97e3dae0e02bb4009f95908d3b | [
"Apache-2.0"
] | 3 | 2017-12-06T00:25:52.000Z | 2021-08-24T20:46:54.000Z | mmap/mmap_file.cc | datacratic/DasDB | 5ccc1fc7c6c69c97e3dae0e02bb4009f95908d3b | [
"Apache-2.0"
] | null | null | null | mmap/mmap_file.cc | datacratic/DasDB | 5ccc1fc7c6c69c97e3dae0e02bb4009f95908d3b | [
"Apache-2.0"
] | 1 | 2016-11-24T17:14:16.000Z | 2016-11-24T17:14:16.000Z | /* mmap_file.cc -*- C++ -*-
Jeremy Barnes, 16 December 2011
Copyright (c) 2011 Datacratic. All rights reserved.
*/
#include "mmap_file.h"
#include "memory_region.h"
#include "mmap_trie.h"
#include "journal.h"
#include "jml/utils/guard.h"
#include <sys/mman.h>... | 25.352632 | 79 | 0.550965 | datacratic |
4ae67fcfb06ea691bbd3c827d6d74cfd045f9b1c | 1,685 | hpp | C++ | maze/inc/m4c0/maze/grid.hpp | m4c0/m4c0-stl | 5e47439528faee466270706534143c87b4af8cbb | [
"MIT"
] | null | null | null | maze/inc/m4c0/maze/grid.hpp | m4c0/m4c0-stl | 5e47439528faee466270706534143c87b4af8cbb | [
"MIT"
] | null | null | null | maze/inc/m4c0/maze/grid.hpp | m4c0/m4c0-stl | 5e47439528faee466270706534143c87b4af8cbb | [
"MIT"
] | null | null | null | #pragma once
#include "m4c0/maze/model.hpp"
namespace m4c0::maze {
template<unsigned GridW, unsigned GridH>
class grid {
static constexpr const auto grid_width = GridW;
static constexpr const auto grid_height = GridH;
static constexpr const auto room_count = grid_width * grid_height;
using room_t... | 26.746032 | 81 | 0.594659 | m4c0 |
4ae7ef7e8846548513d3090071cdd81aa257c776 | 2,066 | cpp | C++ | NetcodeAssetLib/Importer.cpp | tyekx/netcode | c46fef1eeb33ad029d0c262d39309dfa83f76c4d | [
"MIT"
] | null | null | null | NetcodeAssetLib/Importer.cpp | tyekx/netcode | c46fef1eeb33ad029d0c262d39309dfa83f76c4d | [
"MIT"
] | null | null | null | NetcodeAssetLib/Importer.cpp | tyekx/netcode | c46fef1eeb33ad029d0c262d39309dfa83f76c4d | [
"MIT"
] | null | null | null | #include "Importer.h"
#include <type_traits>
#include <cstdio>
namespace Netcode::Asset {
namespace Detail {
template<typename T>
void ReadArray(T * dst, uint32_t numElements, const uint8_t ** data) {
static_assert(std::is_pod<T>::value, "Must be plain old data type");
memcpy(dst, *data, sizeof(T) * num... | 27.546667 | 91 | 0.696031 | tyekx |
4aeb936a9600a341192495a03b032220dc096b0f | 7,204 | cpp | C++ | gui/main_window/IntroduceYourself.cpp | Vavilon3000/icq | 9fe7a3c42c07eb665d2e3b0ec50052de382fd89c | [
"Apache-2.0"
] | 1 | 2021-03-18T20:00:07.000Z | 2021-03-18T20:00:07.000Z | gui/main_window/IntroduceYourself.cpp | Vavilon3000/icq | 9fe7a3c42c07eb665d2e3b0ec50052de382fd89c | [
"Apache-2.0"
] | null | null | null | gui/main_window/IntroduceYourself.cpp | Vavilon3000/icq | 9fe7a3c42c07eb665d2e3b0ec50052de382fd89c | [
"Apache-2.0"
] | null | null | null | #include "stdafx.h"
#include "IntroduceYourself.h"
#include "../controls/CommonStyle.h"
#include "../controls/ContactAvatarWidget.h"
#include "../controls/LineEditEx.h"
#include "../controls/TextEmojiWidget.h"
#include "../core_dispatcher.h"
#include "../gui_settings.h"
#include "../utils/utils.h"
#include "../utils/I... | 39.801105 | 145 | 0.626735 | Vavilon3000 |
4af0666d8962fafd25dc87b22f5ecf549087d329 | 3,371 | cpp | C++ | tst/dat/ugrid.cpp | transpixel/TPQZcam | b44a97d44b49e9aa76c36efb6e4102091ff36c67 | [
"MIT"
] | 1 | 2017-06-01T00:21:16.000Z | 2017-06-01T00:21:16.000Z | tst/dat/ugrid.cpp | transpixel/TPQZcam | b44a97d44b49e9aa76c36efb6e4102091ff36c67 | [
"MIT"
] | 3 | 2017-06-01T00:26:16.000Z | 2020-05-09T21:06:27.000Z | testdat/ugrid.cpp | transpixel/tpqz | 2d8400b1be03292d0c5ab74710b87e798ae6c52c | [
"MIT"
] | null | null | null | //
//
// MIT License
//
// Copyright (c) 2017 Stellacore Corporation.
//
// Permission is hereby granted, free of charge, to any person obtaining
// a copy of this software and associated documentation files (the
// "Software"), to deal in the Software without restriction, including
// without limitation the rights to ... | 24.786765 | 72 | 0.672204 | transpixel |
4af2184a3de1a25ae58315c13e037e9ce811f226 | 467 | cpp | C++ | problems/acmicpc_5582.cpp | qawbecrdtey/BOJ-sol | e3f410e8f4e3a6ade51b68ce2024529870edac64 | [
"MIT"
] | null | null | null | problems/acmicpc_5582.cpp | qawbecrdtey/BOJ-sol | e3f410e8f4e3a6ade51b68ce2024529870edac64 | [
"MIT"
] | null | null | null | problems/acmicpc_5582.cpp | qawbecrdtey/BOJ-sol | e3f410e8f4e3a6ade51b68ce2024529870edac64 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
int main() {
string s, t;
cin >> s >> t;
auto a = new int*[s.size() + 1];
int max = 0;
for(int i = 0; i <= s.size(); i++) {
a[i] = new int[t.size() + 1]();
if(!i) continue;
for(int j = 1; j <= t.size(); j++) {
if(s[i - 1] == t[j - 1]) a[i][j] = a[... | 23.35 | 58 | 0.460385 | qawbecrdtey |
4af87e6182e37389c894c75675fb8da4fd9598bc | 293 | hpp | C++ | library/include/ux/sgfx/Dim.hpp | StratifyLabs/UxAPI | 4dc043b132452896ed9626038d53439b0def786a | [
"MIT"
] | null | null | null | library/include/ux/sgfx/Dim.hpp | StratifyLabs/UxAPI | 4dc043b132452896ed9626038d53439b0def786a | [
"MIT"
] | null | null | null | library/include/ux/sgfx/Dim.hpp | StratifyLabs/UxAPI | 4dc043b132452896ed9626038d53439b0def786a | [
"MIT"
] | null | null | null | /*! \file */ // Copyright 2011-2020 Tyler Gilbert and Stratify Labs, Inc; see LICENSE.md for rights.
#ifndef UXAPI_UX_SGFX_DIM_HPP_
#define UXAPI_UX_SGFX_DIM_HPP_
#include "Area.hpp"
namespace ux::sgfx {
API_DEPRECATED("Use Area")
typedef Area Dim;
}
#endif /* UXAPI_UX_SGFX_DIM_HPP_ */
| 18.3125 | 100 | 0.74744 | StratifyLabs |
4afb16ffed75bb1ebac47b717a62f2a49d3fe848 | 1,451 | cpp | C++ | src/X11/EventDispatcher.x11.cpp | MatthewZelriche/NamelessWindow | 394d7b44fb9af9b2fc6f0b89c0443a39fa89f4d2 | [
"MIT"
] | null | null | null | src/X11/EventDispatcher.x11.cpp | MatthewZelriche/NamelessWindow | 394d7b44fb9af9b2fc6f0b89c0443a39fa89f4d2 | [
"MIT"
] | null | null | null | src/X11/EventDispatcher.x11.cpp | MatthewZelriche/NamelessWindow | 394d7b44fb9af9b2fc6f0b89c0443a39fa89f4d2 | [
"MIT"
] | null | null | null | #include "EventDispatcher.x11.hpp"
#include <X11/extensions/XInput2.h>
#include <xcb/xinput.h>
#include <cstring>
#include "NamelessWindow/Events/Key.hpp"
#include "XConnection.h"
using namespace NLSWIN;
std::vector<std::weak_ptr<EventListenerX11>> EventDispatcherX11::m_listeners;
xcb_connection_t *EventDispatcher... | 29.612245 | 85 | 0.696761 | MatthewZelriche |
4afd4d523453e5070b5480908f675271a70f597e | 7,421 | cpp | C++ | engine/source/Animation/ModelArmature.cpp | MaxSigma/SGEngine | 68a01012911b8d91c9ff6d960a0f7d1163940e09 | [
"MIT"
] | 11 | 2020-10-21T15:03:41.000Z | 2020-11-03T09:15:28.000Z | engine/source/Animation/ModelArmature.cpp | MaxSigma/SGEngine | 68a01012911b8d91c9ff6d960a0f7d1163940e09 | [
"MIT"
] | null | null | null | engine/source/Animation/ModelArmature.cpp | MaxSigma/SGEngine | 68a01012911b8d91c9ff6d960a0f7d1163940e09 | [
"MIT"
] | 1 | 2020-10-27T00:13:41.000Z | 2020-10-27T00:13:41.000Z | /////////////////////////////////////////////////////
// Sirnic's Game Engine © Max Gittel //
/////////////////////////////////////////////////////
#include "ModelArmature.h"
#include "ArmatureAnimation.h"
namespace sge {
// Armature /////////
BoneNode::BoneNode(){
parent=NULL;
bone=NU... | 20.904225 | 92 | 0.556798 | MaxSigma |
4afe76d4b503acd52e62ff216a24f9e68eaeb375 | 228 | cpp | C++ | source/toy/gadget/StringExt.cpp | ToyAuthor/ToyBox | f517a64d00e00ccaedd76e33ed5897edc6fde55e | [
"Unlicense"
] | 4 | 2017-07-06T22:18:41.000Z | 2021-05-24T21:28:37.000Z | source/toy/gadget/StringExt.cpp | ToyAuthor/ToyBox | f517a64d00e00ccaedd76e33ed5897edc6fde55e | [
"Unlicense"
] | null | null | null | source/toy/gadget/StringExt.cpp | ToyAuthor/ToyBox | f517a64d00e00ccaedd76e33ed5897edc6fde55e | [
"Unlicense"
] | 1 | 2020-08-02T13:00:38.000Z | 2020-08-02T13:00:38.000Z | #include <algorithm>
#include "toy/gadget/StringExt.hpp"
namespace toy{
namespace gadget{
std::string Reverse(const std::string &str)
{
std::string clone(str);
std::reverse(clone.begin(), clone.end());
return clone;
}
}}
| 14.25 | 43 | 0.701754 | ToyAuthor |
ab00f45e932f777fda03b7752a05941f94757450 | 1,400 | cpp | C++ | src/mix_lib/source/registers.cpp | grishavanika/mix | 6a4b465debfd16a6cdc4b76cb730a17ee631b062 | [
"MIT"
] | 3 | 2018-01-25T01:14:37.000Z | 2021-08-31T15:22:21.000Z | src/mix_lib/source/registers.cpp | grishavanika/mix | 6a4b465debfd16a6cdc4b76cb730a17ee631b062 | [
"MIT"
] | null | null | null | src/mix_lib/source/registers.cpp | grishavanika/mix | 6a4b465debfd16a6cdc4b76cb730a17ee631b062 | [
"MIT"
] | 3 | 2020-03-07T06:35:23.000Z | 2020-12-04T04:15:35.000Z | #include <mix/registers.h>
#include <mix/word_field.h>
using namespace mix;
void IndexRegister::set_byte(std::size_t index, const Byte& byte)
{
if (is_undefined_index(index))
{
return;
}
Register::set_byte(index, byte);
}
void IndexRegister::zero_unspecified_bytes()
{
for (std::size_t i = 1;... | 16.86747 | 72 | 0.668571 | grishavanika |
ab037bfe42329ff61fb65c9a92fd9c50356b8f66 | 1,369 | cpp | C++ | Foundation/src/NamedEvent_VMS.cpp | AppAnywhere/agent-sdk | c5495c4a1d892f2d3bca5b82a7436db7d8adff71 | [
"BSL-1.0"
] | null | null | null | Foundation/src/NamedEvent_VMS.cpp | AppAnywhere/agent-sdk | c5495c4a1d892f2d3bca5b82a7436db7d8adff71 | [
"BSL-1.0"
] | null | null | null | Foundation/src/NamedEvent_VMS.cpp | AppAnywhere/agent-sdk | c5495c4a1d892f2d3bca5b82a7436db7d8adff71 | [
"BSL-1.0"
] | null | null | null | //
// NamedEvent_VMS.cpp
//
// $Id: //poco/1.7/Foundation/src/NamedEvent_VMS.cpp#1 $
//
// Library: Foundation
// Package: Processes
// Module: NamedEvent
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "Poco/NamedE... | 20.742424 | 93 | 0.68225 | AppAnywhere |
ab063af27ce624d5d72ceba8babc42177bdfcf0e | 2,140 | cpp | C++ | src/telemetry/TelemetryManager.cpp | xDimon/primitive | 092e9158444710cdde45c57c4115efa06c85e161 | [
"Apache-2.0"
] | 12 | 2017-09-12T20:47:16.000Z | 2019-04-05T11:39:40.000Z | src/telemetry/TelemetryManager.cpp | xDimon/primitive | 092e9158444710cdde45c57c4115efa06c85e161 | [
"Apache-2.0"
] | null | null | null | src/telemetry/TelemetryManager.cpp | xDimon/primitive | 092e9158444710cdde45c57c4115efa06c85e161 | [
"Apache-2.0"
] | 1 | 2018-11-23T16:51:55.000Z | 2018-11-23T16:51:55.000Z | // Copyright © 2017-2019 Dmitriy Khaustov
//
// 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 a... | 21.836735 | 81 | 0.713551 | xDimon |
ab072000dbd2d4d07097cf51fe5a16c6a124e19f | 118 | cpp | C++ | test/c8_dep/c8_dep.cpp | hashingitcom/c8 | 3a6c00f5b25bb98cc82b39605d5f14b0f2e820e5 | [
"BSD-3-Clause"
] | 2 | 2018-07-11T10:59:19.000Z | 2020-09-20T08:36:10.000Z | test/c8_dep/c8_dep.cpp | hashingitcom/c8 | 3a6c00f5b25bb98cc82b39605d5f14b0f2e820e5 | [
"BSD-3-Clause"
] | 25 | 2017-01-09T22:08:39.000Z | 2017-05-29T19:07:31.000Z | test/c8_dep/c8_dep.cpp | hashingitcom/c8 | 3a6c00f5b25bb98cc82b39605d5f14b0f2e820e5 | [
"BSD-3-Clause"
] | null | null | null | /*
* c8_dep.c
*/
#include <c8.h>
/*
* Entry point.
*/
auto main(int argc, char **argv) -> int {
return 0;
}
| 9.076923 | 41 | 0.508475 | hashingitcom |
ab0a632a1213aff9183005de38da7f8f854de235 | 577 | hpp | C++ | source/parlex/include/parlex/cpp_generator.hpp | dlin172/Plange | 4b36a1225b2263bc8d38a6d1cc9b50c3d4b58e04 | [
"BSD-3-Clause"
] | null | null | null | source/parlex/include/parlex/cpp_generator.hpp | dlin172/Plange | 4b36a1225b2263bc8d38a6d1cc9b50c3d4b58e04 | [
"BSD-3-Clause"
] | null | null | null | source/parlex/include/parlex/cpp_generator.hpp | dlin172/Plange | 4b36a1225b2263bc8d38a6d1cc9b50c3d4b58e04 | [
"BSD-3-Clause"
] | null | null | null | #ifndef PARLEX_CPP_GENERATOR_HPP
#define PARLEX_CPP_GENERATOR_HPP
#include <map>
#include <vector>
#include <list>
namespace parlex {
struct builder;
class cpp_generator {
public:
typedef std::map<std::string /* filename */, std::string /* content */> file_dictionary;
struct output_files {
file_dictionary head... | 20.607143 | 118 | 0.745234 | dlin172 |
ab0dbb1eab997c5ee51f1526c740c539895e2fe5 | 885 | cpp | C++ | sources/U2L/usabilitycheck.cpp | ARyaskov/Usability2L | 18c2bf9860b08ac96e17f1be44263b1051dd8ba6 | [
"BSD-2-Clause"
] | null | null | null | sources/U2L/usabilitycheck.cpp | ARyaskov/Usability2L | 18c2bf9860b08ac96e17f1be44263b1051dd8ba6 | [
"BSD-2-Clause"
] | null | null | null | sources/U2L/usabilitycheck.cpp | ARyaskov/Usability2L | 18c2bf9860b08ac96e17f1be44263b1051dd8ba6 | [
"BSD-2-Clause"
] | null | null | null | #include "../../includes/U2L/usabilitycheck.h"
UsabilityCheck::UsabilityCheck(QObject *parent) :
QObject(parent), m_name("EmptyName"),
m_description("EmptyDesc"), m_parentGroup("EmptyParentGroup"),
m_code([&]{qDebug() << "Empty lambda";})
{
}
UsabilityCheck::UsabilityCheck(QString name, QString d... | 31.607143 | 87 | 0.709605 | ARyaskov |
ab0fb2ac7fe50a9091eb2743ef38ab6ea9e8f242 | 2,283 | hpp | C++ | c++.controladores.ia/controlador_busqueda.hpp | vvbv/Mario-Smart | 62917574998da556a66a2599757b7a163ba6c4ba | [
"MIT"
] | null | null | null | c++.controladores.ia/controlador_busqueda.hpp | vvbv/Mario-Smart | 62917574998da556a66a2599757b7a163ba6c4ba | [
"MIT"
] | null | null | null | c++.controladores.ia/controlador_busqueda.hpp | vvbv/Mario-Smart | 62917574998da556a66a2599757b7a163ba6c4ba | [
"MIT"
] | null | null | null | #ifndef CONTROLADOR_GENERAL_HPP_
#define CONTROLADOR_GENERAL_HPP_
#include <tuple>
#include <chrono>
#include <ctime>
#include <thread>
#include <algorithm>
#include <fstream>
#include <cmath>
#include <limits>
#include "controlador_entorno.cpp"
#include "controlador_agente.cpp... | 46.591837 | 167 | 0.652212 | vvbv |
ab10a6ba779beafadb539d5852d1abdaf94b0dc7 | 806 | hpp | C++ | src/library/hw_identifier/default_strategy.hpp | extremoburo/open-license-manager | 555457c5d722885c03e63405dc186ca6ba62a0f1 | [
"BSD-3-Clause"
] | 316 | 2015-01-21T22:33:44.000Z | 2020-11-20T19:26:22.000Z | src/library/hw_identifier/default_strategy.hpp | extremoburo/open-license-manager | 555457c5d722885c03e63405dc186ca6ba62a0f1 | [
"BSD-3-Clause"
] | 84 | 2015-06-09T21:17:09.000Z | 2020-11-19T08:45:33.000Z | src/library/hw_identifier/default_strategy.hpp | ChrigiGee/open-license-manager | 555457c5d722885c03e63405dc186ca6ba62a0f1 | [
"BSD-3-Clause"
] | 141 | 2015-07-25T13:14:20.000Z | 2020-11-08T06:43:40.000Z | /*
* default_strategy.hpp
*
* Created on: Jan 2, 2020
* Author: devel
*/
#ifndef SRC_LIBRARY_PC_IDENTIFIER_DEFAULT_STRATEGY_HPP_
#define SRC_LIBRARY_PC_IDENTIFIER_DEFAULT_STRATEGY_HPP_
#include "identification_strategy.hpp"
namespace license {
namespace hw_identifier {
class DefaultStrategy : public Ident... | 28.785714 | 82 | 0.808933 | extremoburo |
ab1148f42f61b7e73c073434c93ee628d9508447 | 8,601 | cpp | C++ | Kame/src/Kame/Graphics/Renderer.cpp | keinich/Kame | 5fc6a15daf3d03d7bce2fd448697f323f55c3ada | [
"Apache-2.0"
] | null | null | null | Kame/src/Kame/Graphics/Renderer.cpp | keinich/Kame | 5fc6a15daf3d03d7bce2fd448697f323f55c3ada | [
"Apache-2.0"
] | 20 | 2019-11-08T13:41:44.000Z | 2019-11-21T19:24:52.000Z | Kame/src/Kame/Graphics/Renderer.cpp | keinich/Kame | 5fc6a15daf3d03d7bce2fd448697f323f55c3ada | [
"Apache-2.0"
] | null | null | null | #include "kmpch.h"
#include "Renderer.h"
#include <Kame/Core/DebugUtilities.h>
#include "GraphicsCore.h"
#include <Kame/Platform/DirectX12/Graphics/Display.h> //TOD abstract this
#include <Kame/Graphics/RenderApi/RenderProgramSignature.h>
#include <Kame/Graphics/RenderApi/RenderProgram.h>
#include <Kame/Graphics/Rende... | 37.889868 | 201 | 0.706546 | keinich |
ab121144a2b57a26710593cfaed6165360b8914f | 322 | hpp | C++ | deep500/frameworks/reference/custom_operators/cpp/utility/tensor/copy_data.hpp | khoaideptrai/deep500 | 0953038f64bc73c8d41d01796e07d3a23ca97822 | [
"BSD-3-Clause"
] | 90 | 2019-01-02T22:49:08.000Z | 2022-02-17T21:11:38.000Z | deep500/frameworks/reference/custom_operators/cpp/utility/tensor/copy_data.hpp | khoaideptrai/deep500 | 0953038f64bc73c8d41d01796e07d3a23ca97822 | [
"BSD-3-Clause"
] | 4 | 2019-02-14T16:19:06.000Z | 2022-01-11T17:54:42.000Z | deep500/frameworks/reference/custom_operators/cpp/utility/tensor/copy_data.hpp | khoaideptrai/deep500 | 0953038f64bc73c8d41d01796e07d3a23ca97822 | [
"BSD-3-Clause"
] | 24 | 2019-01-09T18:09:44.000Z | 2022-01-10T13:04:42.000Z | //copy_data.hpp
#ifndef COPY_DATA_HPP
#define COPY_DATA_HPP
#include <cstring>
//copy data of tensor efficiently
namespace utilityTensor {
template <class T>
void copy_data(const int size, const T *source, T *dest) {
std::memcpy(dest, source, size * sizeof(T));
return;
}
}
#end... | 16.947368 | 62 | 0.652174 | khoaideptrai |
ab1cc5a6f4adc88f6bde0bef6a8513bb945800f9 | 456 | cpp | C++ | src/1000/1924.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | 8 | 2018-04-12T15:54:09.000Z | 2020-06-05T07:41:15.000Z | src/1000/1924.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | null | null | null | src/1000/1924.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
int main()
{
int m, d, ans=0;
string day[7] = {"SUN" , "MON", "TUE", "WED", "THU", "FRI", "SAT"};
cin>>m>>d;
for (int i = 1; i < m; i++)
{
switch (i)
{
case 1: case 3: case 5: case 7: case 8: case 10: case 12:
ans += 31;
break;
case 4: cas... | 14.25 | 68 | 0.502193 | upple |
ab20207986ed28edabde9f49521a3e3f87870308 | 12,824 | cc | C++ | lib/TGroup.cc | jojaquix/jvision | 8e5d6f15a94aee9825957ba337c48ddb47a5bb61 | [
"BSD-1-Clause"
] | null | null | null | lib/TGroup.cc | jojaquix/jvision | 8e5d6f15a94aee9825957ba337c48ddb47a5bb61 | [
"BSD-1-Clause"
] | null | null | null | lib/TGroup.cc | jojaquix/jvision | 8e5d6f15a94aee9825957ba337c48ddb47a5bb61 | [
"BSD-1-Clause"
] | null | null | null | /*
* TGroup.cc
*
* Turbo Vision - Version 2.0
*
* Copyright (c) 1994 by Borland International
* All Rights Reserved.
*
* Modified by Sergio Sigala <sergio@sigala.it>
*/
#define Uses_TScreen
#define Uses_TGroup
#define Uses_TView
#define Uses_TRect
#define Uses_TEvent
#define Uses_opstream
#define Uses_ipstrea... | 19.430303 | 75 | 0.504835 | jojaquix |
ab2215cae8a977c95f264f309da0f97fbd417fe4 | 21,691 | cpp | C++ | src/pcl/View.cpp | fmeschia/pixinsight-class-library | 11b956e27d6eee3e119a7b1c337d090d7a03f436 | [
"JasPer-2.0",
"libtiff"
] | null | null | null | src/pcl/View.cpp | fmeschia/pixinsight-class-library | 11b956e27d6eee3e119a7b1c337d090d7a03f436 | [
"JasPer-2.0",
"libtiff"
] | null | null | null | src/pcl/View.cpp | fmeschia/pixinsight-class-library | 11b956e27d6eee3e119a7b1c337d090d7a03f436 | [
"JasPer-2.0",
"libtiff"
] | null | null | null | // ____ ______ __
// / __ \ / ____// /
// / /_/ // / / /
// / ____// /___ / /___ PixInsight Class Library
// /_/ \____//_____/ PCL 2.4.9
// ----------------------------------------------------------------------------
// pcl/View.cpp - Released 2021-04-09T19:41:11Z
// -----------------------------... | 34.87299 | 143 | 0.542806 | fmeschia |
ab249bcfcee81cfadad37f9ceebb532e62307b32 | 18,641 | cpp | C++ | src/prod/src/Reliability/LoadBalancing/PreferredLocationConstraint.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | 1 | 2020-06-15T04:33:36.000Z | 2020-06-15T04:33:36.000Z | src/prod/src/Reliability/LoadBalancing/PreferredLocationConstraint.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | null | null | null | src/prod/src/Reliability/LoadBalancing/PreferredLocationConstraint.cpp | vishnuk007/service-fabric | d0afdea185ae932cc3c9eacf179692e6fddbc630 | [
"MIT"
] | null | null | null | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
#include "... | 37.133466 | 147 | 0.657851 | vishnuk007 |
ab25d2fa4628990b3626131a0fd0fb6616efcbcf | 790 | hpp | C++ | ltlcontext/include/ltlcontext/ltlcontext.hpp | hkr/ltl | 41b54f3da3aa085862f8242d4869fa1e2fb4824e | [
"Unlicense"
] | 2 | 2018-05-12T09:37:14.000Z | 2019-04-13T01:32:05.000Z | ltlcontext/include/ltlcontext/ltlcontext.hpp | hkr/ltl | 41b54f3da3aa085862f8242d4869fa1e2fb4824e | [
"Unlicense"
] | null | null | null | ltlcontext/include/ltlcontext/ltlcontext.hpp | hkr/ltl | 41b54f3da3aa085862f8242d4869fa1e2fb4824e | [
"Unlicense"
] | null | null | null | #ifndef LTLCONTEXT_HPP
#define LTLCONTEXT_HPP
#include <cstddef>
#include <stdint.h>
namespace ltl {
struct context;
// creates a context on the stack
// stack_size default size of the stack in bytes (may be ignored by the implementation)
// fn function to be called when the context is first jumped to
// vp... | 23.939394 | 87 | 0.73038 | hkr |
ab26b5854ddaca81963a3b6bd0022260f2df0f59 | 1,100 | cpp | C++ | libsrc/commandline/ColorsOption.cpp | keesg60/hyperion.ng | 7f174b28723456d41a5d48c1f1eed5fa41f418c2 | [
"MIT-0",
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | 1,808 | 2016-06-29T00:12:07.000Z | 2022-03-30T22:55:16.000Z | libsrc/commandline/ColorsOption.cpp | keesg60/hyperion.ng | 7f174b28723456d41a5d48c1f1eed5fa41f418c2 | [
"MIT-0",
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | 1,271 | 2016-06-16T20:12:41.000Z | 2022-03-31T17:47:59.000Z | libsrc/commandline/ColorsOption.cpp | keesg60/hyperion.ng | 7f174b28723456d41a5d48c1f1eed5fa41f418c2 | [
"MIT-0",
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | 458 | 2016-06-15T16:08:12.000Z | 2022-03-29T15:36:16.000Z | #include <QRegularExpression>
#include "commandline/ColorsOption.h"
#include "commandline/Parser.h"
using namespace commandline;
bool ColorsOption::validate(Parser & parser, QString & value)
{
// Clear any old results
_colors.clear();
// Check if we can create the color by name
QColor color(value);
if (color.is... | 24.444444 | 176 | 0.689091 | keesg60 |
ab29a2e2d5c34aea1c330921b0b21ccb1f171cbc | 5,010 | hpp | C++ | include/JoSIM/JJ.hpp | coldlogix/JoSIM | 7b48068682b4e7bc459a5e9982d67571fac60885 | [
"MIT"
] | null | null | null | include/JoSIM/JJ.hpp | coldlogix/JoSIM | 7b48068682b4e7bc459a5e9982d67571fac60885 | [
"MIT"
] | null | null | null | include/JoSIM/JJ.hpp | coldlogix/JoSIM | 7b48068682b4e7bc459a5e9982d67571fac60885 | [
"MIT"
] | null | null | null | // Copyright (c) 2019 Johannes Delport
// This code is licensed under MIT license (see LICENSE for details)
#ifndef JOSIM_JJ_HPP
#define JOSIM_JJ_HPP
#include "./ParameterName.hpp"
#include "./Parameters.hpp"
#include "./Model.hpp"
#include "./AnalysisType.hpp"
#include <vector>
#include <unordered_map>
#include <uno... | 43.189655 | 193 | 0.665868 | coldlogix |
ab2ad14388750afa1ffed35f77e3b9f15e7fd689 | 3,690 | cpp | C++ | LaptopUtil.cpp | IvarJonsson/Project-Unknown | 4675b41bbb5e90135c7bf3aded2c2e262b50f351 | [
"BSL-1.0"
] | null | null | null | LaptopUtil.cpp | IvarJonsson/Project-Unknown | 4675b41bbb5e90135c7bf3aded2c2e262b50f351 | [
"BSL-1.0"
] | null | null | null | LaptopUtil.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 <CryGame/IGameFramework.h>
#ifdef USE_LAPTOPUTIL
#include "LaptopUtil.h"
#if CRY_PLATFORM_WINDOWS && CRY_PLATFORM_32BIT
#include "../../SDKs/IntelLaptop/Include/IntelGamingTDKAPI.h"
/*
class CGamingTDKObserver :... | 21.705882 | 95 | 0.739024 | IvarJonsson |
ab2fd04797d740b948776800f5af55c1894a820e | 3,288 | cpp | C++ | Stp/Base/Linux/Xdg.cpp | markazmierczak/Polonite | 240f099cafc5c38dc1ae1cc6fc5773e13f65e9de | [
"MIT"
] | 1 | 2019-07-11T12:47:52.000Z | 2019-07-11T12:47:52.000Z | Stp/Base/Linux/Xdg.cpp | Polonite/Polonite | 240f099cafc5c38dc1ae1cc6fc5773e13f65e9de | [
"MIT"
] | null | null | null | Stp/Base/Linux/Xdg.cpp | Polonite/Polonite | 240f099cafc5c38dc1ae1cc6fc5773e13f65e9de | [
"MIT"
] | 1 | 2019-07-11T12:47:53.000Z | 2019-07-11T12:47:53.000Z | // Copyright 2017 Polonite Authors. All rights reserved.
// Distributed under MIT license that can be found in the LICENSE file.
#include "Base/Linux/Xdg.h"
#include "Base/FileSystem/KnownPaths.h"
#include "Base/System/Environment.h"
#include "Base/ThirdParty/xdg_user_dirs/xdg_user_dir_lookup.h"
namespace stp {
name... | 32.235294 | 79 | 0.725061 | markazmierczak |
ab35d7e404b8e66bab4fe11119f5af65732ffaa7 | 2,669 | cpp | C++ | lib/project_euler/0001-0050/Problem11.cpp | wtmitchell/project_euler | b0fd328af41901aa53f757f1dd84f44f71d7be44 | [
"MIT"
] | 2 | 2016-04-03T08:44:15.000Z | 2018-10-05T02:12:19.000Z | lib/project_euler/0001-0050/Problem11.cpp | wtmitchell/challenge_problems | b0fd328af41901aa53f757f1dd84f44f71d7be44 | [
"MIT"
] | null | null | null | lib/project_euler/0001-0050/Problem11.cpp | wtmitchell/challenge_problems | b0fd328af41901aa53f757f1dd84f44f71d7be44 | [
"MIT"
] | null | null | null | //===-- project_euler/Problem11.cpp -----------------------------*- C++ -*-===//
//
// ProjectEuler.net solutions by Will Mitchell
//
// This file is distributed under the MIT License. See LICENSE for details.
//
//===----------------------------------------------------------------------===//
///
/// \class project_eul... | 38.128571 | 80 | 0.574747 | wtmitchell |
ab35e6d5ccf4c5dd7eccdde9228a124c863f58d2 | 838 | cpp | C++ | TESTS/test_assertions.cpp | kulseran/FISHY | d01d05c03404a0c95d864a8cde899d355873592b | [
"MIT"
] | 3 | 2016-12-30T23:19:15.000Z | 2018-07-04T15:17:26.000Z | TESTS/test_assertions.cpp | kulseran/FISHY | d01d05c03404a0c95d864a8cde899d355873592b | [
"MIT"
] | 7 | 2015-11-27T16:34:42.000Z | 2016-05-07T18:29:24.000Z | TESTS/test_assertions.cpp | kulseran/FISHY | d01d05c03404a0c95d864a8cde899d355873592b | [
"MIT"
] | 1 | 2016-12-31T03:59:46.000Z | 2016-12-31T03:59:46.000Z | #include "test_assertions.h"
#include <cstring>
namespace testing {
void assertTrue(bool expr) {
if (!expr) {
throw TestAssertionException("Expr not True");
}
}
void assertFalse(bool expr) {
if (expr) {
throw TestAssertionException("Expr not False");
}
}
void fail(const char *msg) {
if (msg) {
... | 19.488372 | 70 | 0.668258 | kulseran |
ab385370586f42e2c1014c8abe36427f1404c20b | 454,826 | cpp | C++ | unittests/unit/SharedLibraryWamIkFast.cpp | fowzan123/Dart-Humanoid- | 03b24a7cd2ecfa5ac20e38460b6564ae65a5ad7a | [
"BSD-2-Clause"
] | 1 | 2020-01-14T09:37:25.000Z | 2020-01-14T09:37:25.000Z | unittests/unit/SharedLibraryWamIkFast.cpp | fowzan123/Dart-Humanoid- | 03b24a7cd2ecfa5ac20e38460b6564ae65a5ad7a | [
"BSD-2-Clause"
] | null | null | null | unittests/unit/SharedLibraryWamIkFast.cpp | fowzan123/Dart-Humanoid- | 03b24a7cd2ecfa5ac20e38460b6564ae65a5ad7a | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2011-2019, The DART development contributors
* All rights reserved.
*
* The list of contributors can be found at:
* https://github.com/dartsim/dart/blob/master/LICENSE
*
* This file is provided under the following "BSD-style" License:
* Redistribution and use in source and binary forms, w... | 30.368298 | 722 | 0.641131 | fowzan123 |
ab3e95dcca13d8e006400899be2de0716879c850 | 4,398 | cpp | C++ | src/xtd.core/src/xtd/translator.cpp | BaderEddineOuaich/xtd | 6f28634c7949a541d183879d2de18d824ec3c8b1 | [
"MIT"
] | null | null | null | src/xtd.core/src/xtd/translator.cpp | BaderEddineOuaich/xtd | 6f28634c7949a541d183879d2de18d824ec3c8b1 | [
"MIT"
] | null | null | null | src/xtd.core/src/xtd/translator.cpp | BaderEddineOuaich/xtd | 6f28634c7949a541d183879d2de18d824ec3c8b1 | [
"MIT"
] | null | null | null | #include "../../include/xtd/translator.h"
#include "../../include/xtd/environment.h"
#include "../../include/xtd/format_exception.h"
#include "../../include/xtd/ustring.h"
#include "../../include/xtd/collections/specialized/string_map.h"
#include "../../include/xtd/io/directory.h"
#include "../../include/xtd/io/file.h"... | 38.920354 | 200 | 0.701 | BaderEddineOuaich |
ab43ff3afa56c455d1591b6662666aa259e2312c | 1,029 | cpp | C++ | tpccbench/src/library_loader.cpp | mkatsa/PENVMTool | c63de91036cd84d36cd8ac54f2033ea141a292dc | [
"Apache-2.0"
] | 1 | 2022-03-22T15:16:56.000Z | 2022-03-22T15:16:56.000Z | tpccbench/src/library_loader.cpp | mkatsa/PENVMTool | c63de91036cd84d36cd8ac54f2033ea141a292dc | [
"Apache-2.0"
] | null | null | null | tpccbench/src/library_loader.cpp | mkatsa/PENVMTool | c63de91036cd84d36cd8ac54f2033ea141a292dc | [
"Apache-2.0"
] | null | null | null | #include "library_loader.hpp"
#include <dlfcn.h>
#include <iostream>
library_loader_t::library_loader_t(const std::string &path)
{
// lazy or now? makes no difference
handle_ = dlopen(path.c_str(), RTLD_LAZY | RTLD_GLOBAL);
if (handle_ == nullptr)
{
std::cout << "Error in dlopen(): " << dlerror... | 23.930233 | 87 | 0.577259 | mkatsa |
ab45731df40f32cd15b1209df07f4d3df0cb75d2 | 1,979 | hpp | C++ | Chapter3-StackAndQueue/include/queue.hpp | caoshenghui/DataStructures | b028bbdb3156537637eed87d634313820b0f295a | [
"MIT"
] | 4 | 2021-03-01T13:24:24.000Z | 2022-03-06T10:58:34.000Z | Chapter3-StackAndQueue/include/queue.hpp | caoshenghui/DataStructures | b028bbdb3156537637eed87d634313820b0f295a | [
"MIT"
] | null | null | null | Chapter3-StackAndQueue/include/queue.hpp | caoshenghui/DataStructures | b028bbdb3156537637eed87d634313820b0f295a | [
"MIT"
] | 1 | 2021-03-01T13:24:32.000Z | 2021-03-01T13:24:32.000Z | // File: 队列.cpp
// Author: csh
// Date: 2020/08/23
// ===================
#ifndef _Queue_H
#define _Queue_H
// ****************************** 队列的顺序存储 *******************************//
template <typename T>
class ArrQueue{
private:
int mSize; // 存放队列的数组大小
int front;... | 29.984848 | 82 | 0.373926 | caoshenghui |
ab48f16cfe6d7f9d635deba606331813ec95e7ce | 4,417 | cpp | C++ | directfire_github/trunk/gameui/battle.net/turnplateitem.cpp | zhwsh00/DirectFire-android | 10c757e1be0b25dee951f9ba3a0e1f6d5c04a938 | [
"MIT"
] | 1 | 2015-08-12T04:05:33.000Z | 2015-08-12T04:05:33.000Z | directfire_github/trunk/gameui/battle.net/turnplateitem.cpp | zhwsh00/DirectFire-android | 10c757e1be0b25dee951f9ba3a0e1f6d5c04a938 | [
"MIT"
] | null | null | null | directfire_github/trunk/gameui/battle.net/turnplateitem.cpp | zhwsh00/DirectFire-android | 10c757e1be0b25dee951f9ba3a0e1f6d5c04a938 | [
"MIT"
] | null | null | null | #include "turnplateitem.h"
#include "gamecore/resource/resourcemgr.h"
#include "gamecore/sounds/soundmgr.h"
#include "prop/propdef.h"
TurnPlateItem::TurnPlateItem(SocialPage *owner)
: BasSocialItem(owner)
{
m_itemInit = false;
m_itemlogo = 0;
m_handSprite = 0;
m_plateSprite = 0;
m_frameSprit... | 31.105634 | 110 | 0.653611 | zhwsh00 |
ab5335d06875567c205fd56ae91a713596ee9072 | 2,174 | cpp | C++ | atcoder/abc143/E/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | null | null | null | atcoder/abc143/E/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | 19 | 2016-05-04T02:46:31.000Z | 2021-11-27T06:18:33.000Z | atcoder/abc143/E/main.cpp | Johniel/contests | b692eff913c20e2c1eb4ff0ce3cd4c57900594e0 | [
"Unlicense"
] | null | null | null | // atcoder/abc143/E/main.cpp
// author: @___Johniel
// github: https://github.com/johniel/
#include <bits/stdc++.h>
#define each(i, c) for (auto& i : c)
#define unless(cond) if (!(cond))
using namespace std;
typedef long long int lli;
typedef unsigned long long ull;
typedef complex<double> point;
template<typename... | 26.839506 | 144 | 0.480221 | Johniel |
ab5b4d701cef8a8e08c5a8a91838eeaa580a9110 | 5,980 | cc | C++ | bulk_uuidgen.cc | SoftwearDevelopment/bulk_uuidgen | d0da3cc5000f0b56f9bc6548ea5cff6c6bdb1e6a | [
"Unlicense"
] | 1 | 2018-01-30T09:16:05.000Z | 2018-01-30T09:16:05.000Z | bulk_uuidgen.cc | SoftwearDevelopment/bulk_uuidgen | d0da3cc5000f0b56f9bc6548ea5cff6c6bdb1e6a | [
"Unlicense"
] | null | null | null | bulk_uuidgen.cc | SoftwearDevelopment/bulk_uuidgen | d0da3cc5000f0b56f9bc6548ea5cff6c6bdb1e6a | [
"Unlicense"
] | null | null | null | // TODO: A better way to do this would be:
// (1) In stream mode: write to a preallocated buffer per
// thread and pass the entire buffer to write(2) in
// nonblocking mode. Access to write(2) must be synchronized.
// (2) In batch mode: mmap the batch files and serialize
// directly into their buffers; don'... | 25.775862 | 241 | 0.632107 | SoftwearDevelopment |
ab5cbf2ff9b739b50bca9ae837e030dbf1062bab | 1,092 | cpp | C++ | accumulate-vs-raw.cpp | kobi-ca/accumulate-vs-raw | 456a2266c5a4519ac623906b11d2f93f4bbe24f7 | [
"MIT"
] | null | null | null | accumulate-vs-raw.cpp | kobi-ca/accumulate-vs-raw | 456a2266c5a4519ac623906b11d2f93f4bbe24f7 | [
"MIT"
] | null | null | null | accumulate-vs-raw.cpp | kobi-ca/accumulate-vs-raw | 456a2266c5a4519ac623906b11d2f93f4bbe24f7 | [
"MIT"
] | null | null | null | //
// Created by kobic on 5/15/2021.
//
#include <numeric>
#include <iterator>
[[nodiscard]]
auto better_sum_vals() {
constexpr auto MAX = 10U;
int a[MAX]{1, 2, 3, 4, 5, 6, 7, 8 /* the rest is 0's */}; // init if needed
auto ret = 0ULL;
// remember, algos will take a range
ret = std::... | 25.395349 | 80 | 0.535714 | kobi-ca |
ab61572de6e45dfe38a60b89334aa8ef3125840b | 505 | cpp | C++ | upgrade/security_key_generator/Main.cpp | oguzcanphilips/embeddedinfralib | f1b083d61a34d123d34ab7cd51267377aa2f7855 | [
"Unlicense"
] | 1 | 2021-05-18T07:21:59.000Z | 2021-05-18T07:21:59.000Z | upgrade/security_key_generator/Main.cpp | oguzcanphilips/embeddedinfralib | f1b083d61a34d123d34ab7cd51267377aa2f7855 | [
"Unlicense"
] | null | null | null | upgrade/security_key_generator/Main.cpp | oguzcanphilips/embeddedinfralib | f1b083d61a34d123d34ab7cd51267377aa2f7855 | [
"Unlicense"
] | null | null | null | #include "upgrade/security_key_generator/MaterialGenerator.hpp"
#include "upgrade/pack_builder/RandomNumberGenerator.hpp"
#include <iostream>
int main(int argc, char* argv[])
{
try
{
application::SecureRandomNumberGenerator randomNumberGenerator;
application::MaterialGenerator generator(randomN... | 24.047619 | 72 | 0.671287 | oguzcanphilips |
ab6545a0e2b2ca80e9456135385997f53e6826c2 | 2,081 | hpp | C++ | include/boost/url/string.hpp | CPPAlliance/url | 02ef2ae540a10466bc7462ac4534fad2d711c627 | [
"BSL-1.0"
] | 51 | 2020-05-21T02:13:58.000Z | 2022-03-22T10:37:35.000Z | include/boost/url/string.hpp | CPPAlliance/url | 02ef2ae540a10466bc7462ac4534fad2d711c627 | [
"BSL-1.0"
] | 132 | 2020-06-19T10:01:45.000Z | 2022-03-29T23:32:25.000Z | include/boost/url/string.hpp | CPPAlliance/url | 02ef2ae540a10466bc7462ac4534fad2d711c627 | [
"BSL-1.0"
] | 20 | 2020-05-21T01:47:10.000Z | 2022-02-10T15:53:50.000Z | //
// Copyright (c) 2019 Vinnie Falco (vinnie.falco@gmail.com)
//
// 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)
//
// Official repository: https://github.com/CPPAlliance/url
//
#ifndef BOOST_URL_STRING_HPP
#defin... | 22.376344 | 79 | 0.684767 | CPPAlliance |
ab6910cf1ac6a3cba9a68fdfb1dce84cb6515a02 | 2,601 | cpp | C++ | Train/ACM_Chapter/Lazy Propagation/52C.cpp | mohamedGamalAbuGalala/Practice | 2a5fa3bdaf995d0c304f04231e1a69e6960f72c8 | [
"MIT"
] | 1 | 2019-12-19T06:51:20.000Z | 2019-12-19T06:51:20.000Z | Train/ACM_Chapter/Lazy Propagation/52C.cpp | mohamedGamalAbuGalala/Practice | 2a5fa3bdaf995d0c304f04231e1a69e6960f72c8 | [
"MIT"
] | null | null | null | Train/ACM_Chapter/Lazy Propagation/52C.cpp | mohamedGamalAbuGalala/Practice | 2a5fa3bdaf995d0c304f04231e1a69e6960f72c8 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N = (1 << 18);
const ll OO = (ll) 1 * 1e18;
ll arr[N + 2];
ll tree[2 * N];
ll lazy[2 * N];
struct SegmentTree {
SegmentTree() {
}
void build(int cur, int l, int r) {
lazy[cur] = 0;
if (l == r) {
tree[cur] = arr[l];
return;
... | 19.266667 | 64 | 0.490581 | mohamedGamalAbuGalala |
03694415fc1ccaecce3772278a7e40bba6b0756f | 462 | cpp | C++ | src_smartcontract/lang_sql/sql_ddl_alter/AbstractAlterDdlCommand.cpp | alinous-core/codable-cash | 32a86a152a146c592bcfd8cc712f4e8cb38ee1a0 | [
"MIT"
] | 6 | 2019-01-06T05:02:39.000Z | 2020-10-01T11:45:32.000Z | src_smartcontract/lang_sql/sql_ddl_alter/AbstractAlterDdlCommand.cpp | Codablecash/codablecash | 8816b69db69ff2f5da6cdb6af09b8fb21d3df1d9 | [
"MIT"
] | 209 | 2018-05-18T03:07:02.000Z | 2022-03-26T11:42:41.000Z | src_smartcontract/lang_sql/sql_ddl_alter/AbstractAlterDdlCommand.cpp | Codablecash/codablecash | 8816b69db69ff2f5da6cdb6af09b8fb21d3df1d9 | [
"MIT"
] | 3 | 2019-07-06T09:16:36.000Z | 2020-10-15T08:23:28.000Z | /*
* AbstractAlterDdlCommand.cpp
*
* Created on: 2020/09/08
* Author: iizuka
*/
#include "lang_sql/sql_ddl_alter/AbstractAlterDdlCommand.h"
#include "lang_sql/sql_ddl/DdlColumnDescriptor.h"
#include "base/StackRelease.h"
#include "base_io/ByteBuffer.h"
namespace alinous {
AbstractAlterDdlCommand::Abst... | 16.5 | 82 | 0.748918 | alinous-core |
036c19114d6ecf8c7c66cc6d466272e0276bd9f4 | 5,650 | hpp | C++ | include/etl/impl/egblas/axdy.hpp | BeatWolf/etl | 32e8153b38e0029176ca4fe2395b7fa6babe3189 | [
"MIT"
] | 1 | 2020-02-19T13:13:10.000Z | 2020-02-19T13:13:10.000Z | include/etl/impl/egblas/axdy.hpp | BeatWolf/etl | 32e8153b38e0029176ca4fe2395b7fa6babe3189 | [
"MIT"
] | null | null | null | include/etl/impl/egblas/axdy.hpp | BeatWolf/etl | 32e8153b38e0029176ca4fe2395b7fa6babe3189 | [
"MIT"
] | null | null | null | //=======================================================================
// Copyright (c) 2014-2018 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//==================================================================... | 28.25 | 130 | 0.690265 | BeatWolf |
03735ce88da94787fddea014ff55904c31ab1895 | 2,444 | hpp | C++ | src/gl/buffer/VertexBufferLayout.hpp | DiD3n/pb2e | 9b0d688c5bbafc632bb5b37aba611f72df0aff96 | [
"MIT"
] | 3 | 2018-11-17T22:40:15.000Z | 2020-09-22T07:11:42.000Z | src/gl/buffer/VertexBufferLayout.hpp | DiD3n/pb2e | 9b0d688c5bbafc632bb5b37aba611f72df0aff96 | [
"MIT"
] | 2 | 2019-01-17T16:00:29.000Z | 2019-04-02T19:15:35.000Z | src/gl/buffer/VertexBufferLayout.hpp | DiD3n/pb2e | 9b0d688c5bbafc632bb5b37aba611f72df0aff96 | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include <string>
#include "../../include/glew.hpp"
namespace gl {
/* header instead of including the whole file */
class VertexBuffer;
struct LayoutElement {
unsigned int count = 0;
unsigned int type = 0;
bool normalized = false;
constexp... | 32.586667 | 110 | 0.603928 | DiD3n |
0374905ed412813aedfb76a0d9b7b8e79693a814 | 783 | hpp | C++ | mismatch2/mismatch.hpp | colorhistory/cplusplus-general-programming | 3ece924a2ab34711a55a45bc41e2b74384956204 | [
"MIT"
] | 1 | 2019-09-28T09:40:08.000Z | 2019-09-28T09:40:08.000Z | mismatch2/mismatch.hpp | colorhistory/cplusplus-general-programming | 3ece924a2ab34711a55a45bc41e2b74384956204 | [
"MIT"
] | null | null | null | mismatch2/mismatch.hpp | colorhistory/cplusplus-general-programming | 3ece924a2ab34711a55a45bc41e2b74384956204 | [
"MIT"
] | null | null | null | #ifndef MISMATCH_HPP
#define MISMATCH_HPP
#include "bits/stdc++.h"
namespace GP {
////////////////////////////////////////////////////////////
/// \brief mismatch
/// \param first1
/// \param last1
/// \param first2
/// \param last2
/// \return
///
template <class InputIterator1,... | 26.1 | 156 | 0.55811 | colorhistory |
03776631ab7db0a2b7fb71b39c4de5c7413c4006 | 9,810 | cpp | C++ | tinyember/TinyEmberPlus/RealView.cpp | purefunsolutions/ember-plus | d022732f2533ad697238c6b5210d7fc3eb231bfc | [
"BSL-1.0"
] | 78 | 2015-07-31T14:46:38.000Z | 2022-03-28T09:28:28.000Z | tinyember/TinyEmberPlus/RealView.cpp | purefunsolutions/ember-plus | d022732f2533ad697238c6b5210d7fc3eb231bfc | [
"BSL-1.0"
] | 81 | 2015-08-03T07:58:19.000Z | 2022-02-28T16:21:19.000Z | tinyember/TinyEmberPlus/RealView.cpp | purefunsolutions/ember-plus | d022732f2533ad697238c6b5210d7fc3eb231bfc | [
"BSL-1.0"
] | 49 | 2015-08-03T12:53:10.000Z | 2022-03-17T17:25:49.000Z | /*
Copyright (C) 2012-2016 Lawo GmbH (http://www.lawo.com).
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)
*/
#include "RealView.h"
#include "gadget/RealParameter.h"
#include "util/StreamFormatConverter.h"
#... | 32.7 | 121 | 0.665036 | purefunsolutions |
038267440718ee2fe31d304d345c3f76f67245b2 | 4,500 | cpp | C++ | GameEngine/PhysicsSystem.cpp | BenMarshall98/Game-Engine-Uni | cb2e0a75953db0960e3d58a054eb9a6e213ae12a | [
"MIT"
] | null | null | null | GameEngine/PhysicsSystem.cpp | BenMarshall98/Game-Engine-Uni | cb2e0a75953db0960e3d58a054eb9a6e213ae12a | [
"MIT"
] | null | null | null | GameEngine/PhysicsSystem.cpp | BenMarshall98/Game-Engine-Uni | cb2e0a75953db0960e3d58a054eb9a6e213ae12a | [
"MIT"
] | null | null | null | #include "PhysicsSystem.h"
#include "ComponentPosition.h"
#include "ComponentDirection.h"
#include "ComponentPhysics.h"
#include "RigidBody.h"
#include "glm/glm.hpp"
#include <algorithm>
PhysicsSystem::PhysicsSystem() : iSystem(std::vector<ComponentType>{
ComponentType::COMPONENT_POSITION,
ComponentType::COMPONENT_... | 36 | 144 | 0.775111 | BenMarshall98 |
038388426a93e71ad2ff1536ba403d51b447ec55 | 1,412 | cpp | C++ | DirectZobEngine/Behaviors/ZobBehavior.cpp | zeralph/directZob | 7682ec0b77b697659be157cce62413e3ee877ee4 | [
"WTFPL"
] | 2 | 2019-06-12T18:11:36.000Z | 2022-01-19T00:26:00.000Z | DirectZobEngine/Behaviors/ZobBehavior.cpp | zeralph/directZob | 7682ec0b77b697659be157cce62413e3ee877ee4 | [
"WTFPL"
] | null | null | null | DirectZobEngine/Behaviors/ZobBehavior.cpp | zeralph/directZob | 7682ec0b77b697659be157cce62413e3ee877ee4 | [
"WTFPL"
] | 1 | 2019-10-05T02:44:47.000Z | 2019-10-05T02:44:47.000Z | #include "ZobBehavior.h"
#include "ZobBehaviorFactory.h"
#include "../DirectZob.h"
#include "../Misc/ZobXmlHelper.h"
ZobBehavior::ZobBehavior(ZobObject* zobObject, bool bEditorZobBehavior):ZobEntity((bEditorZobBehavior? ZobEntity::type_editor:ZobEntity::type_internal), ZobEntity::subtype_behavior)
{
m_zobObject = zob... | 27.686275 | 181 | 0.757082 | zeralph |
0388e9f1b7f92fa587f30fb84455a27b80956882 | 3,960 | hxx | C++ | optmesh/EdgeCollapse.hxx | kanait/hsphparam | 00158f81d00e496fed469779bf73094495ac8671 | [
"MIT"
] | 1 | 2021-08-23T06:55:22.000Z | 2021-08-23T06:55:22.000Z | optmesh/EdgeCollapse.hxx | kanait/hsphparam | 00158f81d00e496fed469779bf73094495ac8671 | [
"MIT"
] | null | null | null | optmesh/EdgeCollapse.hxx | kanait/hsphparam | 00158f81d00e496fed469779bf73094495ac8671 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////
//
// $Id: EdgeCollapse.hxx 2021/06/05 14:22:22 kanai Exp $
//
// Copyright (c) 2021 Takashi Kanai
// Released under the MIT license
//
////////////////////////////////////////////////////////////////////
#ifndef _EDGECOLLAPSE_HXX
#define _EDGECOLLAP... | 23.294118 | 82 | 0.614899 | kanait |
03897b67fa5df748a8a811784887d74b73dc858e | 21,381 | hpp | C++ | common/openxrExampleBase.hpp | kwahoo2/sdl2oxr | a3e765fddffe66e67fd3c64e1339f2ad752e20f8 | [
"Apache-2.0"
] | 32 | 2019-10-01T04:08:22.000Z | 2022-03-05T14:11:38.000Z | common/openxrExampleBase.hpp | kwahoo2/sdl2oxr | a3e765fddffe66e67fd3c64e1339f2ad752e20f8 | [
"Apache-2.0"
] | 7 | 2019-09-30T21:07:49.000Z | 2021-01-14T23:24:58.000Z | common/openxrExampleBase.hpp | kwahoo2/sdl2oxr | a3e765fddffe66e67fd3c64e1339f2ad752e20f8 | [
"Apache-2.0"
] | 7 | 2019-10-15T01:26:32.000Z | 2022-03-05T14:11:54.000Z | #include "common.hpp"
// Make sure we have precisely ONE graphics API defined
// clang-format off
#if defined(XR_USE_GRAPHICS_API_OPENGL)
#if (defined(XR_USE_GRAPHICS_API_OPENGL_ES) || defined(XR_USE_GRAPHICS_API_VULKAN) || defined(XR_USE_GRAPHICS_API_D3D11) || defined(XR_USE_GRAPHICS_API_D3D12))
#error "... | 41.516505 | 164 | 0.653898 | kwahoo2 |
0389a156aa4f617ab2146dcefec3570c80366300 | 1,886 | hpp | C++ | include/property/system.hpp | vchig/property | 663e73756b2dd4c716dbf7529ff4f6c4201ee79c | [
"MIT"
] | null | null | null | include/property/system.hpp | vchig/property | 663e73756b2dd4c716dbf7529ff4f6c4201ee79c | [
"MIT"
] | null | null | null | include/property/system.hpp | vchig/property | 663e73756b2dd4c716dbf7529ff4f6c4201ee79c | [
"MIT"
] | null | null | null | #pragma once
#include "property.hpp"
#include <iostream>
#include <map>
#include <memory>
#include <string>
namespace property
{
class system
{
public:
bool hasProperty( const std::string &name ) const;
int propertyCount() const;
std::string propertyName( int i ) const;
bool propertyIsReadOnly( in... | 27.735294 | 119 | 0.613998 | vchig |
038cf6477da30a51a422d21ed152b05acf9c878a | 656 | cpp | C++ | CodeForces-Solution/1296A.cpp | Tech-Intellegent/CodeForces-Solution | 2f291a38b80b8ff2a2595b2e526716468ff26bf8 | [
"MIT"
] | 1 | 2022-01-23T07:18:07.000Z | 2022-01-23T07:18:07.000Z | CodeForces-Solution/1296A.cpp | Tech-Intellegent/CodeForces-Solution | 2f291a38b80b8ff2a2595b2e526716468ff26bf8 | [
"MIT"
] | null | null | null | CodeForces-Solution/1296A.cpp | Tech-Intellegent/CodeForces-Solution | 2f291a38b80b8ff2a2595b2e526716468ff26bf8 | [
"MIT"
] | 1 | 2022-02-05T11:53:04.000Z | 2022-02-05T11:53:04.000Z | #include<bits/stdc++.h>
using namespace std;
#define pii pair<int,int>
#define pll pair<ll,ll>
#define eb emplace_back
#define ll long long
#define nl '\n'
#define deb(x) cerr<<#x" = "<<x<<nl
#define in() ( { int a ; scanf("%d",&a); a; } )
const int N = 3e5 + 9;
const int mod = 1e9 + 7;
int32_t main()
{
int t = ... | 20.5 | 60 | 0.440549 | Tech-Intellegent |
03922d5835c4ea3bf04fa1957e6ab9b6e664267d | 3,973 | cpp | C++ | Modules/PhotoacousticsLib/src/Utils/mitkPAPropertyCalculator.cpp | ZP-Hust/MITK | ca11353183c5ed4bc30f938eae8bde43a0689bf6 | [
"BSD-3-Clause"
] | null | null | null | Modules/PhotoacousticsLib/src/Utils/mitkPAPropertyCalculator.cpp | ZP-Hust/MITK | ca11353183c5ed4bc30f938eae8bde43a0689bf6 | [
"BSD-3-Clause"
] | null | null | null | Modules/PhotoacousticsLib/src/Utils/mitkPAPropertyCalculator.cpp | ZP-Hust/MITK | ca11353183c5ed4bc30f938eae8bde43a0689bf6 | [
"BSD-3-Clause"
] | 1 | 2019-01-09T08:20:18.000Z | 2019-01-09T08:20:18.000Z | /*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty o... | 25.467949 | 113 | 0.665995 | ZP-Hust |
03928d8def37e22214034e1dc114251de61817d7 | 971 | cpp | C++ | test/src/ntl_test.cpp | ntoskrnl7/crtsys | 2948afde9496d4e873dc067d1d0e8a545ce894bc | [
"MIT"
] | null | null | null | test/src/ntl_test.cpp | ntoskrnl7/crtsys | 2948afde9496d4e873dc067d1d0e8a545ce894bc | [
"MIT"
] | null | null | null | test/src/ntl_test.cpp | ntoskrnl7/crtsys | 2948afde9496d4e873dc067d1d0e8a545ce894bc | [
"MIT"
] | null | null | null | #include <ntl/expand_stack>
#include <string>
bool ntl_expand_stack_test() {
long result = 0;
ntl::expand_stack(
[&result](int i, long l, double d) { result = (long)(i + l + d); }, 1, 2,
3.0);
if (result != 6)
return false;
result = ntl::expand_stack(
[](int i, long l, double d) -> long... | 23.119048 | 79 | 0.507724 | ntoskrnl7 |
03997cd5b6bbc2a6831a7a8724843386d188d9e8 | 1,501 | cpp | C++ | common/core/Node.cpp | keionbis/SmartMouse_2018 | 26d548a93c282bca8d550b58609f22ea1910fc78 | [
"Apache-2.0"
] | null | null | null | common/core/Node.cpp | keionbis/SmartMouse_2018 | 26d548a93c282bca8d550b58609f22ea1910fc78 | [
"Apache-2.0"
] | null | null | null | common/core/Node.cpp | keionbis/SmartMouse_2018 | 26d548a93c282bca8d550b58609f22ea1910fc78 | [
"Apache-2.0"
] | 1 | 2020-08-17T17:10:54.000Z | 2020-08-17T17:10:54.000Z | #include "Node.h"
const int Node::OUT_OF_BOUNDS = -2;
Node *Node::neighbor(const Direction dir) {
switch (dir) {
case Direction::N:
return neighbors[0];
case Direction::E:
return neighbors[1];
case Direction::S:
return neighbors[2];
case Direction::W:
return neighbors[3];
... | 23.453125 | 118 | 0.577615 | keionbis |
039ea2b3067e5b6cdabdcda6b64c367ebb1ef14b | 424 | cpp | C++ | Codeforces/1090M - The Pleasant Walk.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | Codeforces/1090M - The Pleasant Walk.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | Codeforces/1090M - The Pleasant Walk.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int n, k;
cin >> n >> k;
int input, prev = 0, mx = 0, count = 0;
for (int i = 0; i < n; ++i) {
cin >> input;
if ( input == prev ) {
mx = max(count, mx);
count = 1;
}
if ( input != prev )
... | 17.666667 | 43 | 0.408019 | naimulcsx |
039f133189fa8e05847d4d59686871a38755d0f1 | 1,901 | hpp | C++ | poly/include/compound.hpp | andreasxp/poly | 25c087dab24fb44409b66eebf52158062a4367f2 | [
"MIT"
] | null | null | null | poly/include/compound.hpp | andreasxp/poly | 25c087dab24fb44409b66eebf52158062a4367f2 | [
"MIT"
] | null | null | null | poly/include/compound.hpp | andreasxp/poly | 25c087dab24fb44409b66eebf52158062a4367f2 | [
"MIT"
] | null | null | null | #pragma once
#include <type_traits> // is_constructible
// MSVC fails to optimize using EBO by default.
// This macro enables the optimization
#ifdef _MSC_VER
#define POLY_MULTIPLE_EMPTY_BASES __declspec(empty_bases)
#else
#define POLY_MULTIPLE_EMPTY_BASES
#endif
namespace pl {
template <class Cloner, class Deleter>... | 33.350877 | 77 | 0.630721 | andreasxp |
03a07b01f426077b444fb59bd3308b8d351ff50c | 2,867 | cc | C++ | onnxruntime/featurizers_ops/cpu/pca_transformer.cc | codemzs/onnxruntime | c69194ec4c8c9674368113aa6044d0db708cd813 | [
"MIT"
] | 4 | 2019-06-06T23:48:57.000Z | 2021-06-03T11:51:45.000Z | onnxruntime/featurizers_ops/cpu/pca_transformer.cc | codemzs/onnxruntime | c69194ec4c8c9674368113aa6044d0db708cd813 | [
"MIT"
] | null | null | null | onnxruntime/featurizers_ops/cpu/pca_transformer.cc | codemzs/onnxruntime | c69194ec4c8c9674368113aa6044d0db708cd813 | [
"MIT"
] | 3 | 2019-05-07T01:29:04.000Z | 2020-08-09T08:36:12.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
#include "core/common/common.h"
#include "core/framework/data_types.h"
#include "core/framework/data_types_internal.h"
#include "core/framework/op_kernel.h"
#include "Featurizers/PCAFeaturizer.h"
#include "Featurizers/../A... | 34.963415 | 97 | 0.701779 | codemzs |
03ae3a4bfd052dd931ee90d989326f9d30e99dcd | 2,205 | cpp | C++ | src/builddeps.cpp | JulianNeeleman/kattis | 035c1113ffb397c2d8538af8ba16b7ee4160393d | [
"MIT"
] | null | null | null | src/builddeps.cpp | JulianNeeleman/kattis | 035c1113ffb397c2d8538af8ba16b7ee4160393d | [
"MIT"
] | 1 | 2017-05-16T15:57:29.000Z | 2017-05-17T19:43:56.000Z | src/builddeps.cpp | JulianNeeleman/kattis | 035c1113ffb397c2d8538af8ba16b7ee4160393d | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <set>
#include <queue>
#include <iomanip>
#include <algorithm>
#include <map>
#include <random>
#include <cstdint>
#include <sstream>
using namespace std;
vector<int> topological_sort(vector<vector<int> > &g) {
int n = g.size();
vector<int> in_degs(n);
for(int u = 0;... | 17.926829 | 93 | 0.588662 | JulianNeeleman |
03aec5e355193537c98b7bc54726e58cf71c1cf6 | 1,826 | cpp | C++ | src/main.cpp | ShameekConyers/sicinterpreter | 24d0451436f0af67d24aae987155c3b090aa2fed | [
"MIT"
] | null | null | null | src/main.cpp | ShameekConyers/sicinterpreter | 24d0451436f0af67d24aae987155c3b090aa2fed | [
"MIT"
] | null | null | null | src/main.cpp | ShameekConyers/sicinterpreter | 24d0451436f0af67d24aae987155c3b090aa2fed | [
"MIT"
] | null | null | null |
#include "common.hpp"
#include "chunk.hpp"
#include "debug.hpp"
#include "vm.hpp"
#include <string>
#include <iostream>
#include <fstream>
#include <sstream>
void static repl()
{
char line[1024];
for (;;) {
std::cout << "> ";
if (!std::cin.getline(line, 1024).good()) {
std::cout << "\n";
b... | 20.065934 | 62 | 0.624863 | ShameekConyers |
03afbd950de76ee43041c0bdf1b12b1741639a80 | 462 | cpp | C++ | modules/dungeonmap/register_types.cpp | victorholt/heatgun | 0dadab61d278eb7334b2b2e7a1e88f5151696f9d | [
"MIT"
] | 3 | 2020-03-09T07:07:17.000Z | 2020-08-26T20:03:11.000Z | modules/dungeonmap/register_types.cpp | victorholt/heatgun | 0dadab61d278eb7334b2b2e7a1e88f5151696f9d | [
"MIT"
] | 1 | 2020-08-26T21:11:10.000Z | 2020-08-26T21:11:10.000Z | modules/dungeonmap/register_types.cpp | victorholt/heatgun | 0dadab61d278eb7334b2b2e7a1e88f5151696f9d | [
"MIT"
] | 1 | 2020-03-09T07:07:18.000Z | 2020-03-09T07:07:18.000Z | /**
* Copyright (c) 2018 GameSencha, LLC
* @author Victor Holt
* @date 2/17/2018
*/
#include "register_types.h"
#include "dungeon_map.h"
#include "dungeon_map_debug_renderer.h"
#ifndef _3D_DISABLED
#include "class_db.h"
#endif
void register_dungeonmap_types()
{
#ifndef _3D_DISABLED
ClassDB::register_class<Dun... | 17.769231 | 52 | 0.755411 | victorholt |
03b9e3d85355a2733c9a6f8a78905e1f536db06c | 16 | cpp | C++ | 05-question/cat.cpp | acc-cosc-1337-fall-2018/midterm | 5ffdb83e5c1a7682a66bcef2f00bf0c2828a19a2 | [
"MIT"
] | null | null | null | 05-question/cat.cpp | acc-cosc-1337-fall-2018/midterm | 5ffdb83e5c1a7682a66bcef2f00bf0c2828a19a2 | [
"MIT"
] | null | null | null | 05-question/cat.cpp | acc-cosc-1337-fall-2018/midterm | 5ffdb83e5c1a7682a66bcef2f00bf0c2828a19a2 | [
"MIT"
] | null | null | null | #include "cat.h" | 16 | 16 | 0.6875 | acc-cosc-1337-fall-2018 |
03bcea68b12480bf487d3e5e6726ceb4ebf61a20 | 994 | cpp | C++ | SpinboxDelegate.cpp | Metalhead33-Foundation/WoDDem2 | 86f7c5fccef83f8358a77dd671ca49f65c854b27 | [
"Apache-2.0"
] | null | null | null | SpinboxDelegate.cpp | Metalhead33-Foundation/WoDDem2 | 86f7c5fccef83f8358a77dd671ca49f65c854b27 | [
"Apache-2.0"
] | null | null | null | SpinboxDelegate.cpp | Metalhead33-Foundation/WoDDem2 | 86f7c5fccef83f8358a77dd671ca49f65c854b27 | [
"Apache-2.0"
] | null | null | null | #include "SpinboxDelegate.hpp"
#include <QSpinBox>
SpinboxDelegate::SpinboxDelegate(int min, int max, QObject *parent) : QStyledItemDelegate(parent), min(min), max(max)
{
}
QWidget *SpinboxDelegate::createEditor(QWidget *parent, const QStyleOptionViewItem &option, const QModelIndex &index) const
{
(void)option;
(v... | 29.235294 | 123 | 0.744467 | Metalhead33-Foundation |
03c0c91c33bf5261ba1bb3e34a7ebd256a048e2b | 263 | cc | C++ | tests/day11_tests.cc | LesnyRumcajs/advent-of-cpp-2015 | 3301f31fdcca3aeddae6691ce15b0eb712a7c867 | [
"MIT"
] | null | null | null | tests/day11_tests.cc | LesnyRumcajs/advent-of-cpp-2015 | 3301f31fdcca3aeddae6691ce15b0eb712a7c867 | [
"MIT"
] | null | null | null | tests/day11_tests.cc | LesnyRumcajs/advent-of-cpp-2015 | 3301f31fdcca3aeddae6691ce15b0eb712a7c867 | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include "../src/day11.h"
TEST_CASE("Day11::part1&2", "[]") {
REQUIRE("abcdffaa" == day11::createNextSecurePassword("abcdefgh"));
REQUIRE("ghjaabcc" == day11::createNextSecurePassword("ghijklmn"));
} | 29.222222 | 71 | 0.69962 | LesnyRumcajs |
03c91be41df2d30964046e0cd9334717c303ed21 | 305 | hpp | C++ | library/ATF/$C717A7DEE19C4F58AB73A561D8FFE75A.hpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | library/ATF/$C717A7DEE19C4F58AB73A561D8FFE75A.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | library/ATF/$C717A7DEE19C4F58AB73A561D8FFE75A.hpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | // This file auto generated by plugin for ida pro. Generated code only for x64. Please, dont change manually
#pragma once
#include <common/common.h>
START_ATF_NAMESPACE
enum $C717A7DEE19C4F58AB73A561D8FFE75A
{
react_type_portal = 0x0,
REACT_TYPE_NUM = 0x1,
};
END_ATF_NAMESPACE
| 21.785714 | 108 | 0.734426 | lemkova |
03c9692ec5201608b2c21fa7aeb8447b54a915d2 | 3,220 | cpp | C++ | solved/0-b/air-raid/lightoj/airraid.cpp | abuasifkhan/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | 13 | 2015-09-30T19:18:04.000Z | 2021-06-26T21:11:30.000Z | solved/0-b/air-raid/lightoj/airraid.cpp | sbmaruf/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | null | null | null | solved/0-b/air-raid/lightoj/airraid.cpp | sbmaruf/pc-code | 77ce51d692acf6edcb9e47aeb7b7f06bf56e4e90 | [
"Unlicense"
] | 13 | 2015-01-04T09:49:54.000Z | 2021-06-03T13:18:44.000Z | #include <cstdio>
#include <cstring>
#include <list>
#include <queue>
#include <vector>
using namespace std;
#define MAXN 1000
#define INF 1001
#define Zero(v) memset(v, 0, sizeof(v))
#define cFor(t,v,c) for(t::const_iterator v=c.begin(); v != c.end(); ++v)
typedef unsigned int u32;
typedef queue<int> IQ;
typede... | 24.029851 | 76 | 0.41087 | abuasifkhan |
03cc4bed27e482d1d3d7264f5764abe09dfe95b9 | 579 | cpp | C++ | solutions/132.palindrome-partitioning-ii.373955854.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 78 | 2020-10-22T11:31:53.000Z | 2022-02-22T13:27:49.000Z | solutions/132.palindrome-partitioning-ii.373955854.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | null | null | null | solutions/132.palindrome-partitioning-ii.373955854.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 26 | 2020-10-23T15:10:44.000Z | 2021-11-07T16:13:50.000Z |
class Solution {
public:
int minCut(string A) {
int n = A.size();
vector<int> cuts(n + 1);
for (int i = 0; i <= n; i++)
cuts[i] = i - 1;
for (int i = 0; i < n; i++) {
// Odd
for (int j = 0; i - j >= 0 && i + j < n && A[i - j] == A[i + j]; j++) {
cuts[i + j + 1] = min(cuts[... | 23.16 | 78 | 0.343696 | satu0king |
03cf8167a09765696dcd9f738cc70985f23fdd34 | 1,337 | cpp | C++ | bacs/archive/src/lib/rpc.cpp | bacsorg/bacs | 2b52feb9efc805655cdf7829cf77ee028d567969 | [
"Apache-2.0"
] | null | null | null | bacs/archive/src/lib/rpc.cpp | bacsorg/bacs | 2b52feb9efc805655cdf7829cf77ee028d567969 | [
"Apache-2.0"
] | 10 | 2018-02-06T14:46:36.000Z | 2018-03-20T13:37:20.000Z | bacs/archive/src/lib/rpc.cpp | bacsorg/bacs | 2b52feb9efc805655cdf7829cf77ee028d567969 | [
"Apache-2.0"
] | 1 | 2021-11-26T10:59:09.000Z | 2021-11-26T10:59:09.000Z | #include <bacs/archive/rpc.hpp>
#include <bunsan/filesystem/fstream.hpp>
namespace bacs::archive::rpc {
void recv_file(grpc::internal::ReaderInterface<Chunk> &reader,
const boost::filesystem::path &path, utility::Archiver &format) {
format.Clear();
bunsan::filesystem::ofstream fout(path);
BUNSAN... | 30.386364 | 80 | 0.657442 | bacsorg |
03cf8ad3d87dae5c9878e70dff057b479f013012 | 283 | cpp | C++ | d635.cpp | puyuliao/ZJ-d879 | bead48e0a500f21bc78f745992f137706d15abf8 | [
"MIT"
] | null | null | null | d635.cpp | puyuliao/ZJ-d879 | bead48e0a500f21bc78f745992f137706d15abf8 | [
"MIT"
] | null | null | null | d635.cpp | puyuliao/ZJ-d879 | bead48e0a500f21bc78f745992f137706d15abf8 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#include<stdint.h>
using namespace std;
#define IOS {cin.tie(nullptr);ios_base::sync_with_stdio(false);}
#define N 1000000
int main()
{
//IOS;
int n;
while(scanf("%d",&n) == 1 && ~n){
printf("%o\n",n);
}
puts("-1");
return 0;
}
| 14.894737 | 65 | 0.565371 | puyuliao |
03d0c6bdfcffcc1b380eb177440a3c2ab03ed0d6 | 85 | cpp | C++ | extensions/ftxui/src/tui-ftxui.cpp | pxscope-swkang/perfkit | a30b56fdeb6975dbd253e85da5f79865d16d9d80 | [
"MIT"
] | null | null | null | extensions/ftxui/src/tui-ftxui.cpp | pxscope-swkang/perfkit | a30b56fdeb6975dbd253e85da5f79865d16d9d80 | [
"MIT"
] | null | null | null | extensions/ftxui/src/tui-ftxui.cpp | pxscope-swkang/perfkit | a30b56fdeb6975dbd253e85da5f79865d16d9d80 | [
"MIT"
] | 1 | 2021-08-28T07:10:56.000Z | 2021-08-28T07:10:56.000Z | //
// Created by Seungwoo on 2021-09-28.
//
#include "perfkit/extension/tui-ftxui.h"
| 17 | 40 | 0.694118 | pxscope-swkang |
03d5eb7ff8005b724eb81b4bdb753ee9734578a6 | 9,605 | cpp | C++ | tests/NeuralTests.cpp | MathiasStokholm/neural | a187bfc1bc53509c6c7253960817bf381bda438c | [
"MIT"
] | 1 | 2018-06-20T21:10:21.000Z | 2018-06-20T21:10:21.000Z | tests/NeuralTests.cpp | MathiasStokholm/neural | a187bfc1bc53509c6c7253960817bf381bda438c | [
"MIT"
] | null | null | null | tests/NeuralTests.cpp | MathiasStokholm/neural | a187bfc1bc53509c6c7253960817bf381bda438c | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_MAIN
#include <catch.hpp>
#include <neural/Neural.hpp>
TEST_CASE("Testing tensor -> matrix/vector mapping functions", "[mapping]" ) {
constexpr int inputSize = 3;
constexpr int batchSize = 2;
// Create tensor
neural::Tensor<double, batchSize, inputSize> tensor;
tensor.setValue... | 35.839552 | 110 | 0.613431 | MathiasStokholm |
03d633a0230bf86e95d9e874dbb9c8b711b280ab | 8,750 | cc | C++ | src/Vehicle/VehicleEstimatorStatusFactGroup.cc | vincentdavoust/qgroundcontrol | 3b7dd6e87c9600d184e9bfe59cf53500d5639a12 | [
"Apache-2.0"
] | 2,133 | 2015-01-04T03:10:22.000Z | 2022-03-31T01:51:07.000Z | src/Vehicle/VehicleEstimatorStatusFactGroup.cc | vincentdavoust/qgroundcontrol | 3b7dd6e87c9600d184e9bfe59cf53500d5639a12 | [
"Apache-2.0"
] | 6,166 | 2015-01-02T18:47:42.000Z | 2022-03-31T03:44:10.000Z | src/Vehicle/VehicleEstimatorStatusFactGroup.cc | vincentdavoust/qgroundcontrol | 3b7dd6e87c9600d184e9bfe59cf53500d5639a12 | [
"Apache-2.0"
] | 2,980 | 2015-01-01T03:09:18.000Z | 2022-03-31T04:13:55.000Z | /****************************************************************************
*
* (c) 2009-2020 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
***************************************... | 78.828829 | 114 | 0.700914 | vincentdavoust |
03e5800108a4bd83ceefb39fcb08f07c4fbbdb1b | 12,790 | cxx | C++ | tests/hblas3.cxx | wavefunction91/HAXX | e0c282b70ee009a2a01871979f505bcca89713ba | [
"BSD-3-Clause"
] | 6 | 2018-11-05T22:20:28.000Z | 2020-12-28T22:22:55.000Z | tests/hblas3.cxx | wavefunction91/HAXX | e0c282b70ee009a2a01871979f505bcca89713ba | [
"BSD-3-Clause"
] | null | null | null | tests/hblas3.cxx | wavefunction91/HAXX | e0c282b70ee009a2a01871979f505bcca89713ba | [
"BSD-3-Clause"
] | null | null | null | /*
* This file is a part of HAXX
*
* Copyright (c) 2017 David Williams-Young
* All rights reserved.
*
* See LICENSE.txt
*/
#include "haxx_ut.hpp"
#include "hblas/hblas1.hpp"
#include "hblas/hblas2.hpp"
#include "hblas/hblas3.hpp"
// Typedefs
using d = double;
using cd = std::complex<d>;
using qd = H... | 26.757322 | 74 | 0.67498 | wavefunction91 |
03e5dd4326f0930723851103fc23ebae35fa8084 | 4,737 | cpp | C++ | Sources/Core/IOData/html_url.cpp | xctan/ClanLib | 1a8d6eb6cab3e93fd5c6be618fb6f7bd1146fc2d | [
"Linux-OpenIB"
] | 248 | 2015-01-08T05:21:40.000Z | 2022-03-20T02:59:16.000Z | Sources/Core/IOData/html_url.cpp | xctan/ClanLib | 1a8d6eb6cab3e93fd5c6be618fb6f7bd1146fc2d | [
"Linux-OpenIB"
] | 39 | 2015-01-14T17:37:07.000Z | 2022-03-17T12:59:26.000Z | Sources/Core/IOData/html_url.cpp | xctan/ClanLib | 1a8d6eb6cab3e93fd5c6be618fb6f7bd1146fc2d | [
"Linux-OpenIB"
] | 82 | 2015-01-11T13:23:49.000Z | 2022-02-19T03:17:24.000Z | /*
** ClanLib SDK
** Copyright (c) 1997-2020 The ClanLib Team
**
** 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 a... | 24.292308 | 117 | 0.586025 | xctan |
03e6e0da5fea38b2e8393b5d174302aa887ff093 | 484 | cpp | C++ | cpp/bjyd/05_test/03.cpp | skyofsmith/servePractice | d143497ec7c13dcbb55354c9050fd48e5b1c7b51 | [
"MIT"
] | null | null | null | cpp/bjyd/05_test/03.cpp | skyofsmith/servePractice | d143497ec7c13dcbb55354c9050fd48e5b1c7b51 | [
"MIT"
] | 18 | 2020-07-16T21:36:57.000Z | 2022-03-25T18:59:38.000Z | cpp/bjyd/05_test/03.cpp | skyofsmith/servePractice | d143497ec7c13dcbb55354c9050fd48e5b1c7b51 | [
"MIT"
] | null | null | null | #include <iostream>
#include "MyRectangle.h"
#include "Screen3.h"
int main() {
int width, height;
int leftX, leftY, rightX, rightY;
Screen *screen;
cin >> width >> height;
cin >> leftX >> leftY >> rightX >> rightY;
screen = Screen::getInstance(width, height);
MyRectangle myRectangle(leftX, leftY, right... | 19.36 | 64 | 0.663223 | skyofsmith |
03e8ac9d6495cda0f5da94c09498c7f77f12c325 | 1,797 | cpp | C++ | src/MrbLoad.cpp | Shidacea/Shidacea-CPP | 19b9c4101c84384acfa4e6987911588ff58be01d | [
"MIT"
] | 1 | 2019-06-16T06:17:30.000Z | 2019-06-16T06:17:30.000Z | src/MrbLoad.cpp | Shidacea/Shidacea-CPP | 19b9c4101c84384acfa4e6987911588ff58be01d | [
"MIT"
] | 1 | 2020-05-02T20:17:17.000Z | 2020-05-02T20:17:17.000Z | src/MrbLoad.cpp | Hadeweka/Shidacea | 7cff14587dc3a203efc71cdcce7a8cd5ee770881 | [
"MIT"
] | null | null | null | #include "MrbLoad.h"
#include <iostream>
//! TODO: Add consistent log messages
void MrbLoad::execute_string(mrb_state* mrb, std::string const& code) {
mrb_load_string(mrb, code.c_str());
}
void MrbLoad::execute_bytecode_file(mrb_state* mrb, std::string const& filename) {
auto f = fopen(filename.c_str(), "r");
... | 18.336735 | 90 | 0.69783 | Shidacea |
03e96920d50df2b01fb806f37301a84444211eb1 | 7,149 | cpp | C++ | UE4Test/Plugins/AocePlugins/Source/AocePlugins/Private/LiveManager.cpp | msqljj/aoce | b15320acbb9454fb461501c8cf0c598d1b15c495 | [
"MIT"
] | 1 | 2021-07-09T09:59:09.000Z | 2021-07-09T09:59:09.000Z | UE4Test/Plugins/AocePlugins/Source/AocePlugins/Private/LiveManager.cpp | msqljj/aoce | b15320acbb9454fb461501c8cf0c598d1b15c495 | [
"MIT"
] | null | null | null | UE4Test/Plugins/AocePlugins/Source/AocePlugins/Private/LiveManager.cpp | msqljj/aoce | b15320acbb9454fb461501c8cf0c598d1b15c495 | [
"MIT"
] | null | null | null | #include "LiveManager.hpp"
using namespace std::placeholders;
namespace aoce {
LiveManager *LiveManager::instance = nullptr;
LiveManager &LiveManager::Get() {
if (instance == nullptr) {
instance = new LiveManager();
}
return *instance;
}
LiveManager::LiveManager(/* args */) {
int32_t roleSize = (int3... | 26.186813 | 87 | 0.680235 | msqljj |
03e9aaf8bc0790b7ae330886f67c80994607bb8f | 325 | hpp | C++ | include/locic/Lex/LexerAPI.hpp | scross99/locic | a24bb380e17f8af69e7389acf8ce354c91a2abf3 | [
"MIT"
] | 80 | 2015-02-19T21:38:57.000Z | 2016-05-25T06:53:12.000Z | include/locic/Lex/LexerAPI.hpp | scross99/locic | a24bb380e17f8af69e7389acf8ce354c91a2abf3 | [
"MIT"
] | 8 | 2015-02-20T09:47:20.000Z | 2015-11-13T07:49:17.000Z | include/locic/Lex/LexerAPI.hpp | scross99/locic | a24bb380e17f8af69e7389acf8ce354c91a2abf3 | [
"MIT"
] | 6 | 2015-02-20T11:26:19.000Z | 2016-04-13T14:30:39.000Z | #ifndef LOCIC_LEX_LEXERAPI_HPP
#define LOCIC_LEX_LEXERAPI_HPP
namespace locic {
class String;
class StringHost;
namespace Lex {
class Token;
class LexerAPI {
protected:
~LexerAPI() { }
public:
virtual Token lexToken() = 0;
virtual String fileName() const = 0;
};
}
}
#... | 11.607143 | 39 | 0.636923 | scross99 |
03ea396d28b0b69fd4c1e255dca11993ee9d36b8 | 11,008 | cpp | C++ | Game/Client/CEGUIFalagardEx/FalSuperTooltip.cpp | hackerlank/SourceCode | b702c9e0a9ca5d86933f3c827abb02a18ffc9a59 | [
"MIT"
] | 4 | 2021-07-31T13:56:01.000Z | 2021-11-13T02:55:10.000Z | Game/Client/CEGUIFalagardEx/FalSuperTooltip.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | null | null | null | Game/Client/CEGUIFalagardEx/FalSuperTooltip.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | 7 | 2021-08-31T14:34:23.000Z | 2022-01-19T08:25:58.000Z | #include "FalSuperTooltip.h"
#include "falagard/CEGUIFalWidgetLookManager.h"
#include "falagard/CEGUIFalWidgetLookFeel.h"
#include <CEGUIWindowManager.h>
//#include "AxTrace.h"
// Start of CEGUI namespace section
namespace CEGUI
{
static std::vector< String > split_string( const String& str, const String& delims = "\... | 31.361823 | 123 | 0.614371 | hackerlank |
03eb2dd89eef8c90b326070b8b55b648fcffada4 | 780 | cpp | C++ | language_designer/main.cpp | bisthebis/ParserGenerator | a2f9a532ed59dca84ca6c69d0f6305e6f6686095 | [
"MIT"
] | null | null | null | language_designer/main.cpp | bisthebis/ParserGenerator | a2f9a532ed59dca84ca6c69d0f6305e6f6686095 | [
"MIT"
] | null | null | null | language_designer/main.cpp | bisthebis/ParserGenerator | a2f9a532ed59dca84ca6c69d0f6305e6f6686095 | [
"MIT"
] | null | null | null | #include <iostream>
#include <QtCore>
#include <QApplication>
#include "mainwindow.h"
#include "tokentype.h"
#include "language.h"
int main(int argc, char** argv) {
Language lang;
Regex regex;
regex.pushRule({CharSet::alpha, Regex::AT_LEAST_ONCE});
regex.pushRule({CharSet::alphanum, Regex::ANY});
T... | 23.636364 | 59 | 0.641026 | bisthebis |
03ed6a176d38b1ac2d8cb2506f6f8baf8c77f1f3 | 3,876 | inl | C++ | src/dex/hashlib/algorithms/algorithm.CRC-6_CDMA2000-A.c.inl | GrieferAtWork/deemon | 16a4899303390c93d6e7b3910aa4d20e7a55d80b | [
"Zlib"
] | 5 | 2019-09-27T01:33:53.000Z | 2021-11-29T16:31:39.000Z | src/dex/hashlib/algorithms/algorithm.CRC-6_CDMA2000-A.c.inl | GrieferAtWork/deemon | 16a4899303390c93d6e7b3910aa4d20e7a55d80b | [
"Zlib"
] | null | null | null | src/dex/hashlib/algorithms/algorithm.CRC-6_CDMA2000-A.c.inl | GrieferAtWork/deemon | 16a4899303390c93d6e7b3910aa4d20e7a55d80b | [
"Zlib"
] | 1 | 2019-10-04T09:42:30.000Z | 2019-10-04T09:42:30.000Z | {
UINT8_C(0x00), UINT8_C(0x9c), UINT8_C(0xa4), UINT8_C(0x38), UINT8_C(0xd4), UINT8_C(0x48), UINT8_C(0x70), UINT8_C(0xec),
UINT8_C(0x34), UINT8_C(0xa8), UINT8_C(0x90), UINT8_C(0x0c), UINT8_C(0xe0), UINT8_C(0x7c), UINT8_C(0x44), UINT8_C(0xd8),
UINT8_C(0x68), UINT8_C(0xf4), UINT8_C(0xcc), UINT8_C(0x50), UINT8_C(0xbc), ... | 110.742857 | 120 | 0.726522 | GrieferAtWork |
03ee76d8769d638715a36a43695891c2557aa0b3 | 11,818 | cpp | C++ | test/src/valid_wavelet_epsilon.cpp | vanreeslab/murphy | 01c9c56171fcee33cb3c1c93c25617ccf7b8ff83 | [
"BSD-3-Clause"
] | 1 | 2021-12-01T22:12:56.000Z | 2021-12-01T22:12:56.000Z | test/src/valid_wavelet_epsilon.cpp | vanreeslab/murphy | 01c9c56171fcee33cb3c1c93c25617ccf7b8ff83 | [
"BSD-3-Clause"
] | null | null | null | test/src/valid_wavelet_epsilon.cpp | vanreeslab/murphy | 01c9c56171fcee33cb3c1c93c25617ccf7b8ff83 | [
"BSD-3-Clause"
] | null | null | null | #include <cmath>
#include <limits>
#include <list>
#include "core/macros.hpp"
#include "core/types.hpp"
#include "grid/field.hpp"
#include "grid/grid.hpp"
#include "gtest/gtest.h"
#include "operator/error.hpp"
#include "operator/xblas.hpp"
#include "tools/ioh5.hpp"
#include "valid_toolbox.hpp"
// class InitCond_Epsil... | 34.861357 | 157 | 0.593332 | vanreeslab |
03f34be7bb6908c8325238d411172de0308789fb | 6,836 | cpp | C++ | test_conformance/images/clCopyImage/test_loops.cpp | jrprice/OpenCL-CTS | 3615c4eea6d6057f7b5cdd0f79ab474f6c528c80 | [
"Apache-2.0"
] | null | null | null | test_conformance/images/clCopyImage/test_loops.cpp | jrprice/OpenCL-CTS | 3615c4eea6d6057f7b5cdd0f79ab474f6c528c80 | [
"Apache-2.0"
] | null | null | null | test_conformance/images/clCopyImage/test_loops.cpp | jrprice/OpenCL-CTS | 3615c4eea6d6057f7b5cdd0f79ab474f6c528c80 | [
"Apache-2.0"
] | null | null | null | //
// Copyright (c) 2017 The Khronos Group Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable la... | 36.169312 | 149 | 0.63897 | jrprice |
03f63254227944433b9850178d460e01211558b3 | 9,078 | cpp | C++ | cloudwatch_logs_common/src/log_publisher.cpp | ryanewel/cloudwatch-common | 2358a518ad37777f43bcfb4bcc65f06c6a2b85f3 | [
"Apache-2.0"
] | null | null | null | cloudwatch_logs_common/src/log_publisher.cpp | ryanewel/cloudwatch-common | 2358a518ad37777f43bcfb4bcc65f06c6a2b85f3 | [
"Apache-2.0"
] | 2 | 2019-01-28T23:18:52.000Z | 2019-01-30T22:48:18.000Z | cloudwatch_logs_common/src/log_publisher.cpp | ryanewel/cloudwatch-common | 2358a518ad37777f43bcfb4bcc65f06c6a2b85f3 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2018 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" ... | 43.228571 | 100 | 0.696629 | ryanewel |
03f9d58b1c33059a194756aa833739830fc7be26 | 5,929 | cpp | C++ | common/context.cpp | RPTST/wwiv_dietpi | 202177393778e809ffe657095c1f77aa8f404651 | [
"Apache-2.0"
] | 157 | 2015-07-08T18:29:22.000Z | 2022-03-10T10:22:58.000Z | common/context.cpp | RPTST/wwiv_dietpi | 202177393778e809ffe657095c1f77aa8f404651 | [
"Apache-2.0"
] | 1,037 | 2015-07-18T03:09:12.000Z | 2022-03-13T17:39:55.000Z | common/context.cpp | RPTST/wwiv_dietpi | 202177393778e809ffe657095c1f77aa8f404651 | [
"Apache-2.0"
] | 74 | 2015-07-08T19:42:19.000Z | 2021-12-22T06:15:46.000Z | /**************************************************************************/
/* */
/* WWIV Version 5.x */
/* Copyright (C)2018-2021, WWIV Software Services */
/* ... | 34.271676 | 103 | 0.623883 | RPTST |
03fba01080b1b00b8dc7dc50be6875d2bc275505 | 743 | cpp | C++ | src/gui/cpp/main_crawler.cpp | lewishamulton/grawitas | e05fc18373af86e5f417be6817bcdbf3a16c272a | [
"MIT"
] | 6 | 2017-12-08T17:09:14.000Z | 2020-05-28T15:42:26.000Z | src/gui/cpp/main_crawler.cpp | lewishamulton/grawitas | e05fc18373af86e5f417be6817bcdbf3a16c272a | [
"MIT"
] | 12 | 2017-11-16T09:48:51.000Z | 2022-01-07T16:28:46.000Z | src/gui/cpp/main_crawler.cpp | lewishamulton/grawitas | e05fc18373af86e5f417be6817bcdbf3a16c272a | [
"MIT"
] | 7 | 2017-12-08T17:35:58.000Z | 2021-12-16T17:38:46.000Z | #include <QGuiApplication>
#include <QDebug>
#include <QQmlApplicationEngine>
#include <QtQml>
#include <QQmlContext>
#include <QMetaType>
#include "crawlerWrapper.h"
Q_DECLARE_METATYPE(std::string)
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
CrawlerWrapper crawler_wrapper;
qmlRegisterT... | 27.518519 | 116 | 0.761777 | lewishamulton |
ff00e9a70676f8aadd4a3c914b9eae948a7da195 | 12,848 | cpp | C++ | src/exemple/GTA_SA_cheat.cpp | Pcornat/BenLib | 5ec30f5eb0bbf827d4d3fd00c8cca1064109fb4c | [
"MIT"
] | null | null | null | src/exemple/GTA_SA_cheat.cpp | Pcornat/BenLib | 5ec30f5eb0bbf827d4d3fd00c8cca1064109fb4c | [
"MIT"
] | null | null | null | src/exemple/GTA_SA_cheat.cpp | Pcornat/BenLib | 5ec30f5eb0bbf827d4d3fd00c8cca1064109fb4c | [
"MIT"
] | null | null | null | //////////////////////////////////////////////////////////////
// ____ //
// | __ ) ___ _ __ ___ _ _ _ __ ___ _ __ _ __ ___ //
// | _ \ / _ \ '_ \/ __| | | | '_ \ / _ \ '__| '_ \ / __| //
// | |_) | __/ | | \__ \ |_| | |_) | __/ | | |_) | (__ //
// |... | 39.411043 | 201 | 0.542653 | Pcornat |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.