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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
8023d731bce4982a82e28c564ad7a295671e5592 | 2,030 | cpp | C++ | sxaccelerate/src/graph/SxGQPattern.cpp | ashtonmv/sphinx_vdw | 5896fee0d92c06e883b72725cb859d732b8b801f | [
"Apache-2.0"
] | 1 | 2020-02-29T03:26:32.000Z | 2020-02-29T03:26:32.000Z | sxaccelerate/src/graph/SxGQPattern.cpp | ashtonmv/sphinx_vdw | 5896fee0d92c06e883b72725cb859d732b8b801f | [
"Apache-2.0"
] | null | null | null | sxaccelerate/src/graph/SxGQPattern.cpp | ashtonmv/sphinx_vdw | 5896fee0d92c06e883b72725cb859d732b8b801f | [
"Apache-2.0"
] | null | null | null | // ---------------------------------------------------------------------------
//
// The general purpose cross platform C/C++ framework
//
// S x A c c e l e r a t e
//
// Home: https://www.sxlib.de
// License: Apache 2
// Authors: see src/AUTHOR... | 24.166667 | 89 | 0.577833 | ashtonmv |
8029d25173e42152fdeb44e9df0d9186f73eebd6 | 1,763 | cpp | C++ | src/GameObject.cpp | stelitop/FutureGame | f167816675a1dac63bb4b2d9d75d2bc8f1effb0f | [
"MIT"
] | null | null | null | src/GameObject.cpp | stelitop/FutureGame | f167816675a1dac63bb4b2d9d75d2bc8f1effb0f | [
"MIT"
] | null | null | null | src/GameObject.cpp | stelitop/FutureGame | f167816675a1dac63bb4b2d9d75d2bc8f1effb0f | [
"MIT"
] | null | null | null | #include<iostream>
#include<SFML/Graphics.hpp>
#include "GameObject.h"
using namespace std;
using namespace sf;
GameObject::GameObject()
{
this->corner = Vector2f(0,0);
this->objectSize = Vector2f(0,0);
}
GameObject::GameObject(Vector2f corner, Vector2f sz)
{
this->corner = corner;
this... | 27.546875 | 145 | 0.620533 | stelitop |
802bb7e210bcb8b89e77c6ef7039500769f956e6 | 9,941 | cpp | C++ | logdevice/server/locallogstore/RocksDBEnv.cpp | mickvav/LogDevice | 24a8b6abe4576418eceb72974083aa22d7844705 | [
"BSD-3-Clause"
] | 1 | 2021-05-19T23:01:58.000Z | 2021-05-19T23:01:58.000Z | logdevice/server/locallogstore/RocksDBEnv.cpp | mickvav/LogDevice | 24a8b6abe4576418eceb72974083aa22d7844705 | [
"BSD-3-Clause"
] | null | null | null | logdevice/server/locallogstore/RocksDBEnv.cpp | mickvav/LogDevice | 24a8b6abe4576418eceb72974083aa22d7844705 | [
"BSD-3-Clause"
] | null | null | null | /**
* Copyright (c) 2017-present, Facebook, Inc. and its affiliates.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "RocksDBEnv.h"
#include <folly/Optional.h>
#include <folly/ThreadLocal.h>
#i... | 31.862179 | 80 | 0.624686 | mickvav |
802bebe8a7038be0af0bde7732e80005a79f7317 | 1,377 | cpp | C++ | Code/GuiApps/QtVTK/App/main.cpp | clicky/go-icpz | 11b595778210cbfde3135f98c7ddfeb8808f9a1c | [
"BSD-3-Clause"
] | 2 | 2019-07-08T08:35:45.000Z | 2019-10-27T07:37:08.000Z | Code/GuiApps/QtVTK/App/main.cpp | clicky/go-icpz | 11b595778210cbfde3135f98c7ddfeb8808f9a1c | [
"BSD-3-Clause"
] | null | null | null | Code/GuiApps/QtVTK/App/main.cpp | clicky/go-icpz | 11b595778210cbfde3135f98c7ddfeb8808f9a1c | [
"BSD-3-Clause"
] | 1 | 2020-04-03T16:21:06.000Z | 2020-04-03T16:21:06.000Z | /*=============================================================================
GOICPZ: A software package for globally optimal implementations of the iterative closest point algorithm.
Copyright (c) University College London (UCL). All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; withou... | 28.102041 | 107 | 0.689906 | clicky |
802f3c4e44e696026f5a6dcb90e48bf4b741b8fc | 7,761 | cpp | C++ | client/src/ui/inventory_weapons.cpp | gabyrobles93/worms-game-remake | b97781f39369f807ae8c8316f7f313353d7a2df7 | [
"MIT"
] | 2 | 2019-04-24T18:27:29.000Z | 2020-04-06T17:15:34.000Z | client/src/ui/inventory_weapons.cpp | gabyrobles93/tp-final-taller | b97781f39369f807ae8c8316f7f313353d7a2df7 | [
"MIT"
] | null | null | null | client/src/ui/inventory_weapons.cpp | gabyrobles93/tp-final-taller | b97781f39369f807ae8c8316f7f313353d7a2df7 | [
"MIT"
] | null | null | null | #include "inventory.h"
#include "inventory_weapons.h"
#include "types.h"
#include <iostream>
View::WeaponsInventory::WeaponsInventory(SDL_Renderer * r, const YAML::Node & initInv) :
font(gPath.PATH_FONT_ARIAL_BOLD, TEXT_SUPPLIES_SIZE) {
this->iconPaths[w_bazooka] = gPath.PATH_ICON_BAZOOKA;
this->iconPaths[w_mor... | 28.221818 | 105 | 0.609973 | gabyrobles93 |
803282fbed576649c0b0f00cf2035fb4999db6e4 | 636 | cpp | C++ | Servercpp/ServerCPP/ServerCPP/lib/Communication/TransportLayer/WindowsUserConnection.cpp | RobotGuide/RobotGuideProject | ba7fcc4a0fc4eb6b743ddbaeb75e7ae114eefb4e | [
"MIT"
] | 2 | 2021-01-27T20:06:54.000Z | 2021-03-02T14:30:37.000Z | Servercpp/ServerCPP/ServerCPP/lib/Communication/TransportLayer/WindowsUserConnection.cpp | RobotGuide/RobotGuideProject | ba7fcc4a0fc4eb6b743ddbaeb75e7ae114eefb4e | [
"MIT"
] | null | null | null | Servercpp/ServerCPP/ServerCPP/lib/Communication/TransportLayer/WindowsUserConnection.cpp | RobotGuide/RobotGuideProject | ba7fcc4a0fc4eb6b743ddbaeb75e7ae114eefb4e | [
"MIT"
] | null | null | null | #include "robotguide/Communication/TransportLayer/WindowsUserConnection.h"
using namespace robotguide::com::transportlayer;
WindowsUserConnection::WindowsUserConnection(IRouteRequester& routeRequester,
const SOCKET& socketHandler,
const unsigned int receiveBufferSize)
: WindowsConnection(socketHandler, receiveBuff... | 27.652174 | 77 | 0.827044 | RobotGuide |
803291b89c91727bb1575c3f086c13a5f6f90659 | 7,858 | cpp | C++ | FragMgx.Exe/MgxEntry.cpp | jeremy-boschen/FragExt | c340eecf7cd5992001db1b4a404bcaec09523ba4 | [
"Zlib"
] | null | null | null | FragMgx.Exe/MgxEntry.cpp | jeremy-boschen/FragExt | c340eecf7cd5992001db1b4a404bcaec09523ba4 | [
"Zlib"
] | null | null | null | FragMgx.Exe/MgxEntry.cpp | jeremy-boschen/FragExt | c340eecf7cd5992001db1b4a404bcaec09523ba4 | [
"Zlib"
] | 2 | 2020-03-03T12:55:17.000Z | 2022-03-07T15:37:33.000Z | /* FragExt - Shell extension for providing file fragmentation
* information.
*
* Copyright (C) 2004-2009 Jeremy Boschen. All rights reserved.
*
* 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 thi... | 23.740181 | 139 | 0.613769 | jeremy-boschen |
80343005c15fa80a3cac4b69a6935f8e1e93e568 | 1,606 | hxx | C++ | include/GraFX/api/implementation/Action.hxx | VladimirSuvorov1996/GraFX | 60f543c5283976a624f8dd460dbf515f2d06df5e | [
"MIT"
] | null | null | null | include/GraFX/api/implementation/Action.hxx | VladimirSuvorov1996/GraFX | 60f543c5283976a624f8dd460dbf515f2d06df5e | [
"MIT"
] | null | null | null | include/GraFX/api/implementation/Action.hxx | VladimirSuvorov1996/GraFX | 60f543c5283976a624f8dd460dbf515f2d06df5e | [
"MIT"
] | null | null | null | #pragma once
#include "CallbackSignatures.hxx"
#include "Constants.hxx"
namespace graFX {
class Action {
public:
enum action : uint8_t { Release, Press, Repeat, Last };
Action() : action_(Release) {}
Action(const Action&) = default;
Action(callbacks::action a) :action_(from_glfw_action(a)) {}
ac... | 26.327869 | 66 | 0.651308 | VladimirSuvorov1996 |
d9a42f2269afd6128d75536900133fcd67312741 | 5,305 | cc | C++ | source/codebase/core/S1-DevTools/src/square-Objects.cc | rbax/SquareOne | b08a4648a42d0eb9b4752c8b9970d9fcfb007228 | [
"MIT"
] | null | null | null | source/codebase/core/S1-DevTools/src/square-Objects.cc | rbax/SquareOne | b08a4648a42d0eb9b4752c8b9970d9fcfb007228 | [
"MIT"
] | null | null | null | source/codebase/core/S1-DevTools/src/square-Objects.cc | rbax/SquareOne | b08a4648a42d0eb9b4752c8b9970d9fcfb007228 | [
"MIT"
] | null | null | null |
/* |INCLUDES: QT| */
#include <QLayout>
#include <QToolButton>
#include <QFrame>
#include <QLabel>
#include <QListWidgetItem>
#include <QTableWidget>
#include <QHeaderView>
#include <QPixmap>
#include <QPoint>
#include <QSize>
/* |INCLUDES: SQUARE| */
#include "square.h"
SQUARE_START
/* ----------------------------... | 25.261905 | 100 | 0.618285 | rbax |
d9a43f23c9a0f70d66124ac6db3e72142c3cebf4 | 459 | cpp | C++ | codes/FZU/fzu1909.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/FZU/fzu1909.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null | codes/FZU/fzu1909.cpp | JeraKrs/ACM | edcd61ec6764b8cd804bf1538dfde53d0ff572b5 | [
"Apache-2.0"
] | null | null | null |
#include <stdio.h>
#include <string.h>
bool judge(int *a, int sum) {
for (int i = 0; i < 4; i++) {
for (int j = i + 1; j < 4; j++)
if (sum == (a[i] + a[j]) * 2) return true;
}
return false;
}
int main () {
int cas, a[4];
scanf("%d", &cas);
for (int i = 1; i <= cas; i++) {
int sum = 0;
for (int j =... | 14.806452 | 60 | 0.442266 | JeraKrs |
d9afde1e672b501c046b9bf43ef39ae6241b7911 | 2,923 | hpp | C++ | src/parser/sema/component/component.hpp | tjhancocks/kdl | 0914e76bf02a635f87f006085d3fd960e9fd1f22 | [
"MIT"
] | 6 | 2020-04-17T04:51:45.000Z | 2022-01-25T01:02:24.000Z | src/parser/sema/component/component.hpp | tjhancocks/kdl | 0914e76bf02a635f87f006085d3fd960e9fd1f22 | [
"MIT"
] | 22 | 2020-04-17T15:07:31.000Z | 2021-07-07T04:45:17.000Z | src/parser/sema/component/component.hpp | tjhancocks/kdl | 0914e76bf02a635f87f006085d3fd960e9fd1f22 | [
"MIT"
] | 4 | 2020-04-17T07:30:41.000Z | 2020-07-18T20:57:56.000Z | // Copyright (c) 2021 Tom Hancocks
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, ... | 35.216867 | 103 | 0.660281 | tjhancocks |
d9b2587707e64c5f2d9b7b941f9f401245b6c22f | 3,693 | cpp | C++ | examples/SimpleColor/src/colorviz.cpp | stereolabs/zed-openni | c763771fd98a9aedd37dbf6b1247783bbd22810d | [
"MIT"
] | 2 | 2021-03-06T09:47:32.000Z | 2021-03-23T06:03:26.000Z | examples/SimpleColor/src/colorviz.cpp | stereolabs/zed-openni | c763771fd98a9aedd37dbf6b1247783bbd22810d | [
"MIT"
] | null | null | null | examples/SimpleColor/src/colorviz.cpp | stereolabs/zed-openni | c763771fd98a9aedd37dbf6b1247783bbd22810d | [
"MIT"
] | 1 | 2021-03-22T20:34:46.000Z | 2021-03-22T20:34:46.000Z | ///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2021, STEREOLABS.
//
// All rights reserved.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIE... | 22.796296 | 150 | 0.634173 | stereolabs |
d9b2746d223760710bd4865998aa01e551c5afc5 | 260 | cpp | C++ | exercicios-cpp/EX_1.4.cpp | bernardoaa/Exercicios_Resolvido-cpp | b75db265cfd589416de27f2d1cf8c71ceaec2741 | [
"MIT"
] | null | null | null | exercicios-cpp/EX_1.4.cpp | bernardoaa/Exercicios_Resolvido-cpp | b75db265cfd589416de27f2d1cf8c71ceaec2741 | [
"MIT"
] | null | null | null | exercicios-cpp/EX_1.4.cpp | bernardoaa/Exercicios_Resolvido-cpp | b75db265cfd589416de27f2d1cf8c71ceaec2741 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main(){
//CALCULO DO QUADRADO DE UM NUMERO DADO
float n;
cout << "\t\tCalculo do quadrado de um numero\n\n";
cout << "Digite um numero: ";
cin >> n;
cout << "O seu quadrado e: " << n*n;
return 0;
}
| 14.444444 | 52 | 0.611538 | bernardoaa |
d9b65978c75f12e979733db678b4b4bac568637c | 9,944 | cpp | C++ | TC2038(Portafolio_Final)/ActInt1/main.cpp | Diplex09/TC2038 | 2701d94b1a10dd16611ea86653760e5786c4dd25 | [
"MIT"
] | null | null | null | TC2038(Portafolio_Final)/ActInt1/main.cpp | Diplex09/TC2038 | 2701d94b1a10dd16611ea86653760e5786c4dd25 | [
"MIT"
] | null | null | null | TC2038(Portafolio_Final)/ActInt1/main.cpp | Diplex09/TC2038 | 2701d94b1a10dd16611ea86653760e5786c4dd25 | [
"MIT"
] | null | null | null | /* */
/* Actividad Integradora 1 - Strings */
/* */
/* Diego Velazquez Moreno - A01632240 */
/* Aldo Alejandro Degollado Padilla - A01638391 */
/* ... | 27.622222 | 124 | 0.497285 | Diplex09 |
d9b6de98d29610238b4f8a68548065a28f01d071 | 121 | cpp | C++ | tests/unit/headerdb/test_01/a.cpp | snizovtsev/compdb | 6879a78f48c3b57346379a0fdee82cc5d5829c97 | [
"MIT"
] | 203 | 2016-08-14T23:21:34.000Z | 2022-03-22T10:41:34.000Z | tests/unit/headerdb/test_01/a.cpp | snizovtsev/compdb | 6879a78f48c3b57346379a0fdee82cc5d5829c97 | [
"MIT"
] | 25 | 2017-03-29T14:00:27.000Z | 2022-03-10T12:55:44.000Z | tests/unit/headerdb/test_01/a.cpp | snizovtsev/compdb | 6879a78f48c3b57346379a0fdee82cc5d5829c97 | [
"MIT"
] | 19 | 2017-06-22T16:49:08.000Z | 2022-02-11T04:28:04.000Z | // The comments contain quotes in case the regexp used
// to match #include ".+" is greedy
#include "a.hpp" // "greedy?"
| 30.25 | 54 | 0.677686 | snizovtsev |
d9ba30a39f39338a262528327b1af70cb21b1efb | 30,905 | hpp | C++ | src/translator/gta3/sa/10us.hpp | gtaisbetterthanfn/modloader | 18f85c2766d4e052a452c7b1d8f5860a6daac24b | [
"MIT"
] | 186 | 2015-01-18T05:46:11.000Z | 2022-03-22T10:03:44.000Z | src/translator/gta3/sa/10us.hpp | AlisonMDL/modloader | 18f85c2766d4e052a452c7b1d8f5860a6daac24b | [
"MIT"
] | 82 | 2015-01-14T01:02:04.000Z | 2022-03-20T23:55:59.000Z | src/translator/gta3/sa/10us.hpp | AlisonMDL/modloader | 18f85c2766d4e052a452c7b1d8f5860a6daac24b | [
"MIT"
] | 34 | 2015-01-07T11:17:00.000Z | 2022-02-28T00:16:20.000Z | /*
* Mod Loader - Address Translation Between Game Versions
* Copyright (C) 2013-2014 LINK/2012 <dma_2012@hotmail.com>
* Licensed under the MIT License, see LICENSE at top level directory.
*
*/
#pragma once
#include <modloader/util/injector.hpp>
#include <map>
// GTA SA 10US table
static void sa_10us(std::map<me... | 64.251559 | 139 | 0.649507 | gtaisbetterthanfn |
d9bb4f43c2f751e2df91b041165f1b17307f7518 | 5,667 | cpp | C++ | CodeGen.cpp | aszecsei/kestrel_compiler | 3b592c77042f534ee725d076701800d5ad19318c | [
"MIT"
] | null | null | null | CodeGen.cpp | aszecsei/kestrel_compiler | 3b592c77042f534ee725d076701800d5ad19318c | [
"MIT"
] | null | null | null | CodeGen.cpp | aszecsei/kestrel_compiler | 3b592c77042f534ee725d076701800d5ad19318c | [
"MIT"
] | null | null | null | #include "CodeGen.h"
#include "environment.h"
#define outputTabbed(code) (CodeGen::outputFile << "\t" << code << "\n")
#define outputUntabbed(code) (CodeGen::outputFile << code << "\n")
#define outputTabbedToBuffer(code) (CodeGen::bufferedOutput << "\t" << code << "\n")
#define outputUntabbedToBuffer(code) (CodeGen::b... | 34.554878 | 115 | 0.709017 | aszecsei |
d9d08b52ddd032a132992773a12917debcc36e07 | 280 | cpp | C++ | src/config/config.cpp | rengglian/SmartiesTransformer | 59da8ef79121403c41aeaa7c2c436479100f5d2d | [
"MIT"
] | null | null | null | src/config/config.cpp | rengglian/SmartiesTransformer | 59da8ef79121403c41aeaa7c2c436479100f5d2d | [
"MIT"
] | null | null | null | src/config/config.cpp | rengglian/SmartiesTransformer | 59da8ef79121403c41aeaa7c2c436479100f5d2d | [
"MIT"
] | null | null | null | #include "config.hpp"
Config::Config(std::string fileName) {
std::ifstream i(fileName);
json j;
i >> j;
bg_path = j.at("background");
img_path = j.at("image");
target_path = j.at("target");
scaler = j.at("pixelmm");
}
Config::~Config() {
} | 17.5 | 38 | 0.557143 | rengglian |
d9d45e16ce80ebeb0caecd264de49d85a7bdfb89 | 392 | cpp | C++ | iRODS/lib/api/src/rcKrbAuthRequest.cpp | PlantandFoodResearch/irods | 9dfe7ffe5aa0760b7493bd9392ea1270df9335d4 | [
"BSD-3-Clause"
] | null | null | null | iRODS/lib/api/src/rcKrbAuthRequest.cpp | PlantandFoodResearch/irods | 9dfe7ffe5aa0760b7493bd9392ea1270df9335d4 | [
"BSD-3-Clause"
] | null | null | null | iRODS/lib/api/src/rcKrbAuthRequest.cpp | PlantandFoodResearch/irods | 9dfe7ffe5aa0760b7493bd9392ea1270df9335d4 | [
"BSD-3-Clause"
] | null | null | null | /* This is script-generated code. */
/* See krbAuthRequest.h for a description of this API call.*/
#include "krbAuthRequest.hpp"
int
rcKrbAuthRequest( rcComm_t *conn, krbAuthRequestOut_t **krbAuthRequestOut ) {
int status;
status = procApiRequest( conn, KRB_AUTH_REQUEST_AN, NULL, NULL,
... | 28 | 77 | 0.660714 | PlantandFoodResearch |
d9d7d28ebaad7d05a9e82e3f804d288040929978 | 6,565 | cpp | C++ | src/vlCore/math_utils.cpp | Christophe-ABEL/VisualizationLibrary | 936fe9e5047970b23d97ff0088725e9016b470ee | [
"BSD-2-Clause"
] | 281 | 2016-04-16T14:11:04.000Z | 2022-03-24T14:48:52.000Z | src/vlCore/math_utils.cpp | Christophe-ABEL/VisualizationLibrary | 936fe9e5047970b23d97ff0088725e9016b470ee | [
"BSD-2-Clause"
] | 91 | 2016-04-20T19:55:45.000Z | 2022-01-04T02:59:33.000Z | src/vlCore/math_utils.cpp | Christophe-ABEL/VisualizationLibrary | 936fe9e5047970b23d97ff0088725e9016b470ee | [
"BSD-2-Clause"
] | 83 | 2016-04-26T01:28:40.000Z | 2022-03-21T13:23:55.000Z | /**************************************************************************************/
/* */
/* Visualization Library */
/* http://visualizationlibrary.org ... | 43.766667 | 112 | 0.483625 | Christophe-ABEL |
d9de7248ec80ba5ea439208d5dfb31dd6338547b | 14,059 | cpp | C++ | plugin_III/game_III/CPlayerPed.cpp | gta-chaos-mod/plugin-sdk | e3bf176337774a2afc797a47825f81adde78e899 | [
"Zlib"
] | 368 | 2015-01-01T21:42:00.000Z | 2022-03-29T06:22:22.000Z | plugin_III/game_III/CPlayerPed.cpp | SteepCheat/plugin-sdk | a17c5d933cb8b06e4959b370092828a6a7aa00ef | [
"Zlib"
] | 89 | 2016-05-08T06:42:36.000Z | 2022-03-29T06:49:09.000Z | plugin_III/game_III/CPlayerPed.cpp | SteepCheat/plugin-sdk | a17c5d933cb8b06e4959b370092828a6a7aa00ef | [
"Zlib"
] | 179 | 2015-02-03T23:41:17.000Z | 2022-03-26T08:27:16.000Z | /*
Plugin-SDK (Grand Theft Auto 3) source file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#include "CPlayerPed.h"
PLUGIN_SOURCE_FILE
int ctor_addr(CPlayerPed) = ADDRESS_BY_VERSION(0x4EF7E0, 0x4EF890, 0x4EF820);... | 51.878229 | 226 | 0.807739 | gta-chaos-mod |
d9e00501d4d31bbef6177fcc97bed42f575bd619 | 823 | hpp | C++ | utils/IO/readCSV.hpp | rFalque/TEASER-plusplus_cpp-test | 304ae814c9361256880f0d2004dea40318a72812 | [
"MIT"
] | null | null | null | utils/IO/readCSV.hpp | rFalque/TEASER-plusplus_cpp-test | 304ae814c9361256880f0d2004dea40318a72812 | [
"MIT"
] | null | null | null | utils/IO/readCSV.hpp | rFalque/TEASER-plusplus_cpp-test | 304ae814c9361256880f0d2004dea40318a72812 | [
"MIT"
] | null | null | null | #ifndef EIGEN_TOOLS_READCSV_H
#define EIGEN_TOOLS_READCSV_H
#include <Eigen/Dense>
#include <vector>
#include <string>
#include <fstream>
//using namespace Eigen;
// from: https://stackoverflow.com/a/39146048/2562693
template<typename M> M load_csv (const std::string & path) {
std::ifstream indata;
indata.op... | 28.37931 | 165 | 0.658566 | rFalque |
d9e41fc368c021594aeea6bcc29f9e3d1a82e12c | 10,673 | cpp | C++ | src/main.cpp | rafirafi/MonaEv | 617362df3f5a3634d263374de6d59b8d99cf8a25 | [
"MIT"
] | null | null | null | src/main.cpp | rafirafi/MonaEv | 617362df3f5a3634d263374de6d59b8d99cf8a25 | [
"MIT"
] | null | null | null | src/main.cpp | rafirafi/MonaEv | 617362df3f5a3634d263374de6d59b8d99cf8a25 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <assert.h>
#include <string>
#include <chrono>
#include <fstream>
#include <streambuf>
#include <GL/glew.h>
#include <GL/glfw.h>
#include "ezOptionParser.hpp"
#include "monaev.h"
static bool initGl()
{
int major = 0, minor = 0;
const char *verStr = (const char *)glGetString(GL_V... | 29.565097 | 135 | 0.552235 | rafirafi |
d9e4845779eae90fac8f0fed15982a1d1f4a7f9d | 2,314 | cpp | C++ | swizzle/tests/unit_test/Lexer-FirstSlashState-UT.cpp | SenorAgosto/Swizzle | 52c221de9fa293b0006f07a41b140d2afcc1a9ed | [
"BSD-4-Clause"
] | null | null | null | swizzle/tests/unit_test/Lexer-FirstSlashState-UT.cpp | SenorAgosto/Swizzle | 52c221de9fa293b0006f07a41b140d2afcc1a9ed | [
"BSD-4-Clause"
] | null | null | null | swizzle/tests/unit_test/Lexer-FirstSlashState-UT.cpp | SenorAgosto/Swizzle | 52c221de9fa293b0006f07a41b140d2afcc1a9ed | [
"BSD-4-Clause"
] | null | null | null | #include "./ut_support/UnitTestSupport.hpp"
#include <swizzle/lexer/states/FirstSlashState.hpp>
#include <swizzle/lexer/FileInfo.hpp>
#include <swizzle/lexer/Token.hpp>
#include <swizzle/lexer/TokenInfo.hpp>
#include <swizzle/lexer/TokenizerState.hpp>
#include <boost/utility/string_view.hpp>
#include <deque>
namespa... | 26 | 116 | 0.636992 | SenorAgosto |
d9e4a6d8ee47233e2a0cbbdc5bf8d0330d8613df | 2,831 | cpp | C++ | src/gui/TransactionDetailsDialog.cpp | mygirl8893/CatalystGUI-Evo | cc1e835782f2b7552b13f6b5bf6f69fb8f0e82dc | [
"MIT"
] | null | null | null | src/gui/TransactionDetailsDialog.cpp | mygirl8893/CatalystGUI-Evo | cc1e835782f2b7552b13f6b5bf6f69fb8f0e82dc | [
"MIT"
] | null | null | null | src/gui/TransactionDetailsDialog.cpp | mygirl8893/CatalystGUI-Evo | cc1e835782f2b7552b13f6b5bf6f69fb8f0e82dc | [
"MIT"
] | null | null | null | #include <QDateTime>
#include "CurrencyAdapter.h"
#include "TransactionDetailsDialog.h"
#include "TransactionsModel.h"
#include <IWalletLegacy.h>
#include "WalletAdapter.h"
#include "ui_transactiondetailsdialog.h"
namespace WalletGui {
TransactionDetailsDialog::TransactionDetailsDialog(const QModelIndex& _index, QW... | 47.983051 | 126 | 0.709643 | mygirl8893 |
d9e5d7117e38e51582b57b039a2e43ec6e82066d | 299 | hpp | C++ | src/components/position.hpp | Prior99/ggj2017 | 0b9e462177e7cc3bbe9207a9e21b52c5e4d61300 | [
"MIT"
] | null | null | null | src/components/position.hpp | Prior99/ggj2017 | 0b9e462177e7cc3bbe9207a9e21b52c5e4d61300 | [
"MIT"
] | null | null | null | src/components/position.hpp | Prior99/ggj2017 | 0b9e462177e7cc3bbe9207a9e21b52c5e4d61300 | [
"MIT"
] | null | null | null | #ifndef POSITION_HPP
#define POSITION_HPP
#include "entityx/entityx.h"
#include <glm/vec2.hpp>
#include <SDL2/SDL.h>
class Position : entityx::Component<Position> {
public:
glm::vec2 position;
Position(glm::vec2 new_position = glm::vec2(0.0f, 0.0f)) : position(new_position) {}
};
#endif
| 19.933333 | 88 | 0.712375 | Prior99 |
d9eaff4578cc0a176e18fe0983ffb3e46d72c73c | 362 | cpp | C++ | src/main.cpp | kalknight/WisBlockEnvironmentalDataloggerFirmware | fe16a60da03d3e37845a3f50f048fe641b639564 | [
"MIT"
] | null | null | null | src/main.cpp | kalknight/WisBlockEnvironmentalDataloggerFirmware | fe16a60da03d3e37845a3f50f048fe641b639564 | [
"MIT"
] | null | null | null | src/main.cpp | kalknight/WisBlockEnvironmentalDataloggerFirmware | fe16a60da03d3e37845a3f50f048fe641b639564 | [
"MIT"
] | 1 | 2021-10-08T04:40:45.000Z | 2021-10-08T04:40:45.000Z | /**
* Place your main.cpp code here to compile and load to the device.
* Once you're ready I would recommend copying the combined_lib_example.cpp here:
* \examples\Combined_lib_example\
*/
#include <Arduino.h>
/**
* @brief Setup code runs once on reset/startup.
*/
void setup() {}
/**
* @brief Loop code runs r... | 20.111111 | 81 | 0.685083 | kalknight |
d9ebd77ab1b837c67f509052135b7400b652a720 | 3,401 | cc | C++ | examples/16_text.cc | magestik/gf | 60d9bbe084828fff88f1a511bd1191c774ccef4a | [
"Zlib"
] | null | null | null | examples/16_text.cc | magestik/gf | 60d9bbe084828fff88f1a511bd1191c774ccef4a | [
"Zlib"
] | null | null | null | examples/16_text.cc | magestik/gf | 60d9bbe084828fff88f1a511bd1191c774ccef4a | [
"Zlib"
] | null | null | null | /*
* Gamedev Framework (gf)
* Copyright (C) 2016-2018 Julien Bernard
*
* 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 fo... | 37.788889 | 774 | 0.708909 | magestik |
8a0016ae75e83c3e24bbd56af9385dc17b13acd7 | 768 | hpp | C++ | inc/StreamMetaServer.hpp | JUX84/StreamMetaServer | 093b3dd9bfa9d5b129d155fbc2c187348dd3446a | [
"MIT"
] | null | null | null | inc/StreamMetaServer.hpp | JUX84/StreamMetaServer | 093b3dd9bfa9d5b129d155fbc2c187348dd3446a | [
"MIT"
] | null | null | null | inc/StreamMetaServer.hpp | JUX84/StreamMetaServer | 093b3dd9bfa9d5b129d155fbc2c187348dd3446a | [
"MIT"
] | null | null | null | #include "Server.h"
#include <unordered_set>
using namespace Player;
class StreamMetaServer : public Server {
private:
ServerPrx serverAM;
ServerPrx serverNZ;
std::unordered_set<std::string> tokensAM;
std::unordered_set<std::string> tokensNZ;
public:
StreamMetaServer();
std::string selectSong(const Son... | 33.391304 | 95 | 0.730469 | JUX84 |
8a082086213d64eec227c564fdd589c03a81a56f | 435 | hpp | C++ | Public/Eco/Private/Std20.hpp | vasama/eco | 380f358bdefe32c5f32a86dd9230ff26b66be6d1 | [
"MIT"
] | null | null | null | Public/Eco/Private/Std20.hpp | vasama/eco | 380f358bdefe32c5f32a86dd9230ff26b66be6d1 | [
"MIT"
] | null | null | null | Public/Eco/Private/Std20.hpp | vasama/eco | 380f358bdefe32c5f32a86dd9230ff26b66be6d1 | [
"MIT"
] | null | null | null | #pragma once
#include <experimental/coroutine>
#include <type_traits>
namespace Eco::std20 {
using namespace std::experimental;
template<typename T, typename... TArgs>
concept invocable = std::is_invocable_v<T, TArgs...>;
template<typename T, typename TIn>
concept convertible_to = std::is_convertible_v<TIn, T>;
t... | 21.75 | 55 | 0.758621 | vasama |
8a096fe870d204554641687691c36b3679418e86 | 47,696 | cc | C++ | src/openvino.cc | zhaohb/openvino_backend | ba36623d292111d6624b03890d21b88f03a0df62 | [
"BSD-3-Clause"
] | null | null | null | src/openvino.cc | zhaohb/openvino_backend | ba36623d292111d6624b03890d21b88f03a0df62 | [
"BSD-3-Clause"
] | null | null | null | src/openvino.cc | zhaohb/openvino_backend | ba36623d292111d6624b03890d21b88f03a0df62 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// * Redistributions of source code must retain the above copyright
// notice, this list... | 34.587382 | 80 | 0.695257 | zhaohb |
8a13229c36c7844d0159556e8612d7d721c6400c | 1,776 | cpp | C++ | Linked_List/CLL_Deletion.cpp | susantabiswas/placementPrep | 22a7574206ddc63eba89517f7b68a3d2f4d467f5 | [
"MIT"
] | 19 | 2018-12-02T05:59:44.000Z | 2021-07-24T14:11:54.000Z | Linked_List/CLL_Deletion.cpp | susantabiswas/placementPrep | 22a7574206ddc63eba89517f7b68a3d2f4d467f5 | [
"MIT"
] | null | null | null | Linked_List/CLL_Deletion.cpp | susantabiswas/placementPrep | 22a7574206ddc63eba89517f7b68a3d2f4d467f5 | [
"MIT"
] | 13 | 2019-04-25T16:20:00.000Z | 2021-09-06T19:50:04.000Z | //Circular Linked list insertion
#include<iostream>
#include<cstdlib>
using namespace std;
struct Node{
int data;
Node* next;
};
Node* createNode(int data){
try{
Node *node = new Node;
node->data = data;
node->next = NULL;
return node;
}
catch(int e){
cout<<" Mem error";
exit(0);
}
}
void insertBeg... | 15.578947 | 39 | 0.603041 | susantabiswas |
8a14fa82749acede1285590aa95441e65662c778 | 2,836 | cpp | C++ | test/test_multithread_read_fd/src/main.cpp | Ananfa/libcorpc | b2b8eeba15e54f388526011eb8d0f83e69920e26 | [
"Apache-2.0"
] | 22 | 2018-04-13T03:45:17.000Z | 2021-12-26T15:07:56.000Z | test/test_multithread_read_fd/src/main.cpp | Ananfa/libcorpc | b2b8eeba15e54f388526011eb8d0f83e69920e26 | [
"Apache-2.0"
] | null | null | null | test/test_multithread_read_fd/src/main.cpp | Ananfa/libcorpc | b2b8eeba15e54f388526011eb8d0f83e69920e26 | [
"Apache-2.0"
] | 2 | 2019-07-14T16:45:25.000Z | 2021-12-19T10:28:19.000Z | /*
* Created by Xianke Liu on 2018/3/2.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 23.633333 | 80 | 0.603667 | Ananfa |
8a1aa6d013d3f7e8d4c8bed03ae3dc3dea896d45 | 7,282 | cpp | C++ | Sources/simdlib/SimdAvx512bwReorder.cpp | aestesis/Csimd | b333a8bb7e7f2707ed6167badb8002cfe3504bbc | [
"Apache-2.0"
] | 6 | 2017-10-13T04:29:38.000Z | 2018-05-10T13:52:20.000Z | Sources/simdlib/SimdAvx512bwReorder.cpp | aestesis/Csimd | b333a8bb7e7f2707ed6167badb8002cfe3504bbc | [
"Apache-2.0"
] | null | null | null | Sources/simdlib/SimdAvx512bwReorder.cpp | aestesis/Csimd | b333a8bb7e7f2707ed6167badb8002cfe3504bbc | [
"Apache-2.0"
] | null | null | null | /*
* Simd Library (http://ermig1979.github.io/Simd).
*
* Copyright (c) 2011-2017 Yermalayeu Ihar.
*
* 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 with... | 44.674847 | 128 | 0.644328 | aestesis |
8a1c37b91ce65e7267ee1958142531536ed2bc49 | 916 | cpp | C++ | src/graphs/turbo-matching.cpp | varqox/acmlib | e798ca776d569d26d73ed910593b648afac4555c | [
"MIT"
] | null | null | null | src/graphs/turbo-matching.cpp | varqox/acmlib | e798ca776d569d26d73ed910593b648afac4555c | [
"MIT"
] | null | null | null | src/graphs/turbo-matching.cpp | varqox/acmlib | e798ca776d569d26d73ed910593b648afac4555c | [
"MIT"
] | null | null | null | VVI v;
V<bool> vis;
VI match; // match[i] - id wierzcholka skojarzonego z i, -1 jesli nie skojarzony
bool dfsMatch(int a) {
vis[a] = true;
for (int i : v[a]) {
if (match[i] == -1 || (!vis[match[i]] && dfsMatch(match[i]))) {
match[a] = i;
match[i] = a;
return true;
}
}
return false;
}
void init(int n)... | 19.489362 | 80 | 0.60262 | varqox |
8a1c68c6301035854e42c00c722959f43def5adc | 1,091 | cpp | C++ | yocto/utils.cpp | jrnh/yocto-l4d2 | 59cdc0c0fbf58a2827802e19d2306f4c29208396 | [
"Apache-2.0"
] | 1 | 2020-07-11T13:09:33.000Z | 2020-07-11T13:09:33.000Z | yocto/utils.cpp | scagliaa/yocto-l4d2 | 59cdc0c0fbf58a2827802e19d2306f4c29208396 | [
"Apache-2.0"
] | null | null | null | yocto/utils.cpp | scagliaa/yocto-l4d2 | 59cdc0c0fbf58a2827802e19d2306f4c29208396 | [
"Apache-2.0"
] | 3 | 2020-10-14T05:50:49.000Z | 2021-06-19T23:46:41.000Z | #include "utils.h"
inline float dot(const vector & a, const vector & b) { return (a.x * b.x + a.y * b.y + a.z * b.z); }
inline void vec_trans(const vector in1, float in2[3][4], vector & out)
{
out[0] = dot(in1, vector(in2[0][0], in2[0][1], in2[0][2])) + in2[0][3];
out[1] = dot(in1, vector(in2[1][0], in2[1][1], in2[... | 30.305556 | 100 | 0.616865 | jrnh |
8a1ead68d6abf29d0dcaf4c4cc569868618aa64f | 23,771 | cpp | C++ | src/Molassembler/Cycles.cpp | Dom1L/molassembler | dafc656b1aa846b65b1fd1e06f3740ceedcf22db | [
"BSD-3-Clause"
] | null | null | null | src/Molassembler/Cycles.cpp | Dom1L/molassembler | dafc656b1aa846b65b1fd1e06f3740ceedcf22db | [
"BSD-3-Clause"
] | null | null | null | src/Molassembler/Cycles.cpp | Dom1L/molassembler | dafc656b1aa846b65b1fd1e06f3740ceedcf22db | [
"BSD-3-Clause"
] | null | null | null | /*!@file
* @copyright This code is licensed under the 3-clause BSD license.
* Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group.
* See LICENSE.txt for details.
*/
#include "Molassembler/Cycles.h"
#include "Molassembler/Graph/PrivateGraph.h"
#include "Molassembler/Graph.h"
#include "Molasse... | 25.979235 | 109 | 0.682428 | Dom1L |
8a20bf1734354924b12747bc3ca59e18f8915d16 | 1,509 | hpp | C++ | src/widget/geom_restore.hpp | degarashi/sprinkler | afc6301ae2c7185f514148100da63dcef94d7f00 | [
"MIT"
] | null | null | null | src/widget/geom_restore.hpp | degarashi/sprinkler | afc6301ae2c7185f514148100da63dcef94d7f00 | [
"MIT"
] | null | null | null | src/widget/geom_restore.hpp | degarashi/sprinkler | afc6301ae2c7185f514148100da63dcef94d7f00 | [
"MIT"
] | null | null | null | #pragma once
#include "obstacle.hpp"
#include <QSettings>
#include <QHideEvent>
#include <QDebug>
namespace dg::widget {
template <class Base>
class GeomRestore :
public Obstacle<Base>
{
private:
using base_t = Obstacle<Base>;
inline static const QString c_key = "geometry";
QString _key;
bool _sh... | 21.869565 | 75 | 0.636846 | degarashi |
8a29bceef06b2c670b3572cd7fefba7d04e6e98c | 9,227 | cpp | C++ | components/document/core/path.cpp | cyberduckninja/RocketJoe | f0cfb51850423c218c3630f7a664afb48b2b8319 | [
"BSD-3-Clause"
] | 9 | 2020-07-20T15:32:07.000Z | 2021-06-04T13:02:58.000Z | components/document/core/path.cpp | cyberduckninja/RocketJoe | f0cfb51850423c218c3630f7a664afb48b2b8319 | [
"BSD-3-Clause"
] | 22 | 2020-06-06T07:27:00.000Z | 2021-01-14T23:11:22.000Z | components/document/core/path.cpp | cyberduckninja/RocketJoe | f0cfb51850423c218c3630f7a664afb48b2b8319 | [
"BSD-3-Clause"
] | 3 | 2020-08-29T07:07:49.000Z | 2021-06-04T13:02:59.000Z | #include "path.hpp"
#include "shared_keys.hpp"
#include "exception.hpp"
#include "platform_compat.hpp"
#include "slice_stream.hpp"
#include <iostream>
#include <sstream>
namespace document { namespace impl {
path_t::element_t::element_t(slice_t property)
: _key_buf(property)
, _key(new dict_t::key_t(_key_buf)... | 27.625749 | 113 | 0.563997 | cyberduckninja |
8a2d2bcaabb39ad12f1b48e36a57035e2d531c70 | 333 | cpp | C++ | Taav/UI/main.cpp | armansafdari/Taav | a87fd488b8d0bff1c860451f78b277eaf6fbcc73 | [
"BSD-2-Clause"
] | null | null | null | Taav/UI/main.cpp | armansafdari/Taav | a87fd488b8d0bff1c860451f78b277eaf6fbcc73 | [
"BSD-2-Clause"
] | null | null | null | Taav/UI/main.cpp | armansafdari/Taav | a87fd488b8d0bff1c860451f78b277eaf6fbcc73 | [
"BSD-2-Clause"
] | null | null | null | #include "mainwindow.h"
#include <QApplication>
#include<QFile>
#include<QTextStream>
int main(int argc, char *argv[])
{
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QApplication a(argc, argv);
MainWindow mainWin;
mainWin.resize(1200, 800);
mainWin.show();
return a... | 18.5 | 61 | 0.654655 | armansafdari |
8a2e13247adc9a98d8a805a52f7c10fdf1eaf1b8 | 1,885 | cpp | C++ | vsedit/src/preview/frame_info_dialog.cpp | AkarinVS/vapoursynth-editor-2 | 9ddd9d63f31cb76326a3f8eace177da35a96fc4e | [
"MIT"
] | 1 | 2021-03-17T23:39:59.000Z | 2021-03-17T23:39:59.000Z | vsedit/src/preview/frame_info_dialog.cpp | AkarinVS/vapoursynth-editor-2 | 9ddd9d63f31cb76326a3f8eace177da35a96fc4e | [
"MIT"
] | null | null | null | vsedit/src/preview/frame_info_dialog.cpp | AkarinVS/vapoursynth-editor-2 | 9ddd9d63f31cb76326a3f8eace177da35a96fc4e | [
"MIT"
] | null | null | null | #include "frame_info_dialog.h"
#include "ui_frame_info_dialog.h"
#include <QTimer>
FrameInfoDialog::FrameInfoDialog(SettingsManager * a_pSettingsManager, QWidget *parent) :
QDialog(parent),
ui(new Ui::FrameInfoDialog),
m_pSettingsManager(a_pSettingsManager)
{
ui->setupUi(this);
setWindowGeometry()... | 23.860759 | 89 | 0.739523 | AkarinVS |
8a323f88208ccea187a1a6eecbdea63a80ee9eec | 1,427 | cpp | C++ | src/Joueurs/Machine/Comportements/ComportementVoleurMachine.cpp | SacreDeBirmanie/mustached-archer | 8f7d0b3b62a472f300755949599f18f5f7407618 | [
"MIT"
] | null | null | null | src/Joueurs/Machine/Comportements/ComportementVoleurMachine.cpp | SacreDeBirmanie/mustached-archer | 8f7d0b3b62a472f300755949599f18f5f7407618 | [
"MIT"
] | null | null | null | src/Joueurs/Machine/Comportements/ComportementVoleurMachine.cpp | SacreDeBirmanie/mustached-archer | 8f7d0b3b62a472f300755949599f18f5f7407618 | [
"MIT"
] | null | null | null | /*!
* \file ComportementVoleurMachine.cpp
* \brief Fichier contenant l'implémentation de la classe ComportementVoleurMachine
* \author François Hallereau
* \author Sébastien Vallée
* \date 12.2014
*/
//--------------------------------------------------
/*!
* \brief Constructeur de la classe
*/
Comportement... | 28.54 | 84 | 0.599159 | SacreDeBirmanie |
8a338f007e7ccff88ea5051f767bb622956673c8 | 1,322 | cpp | C++ | examples/QZXingDragNDropTest/droparea.cpp | favoritas37/qzxing | 6ea2b31e26db9d43db027ba207f5c73dc9d759fc | [
"Apache-2.0"
] | 483 | 2016-08-26T00:53:51.000Z | 2022-03-30T16:08:49.000Z | examples/QZXingDragNDropTest/droparea.cpp | favoritas37/qzxing | 6ea2b31e26db9d43db027ba207f5c73dc9d759fc | [
"Apache-2.0"
] | 185 | 2016-09-08T08:48:46.000Z | 2022-03-29T11:55:38.000Z | examples/QZXingDragNDropTest/droparea.cpp | favoritas37/qzxing | 6ea2b31e26db9d43db027ba207f5c73dc9d759fc | [
"Apache-2.0"
] | 281 | 2016-09-15T08:42:26.000Z | 2022-03-21T17:55:00.000Z | #include "droparea.h"
#include <QGraphicsSceneDragDropEvent>
#include <QMimeData>
#include <QDebug>
DropArea::DropArea(QQuickItem *parent) : QQuickItem(parent),
m_accepting(true)
{
setAcceptingDrops(m_accepting);
}
//void DropArea::dragEnterEvent(QGraphicsSceneDragDropEvent *event)
//{
// event->acceptPro... | 22.40678 | 67 | 0.646747 | favoritas37 |
8a354e53fd662a5818b252a8cff0341bcf010629 | 479 | cpp | C++ | unit_tests/bind_classes/expose_false_integral_function_returns.cpp | SoapyMan/oolua | 9d25a865b05bbb6aaff56726b46e5b746572e490 | [
"MIT"
] | 4 | 2018-12-19T09:30:24.000Z | 2021-06-26T05:38:11.000Z | unit_tests/bind_classes/expose_false_integral_function_returns.cpp | SoapyMan/oolua | 9d25a865b05bbb6aaff56726b46e5b746572e490 | [
"MIT"
] | null | null | null | unit_tests/bind_classes/expose_false_integral_function_returns.cpp | SoapyMan/oolua | 9d25a865b05bbb6aaff56726b46e5b746572e490 | [
"MIT"
] | 2 | 2017-03-28T18:38:30.000Z | 2018-10-17T19:01:05.000Z |
#include "expose_false_integral_function_returns.h"
#include "oolua_dsl_export.h"
OOLUA_EXPORT_FUNCTIONS(FunctionRefReturn
, value
, ref
, refConst)
OOLUA_EXPORT_FUNCTIONS_CONST(FunctionRefReturn)
OOLUA_EXPORT_FUNCTIONS(TableRefReturn
, value
, ref
, refConst)
OOLUA_EXPORT_FUNCTIO... | 21.772727 | 51 | 0.759916 | SoapyMan |
8a3998b3a54eb87cf4b57d9171aaf2b1133d26fd | 33,332 | cpp | C++ | tesseract_motion_planners/test/trajopt_planner_tests.cpp | bi3ri/tesseract_planning | 7e8d9f0daa07a06f2b8e0b433de3bf4d36c12189 | [
"BSD-3-Clause",
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | tesseract_motion_planners/test/trajopt_planner_tests.cpp | bi3ri/tesseract_planning | 7e8d9f0daa07a06f2b8e0b433de3bf4d36c12189 | [
"BSD-3-Clause",
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | tesseract_motion_planners/test/trajopt_planner_tests.cpp | bi3ri/tesseract_planning | 7e8d9f0daa07a06f2b8e0b433de3bf4d36c12189 | [
"BSD-3-Clause",
"BSD-2-Clause",
"Apache-2.0"
] | null | null | null | /**
These tests test the TrajOptArrayPlanner and the TrajOptFreespacePlanner. They primarily check that the correct types
of costs and constraints are added when the flags like smooth_velocity are specified. However they are not foolproof.
They only check that at least one term of the correct type is in the cost ... | 41.874372 | 120 | 0.712168 | bi3ri |
8a39d2e1cc38df5f43e52dcc100d1839b8f89a29 | 8,512 | cpp | C++ | game/network_client.cpp | apemax/open-horizon | c9701767674c6361925e0aed434553c0ee837771 | [
"MIT"
] | 156 | 2015-01-04T00:48:00.000Z | 2021-12-08T18:03:18.000Z | game/network_client.cpp | apemax/open-horizon | c9701767674c6361925e0aed434553c0ee837771 | [
"MIT"
] | 8 | 2015-04-29T10:48:09.000Z | 2022-03-01T13:32:00.000Z | game/network_client.cpp | apemax/open-horizon | c9701767674c6361925e0aed434553c0ee837771 | [
"MIT"
] | 20 | 2015-04-05T21:36:02.000Z | 2022-02-18T19:17:05.000Z | //
// open horizon -- undefined_darkness@outlook.com
//
#include "network_client.h"
#include "network_helpers.h"
#include "system/system.h"
#include "miso/protocol/app_protocol_simple.h"
#include "miso/socket/ipv4.h"
#include <thread>
#include <chrono>
namespace game
{
//---------------------------------------------... | 26.030581 | 127 | 0.478618 | apemax |
8a3adbecf99510410bdf351a83a42e4771076046 | 1,195 | cpp | C++ | Source/Game/Match3Cell.cpp | gabr1e11/cornerstone | bc696e22af350b867219ef3ac99840b3e8a3f20a | [
"MIT"
] | null | null | null | Source/Game/Match3Cell.cpp | gabr1e11/cornerstone | bc696e22af350b867219ef3ac99840b3e8a3f20a | [
"MIT"
] | null | null | null | Source/Game/Match3Cell.cpp | gabr1e11/cornerstone | bc696e22af350b867219ef3ac99840b3e8a3f20a | [
"MIT"
] | null | null | null | //
// Match3Cell.hpp
//
// @author Roberto Cano
//
#pragma once
#include "Match3Cell.hpp"
#include "Framework/Core/Types.hpp"
#include "Framework/Components/SpriteRenderer.hpp"
using namespace Match3::Game;
using Point2D = Framework::Types::Point2D;
namespace CellConstants
{
const Point2D CellAnchorPoint(0.0f, 0.... | 18.384615 | 85 | 0.757322 | gabr1e11 |
8a49d0fd517103bfe28abe700d53f29b374a5cb9 | 3,068 | cpp | C++ | data_structure/graph/src/graph/AdjacencyList.cpp | vlad-iancu/alg-lib | 706b30253018a8a6f16d353396c8a9ddf2d0b51e | [
"MIT"
] | null | null | null | data_structure/graph/src/graph/AdjacencyList.cpp | vlad-iancu/alg-lib | 706b30253018a8a6f16d353396c8a9ddf2d0b51e | [
"MIT"
] | 11 | 2021-09-04T19:12:23.000Z | 2021-09-25T21:13:06.000Z | data_structure/graph/src/graph/AdjacencyList.cpp | vlad-iancu/libalg | 706b30253018a8a6f16d353396c8a9ddf2d0b51e | [
"MIT"
] | null | null | null | #include <graph/AdjacencyList.hpp>
#include <algorithm>
#include <edge/readers/AdjacencyListEdgeReader.hpp>
namespace graph
{
AdjacencyList::AdjacencyList(SizeG node_count) : Graph(node_count)
{
G = new std::vector<Node>[node_count];
}
AdjacencyList::AdjacencyList(AdjacencyList &&source) : Gr... | 24.544 | 101 | 0.517601 | vlad-iancu |
8a4b0599fc00850be7850f223379486ac0077ad0 | 1,093 | cpp | C++ | Customized-Build/il2cpp/Il2CppOutputProject/IL2CPP/libil2cpp/vm/MetadataLoader.cpp | cqtd/custom-il2cpp-build-pipeline-example | 9ec4973d98ddfcefee72b01225a3b7613312096b | [
"MIT"
] | null | null | null | Customized-Build/il2cpp/Il2CppOutputProject/IL2CPP/libil2cpp/vm/MetadataLoader.cpp | cqtd/custom-il2cpp-build-pipeline-example | 9ec4973d98ddfcefee72b01225a3b7613312096b | [
"MIT"
] | null | null | null | Customized-Build/il2cpp/Il2CppOutputProject/IL2CPP/libil2cpp/vm/MetadataLoader.cpp | cqtd/custom-il2cpp-build-pipeline-example | 9ec4973d98ddfcefee72b01225a3b7613312096b | [
"MIT"
] | null | null | null | #include "il2cpp-config.h"
#include "MetadataLoader.h"
#include "os/File.h"
#include "os/Mutex.h"
#include "utils/MemoryMappedFile.h"
#include "utils/PathUtils.h"
#include "utils/Runtime.h"
#include "utils/Logging.h"
#if IL2CPP_TARGET_ANDROID && IL2CPP_TINY_DEBUGGER && !IL2CPP_TINY_FROM_IL2CPP_BUILDER
#include <stdli... | 27.325 | 90 | 0.749314 | cqtd |
8a4e5aaacd5ad3a3520964638f88b1b88e1f5753 | 1,999 | hpp | C++ | src/viewerplugins/offscreen.hpp | Yorokobii/SpLiCE | 4e016b04c04a14154be5c60ca3843300b69d22fa | [
"Apache-2.0"
] | null | null | null | src/viewerplugins/offscreen.hpp | Yorokobii/SpLiCE | 4e016b04c04a14154be5c60ca3843300b69d22fa | [
"Apache-2.0"
] | null | null | null | src/viewerplugins/offscreen.hpp | Yorokobii/SpLiCE | 4e016b04c04a14154be5c60ca3843300b69d22fa | [
"Apache-2.0"
] | null | null | null | #ifndef OFFSCREEN_MECACELLVIEWERPLUGIN_HPP
#define OFFSCREEN_MECACELLVIEWERPLUGIN_HPP
#include <QImage>
#include <QOpenGLFramebufferObject>
/**
* @brief ScreenCapturePlugin creates a checkable option in the menu that enables screen
* capture
*/
struct OffscreenPlugin {
GLuint fbo, render_buf;
~OffscreenPlugin(){... | 28.971014 | 120 | 0.703352 | Yorokobii |
8a504eb8249cd3645909451eb381d075327cb770 | 2,188 | cpp | C++ | Code/Engine/Foundation/Basics/Basics.cpp | Manuzor/ezEngine | 876ad33ef21c6b986bb9bb333b2a3cbfed2be5ef | [
"CC-BY-3.0"
] | null | null | null | Code/Engine/Foundation/Basics/Basics.cpp | Manuzor/ezEngine | 876ad33ef21c6b986bb9bb333b2a3cbfed2be5ef | [
"CC-BY-3.0"
] | null | null | null | Code/Engine/Foundation/Basics/Basics.cpp | Manuzor/ezEngine | 876ad33ef21c6b986bb9bb333b2a3cbfed2be5ef | [
"CC-BY-3.0"
] | 1 | 2020-03-08T04:55:16.000Z | 2020-03-08T04:55:16.000Z | #include <Foundation/PCH.h>
#include <Foundation/Memory/CommonAllocators.h>
#include <Foundation/Communication/GlobalEvent.h>
enum
{
HEAP_ALLOCATOR_BUFFER_SIZE = sizeof(ezHeapAllocator),
ALIGNED_ALLOCATOR_BUFFER_SIZE = sizeof(ezAlignedHeapAllocator)
};
static ezUInt8 s_DefaultAllocatorBuffer[HEAP_ALLOCATOR_BUFF... | 25.149425 | 119 | 0.788848 | Manuzor |
a436963cf86e98257706cb085862024da43d52d3 | 850 | cpp | C++ | Queue/generateBinary.cpp | FahimMuntashir/theAlgorithms | 58348ea5c45059121a1cf83b8f99b4ac46973f01 | [
"MIT"
] | null | null | null | Queue/generateBinary.cpp | FahimMuntashir/theAlgorithms | 58348ea5c45059121a1cf83b8f99b4ac46973f01 | [
"MIT"
] | null | null | null | Queue/generateBinary.cpp | FahimMuntashir/theAlgorithms | 58348ea5c45059121a1cf83b8f99b4ac46973f01 | [
"MIT"
] | null | null | null |
/*
*
* Author : Fahim Muntashir
* Handle: f12r
*
*/
#include <bits/stdc++.h>
using namespace std;
#define f12r ios_base::sync_with_stdio(false), cin.tie(NULL)
const double EPSILON = 1e-9;
#define MOD 1000000007
#define pi acos(-1)
#define ll long long
#define endl "\n"
vector<string> generateBinary(int n)
{
q... | 14.166667 | 60 | 0.517647 | FahimMuntashir |
a438098943770411c440c66f34c60411ad73fbcf | 1,544 | hpp | C++ | test/data/complex.hpp | linux-fan-dave/mstch | 8a0ac9aa627b0bda5eec568b4e7382eace98feb6 | [
"MIT"
] | 523 | 2015-04-24T19:45:54.000Z | 2022-03-29T21:19:38.000Z | test/data/complex.hpp | linux-fan-dave/mstch | 8a0ac9aa627b0bda5eec568b4e7382eace98feb6 | [
"MIT"
] | 162 | 2017-03-11T04:32:32.000Z | 2020-12-20T06:45:56.000Z | test/data/complex.hpp | linux-fan-dave/mstch | 8a0ac9aa627b0bda5eec568b4e7382eace98feb6 | [
"MIT"
] | 103 | 2015-09-03T11:38:20.000Z | 2022-03-14T13:13:44.000Z | class complex_item: public mstch::object {
private:
std::string m_name;
bool m_current;
std::string m_url;
public:
complex_item(const std::string& name, bool current, const std::string& url):
m_name(name), m_current(current), m_url(url)
{
register_methods(this, std::map<std::string,mstch::node(compl... | 22.376812 | 80 | 0.602332 | linux-fan-dave |
a43a9addff620890d9b829f69f1700f898a1d5ee | 399 | cpp | C++ | main.cpp | Smoren/thread-containers-cluster-group | e31349136c56c436716ba330b42874d0bfd34a3d | [
"MIT"
] | 3 | 2020-04-20T09:01:25.000Z | 2020-09-20T15:40:28.000Z | main.cpp | Smoren/thread-safe-containers-cpp | e31349136c56c436716ba330b42874d0bfd34a3d | [
"MIT"
] | null | null | null | main.cpp | Smoren/thread-safe-containers-cpp | e31349136c56c436716ba330b42874d0bfd34a3d | [
"MIT"
] | null | null | null | #include <iostream>
#include <sstream>
#include <vector>
#include <thread>
#include <unistd.h>
#include "./examples/examples.h"
using namespace std;
using namespace Smoren::ThreadSafeContainers;
using namespace Smoren::ThreadSafeContainers::Examples;
int main()
{
testClusterGroup();
testClusterMap();
test... | 18.136364 | 55 | 0.729323 | Smoren |
a43ed75b771a4d0dc60e53a68433a993d47fe984 | 4,756 | hpp | C++ | include/dynamic_memory_pool.hpp | wuxun-zhang/cpu-memory | c9769c1ff30ab21a3048508afa0e7e4090497e3c | [
"Apache-2.0"
] | 2 | 2021-03-15T12:11:15.000Z | 2021-03-16T06:03:33.000Z | include/dynamic_memory_pool.hpp | wuxun-zhang/cpu-memory | c9769c1ff30ab21a3048508afa0e7e4090497e3c | [
"Apache-2.0"
] | 1 | 2021-08-13T07:09:47.000Z | 2021-08-16T00:41:05.000Z | include/dynamic_memory_pool.hpp | wuxun-zhang/cpu-memory | c9769c1ff30ab21a3048508afa0e7e4090497e3c | [
"Apache-2.0"
] | null | null | null | #ifndef DYNAMIC_MEMORY_POOL_HPP_
#define DYNAMIC_MEMORY_POOL_HPP_
#include <iostream>
#include <memory>
#include <vector>
namespace dynamic_mempool {
// Memory pool with dynamic management
// Implemented by two list
// * allocated_list_ -> list of memory chunks being allocated
// * free_list_ -> list of memory chunk... | 29.358025 | 77 | 0.514718 | wuxun-zhang |
a445c2c1a6b3c39db40c19f6986f1a35cd862b86 | 3,611 | cpp | C++ | HDUOJ/4858/partitioning.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | 2 | 2018-02-14T01:59:31.000Z | 2018-03-28T03:30:45.000Z | HDUOJ/4858/partitioning.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | null | null | null | HDUOJ/4858/partitioning.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | 2 | 2017-12-30T02:46:35.000Z | 2018-03-28T03:30:49.000Z | #include <iostream>
#include <cstdio>
#include <algorithm>
#include <cmath>
#include <string>
#include <cstring>
#include <iomanip>
#include <climits>
#include <vector>
#include <queue>
#include <map>
#include <set>
#include <stack>
#include <functional>
#include <iterator>
#define EDGE_SIZE 200200
#define VERTEX_SIZE ... | 20.872832 | 86 | 0.439767 | codgician |
a44c19dc556b4ed7eba4e8e3d1d8d864b672589f | 1,615 | cpp | C++ | Source/Services/Multiplayer/Manager/multiplayer_event.cpp | blgrossMS/xbox-live-api | 17c586336e11f0fa3a2a3f3acd665b18c5487b24 | [
"MIT"
] | 2 | 2021-07-17T13:34:20.000Z | 2022-01-09T00:55:51.000Z | Source/Services/Multiplayer/Manager/multiplayer_event.cpp | blgrossMS/xbox-live-api | 17c586336e11f0fa3a2a3f3acd665b18c5487b24 | [
"MIT"
] | null | null | null | Source/Services/Multiplayer/Manager/multiplayer_event.cpp | blgrossMS/xbox-live-api | 17c586336e11f0fa3a2a3f3acd665b18c5487b24 | [
"MIT"
] | 1 | 2018-11-18T08:32:40.000Z | 2018-11-18T08:32:40.000Z | //*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
// PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
/... | 23.071429 | 63 | 0.714551 | blgrossMS |
a455254643a136be7fd269a32d33de842ed3d6f9 | 1,698 | cpp | C++ | Basics.cpp | AMasquelier/Pokemon-Grey | 319d24f89919e7b36632f67df2f9a6a26206878f | [
"MIT"
] | 2 | 2019-03-30T17:49:17.000Z | 2021-11-01T20:04:11.000Z | Basics.cpp | AMasquelier/Pokemon-Grey | 319d24f89919e7b36632f67df2f9a6a26206878f | [
"MIT"
] | null | null | null | Basics.cpp | AMasquelier/Pokemon-Grey | 319d24f89919e7b36632f67df2f9a6a26206878f | [
"MIT"
] | null | null | null | #include "Basics.h"
int Display_info::width = 0;
int Display_info::height = 0;
SDL_Renderer *Display_info::renderer;
void Chrono::Begin()
{
begin = chrono::high_resolution_clock::now();
}
double Chrono::GetDelay()
{
chrono::duration<double> time_span = chrono::high_resolution_clock::now() - begin;
... | 16.485437 | 93 | 0.61543 | AMasquelier |
a4554743eb4c49ef512faad61b35a1e2ebae2125 | 1,084 | cpp | C++ | archive/3/pisemne_rachunki.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | 2 | 2019-05-04T09:37:09.000Z | 2019-05-22T18:07:28.000Z | archive/3/pisemne_rachunki.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | null | null | null | archive/3/pisemne_rachunki.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef long long int I;
struct num {
static const I ndigits = 200 + 1;
static const I comma = 100;
I digits[ndigits + 1];
num() {
fill(digits, digits + ndigits + 1, 0);
}
void add(const num &o) {
for(I i = 0; i < ndigits; ++i) ... | 17.483871 | 49 | 0.433579 | Aleshkev |
a4651e90f56479ddcae5fb641acabf5caa5f6d73 | 432 | cpp | C++ | problems/acmicpc_13164.cpp | qawbecrdtey/BOJ-sol | e3f410e8f4e3a6ade51b68ce2024529870edac64 | [
"MIT"
] | null | null | null | problems/acmicpc_13164.cpp | qawbecrdtey/BOJ-sol | e3f410e8f4e3a6ade51b68ce2024529870edac64 | [
"MIT"
] | null | null | null | problems/acmicpc_13164.cpp | qawbecrdtey/BOJ-sol | e3f410e8f4e3a6ade51b68ce2024529870edac64 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
int n, k;
cin >> n >> k;
auto a = new int[n];
auto b = new int[n - 1];
for(int i = 0; i < n; i++) {
cin >> a[i];
if(i) b[i - 1] = a[i] - a[i - 1];
}
sort(b, b +... | 19.636364 | 35 | 0.502315 | qawbecrdtey |
a466bcac9039b3ab788116846444c54ceba0566d | 1,187 | cpp | C++ | template-specialization/main.cpp | ammarhusain/cpp-sandbox | ff69ebfe55020b33ddc418928080b86f84d7539f | [
"MIT"
] | null | null | null | template-specialization/main.cpp | ammarhusain/cpp-sandbox | ff69ebfe55020b33ddc418928080b86f84d7539f | [
"MIT"
] | null | null | null | template-specialization/main.cpp | ammarhusain/cpp-sandbox | ff69ebfe55020b33ddc418928080b86f84d7539f | [
"MIT"
] | null | null | null | // Copyright (C) 2016 Ammar Husain. All Rights Reserved.
#include <iostream> // std::cout
#include <sstream>
#include <string>
#include <typeinfo>
#include <vector>
struct MyObj {
MyObj() { std::cout << "Constructing MyObj." << std::endl; }
};
struct MyObj2 {
MyObj2() { std::cout << "Constructing MyObj2." << std... | 28.95122 | 80 | 0.679023 | ammarhusain |
a46a7bf2d2a386c68b473e17e4fb5ac918b28537 | 3,009 | hpp | C++ | proto_server/core/protocol/http/http_parse_routines.hpp | tseyler/proto-server | e3a45dc64e8081deaad5a8a59560878c2b0bfdc1 | [
"MIT"
] | null | null | null | proto_server/core/protocol/http/http_parse_routines.hpp | tseyler/proto-server | e3a45dc64e8081deaad5a8a59560878c2b0bfdc1 | [
"MIT"
] | null | null | null | proto_server/core/protocol/http/http_parse_routines.hpp | tseyler/proto-server | e3a45dc64e8081deaad5a8a59560878c2b0bfdc1 | [
"MIT"
] | null | null | null | //
// http_parse_routines.hpp - parsing routines for HTTP messages
// part of the proto-server library
//
// Copyright (c) 2015, 2016 Terry Seyler
//
// Distributed under the MIT License
// See accompanying file LICENSE.md
//
#ifndef HTTP_PARSE_ROUTINES_HPP_
#define HTTP_PARSE_ROUTINES_HPP_
#include <string>
#in... | 29.792079 | 97 | 0.7554 | tseyler |
a46e30c545e2eeeef6caf5d1aa97973197893091 | 808 | cpp | C++ | src/ixy.cpp | ixy-languages/ixy.cpp | c927c418b7ec350c4cc41f3795a1e8d346d1ea16 | [
"MIT"
] | 10 | 2020-07-03T16:26:51.000Z | 2022-01-17T09:39:04.000Z | src/ixy.cpp | ixy-languages/ixy.cpp | c927c418b7ec350c4cc41f3795a1e8d346d1ea16 | [
"MIT"
] | null | null | null | src/ixy.cpp | ixy-languages/ixy.cpp | c927c418b7ec350c4cc41f3795a1e8d346d1ea16 | [
"MIT"
] | 1 | 2020-07-14T09:47:19.000Z | 2020-07-14T09:47:19.000Z | #include "ixy/ixy.hpp"
#include "pci.hpp"
#include "ixgbe.hpp"
#include <fstream>
namespace ixy {
auto ixy_init(const std::string &pci_addr, uint16_t rx_queues, uint16_t tx_queues) -> std::unique_ptr<IxyDevice> {
auto config = pci_open_resource(pci_addr, "config", std::ifstream::in);
auto vendor_id = read_... | 23.764706 | 114 | 0.628713 | ixy-languages |
a4775e5eb3cfe5884fa0257056dfe2af7e604d82 | 5,145 | cpp | C++ | src/memory.cpp | networkfusion/usb64 | 582ca88774bc7ad7270482c3a1ec9224c6e056c2 | [
"MIT"
] | null | null | null | src/memory.cpp | networkfusion/usb64 | 582ca88774bc7ad7270482c3a1ec9224c6e056c2 | [
"MIT"
] | null | null | null | src/memory.cpp | networkfusion/usb64 | 582ca88774bc7ad7270482c3a1ec9224c6e056c2 | [
"MIT"
] | null | null | null | // Copyright 2020, Ryan Wendland, usb64
// SPDX-License-Identifier: MIT
/* usb64 memory is buffered into RAM to prevent SD card latency causing issues.
* - Smaller ram blocks are allocated to internal RAM. If internal alloc failes, external RAM is used
* - Larger RAM blocks, (Like gameboy ROMS) are directly all... | 35.239726 | 147 | 0.573761 | networkfusion |
a47ae268e9ce368e7ea9de8de576189c1ab05c11 | 5,186 | hpp | C++ | cpp/src/cylon/indexing/indexer.hpp | Sandeepa1995/cylon | a42d04ad9a65b20c84a15d649f9d849f18676183 | [
"Apache-2.0"
] | null | null | null | cpp/src/cylon/indexing/indexer.hpp | Sandeepa1995/cylon | a42d04ad9a65b20c84a15d649f9d849f18676183 | [
"Apache-2.0"
] | null | null | null | cpp/src/cylon/indexing/indexer.hpp | Sandeepa1995/cylon | a42d04ad9a65b20c84a15d649f9d849f18676183 | [
"Apache-2.0"
] | null | null | null |
#ifndef CYLON_SRC_CYLON_INDEXING_INDEXER_H_
#define CYLON_SRC_CYLON_INDEXING_INDEXER_H_
#include "index.hpp"
#include "table.hpp"
namespace cylon {
bool CheckIsIndexValueUnique(const std::shared_ptr<arrow::Scalar> &index_value,
const std::shared_ptr<BaseArrowIndex> &index);
/**
* Loc operations
* */
cla... | 34.118421 | 108 | 0.71963 | Sandeepa1995 |
a47b8282bb4dec6d84bc94c1c305131f14c41083 | 12,724 | cpp | C++ | test/unit-tests/cbor-test.cpp | malachi-iot/mc-coap | 425b5b77e1474a9ad34aaf6d56df8bd76a1acf39 | [
"MIT"
] | 3 | 2019-11-15T19:38:41.000Z | 2020-08-08T14:46:14.000Z | test/unit-tests/cbor-test.cpp | malachi-iot/mc-coap | 425b5b77e1474a9ad34aaf6d56df8bd76a1acf39 | [
"MIT"
] | null | null | null | test/unit-tests/cbor-test.cpp | malachi-iot/mc-coap | 425b5b77e1474a9ad34aaf6d56df8bd76a1acf39 | [
"MIT"
] | null | null | null | #include <catch.hpp>
#include <string.h>
#include "cbor/encoder.h"
#include "cbor/decoder.h"
#if __cplusplus >= 201103L
#include "platform/generic/malloc_netbuf.h"
#endif
#include "test-data.h"
using namespace moducom;
static const uint8_t* cbor_assert(CBOR::Decoder& decoder, const uint8_t* v, std::string expected)... | 30.223278 | 111 | 0.609085 | malachi-iot |
a47e80ae68fba65379a97aba5cb478f4724a1585 | 4,461 | cpp | C++ | KFPlugin/KFActivity/KFActivityConfig.cpp | 282951387/KFrame | 5d6e953f7cc312321c36632715259394ca67144c | [
"Apache-2.0"
] | 1 | 2021-04-26T09:31:32.000Z | 2021-04-26T09:31:32.000Z | KFPlugin/KFActivity/KFActivityConfig.cpp | 282951387/KFrame | 5d6e953f7cc312321c36632715259394ca67144c | [
"Apache-2.0"
] | null | null | null | KFPlugin/KFActivity/KFActivityConfig.cpp | 282951387/KFrame | 5d6e953f7cc312321c36632715259394ca67144c | [
"Apache-2.0"
] | null | null | null | #include "KFActivityConfig.hpp"
namespace KFrame
{
void KFActivitySetting::AddActivityData( KFActivityData* data )
{
_datas[ data->_id ] = data;
if ( _max_value < data->_done_value )
{
_max_value = data->_done_value;
}
}
const KFActivityData* KFActivitySet... | 25.936047 | 128 | 0.528805 | 282951387 |
a482fbc9326192513d26eeff7e518a85e93caf97 | 636 | cpp | C++ | genes_indexing.cpp | mr-eyes/guidedPartitioner | f42d152febe651b5d6e5102db680a47685797c98 | [
"BSD-3-Clause"
] | null | null | null | genes_indexing.cpp | mr-eyes/guidedPartitioner | f42d152febe651b5d6e5102db680a47685797c98 | [
"BSD-3-Clause"
] | 1 | 2020-05-21T00:45:31.000Z | 2020-05-21T00:45:31.000Z | genes_indexing.cpp | mr-eyes/guidedPartitioner | f42d152febe651b5d6e5102db680a47685797c98 | [
"BSD-3-Clause"
] | null | null | null | #include "colored_kDataFrame.hpp"
#include "algorithms.hpp"
#include <string>
#include <iostream>
using namespace std;
int main(int argc, char **argv) {
if (argc != 3) {
cerr << "run ./genesIndexing <fasta_file> <names_mape>" << endl;
exit(1);
}
string fasta_file = argv[1];
string na... | 21.2 | 103 | 0.619497 | mr-eyes |
a4833146709369c6998a0e636e7e4e0b72033c4d | 2,373 | hpp | C++ | include/Bubblewrap/Render/Sprite.hpp | Dezzles/bubblewrap | d8a4c2e56c4253063e5dc5d6142e5c1de3e356cf | [
"MIT"
] | 3 | 2015-04-13T22:59:34.000Z | 2016-07-23T23:20:42.000Z | include/Bubblewrap/Render/Sprite.hpp | Dezzles/bubblewrap | d8a4c2e56c4253063e5dc5d6142e5c1de3e356cf | [
"MIT"
] | 4 | 2015-04-10T01:20:14.000Z | 2015-05-20T01:23:15.000Z | include/Bubblewrap/Render/Sprite.hpp | Dezzles/bubblewrap | d8a4c2e56c4253063e5dc5d6142e5c1de3e356cf | [
"MIT"
] | null | null | null | #ifndef BUBBLEWRAP_RENDER_SPRITE_HPP
#define BUBBLEWRAP_RENDER_SPRITE_HPP
#include "Bubblewrap/Base/Defines.hpp"
#include "Bubblewrap/Render/Drawable.hpp"
#include "Bubblewrap/Math/Vector2.hpp"
#include "Bubblewrap/Render/Colour.hpp"
#include "Bubblewrap/Render/Window.hpp"
#include "Bubblewrap/Render/Texture.hpp"
#inc... | 25.516129 | 84 | 0.681837 | Dezzles |
a4833b37edc85ebbf442162f192beddf3df9dc5a | 2,954 | cpp | C++ | simple_tree.cpp | ujjaldas1997/Competitive-programming | f8526161b3b14056633ec290b0c65ba762e8552e | [
"MIT"
] | null | null | null | simple_tree.cpp | ujjaldas1997/Competitive-programming | f8526161b3b14056633ec290b0c65ba762e8552e | [
"MIT"
] | null | null | null | simple_tree.cpp | ujjaldas1997/Competitive-programming | f8526161b3b14056633ec290b0c65ba762e8552e | [
"MIT"
] | null | null | null | #include<iostream>
#include<queue>
#include<string>
using namespace std;
struct node{
int data = 0;
node* left = nullptr;
node* right = nullptr;
};
void construct(struct node* &tree)
{
tree->data = 66;
tree->left = new node;
tree->right = new node;
tree->left->left = new node;
tree->left->left->left = new node;... | 27.867925 | 67 | 0.635071 | ujjaldas1997 |
a48478e5104a5607d07ba325ca46f5415d70dc4c | 20,165 | cpp | C++ | schunk_pg70/src/pg70_rs232_control_lib.cpp | gstavrinos/schunk_grippers | f1ef0990b129e5e910c309f06d4e1211f063117d | [
"BSD-2-Clause"
] | 6 | 2019-04-24T05:25:47.000Z | 2022-02-24T02:59:37.000Z | schunk_pg70/src/pg70_rs232_control_lib.cpp | gstavrinos/schunk_grippers | f1ef0990b129e5e910c309f06d4e1211f063117d | [
"BSD-2-Clause"
] | 1 | 2018-07-31T10:41:22.000Z | 2018-07-31T10:41:22.000Z | schunk_pg70/src/pg70_rs232_control_lib.cpp | gstavrinos/schunk_grippers | f1ef0990b129e5e910c309f06d4e1211f063117d | [
"BSD-2-Clause"
] | 7 | 2015-09-16T08:10:32.000Z | 2022-02-24T02:59:38.000Z | /*********************************************************************************************//**
* @file pg70_rs232_control_lib.cpp
*
* Copyright (c)
* SmartRoboticSystems
* September 2015
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted pro... | 35.069565 | 109 | 0.658716 | gstavrinos |
a48b6376f0bf97d1fa0966d9345595a798678735 | 51 | hpp | C++ | src/boost_geometry_index_adaptors_query.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_geometry_index_adaptors_query.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_geometry_index_adaptors_query.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/geometry/index/adaptors/query.hpp>
| 25.5 | 50 | 0.803922 | miathedev |
a48bfa74aadca9b9ee9922d93465d1a8c7e2cdac | 4,102 | cpp | C++ | MonoNative.Tests/mscorlib/System/mscorlib_System_MissingMethodException_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 7 | 2015-03-10T03:36:16.000Z | 2021-11-05T01:16:58.000Z | MonoNative.Tests/mscorlib/System/mscorlib_System_MissingMethodException_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | 1 | 2020-06-23T10:02:33.000Z | 2020-06-24T02:05:47.000Z | MonoNative.Tests/mscorlib/System/mscorlib_System_MissingMethodException_Fixture.cpp | brunolauze/MonoNative | 959fb52c2c1ffe87476ab0d6e4fcce0ad9ce1e66 | [
"BSD-2-Clause"
] | null | null | null | // Mono Native Fixture
// Assembly: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
// Namespace: System
// Name: MissingMethodException
// C++ Typed Name: mscorlib::System::MissingMethodException
#include <gtest/gtest.h>
#include <mscorlib/System/mscorlib_System_MissingMethodException.h>
... | 24.129412 | 106 | 0.741589 | brunolauze |
a4a5622da7c60457c52107d07bd3cbf1947c9603 | 3,085 | cpp | C++ | codes/CF/CF_1477B.cpp | chessbot108/solved-problems | 0945be829a8ea9f0d5896c89331460d70d076691 | [
"MIT"
] | 2 | 2021-03-07T03:34:02.000Z | 2021-03-09T01:22:21.000Z | codes/CF/CF_1477B.cpp | chessbot108/solved-problems | 0945be829a8ea9f0d5896c89331460d70d076691 | [
"MIT"
] | 1 | 2021-03-27T15:01:23.000Z | 2021-03-27T15:55:34.000Z | codes/CF/CF_1477B.cpp | chessbot108/solved-problems | 0945be829a8ea9f0d5896c89331460d70d076691 | [
"MIT"
] | 1 | 2021-03-27T05:02:33.000Z | 2021-03-27T05:02:33.000Z | //gyrating cat enthusiast
#include <iostream>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <string>
#include <utility>
#include <cassert>
#include <algorithm>
#include <vector>
#include <random>
#include <chrono>
#include <queue>
#include <set>
#define ll long long
#define lb long double
#define pi... | 22.851852 | 71 | 0.52188 | chessbot108 |
a4a8a1ed911431881b4d017aadc0c76115a6182b | 3,170 | cpp | C++ | src/ortho_eop.cpp | whulizhen/iers2010 | 3b1c9587510074a7658e0042ce6b1e737560ca23 | [
"WTFPL"
] | null | null | null | src/ortho_eop.cpp | whulizhen/iers2010 | 3b1c9587510074a7658e0042ce6b1e737560ca23 | [
"WTFPL"
] | null | null | null | src/ortho_eop.cpp | whulizhen/iers2010 | 3b1c9587510074a7658e0042ce6b1e737560ca23 | [
"WTFPL"
] | 2 | 2017-08-01T22:01:45.000Z | 2018-10-13T09:06:04.000Z | #include "iers2010.hpp"
#ifdef USE_EXTERNAL_CONSTS
#include "gencon.hpp"
#endif
#ifdef QUICK_EXIT
#include <algorithm>
#endif
/**
* @details The purpose of the function is to compute the diurnal and semi-
* diurnal variations in Earth Orientation Parameters (x,y, UT1) from
* ocean tid... | 33.723404 | 79 | 0.580126 | whulizhen |
a4b212d4b18080f5e1a6d9315bb88fd7fb4bac98 | 1,981 | cc | C++ | packages/utilities/KD_Tree.cc | brbass/ibex | 5a4cc5b4d6d46430d9667970f8a34f37177953d4 | [
"MIT"
] | 2 | 2020-04-13T20:06:41.000Z | 2021-02-12T17:55:54.000Z | packages/utilities/KD_Tree.cc | brbass/ibex | 5a4cc5b4d6d46430d9667970f8a34f37177953d4 | [
"MIT"
] | 1 | 2018-10-22T21:03:35.000Z | 2018-10-22T21:03:35.000Z | packages/utilities/KD_Tree.cc | brbass/ibex | 5a4cc5b4d6d46430d9667970f8a34f37177953d4 | [
"MIT"
] | 3 | 2019-04-03T02:15:37.000Z | 2022-01-04T05:50:23.000Z | #include "KD_Tree.hh"
#include "Check.hh"
using namespace std;
KD_Tree::
KD_Tree(int dimension,
int number_of_points,
vector<vector<double> > const &points):
dimension_(dimension),
number_of_points_(number_of_points),
points_(points)
{
Assert(dimension >= 1);
adaptor_ = make_... | 27.901408 | 75 | 0.594649 | brbass |
a4b4f913cdae52e2459965429076ff57a52a73c8 | 690 | hpp | C++ | src/include/InputHandler.hpp | iluvpy/Minigames | f04dc78a24368f9a6021f02584c1989204ba10b6 | [
"MIT"
] | null | null | null | src/include/InputHandler.hpp | iluvpy/Minigames | f04dc78a24368f9a6021f02584c1989204ba10b6 | [
"MIT"
] | null | null | null | src/include/InputHandler.hpp | iluvpy/Minigames | f04dc78a24368f9a6021f02584c1989204ba10b6 | [
"MIT"
] | null | null | null | #pragma once
#include <unordered_map>
#include <SDL2/SDL.h>
#include "Types.hpp"
#include "Structs.hpp"
class InputHandler {
public:
void PressKey(const SDL_Event& e);
void ReleaseKey(const SDL_Event& e);
void PressMouseButton(const SDL_Event& e);
void ReleaseMouseButton(const SDL_Event& e);
bool... | 27.6 | 55 | 0.724638 | iluvpy |
8a5b19afa21c84f27cf7735ea9cd2a7cd2dccb48 | 3,874 | cpp | C++ | src/CodeXformAction.cpp | xiaohongchen1991/clang-xform | bd0cf899760b53b24e10ca4baab3c4e281535b97 | [
"MIT"
] | 2 | 2020-02-18T18:09:45.000Z | 2020-05-10T18:38:38.000Z | src/CodeXformAction.cpp | xiaohongchen1991/clang-xform | bd0cf899760b53b24e10ca4baab3c4e281535b97 | [
"MIT"
] | null | null | null | src/CodeXformAction.cpp | xiaohongchen1991/clang-xform | bd0cf899760b53b24e10ca4baab3c4e281535b97 | [
"MIT"
] | 1 | 2020-02-18T18:09:48.000Z | 2020-02-18T18:09:48.000Z | /*
MIT License
Copyright (c) 2019 Xiaohong Chen
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, merg... | 36.205607 | 92 | 0.68921 | xiaohongchen1991 |
8a6044e0160a2cfde1cbf47070a84043bb5a6381 | 357 | cpp | C++ | src/world/entity/Wall.cpp | Tastyep/SFML-GameCore-2D | 51dfcd7f3a098b2efa76754703999c6b8d22369d | [
"MIT"
] | null | null | null | src/world/entity/Wall.cpp | Tastyep/SFML-GameCore-2D | 51dfcd7f3a098b2efa76754703999c6b8d22369d | [
"MIT"
] | null | null | null | src/world/entity/Wall.cpp | Tastyep/SFML-GameCore-2D | 51dfcd7f3a098b2efa76754703999c6b8d22369d | [
"MIT"
] | null | null | null | #include "world/entity/Wall.hpp"
namespace World {
namespace Entity {
Wall::Wall(playrho::Body* body, const sf::Sprite& sprite, const App::Command::Dispatcher& commandDispatcher)
: Entity(std::move(body), sprite, commandDispatcher) {}
void Wall::update() {}
Id Wall::id() const {
return Id::Wall;
}
} /* namespa... | 21 | 108 | 0.689076 | Tastyep |
8a63a4ea92d85cd9705336014514576d4446eb5f | 774 | cpp | C++ | addnewuser.cpp | Kwanhooo/LibManagement | 56f7719321159e869c361d86024b62cf8fcb44eb | [
"MIT"
] | null | null | null | addnewuser.cpp | Kwanhooo/LibManagement | 56f7719321159e869c361d86024b62cf8fcb44eb | [
"MIT"
] | null | null | null | addnewuser.cpp | Kwanhooo/LibManagement | 56f7719321159e869c361d86024b62cf8fcb44eb | [
"MIT"
] | null | null | null | #include "addnewuser.h"
#include "ui_addnewuser.h"
addNewUser::addNewUser(QWidget *parent) :
QWidget(parent),
ui(new Ui::addNewUser)
{
ui->setupUi(this);
}
addNewUser::~addNewUser()
{
delete ui;
}
void addNewUser::on_pushButton_clicked()
{
QMessageBox::StandardButton reply;
reply = QMessageBo... | 24.1875 | 164 | 0.622739 | Kwanhooo |
8a6d518b0f121aac93530d85a361df0a5a1ddd97 | 12,349 | cpp | C++ | src/Backends/SDL/BackendTextSDL.cpp | matthew-rindel/TGUI | b4823c12881408d66c8df3896f4609f59bf188fd | [
"Zlib"
] | null | null | null | src/Backends/SDL/BackendTextSDL.cpp | matthew-rindel/TGUI | b4823c12881408d66c8df3896f4609f59bf188fd | [
"Zlib"
] | null | null | null | src/Backends/SDL/BackendTextSDL.cpp | matthew-rindel/TGUI | b4823c12881408d66c8df3896f4609f59bf188fd | [
"Zlib"
] | null | null | null | /////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
//
// TGUI - Texus' Graphical User Interface
// Copyright (C) 2012-2021 Bruno Van de Velde (vdv_b@tgui.eu)
//
// This software is provided 'as-is', without any express or implied warranty.
/... | 38.955836 | 163 | 0.51737 | matthew-rindel |
8a72ffead29cc432424139088fbc956f47cce5a7 | 1,182 | cpp | C++ | aws-cpp-sdk-proton/source/model/UpdateServiceTemplateRequest.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2022-02-10T08:06:54.000Z | 2022-02-10T08:06:54.000Z | aws-cpp-sdk-proton/source/model/UpdateServiceTemplateRequest.cpp | perfectrecall/aws-sdk-cpp | fb8cbebf2fd62720b65aeff841ad2950e73d8ebd | [
"Apache-2.0"
] | 1 | 2021-10-14T16:57:00.000Z | 2021-10-18T10:47:24.000Z | aws-cpp-sdk-proton/source/model/UpdateServiceTemplateRequest.cpp | ravindra-wagh/aws-sdk-cpp | 7d5ff01b3c3b872f31ca98fb4ce868cd01e97696 | [
"Apache-2.0"
] | 1 | 2021-11-09T11:58:03.000Z | 2021-11-09T11:58:03.000Z | /**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/proton/model/UpdateServiceTemplateRequest.h>
#include <aws/core/utils/json/JsonSerializer.h>
#include <utility>
using namespace Aws::Proton::Model;
using namespace Aws::Utils::Json;
us... | 20.37931 | 104 | 0.753807 | perfectrecall |
8a7c0f184ab36ad6bcdcd3d4c37112ceb1a1467a | 374 | hpp | C++ | xtd.forms.native/include/xtd/forms/native/timer.hpp | lineCode/xtd.forms | 53b126a41513b4009870498b9f8e522dfc94c8de | [
"MIT"
] | 1 | 2022-02-04T08:15:31.000Z | 2022-02-04T08:15:31.000Z | xtd.forms.native/include/xtd/forms/native/timer.hpp | lineCode/xtd.forms | 53b126a41513b4009870498b9f8e522dfc94c8de | [
"MIT"
] | null | null | null | xtd.forms.native/include/xtd/forms/native/timer.hpp | lineCode/xtd.forms | 53b126a41513b4009870498b9f8e522dfc94c8de | [
"MIT"
] | null | null | null | #pragma once
#include <xtd/delegate.hpp>
#include <xtd/event_args.hpp>
#include <cstdint>
namespace xtd {
namespace forms {
namespace native {
class timer {
public:
timer() = delete;
static intptr_t create(int32_t interval, const delegate<void(const event_args&)>& tick);
stati... | 20.777778 | 96 | 0.636364 | lineCode |
8a7d29b6810d5c524fc5b3f28dcaa44ab860d380 | 380 | cpp | C++ | c++/remove_duplicate_elements.cpp | ashiishme/hacktoberfest2019 | 159eaac014dc90d62274d26120885e54e50807dd | [
"MIT"
] | null | null | null | c++/remove_duplicate_elements.cpp | ashiishme/hacktoberfest2019 | 159eaac014dc90d62274d26120885e54e50807dd | [
"MIT"
] | null | null | null | c++/remove_duplicate_elements.cpp | ashiishme/hacktoberfest2019 | 159eaac014dc90d62274d26120885e54e50807dd | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
int main()
{
int i,j,k,n,a[30];
cout<<"How many elements? "; cin>>n;
cout<<"Enter elements of array\n";
for(i=0;i<n;i++)
cin>>a[i];
for(i=0;i<n;i++)
for(j=i+1;j<n;)
if(a[i]==a[j]){
for(k=j;k<n-1;++k)
a[k]=a[k+1];
--n;
}
else{ +... | 16.521739 | 38 | 0.455263 | ashiishme |
8a7d6116993688251c1cbf9b04c3fd214083c495 | 1,423 | cpp | C++ | sites/google_codejam/2020/qualification/3_Parenting_Partnering_Returns/3.cpp | NoelBird/chocochip | 7ab9477b9e4153927805c9473ee44a15d809b549 | [
"MIT"
] | null | null | null | sites/google_codejam/2020/qualification/3_Parenting_Partnering_Returns/3.cpp | NoelBird/chocochip | 7ab9477b9e4153927805c9473ee44a15d809b549 | [
"MIT"
] | null | null | null | sites/google_codejam/2020/qualification/3_Parenting_Partnering_Returns/3.cpp | NoelBird/chocochip | 7ab9477b9e4153927805c9473ee44a15d809b549 | [
"MIT"
] | null | null | null | // 전에 제출은 왜 틀렸는지 모르겠음...
#include<bits/stdc++.h>
#define all(x) (x).begin(), (x).end()
#define rep(i, n) for(int i=0; i<n; i++)
using namespace std;
typedef vector<int> vi;
typedef vector<vi> vvi;
//4
//3
//360 480
//420 540
//600 660
//3
//0 1440
//1 3
//2 4
//5
//99 150
//1 100
//100 301
//2 5
//150 250
//2
//0... | 13.552381 | 50 | 0.524245 | NoelBird |
8a7ffb081b8e17e47254c3756fd78e42f8ecf1d5 | 7,455 | cpp | C++ | Graphics/DisplayComponent.cpp | michalzaw/vbcpp | 911896898d2cbf6a223e3552801c5207e0c2aef2 | [
"MIT"
] | 9 | 2020-06-09T20:43:35.000Z | 2022-02-23T17:45:44.000Z | Graphics/DisplayComponent.cpp | michalzaw/vbcpp | 911896898d2cbf6a223e3552801c5207e0c2aef2 | [
"MIT"
] | null | null | null | Graphics/DisplayComponent.cpp | michalzaw/vbcpp | 911896898d2cbf6a223e3552801c5207e0c2aef2 | [
"MIT"
] | 1 | 2021-01-04T14:01:12.000Z | 2021-01-04T14:01:12.000Z | #include "DisplayComponent.h"
#include "../Scene/SceneObject.h"
#include "../Graphics/RenderObject.h"
#include "../Graphics/Renderer.h"
DisplayComponent::DisplayComponent(RDisplayFont* font, int displayWidth, int displayHeight)
: Component(CT_DISPLAY),
_font(font), _displayWidth(displayWidth), _displayHeight(disp... | 25.016779 | 157 | 0.701945 | michalzaw |
8a845ed8164d50f6301924f46fd928ac595ca900 | 7,517 | cpp | C++ | src/lib/navigation/completer/locationcompleterrefreshjob.cpp | pejakm/qupzilla | c1901cd81d9d3488a7dc1f25b777fb56f67cb39e | [
"BSD-3-Clause"
] | 1 | 2019-05-07T15:00:56.000Z | 2019-05-07T15:00:56.000Z | src/lib/navigation/completer/locationcompleterrefreshjob.cpp | pejakm/qupzilla | c1901cd81d9d3488a7dc1f25b777fb56f67cb39e | [
"BSD-3-Clause"
] | null | null | null | src/lib/navigation/completer/locationcompleterrefreshjob.cpp | pejakm/qupzilla | c1901cd81d9d3488a7dc1f25b777fb56f67cb39e | [
"BSD-3-Clause"
] | null | null | null | /* ============================================================
* QupZilla - WebKit based browser
* Copyright (C) 2014 David Rosca <nowrep@gmail.com>
*
* 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 Found... | 33.261062 | 135 | 0.666755 | pejakm |
8a8810705157efeb6c3bd096389f5ab230e71ea2 | 649 | cpp | C++ | custom-template.cpp | AwesomenessIOI/stellar-enigma | 0777bb05da950d9ebc86dcb9d01bc79f75bfb7b9 | [
"MIT"
] | null | null | null | custom-template.cpp | AwesomenessIOI/stellar-enigma | 0777bb05da950d9ebc86dcb9d01bc79f75bfb7b9 | [
"MIT"
] | null | null | null | custom-template.cpp | AwesomenessIOI/stellar-enigma | 0777bb05da950d9ebc86dcb9d01bc79f75bfb7b9 | [
"MIT"
] | null | null | null | #include "stellar-enigma.hpp"
//this file contains custom elements. Data and functions for the game go in this file
void customInit(MapData& md) {
//custom initialization goes here
//such as registering sound, initializing player, etc.
}
//an event#Handle function is needed for each mode the game uses
... | 29.5 | 87 | 0.707242 | AwesomenessIOI |
8a885d7562dabb50aa76fe9bcb995c9b79a7316f | 14,574 | cpp | C++ | source/qttokenedit/source/TokenEdit.cpp | mjendruk/qttokenedit | 29940ac0091a3f5088dbfc7745b10f552cdc4cb1 | [
"MIT"
] | 4 | 2020-03-24T12:56:21.000Z | 2021-01-20T03:22:05.000Z | source/qttokenedit/source/TokenEdit.cpp | mjendruk/qttokenedit | 29940ac0091a3f5088dbfc7745b10f552cdc4cb1 | [
"MIT"
] | null | null | null | source/qttokenedit/source/TokenEdit.cpp | mjendruk/qttokenedit | 29940ac0091a3f5088dbfc7745b10f552cdc4cb1 | [
"MIT"
] | null | null | null | #include <qttokenedit/TokenEdit.h>
#include <algorithm>
#include <QtCore/QScopedValueRollback>
#include <QtCore/QTimer>
#include <QtCore/QtGlobal>
#include <QtGui/QKeyEvent>
#include <QtWidgets/QApplication>
#include <QtWidgets/QLineEdit>
#include <QtWidgets/QScrollArea>
#include <QtWidgets/QScrollBar>
#include <qtt... | 25.840426 | 85 | 0.681282 | mjendruk |
8a8ab80fe74590149cd82482d7ed7039cbd73c68 | 1,358 | cpp | C++ | module/ingress/src/ingress.cpp | ewb4/HDTN | a0e577351bd28c3aeb7e656e03a2d93cf84712a0 | [
"NASA-1.3"
] | 6 | 2021-11-12T16:27:59.000Z | 2022-03-09T16:25:57.000Z | module/ingress/src/ingress.cpp | ewb4/HDTN | a0e577351bd28c3aeb7e656e03a2d93cf84712a0 | [
"NASA-1.3"
] | 16 | 2022-02-14T21:58:12.000Z | 2022-03-15T17:31:15.000Z | module/ingress/src/ingress.cpp | ewb4/HDTN | a0e577351bd28c3aeb7e656e03a2d93cf84712a0 | [
"NASA-1.3"
] | 5 | 2021-10-01T18:36:24.000Z | 2022-03-15T21:57:41.000Z | /***************************************************************************
* NASA Glenn Research Center, Cleveland, OH
* Released under the NASA Open Source Agreement (NOSA)
* May 2021
*
* Ingress- CL adapter that accepts traffic in bundle format
****************************************************************... | 41.151515 | 124 | 0.618557 | ewb4 |
8a928165f8f81070278099d154dd49e761e7b183 | 4,003 | cpp | C++ | Code Chef/Encoded String.cpp | akashmodak97/Competitive-Coding-and-Interview-Problems | a34fcb50378cf4bf4e5fd34e910eb68a1c05c066 | [
"MIT"
] | 51 | 2020-02-24T11:14:00.000Z | 2022-03-24T09:32:18.000Z | Code Chef/Encoded String.cpp | akashmodak97/Competitive-Coding-and-Interview-Problems | a34fcb50378cf4bf4e5fd34e910eb68a1c05c066 | [
"MIT"
] | 3 | 2020-10-02T08:16:09.000Z | 2021-04-17T16:32:38.000Z | Code Chef/Encoded String.cpp | akashmodak97/Competitive-Coding-and-Interview-Problems | a34fcb50378cf4bf4e5fd34e910eb68a1c05c066 | [
"MIT"
] | 18 | 2020-04-24T15:33:36.000Z | 2022-03-24T09:32:20.000Z | /* Code Chef */
/* Title - Encoded String */
/* Created By - Akash Modak */
/* Date - 12/01/2021 */
// An encoder encodes the first 16 lowercase English letters using 4 bits each. The first bit (from the left) of the code is 0 if the letter lies among the first 8 letters, else it is 1, signifying that it lies amo... | 38.12381 | 531 | 0.455908 | akashmodak97 |
8a94b24715ac8669dd1739b9b5da1f3817fe28e2 | 1,273 | hpp | C++ | include/libtorrent/ed25519.hpp | usertex/lib2 | c7eb76593cb328c25f762a976485abbfd38694bb | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | include/libtorrent/ed25519.hpp | usertex/lib2 | c7eb76593cb328c25f762a976485abbfd38694bb | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | include/libtorrent/ed25519.hpp | usertex/lib2 | c7eb76593cb328c25f762a976485abbfd38694bb | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | #ifndef ED25519_HPP
#define ED25519_HPP
#include "libtorrent/export.hpp" // for TORRENT_EXPORT
#include <stddef.h> // for size_t
enum
{
ed25519_seed_size = 32,
ed25519_private_key_size = 64,
ed25519_public_key_size = 32,
ed25519_signature_size = 64,
ed25519_scalar_size = 32,
ed25519_shared_secret_size = 32
};
... | 36.371429 | 176 | 0.803614 | usertex |
8a98a28969c42af57cdb4b3c7523b75f7a02a129 | 7,102 | cpp | C++ | lib/IRremoteESP8266/test/ir_Transcold_test.cpp | Eliauk-Forever/JARVIS | 69569e530f0bc66c90bc2ba2a266edb65006bd6f | [
"MulanPSL-1.0"
] | 14 | 2019-07-09T09:38:59.000Z | 2022-02-11T13:57:18.000Z | lib/IRremoteESP8266/test/ir_Transcold_test.cpp | Eliauk-Forever/JARVIS | 69569e530f0bc66c90bc2ba2a266edb65006bd6f | [
"MulanPSL-1.0"
] | null | null | null | lib/IRremoteESP8266/test/ir_Transcold_test.cpp | Eliauk-Forever/JARVIS | 69569e530f0bc66c90bc2ba2a266edb65006bd6f | [
"MulanPSL-1.0"
] | 1 | 2021-06-26T22:26:58.000Z | 2021-06-26T22:26:58.000Z | // Copyright 2020 crankyoldgit
#include "IRac.h"
#include "IRrecv.h"
#include "IRrecv_test.h"
#include "IRsend.h"
#include "IRsend_test.h"
#include "gtest/gtest.h"
// Tests for decodeTranscold().
TEST(TestDecodeTranscold, RealExample) {
IRsendTest irsend(kGpioUnused);
IRrecv irrecv(kGpioUnused);
// Ref: https:... | 33.658768 | 123 | 0.731484 | Eliauk-Forever |
8a9c5820f91eecec5f03a8925e7dbda259cf1aa2 | 6,473 | hpp | C++ | include/coring/buffer_pool.hpp | rzbdz/libcoring | dffd4c2193ac4f2ab8822b5e047c056d6eb11f8d | [
"MIT"
] | 4 | 2022-01-08T21:03:07.000Z | 2022-02-18T11:15:10.000Z | include/coring/buffer_pool.hpp | rzbdz/libcoring | dffd4c2193ac4f2ab8822b5e047c056d6eb11f8d | [
"MIT"
] | null | null | null | include/coring/buffer_pool.hpp | rzbdz/libcoring | dffd4c2193ac4f2ab8822b5e047c056d6eb11f8d | [
"MIT"
] | null | null | null |
#ifndef CORING_BUFFER_POOL_HPP
#define CORING_BUFFER_POOL_HPP
#include <list>
#include <functional>
#ifndef NO_IO_CONTEXT
#include "coring/io_context.hpp"
#endif
#include "coring/buffer.hpp"
#include "coring/detail/io_utils.hpp"
#include "coring/detail/noncopyable.hpp"
namespace coring::detail {
struct buffer_id_t {... | 31.42233 | 117 | 0.677893 | rzbdz |
8a9d4422f7884fb433bf766d74566e164fdf4e9c | 2,836 | cpp | C++ | Game/FinFan/Input.cpp | aldonunez/FinFan_script | eca35c0983252cc0f1536ec15c294cd726883ca6 | [
"Apache-2.0"
] | 4 | 2021-02-11T18:48:01.000Z | 2021-12-02T18:12:50.000Z | Game/FinFan/Input.cpp | aldonunez/FinFan_script | eca35c0983252cc0f1536ec15c294cd726883ca6 | [
"Apache-2.0"
] | null | null | null | Game/FinFan/Input.cpp | aldonunez/FinFan_script | eca35c0983252cc0f1536ec15c294cd726883ca6 | [
"Apache-2.0"
] | 1 | 2021-02-17T23:25:44.000Z | 2021-02-17T23:25:44.000Z | /*
Copyright 2012 Aldo J. Nunez
Licensed under the Apache License, Version 2.0.
See the LICENSE text file for details.
*/
#include "Common.h"
#include "Input.h"
const int LongKeyTimer = 15;
const int ShortKeyTimer = 6;
static ALLEGRO_KEYBOARD_STATE oldKeyboardState;
static ALLEGRO_KEYBOARD_... | 21.323308 | 76 | 0.560649 | aldonunez |
8a9e683e7de31cd9dcc0413192a0b6b3cf38d663 | 6,626 | cpp | C++ | src/cpimage.cpp | Rob-McKay/CameraControl | 6041ed0837015aad8389c630f064579c48d7b115 | [
"BSD-3-Clause"
] | 1 | 2021-02-25T12:03:51.000Z | 2021-02-25T12:03:51.000Z | src/cpimage.cpp | Rob-McKay/CameraControl | 6041ed0837015aad8389c630f064579c48d7b115 | [
"BSD-3-Clause"
] | null | null | null | src/cpimage.cpp | Rob-McKay/CameraControl | 6041ed0837015aad8389c630f064579c48d7b115 | [
"BSD-3-Clause"
] | null | null | null | //
// main.c
// List Cameras
//
// Created by Rob McKay on 08/01/2021.
//
#define __STDC_WANT_LIB_EXT1__ 1
#include <chrono>
#include <ctime>
#include <thread>
#include "Poco/Util/Application.h"
#include "Poco/Util/HelpFormatter.h"
#include "Poco/Util/IntValidator.h"
#include "Poco/Util/Option.h"
#include "LSCame... | 33.13 | 100 | 0.530637 | Rob-McKay |
8a9f6cccffbf9863fc1160f2fd369895e60d7367 | 10,114 | cpp | C++ | cpu_scheduling.cpp | ShantanuShinde/CPU-Scheduling-Algorithms | e275c3d0d066e7c0d5b81c462690b0d42a9f3112 | [
"MIT"
] | null | null | null | cpu_scheduling.cpp | ShantanuShinde/CPU-Scheduling-Algorithms | e275c3d0d066e7c0d5b81c462690b0d42a9f3112 | [
"MIT"
] | null | null | null | cpu_scheduling.cpp | ShantanuShinde/CPU-Scheduling-Algorithms | e275c3d0d066e7c0d5b81c462690b0d42a9f3112 | [
"MIT"
] | null | null | null | #include<iostream>
#include<fstream>
#include<string>
#include "queue.h"
using namespace std;
void getDataFromFile(int *&arrivalTimes,int *&burstTimes,int *totalBurstTime,int *no_processes)
{
ifstream processFile("processes.txt");
int n = 0,b=0;
while(!processFile.eof()){
string temp;
... | 34.401361 | 766 | 0.46846 | ShantanuShinde |
8aa07de157bcbedf45802f124a00676304859e01 | 212 | hh | C++ | src/tunnuz/json.hh | Barenboim/nativejson-benchmark | 5c13c515443ac885b1b315a452345bbd1937052e | [
"MIT"
] | 1,721 | 2015-03-25T02:21:25.000Z | 2022-03-30T18:01:01.000Z | src/tunnuz/json.hh | Barenboim/nativejson-benchmark | 5c13c515443ac885b1b315a452345bbd1937052e | [
"MIT"
] | 72 | 2015-04-16T03:35:22.000Z | 2021-11-27T19:25:52.000Z | json/json.hh | ENOW-IJI/api | 415fc69fc8f1ad25f1619aca0fa932f92e8b9d09 | [
"Apache-2.0"
] | 305 | 2015-01-30T16:16:54.000Z | 2022-02-21T10:54:22.000Z | #ifndef JSON_HH
#define JSON_HH
#include "json_st.hh" // JSON syntax tree
#include "json.tab.hh" // parser
JSON::Value parse_file(const char* filename);
JSON::Value parse_string(const std::string& s);
#endif | 21.2 | 47 | 0.731132 | Barenboim |
8aa0e7524fe6aa040a6b440a825078379861bce2 | 495 | hpp | C++ | include/depth.hpp | bsamseth/Goldfish | c99cb9f2b14bbd04e0c2a9ae32b78e074ff6199b | [
"MIT"
] | 6 | 2019-01-23T03:13:36.000Z | 2020-09-06T09:54:48.000Z | include/depth.hpp | bsamseth/Goldfish | c99cb9f2b14bbd04e0c2a9ae32b78e074ff6199b | [
"MIT"
] | 33 | 2015-12-28T08:48:01.000Z | 2019-09-25T11:39:53.000Z | include/depth.hpp | bsamseth/Goldfish | c99cb9f2b14bbd04e0c2a9ae32b78e074ff6199b | [
"MIT"
] | 6 | 2018-08-06T14:05:11.000Z | 2022-02-15T01:30:49.000Z | #pragma once
#include "operations.hpp"
namespace goldfish
{
enum Depth : int
{
DEPTH_ZERO = 0,
DEPTH_MAX = 64,
MAX_PLY = 256,
};
ENABLE_FULL_OPERATORS_ON(Depth)
constexpr Depth operator+(Depth v, int i)
{
return Depth(int(v) + i);
}
constexpr Depth operator-(Depth v, int i)
{
return Depth(in... | 14.558824 | 41 | 0.624242 | bsamseth |
8aab7fcb027f59539dbd9556d62a3b93a01c857c | 4,883 | cpp | C++ | test/main.cpp | SpectacularAI/accelerated-arrays | f1bed0dd31275ada44ccfb6c9a20a1ef9ae9eeba | [
"Apache-2.0"
] | 2 | 2020-10-23T09:29:53.000Z | 2021-04-11T20:43:48.000Z | test/main.cpp | SpectacularAI/accelerated-arrays | f1bed0dd31275ada44ccfb6c9a20a1ef9ae9eeba | [
"Apache-2.0"
] | 2 | 2020-10-19T17:22:07.000Z | 2021-01-30T14:51:42.000Z | test/main.cpp | SpectacularAI/accelerated-arrays | f1bed0dd31275ada44ccfb6c9a20a1ef9ae9eeba | [
"Apache-2.0"
] | 1 | 2022-02-25T10:46:22.000Z | 2022-02-25T10:46:22.000Z | // This creates the main() function for the binary that runs the tests.
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <cmath>
#include "cpu/image.hpp"
#include "cpu/operations.hpp"
#ifdef TEST_WITH_OPENGL
#include "opengl/image.hpp"
#include "opengl/operations.hpp"
#endif
TEST_CASE( "CpuImage basics... | 35.384058 | 128 | 0.569117 | SpectacularAI |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.