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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
29a74c4c8a134ec1b7a0928417e12e9836f2549e | 2,484 | hpp | C++ | ODFAEG/extlibs/headers/MySQL/conncpp/CArray.hpp | Mechap/ODFAEG | ad4bf026ee7055aaf168c5a8e3dc57baaaf42e40 | [
"Zlib"
] | null | null | null | ODFAEG/extlibs/headers/MySQL/conncpp/CArray.hpp | Mechap/ODFAEG | ad4bf026ee7055aaf168c5a8e3dc57baaaf42e40 | [
"Zlib"
] | 1 | 2020-02-14T14:19:44.000Z | 2020-12-04T17:39:17.000Z | ODFAEG/extlibs/headers/MySQL/conncpp/CArray.hpp | Mechap/ODFAEG | ad4bf026ee7055aaf168c5a8e3dc57baaaf42e40 | [
"Zlib"
] | 2 | 2021-05-23T13:45:28.000Z | 2021-07-24T13:36:13.000Z | /************************************************************************************
Copyright (C) 2020 MariaDB Corporation AB
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; eit... | 28.227273 | 86 | 0.635266 | Mechap |
29a8aac9bd73671c0164d2f753462227baaa1fdb | 28,594 | cpp | C++ | src/core/Application.cpp | onqtam/game | 08d9f2871bfd5c757d541064b77d38474123592a | [
"MIT"
] | 41 | 2016-10-12T15:54:04.000Z | 2022-01-12T04:17:20.000Z | src/core/Application.cpp | onqtam/game | 08d9f2871bfd5c757d541064b77d38474123592a | [
"MIT"
] | null | null | null | src/core/Application.cpp | onqtam/game | 08d9f2871bfd5c757d541064b77d38474123592a | [
"MIT"
] | 10 | 2015-09-16T19:56:36.000Z | 2021-12-27T21:12:11.000Z | #include "Application.h"
#include "PluginManager.h"
#include "World.h"
#include "rendering/GraphicsHelpers.h"
#include "rendering/Renderer.h"
#include "imgui/ImGuiManager.h"
#define RCRL_LIVE_DEMO 1
HA_SUPPRESS_WARNINGS
#include <GLFW/glfw3.h>
#include <imgui.h>
#ifdef EMSCRIPTEN
#include <emscripten/emscripten.h>
#... | 36.103535 | 131 | 0.612506 | onqtam |
29a8ab5bc3786f88708aa04a156d493e82f7dbb1 | 737 | hpp | C++ | TenNenDemon/Code/Game/CutsceneDefinition.hpp | sam830917/TenNenDemon | a5f60007b73cccc6af8675c7f3dec597008dfdb4 | [
"MIT"
] | null | null | null | TenNenDemon/Code/Game/CutsceneDefinition.hpp | sam830917/TenNenDemon | a5f60007b73cccc6af8675c7f3dec597008dfdb4 | [
"MIT"
] | null | null | null | TenNenDemon/Code/Game/CutsceneDefinition.hpp | sam830917/TenNenDemon | a5f60007b73cccc6af8675c7f3dec597008dfdb4 | [
"MIT"
] | null | null | null | #pragma once
#include "Engine/Core/XmlUtils.hpp"
#include <map>
#include <vector>
#include <string>
class Texture;
struct CutsceneLines
{
std::string m_line = "";
std::string m_characterName = "";
Texture* m_background = nullptr;
Texture* m_characterImage = nullptr;
};
class CutsceneDefinition
{
public:
static ... | 21.676471 | 85 | 0.750339 | sam830917 |
29a91c33b90e0a0097b9caae6a983e194f40b3b6 | 1,687 | cpp | C++ | C++/001_Two_Sum.cpp | stephenkid/LeetCode-Sol | 8cb429652e0741ca4078b6de5f9eeaddcb8607a8 | [
"MIT"
] | 1,958 | 2015-01-30T01:19:03.000Z | 2022-03-17T03:34:47.000Z | src/main/cpp/001_Two_Sum.cpp | TechnoBlogger14o3/LeetCode-Sol-Res | 04621f21a76fab29909c1fa04a37417257a88f63 | [
"MIT"
] | 135 | 2016-03-03T04:53:10.000Z | 2022-03-03T21:14:37.000Z | src/main/cpp/001_Two_Sum.cpp | TechnoBlogger14o3/LeetCode-Sol-Res | 04621f21a76fab29909c1fa04a37417257a88f63 | [
"MIT"
] | 914 | 2015-01-27T22:27:22.000Z | 2022-03-05T04:25:10.000Z | /*
*Given an array of integers, return indices of the two numbers such that they add up to a specific target.
*You may assume that each input would have exactly one solution.
*Example:
*Given nums = [2, 7, 11, 15], target = 9,
*Because nums[0] + nums[1] = 2 + 7 = 9,
*return [0, 1].
*UPDATE (2016/2/13):
*The r... | 23.430556 | 111 | 0.609366 | stephenkid |
29a981a9ffe71d9af92058659e721749035752b5 | 6,685 | cpp | C++ | Graphics/src/GLSLProgram.cpp | MarcoLotto/ScenaFramework | 533e5149a1580080e41bfb37d5648023b6e39f6f | [
"MIT"
] | 2 | 2019-01-21T20:47:29.000Z | 2020-01-09T01:08:24.000Z | Graphics/src/GLSLProgram.cpp | MarcoLotto/ScaenaFramework | 533e5149a1580080e41bfb37d5648023b6e39f6f | [
"MIT"
] | null | null | null | Graphics/src/GLSLProgram.cpp | MarcoLotto/ScaenaFramework | 533e5149a1580080e41bfb37d5648023b6e39f6f | [
"MIT"
] | null | null | null | /**********************************
* SCAENA FRAMEWORK
* Author: Marco Andrés Lotto
* License: MIT - 2016
**********************************/
#include "Mesh.h"
#include "GLSLProgram.h"
#include "GLSLProgramGLImplementation.h"
#include "GLSLProgramGLES3Implementation.h"
#include "GLSLProgramGLES2Implementation.h"
#incl... | 32.294686 | 114 | 0.770681 | MarcoLotto |
29b08b9a31543499edd4949d6a60db52a6734f4e | 2,312 | cpp | C++ | Source/RendererCore/D3D12/D3D12CommandPool.cpp | DavidTheFighter/KalosEngine | 4c550114066bee1c41d08f38f5b692e567e96c27 | [
"MIT"
] | 1 | 2018-12-16T21:19:58.000Z | 2018-12-16T21:19:58.000Z | Source/RendererCore/D3D12/D3D12CommandPool.cpp | DavidTheFighter/KalosEngine | 4c550114066bee1c41d08f38f5b692e567e96c27 | [
"MIT"
] | null | null | null | Source/RendererCore/D3D12/D3D12CommandPool.cpp | DavidTheFighter/KalosEngine | 4c550114066bee1c41d08f38f5b692e567e96c27 | [
"MIT"
] | null | null | null | #include "RendererCore/D3D12/D3D12CommandPool.h"
#if BUILD_D3D12_BACKEND
#include <RendererCore/D3D12/D3D12Renderer.h>
#include <RendererCore/D3D12/D3D12CommandBuffer.h>
#include <RendererCore/D3D12/D3D12Enums.h>
D3D12CommandPool::D3D12CommandPool(D3D12Renderer *rendererPtr, QueueType queueType)
{
renderer ... | 32.111111 | 160 | 0.768166 | DavidTheFighter |
29b2eaef2648af9c18fc65796d59851e8232b5aa | 508 | cpp | C++ | src/Player/LocalPlayer.cpp | f0xeri/Mine-Plus-Plus | 52c8323913b30e5c2837925dc88de002fe0e1b78 | [
"MIT"
] | 28 | 2021-04-04T13:55:04.000Z | 2022-02-01T05:51:21.000Z | src/Player/LocalPlayer.cpp | codingwatching/Mine-Plus-Plus | 7b90c904b660dd5089c44dbf34d494367d0d060b | [
"MIT"
] | 1 | 2021-07-28T15:33:42.000Z | 2021-07-28T15:33:42.000Z | src/Player/LocalPlayer.cpp | codingwatching/Mine-Plus-Plus | 7b90c904b660dd5089c44dbf34d494367d0d060b | [
"MIT"
] | 1 | 2021-07-30T04:13:14.000Z | 2021-07-30T04:13:14.000Z | //
// Created by Yaroslav on 20.07.2021.
//
#include "LocalPlayer.hpp"
void LocalPlayer::update(double dt, State *state) {
if (state->thirdPersonView)
{
state->camera->pos.y = pos.y + 3;
state->camera->pos.x = pos.x + glm::sin(state->camera->rotY) * 3;
state->camera->pos.z = pos.z + gl... | 21.166667 | 73 | 0.574803 | f0xeri |
29b2fb4aa2a6d3c0667e29ca14143e155eed7eb5 | 6,202 | cpp | C++ | native/src/seal/c/keygenerator.cpp | zirconium-n/SEAL | 88bbc51dd684b82a781312ff04abd235c060163e | [
"MIT"
] | 1,604 | 2019-05-06T22:40:56.000Z | 2022-03-31T14:53:33.000Z | native/src/seal/c/keygenerator.cpp | zirconium-n/SEAL | 88bbc51dd684b82a781312ff04abd235c060163e | [
"MIT"
] | 425 | 2019-05-09T08:10:10.000Z | 2022-03-31T17:16:51.000Z | native/src/seal/c/keygenerator.cpp | zirconium-n/SEAL | 88bbc51dd684b82a781312ff04abd235c060163e | [
"MIT"
] | 468 | 2019-05-08T11:06:24.000Z | 2022-03-30T14:30:10.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
// STD
#include <algorithm>
#include <iterator>
// SEALNet
#include "seal/c/keygenerator.h"
#include "seal/c/utilities.h"
// SEAL
#include "seal/keygenerator.h"
#include "seal/util/common.h"
using namespace std;
using na... | 26.965217 | 115 | 0.695421 | zirconium-n |
29b40d7dc12a0dc753ff469a0d70e4c5dc206314 | 438 | hpp | C++ | include/ssGUI/Enums/AnchorType.hpp | Neko-Box-Coder/ssGUI | 25e218fd79fea105a30737a63381cf8d0be943f6 | [
"Apache-2.0"
] | 15 | 2022-01-21T10:48:04.000Z | 2022-03-27T17:55:11.000Z | include/ssGUI/Enums/AnchorType.hpp | Neko-Box-Coder/ssGUI | 25e218fd79fea105a30737a63381cf8d0be943f6 | [
"Apache-2.0"
] | null | null | null | include/ssGUI/Enums/AnchorType.hpp | Neko-Box-Coder/ssGUI | 25e218fd79fea105a30737a63381cf8d0be943f6 | [
"Apache-2.0"
] | 4 | 2022-01-21T10:48:05.000Z | 2022-01-22T15:42:34.000Z | #ifndef SSGUI_ANCHOR_TYPE
#define SSGUI_ANCHOR_TYPE
//namespace: ssGUI::Enums
namespace ssGUI::Enums
{
/*enum: AnchorType
TOP_LEFT - Anchoring top left
TOP_RIGHT - Anchoring top right
BOTTOM_LEFT - Anchoring bottom left
BOTTOM_RIGHT - Anchoring bottom right
*/
enum class Ancho... | 18.25 | 42 | 0.625571 | Neko-Box-Coder |
29b4b8cfbb1cfe69b82dd2d5afd90d41e896bef4 | 218 | cpp | C++ | src/main.cpp | zaki0929/rosFlowLIDAR | e4e5cdcd2541c484afb28e129b7503a6c9b532a0 | [
"MIT"
] | null | null | null | src/main.cpp | zaki0929/rosFlowLIDAR | e4e5cdcd2541c484afb28e129b7503a6c9b532a0 | [
"MIT"
] | null | null | null | src/main.cpp | zaki0929/rosFlowLIDAR | e4e5cdcd2541c484afb28e129b7503a6c9b532a0 | [
"MIT"
] | null | null | null | #include "ofMain.h"
#include "ofApp.h"
#include "ros/ros.h"
int main(int argc, char *argv[]){
ros::init(argc, argv, "flow_lidar");
ofSetupOpenGL(1024,768,OF_WINDOW);
ofApp *app = new ofApp();
ofRunApp(app);
}
| 19.818182 | 38 | 0.66055 | zaki0929 |
29b61c356b519494cfda48e703b5779db9816ed2 | 89,955 | cpp | C++ | src/coreclr/src/vm/syncblk.cpp | swaroop-sridhar/runtime | d0efddd932f6fb94c3e9436ab393fc390c7b2da9 | [
"MIT"
] | 11 | 2021-10-21T07:56:23.000Z | 2022-03-31T15:08:10.000Z | src/coreclr/src/vm/syncblk.cpp | swaroop-sridhar/runtime | d0efddd932f6fb94c3e9436ab393fc390c7b2da9 | [
"MIT"
] | 1 | 2020-11-17T09:52:30.000Z | 2020-11-17T09:52:30.000Z | src/coreclr/src/vm/syncblk.cpp | swaroop-sridhar/runtime | d0efddd932f6fb94c3e9436ab393fc390c7b2da9 | [
"MIT"
] | 2 | 2021-05-17T22:12:46.000Z | 2021-05-19T06:21:16.000Z | // Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
//
// SYNCBLK.CPP
//
//
// Definition of a SyncBlock and the SyncBlockCache which manages it
//
#include "common.h"
#include "vars.hpp"
#include "util.hpp"
#include "class.h"
#inc... | 30.277684 | 176 | 0.593663 | swaroop-sridhar |
29b74e7c0d5bb67ae412ee47c96971497019c737 | 16,706 | cpp | C++ | Source/SVWidgetsLib/FilterParameterWidgets/CalculatorWidget.cpp | jmarquisbq/SIMPL | 375653013742cfe9aed603fc9a6bab6d9c96be31 | [
"NRL"
] | null | null | null | Source/SVWidgetsLib/FilterParameterWidgets/CalculatorWidget.cpp | jmarquisbq/SIMPL | 375653013742cfe9aed603fc9a6bab6d9c96be31 | [
"NRL"
] | null | null | null | Source/SVWidgetsLib/FilterParameterWidgets/CalculatorWidget.cpp | jmarquisbq/SIMPL | 375653013742cfe9aed603fc9a6bab6d9c96be31 | [
"NRL"
] | null | null | null | /* ============================================================================
* Copyright (c) 2009-2015 BlueQuartz Software, LLC
*
* 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... | 35.773019 | 158 | 0.542141 | jmarquisbq |
29b9130993ce84a96532667cbd236085c4577c5d | 5,602 | cpp | C++ | src/wiztk/system/threading/thread.cpp | wiztk/framework | 179baf8a24406b19d3f4ea28e8405358b21f8446 | [
"Apache-2.0"
] | 37 | 2017-11-22T14:15:33.000Z | 2021-11-25T20:39:39.000Z | src/wiztk/system/threading/thread.cpp | wiztk/framework | 179baf8a24406b19d3f4ea28e8405358b21f8446 | [
"Apache-2.0"
] | 3 | 2018-03-01T12:44:22.000Z | 2021-01-04T23:14:41.000Z | src/wiztk/system/threading/thread.cpp | wiztk/framework | 179baf8a24406b19d3f4ea28e8405358b21f8446 | [
"Apache-2.0"
] | 10 | 2017-11-25T19:09:11.000Z | 2020-12-02T02:05:47.000Z | /*
* Copyright 2017 - 2018 The WizTK 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 ... | 23.244813 | 83 | 0.691539 | wiztk |
29ba9c18432148acb41da7fde93b13235e944a1e | 3,084 | hpp | C++ | src/boost/serialization/strong_typedef.hpp | 107-systems/107-Arduino-BoostUnits | fc3677ae79c1e75c99b3aa7813eb6ec83124b944 | [
"MIT"
] | null | null | null | src/boost/serialization/strong_typedef.hpp | 107-systems/107-Arduino-BoostUnits | fc3677ae79c1e75c99b3aa7813eb6ec83124b944 | [
"MIT"
] | 1 | 2021-08-30T18:02:49.000Z | 2021-08-30T18:02:49.000Z | src/boost/serialization/strong_typedef.hpp | 107-systems/107-Arduino-BoostUnits | fc3677ae79c1e75c99b3aa7813eb6ec83124b944 | [
"MIT"
] | null | null | null | #ifndef BOOST_SERIALIZATION_STRONG_TYPEDEF_HPP
#define BOOST_SERIALIZATION_STRONG_TYPEDEF_HPP
// MS compatible compilers support #pragma once
#if defined(_MSC_VER)
# pragma once
#endif
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8
// strong_typedef.hpp:
// (C) Copyright 2002 Robert... | 60.470588 | 114 | 0.479572 | 107-systems |
29c54fa07903f19a551759612a50d6181a24f780 | 25,392 | cpp | C++ | src/CommonProperties.cpp | TimoKunze/ButtonControls | a0b9860a30a86e613a633635b16e3db117133c50 | [
"MIT"
] | 2 | 2019-12-12T08:12:21.000Z | 2021-03-30T05:00:53.000Z | src/CommonProperties.cpp | TimoKunze/ButtonControls | a0b9860a30a86e613a633635b16e3db117133c50 | [
"MIT"
] | null | null | null | src/CommonProperties.cpp | TimoKunze/ButtonControls | a0b9860a30a86e613a633635b16e3db117133c50 | [
"MIT"
] | 1 | 2021-12-09T18:23:25.000Z | 2021-12-09T18:23:25.000Z | // CommonProperties.cpp: The controls' "Common" property page
#include "stdafx.h"
#include "CommonProperties.h"
CommonProperties::CommonProperties()
{
m_dwTitleID = IDS_TITLECOMMONPROPERTIES;
m_dwDocStringID = IDS_DOCSTRINGCOMMONPROPERTIES;
}
//////////////////////////////////////////////////////////////////////... | 43.628866 | 231 | 0.745432 | TimoKunze |
29c6e3aba66fab1049dfff02a5e850768e564549 | 4,924 | cpp | C++ | Spark/effects/BloomPass.cpp | MickAlmighty/SparkRenderer | 0e30e342c7cf4003da54e9ce191fead647a868eb | [
"MIT"
] | 1 | 2022-02-15T19:50:01.000Z | 2022-02-15T19:50:01.000Z | Spark/effects/BloomPass.cpp | MickAlmighty/SparkRenderer | 0e30e342c7cf4003da54e9ce191fead647a868eb | [
"MIT"
] | null | null | null | Spark/effects/BloomPass.cpp | MickAlmighty/SparkRenderer | 0e30e342c7cf4003da54e9ce191fead647a868eb | [
"MIT"
] | null | null | null | #include "BloomPass.hpp"
#include "CommonUtils.h"
#include "Shader.h"
#include "Spark.h"
namespace spark::effects
{
BloomPass::BloomPass(unsigned int width, unsigned int height) : w(width), h(height)
{
bloomDownScaleShaderMip0ToMip1 = Spark::get().getResourceLibrary().getResourceByName<resources::Shader>("bloomDo... | 40.694215 | 148 | 0.743501 | MickAlmighty |
29c6e6c2a85399516d56ce80b65d1d71edabdea6 | 623 | cpp | C++ | InterviewBit/DP/lls.cpp | Cobnagi/Competitive-programming | 4037e0542350e789a31bf3ebd97896c0d75bea17 | [
"MIT"
] | 6 | 2019-10-06T17:39:42.000Z | 2022-03-03T10:57:52.000Z | InterviewBit/DP/lls.cpp | Cobnagi/Competitive-programming | 4037e0542350e789a31bf3ebd97896c0d75bea17 | [
"MIT"
] | null | null | null | InterviewBit/DP/lls.cpp | Cobnagi/Competitive-programming | 4037e0542350e789a31bf3ebd97896c0d75bea17 | [
"MIT"
] | 2 | 2019-10-06T11:09:01.000Z | 2019-10-06T17:40:46.000Z | int Solution::longestSubsequenceLength(const vector<int> &A) {
if(A.size()==0)
return 0;
vector<int> incr(A.size(),1);
vector<int> decr(A.size(),1);
for(int i=0;i<incr.size();i++){
for(int j=0;j<i;j++){
if(A[i]>A[j])
incr[i]=max(incr[i],incr[j]+1);
... | 24.92 | 62 | 0.434992 | Cobnagi |
29cb16ddc22d8dc7c457fb0f0b10ae20d384446c | 8,163 | hpp | C++ | external/range-v3/include/range/v3/view/cycle.hpp | VladPodilnyk/kmeans-cpp | bb8843698a034752fe612fa872403a76a34ab82e | [
"MIT"
] | null | null | null | external/range-v3/include/range/v3/view/cycle.hpp | VladPodilnyk/kmeans-cpp | bb8843698a034752fe612fa872403a76a34ab82e | [
"MIT"
] | null | null | null | external/range-v3/include/range/v3/view/cycle.hpp | VladPodilnyk/kmeans-cpp | bb8843698a034752fe612fa872403a76a34ab82e | [
"MIT"
] | null | null | null | /// \file cycle.hpp
// Range v3 library
//
// Copyright Eric Niebler 2013-present
// Copyright Gonzalo Brito Gadeschi 2015
// Copyright Casey Carter 2015
//
// Use, modification and distribution is subject to the
// Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at
// http... | 35.646288 | 95 | 0.487688 | VladPodilnyk |
29cc65444999159d8ed28c864083b15576185b07 | 5,855 | cpp | C++ | Linked List/Pointer Based Concepts/Remove Duplicates From A Sorted Singly LL.cpp | Edith-3000/Algorithmic-Implementations | 7ff8cd615fd453a346b4e851606d47c26f05a084 | [
"MIT"
] | 8 | 2021-02-13T17:07:27.000Z | 2021-08-20T08:20:40.000Z | Linked List/Pointer Based Concepts/Remove Duplicates From A Sorted Singly LL.cpp | Edith-3000/Algorithmic-Implementations | 7ff8cd615fd453a346b4e851606d47c26f05a084 | [
"MIT"
] | null | null | null | Linked List/Pointer Based Concepts/Remove Duplicates From A Sorted Singly LL.cpp | Edith-3000/Algorithmic-Implementations | 7ff8cd615fd453a346b4e851606d47c26f05a084 | [
"MIT"
] | 5 | 2021-02-17T18:12:20.000Z | 2021-10-10T17:49:34.000Z | // Problem: https://www.interviewbit.com/problems/remove-duplicates-from-sorted-list/
/****************************************************************************************************/
// Method 1
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define ull unsigned long long
#define pb push_bac... | 21.061151 | 104 | 0.580359 | Edith-3000 |
29ce2f149b1a02816d24937485ccfdce7ff9fc8a | 753 | cpp | C++ | src/simpledbus/common/Introspectable.cpp | jeremyephron/SimpleDBus | d352886b260beb1775348cc88b146e9362809b3e | [
"MIT"
] | 5 | 2020-07-16T02:53:50.000Z | 2021-09-08T22:25:15.000Z | src/simpledbus/common/Introspectable.cpp | jeremyephron/SimpleDBus | d352886b260beb1775348cc88b146e9362809b3e | [
"MIT"
] | 5 | 2021-01-03T18:07:47.000Z | 2021-02-04T06:37:42.000Z | src/simpledbus/common/Introspectable.cpp | kdewald/SimpleDBus | e8b25b93dce66d172e87ec3c088ed9f1f168bcba | [
"MIT"
] | 3 | 2021-02-03T15:59:19.000Z | 2021-08-31T01:52:05.000Z | #include "Introspectable.h"
#include "../base/Message.h"
#include "../base/Logger.h"
#include <iostream>
using namespace SimpleDBus;
Introspectable::Introspectable(Connection* conn, std::string service, std::string path)
: _conn(conn), _service(service), _path(path), _interface("org.freedesktop.DBus.Introspecta... | 31.375 | 103 | 0.734396 | jeremyephron |
29cf0db7ca46e009c9c56dbd8d042faab324c3d2 | 19,447 | cpp | C++ | mlir/lib/Conversion/VectorToGPU/VectorToGPU.cpp | guitard0g/llvm-project | 283e39c7a0d1bf97a67b77638e9194bd1eb9dae6 | [
"Apache-2.0"
] | 2 | 2021-11-20T04:04:47.000Z | 2022-01-06T07:44:23.000Z | mlir/lib/Conversion/VectorToGPU/VectorToGPU.cpp | Sayyidalijufri/llvm-project | bf95957c99c77987404dea791d6087b222135fce | [
"Apache-2.0"
] | null | null | null | mlir/lib/Conversion/VectorToGPU/VectorToGPU.cpp | Sayyidalijufri/llvm-project | bf95957c99c77987404dea791d6087b222135fce | [
"Apache-2.0"
] | null | null | null | //===- VectorToGPU.cpp - Convert vector to GPU dialect ----------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 41.027426 | 80 | 0.668946 | guitard0g |
29cfb9c987ccdaabb6fb639977d7394a921a5855 | 379 | cpp | C++ | src/main.cpp | ananace/LD43 | 5b52767d09b9fceb60200ef000e83e2a308adb81 | [
"MIT"
] | null | null | null | src/main.cpp | ananace/LD43 | 5b52767d09b9fceb60200ef000e83e2a308adb81 | [
"MIT"
] | null | null | null | src/main.cpp | ananace/LD43 | 5b52767d09b9fceb60200ef000e83e2a308adb81 | [
"MIT"
] | null | null | null | #include "Application.hpp"
#include <iostream>
#include <stdexcept>
int main(int argc, char** argv)
{
Application app;
app.init(argc, argv);
try
{
app.run();
}
catch (const std::runtime_error& ex)
{
std::cerr << "Exception occured during execution;" << std::endl << ex.wha... | 15.791667 | 98 | 0.559367 | ananace |
29d0fd29cf8330546439fea5aa6e383314fcc37f | 3,185 | cpp | C++ | apps/tmp_test/main_3.cpp | LucaCiucci/gnuplotpp | 2ba852602070b8854259cef5463722a4c8eb5cfa | [
"MIT"
] | null | null | null | apps/tmp_test/main_3.cpp | LucaCiucci/gnuplotpp | 2ba852602070b8854259cef5463722a4c8eb5cfa | [
"MIT"
] | 5 | 2021-10-11T08:19:18.000Z | 2021-11-01T00:25:17.000Z | apps/tmp_test/main_3.cpp | LucaCiucci/gnuplotpp | 2ba852602070b8854259cef5463722a4c8eb5cfa | [
"MIT"
] | null | null | null | /* LC_NOTICE_BEGIN
LC_NOTICE_END */
#include <iostream>
#include <stdexcept>
int safe_main_3(int argc, char** argv);
int main(int argc, char** argv)
{
try
{
return safe_main_3(argc, argv);
}
catch (const std::exception& e)
{
std::cerr << "Uncaught Exception thrown from safe_main(): " << e.what() << std::end... | 19.90625 | 107 | 0.620094 | LucaCiucci |
29d1794d58d893c444fd9850da89409a63537b61 | 5,310 | hpp | C++ | include/Firebase/Firestore/Converters/Int16Converter.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/Firebase/Firestore/Converters/Int16Converter.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | null | null | null | include/Firebase/Firestore/Converters/Int16Converter.hpp | v0idp/virtuoso-codegen | 6f560f04822c67f092d438a3f484249072c1d21d | [
"Unlicense"
] | 1 | 2022-03-30T21:07:35.000Z | 2022-03-30T21:07:35.000Z | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: Firebase.Firestore.Converters.Integ... | 61.034483 | 289 | 0.769303 | v0idp |
29d2f4350d4bf0d7789810dd25c7a3724f78cc6c | 474 | cpp | C++ | plugins/mongo_db/mongo_db_types.cpp | VIZ-World/viz-core | 634825fcfff9e392a26789f8e23c4cfab2952b71 | [
"MIT"
] | 7 | 2018-03-21T12:56:32.000Z | 2018-04-02T16:06:24.000Z | plugins/mongo_db/mongo_db_types.cpp | VIZ-World/viz-core | 634825fcfff9e392a26789f8e23c4cfab2952b71 | [
"MIT"
] | 18 | 2018-03-21T13:29:46.000Z | 2018-05-18T10:56:43.000Z | plugins/mongo_db/mongo_db_types.cpp | VIZ-World/VIZ.Core | 634825fcfff9e392a26789f8e23c4cfab2952b71 | [
"MIT"
] | 9 | 2019-02-27T05:19:41.000Z | 2021-07-04T22:48:33.000Z | #include <graphene/plugins/mongo_db/mongo_db_types.hpp>
namespace graphene {
namespace plugins {
namespace mongo_db {
void bmi_insert_or_replace(db_map& bmi, named_document doc) {
auto it = bmi.get<hashed_idx>().find(std::make_tuple(
doc.collection_name,
doc.key, doc.keyval, doc.is... | 27.882353 | 65 | 0.635021 | VIZ-World |
29d40db7b54eee64bdcfc5f4e873d780b27295a1 | 10,686 | cpp | C++ | src/dialogs/CloneDialog.cpp | DeadMozay/gitahead | 6c27dda42d99f794089913bc06977042a040bbf7 | [
"MIT"
] | 2 | 2021-05-22T17:22:25.000Z | 2022-03-27T08:43:35.000Z | src/dialogs/CloneDialog.cpp | DeadMozay/gitahead | 6c27dda42d99f794089913bc06977042a040bbf7 | [
"MIT"
] | 1 | 2019-02-12T14:11:58.000Z | 2019-02-12T14:11:58.000Z | src/dialogs/CloneDialog.cpp | DeadMozay/gitahead | 6c27dda42d99f794089913bc06977042a040bbf7 | [
"MIT"
] | 1 | 2019-09-11T15:45:19.000Z | 2019-09-11T15:45:19.000Z | //
// Copyright (c) 2016, Scientific Toolworks, Inc.
//
// This software is licensed under the MIT License. The LICENSE.md file
// describes the conditions under which this software may be distributed.
//
// Author: Jason Haslam
//
#include "CloneDialog.h"
#include "git/Remote.h"
#include "git/Repository.h"
#... | 28.269841 | 83 | 0.647483 | DeadMozay |
29d42fa77c5f856524ddf94b405f4c92eb36935c | 3,749 | hpp | C++ | SDK/ARKSurvivalEvolved_DinoAttackStateMinionsDragon_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_DinoAttackStateMinionsDragon_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_DinoAttackStateMinionsDragon_classes.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_DinoAttackStateMinionsDragon_structs.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Classes
//--------------------------------------------... | 63.542373 | 215 | 0.595092 | 2bite |
29de80e540f56b6943ee7f75320d9fd4e058e478 | 2,700 | cc | C++ | table/sst_file_reader.cc | shampoo365/terarkdb | a05a42789b310e1a79f6b5bb2f98f78993f9fbb2 | [
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2020-12-24T12:43:24.000Z | 2020-12-24T12:43:24.000Z | table/sst_file_reader.cc | shampoo365/terarkdb | a05a42789b310e1a79f6b5bb2f98f78993f9fbb2 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | table/sst_file_reader.cc | shampoo365/terarkdb | a05a42789b310e1a79f6b5bb2f98f78993f9fbb2 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
#ifndef ROCKSDB_LITE
#include "rocksdb/sst_file_reader.h... | 31.395349 | 80 | 0.683704 | shampoo365 |
29dfe07c148de811c2c034f451b25d8bb3f98c37 | 1,356 | cpp | C++ | sort/quick_sort_optimized.cpp | xiangp126/my-algo | 300e825b9e5048e7949ee5d9e16e4cc89939a34c | [
"MIT"
] | 3 | 2018-03-16T02:06:04.000Z | 2018-05-09T13:57:24.000Z | sort/quick_sort_optimized.cpp | xiangp126/my-algo | 300e825b9e5048e7949ee5d9e16e4cc89939a34c | [
"MIT"
] | 5 | 2018-06-11T11:44:41.000Z | 2018-06-14T01:48:10.000Z | sort/quick_sort_optimized.cpp | xiangp126/my-algo | 300e825b9e5048e7949ee5d9e16e4cc89939a34c | [
"MIT"
] | 1 | 2018-06-08T05:45:43.000Z | 2018-06-08T05:45:43.000Z | #include <utility>
#include "common.h"
#include "sort.h"
using std::pair;
using std::make_pair;
static void qSort(vector<int> &, int, int);
static pair<int, int> partition(vector<int> &, int, int);
void quickSortOptimized(vector<int> &nums) {
int N = nums.size();
qSort(nums, 0, N - 1);
}
void qSort(vector<i... | 27.12 | 66 | 0.533923 | xiangp126 |
29e2304ea458311ab025302cdc8ac34e0925d00f | 6,029 | hpp | C++ | bftengine/src/preprocessor/RequestProcessingState.hpp | yontyon/concord-bft | ea58d4bbaed646471c2d4f21e1dd06a9a4c19611 | [
"Apache-2.0"
] | 1 | 2021-08-15T06:43:47.000Z | 2021-08-15T06:43:47.000Z | bftengine/src/preprocessor/RequestProcessingState.hpp | yontyon/concord-bft | ea58d4bbaed646471c2d4f21e1dd06a9a4c19611 | [
"Apache-2.0"
] | 2 | 2018-10-22T06:53:43.000Z | 2018-10-23T15:12:31.000Z | bftengine/src/preprocessor/RequestProcessingState.hpp | yontyon/concord-bft | ea58d4bbaed646471c2d4f21e1dd06a9a4c19611 | [
"Apache-2.0"
] | 1 | 2022-02-21T12:49:18.000Z | 2022-02-21T12:49:18.000Z | // Concord
//
// Copyright (c) 2020-2021 VMware, Inc. All Rights Reserved.
//
// This product is licensed to you under the Apache 2.0 license (the "License"). You may not use this product except in
// compliance with the Apache 2.0 License.
//
// This product may include a number of subcomponents with separate copyrigh... | 47.101563 | 120 | 0.752529 | yontyon |
29e7905e33b68ab5c762481a7a388178fd6ab29e | 5,452 | hpp | C++ | src/TerrainTile.hpp | a4chet/cesium-terrain-builder | ef70212c05d301fa7ad0a497a06765eaec663572 | [
"Apache-2.0"
] | null | null | null | src/TerrainTile.hpp | a4chet/cesium-terrain-builder | ef70212c05d301fa7ad0a497a06765eaec663572 | [
"Apache-2.0"
] | null | null | null | src/TerrainTile.hpp | a4chet/cesium-terrain-builder | ef70212c05d301fa7ad0a497a06765eaec663572 | [
"Apache-2.0"
] | null | null | null | #ifndef TERRAINTILE_HPP
#define TERRAINTILE_HPP
/*******************************************************************************
* Copyright 2014 GeoData <geodata@soton.ac.uk>
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You... | 25.476636 | 89 | 0.672047 | a4chet |
29ea8328d3fdb6bf9d5c90c58d42557d555383c9 | 2,022 | cpp | C++ | examples/framebuffer.cpp | ataryq/smk | 66dae81cc39e1abeb8d8acbcef7521bd4c954cc0 | [
"MIT"
] | 69 | 2019-08-08T22:17:59.000Z | 2022-03-30T19:11:16.000Z | examples/framebuffer.cpp | ataryq/smk | 66dae81cc39e1abeb8d8acbcef7521bd4c954cc0 | [
"MIT"
] | 7 | 2020-02-11T02:58:20.000Z | 2021-06-06T18:16:37.000Z | examples/framebuffer.cpp | ataryq/smk | 66dae81cc39e1abeb8d8acbcef7521bd4c954cc0 | [
"MIT"
] | 11 | 2020-08-09T14:49:59.000Z | 2022-03-12T16:55:49.000Z | #include <smk/BlendMode.hpp>
#include <smk/Color.hpp>
#include <smk/Framebuffer.hpp>
#include <smk/Input.hpp>
#include <smk/Shape.hpp>
#include <smk/Sprite.hpp>
#include <smk/Window.hpp>
int main() {
int dim = 512;
int center = dim / 2;
auto window = smk::Window(dim, dim, "Framebufer example");
// Two framebu... | 30.179104 | 80 | 0.610287 | ataryq |
29eeef0f7247a508932517db9248b5f6ba6b80fb | 42,122 | cpp | C++ | 3_solver_heuristicas/ExecutadorDeMetaheuristicas.cpp | joaoweissmann/synthetic_instance_generator | 4eed082d97c81a13b9c7b4d4ec83b209cd2fe134 | [
"Apache-2.0"
] | null | null | null | 3_solver_heuristicas/ExecutadorDeMetaheuristicas.cpp | joaoweissmann/synthetic_instance_generator | 4eed082d97c81a13b9c7b4d4ec83b209cd2fe134 | [
"Apache-2.0"
] | null | null | null | 3_solver_heuristicas/ExecutadorDeMetaheuristicas.cpp | joaoweissmann/synthetic_instance_generator | 4eed082d97c81a13b9c7b4d4ec83b209cd2fe134 | [
"Apache-2.0"
] | null | null | null | // Copyright 2021 João Ricardo Weissmann Santos
//
// 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 ... | 40.895146 | 267 | 0.5542 | joaoweissmann |
29ef5be757609a091ef9810a2fcbc56647a40d82 | 12,336 | cpp | C++ | src/ViewTask.cpp | 8-bit-fox/taskwarrior | ccb222a31be049fe6e3ef28fe660a1eaca351a95 | [
"MIT"
] | null | null | null | src/ViewTask.cpp | 8-bit-fox/taskwarrior | ccb222a31be049fe6e3ef28fe660a1eaca351a95 | [
"MIT"
] | null | null | null | src/ViewTask.cpp | 8-bit-fox/taskwarrior | ccb222a31be049fe6e3ef28fe660a1eaca351a95 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
//
// Copyright 2006 - 2020, Paul Beckingham, Federico Hernandez.
//
// 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... | 31.309645 | 165 | 0.568742 | 8-bit-fox |
29f0c1430e78d71094dac153a029d154f4636694 | 2,346 | cpp | C++ | Codeforces/1~999/528/D.cpp | tiger0132/code-backup | 9cb4ee5e99bf3c274e34f1e59d398ab52e51ecf7 | [
"MIT"
] | 6 | 2018-12-30T06:16:54.000Z | 2022-03-23T08:03:33.000Z | Codeforces/1~999/528/D.cpp | tiger0132/code-backup | 9cb4ee5e99bf3c274e34f1e59d398ab52e51ecf7 | [
"MIT"
] | null | null | null | Codeforces/1~999/528/D.cpp | tiger0132/code-backup | 9cb4ee5e99bf3c274e34f1e59d398ab52e51ecf7 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <vector>
typedef unsigned long long L;
const int N = 1e6 + 61, P = 998244353, G = 114514;
int pw(int x, int y) {
int r = 1;
for (; y; y >>= 1, x = (L)x * x % P)
if (y & 1) r = (L)r * x % P;
return r;
}
struct poly {
std::vector<int> v;
poly() ... | 25.78022 | 63 | 0.43734 | tiger0132 |
29f1b7b31532c9400dcf87453248b878c332fc12 | 1,873 | cpp | C++ | ShowDatabaseView.cpp | zswdjh/A_Functional_Database_Application | 79583984aac3b8dfd007633ac0a1f39f7e2cb573 | [
"MIT"
] | null | null | null | ShowDatabaseView.cpp | zswdjh/A_Functional_Database_Application | 79583984aac3b8dfd007633ac0a1f39f7e2cb573 | [
"MIT"
] | null | null | null | ShowDatabaseView.cpp | zswdjh/A_Functional_Database_Application | 79583984aac3b8dfd007633ac0a1f39f7e2cb573 | [
"MIT"
] | null | null | null | //
// ShowDatabaseView.cpp
// database
//
// Created by Vladi Iotov on 5/14/18.
// Copyright © 2018 vladi. All rights reserved.
//
#include "ShowDatabaseView.hpp"
namespace SF {
//basic callback function...can be made more thorough easily...
void ShowDatabaseView::printFileName(std::string& aFileName... | 30.209677 | 113 | 0.557928 | zswdjh |
29f550705b420d632e531ca65b32d5a2e07d034b | 11,955 | cc | C++ | src/openvslam/match/stereo.cc | Patrixe/openvslam | 8ec940dc4498e25bebd541939b8c25801f789f6f | [
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] | 1 | 2021-03-11T10:12:31.000Z | 2021-03-11T10:12:31.000Z | src/openvslam/match/stereo.cc | Patrixe/openvslam | 8ec940dc4498e25bebd541939b8c25801f789f6f | [
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] | null | null | null | src/openvslam/match/stereo.cc | Patrixe/openvslam | 8ec940dc4498e25bebd541939b8c25801f789f6f | [
"Apache-2.0",
"BSD-2-Clause",
"MIT"
] | 1 | 2021-03-10T09:05:47.000Z | 2021-03-10T09:05:47.000Z | #include "openvslam/match/stereo.h"
#include "openvslam/data/keypoint.h"
namespace openvslam {
namespace match {
stereo::stereo(const std::vector<cv::Mat>& left_image_pyramid, const std::vector<cv::Mat>& right_image_pyramid,
data::keypoint_container &keypts_left, data::keypoint_container &keypts_right,... | 42.09507 | 163 | 0.643831 | Patrixe |
29f9aaa74cfa827916c07a07ab261333311fc897 | 4,130 | cpp | C++ | src/cpp/transport/serial/SerialAgentLinux.cpp | vibnwis/Micro-XRCE-DDS-Agent | 57ff677855b75d79657b7c20110241e6c1eec351 | [
"Apache-2.0"
] | null | null | null | src/cpp/transport/serial/SerialAgentLinux.cpp | vibnwis/Micro-XRCE-DDS-Agent | 57ff677855b75d79657b7c20110241e6c1eec351 | [
"Apache-2.0"
] | null | null | null | src/cpp/transport/serial/SerialAgentLinux.cpp | vibnwis/Micro-XRCE-DDS-Agent | 57ff677855b75d79657b7c20110241e6c1eec351 | [
"Apache-2.0"
] | null | null | null | // Copyright 2018 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// 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 re... | 29.71223 | 143 | 0.623971 | vibnwis |
29f9d8e0cdf442696acf8a8a2c0a153c1487624d | 434 | cpp | C++ | P1226.cpp | AndrewWayne/OI_Learning | 0fe8580066704c8d120a131f6186fd7985924dd4 | [
"MIT"
] | null | null | null | P1226.cpp | AndrewWayne/OI_Learning | 0fe8580066704c8d120a131f6186fd7985924dd4 | [
"MIT"
] | null | null | null | P1226.cpp | AndrewWayne/OI_Learning | 0fe8580066704c8d120a131f6186fd7985924dd4 | [
"MIT"
] | null | null | null | #include <cstdio>
#include <iostream>
#include <string.h>
using namespace std;
int main(){
long int b,b1,p,p1,k,s=1;
scanf("%ld%ld%ld",&b,&p,&k);
b1=b;
p1=p;
b=b%k;
if(p==0){
s=1%k;
printf("%ld^%ld mod %ld=%ld",b1,p1,k,s);
return 0;
}
while(p>0){
if(p%2==... | 17.36 | 48 | 0.449309 | AndrewWayne |
29fa0ff9970a98bcb95ec0d3a35485da1cca229c | 9,730 | cc | C++ | test/test_marshalling.cc | planthaber/typelib | 75b22b66c04d66f918461c47bd866f5f7f985a90 | [
"CECILL-B"
] | null | null | null | test/test_marshalling.cc | planthaber/typelib | 75b22b66c04d66f918461c47bd866f5f7f985a90 | [
"CECILL-B"
] | null | null | null | test/test_marshalling.cc | planthaber/typelib | 75b22b66c04d66f918461c47bd866f5f7f985a90 | [
"CECILL-B"
] | null | null | null | #include <boost/test/auto_unit_test.hpp>
#include <test/testsuite.hh>
#include <typelib/utilmm/configset.hh>
#include <typelib/pluginmanager.hh>
#include <typelib/importer.hh>
#include <typelib/typemodel.hh>
#include <typelib/registry.hh>
#include <typelib/value.hh>
#include <typelib/value_ops.hh>
#include <test/test... | 38.156863 | 125 | 0.601747 | planthaber |
29fb45ae3bec81fbbd45de192347835aa2590423 | 2,429 | cpp | C++ | fileaccessor.cpp | negasora/binaryninja-api | d26bfd9298d8696be1f52f2b2a4de3403c3871b5 | [
"MIT"
] | null | null | null | fileaccessor.cpp | negasora/binaryninja-api | d26bfd9298d8696be1f52f2b2a4de3403c3871b5 | [
"MIT"
] | null | null | null | fileaccessor.cpp | negasora/binaryninja-api | d26bfd9298d8696be1f52f2b2a4de3403c3871b5 | [
"MIT"
] | null | null | null | // Copyright (c) 2015-2017 Vector 35 LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// rights to use, copy, modify, merge, pub... | 28.916667 | 92 | 0.765336 | negasora |
4b008be4fd16bfa8d9db0eef557cbf38c9023e00 | 481 | hpp | C++ | zxengine-core/include/scene/coms_vector.hpp | joeccane/ZxEngine | 2df880ab7681022d58cd7d955dcffad65d53dab2 | [
"MIT"
] | null | null | null | zxengine-core/include/scene/coms_vector.hpp | joeccane/ZxEngine | 2df880ab7681022d58cd7d955dcffad65d53dab2 | [
"MIT"
] | 3 | 2020-08-08T18:15:20.000Z | 2020-08-21T01:11:59.000Z | zxengine-core/include/scene/coms_vector.hpp | joeccane/zxengine | 2df880ab7681022d58cd7d955dcffad65d53dab2 | [
"MIT"
] | null | null | null | #pragma once
#include "core.hpp"
#include <memory_resource>
namespace zx
{
using coms_list_memory_resource = std::pmr::synchronized_pool_resource;
template<component_type T>
using coms_vector = zx::vector<T>;
struct coms_vector_resource
{
inline static coms_list_memory_resource resource = coms_list_memory_reso... | 22.904762 | 114 | 0.758836 | joeccane |
4b020cae6478e18f355339c56d4de5aeda83ff05 | 14,296 | cpp | C++ | src/nsc/Patch.cpp | suzukiplan/nsdlib | ae1d840adadbad3b55c205d661e4d80586eb73df | [
"Unlicense"
] | null | null | null | src/nsc/Patch.cpp | suzukiplan/nsdlib | ae1d840adadbad3b55c205d661e4d80586eb73df | [
"Unlicense"
] | null | null | null | src/nsc/Patch.cpp | suzukiplan/nsdlib | ae1d840adadbad3b55c205d661e4d80586eb73df | [
"Unlicense"
] | null | null | null | /*******************************************************************************
NES Sound Driver & Library (NSD.lib) MML Compiler
Copyright (c) 2012 A.Watanabe (S.W.), All rights reserved.
For conditions of distribution and use, see copyright notice in "nsc.cpp".
***************************************... | 21.53012 | 81 | 0.452084 | suzukiplan |
4b0238ed4664c068e9acc6eee999e9c2d4cc3d12 | 48 | hpp | C++ | src/boost_type_traits_remove_pointer.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_type_traits_remove_pointer.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_type_traits_remove_pointer.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/type_traits/remove_pointer.hpp>
| 24 | 47 | 0.833333 | miathedev |
4b039e26368685770670a55357fb641e032cb230 | 1,488 | cpp | C++ | src/Evolution/Systems/NewtonianEuler/Characteristics.cpp | marissawalker/spectre | afc8205e2f697de5e8e4f05e881499e05c9fd8a0 | [
"MIT"
] | null | null | null | src/Evolution/Systems/NewtonianEuler/Characteristics.cpp | marissawalker/spectre | afc8205e2f697de5e8e4f05e881499e05c9fd8a0 | [
"MIT"
] | null | null | null | src/Evolution/Systems/NewtonianEuler/Characteristics.cpp | marissawalker/spectre | afc8205e2f697de5e8e4f05e881499e05c9fd8a0 | [
"MIT"
] | null | null | null | // Distributed under the MIT License.
// See LICENSE.txt for details.
#include "Evolution/Systems/NewtonianEuler/Characteristics.hpp"
#include "DataStructures/DataVector.hpp"
#include "DataStructures/Tensor/EagerMath/DotProduct.hpp"
#include "DataStructures/Tensor/Tensor.hpp"
#include "Utilities/GenerateInstantiation... | 31 | 74 | 0.728495 | marissawalker |
4b03d259476887e50fcbfdadfd166a66e6991bf1 | 389 | cpp | C++ | ieee_sep/SubscriptionBase.cpp | Tylores/ieee_sep | 1928bed8076f4bfe702d34e436c6a85f197b0832 | [
"BSD-2-Clause"
] | null | null | null | ieee_sep/SubscriptionBase.cpp | Tylores/ieee_sep | 1928bed8076f4bfe702d34e436c6a85f197b0832 | [
"BSD-2-Clause"
] | null | null | null | ieee_sep/SubscriptionBase.cpp | Tylores/ieee_sep | 1928bed8076f4bfe702d34e436c6a85f197b0832 | [
"BSD-2-Clause"
] | null | null | null | ///////////////////////////////////////////////////////////
// SubscriptionBase.cpp
// Implementation of the Class SubscriptionBase
// Created on: 13-Apr-2020 2:51:43 PM
// Original author: svanausdall
///////////////////////////////////////////////////////////
#include "SubscriptionBase.h"
SubscriptionBase... | 20.473684 | 59 | 0.506427 | Tylores |
4b0893fec3b111d8471368806bc672a62439a849 | 1,507 | cpp | C++ | codes/CF/1520/hackE.cpp | chessbot108/solved-problems | 0945be829a8ea9f0d5896c89331460d70d076691 | [
"MIT"
] | 2 | 2021-03-07T03:34:02.000Z | 2021-03-09T01:22:21.000Z | codes/CF/1520/hackE.cpp | chessbot108/solved-problems | 0945be829a8ea9f0d5896c89331460d70d076691 | [
"MIT"
] | 1 | 2021-03-27T15:01:23.000Z | 2021-03-27T15:55:34.000Z | codes/CF/1520/hackE.cpp | chessbot108/solved-problems | 0945be829a8ea9f0d5896c89331460d70d076691 | [
"MIT"
] | 1 | 2021-03-27T05:02:33.000Z | 2021-03-27T05:02:33.000Z | //here take a cat
#include <iostream>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <string>
#include <utility>
#include <cmath>
#include <cassert>
#include <algorithm>
#include <vector>
#include <random>
#include <chrono>
#include <queue>
#include <set>
#define ll long long
#define lb long double
#... | 22.161765 | 66 | 0.637691 | chessbot108 |
4b09f9ca6644870541cb0b44c03ee36ccec68e0d | 1,297 | cpp | C++ | typical_dp/g.cpp | KoukiNAGATA/c- | ae51bacb9facb936a151dd777beb6688383a2dcd | [
"MIT"
] | null | null | null | typical_dp/g.cpp | KoukiNAGATA/c- | ae51bacb9facb936a151dd777beb6688383a2dcd | [
"MIT"
] | 3 | 2021-03-31T01:39:25.000Z | 2021-05-04T10:02:35.000Z | typical_dp/g.cpp | KoukiNAGATA/c- | ae51bacb9facb936a151dd777beb6688383a2dcd | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPR(i, n) for (int i = n - 1; i >= 0; i--)
#define FOR(i, m, n) for (int i = m; i <= n; i++)
#define FORR(i, m, n) for (int i = m; i >= n; i--)
#define SORT(v, n) sort(v, v + n)
#define MAX 100000
#define inf 1000000007
using namespace std;... | 17.293333 | 51 | 0.48882 | KoukiNAGATA |
4b0ac826a362ab101f56aac402e50d26c0d684e8 | 2,143 | cpp | C++ | codechef_DSA/fencing.cpp | archit-1997/codechef | 713051daa25b436fa63a0a7ac7fd769ac8a091ef | [
"MIT"
] | 1 | 2021-01-27T16:37:34.000Z | 2021-01-27T16:37:34.000Z | codechef_DSA/fencing.cpp | archit-1997/codechef | 713051daa25b436fa63a0a7ac7fd769ac8a091ef | [
"MIT"
] | null | null | null | codechef_DSA/fencing.cpp | archit-1997/codechef | 713051daa25b436fa63a0a7ac7fd769ac8a091ef | [
"MIT"
] | null | null | null | // Archit Singh
// architsingh456@gmail.com
// GitHub : archit-1997
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define ld long double
#define line cout << "-------------" << endl;
#define F first
#define S second
#define P pair<ll, ll>
#define PP pair<pair<ll, ll>, ll>
#defin... | 23.293478 | 81 | 0.451237 | archit-1997 |
4b0ca02159d3e50667033e6b4ab4d78756c1339c | 8,188 | cpp | C++ | library/text/test/src/test_tetengo.text.grapheme_splitting.grapheme_segment.cpp | tetengo/tetengo | 66e0d03635583c25be4320171f3cc1e7f40a56e6 | [
"MIT"
] | null | null | null | library/text/test/src/test_tetengo.text.grapheme_splitting.grapheme_segment.cpp | tetengo/tetengo | 66e0d03635583c25be4320171f3cc1e7f40a56e6 | [
"MIT"
] | 41 | 2021-06-25T14:20:29.000Z | 2022-01-16T02:50:50.000Z | library/text/test/src/test_tetengo.text.grapheme_splitting.grapheme_segment.cpp | tetengo/tetengo | 66e0d03635583c25be4320171f3cc1e7f40a56e6 | [
"MIT"
] | null | null | null | /*! \file
\brief A grapheme segment.
Copyright (C) 2019-2022 kaoru https://www.tetengo.org/
*/
#include <algorithm>
#include <cstddef>
#include <iterator>
#include <utility>
#include <vector>
#include <boost/preprocessor.hpp>
#include <boost/test/unit_test.hpp>
#include <tetengo/text/graphem... | 42.86911 | 120 | 0.596971 | tetengo |
4b10cf02b0be6a803eb200ba5d6a6b4428523b14 | 5,180 | cpp | C++ | ReactAndroid/third-party-ndk/boost/boost_1_66_0/libs/mp11/test/construct_from_tuple.cpp | yinhangfeng/react-native | 35e88f14195aa7a75ace8881956a0eb4bdadea62 | [
"CC-BY-4.0",
"BSD-3-Clause"
] | null | null | null | ReactAndroid/third-party-ndk/boost/boost_1_66_0/libs/mp11/test/construct_from_tuple.cpp | yinhangfeng/react-native | 35e88f14195aa7a75ace8881956a0eb4bdadea62 | [
"CC-BY-4.0",
"BSD-3-Clause"
] | null | null | null | ReactAndroid/third-party-ndk/boost/boost_1_66_0/libs/mp11/test/construct_from_tuple.cpp | yinhangfeng/react-native | 35e88f14195aa7a75ace8881956a0eb4bdadea62 | [
"CC-BY-4.0",
"BSD-3-Clause"
] | 1 | 2019-03-08T11:06:22.000Z | 2019-03-08T11:06:22.000Z |
// Copyright 2015, 2017 Peter Dimov.
//
// 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 <boost/mp11/tuple.hpp>
#include <boost/core/lightweight_test.hpp>
#include <boost/config.hpp>
#incl... | 23.545455 | 193 | 0.453089 | yinhangfeng |
4b12cca2affd15b93f76f3db4203ad337d6331c2 | 217 | cpp | C++ | input/Controller.cpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 26 | 2015-04-22T05:25:25.000Z | 2020-11-15T11:07:56.000Z | input/Controller.cpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 2 | 2015-01-05T10:41:27.000Z | 2015-01-06T20:46:11.000Z | input/Controller.cpp | quyse/inanity | a39225c5a41f879abe5aa492bb22b500dbe77433 | [
"MIT"
] | 5 | 2016-08-02T11:13:57.000Z | 2018-10-26T11:19:27.000Z | #include "Controller.hpp"
BEGIN_INANITY_INPUT
Controller::Controller(uint64_t controllerId)
: controllerId(controllerId) {}
uint64_t Controller::GetControllerId() const
{
return controllerId;
}
END_INANITY_INPUT
| 15.5 | 45 | 0.81106 | quyse |
4b152456aed6adcf04af6becee2f0028c6991df7 | 1,640 | hpp | C++ | src/common/utils/if.hpp | jarrielcook/openair-cn-cups | e3bd21569576ce240daf4d16ed8c243224b4bafb | [
"Apache-2.0"
] | 2 | 2020-06-29T07:35:43.000Z | 2021-08-14T19:49:26.000Z | src/common/utils/if.hpp | jarrielcook/openair-cn-cups | e3bd21569576ce240daf4d16ed8c243224b4bafb | [
"Apache-2.0"
] | 13 | 2020-06-09T22:12:13.000Z | 2021-05-29T13:43:31.000Z | src/common/utils/if.hpp | jarrielcook/openair-cn-cups | e3bd21569576ce240daf4d16ed8c243224b4bafb | [
"Apache-2.0"
] | 2 | 2020-06-09T21:03:53.000Z | 2021-08-17T03:27:53.000Z | /*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the Apache License... | 43.157895 | 139 | 0.727439 | jarrielcook |
4b15898d306c2382dbe5badb6584a1f496e2bffc | 166 | cpp | C++ | game_from_scratch/game_from_scratch/main.cpp | Robertk92/GameFromScratch | aa38a443636adbaf771514b1a3a868503feac87e | [
"MIT"
] | null | null | null | game_from_scratch/game_from_scratch/main.cpp | Robertk92/GameFromScratch | aa38a443636adbaf771514b1a3a868503feac87e | [
"MIT"
] | null | null | null | game_from_scratch/game_from_scratch/main.cpp | Robertk92/GameFromScratch | aa38a443636adbaf771514b1a3a868503feac87e | [
"MIT"
] | null | null | null | #pragma comment(lib, "blitwave.lib")
#include <blitwave/engine.h>
#include <game/core/game.h>
int main(int argc, char** argv) {
engine()->run<Game>();
return 0;
} | 18.444444 | 36 | 0.668675 | Robertk92 |
4b16aaccc83cbe1c514d584484bb9cb33dc8c3c1 | 1,443 | cpp | C++ | Game/main.cpp | gamepopper/Tunnel-Bug | 6327a1737421f2c81f8cf3e11fc393d1ef94cbaa | [
"MIT"
] | null | null | null | Game/main.cpp | gamepopper/Tunnel-Bug | 6327a1737421f2c81f8cf3e11fc393d1ef94cbaa | [
"MIT"
] | null | null | null | Game/main.cpp | gamepopper/Tunnel-Bug | 6327a1737421f2c81f8cf3e11fc393d1ef94cbaa | [
"MIT"
] | null | null | null | #include <VFrame/VGame.h>
#include <memory>
#include "TitleState.h"
#include "VFrame/VGlobal.h"
/**
Theme: Your Life Is Currency
Navigate a ship through a winding RNG path, touching the walls loses health.
Health can be regained by collecting orbs.
Health can be spent to make the future paths easier.
T... | 32.066667 | 107 | 0.729037 | gamepopper |
4b1a02fe63568a5bd279158a7c2693eb99cd9232 | 4,935 | cpp | C++ | src/model/model.cpp | Gotatang/DadEngine_2.0 | 1e97e86996571c8ba1efec72b0f0e914d86533d3 | [
"MIT"
] | 2 | 2018-03-12T13:59:13.000Z | 2018-11-27T20:13:57.000Z | src/model/model.cpp | Gotatang/DadEngine_2.0 | 1e97e86996571c8ba1efec72b0f0e914d86533d3 | [
"MIT"
] | 5 | 2018-12-22T10:43:28.000Z | 2019-01-17T22:02:16.000Z | src/model/model.cpp | ladevieq/dadengine | 1e97e86996571c8ba1efec72b0f0e914d86533d3 | [
"MIT"
] | null | null | null | #include "model.hpp"
namespace DadEngine
{
VertexBuffer::VertexBuffer(std::vector<Vertex> &&_vertices)
: vertices(_vertices)
{
#if defined(OPENGL)
glGenVertexArrays(1, &vertexArrayID);
glBindVertexArray(vertexArrayID);
glGenBuffers(1, &vertexBufferID);
glBindBuffer(GL_A... | 32.9 | 122 | 0.639716 | Gotatang |
4b1cfa1f656693d993b4622819397413870d570b | 77,199 | cpp | C++ | td/telegram/files/FileManager.cpp | takpare/-T | 6c706f45e7a73c936b9f2f267785092c8a73348f | [
"BSL-1.0"
] | null | null | null | td/telegram/files/FileManager.cpp | takpare/-T | 6c706f45e7a73c936b9f2f267785092c8a73348f | [
"BSL-1.0"
] | null | null | null | td/telegram/files/FileManager.cpp | takpare/-T | 6c706f45e7a73c936b9f2f267785092c8a73348f | [
"BSL-1.0"
] | null | null | null | //
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2018
//
// 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 "td/telegram/files/FileManager.h"
#include "td/tele... | 33.726081 | 120 | 0.67063 | takpare |
4b2311d4fe27db8d3017f248e1344b022bf710ad | 37,034 | cpp | C++ | Unity/build/iOS-Simulator/Classes/Native/Bulk_UnityEngine.InputModule_0.cpp | AnnaOpareva/Unity-iOS | dba005999d63e387167a36fe1feafd0b900626a8 | [
"MIT"
] | 31 | 2019-01-15T16:32:02.000Z | 2021-12-21T21:59:57.000Z | Unity/build/iOS-Simulator/Classes/Native/Bulk_UnityEngine.InputModule_0.cpp | AnnaOpareva/Unity-iOS | dba005999d63e387167a36fe1feafd0b900626a8 | [
"MIT"
] | 5 | 2019-05-16T05:36:44.000Z | 2022-03-18T10:12:53.000Z | Unity/build/iOS-Simulator/Classes/Native/Bulk_UnityEngine.InputModule_0.cpp | AnnaOpareva/Unity-iOS | dba005999d63e387167a36fe1feafd0b900626a8 | [
"MIT"
] | 3 | 2019-05-25T02:30:43.000Z | 2021-10-12T10:56:57.000Z | #import <TargetConditionals.h> // Modified by PostBuild.cs
#if TARGET_OS_SIMULATOR // Modified by PostBuild.cs
#include "il2cpp-config.h"
#ifndef _MSC_VER
# include <alloca.h>
#else
# include <malloc.h>
#endif
#include <cstring>
#include <string.h>
#include <stdio.h>
#include <cmath>
#include <limits>
#include <asse... | 39.106653 | 290 | 0.840498 | AnnaOpareva |
4b237561a0f86dac212646b03b2139993c6df021 | 8,266 | cpp | C++ | Source/common/P4Image.cpp | vtslothy/P4Win | 7aac7763d984db66d31de06ff7686c309851884c | [
"BSD-2-Clause"
] | 10 | 2018-08-03T12:15:43.000Z | 2021-06-03T18:31:04.000Z | Source/common/P4Image.cpp | danieljennings/P4Win | 95fb3766159076555eec861098f205691b3cb86c | [
"BSD-2-Clause"
] | 10 | 2018-07-31T21:35:10.000Z | 2019-07-08T02:06:32.000Z | Source/common/P4Image.cpp | danieljennings/P4Win | 95fb3766159076555eec861098f205691b3cb86c | [
"BSD-2-Clause"
] | 3 | 2019-05-10T20:13:46.000Z | 2021-03-03T05:03:40.000Z | #include "stdafx.h"
#include "P4Image.h"
///////////////////////////////////////////////////////////////////////////
// CP4Image16 - support for 16 color images
bool CP4Image16::Load(int nId)
{
if(!m_bmp.LoadBitmap(nId))
return false;
m_bmp.GetBitmap(&m_bm);
m_w = m_bm.bmWidth;
m_h = m_bm.bmHeight;
return true... | 26.324841 | 79 | 0.628115 | vtslothy |
4b24cdb361e9222ca97228a7ea2d20d5f252319b | 1,892 | cpp | C++ | benchmark/parallel_read.cpp | OpenSSE/insecure-index | 14be5afa278543a938edd9dac49c86b99dd5eab7 | [
"MIT"
] | 1 | 2021-09-01T02:22:29.000Z | 2021-09-01T02:22:29.000Z | benchmark/parallel_read.cpp | OpenSSE/insecure-index | 14be5afa278543a938edd9dac49c86b99dd5eab7 | [
"MIT"
] | null | null | null | benchmark/parallel_read.cpp | OpenSSE/insecure-index | 14be5afa278543a938edd9dac49c86b99dd5eab7 | [
"MIT"
] | 1 | 2019-11-15T00:50:18.000Z | 2019-11-15T00:50:18.000Z | #include "file_benchmark.hpp"
#include "logger.hpp"
#include <omp.h>
#include <iomanip>
#include <iostream>
void run_benchmark(const std::string filename,
const size_t file_size,
const bool direct_access,
const size_t read_size,
... | 26.277778 | 80 | 0.588795 | OpenSSE |
4b25015fea88c58b1af2f516c91321d895b4cf1b | 263 | cpp | C++ | PATTERN/Pattern_4/Solution.cpp | UndefeatedSunny/C-Interview-Problems | 5eb4d3c52cb7ffe4bc97380d13f62e23bc7d1e2f | [
"MIT"
] | 4 | 2020-02-25T19:02:46.000Z | 2021-04-17T09:13:51.000Z | PATTERN/Pattern_4/Solution.cpp | UndefeatedSunny/C-Interview-Problems | 5eb4d3c52cb7ffe4bc97380d13f62e23bc7d1e2f | [
"MIT"
] | null | null | null | PATTERN/Pattern_4/Solution.cpp | UndefeatedSunny/C-Interview-Problems | 5eb4d3c52cb7ffe4bc97380d13f62e23bc7d1e2f | [
"MIT"
] | 2 | 2021-01-08T07:25:35.000Z | 2021-04-17T09:14:57.000Z | #include <bits/stdc++.h>
using namespace std;
int main()
{
for(int i=0;i<5;i++)
{
for(int j=0;j<5;j++)
{
if(i<=j)
{
cout<<"* ";
}
}
cout<<endl;
}
return 0;
}
| 13.842105 | 28 | 0.323194 | UndefeatedSunny |
4b273d711d50b47876c08583b21c69ebd5e085d9 | 2,718 | cpp | C++ | rh-/rh-/Input.cpp | ShiroixD/Rh- | 33db74b21bb9a7255d72b14afd6746f142c1784b | [
"Apache-2.0"
] | null | null | null | rh-/rh-/Input.cpp | ShiroixD/Rh- | 33db74b21bb9a7255d72b14afd6746f142c1784b | [
"Apache-2.0"
] | null | null | null | rh-/rh-/Input.cpp | ShiroixD/Rh- | 33db74b21bb9a7255d72b14afd6746f142c1784b | [
"Apache-2.0"
] | null | null | null | #include "pch.h"
#include "Input.h"
unique_ptr<Keyboard> Input::_keyboard(new Keyboard());
unique_ptr<Mouse> Input::_mouse(new Mouse());
map<availableKeys, actionList> Input::AvailableKeysActionsBinding = {};
Keyboard::State Input::GetKeyboardState()
{
return _keyboard->GetState();
}
Mouse::State Input::GetMouseSta... | 19.985294 | 101 | 0.720751 | ShiroixD |
4b2ba4687ccbb2a11ba57d349a4536daf4dcc67f | 551 | hh | C++ | inc/Cuboid.hh | KPO-2020-2021/zad5_3-AdamDomachowski | 1d3e1af48e948989937a9cdb206198b7de32f428 | [
"Unlicense"
] | null | null | null | inc/Cuboid.hh | KPO-2020-2021/zad5_3-AdamDomachowski | 1d3e1af48e948989937a9cdb206198b7de32f428 | [
"Unlicense"
] | null | null | null | inc/Cuboid.hh | KPO-2020-2021/zad5_3-AdamDomachowski | 1d3e1af48e948989937a9cdb206198b7de32f428 | [
"Unlicense"
] | null | null | null | #pragma once
#include "Solid.hh"
/*! \brief klasa Cuboid jest klasa pochodna i dziedziczy wzystko z klasy Solid */
class Cuboid : public Solid
{
public:
/*! \brief konstruktor parametryczny*/
Cuboid(Vector3D srodek=Vector3D(), double a=50, double b=50, double c=100, std::string nazwa_pliku_prostopadloscianu = "../d... | 29 | 142 | 0.76225 | KPO-2020-2021 |
4b2d1ef27952afa05ae2c6debb2a7b259c2c8536 | 11,810 | cpp | C++ | src/vizdoom/src/viz_input.cpp | monaj07/Vizdoom | 3537793ced50273cdd9e513155ce9ef3bacca67b | [
"MIT"
] | null | null | null | src/vizdoom/src/viz_input.cpp | monaj07/Vizdoom | 3537793ced50273cdd9e513155ce9ef3bacca67b | [
"MIT"
] | null | null | null | src/vizdoom/src/viz_input.cpp | monaj07/Vizdoom | 3537793ced50273cdd9e513155ce9ef3bacca67b | [
"MIT"
] | null | null | null | /*
Copyright (C) 2016 by Wojciech Jaśkowski, Michał Kempka, Grzegorz Runc, Jakub Toczek, Marek Wydmuch
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 li... | 32.624309 | 114 | 0.631414 | monaj07 |
4b2d6f00e6f5ded6c790093f51190e2841dbe750 | 14,741 | cpp | C++ | Modules/Core/test/mitkPointSetTest.cpp | ZP-Hust/MITK | ca11353183c5ed4bc30f938eae8bde43a0689bf6 | [
"BSD-3-Clause"
] | 1 | 2021-11-20T08:19:27.000Z | 2021-11-20T08:19:27.000Z | Modules/Core/test/mitkPointSetTest.cpp | wyyrepo/MITK | d0837f3d0d44f477b888ec498e9a2ed407e79f20 | [
"BSD-3-Clause"
] | null | null | null | Modules/Core/test/mitkPointSetTest.cpp | wyyrepo/MITK | d0837f3d0d44f477b888ec498e9a2ed407e79f20 | [
"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... | 30.206967 | 117 | 0.669018 | ZP-Hust |
4b2ef541e499933dfe0e88759dbf13a48da70bc8 | 12,382 | cpp | C++ | scripting/lua/cocos2dx_support/CCLuaStack.cpp | CocosRobot/cocos2d-x | 1a527ea331363cfe108b5e2f0ac04a61f8883527 | [
"Zlib",
"libtiff",
"BSD-2-Clause",
"Apache-2.0",
"MIT",
"Libpng",
"curl",
"BSD-3-Clause"
] | null | null | null | scripting/lua/cocos2dx_support/CCLuaStack.cpp | CocosRobot/cocos2d-x | 1a527ea331363cfe108b5e2f0ac04a61f8883527 | [
"Zlib",
"libtiff",
"BSD-2-Clause",
"Apache-2.0",
"MIT",
"Libpng",
"curl",
"BSD-3-Clause"
] | null | null | null | scripting/lua/cocos2dx_support/CCLuaStack.cpp | CocosRobot/cocos2d-x | 1a527ea331363cfe108b5e2f0ac04a61f8883527 | [
"Zlib",
"libtiff",
"BSD-2-Clause",
"Apache-2.0",
"MIT",
"Libpng",
"curl",
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
Copyright (c) 2011 cocos2d-x.org
http://www.cocos2d-x.org
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 with... | 29.693046 | 113 | 0.576159 | CocosRobot |
4b30fe9ffd813767512f64e63e67fd460bc1b84a | 2,540 | cpp | C++ | cpp/cpp/843. Guess the Word.cpp | longwangjhu/LeetCode | a5c33e8d67e67aedcd439953d96ac7f443e2817b | [
"MIT"
] | 3 | 2021-08-07T07:01:34.000Z | 2021-08-07T07:03:02.000Z | cpp/cpp/843. Guess the Word.cpp | longwangjhu/LeetCode | a5c33e8d67e67aedcd439953d96ac7f443e2817b | [
"MIT"
] | null | null | null | cpp/cpp/843. Guess the Word.cpp | longwangjhu/LeetCode | a5c33e8d67e67aedcd439953d96ac7f443e2817b | [
"MIT"
] | null | null | null | // https://leetcode.com/problems/guess-the-word/
// This is an interactive problem.
// You are given an array of unique strings wordlist where wordlist[i] is 6 letters
// long, and one word in this list is chosen as secret.
// You may call Master.guess(word) to guess a word. The guessed word should have
// type stri... | 35.774648 | 83 | 0.565748 | longwangjhu |
4b39d285d109df7524da0a5fdd9ed8c24016c8fa | 1,368 | cpp | C++ | source/RegistRTTR.cpp | xzrunner/taskgraph | 56fd18358ac22a77f9c07ba69923883397057c52 | [
"MIT"
] | null | null | null | source/RegistRTTR.cpp | xzrunner/taskgraph | 56fd18358ac22a77f9c07ba69923883397057c52 | [
"MIT"
] | null | null | null | source/RegistRTTR.cpp | xzrunner/taskgraph | 56fd18358ac22a77f9c07ba69923883397057c52 | [
"MIT"
] | null | null | null | #define EXE_FILEPATH "taskgraph/task_include_gen.h"
#include "taskgraph/task_regist_cfg.h"
#undef EXE_FILEPATH
#include "taskgraph/Task.h"
#include "taskgraph/task/Group.h"
#include <rttr/registration>
#define REGIST_ENUM_ITEM(type, name, label) \
rttr::value(name, type), \
rttr::metadata(type... | 25.811321 | 90 | 0.717836 | xzrunner |
4b3aafef1712aa0258bb8ad09e6eee752240ba59 | 276 | hpp | C++ | include/IModule.hpp | ForTheReallys/Waybar | 9d4048983db4dd1e7224ce9b34ca4853570cae85 | [
"MIT"
] | null | null | null | include/IModule.hpp | ForTheReallys/Waybar | 9d4048983db4dd1e7224ce9b34ca4853570cae85 | [
"MIT"
] | null | null | null | include/IModule.hpp | ForTheReallys/Waybar | 9d4048983db4dd1e7224ce9b34ca4853570cae85 | [
"MIT"
] | null | null | null | #pragma once
#include <gtkmm.h>
namespace waybar {
class IModule {
public:
virtual ~IModule() = default;
virtual auto update() -> void = 0;
virtual operator Gtk::Widget &() = 0;
Glib::Dispatcher dp; // Hmmm Maybe I should create an abstract class ?
};
}
| 17.25 | 74 | 0.641304 | ForTheReallys |
4b3cd904c82989aa55007558ed118a9955e1d778 | 778 | hpp | C++ | SFML-UI/include/SFML-UI/Core/Transform.hpp | PoetaKodu/sfml-ui | 35be37d1b803555e9b2c030cfa215c4c65b1e9e9 | [
"MIT"
] | null | null | null | SFML-UI/include/SFML-UI/Core/Transform.hpp | PoetaKodu/sfml-ui | 35be37d1b803555e9b2c030cfa215c4c65b1e9e9 | [
"MIT"
] | null | null | null | SFML-UI/include/SFML-UI/Core/Transform.hpp | PoetaKodu/sfml-ui | 35be37d1b803555e9b2c030cfa215c4c65b1e9e9 | [
"MIT"
] | null | null | null | #pragma once
#include SFMLUI_PCH
namespace sfui
{
namespace transform_algorithm
{
/// <summary>
/// Extracts position from specified transform.
/// </summary>
/// <param name="transform_"></param>
/// <returns>Extracted position.</returns>
sf::Vector2f extractPosition(sf::Transform const & transform_);
/// <summa... | 21.027027 | 63 | 0.701799 | PoetaKodu |
4b3d13b451dac68d140598cef01d29933a845424 | 833 | cc | C++ | engine/core/bitTables.cc | ClayHanson/B4v21-Public-Repo | c812aa7bf2ecb267e02969c85f0c9c2a29be0d28 | [
"MIT"
] | 1 | 2020-08-18T19:45:34.000Z | 2020-08-18T19:45:34.000Z | engine/core/bitTables.cc | ClayHanson/B4v21-Launcher-Public-Repo | c812aa7bf2ecb267e02969c85f0c9c2a29be0d28 | [
"MIT"
] | null | null | null | engine/core/bitTables.cc | ClayHanson/B4v21-Launcher-Public-Repo | c812aa7bf2ecb267e02969c85f0c9c2a29be0d28 | [
"MIT"
] | null | null | null | //-----------------------------------------------------------------------------
// Torque Game Engine
// Copyright (C) GarageGames.com, Inc.
//-----------------------------------------------------------------------------
#include "core/bitTables.h"
bool BitTables::mTablesBuilt = false;
S8 BitTables::mHighBi... | 32.038462 | 79 | 0.478992 | ClayHanson |
4b3d36d253fd6fba4101a1d2e9e3941b21d36b02 | 774 | cpp | C++ | src/AdventOfCode2021/Day03-BinaryDiagnostic/Day03-BinaryDiagnostic.cpp | dbartok/advent-of-code-cpp | c8c2df7a21980f8f3e42128f7bc5df8288f18490 | [
"MIT"
] | null | null | null | src/AdventOfCode2021/Day03-BinaryDiagnostic/Day03-BinaryDiagnostic.cpp | dbartok/advent-of-code-cpp | c8c2df7a21980f8f3e42128f7bc5df8288f18490 | [
"MIT"
] | null | null | null | src/AdventOfCode2021/Day03-BinaryDiagnostic/Day03-BinaryDiagnostic.cpp | dbartok/advent-of-code-cpp | c8c2df7a21980f8f3e42128f7bc5df8288f18490 | [
"MIT"
] | null | null | null | #include "Day03-BinaryDiagnostic.h"
#include "DiagnosticReportAnalyzer.h"
#include <AdventOfCodeCommon/DisableLibraryWarningsMacros.h>
__BEGIN_LIBRARIES_DISABLE_WARNINGS
__END_LIBRARIES_DISABLE_WARNINGS
namespace AdventOfCode
{
namespace Year2021
{
namespace Day03
{
int submarinePowerConsumption(const std::vector<... | 23.454545 | 84 | 0.824289 | dbartok |
4b45519dc02224405a435ad752df0f37d34e21be | 8,280 | cpp | C++ | src/bin/unix/state.cpp | EIRNf/twizzler | 794383026ce605789c6cfc62093d79f0b01fe1d5 | [
"BSD-3-Clause"
] | 23 | 2021-07-09T22:11:58.000Z | 2022-03-24T04:19:44.000Z | src/bin/unix/state.cpp | EIRNf/twizzler | 794383026ce605789c6cfc62093d79f0b01fe1d5 | [
"BSD-3-Clause"
] | 38 | 2021-07-10T02:50:30.000Z | 2022-03-16T01:22:46.000Z | src/bin/unix/state.cpp | EIRNf/twizzler | 794383026ce605789c6cfc62093d79f0b01fe1d5 | [
"BSD-3-Clause"
] | 6 | 2021-07-03T04:15:06.000Z | 2022-03-15T00:33:32.000Z | #include "state.h"
#include <twix/twix.h>
#include <memory>
#include <mutex>
#include <unordered_map>
#include <twz/sys/obj.h>
static std::atomic_int next_taskid(2);
template<typename K, typename V>
class refmap
{
private:
std::unordered_map<K, std::shared_ptr<V>> map;
std::mutex lock;
public:
std::shared_p... | 22.747253 | 93 | 0.683696 | EIRNf |
4b4be78589b6b017b246e5a9e7e9f9bcb71423ee | 71,440 | hpp | C++ | include/staticlib/pimpl/ext_preprocessor/repetition/detail/edg/for.hpp | staticlibs/staticlib_pimpl | 1c6ced163cd4a5d7aa08081b78ac14ac4d6e2bf3 | [
"Apache-2.0"
] | null | null | null | include/staticlib/pimpl/ext_preprocessor/repetition/detail/edg/for.hpp | staticlibs/staticlib_pimpl | 1c6ced163cd4a5d7aa08081b78ac14ac4d6e2bf3 | [
"Apache-2.0"
] | null | null | null | include/staticlib/pimpl/ext_preprocessor/repetition/detail/edg/for.hpp | staticlibs/staticlib_pimpl | 1c6ced163cd4a5d7aa08081b78ac14ac4d6e2bf3 | [
"Apache-2.0"
] | 1 | 2021-06-13T15:46:29.000Z | 2021-06-13T15:46:29.000Z | # /* Copyright (C) 2001
# * Housemarque Oy
# * http://www.housemarque.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)
# */
#
# /* Revised by Paul Mensonides (2002) */
#
# /* See http://www.boost... | 133.53271 | 202 | 0.743267 | staticlibs |
4b4cc822be6cd5ec573f35b679b28f0803ea7072 | 3,553 | cpp | C++ | branch/old_angsys/angsys_beta1/angsys_android/source/angsys/angsys.shared/source/xml/xml_element.cpp | ChuyX3/angsys | 89b2eaee866bcfd11e66efda49b38acc7468c780 | [
"Apache-2.0"
] | null | null | null | branch/old_angsys/angsys_beta1/angsys_android/source/angsys/angsys.shared/source/xml/xml_element.cpp | ChuyX3/angsys | 89b2eaee866bcfd11e66efda49b38acc7468c780 | [
"Apache-2.0"
] | null | null | null | branch/old_angsys/angsys_beta1/angsys_android/source/angsys/angsys.shared/source/xml/xml_element.cpp | ChuyX3/angsys | 89b2eaee866bcfd11e66efda49b38acc7468c780 | [
"Apache-2.0"
] | null | null | null | /*********************************************************************************************************************/
/* File Name: xml_element.cpp */
/* Author: Ing. Jesus Rocha <chuyangel.rm@gmail.com>, July 2016. ... | 32.009009 | 124 | 0.607937 | ChuyX3 |
4b52441f2280f91d325afc5e7a6fc73c0a008256 | 3,588 | cpp | C++ | aws-cpp-sdk-email/source/model/BounceType.cpp | ambasta/aws-sdk-cpp | c81192e00b572b76d175d84dff77185bd17ae1ac | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-email/source/model/BounceType.cpp | ambasta/aws-sdk-cpp | c81192e00b572b76d175d84dff77185bd17ae1ac | [
"Apache-2.0"
] | null | null | null | aws-cpp-sdk-email/source/model/BounceType.cpp | ambasta/aws-sdk-cpp | c81192e00b572b76d175d84dff77185bd17ae1ac | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... | 33.222222 | 94 | 0.63155 | ambasta |
4b52aef3e4d512e34d4542bbaa0a89a472d31c52 | 3,589 | hpp | C++ | Geometry/Point.hpp | 7bnx/Embedded | afb83151500b27066b571336c32aaddd9fa97fd7 | [
"MIT"
] | null | null | null | Geometry/Point.hpp | 7bnx/Embedded | afb83151500b27066b571336c32aaddd9fa97fd7 | [
"MIT"
] | null | null | null | Geometry/Point.hpp | 7bnx/Embedded | afb83151500b27066b571336c32aaddd9fa97fd7 | [
"MIT"
] | null | null | null | //----------------------------------------------------------------------------------
// Author: Semyon Ivanov
// e-mail: agreement90@mail.ru
// github: https://github.com/7bnx/Embedded
// Description: Point structures
// TODO:
//----------------------------------------------------------... | 22.71519 | 84 | 0.575369 | 7bnx |
4b56be2d124039934eb73ce3f39e9ae8a03a916a | 2,415 | cpp | C++ | WLMatrix/src/wlmatrix/api/soap/handlers/auth/RST2Handler.cpp | aeoncl/wlmatrix | da936eaec37f06f0e379c6009962dc69bfe07eb3 | [
"MIT"
] | null | null | null | WLMatrix/src/wlmatrix/api/soap/handlers/auth/RST2Handler.cpp | aeoncl/wlmatrix | da936eaec37f06f0e379c6009962dc69bfe07eb3 | [
"MIT"
] | null | null | null | WLMatrix/src/wlmatrix/api/soap/handlers/auth/RST2Handler.cpp | aeoncl/wlmatrix | da936eaec37f06f0e379c6009962dc69bfe07eb3 | [
"MIT"
] | null | null | null | #pragma once
#include "RST2Handler.h"
#include "AuthResponse.h"
#include "MatrixBackend.h"
#include <iostream>
#include "MatrixRestServiceException.h"
#include "AbstractSoapEndpointHandler.h"
#include "RST2Response.h"
#include "RST2TokenFactory.h"
#include "UUID.h"
#include "DateTime.h"
#include "RST2Request.h"
#includ... | 38.333333 | 209 | 0.721325 | aeoncl |
4b5a7ef857f01118558a6edfdd717beffc318411 | 8,895 | cpp | C++ | build/px4_sitl_default/msg/topics_sources/ulog_stream.cpp | amilearning/PX4-Autopilot | c1b997fbc48492689a5f6d0a090d1ea2c7d6c272 | [
"BSD-3-Clause"
] | null | null | null | build/px4_sitl_default/msg/topics_sources/ulog_stream.cpp | amilearning/PX4-Autopilot | c1b997fbc48492689a5f6d0a090d1ea2c7d6c272 | [
"BSD-3-Clause"
] | null | null | null | build/px4_sitl_default/msg/topics_sources/ulog_stream.cpp | amilearning/PX4-Autopilot | c1b997fbc48492689a5f6d0a090d1ea2c7d6c272 | [
"BSD-3-Clause"
] | null | null | null | /****************************************************************************
*
* Copyright (C) 2013-2016 PX4 Development Team. 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. Red... | 121.849315 | 5,645 | 0.667454 | amilearning |
4b5c63fe2fdbe744c951d392bfc09e1b5c739316 | 1,569 | cpp | C++ | test_suite/src/error_recovery_tests.cpp | avacore/jsoncons | 0fa3104b6237b3323a749c38ebeaaaebf55e9e48 | [
"BSL-1.0"
] | null | null | null | test_suite/src/error_recovery_tests.cpp | avacore/jsoncons | 0fa3104b6237b3323a749c38ebeaaaebf55e9e48 | [
"BSL-1.0"
] | null | null | null | test_suite/src/error_recovery_tests.cpp | avacore/jsoncons | 0fa3104b6237b3323a749c38ebeaaaebf55e9e48 | [
"BSL-1.0"
] | null | null | null |
// Copyright 2013 Daniel Parker
// Distributed under Boost license
#include <boost/test/unit_test.hpp>
#include "jsoncons/json.hpp"
#include "jsoncons/json_serializer.hpp"
#include "jsoncons/json_reader.hpp"
#include <sstream>
#include <vector>
#include <utility>
#include <ctime>
using jsoncons::parsing_context;
usi... | 27.051724 | 147 | 0.699809 | avacore |
4b5c9706d26f960c1494e18184a2baf766faf03b | 2,412 | hpp | C++ | IGC/common/debug/TeeOutputStream.hpp | bader/intel-graphics-compiler | 04f51dc2f3d5047f334da5cb5eebe568480622f5 | [
"MIT"
] | null | null | null | IGC/common/debug/TeeOutputStream.hpp | bader/intel-graphics-compiler | 04f51dc2f3d5047f334da5cb5eebe568480622f5 | [
"MIT"
] | null | null | null | IGC/common/debug/TeeOutputStream.hpp | bader/intel-graphics-compiler | 04f51dc2f3d5047f334da5cb5eebe568480622f5 | [
"MIT"
] | null | null | null | /*========================== begin_copyright_notice ============================
Copyright (c) 2000-2021 Intel 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, inc... | 33.5 | 107 | 0.674129 | bader |
4b5ecaa6c3bf46afb4bf7bee5f0f94aba0637f22 | 6,419 | cpp | C++ | UnitTests/Sweep.cpp | louis-langholtz/Box2D | 7c74792bf177cf36640d735de2bba0225bf7f852 | [
"Zlib"
] | 32 | 2016-10-20T05:55:04.000Z | 2021-11-25T16:34:41.000Z | UnitTests/Sweep.cpp | louis-langholtz/Box2D | 7c74792bf177cf36640d735de2bba0225bf7f852 | [
"Zlib"
] | 50 | 2017-01-07T21:40:16.000Z | 2018-01-31T10:04:05.000Z | UnitTests/Sweep.cpp | louis-langholtz/Box2D | 7c74792bf177cf36640d735de2bba0225bf7f852 | [
"Zlib"
] | 7 | 2017-02-09T10:02:02.000Z | 2020-07-23T22:49:04.000Z | /*
* Copyright (c) 2017 Louis Langholtz https://github.com/louis-langholtz/Box2D
*
* 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 sof... | 41.954248 | 105 | 0.642156 | louis-langholtz |
4b5fc0774a6d2312d9c2ff17683c21d82ec18016 | 46,964 | cpp | C++ | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp | AlexisPerry/kitsune-1 | 29c278e74f167613b8413b3c23277cdc13a656d7 | [
"MIT"
] | 3 | 2021-08-04T02:54:47.000Z | 2021-11-06T08:30:00.000Z | lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp | AlexisPerry/kitsune-1 | 29c278e74f167613b8413b3c23277cdc13a656d7 | [
"MIT"
] | 2 | 2022-02-19T07:12:22.000Z | 2022-02-27T11:21:53.000Z | llvm-project/lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp | ananthdurbha/llvm-mlir | a5e0b8903b83c777fa40a0fa538fbdb8176fd5ac | [
"MIT"
] | 1 | 2022-03-31T12:52:01.000Z | 2022-03-31T12:52:01.000Z | //===-- GDBRemoteCommunicationServerCommon.cpp ------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... | 35.741248 | 90 | 0.709671 | AlexisPerry |
4b6066d14848f3f00d999b136b5b8496a01524a1 | 662 | cpp | C++ | Framework/GeomMath/cpp/MatrixUtil.cpp | kiorisyshen/newbieGameEngine | d1e68fbd75884fdf0f171212396d8bc5fec8ad9e | [
"MIT"
] | 3 | 2019-06-07T15:29:45.000Z | 2019-11-11T01:26:12.000Z | Framework/GeomMath/cpp/MatrixUtil.cpp | kiorisyshen/newbieGameEngine | d1e68fbd75884fdf0f171212396d8bc5fec8ad9e | [
"MIT"
] | null | null | null | Framework/GeomMath/cpp/MatrixUtil.cpp | kiorisyshen/newbieGameEngine | d1e68fbd75884fdf0f171212396d8bc5fec8ad9e | [
"MIT"
] | null | null | null | #include <cstdint>
#include <cstring>
using namespace std;
namespace Dummy {
void BuildIdentityMatrix(float *data, const int32_t n) {
memset(data, 0x00, sizeof(float) * n * n);
for (int32_t i = 0; i < n; i++) {
*(data + i * n + i) = 1.0f;
}
}
void MatrixExchangeYandZ(float *data, const int32_t r... | 26.48 | 79 | 0.570997 | kiorisyshen |
4b61999960d490ddf3ec717ec8f743066ac849a2 | 2,973 | cpp | C++ | test/twod_test/demo/demo.cpp | billyquith/bq-twod | 81d5d35cf3db22145fb4dd14cfe6b8dd927373b6 | [
"MIT"
] | null | null | null | test/twod_test/demo/demo.cpp | billyquith/bq-twod | 81d5d35cf3db22145fb4dd14cfe6b8dd927373b6 | [
"MIT"
] | null | null | null | test/twod_test/demo/demo.cpp | billyquith/bq-twod | 81d5d35cf3db22145fb4dd14cfe6b8dd927373b6 | [
"MIT"
] | null | null | null |
#include "demo.hpp"
#include <SFML/Graphics/RenderWindow.hpp>
#include <SFML/Graphics/CircleShape.hpp>
#include <cassert>
void InteractiveDemo::processEvent(const sf::Event &evt)
{
}
void InteractiveDemo::draw(sf::RenderTarget &rt) {}
void DemoPoints::drawLine(sf::RenderTarget &rt)
{
const int nb = points_.s... | 27.275229 | 82 | 0.447023 | billyquith |
4b64a1c25d06e716e3a861449c8ae3d89136069b | 4,975 | hpp | C++ | include/AppStandards.hpp | john-fotis/SysPro3 | 79066d516edd345220d0f1cf0e83647edacfcc23 | [
"MIT"
] | 1 | 2021-08-20T11:19:46.000Z | 2021-08-20T11:19:46.000Z | include/AppStandards.hpp | john-fotis/SysPro3 | 79066d516edd345220d0f1cf0e83647edacfcc23 | [
"MIT"
] | null | null | null | include/AppStandards.hpp | john-fotis/SysPro3 | 79066d516edd345220d0f1cf0e83647edacfcc23 | [
"MIT"
] | null | null | null | #ifndef APPSTANDARDS_HPP
#define APPSTANDARDS_HPP
#include <errno.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <string>
#include <iostream>
#include "List.hpp"
typedef std::string string;
// travelClient parameters
#define PERMS 0775
#define LOGS_PATH "logs/"
// monitorServer param... | 36.050725 | 165 | 0.722814 | john-fotis |
4b64ef1e857fae1172aadf20742e5d722fc59c49 | 2,184 | cpp | C++ | dep/acelite/ace/Intrusive_List.cpp | muscnx/Mangos021SD2 | 695bb6a4822bb9173ab8e9077cb6259869ca2f32 | [
"PostgreSQL",
"Zlib",
"OpenSSL"
] | 42 | 2015-01-05T10:00:07.000Z | 2022-02-18T14:51:33.000Z | dep/ACE_wrappers/ace/Intrusive_List.cpp | mfooo/wow | 3e5fad4cfdf0fd1c0a2fd7c9844e6f140a1bb32d | [
"OpenSSL"
] | 20 | 2017-04-10T18:41:58.000Z | 2017-04-10T19:01:12.000Z | dep/ACE_wrappers/ace/Intrusive_List.cpp | mfooo/wow | 3e5fad4cfdf0fd1c0a2fd7c9844e6f140a1bb32d | [
"OpenSSL"
] | 38 | 2015-01-08T14:12:06.000Z | 2022-01-19T08:33:00.000Z | // $Id: Intrusive_List.cpp 92069 2010-09-28 11:38:59Z johnnyw $
#ifndef ACE_INTRUSIVE_LIST_CPP
#define ACE_INTRUSIVE_LIST_CPP
#include "ace/Intrusive_List.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if !defined (__ACE_INLINE__)
#include "ace/Intrusive_List.inl"
#endif /... | 17.756098 | 63 | 0.590659 | muscnx |
4b64f252529591b0628a76d5c7afce335b30356d | 14,844 | cpp | C++ | Plugins/GeometryCache/Source/GeometryCache/Private/GeometryCacheComponent.cpp | greenrainstudios/AlembicUtilities | 3970988065aef6861898a5185495e784a0c43ecb | [
"MIT"
] | null | null | null | Plugins/GeometryCache/Source/GeometryCache/Private/GeometryCacheComponent.cpp | greenrainstudios/AlembicUtilities | 3970988065aef6861898a5185495e784a0c43ecb | [
"MIT"
] | null | null | null | Plugins/GeometryCache/Source/GeometryCache/Private/GeometryCacheComponent.cpp | greenrainstudios/AlembicUtilities | 3970988065aef6861898a5185495e784a0c43ecb | [
"MIT"
] | 1 | 2021-01-22T09:11:51.000Z | 2021-01-22T09:11:51.000Z | // Copyright Epic Games, Inc. All Rights Reserved.
#include "GeometryCacheComponent.h"
#include "GeometryCache.h"
#include "Logging/MessageLog.h"
#include "ContentStreaming.h"
#include "GeometryCacheSceneProxy.h"
#include "GeometryCacheTrack.h"
#include "GeometryCacheMeshData.h"
#include "GeometryCacheStr... | 28.879377 | 168 | 0.744139 | greenrainstudios |
b49d4eb424dba7825b4fdd66b6bf10b611d14eef | 12,688 | cpp | C++ | kernel/vds_network/udp_socket.cpp | iv-soft/vds | 8baea0831fe4aff7815d63f8a1df8491d5620678 | [
"MIT"
] | null | null | null | kernel/vds_network/udp_socket.cpp | iv-soft/vds | 8baea0831fe4aff7815d63f8a1df8491d5620678 | [
"MIT"
] | null | null | null | kernel/vds_network/udp_socket.cpp | iv-soft/vds | 8baea0831fe4aff7815d63f8a1df8491d5620678 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "udp_socket.h"
#include "private/udp_socket_p.h"
vds::udp_datagram::udp_datagram()
: impl_(nullptr)
{
}
vds::udp_datagram::udp_datagram(const udp_datagram& other)
: impl_(new _udp_datagram(*other.impl_)){
}
vds::udp_datagram::udp_datagram(udp_datagram && other)
: impl_(other.impl_) {... | 30.066351 | 153 | 0.653373 | iv-soft |
b49f3438e5b7e406c9d3e3626969d6b45956e5b0 | 928 | hpp | C++ | pythran/pythonic/numpy/sum.hpp | artas360/pythran | 66dad52d52be71693043e9a7d7578cfb9cb3d1da | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/numpy/sum.hpp | artas360/pythran | 66dad52d52be71693043e9a7d7578cfb9cb3d1da | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/numpy/sum.hpp | artas360/pythran | 66dad52d52be71693043e9a7d7578cfb9cb3d1da | [
"BSD-3-Clause"
] | null | null | null | #ifndef PYTHONIC_NUMPY_SUM_HPP
#define PYTHONIC_NUMPY_SUM_HPP
#include "pythonic/include/numpy/sum.hpp"
#include "pythonic/utils/proxy.hpp"
#include "pythonic/numpy/reduce.hpp"
#ifdef USE_BOOST_SIMD
#include <boost/simd/include/functions/sum.hpp>
#endif
#include <algorithm>
namespace pythonic
{
namespace numpy
... | 22.095238 | 75 | 0.592672 | artas360 |
b4a80f8d8083ea0aad624723d8e217bd98d80f0c | 854 | hpp | C++ | listener.hpp | LAGonauta/Alure-C-Interface | d6eb94a0bedd68ee076b084b6736dfee8ff95d0e | [
"Zlib"
] | 1 | 2019-07-19T03:37:33.000Z | 2019-07-19T03:37:33.000Z | listener.hpp | LAGonauta/Alure-C-Interface | d6eb94a0bedd68ee076b084b6736dfee8ff95d0e | [
"Zlib"
] | null | null | null | listener.hpp | LAGonauta/Alure-C-Interface | d6eb94a0bedd68ee076b084b6736dfee8ff95d0e | [
"Zlib"
] | null | null | null | #include "common.h"
#ifndef __WRAP_LISTENER_H__
#define __WRAP_LISTENER_H__
#ifdef __cplusplus
extern "C"
{
#endif
DLL_PUBLIC listener_t* listener_set(alure::Listener ctx);
DLL_PUBLIC void listener_destroy(listener_t* dm);
DLL_PUBLIC void listener_setGain(listener_t* dm, ALfloat gain);
DLL_PUBLIC void listener_set3D... | 34.16 | 160 | 0.82904 | LAGonauta |
b4ac1ea8256a3905dfb93005d0a35643e94ac152 | 863 | hpp | C++ | src/leaker/global.hpp | tigrangh/leaker | cb07f22184e5d58bc2abdd41b68800106c59baa9 | [
"MIT"
] | null | null | null | src/leaker/global.hpp | tigrangh/leaker | cb07f22184e5d58bc2abdd41b68800106c59baa9 | [
"MIT"
] | null | null | null | src/leaker/global.hpp | tigrangh/leaker | cb07f22184e5d58bc2abdd41b68800106c59baa9 | [
"MIT"
] | null | null | null | #pragma once
#if defined _MSC_VER
#define B_OS_WINDOWS
#define UNICODE
#define _UNICODE
#ifdef BUILD_SHARED_LIBS
#define LEAKER_EXPORT __declspec(dllexport)
#define LEAKER_IMPORT __declspec(dllimport)
#else
#define LEAKER_EXPORT
#define LEAKER_IMPORT
#endif
#define LEAKER_LOCAL
#elif defined __APPLE__
#define B_... | 17.979167 | 62 | 0.811124 | tigrangh |
b4ac6674a8b36d8f121188d42dc1c55b2ac1d2c7 | 2,856 | cc | C++ | cpp/src/ray/runtime/task/native_task_submitter.cc | lharri73/ray | 3e42f54910ee8fecdd09a9a69e4852d6fb946e6d | [
"Apache-2.0"
] | null | null | null | cpp/src/ray/runtime/task/native_task_submitter.cc | lharri73/ray | 3e42f54910ee8fecdd09a9a69e4852d6fb946e6d | [
"Apache-2.0"
] | 53 | 2021-10-09T07:09:35.000Z | 2022-03-19T07:09:08.000Z | cpp/src/ray/runtime/task/native_task_submitter.cc | akern40/ray | d4f9d3620eecefeffc890ecf5193582bf667512e | [
"Apache-2.0"
] | null | null | null | // Copyright 2020-2021 The Ray 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 agreed... | 36.151899 | 88 | 0.634454 | lharri73 |
b4b031b7e3918a6a4dfce0fba57a8cb0b5361691 | 5,342 | cpp | C++ | 1001-1500/1044-longest-duplicate-string/main.cpp | janreggie/leetcode | c59718e127b598c4de7d07c9c93064eb12b2e5c9 | [
"MIT",
"Unlicense"
] | null | null | null | 1001-1500/1044-longest-duplicate-string/main.cpp | janreggie/leetcode | c59718e127b598c4de7d07c9c93064eb12b2e5c9 | [
"MIT",
"Unlicense"
] | null | null | null | 1001-1500/1044-longest-duplicate-string/main.cpp | janreggie/leetcode | c59718e127b598c4de7d07c9c93064eb12b2e5c9 | [
"MIT",
"Unlicense"
] | null | null | null | // Well, this does a TLE. But it shoould work!
#include <iostream>
#include <string>
#include <unordered_map>
#include <vector>
class Solution
{
public:
std::string longestDupSubstring(const std::string& s)
{
if (s.size() <= 1) {
return "";
}
if (s.size() == 2) {
if (s.at(0) == s.at(1)) {
return s.... | 45.271186 | 1,008 | 0.777424 | janreggie |
b4b42cc225e39ebdb7795d0a7565331bc17a87b6 | 4,233 | cpp | C++ | src/bench/chacha_poly_aead.cpp | devcoin/devcoin | a5a65936e31a63041434f3fce31270c518d44ebc | [
"MIT"
] | null | null | null | src/bench/chacha_poly_aead.cpp | devcoin/devcoin | a5a65936e31a63041434f3fce31270c518d44ebc | [
"MIT"
] | null | null | null | src/bench/chacha_poly_aead.cpp | devcoin/devcoin | a5a65936e31a63041434f3fce31270c518d44ebc | [
"MIT"
] | null | null | null | // Copyright (c) 2019-2020 The Bitcoin Core and Devcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <bench/bench.h>
#include <crypto/chacha_poly_aead.h>
#include <crypto/poly1305.h> // for the POLY1... | 33.330709 | 135 | 0.72927 | devcoin |
b4b4650636f32cfc5189cf62e03fba2d8b5db3a3 | 6,874 | hpp | C++ | libs/full/async_colocated/include/hpx/async_colocated/async_colocated.hpp | gonidelis/hpx | 8f608a97ae4f765cb8fdd166b478097267d65c4b | [
"BSL-1.0"
] | null | null | null | libs/full/async_colocated/include/hpx/async_colocated/async_colocated.hpp | gonidelis/hpx | 8f608a97ae4f765cb8fdd166b478097267d65c4b | [
"BSL-1.0"
] | null | null | null | libs/full/async_colocated/include/hpx/async_colocated/async_colocated.hpp | gonidelis/hpx | 8f608a97ae4f765cb8fdd166b478097267d65c4b | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2007-2015 Hartmut Kaiser
//
// SPDX-License-Identifier: BSL-1.0
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#pragma once
#include <hpx/config.hpp>
#include <hpx/actions_base/actions_base_s... | 44.064103 | 80 | 0.616526 | gonidelis |
b4b51129f1e2c579d079116b5ee3dfb6940a7fdb | 58,609 | cpp | C++ | src/ports/SkFontHost_FreeType_common.cpp | lirongfei123/skia | ca5c3363596b91ce75f381dfde15985a71e20626 | [
"BSD-3-Clause"
] | 1 | 2021-08-07T03:44:46.000Z | 2021-08-07T03:44:46.000Z | src/ports/SkFontHost_FreeType_common.cpp | blvd20/skia | fdf7b3c41f8ede5cb7f8b160f73695e9a1682e46 | [
"BSD-3-Clause"
] | null | null | null | src/ports/SkFontHost_FreeType_common.cpp | blvd20/skia | fdf7b3c41f8ede5cb7f8b160f73695e9a1682e46 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2006-2012 The Android Open Source Project
* Copyright 2012 Mozilla Foundation
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "include/core/SkBitmap.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkColor.h"
#include ... | 40.336545 | 127 | 0.569725 | lirongfei123 |
b4b5c319ce7869031b763ef43519c14599bb0983 | 137,497 | cpp | C++ | lib/Runtime/Library/TypedArray.cpp | wbhsm/ChakraCore | d542c725a673260f0ebeb8051d154045b46d521f | [
"MIT"
] | 1 | 2020-06-12T14:24:25.000Z | 2020-06-12T14:24:25.000Z | lib/Runtime/Library/TypedArray.cpp | wbhsm/ChakraCore | d542c725a673260f0ebeb8051d154045b46d521f | [
"MIT"
] | 1 | 2018-10-16T15:16:09.000Z | 2018-10-16T15:16:09.000Z | lib/Runtime/Library/TypedArray.cpp | wbhsm/ChakraCore | d542c725a673260f0ebeb8051d154045b46d521f | [
"MIT"
] | 6 | 2018-09-07T05:16:47.000Z | 2021-03-23T20:30:38.000Z | //-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//---------------------------------------------------------... | 39.544722 | 203 | 0.65312 | wbhsm |
b4b7f0c32acdf0be651be1b9ef899697140ad84b | 13,855 | cpp | C++ | src/test/fork_kore_from_blockinfo.cpp | Kore-Core/Kore | d0bb166f6ad69b09ef305cdedc2a799cd3f874c3 | [
"MIT"
] | 13 | 2018-02-02T15:18:53.000Z | 2019-09-27T06:00:26.000Z | src/test/fork_kore_from_blockinfo.cpp | Kore-Core/Kore | d0bb166f6ad69b09ef305cdedc2a799cd3f874c3 | [
"MIT"
] | 7 | 2018-07-05T12:05:49.000Z | 2020-03-09T06:25:45.000Z | src/test/fork_kore_from_blockinfo.cpp | Kore-Core/Kore | d0bb166f6ad69b09ef305cdedc2a799cd3f874c3 | [
"MIT"
] | 23 | 2018-01-14T14:14:59.000Z | 2019-08-16T03:39:05.000Z | // Copyright (c) 2011-2014 The Bitcoin Core developers
// Copyright (c) 2016 The KORE developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "chainparams.h"
#include "checkpoints.h"
#include "init.h"
#include "m... | 41.358209 | 119 | 0.693829 | Kore-Core |
b4bd4a499f2ad52f65baf7d80274dcd42921277a | 2,571 | cpp | C++ | Glitter/Sources/BoundingBox.cpp | jalexanderqed/RayTracer | 58de9f07b0c0f88292c3760402e29a70e1805af9 | [
"MIT"
] | null | null | null | Glitter/Sources/BoundingBox.cpp | jalexanderqed/RayTracer | 58de9f07b0c0f88292c3760402e29a70e1805af9 | [
"MIT"
] | null | null | null | Glitter/Sources/BoundingBox.cpp | jalexanderqed/RayTracer | 58de9f07b0c0f88292c3760402e29a70e1805af9 | [
"MIT"
] | null | null | null | #include "BoundingBox.h"
BoundingBox::BoundingBox() : vMin{ glm::vec3(INFINITY) },
vMax{ glm::vec3(-1 * INFINITY) } { }
BoundingBox::BoundingBox(const PolygonIO* poly) {
for (int i = 0; i < 3; i++) {
vMax[i] = max(poly->vert[0].pos[i],
max(poly->vert[1].pos[i], poly->vert[2].pos[i]));
vMin[i] = min(poly->vert... | 25.455446 | 92 | 0.610657 | jalexanderqed |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.