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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
00940a2d2a02f324c3845e9a512067369e849058 | 570 | cpp | C++ | src/treeitem.cpp | jakobtroidl/Barrio | 55c447325f2e83a21b39c54cdca37b2779d0569c | [
"MIT"
] | null | null | null | src/treeitem.cpp | jakobtroidl/Barrio | 55c447325f2e83a21b39c54cdca37b2779d0569c | [
"MIT"
] | 3 | 2021-11-02T22:24:04.000Z | 2021-11-29T18:01:51.000Z | src/treeitem.cpp | jakobtroidl/Barrio | 55c447325f2e83a21b39c54cdca37b2779d0569c | [
"MIT"
] | null | null | null | #include "treeitem.h"
TreeItem::TreeItem(const QVector<QVariant>& data, TreeItem* parentItem)
:m_itemData(data), m_parentItem(parentItem)
{
}
TreeItem::~TreeItem()
{
}
void TreeItem::appendChild(TreeItem* child)
{
m_childItems.append(child);
}
TreeItem* TreeItem::child(int row)
{
return nullptr;
}
int TreeItem... | 12.12766 | 71 | 0.710526 | jakobtroidl |
0099f28213d21ba94b8f4663d000f92f5a22538c | 2,403 | cpp | C++ | PDFImagesExample/src/ofApp.cpp | emodz/DM-GY-9103-Advanced-Creative-Coding | b1298ed6b0f067715437e51ca5e8f99b95ace01a | [
"MIT"
] | 29 | 2018-01-26T00:34:06.000Z | 2022-02-15T18:51:49.000Z | PDFImagesExample/src/ofApp.cpp | emodz/DM-GY-9103-Advanced-Creative-Coding | b1298ed6b0f067715437e51ca5e8f99b95ace01a | [
"MIT"
] | 2 | 2018-02-16T00:50:17.000Z | 2018-02-16T01:15:34.000Z | PDFImagesExample/src/ofApp.cpp | emodz/DM-GY-9103-Advanced-Creative-Coding | b1298ed6b0f067715437e51ca5e8f99b95ace01a | [
"MIT"
] | 11 | 2018-01-26T00:08:46.000Z | 2019-05-30T05:15:15.000Z | #include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
pdfRendering = false;
ofBackground(225,225,225);
ofSetVerticalSync(true);
grabber.setup(ofGetWidth()/2, ofGetHeight()/2);
}
//--------------------------------------------------------------
void ofApp::update... | 23.330097 | 76 | 0.427382 | emodz |
009d7e145e2cf11aecf3eeb91baf1623cc474051 | 41,098 | cpp | C++ | tx2-setup/robust_pose_graph_optimization/buzz_slam/src/slam/buzz_slam_closures.cpp | SnowCarter/DOOR-SLAM | cf56d2b4b7a21ed7c6445f01600408c9dd5235c6 | [
"MIT"
] | 3 | 2021-07-05T17:59:01.000Z | 2022-03-31T12:46:25.000Z | tx2-setup/robust_pose_graph_optimization/buzz_slam/src/slam/buzz_slam_closures.cpp | SnowCarter/DOOR-SLAM | cf56d2b4b7a21ed7c6445f01600408c9dd5235c6 | [
"MIT"
] | null | null | null | tx2-setup/robust_pose_graph_optimization/buzz_slam/src/slam/buzz_slam_closures.cpp | SnowCarter/DOOR-SLAM | cf56d2b4b7a21ed7c6445f01600408c9dd5235c6 | [
"MIT"
] | 3 | 2020-03-25T16:21:25.000Z | 2021-07-05T16:37:34.000Z | #include "buzz_slam_singleton.h"
namespace buzz_slam {
/****************************************/
/************ Buzz Closures *************/
/****************************************/
static int BuzzInitOptimizer(buzzvm_t vm){
// Initialize optimizer
buzzvm_pushs(vm, buzzvm_string_register(vm, "controller", 1... | 37.260199 | 147 | 0.648036 | SnowCarter |
00a39073167ee47f048a4d633df7158f0a803aad | 2,863 | cpp | C++ | src/image_proc_chain/flexible_chain_executor.cpp | fugashy/image_proc_chain | 176210c4b3b74f58f5a73b5cca07268bcb13c961 | [
"BSD-3-Clause"
] | null | null | null | src/image_proc_chain/flexible_chain_executor.cpp | fugashy/image_proc_chain | 176210c4b3b74f58f5a73b5cca07268bcb13c961 | [
"BSD-3-Clause"
] | null | null | null | src/image_proc_chain/flexible_chain_executor.cpp | fugashy/image_proc_chain | 176210c4b3b74f58f5a73b5cca07268bcb13c961 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2019 fugashy
#include <string>
#include "image_proc_chain/flexible_chain_executor.hpp"
namespace image_proc_chain {
FlexibleChainExecutor::FlexibleChainExecutor(
rclcpp::Node::SharedPtr& node, const uint32_t default_num)
: node_(node) {
piece_nodes_.resize(default_num);
chain_pieces_.resize(... | 36.705128 | 96 | 0.671324 | fugashy |
00a4f618a9af55e0fa62c0b0aa5e29b58496b295 | 3,935 | cpp | C++ | PhysBody3D.cpp | CITMProject3/Project3 | 5076dbaf4eced4eb69bb43b811684206e62eded4 | [
"MIT"
] | 3 | 2017-04-02T19:37:52.000Z | 2018-11-06T13:37:33.000Z | PhysBody3D.cpp | CITMProject3/Project3 | 5076dbaf4eced4eb69bb43b811684206e62eded4 | [
"MIT"
] | 74 | 2017-04-03T14:32:09.000Z | 2017-06-08T10:12:56.000Z | PhysBody3D.cpp | CITMProject3/Project3 | 5076dbaf4eced4eb69bb43b811684206e62eded4 | [
"MIT"
] | 3 | 2017-06-06T17:10:46.000Z | 2019-10-28T16:25:27.000Z | #include "PhysBody3D.h"
#include "Globals.h"
#include "Bullet\include\btBulletDynamicsCommon.h"
// =================================================
PhysBody3D::PhysBody3D(btRigidBody* body, ComponentCollider* col) : body(body)
{
collider = col;
body->setUserPointer(this);
}
PhysBody3D::PhysBody3D(btRigidBody* bod... | 22.231638 | 78 | 0.561372 | CITMProject3 |
00a788356014c40a4cf86c082ef042798fc7ea47 | 3,314 | cpp | C++ | apps/MCManager/src/MCClientID.cpp | FleX-d/RSM | fa6eb54bd0377ddb63fe023a3b73bc893938f1fa | [
"BSD-3-Clause"
] | null | null | null | apps/MCManager/src/MCClientID.cpp | FleX-d/RSM | fa6eb54bd0377ddb63fe023a3b73bc893938f1fa | [
"BSD-3-Clause"
] | 1 | 2018-05-25T11:05:02.000Z | 2018-05-25T11:05:02.000Z | apps/MCManager/src/MCClientID.cpp | FleX-d/RSM | fa6eb54bd0377ddb63fe023a3b73bc893938f1fa | [
"BSD-3-Clause"
] | 2 | 2018-05-25T11:02:10.000Z | 2018-06-19T09:44:28.000Z | /*
Copyright (c) 2017, Globallogic s.r.o.
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the f... | 34.884211 | 91 | 0.605914 | FleX-d |
00a8e8bfac26c1b692e05ae33bed080a8548d2c2 | 7,911 | cpp | C++ | OneCodeTeam/How to pick and manipulate a 3D object using DirectX in universal Windows apps/[C++]-How to pick and manipulate a 3D object using DirectX in universal Windows apps/C++/CppWindowsStoreGameAppManipulate3DObjects/DirectXPage.xaml.cpp | zzgchina888/msdn-code-gallery-microsoft | 21cb9b6bc0da3b234c5854ecac449cb3bd261f29 | [
"MIT"
] | 2 | 2022-01-21T01:40:58.000Z | 2022-01-21T01:41:10.000Z | OneCodeTeam/How to pick and manipulate a 3D object using DirectX in universal Windows apps/[C++]-How to pick and manipulate a 3D object using DirectX in universal Windows apps/C++/CppWindowsStoreGameAppManipulate3DObjects/DirectXPage.xaml.cpp | zzgchina888/msdn-code-gallery-microsoft | 21cb9b6bc0da3b234c5854ecac449cb3bd261f29 | [
"MIT"
] | 1 | 2022-03-15T04:21:41.000Z | 2022-03-15T04:21:41.000Z | OneCodeTeam/How to pick and manipulate a 3D object using DirectX in universal Windows apps/[C++]-How to pick and manipulate a 3D object using DirectX in universal Windows apps/C++/CppWindowsStoreGameAppManipulate3DObjects/DirectXPage.xaml.cpp | zzgchina888/msdn-code-gallery-microsoft | 21cb9b6bc0da3b234c5854ecac449cb3bd261f29 | [
"MIT"
] | null | null | null | /****************************** Module Header ******************************\
* Module Name: DirectXPage.xaml.cpp
* Project: CppWindowsStoreAppManipulate3DObjects
* Copyright (c) Microsoft Corporation.
*
* This sample shows how to pick and manipulate 3D object in Windows Store DirectX game app.
*
* This source i... | 33.66383 | 143 | 0.766148 | zzgchina888 |
00a91f84c3c4a030231dfe34ccd9920cc2f4fa2e | 1,456 | cpp | C++ | Source/AllProjects/LangUtils/CIDMacroEng/CIDMacroEng_DebugIntf.cpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | 216 | 2019-03-09T06:41:28.000Z | 2022-02-25T16:27:19.000Z | Source/AllProjects/LangUtils/CIDMacroEng/CIDMacroEng_DebugIntf.cpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | 9 | 2020-09-27T08:00:52.000Z | 2021-07-02T14:27:31.000Z | Source/AllProjects/LangUtils/CIDMacroEng/CIDMacroEng_DebugIntf.cpp | MarkStega/CIDLib | 82014e064eef51cad998bf2c694ed9c1c8cceac6 | [
"MIT"
] | 29 | 2019-03-09T10:12:24.000Z | 2021-03-03T22:25:29.000Z | //
// FILE NAME: CIDMacroEng_DebugIntf.cpp
//
// AUTHOR: Dean Roddey
//
// CREATED: 02/17/2003
//
// COPYRIGHT: Charmed Quark Systems, Ltd @ 2019
//
// This software is copyrighted by 'Charmed Quark Systems, Ltd' and
// the author (Dean Roddey.) It is licensed under the MIT Open Source
// license:
//
// https://ope... | 26 | 78 | 0.394231 | MarkStega |
00aff3b2a52f5102202db557b8d4647f818c7bc0 | 137 | cpp | C++ | src/polkawin.cpp | touhonoob/polkadot_api_cpp | 65f0bddf3e9d64b773cfb8632d8b2d995bb143d8 | [
"Apache-2.0"
] | null | null | null | src/polkawin.cpp | touhonoob/polkadot_api_cpp | 65f0bddf3e9d64b773cfb8632d8b2d995bb143d8 | [
"Apache-2.0"
] | null | null | null | src/polkawin.cpp | touhonoob/polkadot_api_cpp | 65f0bddf3e9d64b773cfb8632d8b2d995bb143d8 | [
"Apache-2.0"
] | null | null | null | #ifdef _WIN32
#include "polkadot.h"
void usleep(__int64 usec) {
std::this_thread::sleep_for(std::chrono::microseconds(usec));
}
#endif | 17.125 | 62 | 0.737226 | touhonoob |
00b02e610e8d9f42f84aadd1e42fd10505eb4908 | 778 | cpp | C++ | mathProb.cpp | ckronber/CPlusPlusCode | 889e9301031217b37641d94e7ea52200e06e5862 | [
"Unlicense"
] | null | null | null | mathProb.cpp | ckronber/CPlusPlusCode | 889e9301031217b37641d94e7ea52200e06e5862 | [
"Unlicense"
] | null | null | null | mathProb.cpp | ckronber/CPlusPlusCode | 889e9301031217b37641d94e7ea52200e06e5862 | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <cmath>
#include <ctime>
#define TIMES 10000000
using namespace std;
int sequence(int n,int* arr)
{
int sum = 0;
if(n == 1)
{
arr[0] = 0;
return arr[0];
}
else if(n == 2)
{
arr[1] = 1;
return arr[1];
}
else
{
sum = (arr[0]+arr[1])%3;
arr[0] = ar... | 14.961538 | 83 | 0.498715 | ckronber |
00b6f44979e07ad5cd603aad9d505830300c0ea9 | 9,289 | cpp | C++ | Source/processcontainers/implementations/RunCImplementation/RunCImplementation.cpp | zrash/Thunder | 12d0021dc4aa49c9e3656178ef6485e2b1c8fecf | [
"Apache-2.0"
] | 1 | 2020-10-29T18:10:27.000Z | 2020-10-29T18:10:27.000Z | Source/processcontainers/implementations/RunCImplementation/RunCImplementation.cpp | zrash/Thunder | 12d0021dc4aa49c9e3656178ef6485e2b1c8fecf | [
"Apache-2.0"
] | null | null | null | Source/processcontainers/implementations/RunCImplementation/RunCImplementation.cpp | zrash/Thunder | 12d0021dc4aa49c9e3656178ef6485e2b1c8fecf | [
"Apache-2.0"
] | 1 | 2020-08-13T06:26:43.000Z | 2020-08-13T06:26:43.000Z | /*
* If not stated otherwise in this file or this component's LICENSE file the
* following copyright and licenses apply:
*
* Copyright 2020 Metrological
*
* 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 ... | 28.320122 | 153 | 0.57229 | zrash |
00b76c1e6e408c40c33875708a76d6e9d7bd3cac | 1,450 | cc | C++ | P9-DataStructures(tuples)/P85696.cc | srmeeseeks/PRO1-jutge-FIB | 3af3d28c77ff14a5dbff20b1b5ddc4178462d8a1 | [
"MIT"
] | null | null | null | P9-DataStructures(tuples)/P85696.cc | srmeeseeks/PRO1-jutge-FIB | 3af3d28c77ff14a5dbff20b1b5ddc4178462d8a1 | [
"MIT"
] | null | null | null | P9-DataStructures(tuples)/P85696.cc | srmeeseeks/PRO1-jutge-FIB | 3af3d28c77ff14a5dbff20b1b5ddc4178462d8a1 | [
"MIT"
] | null | null | null | //Racionals (1)
#include <iostream>
using namespace std;
struct Racional {
int num, den;
};
Racional racional(int n, int d) {
Racional rac_norm;
if (n == 0) {
rac_norm.den = 1;
rac_norm.num = 0;
return rac_norm;
}
else {
... | 26.363636 | 62 | 0.293103 | srmeeseeks |
00beb1058089007c94531eceeb5a4f322560b22f | 4,218 | cpp | C++ | Uebung02/Main.cpp | Kaeltis/NAC | 05b12fa4ebe44c41cc873dfa791fd8cbe1ed038f | [
"MIT"
] | null | null | null | Uebung02/Main.cpp | Kaeltis/NAC | 05b12fa4ebe44c41cc873dfa791fd8cbe1ed038f | [
"MIT"
] | null | null | null | Uebung02/Main.cpp | Kaeltis/NAC | 05b12fa4ebe44c41cc873dfa791fd8cbe1ed038f | [
"MIT"
] | null | null | null | #include "Matrix.h"
#include "Vektor.h"
#include "Vektor2D.h"
#include "Gerade2D.h"
#include "Funktion2D.h"
#include <iostream>
#include "NSFunktion2D.h"
using namespace std;
//#define UEBUNG1u2
//#define UEBUNG3
//#define UEBUNG4
//#define UEBUNG5
//#define UEBUNG6
//#define UEBUNG7
//#define UEBUNG8
#define UEBUNG9... | 20.985075 | 73 | 0.511854 | Kaeltis |
00bf4ebd0d5de66d3659cafe89bab97bef778aa3 | 17,390 | cpp | C++ | tools/paint/splinetransferfunction.cpp | stranddw/drishti | 63973422fd0272e55f755aa51378ee1da0f4ef8a | [
"MIT"
] | 118 | 2016-11-01T06:01:44.000Z | 2022-03-30T05:20:19.000Z | tools/paint/splinetransferfunction.cpp | stranddw/drishti | 63973422fd0272e55f755aa51378ee1da0f4ef8a | [
"MIT"
] | 56 | 2016-09-30T09:29:36.000Z | 2022-03-31T17:15:32.000Z | tools/paint/splinetransferfunction.cpp | stranddw/drishti | 63973422fd0272e55f755aa51378ee1da0f4ef8a | [
"MIT"
] | 28 | 2016-07-31T23:48:51.000Z | 2021-05-25T05:32:47.000Z | #include <math.h>
#include "splinetransferfunction.h"
#include "staticfunctions.h"
#include "global.h"
QImage SplineTransferFunction::colorMapImage() { return m_colorMapImage; }
int SplineTransferFunction::size() { return m_points.size(); }
QGradientStops SplineTransferFunction::gradientStops() { return m_gradientSt... | 22.911726 | 84 | 0.621392 | stranddw |
00c7dbd1e57280223ee6562dfb67b3bc4a788034 | 536 | hpp | C++ | src/LibCraft/coreEngine/include/Map.hpp | Kenny38GH/Test | 24c0277de8f98a3b0b3b8a90a300a321a485684c | [
"MIT"
] | null | null | null | src/LibCraft/coreEngine/include/Map.hpp | Kenny38GH/Test | 24c0277de8f98a3b0b3b8a90a300a321a485684c | [
"MIT"
] | null | null | null | src/LibCraft/coreEngine/include/Map.hpp | Kenny38GH/Test | 24c0277de8f98a3b0b3b8a90a300a321a485684c | [
"MIT"
] | null | null | null | //
// Created by leodlplq on 22/11/2021.
//
#pragma once
#include "LibCraft/renderEngine/include/Cube.hpp"
#include "LibCraft/tools/include/filePath.hpp"
#include "LibCraft/tools/include/getFIleContent.hpp"
#include <vector>
#include <fstream>
#include <iostream>
class Map {
private:
std::vector<Cube> _map;
publ... | 20.615385 | 64 | 0.705224 | Kenny38GH |
00ccd2bfcbee92d1b2a2593415c45b99f13ad9dc | 6,712 | cpp | C++ | Userland/Applications/SoundPlayer/main.cpp | andrigamerita/serenity | cf44bbdd0d5f1aaa58fd8c8f40de57addc65e858 | [
"BSD-2-Clause"
] | 1 | 2021-06-11T03:11:11.000Z | 2021-06-11T03:11:11.000Z | Userland/Applications/SoundPlayer/main.cpp | andrigamerita/serenity | cf44bbdd0d5f1aaa58fd8c8f40de57addc65e858 | [
"BSD-2-Clause"
] | null | null | null | Userland/Applications/SoundPlayer/main.cpp | andrigamerita/serenity | cf44bbdd0d5f1aaa58fd8c8f40de57addc65e858 | [
"BSD-2-Clause"
] | null | null | null | /*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright noti... | 36.281081 | 131 | 0.684148 | andrigamerita |
00cce04dd60404fee9e05e8f3f6a04dae9e294fd | 12,398 | cpp | C++ | NextEngine/src/physics/btWrapper.cpp | CompilerLuke/NextEngine | aa1a8e9d9370bce004dba00854701597cab74989 | [
"MIT"
] | 1 | 2021-09-10T18:19:16.000Z | 2021-09-10T18:19:16.000Z | NextEngine/src/physics/btWrapper.cpp | CompilerLuke/NextEngine | aa1a8e9d9370bce004dba00854701597cab74989 | [
"MIT"
] | null | null | null | NextEngine/src/physics/btWrapper.cpp | CompilerLuke/NextEngine | aa1a8e9d9370bce004dba00854701597cab74989 | [
"MIT"
] | 2 | 2020-04-02T06:46:56.000Z | 2021-06-17T16:47:57.000Z | /*
#include "stdafx.h"
#include "physics/btWrapper.h"
#include <iostream>
#include <btBulletDynamicsCommon.h>
#include <LinearMath/btVector3.h>
#include <LinearMath/btAlignedObjectArray.h>
#include <BulletCollision\CollisionShapes/btHeightfieldTerrainShape.h>
struct BulletWrapper {
btDefaultCollisionConfiguration* co... | 31.547074 | 141 | 0.767543 | CompilerLuke |
00ce2dcdf5287aaee131abca098a547dfa007202 | 1,688 | cpp | C++ | engine/decision_strategies/deity/source/UncurseDeityDecisionStrategyHandler.cpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | 1 | 2020-05-24T22:44:03.000Z | 2020-05-24T22:44:03.000Z | engine/decision_strategies/deity/source/UncurseDeityDecisionStrategyHandler.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | null | null | null | engine/decision_strategies/deity/source/UncurseDeityDecisionStrategyHandler.cpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | null | null | null | #include "DeityTextKeys.hpp"
#include "CombatManager.hpp"
#include "Game.hpp"
#include "MapUtils.hpp"
#include "UncurseDeityDecisionStrategyHandler.hpp"
using namespace std;
UncurseDeityDecisionStrategyHandler::UncurseDeityDecisionStrategyHandler(const string& new_deity_id)
: DeityDecisionStrategyHandler(new_deity_id... | 25.19403 | 114 | 0.73282 | sidav |
00d06feb1c54bb9add303a4847d017b1f1a2ffbe | 519 | cpp | C++ | source/VK_Buffer.cpp | ccsdu2004/vulkan-cpp-demo | 72eb10974e40173aad67f307714f7ce919c8217a | [
"Zlib"
] | 6 | 2021-12-04T17:21:29.000Z | 2022-03-03T03:00:26.000Z | source/VK_Buffer.cpp | ccsdu2004/vulkan-cpp-demo | 72eb10974e40173aad67f307714f7ce919c8217a | [
"Zlib"
] | null | null | null | source/VK_Buffer.cpp | ccsdu2004/vulkan-cpp-demo | 72eb10974e40173aad67f307714f7ce919c8217a | [
"Zlib"
] | 1 | 2021-12-05T04:18:51.000Z | 2021-12-05T04:18:51.000Z | #include "VK_Buffer.h"
#include "VK_Context.h"
#include <iostream>
VK_Buffer::VK_Buffer(VK_Context* vkContext):
context(vkContext)
{
}
VK_Buffer::~VK_Buffer()
{
}
VK_Context *VK_Buffer::getContext() const
{
return context;
}
void VK_Buffer::release()
{
if(buffer)
vkDestroyBuffer(context->getDevi... | 17.896552 | 83 | 0.693642 | ccsdu2004 |
00d1b99b73c8913c633b890ccdad471280e1802e | 401 | hxx | C++ | ltnvm/memory/Float.hxx | JeneLitsch/litan | 4eb37378c41226d1299aa695da85056fd548730e | [
"MIT"
] | 14 | 2021-07-27T17:26:20.000Z | 2022-02-23T23:29:55.000Z | ltnvm/memory/Float.hxx | JeneLitsch/litan | 4eb37378c41226d1299aa695da85056fd548730e | [
"MIT"
] | 35 | 2021-11-24T23:36:49.000Z | 2022-03-23T15:45:41.000Z | ltnvm/memory/Float.hxx | JeneLitsch/litan | 4eb37378c41226d1299aa695da85056fd548730e | [
"MIT"
] | 3 | 2022-01-24T07:20:42.000Z | 2022-01-25T00:48:56.000Z | #pragma once
#include <limits>
#include <cstdint>
#include "ltn/Bitcast.hxx"
// 64-bit ieee only
static_assert(std::numeric_limits<double>::is_iec559);
static_assert(sizeof(double) == sizeof(std::uint64_t));
namespace ltn::vm {
inline std::uint64_t toUint(double value) {
return bitcast<std::uint64_t>(value);
}
i... | 23.588235 | 55 | 0.730673 | JeneLitsch |
00d6a3728f9cd4d7dbeac818c5b14b9b1d9ba9cb | 2,055 | hpp | C++ | libs/cegui/include/sge/cegui/load_context.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/cegui/include/sge/cegui/load_context.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/cegui/include/sge/cegui/load_context.hpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// 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)
#ifndef SGE_CEGUI_LOAD_CONTEXT_HPP_INCLUDED
#define SGE_CEGUI_LOAD_CONTEXT_HPP_INCLUDED
#include <... | 30.220588 | 92 | 0.76691 | cpreh |
00def896c95587de24395c64fc7d8b2db84b0870 | 3,128 | cpp | C++ | CardReaderLibrary/TransformHelper.cpp | klanderfri/CardReaderLibrary | 71fc4b7fc6052a9ec3fb477fccd9b3fcfa0b9c60 | [
"MIT"
] | 4 | 2019-03-18T14:06:59.000Z | 2021-07-17T18:36:12.000Z | CardReaderLibrary/TransformHelper.cpp | klanderfri/ReadMagicCard | 71fc4b7fc6052a9ec3fb477fccd9b3fcfa0b9c60 | [
"MIT"
] | 17 | 2018-04-12T18:03:16.000Z | 2018-05-09T18:33:07.000Z | CardReaderLibrary/TransformHelper.cpp | klanderfri/ReadMagicCard | 71fc4b7fc6052a9ec3fb477fccd9b3fcfa0b9c60 | [
"MIT"
] | 1 | 2019-03-25T18:31:17.000Z | 2019-03-25T18:31:17.000Z | #include "stdafx.h"
#include "TransformHelper.h"
#include "AlgorithmHelper.h"
#include <opencv2\opencv.hpp>
using namespace cv;
using namespace std;
TransformHelper::TransformHelper()
{
}
TransformHelper::~TransformHelper()
{
}
Mat TransformHelper::TransformToRectangle(const Mat rawImage, vector<Point2d> fourCorner... | 28.962963 | 150 | 0.761189 | klanderfri |
00e51de226e6c674e33aca642a7a7012fe56e0c3 | 3,025 | cpp | C++ | tests/StringWriteBatchTest.cpp | LPetrlik/karindb | 8fe2b953c13f1d1aed9bb550799f7cfaf13b50ea | [
"MIT"
] | null | null | null | tests/StringWriteBatchTest.cpp | LPetrlik/karindb | 8fe2b953c13f1d1aed9bb550799f7cfaf13b50ea | [
"MIT"
] | null | null | null | tests/StringWriteBatchTest.cpp | LPetrlik/karindb | 8fe2b953c13f1d1aed9bb550799f7cfaf13b50ea | [
"MIT"
] | null | null | null | /* Copyright (c) 2015 Kerio Technologies s.r.o.
*
* 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, mer... | 45.833333 | 138 | 0.787438 | LPetrlik |
00f5aa571f72775b671c3176cae847391548883d | 3,156 | cpp | C++ | Train/Sheet/Sheet-B/extra/extra 01 - 15/02.[Trees on the level].cpp | mohamedGamalAbuGalala/Practice | 2a5fa3bdaf995d0c304f04231e1a69e6960f72c8 | [
"MIT"
] | 1 | 2019-12-19T06:51:20.000Z | 2019-12-19T06:51:20.000Z | Train/Sheet/Sheet-B/extra/extra 01 - 15/02.[Trees on the level].cpp | mohamedGamalAbuGalala/Practice | 2a5fa3bdaf995d0c304f04231e1a69e6960f72c8 | [
"MIT"
] | null | null | null | Train/Sheet/Sheet-B/extra/extra 01 - 15/02.[Trees on the level].cpp | mohamedGamalAbuGalala/Practice | 2a5fa3bdaf995d0c304f04231e1a69e6960f72c8 | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdio.h>
#include <math.h>
#include <vector>
#include <algorithm>
#include <string.h>
#include <array>
#include <iterator>
#include <set>
#include <cmath>
#include<iomanip> // Stew(10) :: 12 ........ 8 spaces and 2 digits in 10 padding right
#define pb push_back
#define up upper_b... | 21.04 | 106 | 0.556717 | mohamedGamalAbuGalala |
00f7683f5fc55e88997d8a93b199d6512cf3204d | 2,384 | cpp | C++ | src/AppInstallerRepositoryCore/ManifestJSONParser.cpp | ryfu-msft/winget-cli | 9f8ceea4fb8959552075d7c6f8679abc6a310306 | [
"MIT"
] | null | null | null | src/AppInstallerRepositoryCore/ManifestJSONParser.cpp | ryfu-msft/winget-cli | 9f8ceea4fb8959552075d7c6f8679abc6a310306 | [
"MIT"
] | null | null | null | src/AppInstallerRepositoryCore/ManifestJSONParser.cpp | ryfu-msft/winget-cli | 9f8ceea4fb8959552075d7c6f8679abc6a310306 | [
"MIT"
] | 1 | 2022-01-18T19:23:34.000Z | 2022-01-18T19:23:34.000Z | // Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include "pch.h"
#include "Public/winget/ManifestJSONParser.h"
#include "Rest/Schema/1_0/Json/ManifestDeserializer.h"
#include "Rest/Schema/1_1/Json/ManifestDeserializer.h"
namespace AppInstaller::Repository::JSON
{
struct Manifest... | 36.121212 | 138 | 0.657718 | ryfu-msft |
00fc039e11d72fbd50f8d2e9e542853f518a8967 | 1,626 | hh | C++ | src/windows/libraries/ws2_32/types/WSABUF_IMPL.hh | IntroVirt/IntroVirt | 917f735f3430d0855d8b59c814bea7669251901c | [
"Apache-2.0"
] | 23 | 2021-02-17T16:58:52.000Z | 2022-02-12T17:01:06.000Z | src/windows/libraries/ws2_32/types/WSABUF_IMPL.hh | IntroVirt/IntroVirt | 917f735f3430d0855d8b59c814bea7669251901c | [
"Apache-2.0"
] | 1 | 2021-04-01T22:41:32.000Z | 2021-09-24T14:14:17.000Z | src/windows/libraries/ws2_32/types/WSABUF_IMPL.hh | IntroVirt/IntroVirt | 917f735f3430d0855d8b59c814bea7669251901c | [
"Apache-2.0"
] | 4 | 2021-02-17T16:53:18.000Z | 2021-04-13T16:51:10.000Z | /*
* Copyright 2021 Assured Information Security, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... | 29.035714 | 92 | 0.702337 | IntroVirt |
2e0307c3a32675cb8a349d8b80b2eb8dc25f9874 | 4,758 | hpp | C++ | output/include/core/fs/io_device.hpp | picofox/pilo | 59e12c947307d664c4ca9dcc232b481d06be104a | [
"MIT"
] | 1 | 2019-07-31T06:44:46.000Z | 2019-07-31T06:44:46.000Z | src/pilo/core/fs/io_device.hpp | picofox/pilo | 59e12c947307d664c4ca9dcc232b481d06be104a | [
"MIT"
] | null | null | null | src/pilo/core/fs/io_device.hpp | picofox/pilo | 59e12c947307d664c4ca9dcc232b481d06be104a | [
"MIT"
] | null | null | null | #pragma once
#include "core/coredefs.hpp"
#define MB_IO_DEV_OPEN_FLAG_APPEND (1<<0)
#define MB_IO_DEV_OPEN_SYNC (1<<1)
#define MB_IO_DEV_OPEN_NO_OS_CACHE (1<<2)
#define MB_IO_DEV_OPEN_REOPEN (1<<3)
#define MB_IO_DEV_INIT_FLAG_AUTO_CREATE (1<<0)
#define MB_IO_DEV_INIT_FLAG_FORCE_DELET... | 39.322314 | 151 | 0.519756 | picofox |
2e03f529a57225cb29ee158fc39249c2fea07d33 | 5,585 | cc | C++ | google/cloud/dataproc/cluster_controller_connection.cc | sydney-munro/google-cloud-cpp | 374b52e5cec78962358bdd5913d4118a47af1952 | [
"Apache-2.0"
] | null | null | null | google/cloud/dataproc/cluster_controller_connection.cc | sydney-munro/google-cloud-cpp | 374b52e5cec78962358bdd5913d4118a47af1952 | [
"Apache-2.0"
] | null | null | null | google/cloud/dataproc/cluster_controller_connection.cc | sydney-munro/google-cloud-cpp | 374b52e5cec78962358bdd5913d4118a47af1952 | [
"Apache-2.0"
] | null | null | null | // Copyright 2022 Google LLC
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in... | 41.066176 | 82 | 0.755058 | sydney-munro |
2e05ffbdcfc0058fbc589b079f97fab11807e86c | 22,737 | hpp | C++ | selene/base/Kernel.hpp | kmhofmann/selene | 11718e1a7de6ff6251c46e4ef429a7cfb1bdb9eb | [
"MIT"
] | 284 | 2017-11-20T08:23:54.000Z | 2022-03-30T12:52:00.000Z | selene/base/Kernel.hpp | kmhofmann/selene | 11718e1a7de6ff6251c46e4ef429a7cfb1bdb9eb | [
"MIT"
] | 9 | 2018-02-14T08:21:41.000Z | 2021-07-27T19:52:12.000Z | selene/base/Kernel.hpp | kmhofmann/selene | 11718e1a7de6ff6251c46e4ef429a7cfb1bdb9eb | [
"MIT"
] | 17 | 2018-03-10T00:01:36.000Z | 2021-06-29T10:44:27.000Z | // This file is part of the `Selene` library.
// Copyright 2017-2019 Michael Hofmann (https://github.com/kmhofmann).
// Distributed under MIT license. See accompanying LICENSE file in the top-level directory.
#ifndef SELENE_BASE_KERNEL_HPP
#define SELENE_BASE_KERNEL_HPP
/// @file
#include <selene/base/Assert.hpp>
#i... | 33.584934 | 118 | 0.734881 | kmhofmann |
2e073496ac144b8a6bfddb35875375faa5b602d8 | 701 | hpp | C++ | include/srpc/net/client/Client.hpp | ISSuh/SimpleRPC | 429f14d26a783ff092f326a49576d945f82ad610 | [
"MIT"
] | null | null | null | include/srpc/net/client/Client.hpp | ISSuh/SimpleRPC | 429f14d26a783ff092f326a49576d945f82ad610 | [
"MIT"
] | null | null | null | include/srpc/net/client/Client.hpp | ISSuh/SimpleRPC | 429f14d26a783ff092f326a49576d945f82ad610 | [
"MIT"
] | null | null | null | /**
*
* Copyright: Copyright (c) 2020, ISSuh
*
*/
#ifndef SRPC_NET_CLIENT_CLIENT_HPP_
#define SRPC_NET_CLIENT_CLIENT_HPP_
#include <string>
namespace srpc {
class Client {
public:
Client() = default;
virtual ~Client() = default;
virtual void connect(const std::string& host, const std::string& port) ... | 20.617647 | 77 | 0.650499 | ISSuh |
2e0b091088cf71f68a084d4552744de6ae5d4717 | 1,017 | cpp | C++ | Projects/RealityEngine/source/Core/Tools/Logger.cpp | Volta948/RealityEngine | 1a9e4b7db00617176d06004af934d6602dd5920a | [
"BSD-3-Clause"
] | null | null | null | Projects/RealityEngine/source/Core/Tools/Logger.cpp | Volta948/RealityEngine | 1a9e4b7db00617176d06004af934d6602dd5920a | [
"BSD-3-Clause"
] | null | null | null | Projects/RealityEngine/source/Core/Tools/Logger.cpp | Volta948/RealityEngine | 1a9e4b7db00617176d06004af934d6602dd5920a | [
"BSD-3-Clause"
] | 1 | 2021-11-05T02:55:27.000Z | 2021-11-05T02:55:27.000Z | // Copyright Reality Engine. All Rights Reserved.
#include "Core/Tools/Logger.h"
#include <cstdarg>
#include <fstream>
Reality::Logger::Logger() :
m_File{ std::make_unique<std::ofstream>(L"Logs/Logs.txt", std::ios::out | std::ios::trunc) }
{}
Reality::Logger::~Logger() = default;
void Reality::Logger... | 24.214286 | 115 | 0.6647 | Volta948 |
2e0d0122bacb5ad04230aba27e3e9ecbf382b718 | 502 | cpp | C++ | libs/renderer/src/renderer/plugin/collection.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/renderer/src/renderer/plugin/collection.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/renderer/src/renderer/plugin/collection.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// 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 <sge/plugin/impl/instantiate_collection.hpp>
#include <sge/renderer/core.hpp>
#include <sg... | 38.615385 | 61 | 0.750996 | cpreh |
2e0ee15dff2c766adf01350b6a9fdd5048e8f91d | 1,066 | cpp | C++ | source/physics/private/internal/simulation/frameparts/framebody.cpp | fpuma/Physics2dModule | c329e45d05c77b81a45e0d509fe8deb1d327c686 | [
"MIT"
] | null | null | null | source/physics/private/internal/simulation/frameparts/framebody.cpp | fpuma/Physics2dModule | c329e45d05c77b81a45e0d509fe8deb1d327c686 | [
"MIT"
] | null | null | null | source/physics/private/internal/simulation/frameparts/framebody.cpp | fpuma/Physics2dModule | c329e45d05c77b81a45e0d509fe8deb1d327c686 | [
"MIT"
] | null | null | null | #include <precompiledphysics.h>
#include "framebody.h"
#include <utils/geometry/shapes/shape.h>
#include <box2d/b2_body.h>
#include <box2d/b2_fixture.h>
namespace puma::physics
{
FrameBody::FrameBody( FramePartID _id )
: m_framePart( _id )
{
}
/*Vec2 Body::getOffset() const
{
... | 19.035714 | 56 | 0.621013 | fpuma |
2e1485ad2f45fde33689f4fb8ab88f2ad53fa067 | 774 | cpp | C++ | src/Game.cpp | Hello56721/wars | d8fb1b88fbb8e863e95d17a2ff96cd5dc197f026 | [
"MIT"
] | 1 | 2021-09-29T14:33:37.000Z | 2021-09-29T14:33:37.000Z | src/Game.cpp | Hello56721/wars | d8fb1b88fbb8e863e95d17a2ff96cd5dc197f026 | [
"MIT"
] | null | null | null | src/Game.cpp | Hello56721/wars | d8fb1b88fbb8e863e95d17a2ff96cd5dc197f026 | [
"MIT"
] | null | null | null | #include <pch.hpp>
#include <Game.hpp>
#include <scenes/TestScene.hpp>
using wars::Game;
using wars::scenes::TestScene;
Game::Game(): m_input(m_window)
{
std::cout << "[INFO]: Using OpenGL " << glGetString(GL_VERSION) << "\n";
int maximumTextureSize = 0;
glGetIntegerv(GL_MAX_TEXTURE_SIZE, &maximumTextureS... | 18.428571 | 82 | 0.621447 | Hello56721 |
2e178db7e33c163e0cccdfc46c70386814872ce8 | 3,842 | hpp | C++ | boost/xml/dom/node.hpp | stefanseefeld/boost.xml | f68b661566b1e8a487295f63c846bd8012c1eb94 | [
"BSL-1.0"
] | 1 | 2018-03-22T14:23:28.000Z | 2018-03-22T14:23:28.000Z | boost/xml/dom/node.hpp | stefanseefeld/boost.xml | f68b661566b1e8a487295f63c846bd8012c1eb94 | [
"BSL-1.0"
] | null | null | null | boost/xml/dom/node.hpp | stefanseefeld/boost.xml | f68b661566b1e8a487295f63c846bd8012c1eb94 | [
"BSL-1.0"
] | null | null | null | #ifndef boost_xml_dom_node_hpp_
#define boost_xml_dom_node_hpp_
#include <boost/xml/dom/nodefwd.hpp>
#include <boost/xml/dom/iterator.hpp>
#include <stdexcept>
namespace boost
{
namespace xml
{
namespace dom
{
enum node_type
{
INTERNAL = 0,
ELEMENT,
ATTRIBUTE,
TEXT,
CDATA,
PI,
COMMENT,
};
template <ty... | 23.716049 | 79 | 0.675169 | stefanseefeld |
2e1b6b4a494dffcd58c5feac28e4afb5e1d26dbc | 14,091 | hpp | C++ | include/gbBase/Allocator/AllocationStrategyRing.hpp | ComicSansMS/GhulbusBase | 9d07e0ab6e80c93121d261605d0f3c859af149da | [
"MIT"
] | 22 | 2016-02-01T03:52:29.000Z | 2020-12-11T18:43:42.000Z | include/gbBase/Allocator/AllocationStrategyRing.hpp | ComicSansMS/GhulbusBase | 9d07e0ab6e80c93121d261605d0f3c859af149da | [
"MIT"
] | null | null | null | include/gbBase/Allocator/AllocationStrategyRing.hpp | ComicSansMS/GhulbusBase | 9d07e0ab6e80c93121d261605d0f3c859af149da | [
"MIT"
] | 7 | 2017-02-13T15:25:58.000Z | 2019-05-10T19:54:31.000Z | #ifndef GHULBUS_LIBRARY_INCLUDE_GUARD_BASE_ALLOCATOR_ALLOCATION_STRATEGY_RING_HPP
#define GHULBUS_LIBRARY_INCLUDE_GUARD_BASE_ALLOCATOR_ALLOCATION_STRATEGY_RING_HPP
/** @file
*
* @brief Ring allocation strategy.
* @author Andreas Weis (der_ghulbus@ghulbus-inc.de)
*/
#include <gbBase/config.hpp>
#include <gbBase/Alloca... | 47.285235 | 118 | 0.59137 | ComicSansMS |
2e1c6bd9ceb3e4b41686c7cca9d6089458bf7366 | 1,596 | cc | C++ | lib/xz-coder.cc | tkubotake/nwc-toolkit | 0f15669cf70b767724a11cb73f8e634765fee365 | [
"BSD-3-Clause"
] | 6 | 2017-04-06T01:49:36.000Z | 2021-03-14T15:01:59.000Z | lib/xz-coder.cc | tkubotake/nwc-toolkit | 0f15669cf70b767724a11cb73f8e634765fee365 | [
"BSD-3-Clause"
] | null | null | null | lib/xz-coder.cc | tkubotake/nwc-toolkit | 0f15669cf70b767724a11cb73f8e634765fee365 | [
"BSD-3-Clause"
] | 1 | 2021-12-24T22:23:29.000Z | 2021-12-24T22:23:29.000Z | // Copyright 2010 Susumu Yata <syata@acm.org>
#include <nwc-toolkit/xz-coder.h>
namespace nwc_toolkit {
bool XzCoder::OpenEncoder(int preset) {
if (is_open()) {
return false;
}
int xz_preset = preset;
switch (preset) {
case DEFAULT_PRESET: {
xz_preset = 6;
break;
}
case BEST_SPEED... | 20.461538 | 78 | 0.60589 | tkubotake |
2e1fbed4203bb08d6c4fc90530683bd6e89f6993 | 6,016 | hpp | C++ | src/libgit2xx/git2xx/Git.hpp | DrFrankenstein/goot | 2ea08283bd2fb52360ecd6a36d210fcc19332334 | [
"MIT"
] | null | null | null | src/libgit2xx/git2xx/Git.hpp | DrFrankenstein/goot | 2ea08283bd2fb52360ecd6a36d210fcc19332334 | [
"MIT"
] | null | null | null | src/libgit2xx/git2xx/Git.hpp | DrFrankenstein/goot | 2ea08283bd2fb52360ecd6a36d210fcc19332334 | [
"MIT"
] | null | null | null | #pragma once
#include "Buffer.hpp"
#include "Error.hpp"
#include "Repository.hpp"
#include "StrArray.hpp"
#include <cstddef>
#include <git2/config.h>
#include <git2/global.h>
#include <git2/repository.h>
#include <git2/sys/alloc.h>
#include <git2/types.h>
#include <string>
#include <utility>
#ifdef _MSC_VER
# includ... | 36.907975 | 133 | 0.759641 | DrFrankenstein |
2e205baea6d122bbb0340dba71649a40cba55445 | 1,556 | cpp | C++ | src/SignalSlotFactory.cpp | Joeasaurus/spina | 00a331aec57c3d18adc9eed02d992b44c659ea10 | [
"MIT"
] | null | null | null | src/SignalSlotFactory.cpp | Joeasaurus/spina | 00a331aec57c3d18adc9eed02d992b44c659ea10 | [
"MIT"
] | null | null | null | src/SignalSlotFactory.cpp | Joeasaurus/spina | 00a331aec57c3d18adc9eed02d992b44c659ea10 | [
"MIT"
] | 1 | 2021-12-26T17:12:08.000Z | 2021-12-26T17:12:08.000Z | #include "SignalSlotFactory.hpp"
namespace spina {
// Create
typename SignalSlotFactory::signal_ptr SignalSlotFactory::createSignal(const std::string& name) {
signals[name] = std::shared_ptr<signal_t>(new signal_t);
return signals[name];
};
void SignalSlotFactory::createSlot(const std::string& name, const Si... | 29.358491 | 151 | 0.720437 | Joeasaurus |
2e20d4f01525e78ddaa507048601ed6a56e9a05b | 996 | cpp | C++ | tests/Day21.cpp | willkill07/AdventOfCode2021 | 06e62cd8a8c7f1e99374075b7302f6dcfb770bb0 | [
"Apache-2.0"
] | 12 | 2021-12-02T01:44:53.000Z | 2022-02-02T17:22:23.000Z | tests/Day21.cpp | willkill07/AdventOfCode2021 | 06e62cd8a8c7f1e99374075b7302f6dcfb770bb0 | [
"Apache-2.0"
] | null | null | null | tests/Day21.cpp | willkill07/AdventOfCode2021 | 06e62cd8a8c7f1e99374075b7302f6dcfb770bb0 | [
"Apache-2.0"
] | 1 | 2021-12-03T04:25:32.000Z | 2021-12-03T04:25:32.000Z | #include <catch2/catch_all.hpp>
#include "AdventTest.hpp"
#include "AdventDay.hpp"
#include "Day21.hpp"
using namespace day21;
namespace {
char const* input = R"MULTILINE(Player 1 starting position: 4
Player 2 starting position: 8)MULTILINE";
auto const expected_part1 = 739785u;
auto const expected_part2 = 4443560... | 23.714286 | 61 | 0.596386 | willkill07 |
2e223b660845b5275acf039b08fd8bfa13cb2ef8 | 1,164 | cpp | C++ | discrete-maths/matroids/a_schedule.cpp | nothingelsematters/university | 5561969b1b11678228aaf7e6660e8b1a93d10294 | [
"WTFPL"
] | 1 | 2018-06-03T17:48:50.000Z | 2018-06-03T17:48:50.000Z | discrete-maths/matroids/a_schedule.cpp | nothingelsematters/University | b1e188cb59e5a436731b92c914494626a99e1ae0 | [
"WTFPL"
] | null | null | null | discrete-maths/matroids/a_schedule.cpp | nothingelsematters/University | b1e188cb59e5a436731b92c914494626a99e1ae0 | [
"WTFPL"
] | 14 | 2019-04-07T21:27:09.000Z | 2021-12-05T13:37:25.000Z | #include <fstream>
#include <iostream>
#include <algorithm>
#include <vector>
#include <set>
int main() {
std::ifstream fin("schedule.in");
size_t quantity;
fin >> quantity;
std::vector<std::pair<long long, long long>> task;
for (size_t i = 0; i < quantity; ++i) {
long long a, b;
fi... | 27.714286 | 72 | 0.485395 | nothingelsematters |
2e24f22ba791b2431b901fb6a773c4b54a471a06 | 524 | hpp | C++ | src/core/Texture.hpp | Xnork/Project-Engine-SDL2 | c49b2c1d83373f027624b3e5ff2f52633100db73 | [
"MIT"
] | null | null | null | src/core/Texture.hpp | Xnork/Project-Engine-SDL2 | c49b2c1d83373f027624b3e5ff2f52633100db73 | [
"MIT"
] | null | null | null | src/core/Texture.hpp | Xnork/Project-Engine-SDL2 | c49b2c1d83373f027624b3e5ff2f52633100db73 | [
"MIT"
] | null | null | null | #ifndef TEXTURE_H
#define TEXTURE_H
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <iostream>
#include <cstring>
#include "math/Vector2.hpp"
using namespace std;
class Texture
{
public:
Texture();
explicit Texture(const string, SDL_Renderer*);
virtual SDL_Texture *getTextureSDL() noexcept;... | 18.068966 | 59 | 0.719466 | Xnork |
2e26951b789d18a2b4ca0ddb3fca67cce92bff4e | 2,501 | cpp | C++ | Veri/VeriSiniflari/tekmarketbilgileri.cpp | mtc61/techmarket | 64533703db4256686abe428c007fd4a784ad2b5b | [
"Apache-2.0"
] | null | null | null | Veri/VeriSiniflari/tekmarketbilgileri.cpp | mtc61/techmarket | 64533703db4256686abe428c007fd4a784ad2b5b | [
"Apache-2.0"
] | null | null | null | Veri/VeriSiniflari/tekmarketbilgileri.cpp | mtc61/techmarket | 64533703db4256686abe428c007fd4a784ad2b5b | [
"Apache-2.0"
] | null | null | null | #include "tekmarketbilgileri.h"
TEKMarketBilgileri::TEKMarketBilgileri(QObject *parent) : QObject(parent)
{
}
IdTuru TEKMarketBilgileri::getId() const
{
return TeknoMarketId;
}
void TEKMarketBilgileri::setId(const IdTuru &value)
{
if(value == TeknoMarketId)
return;
TeknoMarketId = value;
emit ... | 24.281553 | 123 | 0.738505 | mtc61 |
2e2c43a247a6e7ad72376193ecffea9d265b1364 | 533 | hpp | C++ | obelus/client/interfaces/i_app_system.hpp | monthyx1337/obelus-hack | 8e83eb89ef56788c1b9c5af66b815824d17f309d | [
"MIT"
] | 36 | 2021-07-08T01:30:44.000Z | 2022-03-25T13:16:59.000Z | obelus/client/interfaces/i_app_system.hpp | monthyx1337/obelus-hack | 8e83eb89ef56788c1b9c5af66b815824d17f309d | [
"MIT"
] | 2 | 2021-09-11T05:11:55.000Z | 2022-01-28T07:49:39.000Z | obelus/client/interfaces/i_app_system.hpp | monthyx1337/obelus-hack | 8e83eb89ef56788c1b9c5af66b815824d17f309d | [
"MIT"
] | 14 | 2021-07-08T00:11:12.000Z | 2022-03-20T11:10:17.000Z | #pragma once
class i_app_system;
typedef void* (*create_interface_fn)(const char* name, int* return_code);
class i_app_system {
public:
virtual bool connect(create_interface_fn factory) = 0;
virtual void disconnect() = 0;
virtual void* query_interface(const char* interface_name) = 0;
virtual int init() = 0;
vir... | 28.052632 | 85 | 0.739212 | monthyx1337 |
aa31c875a706c5943757ad2fcc8eca2e72b9d66d | 1,952 | hpp | C++ | gmsl_camera/src/DataPath.hpp | vehicularkech/gmsl-camera-ros-driver | 1dfadb91c4b5829ca562e362911f1b3dcb7ab083 | [
"MIT"
] | 2 | 2018-04-20T02:26:18.000Z | 2018-10-11T03:20:36.000Z | gmsl_camera/src/DataPath.hpp | vehicularkech/gmsl-camera-ros-driver | 1dfadb91c4b5829ca562e362911f1b3dcb7ab083 | [
"MIT"
] | 1 | 2018-07-12T08:19:31.000Z | 2018-07-12T08:19:31.000Z | gmsl_camera/src/DataPath.hpp | vehicularkech/gmsl-camera-ros-driver | 1dfadb91c4b5829ca562e362911f1b3dcb7ab083 | [
"MIT"
] | 1 | 2019-01-24T03:02:45.000Z | 2019-01-24T03:02:45.000Z | // This code contains NVIDIA Confidential Information and is disclosed
// under the Mutual Non-Disclosure Agreement.
//
// Notice
// ALL NVIDIA DESIGN SPECIFICATIONS AND CODE ("MATERIALS") ARE PROVIDED "AS IS" NVIDIA MAKES
// NO REPRESENTATIONS, WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO
//... | 42.434783 | 94 | 0.745389 | vehicularkech |
aa334f86237f31707fde90f5165981665b96d318 | 3,259 | cpp | C++ | Grammars/Lab02/Lab02/main.cpp | IceNerd/hogwarts | df1f3e1a94688fd728f6b54653a36a47671293da | [
"Unlicense"
] | null | null | null | Grammars/Lab02/Lab02/main.cpp | IceNerd/hogwarts | df1f3e1a94688fd728f6b54653a36a47671293da | [
"Unlicense"
] | null | null | null | Grammars/Lab02/Lab02/main.cpp | IceNerd/hogwarts | df1f3e1a94688fd728f6b54653a36a47671293da | [
"Unlicense"
] | null | null | null | #include <conio.h>
#include <iostream>
#include <fstream>
#include <string>
#include <algorithm>
#include <vector>
#include "STable.h"
std::string CreateStringFromFile( const std::string& );
std::vector<std::string> Tokenize( const std::string&, const std::string& = " " );
void Analyze( std::vector<std::string>& );
... | 20.496855 | 107 | 0.597423 | IceNerd |
aa382ae061a2609f8c4eb5e7b32e7a96f8354d7f | 10,374 | cpp | C++ | src/main.cpp | d99kris/nchat | 2c51cf2ff7ab7b655067ba290071d9b005544e68 | [
"MIT"
] | 82 | 2019-02-19T15:00:19.000Z | 2022-03-24T20:22:43.000Z | src/main.cpp | d99kris/nchat | 2c51cf2ff7ab7b655067ba290071d9b005544e68 | [
"MIT"
] | 47 | 2019-03-07T13:07:36.000Z | 2022-03-27T14:32:09.000Z | src/main.cpp | d99kris/nchat | 2c51cf2ff7ab7b655067ba290071d9b005544e68 | [
"MIT"
] | 12 | 2019-03-06T18:58:41.000Z | 2022-03-26T17:41:31.000Z | // main.cpp
//
// Copyright (c) 2019-2021 Kristofer Berggren
// All rights reserved.
//
// nchat is distributed under the MIT license, see LICENSE for details.
#include <iostream>
#include <map>
#include <regex>
#include <set>
#include <string>
#include <path.hpp>
#include "appconfig.h"
#include "apputil.h"
#include... | 26.329949 | 119 | 0.591768 | d99kris |
aa3cf804ebd650fa05fdf9ce18400749aad0059f | 298 | cpp | C++ | src/Request/BalanceCheck.cpp | ZavierJin/AccountManager | b09235e71fa43a2c6ece1d6739ef44885d28af34 | [
"Apache-2.0"
] | null | null | null | src/Request/BalanceCheck.cpp | ZavierJin/AccountManager | b09235e71fa43a2c6ece1d6739ef44885d28af34 | [
"Apache-2.0"
] | null | null | null | src/Request/BalanceCheck.cpp | ZavierJin/AccountManager | b09235e71fa43a2c6ece1d6739ef44885d28af34 | [
"Apache-2.0"
] | null | null | null | // BalanceCheck.cpp
// Brief introduction: the implementation of BalanceCheck's method
// Create by Zhang Zhecheng 2020/5/18
#include "Request.h"
namespace request
{
BalanceCheck::BalanceCheck(const string &username)
: UserRequest(username, Kind::BalanceCheck){}
} // namespace request
| 29.8 | 66 | 0.748322 | ZavierJin |
aa3d370266bba86ba940dbe0f1f26b7b6dd23bfb | 14,765 | cpp | C++ | sumo-wrapper/code/par-sumo-wrapper.cpp | esegredo/Optimisation-Real-world-Traffic-Light-Cycle-Programs-Evolutionary-Computation | cfe6e3e8f333f906430d668f4f2b475dfdd71d9e | [
"MIT"
] | null | null | null | sumo-wrapper/code/par-sumo-wrapper.cpp | esegredo/Optimisation-Real-world-Traffic-Light-Cycle-Programs-Evolutionary-Computation | cfe6e3e8f333f906430d668f4f2b475dfdd71d9e | [
"MIT"
] | null | null | null | sumo-wrapper/code/par-sumo-wrapper.cpp | esegredo/Optimisation-Real-world-Traffic-Light-Cycle-Programs-Evolutionary-Computation | cfe6e3e8f333f906430d668f4f2b475dfdd71d9e | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <fstream>
#include <vector>
#include <cstdlib>
#include <ctime>
#include <sstream>
#include <map>
#include <chrono>
#include <sys/wait.h>
#include "cInstance.hpp"
#include "simpleXMLParser.hpp"
using namespace std;
typedef struct
{
double GvR; // Original Green v... | 30.256148 | 162 | 0.634338 | esegredo |
aa420e5a2d10e61e1f527d8a68b3453adc373880 | 5,787 | cpp | C++ | src/string.cpp | surreal-Ceres/image32 | 0aabb8aa2f8e45dafea6249a9873080b048183b1 | [
"MIT"
] | 2 | 2020-12-23T16:42:52.000Z | 2021-04-13T20:41:09.000Z | src/string.cpp | surreal-Ceres/image32 | 0aabb8aa2f8e45dafea6249a9873080b048183b1 | [
"MIT"
] | null | null | null | src/string.cpp | surreal-Ceres/image32 | 0aabb8aa2f8e45dafea6249a9873080b048183b1 | [
"MIT"
] | null | null | null | #include "string.h"
#include <iterator>
#include <cstdarg>
#include <vector>
std::string string_to_lower(const std::string& str)
{
std::string result(str);
for(auto it = result.begin(); it != result.end(); it++)
*it = std::tolower(*it);
return result;
}
std::string format_to_string(const char* forma... | 22.257692 | 81 | 0.563332 | surreal-Ceres |
aa4e4438391c48eb8eb8351320b2ba86b86e9bc4 | 9,263 | cpp | C++ | qt/imageDisplay/RasterResource.cpp | e-foto/e-foto | cf143a1076c03c7bdf5a2f41efad2c98e9272722 | [
"FTL"
] | 3 | 2021-06-28T21:07:58.000Z | 2021-07-02T11:21:49.000Z | qt/imageDisplay/RasterResource.cpp | e-foto/e-foto | cf143a1076c03c7bdf5a2f41efad2c98e9272722 | [
"FTL"
] | null | null | null | qt/imageDisplay/RasterResource.cpp | e-foto/e-foto | cf143a1076c03c7bdf5a2f41efad2c98e9272722 | [
"FTL"
] | null | null | null | #include "RasterResource.h"
#include <QMessageBox>
RasterResource::RasterResource(QString filepath, bool withSmoothIn, bool withSmoothOut)
{
// Abrir a imagem e testar se é válida
QImage* srcImage = new QImage();
_isValid = srcImage->load(filepath);
_levels = 0;
_useSmoothIn = withSmoothIn;
_useSmoothOut = with... | 27.900602 | 167 | 0.675159 | e-foto |
aa52f3f111e963b54ded8bd3b1c171624d6797d5 | 5,388 | hpp | C++ | headers/server_enum.hpp | DynasticSponge/Frederick2 | 410ad4a3ca43547d645248e13d27497e6c5b5f26 | [
"MIT"
] | null | null | null | headers/server_enum.hpp | DynasticSponge/Frederick2 | 410ad4a3ca43547d645248e13d27497e6c5b5f26 | [
"MIT"
] | null | null | null | headers/server_enum.hpp | DynasticSponge/Frederick2 | 410ad4a3ca43547d645248e13d27497e6c5b5f26 | [
"MIT"
] | null | null | null | //
// server_enum.hpp
// ~~~~~~~~~~~~~~~
//
// Author: Joseph Adomatis
// Copyright (c) 2020 Joseph R Adomatis (joseph dot adomatis at gmail dot com)
//
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
#ifndef SERVER_ENUM_HPP
#define SERVER_ENUM_HP... | 30.100559 | 119 | 0.522086 | DynasticSponge |
aa570e94789ea2eb8d8da55e79805a91cf5f1b09 | 20,497 | cpp | C++ | Assets/FrameCapturer-master/Plugin/fccore/Foundation/PixelFormat.cpp | Okashiou/VJx | 491cc37e3d6eddd78e4c99d5f211c5e2b2d498f0 | [
"MIT"
] | null | null | null | Assets/FrameCapturer-master/Plugin/fccore/Foundation/PixelFormat.cpp | Okashiou/VJx | 491cc37e3d6eddd78e4c99d5f211c5e2b2d498f0 | [
"MIT"
] | null | null | null | Assets/FrameCapturer-master/Plugin/fccore/Foundation/PixelFormat.cpp | Okashiou/VJx | 491cc37e3d6eddd78e4c99d5f211c5e2b2d498f0 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "fcInternal.h"
#include "Buffer.h"
#include "PixelFormat.h"
#define fcEnableISPCKernel
int fcGetPixelSize(fcPixelFormat format)
{
switch (format)
{
case fcPixelFormat_RGBAu8: return 4;
case fcPixelFormat_RGBu8: return 3;
case fcPixelFormat_RGu8: return 2;
case ... | 62.874233 | 123 | 0.690784 | Okashiou |
aa5b53057aedea3d92c9887b302923faca18e753 | 25,676 | cpp | C++ | Editor/src/gdeditor.cpp | guilmont/GDManager | dedb0b6c5e1c55886def5360837cbce2485c0d78 | [
"Apache-2.0"
] | null | null | null | Editor/src/gdeditor.cpp | guilmont/GDManager | dedb0b6c5e1c55886def5360837cbce2485c0d78 | [
"Apache-2.0"
] | null | null | null | Editor/src/gdeditor.cpp | guilmont/GDManager | dedb0b6c5e1c55886def5360837cbce2485c0d78 | [
"Apache-2.0"
] | null | null | null | #include "gdeditor.h"
static std::string type2Label(GDM::Type type)
{
switch (type)
{
case GDM::Type::GROUP:
return "GROUP";
case GDM::Type::INT32:
return "INT32";
case GDM::Type::INT64:
return "INT64";
case GDM::Type::UINT8:
return "UINT8";
case GDM::Type::UINT16:
return "UINT16";
ca... | 26.226762 | 190 | 0.601418 | guilmont |
aa5cb80d29873cd202b9e6d1c585e14ab78e793f | 2,666 | cpp | C++ | tests/lsscript_sequencing.cpp | hamsham/LightScript | 22af688178067ebdb6f053e3916307ed799b3fb9 | [
"BSD-3-Clause"
] | 1 | 2015-11-07T03:59:57.000Z | 2015-11-07T03:59:57.000Z | tests/lsscript_sequencing.cpp | hamsham/LightScript | 22af688178067ebdb6f053e3916307ed799b3fb9 | [
"BSD-3-Clause"
] | null | null | null | tests/lsscript_sequencing.cpp | hamsham/LightScript | 22af688178067ebdb6f053e3916307ed799b3fb9 | [
"BSD-3-Clause"
] | 1 | 2015-10-16T06:07:54.000Z | 2015-10-16T06:07:54.000Z | /*
* File: sequence_test.cpp
* Author: hammy
*
* Created on Feb 26, 2015, 12:38:57 AM
*/
#include <cassert>
#include <iostream>
#include "lightsky/script/Script.h"
template <class data_t> using lsPointer = ls::script::Pointer_t<data_t>;
using lsVariable = ls::script::Variable;
using ls::script::create_variabl... | 33.325 | 84 | 0.684546 | hamsham |
aa5d110c209eafb80b53e1df4929bed17b2a523b | 114 | hpp | C++ | test/old_tests/Composable/precomp.hpp | sylveon/cppwinrt | 4d5c5ae3de386ce1f18c3410a27b9ceb40aa524d | [
"MIT"
] | 859 | 2016-10-13T00:11:52.000Z | 2019-05-06T15:45:46.000Z | test/old_tests/Composable/precomp.hpp | shinsetsu/cppwinrt | ae0378373d2318d91448b8697a91d5b65a1fb2e5 | [
"MIT"
] | 655 | 2019-10-08T12:15:16.000Z | 2022-03-31T18:26:40.000Z | test/old_tests/Composable/precomp.hpp | shinsetsu/cppwinrt | ae0378373d2318d91448b8697a91d5b65a1fb2e5 | [
"MIT"
] | 137 | 2016-10-13T04:19:59.000Z | 2018-11-09T05:08:03.000Z | #pragma once
#pragma warning(disable:4100)
#include "winrt/Windows.Foundation.h"
#include "winrt/Composable.h"
| 16.285714 | 37 | 0.763158 | sylveon |
aa6384a49df1d137e7cfc1c1b7f7957242c33d9a | 935 | cpp | C++ | test/utilities/template.bitset/bitset.members/any.pass.cpp | caiohamamura/libcxx | 27c836ff3a9c505deb9fd1616012924de8ff9279 | [
"MIT"
] | 1,244 | 2015-01-02T21:08:56.000Z | 2022-03-22T21:34:16.000Z | test/utilities/template.bitset/bitset.members/any.pass.cpp | caiohamamura/libcxx | 27c836ff3a9c505deb9fd1616012924de8ff9279 | [
"MIT"
] | 125 | 2015-01-22T01:08:00.000Z | 2020-05-25T08:28:17.000Z | test/utilities/template.bitset/bitset.members/any.pass.cpp | caiohamamura/libcxx | 27c836ff3a9c505deb9fd1616012924de8ff9279 | [
"MIT"
] | 124 | 2015-01-12T15:06:17.000Z | 2022-03-26T07:48:53.000Z | //===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------------------------------------... | 20.777778 | 80 | 0.427807 | caiohamamura |
aa65398a61e1b17699300f3639089ecf03236630 | 779 | cpp | C++ | src/debug_gui/types/camera3d.cpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/debug_gui/types/camera3d.cpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/debug_gui/types/camera3d.cpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | #include "../../camera3d.hpp"
#include "../entry_field.hpp"
namespace rev {
const char* Camera3D::getDebugName() const noexcept {
return "Camera3D";
}
bool Camera3D::property(const bool edit) {
auto f = debug::EntryField("Camera3D", edit);
ImGui::Columns(1);
if(f.entry("pose", _rflag.ref<Pose>()))
refPos... | 25.966667 | 54 | 0.620026 | degarashi |
aa6bc184df9da1b35fe983d11f2779acaa978ee4 | 1,154 | cpp | C++ | WA/UVa-10410.cpp | chenhw26/OnlineJudgeByChw | 112560816a34062ddaf502d81f25dbb9a2ccd7d5 | [
"MIT"
] | null | null | null | WA/UVa-10410.cpp | chenhw26/OnlineJudgeByChw | 112560816a34062ddaf502d81f25dbb9a2ccd7d5 | [
"MIT"
] | null | null | null | WA/UVa-10410.cpp | chenhw26/OnlineJudgeByChw | 112560816a34062ddaf502d81f25dbb9a2ccd7d5 | [
"MIT"
] | null | null | null | #include <iostream>
#include <set>
using namespace std;
int find(int a, int n, int *arr, int begin = 1){
for(int i = begin; i <= n; ++i)
if(arr[i] == a) return i;
return 0;
}
int main(){
int n;
while(cin >> n){
int bfs[n + 5] = {0}, dfs[n + 5] = {0};
set<int> ans[n + 5];
bool findAns[n + 5] = {0};
for (... | 26.227273 | 93 | 0.533795 | chenhw26 |
aa6ccc40393607ba110b06791af3732e152a2448 | 15,500 | inl | C++ | c++/Palm/PalmField.inl | aamshukov/miscellaneous | 6fc0d2cb98daff70d14f87b2dfc4e58e61d2df60 | [
"MIT"
] | null | null | null | c++/Palm/PalmField.inl | aamshukov/miscellaneous | 6fc0d2cb98daff70d14f87b2dfc4e58e61d2df60 | [
"MIT"
] | null | null | null | c++/Palm/PalmField.inl | aamshukov/miscellaneous | 6fc0d2cb98daff70d14f87b2dfc4e58e61d2df60 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////////////
//......................................................................................
// This is a part of AI Library [Arthur's Interfaces Library]. .
// 1998-2001 Arthur Amshukov ... | 38.75 | 195 | 0.684839 | aamshukov |
aa70d7599f31fced9d60ef5bb7c1d4e64bed6af5 | 274 | hh | C++ | extern/clean-core/src/clean-core/stringhash.hh | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | extern/clean-core/src/clean-core/stringhash.hh | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | extern/clean-core/src/clean-core/stringhash.hh | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | #pragma once
#include <clean-core/hash_combine.hh>
namespace cc
{
constexpr hash_t stringhash(char const* s)
{
if (!s)
return 0;
hash_t h = hash_combine();
while (*s)
{
h = hash_combine(h, hash_t(*s));
s++;
}
return h;
}
}
| 13.047619 | 42 | 0.547445 | rovedit |
aa729a6109d216204055f776fa7ca358c67e985b | 53,767 | cpp | C++ | join/sax/tests/packreader_test.cpp | mrabine/join | 63c6193f2cc229328c36748d7f9ef8aca915bec3 | [
"MIT"
] | 1 | 2021-09-14T13:53:07.000Z | 2021-09-14T13:53:07.000Z | join/sax/tests/packreader_test.cpp | joinframework/join | 63c6193f2cc229328c36748d7f9ef8aca915bec3 | [
"MIT"
] | 15 | 2021-08-09T23:55:02.000Z | 2021-11-22T11:05:41.000Z | join/sax/tests/packreader_test.cpp | mrabine/join | 63c6193f2cc229328c36748d7f9ef8aca915bec3 | [
"MIT"
] | null | null | null | /**
* MIT License
*
* Copyright (c) 2021 Mathieu Rabine
*
* 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, ... | 53.659681 | 194 | 0.541168 | mrabine |
aa7c59166aa6c18afa7647f939283201e04d1acc | 1,155 | hpp | C++ | test/core/fakes/util_fake_string.hpp | pit-ray/win-vind | 7386f6f7528d015ce7f1a5ae230d6e63f9492df9 | [
"MIT"
] | 731 | 2020-05-07T06:22:59.000Z | 2022-03-31T16:36:03.000Z | test/core/fakes/util_fake_string.hpp | pit-ray/win-vind | 7386f6f7528d015ce7f1a5ae230d6e63f9492df9 | [
"MIT"
] | 67 | 2020-07-20T19:46:42.000Z | 2022-03-31T15:34:47.000Z | test/core/fakes/util_fake_string.hpp | pit-ray/win-vind | 7386f6f7528d015ce7f1a5ae230d6e63f9492df9 | [
"MIT"
] | 15 | 2021-01-29T04:49:11.000Z | 2022-03-04T22:16:31.000Z | #ifndef _UTIL_FAKE_STRING_HPP
#define _UTIL_FAKE_STRING_HPP
#include "util/string.hpp"
#include <cstring>
#include <cwchar>
#include <string>
namespace vind {
namespace util {
//
// The output string of std::wstring is the fake converted string.
// It is the same bytes as bef... | 26.860465 | 81 | 0.571429 | pit-ray |
aa838803d3c90f97d190a710bf84c303df627919 | 4,477 | hpp | C++ | frontend/services/lua_service_wrapper/Lua_Service_Wrapper.hpp | xge/megamol | 1e298dd3d8b153d7468ed446f6b2ed3ac49f0d5b | [
"BSD-3-Clause"
] | 49 | 2017-08-23T13:24:24.000Z | 2022-03-16T09:10:58.000Z | frontend/services/lua_service_wrapper/Lua_Service_Wrapper.hpp | xge/megamol | 1e298dd3d8b153d7468ed446f6b2ed3ac49f0d5b | [
"BSD-3-Clause"
] | 200 | 2018-07-20T15:18:26.000Z | 2022-03-31T11:01:44.000Z | frontend/services/lua_service_wrapper/Lua_Service_Wrapper.hpp | xge/megamol | 1e298dd3d8b153d7468ed446f6b2ed3ac49f0d5b | [
"BSD-3-Clause"
] | 31 | 2017-07-31T16:19:29.000Z | 2022-02-14T23:41:03.000Z | /*
* Lua_Service_Wrapper.hpp
*
* Copyright (C) 2020 by MegaMol Team
* Alle Rechte vorbehalten.
*/
#pragma once
#include "AbstractFrontendService.hpp"
#include "ScriptPaths.h"
#include "mmcore/LuaAPI.h"
#include "LuaCallbacksCollection.h"
namespace megamol {
namespace frontend {
// the Lua Service Wrapper wr... | 41.841121 | 130 | 0.755193 | xge |
aa88b67294f221a8b29910587df848b66fafbbe6 | 936 | hpp | C++ | LinearAlgebra/operation/equal/equal.hpp | suiyili/Algorithms | d6ddc8262c5d681ecc78938b6140510793a29d91 | [
"MIT"
] | null | null | null | LinearAlgebra/operation/equal/equal.hpp | suiyili/Algorithms | d6ddc8262c5d681ecc78938b6140510793a29d91 | [
"MIT"
] | null | null | null | LinearAlgebra/operation/equal/equal.hpp | suiyili/Algorithms | d6ddc8262c5d681ecc78938b6140510793a29d91 | [
"MIT"
] | null | null | null | #pragma once
#include "equal.h"
#include "operation/utility.hpp"
#include <type_traits>
#include <cmath>
namespace algebra::arithmetic {
template <typename T>
inline bool are_equal(const algebra_vector<T> &left, const algebra_vector<T> &right) {
ensure_match(left, right);
if constexpr (std::is_floating_point_v<T... | 26 | 86 | 0.617521 | suiyili |
aa895fed680a6d5af9e6b8fd0ebc1a0f60d95832 | 1,192 | cpp | C++ | CSE 225L Data Structures and Algorithms/Resources/Codes Previous/Spring-2019-CSE225 1/Lab7(Array Based Queue)/quetype(2).cpp | diptu/Teaching | 20655bb2c688ae29566b0a914df4a3e5936a2f61 | [
"MIT"
] | null | null | null | CSE 225L Data Structures and Algorithms/Resources/Codes Previous/Spring-2019-CSE225 1/Lab7(Array Based Queue)/quetype(2).cpp | diptu/Teaching | 20655bb2c688ae29566b0a914df4a3e5936a2f61 | [
"MIT"
] | null | null | null | CSE 225L Data Structures and Algorithms/Resources/Codes Previous/Spring-2019-CSE225 1/Lab7(Array Based Queue)/quetype(2).cpp | diptu/Teaching | 20655bb2c688ae29566b0a914df4a3e5936a2f61 | [
"MIT"
] | null | null | null | #include"quetype.h"
#include <iostream>
using namespace std;
template<class ItemType>
QueType<ItemType>::QueType(int max)
{
maxQue=max+1;
front=maxQue-1;
rear=maxQue-1;
items=new ItemType[maxQue];
}
template<class ItemType>
QueType<ItemType>::QueType()
{
maxQue=501;
front=maxQue-1;
rear=ma... | 16.328767 | 49 | 0.647651 | diptu |
aa8a6dd9e66a1cc30715a03dc91c0460308b3560 | 14,899 | hpp | C++ | src/Core/CommandBuffer.hpp | Shmaug/Stratum | 036eccb824867b019c6ed3c589cfb171e9350c0c | [
"MIT"
] | 4 | 2019-12-13T19:29:39.000Z | 2022-02-15T05:51:47.000Z | src/Core/CommandBuffer.hpp | Shmaug/Stratum | 036eccb824867b019c6ed3c589cfb171e9350c0c | [
"MIT"
] | 2 | 2020-04-08T19:59:31.000Z | 2021-06-14T04:29:42.000Z | src/Core/CommandBuffer.hpp | Shmaug/Stratum | 036eccb824867b019c6ed3c589cfb171e9350c0c | [
"MIT"
] | 4 | 2020-03-03T01:29:10.000Z | 2022-02-15T05:51:52.000Z | #pragma once
#include "Fence.hpp"
#include "Framebuffer.hpp"
#include "Pipeline.hpp"
#include <Common/Profiler.hpp>
namespace stm {
class CommandBuffer : public DeviceResource {
public:
// assumes a CommandPool has been created for this_thread in queueFamily
STRATUM_API CommandBuffer(Device& device, const string&... | 47.906752 | 283 | 0.739177 | Shmaug |
aa8af9ea3459db52b692e8c8a1708ae27e1f1964 | 346 | cpp | C++ | docs/atl-mfc-shared/reference/codesnippet/CPP/cfile-class_12.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 965 | 2017-06-25T23:57:11.000Z | 2022-03-31T14:17:32.000Z | docs/atl-mfc-shared/reference/codesnippet/CPP/cfile-class_12.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 3,272 | 2017-06-24T00:26:34.000Z | 2022-03-31T22:14:07.000Z | docs/atl-mfc-shared/reference/codesnippet/CPP/cfile-class_12.cpp | bobbrow/cpp-docs | 769b186399141c4ea93400863a7d8463987bf667 | [
"CC-BY-4.0",
"MIT"
] | 951 | 2017-06-25T12:36:14.000Z | 2022-03-26T22:49:06.000Z | //example for CFile::Remove
TCHAR* pFileName = _T("Remove_File.dat");
try
{
CFile::Remove(pFileName);
}
catch (CFileException* pEx)
{
TRACE(_T("File %20s cannot be removed\n"), pFileName);
pE... | 31.454545 | 69 | 0.416185 | bobbrow |
aa8c47b70bc69e0039c64ad542d5321b16783173 | 7,906 | cpp | C++ | ChaosEngine/MaterialImporter.cpp | adrianam4/Chaos-Engine | 2bc5693c0c25118ec58331c4311eac68c94d4d19 | [
"MIT"
] | null | null | null | ChaosEngine/MaterialImporter.cpp | adrianam4/Chaos-Engine | 2bc5693c0c25118ec58331c4311eac68c94d4d19 | [
"MIT"
] | null | null | null | ChaosEngine/MaterialImporter.cpp | adrianam4/Chaos-Engine | 2bc5693c0c25118ec58331c4311eac68c94d4d19 | [
"MIT"
] | null | null | null | #include "Application.h"
#include "MaterialImporter.h"
#include "ResourceMaterial.h"
#include "DevIL/include/il.h"
#include "DevIL/include/ilu.h"
#include "DevIL/include/ilut.h"
#include <string>
MaterialImporter::MaterialImporter()
{
}
MaterialImporter::~MaterialImporter()
{
}
void MaterialImporter::SaveMaterial... | 28.644928 | 118 | 0.656969 | adrianam4 |
aa8e09d4c4a77647fbda85f91f892ba622a2bc4e | 681 | cpp | C++ | final/pointers/wk3-functions.cpp | coderica/effective_cpp | 456d30cf42c6c71dc7187d88e362651dd79ac3fe | [
"MIT"
] | null | null | null | final/pointers/wk3-functions.cpp | coderica/effective_cpp | 456d30cf42c6c71dc7187d88e362651dd79ac3fe | [
"MIT"
] | null | null | null | final/pointers/wk3-functions.cpp | coderica/effective_cpp | 456d30cf42c6c71dc7187d88e362651dd79ac3fe | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
#include "wk3-user.h"
#include "wk3-utilities.h"
void displayUser(const user &user1)
{
cout << "Name: " << user1.name << endl;
cout << "Gender: " << (user1.gender == male ? "male" : "female") << endl;
cout << "Age: " << user1.age << endl;
if... | 21.28125 | 78 | 0.610866 | coderica |
aa9964468d6aa4c54aaf83ac6e4a28db73680e87 | 11,531 | cpp | C++ | Benchmarks/leukocyte/lc_dilate/dilate_7_multiddr/src/dilate.cpp | LemonAndRabbit/rodinia-hls | 097e8cf572a9ab04403c4eb0cfdb042f233f4aea | [
"BSD-2-Clause"
] | 16 | 2020-12-28T15:07:53.000Z | 2022-02-16T08:55:40.000Z | Benchmarks/leukocyte/lc_dilate/dilate_7_multiddr/src/dilate.cpp | LemonAndRabbit/rodinia-hls | 097e8cf572a9ab04403c4eb0cfdb042f233f4aea | [
"BSD-2-Clause"
] | null | null | null | Benchmarks/leukocyte/lc_dilate/dilate_7_multiddr/src/dilate.cpp | LemonAndRabbit/rodinia-hls | 097e8cf572a9ab04403c4eb0cfdb042f233f4aea | [
"BSD-2-Clause"
] | 6 | 2020-12-28T07:33:08.000Z | 2022-01-13T16:31:22.000Z | #include "dilate.h"
extern "C" {
const int PARA_FACTOR=16;
float lc_dilate_stencil_core(float img_sample[STREL_ROWS * STREL_COLS])
{
float max = 0.0;
for (int i = 0; i < STREL_ROWS; i++)
#pragma HLS unroll
for (int j = 0; j < STREL_COLS; j++) {
#pragma HLS unroll
float temp = img_s... | 39.62543 | 170 | 0.66447 | LemonAndRabbit |
aa998be3d5886b10d7a197f61b4c004e56109d05 | 2,348 | cc | C++ | cetlib/test/PluginFactory_t.cc | jcfreeman2/cetlib | 2ad242f6d9ec99f23c9730c60ef84036a9b8d8ca | [
"BSD-3-Clause"
] | null | null | null | cetlib/test/PluginFactory_t.cc | jcfreeman2/cetlib | 2ad242f6d9ec99f23c9730c60ef84036a9b8d8ca | [
"BSD-3-Clause"
] | null | null | null | cetlib/test/PluginFactory_t.cc | jcfreeman2/cetlib | 2ad242f6d9ec99f23c9730c60ef84036a9b8d8ca | [
"BSD-3-Clause"
] | 1 | 2022-03-30T15:12:49.000Z | 2022-03-30T15:12:49.000Z | #define BOOST_TEST_MODULE (PluginFactory_t)
#include "boost/test/unit_test.hpp"
#include "cetlib/BasicPluginFactory.h"
#include "cetlib/PluginTypeDeducer.h"
#include "cetlib/test/TestPluginBase.h"
#include "cetlib_except/exception.h"
#include <memory>
#include <string>
using namespace cet;
// PluginFactory tests ar... | 31.306667 | 80 | 0.689097 | jcfreeman2 |
aa9f3c50eba90d00a967fb0d858f6642eba3f888 | 4,169 | cpp | C++ | src/text/freetype/wrap.cpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/text/freetype/wrap.cpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/text/freetype/wrap.cpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | #include "wrap.hpp"
#include "error.hpp"
#include "../../sdl/rw.hpp"
namespace rev {
namespace {
constexpr unsigned int FTUnit = 64;
}
// ---------------------- FTLibrary ----------------------
FTLibrary::FTLibrary() {
FTAssert(FT_Init_FreeType, &_lib);
}
FTLibrary::~FTLibrary() {
if(_lib)
D_FTAssert(FT... | 28.751724 | 113 | 0.673063 | degarashi |
aaa0112e550b865ce0a2d2946b2ac2a5c9099c23 | 1,564 | cpp | C++ | snippets/cpp/VS_Snippets_Winforms/Classic DefaultEventAttribute Example/CPP/source.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 834 | 2017-06-24T10:40:36.000Z | 2022-03-31T19:48:51.000Z | snippets/cpp/VS_Snippets_Winforms/Classic DefaultEventAttribute Example/CPP/source.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 7,042 | 2017-06-23T22:34:47.000Z | 2022-03-31T23:05:23.000Z | snippets/cpp/VS_Snippets_Winforms/Classic DefaultEventAttribute Example/CPP/source.cpp | BohdanMosiyuk/samples | 59d435ba9e61e0fc19f5176c96b1cdbd53596142 | [
"CC-BY-4.0",
"MIT"
] | 1,640 | 2017-06-23T22:31:39.000Z | 2022-03-31T02:45:37.000Z | #using <System.dll>
#using <System.Windows.Forms.dll>
using namespace System;
using namespace System::ComponentModel;
using namespace System::Windows::Forms;
namespace DefaultEventAttributeExample
{
// <Snippet1>
[DefaultEvent("CollectionChanged")]
public ref class TestCollection: public BaseCollection
... | 27.928571 | 69 | 0.661765 | BohdanMosiyuk |
aaa247e81f79f2589581a3e0995f94ebcccca378 | 1,371 | cpp | C++ | src/parser/expression/lambda_expression.cpp | nbenn/duckdb | a7493fec044a3d652389039fc942a3d331cf2c16 | [
"MIT"
] | 1 | 2021-12-13T06:00:18.000Z | 2021-12-13T06:00:18.000Z | src/parser/expression/lambda_expression.cpp | nbenn/duckdb | a7493fec044a3d652389039fc942a3d331cf2c16 | [
"MIT"
] | 32 | 2021-09-24T23:50:09.000Z | 2022-03-29T09:37:26.000Z | src/parser/expression/lambda_expression.cpp | nbenn/duckdb | a7493fec044a3d652389039fc942a3d331cf2c16 | [
"MIT"
] | null | null | null | #include "duckdb/parser/expression/lambda_expression.hpp"
#include "duckdb/common/field_writer.hpp"
#include "duckdb/common/types/hash.hpp"
namespace duckdb {
LambdaExpression::LambdaExpression(unique_ptr<ParsedExpression> lhs, unique_ptr<ParsedExpression> rhs)
: ParsedExpression(ExpressionType::LAMBDA, Expressio... | 32.642857 | 105 | 0.757112 | nbenn |
aaa773dbc0c43b8c14227438b71557ccd8d501f6 | 6,932 | cc | C++ | src/apps/vod/VoDUDPServer.cc | talal00/Simu5G | ffbdda3e4cd873b49d7022912fe25e39d1a503e8 | [
"Intel"
] | 58 | 2021-04-15T09:20:26.000Z | 2022-03-31T08:52:23.000Z | src/apps/vod/VoDUDPServer.cc | talal00/Simu5G | ffbdda3e4cd873b49d7022912fe25e39d1a503e8 | [
"Intel"
] | 34 | 2021-05-14T15:05:36.000Z | 2022-03-31T20:51:33.000Z | src/apps/vod/VoDUDPServer.cc | talal00/Simu5G | ffbdda3e4cd873b49d7022912fe25e39d1a503e8 | [
"Intel"
] | 30 | 2021-04-16T05:46:13.000Z | 2022-03-28T15:26:29.000Z | //
// Simu5G
//
// Authors: Giovanni Nardini, Giovanni Stea, Antonio Virdis (University of Pisa)
//
// This file is part of a software released under the license included in file
// "license.pdf". Please read LICENSE and README files before using it.
// The above files and the present reference are par... | 33.814634 | 153 | 0.594201 | talal00 |
aaacd4d00260bf51d9070e3beb6b473c489b7652 | 8,724 | cpp | C++ | core/ir/node.cpp | lqwang1025/Eutopia | 5ecb47805fd650bd7580cd3702032a98378e334f | [
"Apache-2.0"
] | 2 | 2021-08-29T00:22:23.000Z | 2021-09-13T13:16:52.000Z | core/ir/node.cpp | lqwang1025/Eutopia | 5ecb47805fd650bd7580cd3702032a98378e334f | [
"Apache-2.0"
] | null | null | null | core/ir/node.cpp | lqwang1025/Eutopia | 5ecb47805fd650bd7580cd3702032a98378e334f | [
"Apache-2.0"
] | null | null | null | /*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... | 25.14121 | 107 | 0.685695 | lqwang1025 |
aab0b70d332efe7a18e716c2ad86348b07e41e71 | 805 | cpp | C++ | src/Tokenizer.cpp | eldermyoshida/Potato-Master | 31efa37b0f2cb4cbf44afda2b38b80053cc89d7f | [
"MIT"
] | null | null | null | src/Tokenizer.cpp | eldermyoshida/Potato-Master | 31efa37b0f2cb4cbf44afda2b38b80053cc89d7f | [
"MIT"
] | null | null | null | src/Tokenizer.cpp | eldermyoshida/Potato-Master | 31efa37b0f2cb4cbf44afda2b38b80053cc89d7f | [
"MIT"
] | null | null | null | //
// Tokenizer.cpp
// Potato-Master
//
// Created by Elder Yoshida on 4/23/15.
// Copyright (c) 2015 Elder Yoshida. All rights reserved.
//
#include "Tokenizer.h"
void Tokenize(const string& str,
vector<string>& tokens,
const string& delimiters = " ")
{
// Skip delimiters at beginning.
string::size_ty... | 29.814815 | 68 | 0.686957 | eldermyoshida |
aab155f3c6d981d9e9afb90b50db0b888f252313 | 445 | cpp | C++ | wwi-2019/choinka.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | 2 | 2019-05-04T09:37:09.000Z | 2019-05-22T18:07:28.000Z | wwi-2019/choinka.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | null | null | null | wwi-2019/choinka.cpp | Aleshkev/algoritmika | fc95b0c0f318d9eb4ef1fef4cc3c6e85d2417189 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef intmax_t I;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr), cout.tie(nullptr);
I n;
cin >> n;
for (I k = 0; k < 2; ++k)
for (I i = 0; i < n + k; ++i)
cout << string(n - i, ' ') << string(2 * i + 1, '*') << '\n';
for (I k = 0... | 19.347826 | 67 | 0.501124 | Aleshkev |
82b686cf7b10218ba123f71635a7a4dc38dddfaf | 2,834 | cpp | C++ | breeze/conversion/test/roman_test.cpp | gennaroprota/breeze | 7afe88a30dc8ac8b97a76a192dc9b189d9752e8b | [
"BSD-3-Clause"
] | 1 | 2021-04-03T22:35:52.000Z | 2021-04-03T22:35:52.000Z | breeze/conversion/test/roman_test.cpp | gennaroprota/breeze | f1dfd7154222ae358f5ece936c2897a3ae110003 | [
"BSD-3-Clause"
] | null | null | null | breeze/conversion/test/roman_test.cpp | gennaroprota/breeze | f1dfd7154222ae358f5ece936c2897a3ae110003 | [
"BSD-3-Clause"
] | 1 | 2021-10-01T04:26:48.000Z | 2021-10-01T04:26:48.000Z | // ===========================================================================
// Copyright 2016 Gennaro Prota
//
// Licensed under the 3-Clause BSD License.
// (See accompanying file 3_CLAUSE_BSD_LICENSE.txt or
// <https://opensource.org/licenses/BSD-3-C... | 27.784314 | 78 | 0.51976 | gennaroprota |
82b82cd7ee2ee6bbb0c0be93f62c980894f13e20 | 239 | hpp | C++ | include/Node.hpp | behluluysal/sau-data-structures-2020-midterm | 39b21a77943dcdbc9223b8f22690bac766050861 | [
"MIT"
] | null | null | null | include/Node.hpp | behluluysal/sau-data-structures-2020-midterm | 39b21a77943dcdbc9223b8f22690bac766050861 | [
"MIT"
] | null | null | null | include/Node.hpp | behluluysal/sau-data-structures-2020-midterm | 39b21a77943dcdbc9223b8f22690bac766050861 | [
"MIT"
] | null | null | null | #ifndef Node_hpp
#define Node_hpp
#pragma once
#include "iostream"
class Node
{
public:
Node();
Node(int data, Node *prevnew, Node *nextnew);
int getData();
~Node();
Node *next;
Node *prev;
int data;
};
#endif | 13.277778 | 49 | 0.615063 | behluluysal |
82b9bb8fa03488e86044b2df5eeba361aec3b249 | 2,552 | cpp | C++ | Classic Algorithms/Columnar cypher/columnar.cpp | IulianOctavianPreda/EncryptionAlgorithms | 3cbaec3f5a6b9b7c615a20bfd3c6206469deb8f4 | [
"MIT"
] | null | null | null | Classic Algorithms/Columnar cypher/columnar.cpp | IulianOctavianPreda/EncryptionAlgorithms | 3cbaec3f5a6b9b7c615a20bfd3c6206469deb8f4 | [
"MIT"
] | null | null | null | Classic Algorithms/Columnar cypher/columnar.cpp | IulianOctavianPreda/EncryptionAlgorithms | 3cbaec3f5a6b9b7c615a20bfd3c6206469deb8f4 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
std::map<int, int> keyMap;
void orderColumns(const std::string &key) {
for (unsigned int i = 0; i < key.length(); i++) {
keyMap[key[i]] = i;
}
}
std::string encrypt(std::string text, const std::string &key) {
unsigned int row, column;
std::string cipher;
column = key.length();
... | 24.538462 | 78 | 0.53605 | IulianOctavianPreda |
82bce099e057cee96fc162bb5fd79780a10a99fd | 2,273 | hh | C++ | include/xpgom/gomwrappedelement.hh | jberkman/gom | 4bccfec5e5ada830a4c5f076dfefb9ad9baab6a5 | [
"MIT"
] | null | null | null | include/xpgom/gomwrappedelement.hh | jberkman/gom | 4bccfec5e5ada830a4c5f076dfefb9ad9baab6a5 | [
"MIT"
] | null | null | null | include/xpgom/gomwrappedelement.hh | jberkman/gom | 4bccfec5e5ada830a4c5f076dfefb9ad9baab6a5 | [
"MIT"
] | null | null | null | /*
The MIT License
Copyright (c) 2008 jacob berkman <jacob@ilovegom.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 without restriction, including without limitation the rights
to use, copy,... | 37.262295 | 125 | 0.805543 | jberkman |
82c2f5b6572143f3919473671e6ed190fcc7e086 | 2,729 | cc | C++ | emplnofusion/employee2.cc | jorgeventura/spirit | 3ad8ebee54bb294486fe8eead44691bec89532e6 | [
"BSL-1.0"
] | null | null | null | emplnofusion/employee2.cc | jorgeventura/spirit | 3ad8ebee54bb294486fe8eead44691bec89532e6 | [
"BSL-1.0"
] | null | null | null | emplnofusion/employee2.cc | jorgeventura/spirit | 3ad8ebee54bb294486fe8eead44691bec89532e6 | [
"BSL-1.0"
] | null | null | null | #define BOOST_SPIRIT_X3_DEBUG
#include <iostream>
#include <boost/spirit/home/x3.hpp>
#include <boost/fusion/include/adapt_struct.hpp>
#include <string>
#include <vector>
#include <variant>
namespace x3 = boost::spirit::x3;
namespace ast {
struct employee
{
int age;
std::string gname;
std::... | 25.036697 | 115 | 0.45841 | jorgeventura |
82c372258db90a8bb6ad993843f33ed140153e3a | 1,560 | cc | C++ | pb/protobuf_dump.cc | corrupt-stack/protobuf-super-lite | c9c0c90721756b9208f6bfccfdc40838316edf2c | [
"BSD-3-Clause"
] | null | null | null | pb/protobuf_dump.cc | corrupt-stack/protobuf-super-lite | c9c0c90721756b9208f6bfccfdc40838316edf2c | [
"BSD-3-Clause"
] | null | null | null | pb/protobuf_dump.cc | corrupt-stack/protobuf-super-lite | c9c0c90721756b9208f6bfccfdc40838316edf2c | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2022 Yuri Wiitala. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <cstdint>
#include <fstream>
#include <iostream>
#include <limits>
#include <vector>
#include "pb/codec/limits.h"
#include "pb/inspection.h"
int main(i... | 26.896552 | 79 | 0.605128 | corrupt-stack |
82c851fe3f10a27336cd8670fcb72b466a71e0f1 | 647 | hpp | C++ | include/chesham/cppext/functional.hpp | Chesham/cppext | 9fb0326fcfcb737797ed9ece4a88688d996ec615 | [
"MIT"
] | 3 | 2020-05-25T03:39:05.000Z | 2022-01-11T16:55:18.000Z | include/chesham/cppext/functional.hpp | Chesham/cppext | 9fb0326fcfcb737797ed9ece4a88688d996ec615 | [
"MIT"
] | null | null | null | include/chesham/cppext/functional.hpp | Chesham/cppext | 9fb0326fcfcb737797ed9ece4a88688d996ec615 | [
"MIT"
] | null | null | null | #pragma once
#include <algorithm>
#include <cctype>
#include <functional>
namespace chesham
{
template<class T>
struct string_no_case_comparer
{
T& to_lower(T& s) const
{
transform(s.begin(), s.end(), s.begin(), [](const auto& i) { return ::tolower(i); });
... | 23.962963 | 98 | 0.483771 | Chesham |
82c931d036489bb1edf04731319c35afa727d4b3 | 1,805 | cpp | C++ | CardGame/Classes/Social/SocialJNI.cpp | GuruDev0807/CardGame | e14c71b9833b38d97266678810d1800cb7880ea6 | [
"MIT"
] | 2 | 2022-03-10T00:18:44.000Z | 2022-03-26T12:26:19.000Z | CardGame/Classes/Social/SocialJNI.cpp | GuruDev0807/CardGame | e14c71b9833b38d97266678810d1800cb7880ea6 | [
"MIT"
] | null | null | null | CardGame/Classes/Social/SocialJNI.cpp | GuruDev0807/CardGame | e14c71b9833b38d97266678810d1800cb7880ea6 | [
"MIT"
] | 2 | 2019-12-18T15:55:48.000Z | 2020-02-16T15:02:10.000Z |
#include "../Common/Common.h"
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID)
#include <jni.h>
#include "platform/android/jni/JniHelper.h"
#include <android/log.h>
#endif
#include "SocialJni.h"
#include "../Layer/SettingLayer.h"
#define CLASS_NAME "com/mcmahon/cardgame/AppActivity"
extern "C"
{
std::string get... | 27.769231 | 117 | 0.693075 | GuruDev0807 |
82cb697fa829ffbb50bf5892b434d01a7efef170 | 116 | hh | C++ | src/Environment.hh | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | src/Environment.hh | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | src/Environment.hh | rovedit/Fort-Candle | 445fb94852df56c279c71b95c820500e7fb33cf7 | [
"MIT"
] | null | null | null | #pragma once
#include <glow/fwd.hh>
#include <typed-geometry/tg.hh>
namespace gamedev
{
class Environment
{
};
}
| 8.923077 | 31 | 0.706897 | rovedit |
82d38d5722252f23dcd2c1cfd3ecebcf36cb67b1 | 1,239 | cpp | C++ | leetcode/binarytreepostordertravesal.cpp | WIZARD-CXY/pl | 22b7f5d81804f4e333d3cff6433364ba1a0ac7ef | [
"Apache-2.0"
] | 1 | 2016-01-20T08:26:34.000Z | 2016-01-20T08:26:34.000Z | leetcode/binarytreepostordertravesal.cpp | WIZARD-CXY/pl | 22b7f5d81804f4e333d3cff6433364ba1a0ac7ef | [
"Apache-2.0"
] | 1 | 2015-10-21T05:38:17.000Z | 2015-11-02T07:42:55.000Z | leetcode/binarytreepostordertravesal.cpp | WIZARD-CXY/pl | 22b7f5d81804f4e333d3cff6433364ba1a0ac7ef | [
"Apache-2.0"
] | null | null | null | /**
* Definition for a binary tree node.
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
vector<int> postorderTraversal(TreeNode* root) {
vector<int> res;
//p ... | 23.377358 | 70 | 0.357546 | WIZARD-CXY |
82d6a6123fcf3664d4a8f2e930bda06514fdff6f | 320 | cpp | C++ | vs_plrlsght_cpp_fndmntls/vs_plrlsght_cpp_fndmntls/Resource.cpp | mugofjoe/cpp-journal | 8b9f4d14343a2241ebe7def8b1f03062dae9caf6 | [
"MIT"
] | null | null | null | vs_plrlsght_cpp_fndmntls/vs_plrlsght_cpp_fndmntls/Resource.cpp | mugofjoe/cpp-journal | 8b9f4d14343a2241ebe7def8b1f03062dae9caf6 | [
"MIT"
] | null | null | null | vs_plrlsght_cpp_fndmntls/vs_plrlsght_cpp_fndmntls/Resource.cpp | mugofjoe/cpp-journal | 8b9f4d14343a2241ebe7def8b1f03062dae9caf6 | [
"MIT"
] | null | null | null | #include "stdafx.h"
#include "Resource.h"
#include <iostream>
using std::cout;
using std::endl;
using std::string;
Resource::Resource(string n) :name(n)
{
cout << "constructing Resource object: " << name << endl;
}
Resource::~Resource(void)
{
cout << "destructing Resource object: " << name << endl;
} | 20 | 59 | 0.64375 | mugofjoe |
82d9ec8e2f7e34826104e47fa7794f403330e2cd | 6,048 | cpp | C++ | Tests/UnitTests/Sources/FunctionTest/BroadcastTest.cpp | sukim96/Sapphire | 7eba047a376d2bfa6cc3182daa143cbe659a1c18 | [
"MIT"
] | 6 | 2021-07-06T10:52:33.000Z | 2021-12-30T11:30:04.000Z | Tests/UnitTests/Sources/FunctionTest/BroadcastTest.cpp | sukim96/Sapphire | 7eba047a376d2bfa6cc3182daa143cbe659a1c18 | [
"MIT"
] | 1 | 2022-01-07T12:18:03.000Z | 2022-01-08T12:23:13.000Z | Tests/UnitTests/Sources/FunctionTest/BroadcastTest.cpp | sukim96/Sapphire | 7eba047a376d2bfa6cc3182daa143cbe659a1c18 | [
"MIT"
] | 3 | 2021-12-05T06:21:50.000Z | 2022-01-09T12:44:23.000Z | // Copyright (c) 2021, Justin Kim
// We are making my contributions/submissions to this project solely in our
// personal capacity and are not conveying any rights to any intellectual
// property of any third parties.
#include <FunctionTest/BroadcastTest.hpp>
#include <Sapphire/compute/BasicOps.hpp>
#include <Sapphir... | 29.647059 | 85 | 0.636409 | sukim96 |
82e1671d75e2ef454b2c17af1df7a2ffcab632f9 | 4,118 | cpp | C++ | discoFever/main.cpp | oskrs111/pimcw | 6b40830b97ca7b6d2e5e7c50227ac7b2f5981749 | [
"MIT"
] | 2 | 2017-11-01T01:18:12.000Z | 2017-12-13T06:04:00.000Z | discoFever/main.cpp | oskrs111/pimcw | 6b40830b97ca7b6d2e5e7c50227ac7b2f5981749 | [
"MIT"
] | null | null | null | discoFever/main.cpp | oskrs111/pimcw | 6b40830b97ca7b6d2e5e7c50227ac7b2f5981749 | [
"MIT"
] | 1 | 2019-12-01T23:40:25.000Z | 2019-12-01T23:40:25.000Z | #include "main.h"
#include "networkthread.h"
#include "../qtkVirtualMIDI/qtkvirtualmidi.h"
void debugLogger(QtMsgType type, const QMessageLogContext &context, const QString &msg)
{
QByteArray localMsg = msg.toLocal8Bit();
switch (type) {
default:
case QtInfoMsg:
case QtDebugMsg:
localMsg.p... | 38.849057 | 126 | 0.63356 | oskrs111 |
82e247eeecf88645ed78f119061fa3b1cf88ce6e | 1,970 | cpp | C++ | src/test.cpp | tonyganchev/stoyozipxx | a19493d53a8c118e06003480b1614e5fa1cacb72 | [
"Apache-2.0"
] | 1 | 2019-11-25T17:02:51.000Z | 2019-11-25T17:02:51.000Z | src/test.cpp | tonyganchev/stoyozipxx | a19493d53a8c118e06003480b1614e5fa1cacb72 | [
"Apache-2.0"
] | null | null | null | src/test.cpp | tonyganchev/stoyozipxx | a19493d53a8c118e06003480b1614e5fa1cacb72 | [
"Apache-2.0"
] | 1 | 2019-11-11T11:11:02.000Z | 2019-11-11T11:11:02.000Z | #include <iostream>
#include <sstream>
#include "buffer.hpp"
#include "oligorithm.hpp"
using namespace std;
void test_find_longest_match(string needle,
string haystack,
size_t expected_length,
size_t expected_start_idx) {
auto m ... | 32.833333 | 82 | 0.614721 | tonyganchev |
82e2cb8aaacffae8dbcfa3f9c0fb6cd461f1f59e | 1,031 | cpp | C++ | Development_Platformer/Development_Platformer/GUIThumb.cpp | vsRushy/Development_Platformer | b9b6d3ce1611bd3e83d0dab2485c55d5acb32afe | [
"MIT"
] | 1 | 2018-10-10T12:09:31.000Z | 2018-10-10T12:09:31.000Z | Development_Platformer/Development_Platformer/GUIThumb.cpp | vsRushy/Development_Platformer | b9b6d3ce1611bd3e83d0dab2485c55d5acb32afe | [
"MIT"
] | null | null | null | Development_Platformer/Development_Platformer/GUIThumb.cpp | vsRushy/Development_Platformer | b9b6d3ce1611bd3e83d0dab2485c55d5acb32afe | [
"MIT"
] | null | null | null | #include "j1App.h"
#include "j1Input.h"
#include "j1GUIManager.h"
#include "GUIElement.h"
#include "GUIThumb.h"
#include "p2Log.h"
GUIThumb::GUIThumb(int x, int y, SDL_Rect image_area, SDL_Rect image_area_hover, SDL_Rect image_area_pressed, GUIElement* son) : GUIElement(type, x, y, area, son)
{
type = GUI_ELEMENT_TYP... | 20.62 | 162 | 0.691562 | vsRushy |
82e7dfaa6b8e56ed5cda49b057e9012cb81bbe82 | 14,113 | cpp | C++ | src/temporal_diff.cpp | uwmri/mri_recon | c74780d56c87603fb935744bf312e8c59d415997 | [
"BSD-3-Clause"
] | null | null | null | src/temporal_diff.cpp | uwmri/mri_recon | c74780d56c87603fb935744bf312e8c59d415997 | [
"BSD-3-Clause"
] | 2 | 2020-11-06T19:45:34.000Z | 2020-11-07T03:22:25.000Z | src/temporal_diff.cpp | uwmri/mri_recon | c74780d56c87603fb935744bf312e8c59d415997 | [
"BSD-3-Clause"
] | null | null | null | /************************************************
3D Wavlet Libraries for pcvipr.e
Initial Author: Kevin M. Johnson
Description: This code controls transfroms in the non-spatial dimensions
*************************************************/
#include "temporal_diff.h"
using namespace NDarray;
using arma::cx_mat;
usin... | 24.416955 | 78 | 0.489124 | uwmri |
82e9519183a5fb683af7b80b261fdcc518f15543 | 12,327 | cpp | C++ | src/wrapper/store/provider_cryptopro.cpp | microshine/trusted-crypto | 22a6496bd390ebe2ed516a15636d911fae4c6407 | [
"Apache-2.0"
] | null | null | null | src/wrapper/store/provider_cryptopro.cpp | microshine/trusted-crypto | 22a6496bd390ebe2ed516a15636d911fae4c6407 | [
"Apache-2.0"
] | null | null | null | src/wrapper/store/provider_cryptopro.cpp | microshine/trusted-crypto | 22a6496bd390ebe2ed516a15636d911fae4c6407 | [
"Apache-2.0"
] | 1 | 2020-07-01T16:32:57.000Z | 2020-07-01T16:32:57.000Z | #include "../stdafx.h"
#include "provider_cryptopro.h"
ProviderCryptopro::ProviderCryptopro(){
LOGGER_FN();
try{
type = new std::string("CRYPTOPRO");
providerItemCollection = new PkiItemCollection();
init();
}
catch (Handle<Exception> e){
THROW_EXCEPTION(0, ProviderCryptopro, e, "Cannot be constructed P... | 26.739696 | 125 | 0.699602 | microshine |
82ea8dd36206e5b09d557281591a37ecd9cfdd00 | 560 | hpp | C++ | src/utils/hittable.hpp | Kingfish404/ray-tracing-cpp | d4c2e3d32df0febd028e7e0ba36d21c3abc25664 | [
"MIT"
] | 1 | 2022-03-25T10:46:34.000Z | 2022-03-25T10:46:34.000Z | src/utils/hittable.hpp | Kingfish404/ray-tracing-cpp | d4c2e3d32df0febd028e7e0ba36d21c3abc25664 | [
"MIT"
] | null | null | null | src/utils/hittable.hpp | Kingfish404/ray-tracing-cpp | d4c2e3d32df0febd028e7e0ba36d21c3abc25664 | [
"MIT"
] | null | null | null | #pragma once
#ifndef HITTABLE_HPP
#define HITTABLE_HPP
#include "../common.hpp"
class material;
struct hit_record
{
point3 p;
vec3 normal;
shared_ptr<material> mat_ptr;
double t;
bool front_face;
inline void set_face_normal(const ray &r, const vec3 &outward_normal)
{
front_face =... | 18.666667 | 90 | 0.680357 | Kingfish404 |
82efaacf949fc75362d7bcbca2c0dc2e6c935856 | 24,115 | cxx | C++ | src/openlcb/EventHandlerTemplates.cxx | TrainzLuvr/openmrn | b3bb9d4995e49aa39856740d292d38cf4a99845b | [
"BSD-2-Clause"
] | null | null | null | src/openlcb/EventHandlerTemplates.cxx | TrainzLuvr/openmrn | b3bb9d4995e49aa39856740d292d38cf4a99845b | [
"BSD-2-Clause"
] | null | null | null | src/openlcb/EventHandlerTemplates.cxx | TrainzLuvr/openmrn | b3bb9d4995e49aa39856740d292d38cf4a99845b | [
"BSD-2-Clause"
] | null | null | null | /** \copyright
* Copyright (c) 2013, Balazs Racz
* 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 li... | 30.758929 | 107 | 0.612109 | TrainzLuvr |
82f1902a27eef2878a10b22fbe3abbddd49a5e4e | 4,366 | cpp | C++ | src/shadereditor/src/shadereditor/nodes/vnode_matrices.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 6 | 2022-01-23T09:40:33.000Z | 2022-03-20T20:53:25.000Z | src/shadereditor/src/shadereditor/nodes/vnode_matrices.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | null | null | null | src/shadereditor/src/shadereditor/nodes/vnode_matrices.cpp | cstom4994/SourceEngineRebuild | edfd7f8ce8af13e9d23586318350319a2e193c08 | [
"MIT"
] | 1 | 2022-02-06T21:05:23.000Z | 2022-02-06T21:05:23.000Z |
#include "cbase.h"
#include "editorCommon.h"
CNodeMatrix_MVP::CNodeMatrix_MVP(CNodeView *p) : BaseClass("Matrix MVP", p) {
GenerateJacks_Output(1);
LockJackOutput_Flags(0, HLSLVAR_MATRIX4X4, "Model View Projection");
}
bool CNodeMatrix_MVP::CreateSolvers(GenericShaderData *ShaderData) {
CJack *pJ_Out =... | 29.70068 | 86 | 0.72721 | cstom4994 |
82f4383c4b8b94f7530e5383d774075ffc28df0d | 634 | cpp | C++ | Nowcoder/64J/implementation.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | 2 | 2018-02-14T01:59:31.000Z | 2018-03-28T03:30:45.000Z | Nowcoder/64J/implementation.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | null | null | null | Nowcoder/64J/implementation.cpp | codgician/ACM | 391f3ce9b89b0a4bbbe3ff60eb2369fef57460d4 | [
"MIT"
] | 2 | 2017-12-30T02:46:35.000Z | 2018-03-28T03:30:49.000Z | #include <iostream>
#include <cstdio>
#include <cmath>
#include <algorithm>
#include <cstring>
#include <string>
#include <iomanip>
#include <climits>
using namespace std;
int mapping[26];
int main()
{
ios::sync_with_stdio(false);
for (int i = 0; i < 26; i++)
{
mapping[i] = i;
}
string s;
... | 17.135135 | 49 | 0.498423 | codgician |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.