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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6abf57c4cb44e56681b630fa98b483724f79f6b2 | 348 | hpp | C++ | inc/implementation/misc/Literals.hpp | LarsHagemann/OrbitEngine | 33e01efaac617c53a701f01729581932fc81e8bf | [
"MIT"
] | null | null | null | inc/implementation/misc/Literals.hpp | LarsHagemann/OrbitEngine | 33e01efaac617c53a701f01729581932fc81e8bf | [
"MIT"
] | 2 | 2022-01-18T21:31:01.000Z | 2022-01-20T21:02:09.000Z | inc/implementation/misc/Literals.hpp | LarsHagemann/OrbitEngine | 33e01efaac617c53a701f01729581932fc81e8bf | [
"MIT"
] | null | null | null | #pragma once
namespace orbit
{
static constexpr size_t operator ""_KiB(size_t in) { return in * 1024; }
static constexpr size_t operator ""_KB(size_t in) { return in * 1000; }
static constexpr size_t operator ""_MiB(size_t in) { return in * 1024 * 1024; }
static constexpr size_t operator ""_MB(size_t in) { r... | 31.636364 | 80 | 0.695402 | LarsHagemann |
6ac00996bf3bb764d1ac6c8f1bcdad7ebf601c0a | 4,291 | cpp | C++ | Polyhedron/demo/Polyhedron/Plugins/Operations_on_polyhedra/Partition_graph_plugin.cpp | gaschler/cgal | d1fe2afa18da5524db6d4946f42ca4b8d00e0bda | [
"CC0-1.0"
] | 2 | 2020-12-10T00:33:11.000Z | 2020-12-10T00:33:20.000Z | Polyhedron/demo/Polyhedron/Plugins/Operations_on_polyhedra/Partition_graph_plugin.cpp | gaschler/cgal | d1fe2afa18da5524db6d4946f42ca4b8d00e0bda | [
"CC0-1.0"
] | null | null | null | Polyhedron/demo/Polyhedron/Plugins/Operations_on_polyhedra/Partition_graph_plugin.cpp | gaschler/cgal | d1fe2afa18da5524db6d4946f42ca4b8d00e0bda | [
"CC0-1.0"
] | 1 | 2022-03-05T04:18:59.000Z | 2022-03-05T04:18:59.000Z | #include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Three/Polyhedron_demo_plugin_helper.h>
#include "ui_PartitionDialog.h"
#include "Color_map.h"
#include "Scene_surface_mesh_item.h"
#include <CGAL/boost/graph/METIS/partition_graph.h>
#include <CGAL/boost/graph/METIS/partition_dual_graph.h... | 30.006993 | 172 | 0.674435 | gaschler |
6ac8a524062f1d3a40160c3f9ec76c7c4177219e | 110,090 | cpp | C++ | HTML_Lectures/Virtualization_Lecture/vbox/src/VBox/VMM/VMMR3/SELM.cpp | roughk/CSCI-49XX-OpenSource | 74268cbca8bcda3023b2350d046e2dca2853a3ef | [
"BSD-2-Clause",
"CC-BY-4.0"
] | null | null | null | HTML_Lectures/Virtualization_Lecture/vbox/src/VBox/VMM/VMMR3/SELM.cpp | roughk/CSCI-49XX-OpenSource | 74268cbca8bcda3023b2350d046e2dca2853a3ef | [
"BSD-2-Clause",
"CC-BY-4.0"
] | null | null | null | HTML_Lectures/Virtualization_Lecture/vbox/src/VBox/VMM/VMMR3/SELM.cpp | roughk/CSCI-49XX-OpenSource | 74268cbca8bcda3023b2350d046e2dca2853a3ef | [
"BSD-2-Clause",
"CC-BY-4.0"
] | null | null | null | /* $Id: SELM.cpp 73322 2018-07-23 14:04:59Z vboxsync $ */
/** @file
* SELM - The Selector Manager.
*/
/*
* Copyright (C) 2006-2017 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* you can redistribute i... | 40.533873 | 219 | 0.592079 | roughk |
6ac965233eea4057c8273f19e84aafb719c7c993 | 8,132 | cpp | C++ | src/entity/RDimRotatedData.cpp | ouxianghui/ezcam | 195fb402202442b6d035bd70853f2d8c3f615de1 | [
"MIT"
] | 12 | 2021-03-26T03:23:30.000Z | 2021-12-31T10:05:44.000Z | src/entity/RDimRotatedData.cpp | 15831944/ezcam | 195fb402202442b6d035bd70853f2d8c3f615de1 | [
"MIT"
] | null | null | null | src/entity/RDimRotatedData.cpp | 15831944/ezcam | 195fb402202442b6d035bd70853f2d8c3f615de1 | [
"MIT"
] | 9 | 2021-06-23T08:26:40.000Z | 2022-01-20T07:18:10.000Z | /**
* Copyright (c) 2011-2016 by Andrew Mustun. All rights reserved.
*
* This file is part of the QCAD project.
*
* QCAD is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License,... | 32.790323 | 112 | 0.704624 | ouxianghui |
6aca79894399faf0e51e287fba0621118c79a152 | 13,793 | cpp | C++ | test/cilk/test_sort.cpp | sawansib/Sniper | 45ec1eeb09b81a7250bc1a1aaa452f16b2b7f497 | [
"MIT"
] | 1 | 2021-04-22T05:27:08.000Z | 2021-04-22T05:27:08.000Z | test/cilk/test_sort.cpp | sawansib/SNIPER | 45ec1eeb09b81a7250bc1a1aaa452f16b2b7f497 | [
"MIT"
] | null | null | null | test/cilk/test_sort.cpp | sawansib/SNIPER | 45ec1eeb09b81a7250bc1a1aaa452f16b2b7f497 | [
"MIT"
] | null | null | null | /* test_sort.cpp -*-C++-*-
*
*************************************************************************
*
* Copyright (C) 2012 Intel Corporation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the follo... | 31.708046 | 122 | 0.575364 | sawansib |
6acfbfd777a1bf81985eb453055ead3ebd08facc | 7,342 | hpp | C++ | SRC/Modules/DJI-Drone-Interface/DroneServer/DroneServer/DroneComms.hpp | parthiv-krishna/Recon | 99e75a9bd02dd6c35061107a5f496c56f0aaecff | [
"BSD-3-Clause"
] | null | null | null | SRC/Modules/DJI-Drone-Interface/DroneServer/DroneServer/DroneComms.hpp | parthiv-krishna/Recon | 99e75a9bd02dd6c35061107a5f496c56f0aaecff | [
"BSD-3-Clause"
] | null | null | null | SRC/Modules/DJI-Drone-Interface/DroneServer/DroneServer/DroneComms.hpp | parthiv-krishna/Recon | 99e75a9bd02dd6c35061107a5f496c56f0aaecff | [
"BSD-3-Clause"
] | null | null | null | #pragma once
//System Includes
#include <vector>
#include <string>
#include <cstdint>
//External Includes
#include <opencv2/opencv.hpp>
//Project Includes
//#include "Drone.hpp" // Circular dependency
#include "DroneDataStructures.h"
namespace DroneInterface {
//Packet for holding binary, serialized packet data
... | 36.71 | 147 | 0.718741 | parthiv-krishna |
6ad8a207151c8c52bae03a8a8c99575c32decbf2 | 79,552 | cpp | C++ | systems/plants/inverseKinBackend.cpp | cmmccann/drake | 0a124c044357d5a29ec7e536acb747cfa5682eba | [
"BSD-3-Clause"
] | 1 | 2020-01-12T14:32:29.000Z | 2020-01-12T14:32:29.000Z | systems/plants/inverseKinBackend.cpp | cmmccann/drake | 0a124c044357d5a29ec7e536acb747cfa5682eba | [
"BSD-3-Clause"
] | null | null | null | systems/plants/inverseKinBackend.cpp | cmmccann/drake | 0a124c044357d5a29ec7e536acb747cfa5682eba | [
"BSD-3-Clause"
] | null | null | null | #include <math.h>
#include <float.h>
#include <stdlib.h>
#include <cstdio>
#include <cstring>
#include <iostream>
namespace snopt {
#include "snopt.hh"
#include "snfilewrapper.hh"
#include "snoptProblem.hh"
}
#undef abs
#undef max
#undef min
#include "RigidBodyIK.h"
#include "RigidBodyManipulator.h"
#include "const... | 36.325114 | 449 | 0.623039 | cmmccann |
6ae164f940897ef7a7809a325a0115e512703c1b | 643 | cpp | C++ | Source/Catastrophe_VS/Interactable/BaseClasses/InteractableObject.cpp | Enderderder/Catastrophe_VerticalSlice | 679a04e86db363c3bca642512b86f5b2a8cca1be | [
"MIT"
] | null | null | null | Source/Catastrophe_VS/Interactable/BaseClasses/InteractableObject.cpp | Enderderder/Catastrophe_VerticalSlice | 679a04e86db363c3bca642512b86f5b2a8cca1be | [
"MIT"
] | null | null | null | Source/Catastrophe_VS/Interactable/BaseClasses/InteractableObject.cpp | Enderderder/Catastrophe_VerticalSlice | 679a04e86db363c3bca642512b86f5b2a8cca1be | [
"MIT"
] | null | null | null | // Fill out your copyright notice in the Description page of Project Settings.
#include "InteractableObject.h"
#include "SimpleInteractableAnimated.h"
#include "SimpleInteractableStatic.h"
#include "Components/BoxComponent.h"
// Add default functionality here for any IInteractableObject functions that are not pure vi... | 33.842105 | 98 | 0.822706 | Enderderder |
6ae38fc40d71626ff45e82f13d0a74b14d28301d | 2,332 | cpp | C++ | Code/DataStructures/Tests/AllocatorTests.cpp | kvarcg/data_structures | 2646f00302813dcd5ca8d8136799066654761fc3 | [
"MIT"
] | null | null | null | Code/DataStructures/Tests/AllocatorTests.cpp | kvarcg/data_structures | 2646f00302813dcd5ca8d8136799066654761fc3 | [
"MIT"
] | null | null | null | Code/DataStructures/Tests/AllocatorTests.cpp | kvarcg/data_structures | 2646f00302813dcd5ca8d8136799066654761fc3 | [
"MIT"
] | null | null | null | // global includes //////////////////////////////
#include "Global.h"
#include "DataStructureTests.h"
#include "Allocators.h"
namespace DS {
template <typename Alloc1, typename Alloc2, typename T, std::size_t N>
void compareAllocators() {
Alloc1 al1;
Alloc1 al2;
T* v1 = static_cas... | 33.314286 | 141 | 0.56175 | kvarcg |
6ae6c680d69bb55b69673a944363a726a019ec22 | 4,435 | cpp | C++ | src/grafix/ImageFilter_ImageMagick.cpp | pfedick/pplib | afd01f0df6e2e63bb12bfef0a0667464b0845d1f | [
"BSD-2-Clause"
] | 1 | 2019-10-27T15:01:57.000Z | 2019-10-27T15:01:57.000Z | src/grafix/ImageFilter_ImageMagick.cpp | pfedick/pplib | afd01f0df6e2e63bb12bfef0a0667464b0845d1f | [
"BSD-2-Clause"
] | 5 | 2016-02-01T19:03:33.000Z | 2022-02-06T15:27:01.000Z | src/grafix/ImageFilter_ImageMagick.cpp | pfedick/pplib | afd01f0df6e2e63bb12bfef0a0667464b0845d1f | [
"BSD-2-Clause"
] | 1 | 2019-09-18T09:52:18.000Z | 2019-09-18T09:52:18.000Z | /*******************************************************************************
* This file is part of "Patrick's Programming Library", Version 7 (PPL7).
* Web: http://www.pfp.de/ppl/
*
* $Author$
* $Revision$
* $Date$
* $Id$
*
*******************************************************************************
*... | 28.612903 | 103 | 0.699211 | pfedick |
6aeaca1e479e3b12c3d7d8c095d07d3166ea0f9c | 2,031 | hpp | C++ | include/preform/multi_misc_float.hpp | mgradysaunders/preform | ab5713d95653bd647d2985cdcd2c9e0e9a05f488 | [
"BSD-2-Clause"
] | null | null | null | include/preform/multi_misc_float.hpp | mgradysaunders/preform | ab5713d95653bd647d2985cdcd2c9e0e9a05f488 | [
"BSD-2-Clause"
] | null | null | null | include/preform/multi_misc_float.hpp | mgradysaunders/preform | ab5713d95653bd647d2985cdcd2c9e0e9a05f488 | [
"BSD-2-Clause"
] | null | null | null | /* Copyright (c) 2018-20 M. Grady Saunders
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above
* copyright notice, this list of conditions and the ... | 32.758065 | 77 | 0.736091 | mgradysaunders |
6aeb1f5dba7459387e0eb39434944abac25dd5dc | 518 | cpp | C++ | Source/Engine/Space/Private/Scene.cpp | clones1201/Space | 624c4588fe73ff1c0fff3d91324334023bc735ff | [
"MIT"
] | null | null | null | Source/Engine/Space/Private/Scene.cpp | clones1201/Space | 624c4588fe73ff1c0fff3d91324334023bc735ff | [
"MIT"
] | null | null | null | Source/Engine/Space/Private/Scene.cpp | clones1201/Space | 624c4588fe73ff1c0fff3d91324334023bc735ff | [
"MIT"
] | 1 | 2021-11-11T02:05:54.000Z | 2021-11-11T02:05:54.000Z | #include "Log.h"
#include "Game.h"
#include "Scene.h"
namespace Space
{
Float4x4 PerspectiveCamera::GetViewMatrix() const
{
Float4x4 ret;
Matrix m = MatrixPerspectiveFovLH(m_FieldOfView,m_Aspect, 0.1f, 1000.0f);
StoreFloat4x4(&ret, m);
return ret;
}
Float4x4 OrthographicCamera::GetViewMatrix() const
{
... | 18.5 | 88 | 0.718147 | clones1201 |
6aee775d2ace671cdbc912ebe24cc50c9c0422e5 | 726 | cpp | C++ | competitive_programming/programming_contests/uri/angry_ducks.cpp | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 205 | 2018-12-01T17:49:49.000Z | 2021-12-22T07:02:27.000Z | competitive_programming/programming_contests/uri/angry_ducks.cpp | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 2 | 2020-01-01T16:34:29.000Z | 2020-04-26T19:11:13.000Z | competitive_programming/programming_contests/uri/angry_ducks.cpp | LeandroTk/Algorithms | 569ed68eba3eeff902f8078992099c28ce4d7cd6 | [
"MIT"
] | 50 | 2018-11-28T20:51:36.000Z | 2021-11-29T04:08:25.000Z | // https://www.urionlinejudge.com.br/judge/en/problems/view/1163
#include <stdio.h>
#include <math.h>
#define PI 3.14159
#define g 9.80665
double rad(double angle) {
return (angle / 180.0) * PI;
}
int main() {
double h, alfa, v, t, Vx, Vy, x, aux1, aux2, p1, p2;
int n;
char character;
while (s... | 17.707317 | 64 | 0.487603 | LeandroTk |
6af103ccc228de4d2875f04d0e503263cfd5d66f | 15,972 | cpp | C++ | ThirdLib/glslang/External/spirv-tools/source/opt/dead_branch_elim_pass.cpp | winddyhe/WindGE | 377438805cd92bdb435eae8a137699fa8e0b1105 | [
"MIT"
] | 4 | 2016-11-22T17:53:36.000Z | 2019-05-04T14:28:45.000Z | ThirdLib/glslang/External/spirv-tools/source/opt/dead_branch_elim_pass.cpp | winddyhe/WindGE | 377438805cd92bdb435eae8a137699fa8e0b1105 | [
"MIT"
] | null | null | null | ThirdLib/glslang/External/spirv-tools/source/opt/dead_branch_elim_pass.cpp | winddyhe/WindGE | 377438805cd92bdb435eae8a137699fa8e0b1105 | [
"MIT"
] | null | null | null | // Copyright (c) 2017 The Khronos Group Inc.
// Copyright (c) 2017 Valve Corporation
// Copyright (c) 2017 LunarG 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... | 32.864198 | 79 | 0.66435 | winddyhe |
6af231a0ae239e1ce749a10f97a8414cd80c6bdf | 26,366 | cpp | C++ | dlib/gui_widgets/fonts.cpp | ckproc/dlib-19.7 | 0ca40f5e85de2436e557bee9a805d3987d2d9507 | [
"BSL-1.0"
] | null | null | null | dlib/gui_widgets/fonts.cpp | ckproc/dlib-19.7 | 0ca40f5e85de2436e557bee9a805d3987d2d9507 | [
"BSL-1.0"
] | 4 | 2018-02-27T15:44:25.000Z | 2018-02-28T01:26:03.000Z | dlib/gui_widgets/fonts.cpp | ckproc/dlib-19.7 | 0ca40f5e85de2436e557bee9a805d3987d2d9507 | [
"BSL-1.0"
] | null | null | null | // Copyright (C) 2005 Davis E. King (davis@dlib.net), and Nils Labugt, Keita Mochizuki
// License: Boost Software License See LICENSE.txt for the full license.
#ifndef DLIB_FONTs_CPP_
#define DLIB_FONTs_CPP_
#include "fonts.h"
#include <fstream>
#include <memory>
#include <sstream>
#include "../seriali... | 39.118694 | 152 | 0.446067 | ckproc |
6af3f4ea91f2254da0bf57d598136da9f329f3c9 | 2,271 | cpp | C++ | libcaf_core/src/init_global_meta_objects.cpp | jsiwek/actor-framework | 06cd2836f4671725cb7eaa22b3cc115687520fc1 | [
"BSL-1.0",
"BSD-3-Clause"
] | 4 | 2019-05-03T05:38:15.000Z | 2020-08-25T15:23:19.000Z | libcaf_core/src/init_global_meta_objects.cpp | jsiwek/actor-framework | 06cd2836f4671725cb7eaa22b3cc115687520fc1 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | libcaf_core/src/init_global_meta_objects.cpp | jsiwek/actor-framework | 06cd2836f4671725cb7eaa22b3cc115687520fc1 | [
"BSL-1.0",
"BSD-3-Clause"
] | null | null | null | /******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
... | 42.849057 | 80 | 0.467195 | jsiwek |
6afbde42b46c1fe8c0e609634934f2b5a3fa0fea | 3,553 | hpp | C++ | src/xpcc/ui/menu/view_stack.hpp | walmis/xpcc | 1d87c4434530c6aeac923f57d379aeaf32e11e1e | [
"BSD-3-Clause"
] | null | null | null | src/xpcc/ui/menu/view_stack.hpp | walmis/xpcc | 1d87c4434530c6aeac923f57d379aeaf32e11e1e | [
"BSD-3-Clause"
] | null | null | null | src/xpcc/ui/menu/view_stack.hpp | walmis/xpcc | 1d87c4434530c6aeac923f57d379aeaf32e11e1e | [
"BSD-3-Clause"
] | null | null | null | // coding: utf-8
// ----------------------------------------------------------------------------
/* Copyright (c) 2013, Roboterclub Aachen e.V.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:... | 28.886179 | 85 | 0.663946 | walmis |
1394ddae0ee9cddc9dc32ee80045723270df1d17 | 942 | cpp | C++ | src/shared/state/CheckPoint.cpp | samhanic/plt | 3fdbcd6fb945e6e680216bbf72e51cef7785d874 | [
"CC0-1.0"
] | 1 | 2019-09-18T20:45:56.000Z | 2019-09-18T20:45:56.000Z | src/shared/state/CheckPoint.cpp | samhanic/plt | 3fdbcd6fb945e6e680216bbf72e51cef7785d874 | [
"CC0-1.0"
] | null | null | null | src/shared/state/CheckPoint.cpp | samhanic/plt | 3fdbcd6fb945e6e680216bbf72e51cef7785d874 | [
"CC0-1.0"
] | null | null | null | #include "CheckPoint.h"
#include <algorithm>
using namespace state;
CheckPoint::CheckPoint (CheckPointTypeId checkPointTypeId, int newX, int newY, int newTileCode):MapTile(CHECKPOINT, newX, newY, newTileCode) {
position.setX(newX);
position.setY(newY);
if (checkPointTypeId==CP_ONE) checkPointFigure = 1;
if ... | 29.4375 | 142 | 0.726115 | samhanic |
139b22f7b7ab51418d928f042933c4aa041be399 | 1,025 | hxx | C++ | Legolas/BlockMatrix/Structures/Diagonal/DiagonalScalarContainer.hxx | LaurentPlagne/Legolas | fdf533528baf7ab5fcb1db15d95d2387b3e3723c | [
"MIT"
] | null | null | null | Legolas/BlockMatrix/Structures/Diagonal/DiagonalScalarContainer.hxx | LaurentPlagne/Legolas | fdf533528baf7ab5fcb1db15d95d2387b3e3723c | [
"MIT"
] | null | null | null | Legolas/BlockMatrix/Structures/Diagonal/DiagonalScalarContainer.hxx | LaurentPlagne/Legolas | fdf533528baf7ab5fcb1db15d95d2387b3e3723c | [
"MIT"
] | 1 | 2021-02-11T14:43:25.000Z | 2021-02-11T14:43:25.000Z | #ifndef __LEGOLAS_DIAGONALSCALARCONTAINER_HXX__
#define __LEGOLAS_DIAGONALSCALARCONTAINER_HXX__
#include "Legolas/BlockMatrix/Matrix.hxx"
namespace Legolas{
class DiagonalScalarContainer{
public:
template <class SCALAR>
class Engine: public Matrix{
public:
typedef SCALAR RealType;
type... | 23.837209 | 94 | 0.687805 | LaurentPlagne |
13a47bd6e9050c5758f64c9e2beba08d38f95cdc | 628 | cpp | C++ | Sorting and Searching/Nearest Smaller Values.cpp | razouq/cses | 82534f4ac37a690b5cd72ab094d5276bd01dd64e | [
"MIT"
] | 3 | 2021-03-14T18:47:13.000Z | 2021-03-19T09:59:56.000Z | Sorting and Searching/Nearest Smaller Values.cpp | razouq/cses | 82534f4ac37a690b5cd72ab094d5276bd01dd64e | [
"MIT"
] | null | null | null | Sorting and Searching/Nearest Smaller Values.cpp | razouq/cses | 82534f4ac37a690b5cd72ab094d5276bd01dd64e | [
"MIT"
] | null | null | null | #include "bits/stdc++.h"
#pragma GCC optimize ("O3")
#pragma GCC target ("sse4")
#define ll long long
#define ull unsigned long long
#define F first
#define S second
#define PB push_back
#define POB pop_back
using namespace std;
int main(){
// freopen("input.in", "r", stdin);
// freopen("output.out", "w", stdout);
i... | 14.952381 | 41 | 0.555732 | razouq |
13acf9686beb0db0e1b73adb066a38d3950105ba | 445 | cpp | C++ | leetcodes/MaxProfitStock.cpp | DaechurJeong/Private_Proj | 66eec4d22372166af7f7643a9b1307ca7e5ce21a | [
"MIT"
] | null | null | null | leetcodes/MaxProfitStock.cpp | DaechurJeong/Private_Proj | 66eec4d22372166af7f7643a9b1307ca7e5ce21a | [
"MIT"
] | null | null | null | leetcodes/MaxProfitStock.cpp | DaechurJeong/Private_Proj | 66eec4d22372166af7f7643a9b1307ca7e5ce21a | [
"MIT"
] | 2 | 2020-04-21T23:52:31.000Z | 2020-04-24T13:37:28.000Z | #include <iostream>
#include <vector>
int maxProfit(std::vector<int>& prices) {
int min = prices[0], res = 0;
for (int i = 1; i < prices.size(); ++i) {
if (min > prices[i]) {
min = prices[i];
}
else if (prices[i] - min > res) {
res = prices[i] - min;
}
}
return res;
}
int main(void)
{
std::vector<i... | 17.8 | 44 | 0.559551 | DaechurJeong |
13b101a172f2cf45551130e236a256177a073fc8 | 3,182 | cpp | C++ | Unreal/CtaCpp/Runtime/Scripts/Combat/EquipmentSystem.cpp | areilly711/CtaApi | 8c7a80c48f2a6d02fb6680a5d8f62e6ff7da8d4c | [
"MIT"
] | 3 | 2021-06-02T16:44:02.000Z | 2022-01-24T20:20:10.000Z | Unreal/CtaCpp/Runtime/Scripts/Combat/EquipmentSystem.cpp | areilly711/CtaApi | 8c7a80c48f2a6d02fb6680a5d8f62e6ff7da8d4c | [
"MIT"
] | null | null | null | Unreal/CtaCpp/Runtime/Scripts/Combat/EquipmentSystem.cpp | areilly711/CtaApi | 8c7a80c48f2a6d02fb6680a5d8f62e6ff7da8d4c | [
"MIT"
] | null | null | null | #include "EquipmentSystem.h"
namespace Cta::Combat
{
int EquipmentSystem::Equip(Entity owner, Entity item)
{
EquipmentSlot tempVar = EquipmentSlot();
tempVar.value = FindEmptySlot(owner);
return Equip(owner, item, tempVar);
}
int EquipmentSystem::Equip(Entity owner, Entity item, EquipmentSlot slot)
{
i... | 23.057971 | 190 | 0.658705 | areilly711 |
13b42752d9f06e8a1da421922a9b9b6cc3db6241 | 1,981 | cpp | C++ | src/kits/debugger/debug_info/DwarfFunctionDebugInfo.cpp | stasinek/BHAPI | 5d9aa61665ae2cc5c6e34415957d49a769325b2b | [
"BSD-3-Clause",
"MIT"
] | 3 | 2018-05-21T15:32:32.000Z | 2019-03-21T13:34:55.000Z | src/kits/debugger/debug_info/DwarfFunctionDebugInfo.cpp | stasinek/BHAPI | 5d9aa61665ae2cc5c6e34415957d49a769325b2b | [
"BSD-3-Clause",
"MIT"
] | null | null | null | src/kits/debugger/debug_info/DwarfFunctionDebugInfo.cpp | stasinek/BHAPI | 5d9aa61665ae2cc5c6e34415957d49a769325b2b | [
"BSD-3-Clause",
"MIT"
] | null | null | null | /*
* Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
* Distributed under the terms of the MIT License.
*/
#include <DwarfFunctionDebugInfo.h>
#include <DebugInfoEntries.h>
#include <DwarfImageDebugInfo.h>
#include <LocatableFile.h>
#include <TargetAddressRangeList.h>
DwarfFunctionDebugInfo::DwarfFunctionDeb... | 18.688679 | 77 | 0.797072 | stasinek |
13b550ddbf434b17366d20effce06df1d5f336db | 9,992 | cpp | C++ | Libs/JUCE/modules/dRowAudio/network/dRowAudio_CURLEasySession.cpp | djh-/LaunchpadLights | 2a6827c558ff289413925cbba8705e75d1dd410b | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | Libs/JUCE/modules/dRowAudio/network/dRowAudio_CURLEasySession.cpp | djh-/LaunchpadLights | 2a6827c558ff289413925cbba8705e75d1dd410b | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 1 | 2021-12-10T23:30:18.000Z | 2021-12-10T23:30:18.000Z | JuceLibraryCode/modules/dRowAudio/network/dRowAudio_CURLEasySession.cpp | danielhaaser/LaunchpadLights | 2a6827c558ff289413925cbba8705e75d1dd410b | [
"Naumen",
"Condor-1.1",
"MS-PL"
] | 1 | 2021-07-29T19:03:22.000Z | 2021-07-29T19:03:22.000Z | /*
==============================================================================
This file is part of the dRowAudio JUCE module
Copyright 2004-13 by dRowAudio.
------------------------------------------------------------------------------
dRowAudio is provided under the terms of The MIT License (MIT):
... | 31.031056 | 136 | 0.659027 | djh- |
13b99d577f9e441e4fe164142e0015d26d8b7d0a | 1,215 | hpp | C++ | src/utility/calculate_nnz.hpp | spraetor/amdis2 | 53c45c81a65752a8fafbb54f9ae6724a86639dcd | [
"MIT"
] | 2 | 2018-07-04T16:44:04.000Z | 2021-01-03T07:26:27.000Z | src/utility/calculate_nnz.hpp | spraetor/amdis2 | 53c45c81a65752a8fafbb54f9ae6724a86639dcd | [
"MIT"
] | null | null | null | src/utility/calculate_nnz.hpp | spraetor/amdis2 | 53c45c81a65752a8fafbb54f9ae6724a86639dcd | [
"MIT"
] | null | null | null | #pragma once
namespace AMDiS
{
inline void calculate_nnz(const DOFMatrix& matrix, std::vector<size_t>& nnz_per_row)
{
std::vector<std::set<DegreeOfFreefom>> nnz(nnz_per_row.size());
std::vector<DegreeOfFreedom> rowIndices, colIndices;
const FiniteElemSpace* rowFeSpace = matrix.getRowFeSpace(),
... | 28.928571 | 88 | 0.604115 | spraetor |
13be938cb22af95f5e19db949409597d794c2057 | 12,572 | cpp | C++ | compendium/DeclarativeServices/src/manager/ReferenceManagerImpl.cpp | githubforsank/CppMicroServices | e6ae266cd02b7145f17bc2499e5e8234e4ff76c2 | [
"Apache-2.0"
] | 1 | 2019-11-01T02:57:31.000Z | 2019-11-01T02:57:31.000Z | compendium/DeclarativeServices/src/manager/ReferenceManagerImpl.cpp | githubforsank/CppMicroServices | e6ae266cd02b7145f17bc2499e5e8234e4ff76c2 | [
"Apache-2.0"
] | 1 | 2019-11-05T12:51:59.000Z | 2019-11-05T12:51:59.000Z | compendium/DeclarativeServices/src/manager/ReferenceManagerImpl.cpp | githubforsank/CppMicroServices | e6ae266cd02b7145f17bc2499e5e8234e4ff76c2 | [
"Apache-2.0"
] | null | null | null | /*=============================================================================
Library: CppMicroServices
Copyright (c) The CppMicroServices developers. See the COPYRIGHT
file at the top-level directory of this distribution and at
https://github.com/CppMicroServices/CppMicroServices/COPYRIGHT .
Licensed un... | 33.886792 | 160 | 0.716115 | githubforsank |
13c0e93ab6b9940659bff4ce15c8e9b82f85d487 | 457 | cpp | C++ | tools/tests/test.cpp | justintime32/osquery | 721dd1ed624b25738c2471dae617d7868df8fb0d | [
"BSD-3-Clause"
] | 23 | 2016-12-07T15:26:58.000Z | 2019-07-18T21:39:06.000Z | tools/tests/test.cpp | justintime32/osquery | 721dd1ed624b25738c2471dae617d7868df8fb0d | [
"BSD-3-Clause"
] | 4 | 2016-12-07T06:18:36.000Z | 2017-01-19T19:39:38.000Z | tools/tests/test.cpp | Acidburn0zzz/osquery | 1cedf8d57310b4ac3ae0a39fe33dce00699f4a3b | [
"BSD-3-Clause"
] | 5 | 2017-06-26T11:54:37.000Z | 2019-02-18T01:23:02.000Z | /*
* Copyright (c) 2014-present, Facebook, Inc.
* 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. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#in... | 24.052632 | 79 | 0.676149 | justintime32 |
13c157dda00a5f330e19717ae13d2d38285fd4fb | 1,120 | cpp | C++ | 2017-08-14-practice/J.cpp | tangjz/Three-Investigators | 46dc9b2f0fbb4fe89b075a81feaacc33feeb1b52 | [
"MIT"
] | 3 | 2018-04-02T06:00:51.000Z | 2018-05-29T04:46:29.000Z | 2017-08-14-practice/J.cpp | tangjz/Three-Investigators | 46dc9b2f0fbb4fe89b075a81feaacc33feeb1b52 | [
"MIT"
] | 2 | 2018-03-31T17:54:30.000Z | 2018-05-02T11:31:06.000Z | 2017-08-14-practice/J.cpp | tangjz/Three-Investigators | 46dc9b2f0fbb4fe89b075a81feaacc33feeb1b52 | [
"MIT"
] | 2 | 2018-10-07T00:08:06.000Z | 2021-06-28T11:02:59.000Z | #include<bits/stdc++.h>
using namespace std;
#define pb push_back
#define mkp make_pair
#define fi first
#define se second
#define ll long long
#define M 1000000007
#define all(a) a.begin(), a.end()
const int maxn = 100100;
int n, k;
vector<pair<int, int> >g[maxn];
int dp[maxn], ddp[maxn];
void dfs(int t, int fa){
f... | 20.363636 | 92 | 0.516071 | tangjz |
13c92eb7f5333ecbfaff3059a04bd3c2b2cd29d1 | 1,460 | hpp | C++ | include/RED4ext/Types/generated/AI/behavior/ActionMoveOnSplineNodeDefinition.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | 1 | 2021-02-01T23:07:50.000Z | 2021-02-01T23:07:50.000Z | include/RED4ext/Types/generated/AI/behavior/ActionMoveOnSplineNodeDefinition.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | null | null | null | include/RED4ext/Types/generated/AI/behavior/ActionMoveOnSplineNodeDefinition.hpp | Cyberpunk-Extended-Development-Team/RED4ext.SDK | 2dc828c761d87a1b4235ce9ca4fbdf9fb4312fae | [
"MIT"
] | null | null | null | #pragma once
// This file is generated from the Game's Reflection data
#include <cstdint>
#include <RED4ext/Common.hpp>
#include <RED4ext/REDhash.hpp>
#include <RED4ext/Handle.hpp>
#include <RED4ext/Types/generated/AI/behavior/ActionTreeNodeDefinition.hpp>
namespace RED4ext
{
namespace AI { struct ArgumentMapping; }... | 36.5 | 85 | 0.746575 | Cyberpunk-Extended-Development-Team |
13caa66fffe35bf8301c3c98bee48b5a7f564459 | 2,863 | cpp | C++ | Yis/src/Yis/Core/Application.cpp | alalba221/Yis | aac89d953e1edb558ec09dc73beecb05edc05c76 | [
"Apache-2.0"
] | null | null | null | Yis/src/Yis/Core/Application.cpp | alalba221/Yis | aac89d953e1edb558ec09dc73beecb05edc05c76 | [
"Apache-2.0"
] | null | null | null | Yis/src/Yis/Core/Application.cpp | alalba221/Yis | aac89d953e1edb558ec09dc73beecb05edc05c76 | [
"Apache-2.0"
] | null | null | null | #include "yspch.h"
#include "Application.h"
#include "Yis/Core/Events/ApplicationEvent.h"
#include "Yis/Renderer/Renderer.h"
#include "Input.h"
//#include <imgui/imgui.h>
#include <Windows.h>
namespace Yis {
#define BIND_ENVENT_FN(x) std::bind(&x, this, std::placeholders::_1)
Application* Application::s_Instance =... | 21.051471 | 84 | 0.670975 | alalba221 |
13ce14e24404a5882b3ff8b84fe2eb34a3980e9e | 2,345 | cc | C++ | test/test_singals.cc | williammc/SignalX | 9ccb9517a3a2ec6cef114ef929847d880625ad37 | [
"BSD-3-Clause"
] | null | null | null | test/test_singals.cc | williammc/SignalX | 9ccb9517a3a2ec6cef114ef929847d880625ad37 | [
"BSD-3-Clause"
] | null | null | null | test/test_singals.cc | williammc/SignalX | 9ccb9517a3a2ec6cef114ef929847d880625ad37 | [
"BSD-3-Clause"
] | null | null | null | #include "signalx/signalx.h"
#include <memory>
#include <iostream>
#include <vector>
struct Foo {
Foo() { a = 1; }
int a;
};
/// deriving Observer for automatic disconnection management
struct Sample /*: public sigx::Observer*/ {
bool slot1(const char* e) const {
std::cout << e << std::endl;
return true... | 24.175258 | 61 | 0.649467 | williammc |
13cf2bf70a392e9658429807149aa776d4915b43 | 2,116 | cpp | C++ | tests/test_multireturn.cpp | yanwei1983/luatinkerE | 363ae33caea606205a8c4e62bfbb118503ca667b | [
"MIT"
] | 74 | 2016-03-04T17:33:50.000Z | 2022-03-28T09:57:10.000Z | tests/test_multireturn.cpp | yanwei1983/luatinkerE | 363ae33caea606205a8c4e62bfbb118503ca667b | [
"MIT"
] | 10 | 2016-04-08T16:47:59.000Z | 2022-02-16T09:40:44.000Z | tests/test_multireturn.cpp | yanwei1983/luatinkerE | 363ae33caea606205a8c4e62bfbb118503ca667b | [
"MIT"
] | 28 | 2016-04-28T07:37:44.000Z | 2022-02-14T14:25:11.000Z | #include "lua_tinker.h"
#include"test.h"
std::tuple<int, int> push_tuple()
{
return std::make_tuple(7,10);
}
bool test_tuple(std::tuple<int, int> tuple)
{
return std::get<0>(tuple) == 8 && std::get<1>(tuple) == 9;
}
LUA_TEST(multireturn)
{
g_test_func_set["test_lua_multireturn"] = [L]()->bool
{
std::string lua... | 22.510638 | 129 | 0.614839 | yanwei1983 |
13dff8e8786fb963dbf8a2b345bd2774472c2303 | 2,868 | cpp | C++ | src/main.cpp | qistoph/BedLed | 0c239c3b848da4a79175c44b4c80b9e72a93fa29 | [
"MIT"
] | 1 | 2019-02-06T17:12:02.000Z | 2019-02-06T17:12:02.000Z | src/main.cpp | qistoph/BedLed | 0c239c3b848da4a79175c44b4c80b9e72a93fa29 | [
"MIT"
] | 1 | 2019-10-06T20:51:08.000Z | 2019-10-06T20:51:08.000Z | src/main.cpp | qistoph/BedLed | 0c239c3b848da4a79175c44b4c80b9e72a93fa29 | [
"MIT"
] | 2 | 2018-03-14T16:35:09.000Z | 2019-10-06T20:05:41.000Z | // NOTE!!!
// Uses:
// ATTinyCore (https://github.com/SpenceKonde/ATTinyCore)
// TinyDebugSerial (https://github.com/qistoph/TinyDebugSerial) + modified to use PB2 on F_CPU<=8MHz
// Fuse/Core config:
// Timer 1 Clock: 64MHz
// Clock: 8MHz internal
// E:FF H:D7 L:E2
//TODO:
// Check datasheet page 99 for required freq... | 25.157895 | 120 | 0.671548 | qistoph |
13e1f1519e375f4a7e546d33eddd4946ba567878 | 6,941 | cpp | C++ | src/mongo/db/repl/oplogreader.cpp | baiyanghese/mongo | 89fcbab94c7103105e8c72f654a5774a066bdb90 | [
"Apache-2.0"
] | 1 | 2015-11-06T05:42:37.000Z | 2015-11-06T05:42:37.000Z | src/mongo/db/repl/oplogreader.cpp | baiyanghese/mongo | 89fcbab94c7103105e8c72f654a5774a066bdb90 | [
"Apache-2.0"
] | null | null | null | src/mongo/db/repl/oplogreader.cpp | baiyanghese/mongo | 89fcbab94c7103105e8c72f654a5774a066bdb90 | [
"Apache-2.0"
] | null | null | null | /**
* Copyright (C) 2012 10gen Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* ... | 35.778351 | 98 | 0.597032 | baiyanghese |
13e2d8b4578587b543320a8f5ece996eebd38f8f | 15,089 | cpp | C++ | render-lib/Renderer/Renderers/Vulkan/Backend/CommandListHandlerVK.cpp | firesgc/NovusCore-Client | 406010cfeca88b82363debe7dd9ca8d5e839b7f4 | [
"MIT"
] | null | null | null | render-lib/Renderer/Renderers/Vulkan/Backend/CommandListHandlerVK.cpp | firesgc/NovusCore-Client | 406010cfeca88b82363debe7dd9ca8d5e839b7f4 | [
"MIT"
] | null | null | null | render-lib/Renderer/Renderers/Vulkan/Backend/CommandListHandlerVK.cpp | firesgc/NovusCore-Client | 406010cfeca88b82363debe7dd9ca8d5e839b7f4 | [
"MIT"
] | null | null | null | #include "CommandListHandlerVK.h"
#include "RenderDeviceVK.h"
#include <queue>
#include <vector>
#include <cassert>
#include <vulkan/vulkan.h>
#include <Utils/DebugHandler.h>
#include <tracy/TracyVulkan.hpp>
#include <tracy/Tracy.hpp>
namespace Renderer
{
namespace Backend
{
struct CommandList
... | 39.5 | 165 | 0.625621 | firesgc |
13e5ded67832c599f05dc08ab274e6c4edf952e7 | 2,303 | cpp | C++ | tc 160+/LuckyCounter.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 3 | 2015-05-25T06:24:37.000Z | 2016-09-10T07:58:00.000Z | tc 160+/LuckyCounter.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | null | null | null | tc 160+/LuckyCounter.cpp | ibudiselic/contest-problem-solutions | 88082981b4d87da843472e3ca9ed5f4c42b3f0aa | [
"BSD-2-Clause"
] | 5 | 2015-05-25T06:24:40.000Z | 2021-08-19T19:22:29.000Z | #include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
using namespace std;
class LuckyCounter {
public:
int countLuckyMoments(vector <string> moments) {
int sol = 0;
for (int i=0; i<(int)moment... | 44.288462 | 309 | 0.565784 | ibudiselic |
13e83c5d77f4c208fe58e3b8265e2a1da7dc1b50 | 5,227 | cpp | C++ | tests/test_packet.cpp | clickp4/bmv2 | aca47e23c968353a9ffd27e9b6305f41cefadf6b | [
"Apache-2.0"
] | 2 | 2018-08-29T22:58:07.000Z | 2018-08-30T01:44:30.000Z | tests/test_packet.cpp | clickp4/bmv2 | aca47e23c968353a9ffd27e9b6305f41cefadf6b | [
"Apache-2.0"
] | null | null | null | tests/test_packet.cpp | clickp4/bmv2 | aca47e23c968353a9ffd27e9b6305f41cefadf6b | [
"Apache-2.0"
] | 4 | 2016-06-22T23:39:02.000Z | 2022-03-26T13:53:51.000Z | /* Copyright 2013-present Barefoot Networks, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... | 28.407609 | 80 | 0.710733 | clickp4 |
13e8f63b268076ea015fffc4d56766ab7e2bb026 | 7,339 | cpp | C++ | chrono/chrono-dev/src/demos/sensor/demo_SEN_vis_materials.cpp | ShuoHe97/CS239-Final-Project | 6558db26d00abb0eb2f6c82b9b6025386ecf19b9 | [
"BSD-3-Clause"
] | 1 | 2020-12-18T08:28:52.000Z | 2020-12-18T08:28:52.000Z | chrono/chrono-dev/src/demos/sensor/demo_SEN_vis_materials.cpp | ShuoHe97/CS239-Final-Project | 6558db26d00abb0eb2f6c82b9b6025386ecf19b9 | [
"BSD-3-Clause"
] | null | null | null | chrono/chrono-dev/src/demos/sensor/demo_SEN_vis_materials.cpp | ShuoHe97/CS239-Final-Project | 6558db26d00abb0eb2f6c82b9b6025386ecf19b9 | [
"BSD-3-Clause"
] | null | null | null | // =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2019 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... | 41.698864 | 119 | 0.557433 | ShuoHe97 |
13ed57089b84a59d225bf6c2ca97512ed7c9f10a | 1,462 | cc | C++ | books/principles/data-structure/tree/test-LCRS-tree.cc | BONITA-KWKim/algorithm | 94a45c929505e574c06d235d18da4625cc243343 | [
"Unlicense"
] | 1 | 2020-06-24T07:34:55.000Z | 2020-06-24T07:34:55.000Z | books/principles/data-structure/tree/test-LCRS-tree.cc | BONITA-KWKim/algorithm | 94a45c929505e574c06d235d18da4625cc243343 | [
"Unlicense"
] | null | null | null | books/principles/data-structure/tree/test-LCRS-tree.cc | BONITA-KWKim/algorithm | 94a45c929505e574c06d235d18da4625cc243343 | [
"Unlicense"
] | null | null | null | #include "gtest/gtest.h"
#include "LCRS-tree.h"
LCRSNode *make_test_tree(void);
void remove_test_tree (LCRSNode *root);
TEST(LCRSTreeTEST, testCreateNode)
{
char test = 'a';
LCRSTree *tree = new LCRSTree();
LCRSNode *node = tree->create_LCRS_node(test);
EXPECT_EQ(NULL, node->left);
EXPECT_EQ(NUL... | 24.366667 | 50 | 0.635431 | BONITA-KWKim |
13ee1c331cf0c806639b8ff9d05d6418eee90436 | 6,362 | cpp | C++ | Modules/QtWidgetsExt/src/QmitkNumberPropertyEditor.cpp | zhaomengxiao/MITK | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2022-03-03T12:03:32.000Z | 2022-03-03T12:03:32.000Z | Modules/QtWidgetsExt/src/QmitkNumberPropertyEditor.cpp | zhaomengxiao/MITK | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2021-12-22T10:19:02.000Z | 2021-12-22T10:19:02.000Z | Modules/QtWidgetsExt/src/QmitkNumberPropertyEditor.cpp | zhaomengxiao/MITK_lancet | a09fd849a4328276806008bfa92487f83a9e2437 | [
"BSD-3-Clause"
] | 1 | 2020-11-27T09:41:18.000Z | 2020-11-27T09:41:18.000Z | /*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
=================... | 22.967509 | 101 | 0.687205 | zhaomengxiao |
13f2406c65a5f3015cedb730e69b3a5dfbf1d140 | 5,298 | cpp | C++ | FrameProcessor.cpp | merfii/Slurry | 92b23ea2b764252fc90c2af741debdffb9a96106 | [
"MIT"
] | 4 | 2019-12-04T02:56:35.000Z | 2022-01-05T14:14:37.000Z | FrameProcessor.cpp | merfii/Slurry | 92b23ea2b764252fc90c2af741debdffb9a96106 | [
"MIT"
] | null | null | null | FrameProcessor.cpp | merfii/Slurry | 92b23ea2b764252fc90c2af741debdffb9a96106 | [
"MIT"
] | 2 | 2018-11-06T03:54:00.000Z | 2018-12-06T12:13:30.000Z | #pragma execution_character_set("utf-8")
#include <opencv2\opencv.hpp>
#include "Slurry.h"
#include "SystemParameter.h"
#include "CameraController.h"
#include "FrameProcessor.h"
#include "FrmProcessorDisp.h"
cv::Mat FrameProcessor::rmapA[2];
cv::Mat FrameProcessor::rmapB[2];
FrameProcessor::FrameProcessor():
usel... | 21.892562 | 127 | 0.64345 | merfii |
13f7f7ed219f89cfd455a2b2a798557ffb42a89a | 3,273 | cpp | C++ | main.cpp | DnJuses/Qt-easy-host-director | 5a9c9ef560fac4034505b3c6f54db90e782df74a | [
"MIT"
] | 1 | 2018-12-09T18:05:45.000Z | 2018-12-09T18:05:45.000Z | main.cpp | DnJuses/Qt-easy-host-director | 5a9c9ef560fac4034505b3c6f54db90e782df74a | [
"MIT"
] | null | null | null | main.cpp | DnJuses/Qt-easy-host-director | 5a9c9ef560fac4034505b3c6f54db90e782df74a | [
"MIT"
] | null | null | null | #include "module_hostdirector/HostDirector.h"
#include "module_hostdirector/utility/HostDirectorFileWriter.h"
#include "module_hostdirector/utility/HostDirectorErrorHandler.h"
#include "module_passwordforms/confirmationform/PasswordConfirmationForm.h"
#include "module_passwordforms/creationform/PasswordCreationForm.h"
... | 35.967033 | 181 | 0.589368 | DnJuses |
13f81320c3ce60784f4c1423a9b8ae6d0d5d4968 | 1,696 | cpp | C++ | Engine/src/Render/Font/icFontDX9.cpp | binofet/ice | dee91da76df8b4f46ed4727d901819d8d20aefe3 | [
"MIT"
] | null | null | null | Engine/src/Render/Font/icFontDX9.cpp | binofet/ice | dee91da76df8b4f46ed4727d901819d8d20aefe3 | [
"MIT"
] | null | null | null | Engine/src/Render/Font/icFontDX9.cpp | binofet/ice | dee91da76df8b4f46ed4727d901819d8d20aefe3 | [
"MIT"
] | null | null | null | #include "Render/Font/icFontDX9.h"
#ifdef ICDX9
ICRESULT icFontDX9::Initialize(const char* szFileName, const int size,
class icGXDevice* pDevice)
{
//_font = NULL;
//icGXDeviceDX9* pDevice = (icGXDeviceDX9*)pContent->GetDevice();
//if (pDevice)
//{
// D3DXCreateFont(pDevice->GetDev... | 26.920635 | 85 | 0.508844 | binofet |
13f936492d5c47ced149aa17b4f1be4c971ce38e | 1,759 | cpp | C++ | src/bug_15.cpp | happanda/advent_2017 | 9e705f3088d79dac0caa471154ae88ed5106b2d2 | [
"MIT"
] | null | null | null | src/bug_15.cpp | happanda/advent_2017 | 9e705f3088d79dac0caa471154ae88ed5106b2d2 | [
"MIT"
] | null | null | null | src/bug_15.cpp | happanda/advent_2017 | 9e705f3088d79dac0caa471154ae88ed5106b2d2 | [
"MIT"
] | null | null | null | #include "advent.h"
struct Generator15
{
Generator15(long long seed, long long factor, long long base, int check = 1)
: mSeed(seed)
, mBase(base)
, mFactor(factor)
, mCheck(check)
{
}
long long genNext()
{
mSeed = (mSeed * mFactor) % mBase;
return mSeed;
}
long long genNextModified()
{
do
{
... | 20.694118 | 77 | 0.63104 | happanda |
13fbbb17a8ed2771706da56ef61636581c4eb2b2 | 1,340 | cc | C++ | 洛谷/提高-/CF808C.cc | OFShare/Algorithm-challenger | 43336871a5e48f8804d6e737c813d9d4c0dc2731 | [
"MIT"
] | 67 | 2019-07-14T05:38:41.000Z | 2021-12-23T11:52:51.000Z | 洛谷/提高-/CF808C.cc | OFShare/Algorithm-challenger | 43336871a5e48f8804d6e737c813d9d4c0dc2731 | [
"MIT"
] | null | null | null | 洛谷/提高-/CF808C.cc | OFShare/Algorithm-challenger | 43336871a5e48f8804d6e737c813d9d4c0dc2731 | [
"MIT"
] | 12 | 2020-01-16T10:48:01.000Z | 2021-06-11T16:49:04.000Z | /*
* Author : OFShare
* E-mail : OFShare@outlook.com
* Created Time : 2020-05-03 00:18:05 AM
* File Name : CF808C.cc
*/
#include <bits/stdc++.h>
#define ll long long
void debug() {
#ifdef Acui
freopen("data.in", "r", stdin);
freopen("data.out", "w", stdout);
#endif
}
const int N =... | 22.333333 | 74 | 0.470896 | OFShare |
13fc9bc26f362c3818cab5a09da7948b5466e3fa | 5,192 | cpp | C++ | deployment/configenv/xml_jlibpt/SWThorCluster.cpp | davidarcher/HPCC-Platform | fa817ab9ea7d8154ac08bc780ce9ce673f3e51e3 | [
"Apache-2.0"
] | 286 | 2015-01-03T12:45:17.000Z | 2022-03-25T18:12:57.000Z | deployment/configenv/xml_jlibpt/SWThorCluster.cpp | davidarcher/HPCC-Platform | fa817ab9ea7d8154ac08bc780ce9ce673f3e51e3 | [
"Apache-2.0"
] | 9,034 | 2015-01-02T08:49:19.000Z | 2022-03-31T20:34:44.000Z | deployment/configenv/xml_jlibpt/SWThorCluster.cpp | cloLN/HPCC-Platform | 42ffb763a1cdcf611d3900831973d0a68e722bbe | [
"Apache-2.0"
] | 208 | 2015-01-02T03:27:28.000Z | 2022-02-11T05:54:52.000Z | /*##############################################################################
HPCC SYSTEMS software Copyright (C) 2018 HPCC Systems®.
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... | 34.384106 | 149 | 0.724191 | davidarcher |
13fd24ce2a47de8d7edc81578368fecb931ff9f5 | 1,188 | cpp | C++ | Game/Source/Game/src/BossRoom.cpp | SweetheartSquad/GameJam2016 | e5787a6521add448fde8182ada0bce250ba831ea | [
"MIT"
] | null | null | null | Game/Source/Game/src/BossRoom.cpp | SweetheartSquad/GameJam2016 | e5787a6521add448fde8182ada0bce250ba831ea | [
"MIT"
] | null | null | null | Game/Source/Game/src/BossRoom.cpp | SweetheartSquad/GameJam2016 | e5787a6521add448fde8182ada0bce250ba831ea | [
"MIT"
] | null | null | null | #pragma once
#include <BossRoom.h>
#include <MeshFactory.h>
#include <MeshInterface.h>
#include <MY_ResourceManager.h>
#include <Resource.h>
BossRoom::BossRoom(Shader * _shader) :
Room(_shader)
{
mesh->replaceTextures(getRoomTex());
}
BossRoom::~BossRoom(){
}
Texture * BossRoom::getRoomTex(){
// grab a random ... | 23.76 | 113 | 0.692761 | SweetheartSquad |
cd039533a0ed7d2f51715442fd1c3211cb402780 | 7,804 | cpp | C++ | ARDUINO_CODE/ic_display.cpp | Allabakshu-shaik/Mercedes-POC | b338c471870830ba4b4fb26e4dc1097e0882a8e2 | [
"MIT"
] | 46 | 2020-01-08T16:38:46.000Z | 2022-03-30T21:08:07.000Z | ARDUINO_CODE/ic_display.cpp | Allabakshu-shaik/Mercedes-POC | b338c471870830ba4b4fb26e4dc1097e0882a8e2 | [
"MIT"
] | 2 | 2020-03-28T08:26:29.000Z | 2020-08-06T10:52:57.000Z | ARDUINO_CODE/ic_display.cpp | Allabakshu-shaik/Mercedes-POC | b338c471870830ba4b4fb26e4dc1097e0882a8e2 | [
"MIT"
] | 9 | 2020-03-13T20:53:02.000Z | 2021-08-31T08:50:20.000Z | #include "ic_display.h"
#include "can.h"
IC_DISPLAY::IC_DISPLAY(CANBUS_COMMUNICATOR *can) {
canB = can;
}
uint8_t IC_DISPLAY::current_page = IC_PAGE_AUDIO;
bool IC_DISPLAY::can_fit_body_text(const char *text) {
int length = 0;
for (uint8_t i = 0; i < strlen(text); i++) {
length += pgm_read_byte_n... | 33.067797 | 135 | 0.545105 | Allabakshu-shaik |
cd04566d3d73dde6f37d0b276fede7f783fc5539 | 3,841 | cpp | C++ | src/image.cpp | ceilors/flamebutter | 8e8c24be3237d898d44d7684b6784611b43fef2c | [
"BSD-3-Clause"
] | null | null | null | src/image.cpp | ceilors/flamebutter | 8e8c24be3237d898d44d7684b6784611b43fef2c | [
"BSD-3-Clause"
] | null | null | null | src/image.cpp | ceilors/flamebutter | 8e8c24be3237d898d44d7684b6784611b43fef2c | [
"BSD-3-Clause"
] | null | null | null | #include "image.hpp"
PNGImage::PNGImage(FILE *f) {
color_channels = 0;
png_byte header[8];
fread(header, 1, 8, f);
int is_png = !png_sig_cmp(header, 0, 8);
if (!is_png) {
fclose(f);
throw std::runtime_error("is not png");
}
png_structp png_ptr = png_create_read_struct(PNG_L... | 33.112069 | 120 | 0.643062 | ceilors |
cd07399a444da03fe90d7ff64b4f8cda126e7c00 | 93 | cpp | C++ | src/ListItem.cpp | timre13/list-maker | ebedbfcefa626af98f746c16fd46f6dafa81d70b | [
"BSD-2-Clause"
] | null | null | null | src/ListItem.cpp | timre13/list-maker | ebedbfcefa626af98f746c16fd46f6dafa81d70b | [
"BSD-2-Clause"
] | null | null | null | src/ListItem.cpp | timre13/list-maker | ebedbfcefa626af98f746c16fd46f6dafa81d70b | [
"BSD-2-Clause"
] | null | null | null | #include "ListItem.h"
ListItem::ListItem(const Glib::ustring &text)
: m_text{text}
{
}
| 11.625 | 45 | 0.666667 | timre13 |
cd075ded8ac56c4fb695c84cc0826915b32f2e2f | 1,101 | hpp | C++ | src/libs/rendering/opengl/Shader.hpp | JKot-Coder/OpenDemo | 8b9554914f5bab08df47e032486ca668a560c97c | [
"BSD-3-Clause"
] | null | null | null | src/libs/rendering/opengl/Shader.hpp | JKot-Coder/OpenDemo | 8b9554914f5bab08df47e032486ca668a560c97c | [
"BSD-3-Clause"
] | null | null | null | src/libs/rendering/opengl/Shader.hpp | JKot-Coder/OpenDemo | 8b9554914f5bab08df47e032486ca668a560c97c | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include "common/Math.hpp"
#include "rendering/Shader.hpp"
#include "rendering/opengl/Render.hpp"
namespace OpenDemo
{
namespace Common
{
class Stream;
}
namespace Rendering
{
namespace OpenGL
{
class Shader final : public Rendering::Shader
... | 27.525 | 119 | 0.563124 | JKot-Coder |
9984044eea45e1b83c9dceed6ecad4d015ca9e56 | 1,433 | hxx | C++ | src/control/ai/mod_attack/aim_basic_aim.hxx | AltSysrq/Abendstern | 106e1ad2457f7bfd90080eecf49a33f6079f8e1e | [
"BSD-3-Clause"
] | null | null | null | src/control/ai/mod_attack/aim_basic_aim.hxx | AltSysrq/Abendstern | 106e1ad2457f7bfd90080eecf49a33f6079f8e1e | [
"BSD-3-Clause"
] | null | null | null | src/control/ai/mod_attack/aim_basic_aim.hxx | AltSysrq/Abendstern | 106e1ad2457f7bfd90080eecf49a33f6079f8e1e | [
"BSD-3-Clause"
] | 1 | 2022-01-29T11:54:41.000Z | 2022-01-29T11:54:41.000Z | /**
* @file
* @author Jason Lingle
* @brief Contains class AIM_BasicAim AI module
*/
#ifndef AIM_BASIC_AIM_HXX_
#define AIM_BASIC_AIM_HXX_
#include <libconfig.h++>
#include "src/control/ai/aimod.hxx"
/**
* attack/basic_aim: Aim at the target, leading it as necessary.
*
* Set throttle according to normalised d... | 28.098039 | 112 | 0.653873 | AltSysrq |
998970e62a1f1f755dea91147fecaf6cd2fabf1e | 951 | cpp | C++ | worker/src/Master/Worker/ChannelRequest.cpp | idarkblue/mediasoup | f77bbd3680c122a2a4f15836b746e53e4b8571d0 | [
"0BSD"
] | null | null | null | worker/src/Master/Worker/ChannelRequest.cpp | idarkblue/mediasoup | f77bbd3680c122a2a4f15836b746e53e4b8571d0 | [
"0BSD"
] | null | null | null | worker/src/Master/Worker/ChannelRequest.cpp | idarkblue/mediasoup | f77bbd3680c122a2a4f15836b746e53e4b8571d0 | [
"0BSD"
] | null | null | null | #include "ChannelRequest.hpp"
namespace pingos {
uint64_t ChannelRequest::requestId = 0;
ChannelRequest::ChannelRequest(const std::string method)
{
this->Init(method);
}
ChannelRequest::~ChannelRequest()
{
}
void ChannelRequest::Init(const std::string method)
{
this->id = ChannelRequest::requestId++;
... | 17.290909 | 56 | 0.690852 | idarkblue |
998e46cb8284e5a536e1004b5bdda5eb677c2edc | 5,588 | cpp | C++ | Sources/Application/Application.cpp | ValentinCamus/GIR-Engine | 1aa8f6d44f65a00bc19e932ecd5ce98136015ee0 | [
"MIT"
] | 4 | 2020-01-21T14:51:29.000Z | 2020-02-26T17:02:40.000Z | Sources/Application/Application.cpp | ValentinCamus/GIR-Engine | 1aa8f6d44f65a00bc19e932ecd5ce98136015ee0 | [
"MIT"
] | null | null | null | Sources/Application/Application.cpp | ValentinCamus/GIR-Engine | 1aa8f6d44f65a00bc19e932ecd5ce98136015ee0 | [
"MIT"
] | 3 | 2020-02-18T10:55:46.000Z | 2021-11-14T12:02:44.000Z | #include "Application.hpp"
#include <IO/FileSystem/FileSystem.hpp>
#include <IO/Loader/ModelLoader.hpp>
#include <IO/Loader/SceneLoader.hpp>
#include <Engine/Camera/Camera.hpp>
#include <Engine/Light/DirectionalLight.hpp>
#include <Engine/Light/SpotLight.hpp>
#include <Engine/Light/PointLight.hpp>
#include <IO/Saver/... | 34.073171 | 120 | 0.641911 | ValentinCamus |
998ed94ee96719c741e7161c3217b8f0d3eb4761 | 512 | cpp | C++ | 2021/day04/part1.cpp | mfederczuk/advent-of-code-2020 | 4406692ee1c63b00a9c83029b15c857eed86432e | [
"Apache-2.0"
] | 2 | 2021-01-11T17:46:19.000Z | 2021-01-11T17:47:07.000Z | 2021/day04/part1.cpp | mfederczuk/advent-of-code-2020 | 4406692ee1c63b00a9c83029b15c857eed86432e | [
"Apache-2.0"
] | null | null | null | 2021/day04/part1.cpp | mfederczuk/advent-of-code-2020 | 4406692ee1c63b00a9c83029b15c857eed86432e | [
"Apache-2.0"
] | 1 | 2020-12-02T16:00:59.000Z | 2020-12-02T16:00:59.000Z | /*
* Copyright (c) 2021 Michael Federczuk
*
* SPDX-License-Identifier: MPL-2.0 AND Apache-2.0
*/
#include "../aoc2021.hpp"
#include "bingo_board.hpp"
#include "day04_utils.hpp"
#include <istream>
aoc2021::ANSWER aoc2021::solution(std::istream& input_file) {
day04_input input;
input_file >> input;
for(const in... | 18.285714 | 61 | 0.675781 | mfederczuk |
998f107ecfff40c1742923247548e102dd20d1ad | 2,370 | cpp | C++ | 33.park/33.cpp | teryokhin/bsu-famcs-algo-solutions | 69fe6b08f1836aa04c3bab85ab975593182aa0ea | [
"MIT"
] | null | null | null | 33.park/33.cpp | teryokhin/bsu-famcs-algo-solutions | 69fe6b08f1836aa04c3bab85ab975593182aa0ea | [
"MIT"
] | null | null | null | 33.park/33.cpp | teryokhin/bsu-famcs-algo-solutions | 69fe6b08f1836aa04c3bab85ab975593182aa0ea | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include <cstdlib>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <climits>
#include <vector>
#include <iomanip>
#include <algorithm>
#include <string>
#include <stack>
#include <ctime>
#include <queue>
#include <set>
#include <map>
#define INF 2000000011
typedef... | 26.333333 | 86 | 0.546414 | teryokhin |
999040a7db7e79da384f98037cf3f835a1bcafbc | 21,563 | cc | C++ | src/atlas/meshgenerator/RegularMeshGenerator.cc | mlange05/atlas | d8198435a9e39fbf67bfc467fe734203414af608 | [
"Apache-2.0"
] | null | null | null | src/atlas/meshgenerator/RegularMeshGenerator.cc | mlange05/atlas | d8198435a9e39fbf67bfc467fe734203414af608 | [
"Apache-2.0"
] | null | null | null | src/atlas/meshgenerator/RegularMeshGenerator.cc | mlange05/atlas | d8198435a9e39fbf67bfc467fe734203414af608 | [
"Apache-2.0"
] | null | null | null |
#include <algorithm>
#include <cmath>
#include <limits>
#include <numeric>
#include <vector>
#include "eckit/utils/Hash.h"
#include "atlas/array/Array.h"
#include "atlas/array/ArrayView.h"
#include "atlas/array/IndexView.h"
#include "atlas/field/Field.h"
#include "atlas/grid/Distribution.h"
#include "atlas/grid/Grid... | 40.005566 | 119 | 0.49738 | mlange05 |
9991bc1951c5eee646573b4e822efff0bc3016b3 | 13,236 | cpp | C++ | src/cpp/lib/QtWidgets/QTableWidgetItem/qtablewidgetitem_wrap.cpp | sharingcookies/nodegui | 481062423e52779ea7628999b249c1e77f7f2c6b | [
"MIT"
] | null | null | null | src/cpp/lib/QtWidgets/QTableWidgetItem/qtablewidgetitem_wrap.cpp | sharingcookies/nodegui | 481062423e52779ea7628999b249c1e77f7f2c6b | [
"MIT"
] | null | null | null | src/cpp/lib/QtWidgets/QTableWidgetItem/qtablewidgetitem_wrap.cpp | sharingcookies/nodegui | 481062423e52779ea7628999b249c1e77f7f2c6b | [
"MIT"
] | null | null | null | #include "QtWidgets/QTableWidgetItem/qtablewidgetitem_wrap.h"
#include "Extras/Utils/nutils.h"
#include "QtCore/QSize/qsize_wrap.h"
#include "QtCore/QVariant/qvariant_wrap.h"
#include "QtGui/QBrush/qbrush_wrap.h"
#include "QtGui/QFont/qfont_wrap.h"
#include "QtGui/QIcon/qicon_wrap.h"
#include "core/Component/component... | 35.108753 | 80 | 0.706331 | sharingcookies |
9993161620eb5e1a06840d586f9c4906a0d7824d | 8,286 | cpp | C++ | wxWidgets-2.9.1/src/common/radiocmn.cpp | slagusev/gamekit | a6e97fcf2a9c3b9b9799bc12c3643818503ffc7d | [
"MIT"
] | 1 | 2017-01-16T11:53:44.000Z | 2017-01-16T11:53:44.000Z | wxWidgets-2.9.1/src/common/radiocmn.cpp | slagusev/gamekit | a6e97fcf2a9c3b9b9799bc12c3643818503ffc7d | [
"MIT"
] | null | null | null | wxWidgets-2.9.1/src/common/radiocmn.cpp | slagusev/gamekit | a6e97fcf2a9c3b9b9799bc12c3643818503ffc7d | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
// Name: src/common/radiocmn.cpp
// Purpose: wxRadioBox methods common to all ports
// Author: Vadim Zeitlin
// Modified by:
// Created: 03.06.01
// RCS-ID: $Id$
// Copyright: (c) 2001 Vadim Zeitlin <zeitlin@dptma... | 26.990228 | 80 | 0.480932 | slagusev |
9995c7c99a8b021c850d7e6f0bb6ec99f5c5bbf9 | 2,139 | cpp | C++ | apps/tests/test_rank2.cpp | mtaillefumier/SIRIUS | 50ec1c202c019113c5660f1966b170dec9dfd4d4 | [
"BSD-2-Clause"
] | 77 | 2016-03-18T08:38:30.000Z | 2022-03-11T14:06:25.000Z | apps/tests/test_rank2.cpp | simonpintarelli/SIRIUS | f4b5c4810af2a3ea1e67992d65750535227da84b | [
"BSD-2-Clause"
] | 240 | 2016-04-12T16:39:11.000Z | 2022-03-31T08:46:12.000Z | apps/tests/test_rank2.cpp | simonpintarelli/SIRIUS | f4b5c4810af2a3ea1e67992d65750535227da84b | [
"BSD-2-Clause"
] | 43 | 2016-03-18T17:45:07.000Z | 2022-02-28T05:27:59.000Z | #include <sirius.h>
using namespace sirius;
void f1(int num_gvec, int lmmax, int num_atoms)
{
mdarray<double_complex, 3> alm(num_gvec, lmmax, num_atoms);
mdarray<double_complex, 2> o(num_gvec, num_gvec);
alm.randomize();
o.zero();
Timer t("rank2_update");
for (int ia = 0; ia < num_atoms; ia+... | 26.7375 | 124 | 0.555867 | mtaillefumier |
9997546f1c3133fc8afa4efee81f60c65a33c5ce | 56,391 | cpp | C++ | src/plugPikiOgawa/ogMemChk.cpp | doldecomp/pikmin | 8c8c20721ecb2a19af8e50a4bdebdba90c9a27ed | [
"Unlicense"
] | 27 | 2021-09-28T00:33:11.000Z | 2021-11-18T19:38:40.000Z | src/plugPikiOgawa/ogMemChk.cpp | doldecomp/pikmin | 8c8c20721ecb2a19af8e50a4bdebdba90c9a27ed | [
"Unlicense"
] | null | null | null | src/plugPikiOgawa/ogMemChk.cpp | doldecomp/pikmin | 8c8c20721ecb2a19af8e50a4bdebdba90c9a27ed | [
"Unlicense"
] | null | null | null | #include "types.h"
/*
* --INFO--
* Address: ........
* Size: 00009C
*/
void _Error(char*, ...)
{
// UNUSED FUNCTION
}
/*
* --INFO--
* Address: ........
* Size: 0000F4
*/
void _Print(char*, ...)
{
// UNUSED FUNCTION
}
/*
* --INFO--
* Address: 8018D04C
* Size: 0009D0
*/
zen::ogScrMemChkMgr::ogScrMemChkMg... | 21.65553 | 72 | 0.445834 | doldecomp |
999b58fbe9d4d5df8957295ec48722cdc36a28f0 | 1,344 | cpp | C++ | Main course/Homework1/Problem 2/Source files/Error.cpp | nia-flo/FMI-OOP | 9d6ab384b5b7a48e76965ca5bff1e6a995b1bcba | [
"MIT"
] | null | null | null | Main course/Homework1/Problem 2/Source files/Error.cpp | nia-flo/FMI-OOP | 9d6ab384b5b7a48e76965ca5bff1e6a995b1bcba | [
"MIT"
] | null | null | null | Main course/Homework1/Problem 2/Source files/Error.cpp | nia-flo/FMI-OOP | 9d6ab384b5b7a48e76965ca5bff1e6a995b1bcba | [
"MIT"
] | null | null | null | #pragma warning (disable : 4996)
#include "Error.hpp"
Error::Error()
{
this->message = nullptr;
}
Error::Error(ErrorType type, const char* message = "")
{
this->type = type;
this->setMessage(message);
}
Error::Error(const Error& error)
{
this->Copy(error);
}
Error& Error::operator=(const Error& error)
{
delet... | 14.297872 | 54 | 0.689732 | nia-flo |
99a006008cbdbbe1b663573492920864f2d6aa5a | 3,204 | cpp | C++ | src/Systems/DX11RenderSystem/DX11RenderIndexBuffer.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 39 | 2016-04-21T03:25:26.000Z | 2022-01-19T14:16:38.000Z | src/Systems/DX11RenderSystem/DX11RenderIndexBuffer.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 23 | 2016-06-28T13:03:17.000Z | 2022-02-02T10:11:54.000Z | src/Systems/DX11RenderSystem/DX11RenderIndexBuffer.cpp | irov/Mengine | b76e9f8037325dd826d4f2f17893ac2b236edad8 | [
"MIT"
] | 14 | 2016-06-22T20:45:37.000Z | 2021-07-05T12:25:19.000Z | #include "DX11RenderIndexBuffer.h"
#include "Interface/MemoryServiceInterface.h"
#include "DX11RenderEnum.h"
#include "DX11RenderErrorHelper.h"
#include "Kernel/Assertion.h"
#include "Kernel/AssertionMemoryPanic.h"
#include "Kernel/Logger.h"
#include "Kernel/Documentable.h"
#include "Kernel/DocumentHelper.h"
#includ... | 38.142857 | 109 | 0.476592 | irov |
99a64c2046bd3797e2f38619fa843fa176b32fab | 4,997 | cpp | C++ | unit_tests/stencil_composition/structured_grids/test_expandable_parameters.cpp | aurianer/gridtools | 5f99471bf36215e2a53317d2c7844bf057231ffa | [
"BSD-3-Clause"
] | null | null | null | unit_tests/stencil_composition/structured_grids/test_expandable_parameters.cpp | aurianer/gridtools | 5f99471bf36215e2a53317d2c7844bf057231ffa | [
"BSD-3-Clause"
] | null | null | null | unit_tests/stencil_composition/structured_grids/test_expandable_parameters.cpp | aurianer/gridtools | 5f99471bf36215e2a53317d2c7844bf057231ffa | [
"BSD-3-Clause"
] | null | null | null | /*
* GridTools
*
* Copyright (c) 2014-2019, ETH Zurich
* All rights reserved.
*
* Please, refer to the LICENSE file in the root directory.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <gtest/gtest.h>
#include <gridtools/stencil_composition/cartesian.hpp>
#include <gridtools/tools/cartesian_fixture.hpp>... | 32.448052 | 116 | 0.675005 | aurianer |
99a8b5ca9f288db3306f8e5f8240b60a2c75a06a | 663 | cpp | C++ | plugins/opengl/src/convert/color_base_type.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | plugins/opengl/src/convert/color_base_type.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | plugins/opengl/src/convert/color_base_type.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/opengl/color_base_type.hpp>
#include <sge/opengl/color_format.hpp>
#include <sge/open... | 39 | 96 | 0.757164 | cpreh |
99aa51c3cc729e4252172bb14fabf9321e1c26de | 215 | cpp | C++ | test/CommandTest.cpp | jonathanabrahams/helloworldcpp | 52b00f47ef637557a74f3a98e88e64c39e8a45fa | [
"Apache-2.0"
] | null | null | null | test/CommandTest.cpp | jonathanabrahams/helloworldcpp | 52b00f47ef637557a74f3a98e88e64c39e8a45fa | [
"Apache-2.0"
] | null | null | null | test/CommandTest.cpp | jonathanabrahams/helloworldcpp | 52b00f47ef637557a74f3a98e88e64c39e8a45fa | [
"Apache-2.0"
] | null | null | null | #include "Command/MockICommand.h"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
using ::testing::AtLeast;
TEST( CommandTest, mock_icommand )
{
MockICommand cmd;
EXPECT_CALL( cmd, execute() ).Times(0);
} | 21.5 | 43 | 0.706977 | jonathanabrahams |
99ac6de728b5e321f59e511f91795163db9d3371 | 5,436 | hpp | C++ | include/RAJA/policy/openmp/forall.hpp | jonesholger/RAJA | e1f3de7f71637383665379c97802481bfce9318f | [
"BSD-3-Clause"
] | 1 | 2020-04-28T20:35:12.000Z | 2020-04-28T20:35:12.000Z | include/RAJA/policy/openmp/forall.hpp | jonesholger/RAJA | e1f3de7f71637383665379c97802481bfce9318f | [
"BSD-3-Clause"
] | null | null | null | include/RAJA/policy/openmp/forall.hpp | jonesholger/RAJA | e1f3de7f71637383665379c97802481bfce9318f | [
"BSD-3-Clause"
] | 1 | 2020-06-07T13:26:40.000Z | 2020-06-07T13:26:40.000Z | /*!
******************************************************************************
*
* \file
*
* \brief Header file containing RAJA index set and segment iteration
* template methods for OpenMP.
*
* These methods should work on any platform that supports OpenMP.
*
*************************... | 27.18 | 79 | 0.585725 | jonesholger |
99aef4b087c02d4d5262f43db7eb358d9dc90b70 | 10,817 | cpp | C++ | src/demos/06_simple_fog/simple_fog.cpp | Shot511/RapidGL | eebad98eb38ea5f554beb75e151c47f5076e7088 | [
"MIT"
] | 1 | 2021-05-18T11:11:15.000Z | 2021-05-18T11:11:15.000Z | src/demos/06_simple_fog/simple_fog.cpp | Shot511/RapidGL | eebad98eb38ea5f554beb75e151c47f5076e7088 | [
"MIT"
] | 2 | 2021-04-24T07:33:38.000Z | 2021-07-08T15:10:26.000Z | src/demos/06_simple_fog/simple_fog.cpp | Shot511/RapidGL | eebad98eb38ea5f554beb75e151c47f5076e7088 | [
"MIT"
] | null | null | null | #include "simple_fog.h"
#include "filesystem.h"
#include "input.h"
#include "util.h"
#include "gui/gui.h"
#include <glm/gtc/matrix_inverse.hpp>
#include <random>
SimpleFog::SimpleFog()
: m_specular_power (120.0f),
m_specular_intenstiy(0.2f),
m_ambient_factor (0.18f),
m_gamma (2... | 37.429066 | 136 | 0.569936 | Shot511 |
99b16c7a350e3d9599a4c935e5bbc78f18410d40 | 1,014 | cpp | C++ | AP325/P-4-1.cpp | Superdanby/YEE | 49a6349dc5644579246623b480777afbf8031fcd | [
"MIT"
] | 1 | 2019-09-07T15:56:05.000Z | 2019-09-07T15:56:05.000Z | AP325/P-4-1.cpp | Superdanby/YEE | 49a6349dc5644579246623b480777afbf8031fcd | [
"MIT"
] | null | null | null | AP325/P-4-1.cpp | Superdanby/YEE | 49a6349dc5644579246623b480777afbf8031fcd | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
constexpr const ll MOD = 1e9 + 9;
ll solve(vector<pair<ll, ll>> &line, vector<ll> &coor, int front, int end,
int lfront, int lend) {
if (front > end) return 0;
int point = (front + end) / 2;
int lans = lfront;
for (int i = lfront +... | 22.533333 | 74 | 0.554241 | Superdanby |
99b75157d87d2d7e4a753691d2d04f108afa6f2b | 632 | cpp | C++ | sam-project/bakker-et-al-2012/SAM/SAM/tests/src/journal_test.cpp | amirmasoudabdol/bakker-et-al-2012-reproduction-using-sam | 518ab1cebaa80c19a12e92db8ae87386512ae053 | [
"MIT"
] | 1 | 2022-03-25T20:21:41.000Z | 2022-03-25T20:21:41.000Z | sam-project/bakker-et-al-2012/SAM/SAM/tests/src/journal_test.cpp | amirmasoudabdol/bakker-et-al-2012-reproduction-using-sam | 518ab1cebaa80c19a12e92db8ae87386512ae053 | [
"MIT"
] | null | null | null | sam-project/bakker-et-al-2012/SAM/SAM/tests/src/journal_test.cpp | amirmasoudabdol/bakker-et-al-2012-reproduction-using-sam | 518ab1cebaa80c19a12e92db8ae87386512ae053 | [
"MIT"
] | null | null | null | //
// Created by Amir Masoud Abdol on 2019-05-22.
//
#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE Journal Tests
#include <boost/test/unit_test.hpp>
namespace tt = boost::test_tools;
#include <armadillo>
#include <iostream>
#include <vector>
#include <algorithm>
#include "sam.h"
#include "test_fixtures.h"
... | 17.555556 | 46 | 0.746835 | amirmasoudabdol |
99b7c985b4ec3b5e767739ccb945506fad712dc0 | 100 | cpp | C++ | Tema_8_Estructuras_no_lineales/BinaryTree/BinaryTree/BST.cpp | vcubells/tc1031 | 43d328df12194be840e8c83966b814e5625347b3 | [
"MIT"
] | 10 | 2020-08-15T16:54:13.000Z | 2021-10-05T16:24:05.000Z | Tema_8_Estructuras_no_lineales/BinaryTree/BinaryTree/BST.cpp | vcubells/tc1031 | 43d328df12194be840e8c83966b814e5625347b3 | [
"MIT"
] | null | null | null | Tema_8_Estructuras_no_lineales/BinaryTree/BinaryTree/BST.cpp | vcubells/tc1031 | 43d328df12194be840e8c83966b814e5625347b3 | [
"MIT"
] | 4 | 2020-09-05T02:12:52.000Z | 2021-09-22T00:54:25.000Z | //
// BST.cpp
// BinaryTree
//
// Created by Vicente Cubells on 20/10/20.
//
#include "BST.hpp"
| 11.111111 | 43 | 0.6 | vcubells |
99badd73cb71b4b87174faaf0be074633b441346 | 1,702 | hpp | C++ | src/gui.hpp | Sparamoule/Roche | 244fd71ed841576f1c6dad8198312524bc1ff291 | [
"MIT"
] | 7 | 2019-03-15T11:51:56.000Z | 2020-06-20T15:16:06.000Z | src/gui.hpp | PLeLuron/Roche | 244fd71ed841576f1c6dad8198312524bc1ff291 | [
"MIT"
] | 1 | 2019-05-21T15:25:34.000Z | 2019-07-14T14:30:08.000Z | src/gui.hpp | PLeLuron/Roche | 244fd71ed841576f1c6dad8198312524bc1ff291 | [
"MIT"
] | 3 | 2018-12-18T02:05:20.000Z | 2020-03-13T18:17:49.000Z | #pragma once
#include <string>
#include <vector>
#include <map>
#include <set>
class Gui
{
public:
Gui() = default;
~Gui() = default;
typedef uint32_t Handle;
typedef Handle Font;
typedef Handle FontSize;
typedef Handle Image;
Font loadFont(const std::string &filename);
FontSize loadFontSize(Font font, flo... | 19.123596 | 78 | 0.701528 | Sparamoule |
99bba2476081e2ddb21537cf9002c8245bbcf5d4 | 1,180 | cpp | C++ | problems/chapter13/tokuma/1305.cpp | tokuma09/algorithm_problems | 58534620df73b230afbeb12de126174362625a78 | [
"CC0-1.0"
] | 1 | 2021-07-07T15:46:58.000Z | 2021-07-07T15:46:58.000Z | problems/chapter13/tokuma/1305.cpp | tokuma09/algorithm_problems | 58534620df73b230afbeb12de126174362625a78 | [
"CC0-1.0"
] | 5 | 2021-06-05T14:16:41.000Z | 2021-07-10T07:08:28.000Z | problems/chapter13/tokuma/1305.cpp | tokuma09/algorithm_problems | 58534620df73b230afbeb12de126174362625a78 | [
"CC0-1.0"
] | null | null | null | // https://qiita.com/drken/items/996d80bcae64649a6580
// 出次数とシンク
#include <iostream>
#include <vector>
#include <queue>
#include <algorithm>
using namespace std;
using Graph = vector<vector<int>>;
int main()
{
//頂点数と辺の数
int N, M;
cin >> N >> M;
// グラフ入力
Graph G(N);
vector<int> deg(N, 0); // ... | 16.857143 | 53 | 0.430508 | tokuma09 |
99c15d0ac0fb8e5257c9fdfe0acb497118e8e002 | 943 | hh | C++ | src/Nuxed/Contract/Http/Message/UploadedFileFactoryInterface.hh | tomoki1337/framework | ff06d260c5bf2a78a99b8d17b041de756550f95a | [
"MIT"
] | 1 | 2019-01-25T20:05:55.000Z | 2019-01-25T20:05:55.000Z | src/Nuxed/Contract/Http/Message/UploadedFileFactoryInterface.hh | gitter-badger/framework-27 | 368b734f2753b06b7f19f819185091f896838467 | [
"MIT"
] | null | null | null | src/Nuxed/Contract/Http/Message/UploadedFileFactoryInterface.hh | gitter-badger/framework-27 | 368b734f2753b06b7f19f819185091f896838467 | [
"MIT"
] | null | null | null | <?hh // strict
namespace Nuxed\Contract\Http\Message;
interface UploadedFileFactoryInterface {
/**
* Create a new uploaded file.
*
* If a size is not provided it will be determined by checking the size of
* the file.
*
* @param StreamInterface $stream Underlying stream representing the
* up... | 32.517241 | 81 | 0.711559 | tomoki1337 |
99c49aa906ef12d1fbe832b23b57c4fd2b5f3165 | 8,352 | cpp | C++ | plugins/protein/src/MoleculeBallifier.cpp | xge/megamol | 1e298dd3d8b153d7468ed446f6b2ed3ac49f0d5b | [
"BSD-3-Clause"
] | null | null | null | plugins/protein/src/MoleculeBallifier.cpp | xge/megamol | 1e298dd3d8b153d7468ed446f6b2ed3ac49f0d5b | [
"BSD-3-Clause"
] | null | null | null | plugins/protein/src/MoleculeBallifier.cpp | xge/megamol | 1e298dd3d8b153d7468ed446f6b2ed3ac49f0d5b | [
"BSD-3-Clause"
] | null | null | null | /*
* MoleculeBallifier.cpp
*
* Copyright (C) 2012 by TU Dresden
* All rights reserved.
*/
#include "MoleculeBallifier.h"
#include "geometry_calls/MultiParticleDataCall.h"
#include "mmcore/param/ColorParam.h"
#include "mmcore/param/EnumParam.h"
#include "mmcore/param/FilePathParam.h"
#include "mmcore/param/FloatPa... | 36.631579 | 120 | 0.661279 | xge |
99c4cc97c192f78f13d2cb963c408a2777758e25 | 297 | cpp | C++ | main.cpp | piccolo255/pde-pathtracer | d754583a308975b68675076f68f1194cbaa906ca | [
"Unlicense"
] | null | null | null | main.cpp | piccolo255/pde-pathtracer | d754583a308975b68675076f68f1194cbaa906ca | [
"Unlicense"
] | null | null | null | main.cpp | piccolo255/pde-pathtracer | d754583a308975b68675076f68f1194cbaa906ca | [
"Unlicense"
] | null | null | null | #include "plot_window.hpp"
#include <QApplication>
int main(
int argc
, char *argv[]
){
QApplication app( argc, argv );
PlotWindow w;
QCoreApplication::setOrganizationName( "UEC" );
QCoreApplication::setApplicationName( "PDE PathTracer" );
w.show();
return app.exec();
}
| 16.5 | 60 | 0.670034 | piccolo255 |
99c8bddbf02003bfb52a264b3d2ca1d506163810 | 58 | hpp | C++ | src/boost_compute_type_traits_make_vector_type.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_compute_type_traits_make_vector_type.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_compute_type_traits_make_vector_type.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/compute/type_traits/make_vector_type.hpp>
| 29 | 57 | 0.844828 | miathedev |
99e06083b139e92ee1380651c2373e26a4d176f7 | 349 | cpp | C++ | external/rapidcheck/src/detail/ImplicitParam.cpp | XzoRit/cpp_rapidcheck | 292c9943569e52e29fbd11abd31a965efc699a8e | [
"BSL-1.0"
] | 876 | 2015-01-29T00:48:46.000Z | 2022-03-23T00:24:34.000Z | src/detail/ImplicitParam.cpp | wuerges/rapidcheck | d2e0481b28b77fcd0c7ead9af1e8227ee9982739 | [
"BSD-2-Clause"
] | 199 | 2015-05-18T07:04:40.000Z | 2022-03-23T02:37:15.000Z | src/detail/ImplicitParam.cpp | wuerges/rapidcheck | d2e0481b28b77fcd0c7ead9af1e8227ee9982739 | [
"BSD-2-Clause"
] | 162 | 2015-03-12T20:19:31.000Z | 2022-03-14T08:42:52.000Z | #include "rapidcheck/detail/ImplicitParam.h"
namespace rc {
namespace detail {
ImplicitScope::ImplicitScope() { m_scopes.emplace(); }
ImplicitScope::~ImplicitScope() {
for (auto destructor : m_scopes.top()) {
destructor();
}
m_scopes.pop();
}
ImplicitScope::ScopeStack ImplicitScope::m_scopes;
} // namesp... | 18.368421 | 54 | 0.713467 | XzoRit |
99e2e6799c9da18cd4e53bc2917cd0347bfe185a | 3,404 | cpp | C++ | Linux_build/wxMultiSpec/xTitleBar.cpp | cas-nctu/multispec | 0bc840bdb073b5feaeec650c2da762cfa34ee37d | [
"Apache-2.0"
] | 11 | 2020-03-10T02:06:00.000Z | 2022-02-17T19:59:50.000Z | Linux_build/wxMultiSpec/xTitleBar.cpp | cas-nctu/multispec | 0bc840bdb073b5feaeec650c2da762cfa34ee37d | [
"Apache-2.0"
] | null | null | null | Linux_build/wxMultiSpec/xTitleBar.cpp | cas-nctu/multispec | 0bc840bdb073b5feaeec650c2da762cfa34ee37d | [
"Apache-2.0"
] | 5 | 2020-05-30T00:59:22.000Z | 2021-12-06T01:37:05.000Z | // MultiSpec
//
// Copyright 1988-2020 Purdue Research Foundation
//
// 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.apach... | 23.156463 | 86 | 0.664512 | cas-nctu |
99e4a24eaa12b6f5c2b5caf72c63b6703c07641b | 2,622 | cpp | C++ | samples/snippets/cpp/VS_Snippets_Winforms/Classic DataGridTableStyle Example/CPP/source.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 421 | 2018-04-01T01:57:50.000Z | 2022-03-28T15:24:42.000Z | samples/snippets/cpp/VS_Snippets_Winforms/Classic DataGridTableStyle Example/CPP/source.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 5,797 | 2018-04-02T21:12:23.000Z | 2022-03-31T23:54:38.000Z | samples/snippets/cpp/VS_Snippets_Winforms/Classic DataGridTableStyle Example/CPP/source.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 1,482 | 2018-03-31T11:26:20.000Z | 2022-03-30T22:36:45.000Z |
#using <System.Xml.dll>
#using <System.dll>
#using <System.Windows.Forms.dll>
#using <System.Drawing.dll>
#using <System.Data.dll>
using namespace System;
using namespace System::Data;
using namespace System::Drawing;
using namespace System::Windows::Forms;
using namespace System::ComponentModel;
public... | 34.5 | 124 | 0.653318 | hamarb123 |
99e65bab4e4f4cb17c9b737db371150096a87fe7 | 77,506 | hpp | C++ | STL/map.hpp | colorhistory/cplusplus-general-programming | 3ece924a2ab34711a55a45bc41e2b74384956204 | [
"MIT"
] | 1 | 2019-09-28T09:40:08.000Z | 2019-09-28T09:40:08.000Z | STL/map.hpp | colorhistory/cplusplus-general-programming | 3ece924a2ab34711a55a45bc41e2b74384956204 | [
"MIT"
] | null | null | null | STL/map.hpp | colorhistory/cplusplus-general-programming | 3ece924a2ab34711a55a45bc41e2b74384956204 | [
"MIT"
] | null | null | null | #ifndef MAP_HPP
#define MAP_HPP
namespace GP {
/*
map synopsis
namespace std
{
template <class Key, class T, class Compare = less<Key>,
class Allocator = allocator<pair<const Key, T>>>
class map
{
public:
// types:
typedef Key ... | 39.203844 | 149 | 0.621268 | colorhistory |
99e6737f29370617200af6f96209b976a7ffd22d | 1,502 | hpp | C++ | third-party/Empirical/include/emp/math/distances.hpp | koellingh/empirical-p53-simulator | aa6232f661e8fc65852ab6d3e809339557af521b | [
"MIT"
] | null | null | null | third-party/Empirical/include/emp/math/distances.hpp | koellingh/empirical-p53-simulator | aa6232f661e8fc65852ab6d3e809339557af521b | [
"MIT"
] | null | null | null | third-party/Empirical/include/emp/math/distances.hpp | koellingh/empirical-p53-simulator | aa6232f661e8fc65852ab6d3e809339557af521b | [
"MIT"
] | null | null | null | /**
* @note This file is part of Empirical, https://github.com/devosoft/Empirical
* @copyright Copyright (C) Michigan State University, MIT Software license; see doc/LICENSE.md
* @date 2017-2018
*
* @file distances.hpp
* @brief Library of commonly used distance functions
* @note Status: BETA
*/
#ifndef E... | 28.339623 | 103 | 0.641145 | koellingh |
99e6e3ce55dfb2b5a044271179bf612368f8b5ee | 483 | hpp | C++ | stan/math/rev/meta.hpp | nicokist/math | d47c331a693a3d5ebc4453360743b9353a8e3ed1 | [
"BSD-3-Clause"
] | null | null | null | stan/math/rev/meta.hpp | nicokist/math | d47c331a693a3d5ebc4453360743b9353a8e3ed1 | [
"BSD-3-Clause"
] | null | null | null | stan/math/rev/meta.hpp | nicokist/math | d47c331a693a3d5ebc4453360743b9353a8e3ed1 | [
"BSD-3-Clause"
] | null | null | null | #ifndef STAN_MATH_REV_META_HPP
#define STAN_MATH_REV_META_HPP
#include <stan/math/prim/meta.hpp>
#include <stan/math/rev/meta/arena_type.hpp>
#include <stan/math/rev/meta/is_arena_matrix.hpp>
#include <stan/math/rev/meta/is_var.hpp>
#include <stan/math/rev/meta/is_rev_matrix.hpp>
#include <stan/math/rev/meta/is_vari.h... | 32.2 | 52 | 0.795031 | nicokist |
99e6ef38704fb75b62d0048c9343b39fd37ada75 | 2,899 | cpp | C++ | libraries/audio/src/AbstractAudioInterface.cpp | Penguin-Guru/vircadia | 021268696c73f699364fa93f5d6db03e6b1b8426 | [
"Apache-2.0"
] | 272 | 2021-01-07T03:06:08.000Z | 2022-03-25T03:54:07.000Z | libraries/audio/src/AbstractAudioInterface.cpp | Penguin-Guru/vircadia | 021268696c73f699364fa93f5d6db03e6b1b8426 | [
"Apache-2.0"
] | 1,021 | 2020-12-12T02:33:32.000Z | 2022-03-31T23:36:37.000Z | libraries/audio/src/AbstractAudioInterface.cpp | Penguin-Guru/vircadia | 021268696c73f699364fa93f5d6db03e6b1b8426 | [
"Apache-2.0"
] | 77 | 2020-12-15T06:59:34.000Z | 2022-03-23T22:18:04.000Z | //
// Created by Bradley Austin Davis on 2015/11/18
// Copyright 2013 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "AbstractAudioInterface.h"
#include <Node.h>
#include <NodeType.h>
... | 40.263889 | 141 | 0.669541 | Penguin-Guru |
99e711e69ec1d6cbd7d2a2e51b333b14fe8856a3 | 4,679 | cpp | C++ | tests/unit/component/partitioned_vector_view_iterator.cpp | atrantan/hpx | 6c214b2f3e3fc58648513c9f1cfef37fde59333c | [
"BSL-1.0"
] | 1 | 2019-09-26T09:10:13.000Z | 2019-09-26T09:10:13.000Z | tests/unit/component/partitioned_vector_view_iterator.cpp | atrantan/hpx | 6c214b2f3e3fc58648513c9f1cfef37fde59333c | [
"BSL-1.0"
] | null | null | null | tests/unit/component/partitioned_vector_view_iterator.cpp | atrantan/hpx | 6c214b2f3e3fc58648513c9f1cfef37fde59333c | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2017 Antoine Tran Tan
//
// 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 <hpx/hpx_main.hpp>
#include <hpx/components/containers/partitioned_vector/partitioned_vector_view.hpp>
#include ... | 29.99359 | 89 | 0.569139 | atrantan |
99ecb55fa834903871569bae1e3c8cfcf174ae5e | 334 | hpp | C++ | src/io/register_loader_saver_minimizer.hpp | ruolin/vg | fddf5a0e3172cfc50eb6f8a561dfbe3dbbbaec04 | [
"MIT"
] | 740 | 2016-02-23T02:31:10.000Z | 2022-03-31T20:51:36.000Z | src/io/register_loader_saver_minimizer.hpp | ruolin/vg | fddf5a0e3172cfc50eb6f8a561dfbe3dbbbaec04 | [
"MIT"
] | 2,455 | 2016-02-24T08:17:45.000Z | 2022-03-31T20:19:41.000Z | src/io/register_loader_saver_minimizer.hpp | ruolin/vg | fddf5a0e3172cfc50eb6f8a561dfbe3dbbbaec04 | [
"MIT"
] | 169 | 2016-03-03T15:41:33.000Z | 2022-03-31T04:01:53.000Z | #ifndef VG_IO_REGISTER_LOADER_SAVER_MINIMIZER_HPP_INCLUDED
#define VG_IO_REGISTER_LOADER_SAVER_MINIMIZER_HPP_INCLUDED
/**
* \file register_loader_saver_minimizer.hpp
* Defines IO for minimizer index from stream files.
*/
namespace vg {
namespace io {
using namespace std;
void register_loader_saver_minimizer();
... | 15.181818 | 58 | 0.808383 | ruolin |
99edc13cf3a5a2203389b7a580eba7858dfe42d0 | 919 | hpp | C++ | engine/audio/Effect.hpp | taida957789/ouzel | a8c1cc74e6151a0f7d7d2c534f8747cba46a36af | [
"Unlicense"
] | 1 | 2021-03-01T13:17:49.000Z | 2021-03-01T13:17:49.000Z | engine/audio/Effect.hpp | taida957789/ouzel | a8c1cc74e6151a0f7d7d2c534f8747cba46a36af | [
"Unlicense"
] | null | null | null | engine/audio/Effect.hpp | taida957789/ouzel | a8c1cc74e6151a0f7d7d2c534f8747cba46a36af | [
"Unlicense"
] | null | null | null | // Copyright 2015-2020 Elviss Strazdins. All rights reserved.
#ifndef OUZEL_AUDIO_EFFECT_HPP
#define OUZEL_AUDIO_EFFECT_HPP
#include <cstdint>
#include "Node.hpp"
namespace ouzel::audio
{
class Audio;
class Mix;
class Effect: public Node
{
friend Mix;
public:
Effect(Audio& initAu... | 22.414634 | 68 | 0.622416 | taida957789 |
99efa085a3ecd9456625c8ce3414651cf1eedd88 | 1,528 | cpp | C++ | app/src/common/faboolApi.cpp | smartDIYs/FABOOLDesktop_opensource | 082fc12eacffed2b64f868064ed3809d06db831b | [
"MIT"
] | 6 | 2019-02-17T02:17:45.000Z | 2021-07-16T01:53:41.000Z | app/src/common/faboolApi.cpp | smartDIYs/FABOOLDesktop_opensource | 082fc12eacffed2b64f868064ed3809d06db831b | [
"MIT"
] | null | null | null | app/src/common/faboolApi.cpp | smartDIYs/FABOOLDesktop_opensource | 082fc12eacffed2b64f868064ed3809d06db831b | [
"MIT"
] | 5 | 2018-08-28T07:29:08.000Z | 2020-07-04T13:45:58.000Z | #include "faboolApi.h"
// FaboolAPIResponse
FaboolAPIResponse::FaboolAPIResponse(QNetworkReply *reply, QObject *parent) : QObject(parent)
{
QString responseString = (QString)reply->readAll();
qDebug() << responseString;
if(responseString != ""){
mHasReply = true;
mData = QJsonObject(QJsonDo... | 26.807018 | 95 | 0.701571 | smartDIYs |
99f0fb7f5578ff25a8f132942bdd05bb0fa29fdb | 44,737 | cpp | C++ | SDK/ARKSurvivalEvolved_Purlovia_Character_BP_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_Purlovia_Character_BP_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_Purlovia_Character_BP_functions.cpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | // ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_Purlovia_Character_BP_parameters.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Functions
//------------------------------------------------------------... | 31.527132 | 250 | 0.747748 | 2bite |
99f7fa9d204bc081eb5a5dc52ffcc73954983c9b | 12,994 | cc | C++ | examples/containers/parSkipListUniqueElems-lock.cc | ppete/unleashed | 1be4335350d5024684a68a0b4f9c45ef6beb0481 | [
"BSD-3-Clause"
] | null | null | null | examples/containers/parSkipListUniqueElems-lock.cc | ppete/unleashed | 1be4335350d5024684a68a0b4f9c45ef6beb0481 | [
"BSD-3-Clause"
] | null | null | null | examples/containers/parSkipListUniqueElems-lock.cc | ppete/unleashed | 1be4335350d5024684a68a0b4f9c45ef6beb0481 | [
"BSD-3-Clause"
] | null | null | null | #include <thread>
#include <iostream>
#include <sstream>
#include <list>
#include <iomanip>
#include "ucl/unused.hpp"
#ifndef WITHOUT_GC
#define GC_THREADS 1
// #define GC_DEBUG 1
#include <gc/gc.h>
#include "ucl/gc-cxx11/gc_cxx11.hpp" // use GC allocator modified to work with C++11
#endif /* WITHOUT_GC */
... | 23.412613 | 164 | 0.644143 | ppete |
99f816422451f1694e057ae0be74a6b530bae0c2 | 1,673 | cc | C++ | test/memory_design_test.cc | tdelame/Graphics-Origin | 27b7d6ac72c4cb1858fc85dc18fe864de1496c6d | [
"MIT"
] | null | null | null | test/memory_design_test.cc | tdelame/Graphics-Origin | 27b7d6ac72c4cb1858fc85dc18fe864de1496c6d | [
"MIT"
] | null | null | null | test/memory_design_test.cc | tdelame/Graphics-Origin | 27b7d6ac72c4cb1858fc85dc18fe864de1496c6d | [
"MIT"
] | null | null | null | # include "../graphics-origin/graphics_origin.h"
# include "../graphics-origin/tools/memory.h"
# include <iostream>
# include <vector>
namespace graphics_origin {
namespace test {
static int execute( int argc, char* argv[] )
{
(void)argc;
(void)argv;
const auto page_size = tools::virtu... | 30.981481 | 99 | 0.61327 | tdelame |
99f8c2573e0ae97655bea4f85b7a80e67054c346 | 4,497 | cpp | C++ | test/testmain.cpp | suratovvlad/squaresolver | c64b6125af52ba9df76febcebfff9417ce77541b | [
"MIT"
] | null | null | null | test/testmain.cpp | suratovvlad/squaresolver | c64b6125af52ba9df76febcebfff9417ce77541b | [
"MIT"
] | null | null | null | test/testmain.cpp | suratovvlad/squaresolver | c64b6125af52ba9df76febcebfff9417ce77541b | [
"MIT"
] | null | null | null |
#define CATCH_CONFIG_MAIN
#include <iostream>
#include <catch2/catch.hpp>
#include <thread>
#include "simpletaskgenerator.hpp"
#include "simpletaskconsumer.hpp"
#include <solver.hpp>
#include <quadraticequation.hpp>
TEST_CASE("simple equation, D > 0")
{
auto equation = std::make_shared<QuadraticEquation>();
... | 26.145349 | 102 | 0.617968 | suratovvlad |
99f9ae927914941b7a44f1224acdd271fc916df8 | 3,952 | cpp | C++ | OpenNeighborhood/src/Elements/AddXboxButton.cpp | ClementDreptin/OpenNeighborhood | 595768263a03d5d2640cf5111a0492311c15a3a0 | [
"Apache-2.0"
] | 7 | 2021-07-03T20:58:01.000Z | 2021-11-03T18:04:20.000Z | OpenNeighborhood/src/Elements/AddXboxButton.cpp | ClementDreptin/OpenNeighborhood | 595768263a03d5d2640cf5111a0492311c15a3a0 | [
"Apache-2.0"
] | 2 | 2021-06-17T14:50:53.000Z | 2021-06-18T21:18:05.000Z | OpenNeighborhood/src/Elements/AddXboxButton.cpp | ClementDreptin/OpenNeighborhood | 595768263a03d5d2640cf5111a0492311c15a3a0 | [
"Apache-2.0"
] | null | null | null | #include "pch.h"
#include "Elements/AddXboxButton.h"
#define MINI_CASE_SENSITIVE
#include <mINI/ini.h>
#include "Render/TextureManager.h"
#include "Xbox/XboxManager.h"
#include "Events/AppEvent.h"
#include "Elements/Xbox.h"
#include "Render/UI.h"
AddXboxButton::AddXboxButton()
: Element("Add Xbox 360", "addXbox... | 31.11811 | 203 | 0.582237 | ClementDreptin |
82067ab803a16b8356843bcb014d8e2702349edd | 419 | cpp | C++ | src/3rdPartyLib/SPIRV.cpp | SapphireEngine/Engine | bf5a621ac45d76a2635b804c0d8b023f1114d8f5 | [
"MIT"
] | 2 | 2020-02-03T04:58:17.000Z | 2021-03-13T06:03:52.000Z | src/3rdPartyLib/SPIRV.cpp | SapphireEngine/Engine | bf5a621ac45d76a2635b804c0d8b023f1114d8f5 | [
"MIT"
] | null | null | null | src/3rdPartyLib/SPIRV.cpp | SapphireEngine/Engine | bf5a621ac45d76a2635b804c0d8b023f1114d8f5 | [
"MIT"
] | null | null | null | #include "define.h"
#include <SPIRV_Cross/spirv_cfg.cpp>
#include <SPIRV_Cross/spirv_cpp.cpp>
#include <SPIRV_Cross/spirv_cross.cpp>
#include <SPIRV_Cross/spirv_cross_parsed_ir.cpp>
#include <SPIRV_Cross/spirv_cross_util.cpp>
#include <SPIRV_Cross/spirv_glsl.cpp>
#include <SPIRV_Cross/spirv_hlsl.cpp>
#include <SPIRV_Cr... | 38.090909 | 48 | 0.821002 | SapphireEngine |
8207aa5e71819ec62dfc0307590b13da840c7dc0 | 2,539 | cpp | C++ | Examples/source/ExampleMapScene.cpp | boschman32/Crime-Engine | 128529634011d41a1f7fc1a356245d7f7ef77cb3 | [
"MIT"
] | 1 | 2021-07-21T17:14:35.000Z | 2021-07-21T17:14:35.000Z | Examples/source/ExampleMapScene.cpp | boschman32/Crime-Engine | 128529634011d41a1f7fc1a356245d7f7ef77cb3 | [
"MIT"
] | null | null | null | Examples/source/ExampleMapScene.cpp | boschman32/Crime-Engine | 128529634011d41a1f7fc1a356245d7f7ef77cb3 | [
"MIT"
] | 3 | 2021-03-07T15:51:03.000Z | 2021-07-13T20:01:34.000Z | #include "expch.h"
#include "ExampleMapScene.h"
#include "Scenes/IMapScene.h"
#include "Scenes/SceneManager.h"
#include "Utils/ServiceManager.h"
namespace ce
{
namespace examples
{
class SceneA : public IMapScene
{
public:
SceneA(int a_a, float a_b, const std::string& a_c)
: m_a(a_a), m_b(a_b), m_c(a_c... | 16.926667 | 101 | 0.582119 | boschman32 |
820859b320cd376cf595e587ebbab8dfbbb221e7 | 397 | cpp | C++ | mcppalloc_bitmap_allocator/mcppalloc_bitmap_allocator_test/main.cpp | garyfurnish/mcppalloc | 5a6dfc99bab23e7f6aba8d20919d71a6e31c38bf | [
"MIT"
] | null | null | null | mcppalloc_bitmap_allocator/mcppalloc_bitmap_allocator_test/main.cpp | garyfurnish/mcppalloc | 5a6dfc99bab23e7f6aba8d20919d71a6e31c38bf | [
"MIT"
] | null | null | null | mcppalloc_bitmap_allocator/mcppalloc_bitmap_allocator_test/main.cpp | garyfurnish/mcppalloc | 5a6dfc99bab23e7f6aba8d20919d71a6e31c38bf | [
"MIT"
] | null | null | null | #include <mcpputil/mcpputil/declarations.hpp>
// This Must be first.
#include <mcpputil/mcpputil/bandit.hpp>
#ifdef _WIN32
#pragma optimize("", off)
#endif
using namespace bandit;
extern void bitmap_allocator_tests();
go_bandit([]() { bitmap_allocator_tests(); });
int main(int argc, char *argv[])
{
auto ret = bandi... | 19.85 | 46 | 0.707809 | garyfurnish |
820c4615984b65b6aa748665540866835604e63b | 1,770 | cpp | C++ | apps/myApps/MessageSender/src/ofApp.cpp | nmbakfm/club_projection_mapping | 95dd0d7604fce397fcdf058d09085fb32b184257 | [
"MIT"
] | 1 | 2015-06-16T07:36:55.000Z | 2015-06-16T07:36:55.000Z | apps/myApps/MessageSender/src/ofApp.cpp | nmbakfm/club_projection_mapping | 95dd0d7604fce397fcdf058d09085fb32b184257 | [
"MIT"
] | null | null | null | apps/myApps/MessageSender/src/ofApp.cpp | nmbakfm/club_projection_mapping | 95dd0d7604fce397fcdf058d09085fb32b184257 | [
"MIT"
] | null | null | null | #include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup(){
ofBackground(0);
xml.load("settings.xml");
string host = xml.getValue("osc:host","localhost");
int port = xml.getValue("osc:port",57688);
sender.setup(host, port);
string text = string(... | 24.246575 | 96 | 0.369492 | nmbakfm |
8216f1517302a9606733b033ab2654a4fdcd1ae5 | 212 | cpp | C++ | src/page_01/task020.cpp | berlios/pe | 5edd686481666c86a14804cfeae354a267d468be | [
"MIT"
] | null | null | null | src/page_01/task020.cpp | berlios/pe | 5edd686481666c86a14804cfeae354a267d468be | [
"MIT"
] | null | null | null | src/page_01/task020.cpp | berlios/pe | 5edd686481666c86a14804cfeae354a267d468be | [
"MIT"
] | null | null | null | #include <gmpxx.h>
#include "base/digit_manipulation.h"
#include "base/task.h"
TASK(20) {
mpz_class factorial = 1;
for (int i = 1; i <= 100; ++i) {
factorial *= i;
}
return DigitSum(factorial);
}
| 14.133333 | 36 | 0.613208 | berlios |
8217693ab2fb7648633db1278b933e11bd860774 | 5,163 | cpp | C++ | Computer Graphics/src/scene_vertex.cpp | Isain965/graficasComputacionales | 1a7730bc14cb9c366b94c89836a4b89a10a0e578 | [
"MIT"
] | null | null | null | Computer Graphics/src/scene_vertex.cpp | Isain965/graficasComputacionales | 1a7730bc14cb9c366b94c89836a4b89a10a0e578 | [
"MIT"
] | null | null | null | Computer Graphics/src/scene_vertex.cpp | Isain965/graficasComputacionales | 1a7730bc14cb9c366b94c89836a4b89a10a0e578 | [
"MIT"
] | null | null | null | #include "scene_vertex.h"
#include "ifile.h"
#include "time.h"
#include <vector>
#include <iostream>
scene_vertex::~scene_vertex() {
// Borramos la memoria del ejecutable cuando
// la escena deja de existir
glDeleteProgram(shader_program);
}
void scene_vertex::init() {
// ifile es parte del codigo que yo les d... | 35.363014 | 74 | 0.75092 | Isain965 |
821c0059ae96b073cdcda798f94ee7694b7df8d7 | 457 | cpp | C++ | libitm2stm/libitm-5.2.cpp | nmadduri/rstm | 5f4697f987625379d99bca1f32b33ee8e821c8a5 | [
"BSD-3-Clause"
] | 8 | 2016-12-05T19:39:55.000Z | 2021-07-22T07:00:40.000Z | libitm2stm/libitm-5.2.cpp | hlitz/rstm_zsim_tm | 1c66824b124f84c8812ca25f4a9aa225f9f1fa34 | [
"BSD-3-Clause"
] | null | null | null | libitm2stm/libitm-5.2.cpp | hlitz/rstm_zsim_tm | 1c66824b124f84c8812ca25f4a9aa225f9f1fa34 | [
"BSD-3-Clause"
] | 2 | 2018-06-02T07:46:33.000Z | 2020-06-26T02:12:34.000Z | /**
* Copyright (C) 2011
* University of Rochester Department of Computer Science
* and
* Lehigh University Department of Computer Science and Engineering
*
* License: Modified BSD
* Please see the file LICENSE.RSTM for licensing information
*/
// 5.2 Version checking
#include "libitm.h"
int
... | 19.041667 | 70 | 0.704595 | nmadduri |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.