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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
77dab576653e19ab2892b02a4f5d4ac5c72e7818 | 242 | cpp | C++ | docs/mfc/codesnippet/CPP/carray-class_13.cpp | Youssef1313/cpp-docs | 1a6fe60114c7957f9acc059f05f07119d3495f69 | [
"CC-BY-4.0",
"MIT"
] | 1 | 2020-05-13T03:56:15.000Z | 2020-05-13T03:56:15.000Z | docs/mfc/codesnippet/CPP/carray-class_13.cpp | Youssef1313/cpp-docs | 1a6fe60114c7957f9acc059f05f07119d3495f69 | [
"CC-BY-4.0",
"MIT"
] | null | null | null | docs/mfc/codesnippet/CPP/carray-class_13.cpp | Youssef1313/cpp-docs | 1a6fe60114c7957f9acc059f05f07119d3495f69 | [
"CC-BY-4.0",
"MIT"
] | 1 | 2021-12-21T18:29:23.000Z | 2021-12-21T18:29:23.000Z | // example for CArray::SetAtGrow
CArray<CPoint, CPoint> ptArray;
ptArray.Add(CPoint(10, 20)); // Element 0
ptArray.Add(CPoint(30, 40)); // Element 1
// Element 2 deliberately skipped
ptArray.SetAtGrow(3, CPoint(50, 60)); // Element 3 | 34.571429 | 54 | 0.694215 | Youssef1313 |
77e12710efa84df8245eb52ebe74ce0e0f901791 | 3,791 | hpp | C++ | psf_moments.hpp | cschreib/psf-averager | 9e40e02e725d9254cef52c2606c8fdd709f8e5d3 | [
"MIT"
] | null | null | null | psf_moments.hpp | cschreib/psf-averager | 9e40e02e725d9254cef52c2606c8fdd709f8e5d3 | [
"MIT"
] | null | null | null | psf_moments.hpp | cschreib/psf-averager | 9e40e02e725d9254cef52c2606c8fdd709f8e5d3 | [
"MIT"
] | null | null | null | #ifndef PSF_MOMENTS_INCLUDED
#define PSF_MOMENTS_INCLUDED
#include <vif.hpp>
#include "filters.hpp"
using namespace vif;
using namespace vif::astro;
struct psf_options {
std::string library;
};
struct psf_moments {
filter_database& filter_db;
filter_t filter;
vec1d mono_lam, mono_q11, mono_q12, mono... | 34.153153 | 94 | 0.604854 | cschreib |
77e19360c5922e4c8a24036fb3de21b78af983d4 | 875 | cpp | C++ | Sorting/1. insertion sort.cpp | Shourov1702040/Algorithms-in-Cpp | 8c9e8cdde3f2e038a97e489701da59bae5d44aed | [
"MIT"
] | 2 | 2021-12-20T15:29:29.000Z | 2021-12-20T17:35:07.000Z | Sorting/1. insertion sort.cpp | Shourov1702040/Algorithms | 8c9e8cdde3f2e038a97e489701da59bae5d44aed | [
"MIT"
] | null | null | null | Sorting/1. insertion sort.cpp | Shourov1702040/Algorithms | 8c9e8cdde3f2e038a97e489701da59bae5d44aed | [
"MIT"
] | null | null | null | //1. Insertion sort:
#include <iostream>
using namespace std;
//Insertion sort sort function
void insertionSort( int A[], int n)
{
int i,value, index;
for(i=1 ; i<n ; i++)
{
value = A[i];
index = i;
while ( index > 0 && A[index -1] > value)
{
A[index] = A[index ... | 17.156863 | 49 | 0.500571 | Shourov1702040 |
77e1ca214d3c5451802d937c021256acddf12b71 | 1,732 | cpp | C++ | cetty-redis/src/cetty/redis/protocol/commands/SortedSets.cpp | frankee/cetty2 | 62ac0cd1438275097e47a9ba471e72efd2746ded | [
"BSL-1.0",
"Apache-2.0",
"BSD-3-Clause"
] | 26 | 2015-11-08T10:58:21.000Z | 2021-02-25T08:27:26.000Z | cetty-redis/src/cetty/redis/protocol/commands/SortedSets.cpp | frankee/cetty2 | 62ac0cd1438275097e47a9ba471e72efd2746ded | [
"BSL-1.0",
"Apache-2.0",
"BSD-3-Clause"
] | 1 | 2019-02-18T08:46:17.000Z | 2019-02-18T08:46:17.000Z | cetty-redis/src/cetty/redis/protocol/commands/SortedSets.cpp | frankee/cetty2 | 62ac0cd1438275097e47a9ba471e72efd2746ded | [
"BSL-1.0",
"Apache-2.0",
"BSD-3-Clause"
] | 8 | 2016-02-27T02:37:10.000Z | 2021-09-29T05:25:00.000Z | /*
* Copyright (c) 2010-2012 frankee zhou (frankee.zhou at gmail dot com)
*
* Distributed under 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
*... | 37.652174 | 76 | 0.691109 | frankee |
77e3c4b1e94e6c0e49079907c41692a5a9b92f4f | 57,255 | cpp | C++ | src/MyTemplate/Renderer/Renderer.cpp | Falkgaard/MyTemplate | b9411714c7f249eb94a0f178c0d68154e28b1331 | [
"MIT"
] | null | null | null | src/MyTemplate/Renderer/Renderer.cpp | Falkgaard/MyTemplate | b9411714c7f249eb94a0f178c0d68154e28b1331 | [
"MIT"
] | null | null | null | src/MyTemplate/Renderer/Renderer.cpp | Falkgaard/MyTemplate | b9411714c7f249eb94a0f178c0d68154e28b1331 | [
"MIT"
] | null | null | null | #include "MyTemplate/Renderer/Renderer.hpp"
#include "MyTemplate/Common/aliases.hpp"
#include "MyTemplate/Renderer/common.hpp"
#include "MyTemplate/Renderer/GlfwInstance.hpp"
#include "MyTemplate/Renderer/Window.hpp"
#include "MyTemplate/Renderer/Primitives.hpp"
#include <spdlog/spdlog.h>
#include <ranges>
#include ... | 36.306278 | 128 | 0.669688 | Falkgaard |
77e44784d81b36a7465ee8c6935d110b135fb6ab | 758 | cpp | C++ | fun/linear_stair.cpp | grenkin/inverse_heat | 730ee30ec00743b2e580ddf14fd9c7cd12140d68 | [
"MIT"
] | 1 | 2021-02-19T08:52:09.000Z | 2021-02-19T08:52:09.000Z | fun/linear_stair.cpp | grenkin/inverse_heat | 730ee30ec00743b2e580ddf14fd9c7cd12140d68 | [
"MIT"
] | null | null | null | fun/linear_stair.cpp | grenkin/inverse_heat | 730ee30ec00743b2e580ddf14fd9c7cd12140d68 | [
"MIT"
] | null | null | null | // Usage: linear_stair len num x1 x2 val1 val2
#include <iostream>
#include <cstdlib>
using namespace std;
int main (int argc, char **argv)
{
if (argc != 7) {
cerr << "Wrong arguments!" << endl;
exit(1);
}
double len = atof(argv[1]);
int num = atoi(argv[2]);
double x1 = atof(argv[... | 21.055556 | 74 | 0.457784 | grenkin |
77e7bf72bbf439ae5fb2db234ed49d83c86da700 | 1,979 | cpp | C++ | source/exhumed/src/mono.cpp | Talon1024/Raze | d92f56f36f246f12ea4012b3f9d5eb6c4abe0070 | [
"RSA-MD"
] | 2 | 2020-03-26T10:11:17.000Z | 2021-01-19T08:16:48.000Z | source/exhumed/src/mono.cpp | bisk89/Raze | 1a2663f7ac84d4e4f472e0796b937447ee6fab6b | [
"RSA-MD"
] | null | null | null | source/exhumed/src/mono.cpp | bisk89/Raze | 1a2663f7ac84d4e4f472e0796b937447ee6fab6b | [
"RSA-MD"
] | null | null | null | //-------------------------------------------------------------------------
/*
Copyright (C) 2010-2019 EDuke32 developers and contributors
Copyright (C) 2019 sirlemonhead, Nuke.YKT
This file is part of PCExhumed.
PCExhumed is free software; you can redistribute it and/or
modify it under the terms of the GNU General Pub... | 26.386667 | 79 | 0.640222 | Talon1024 |
77e90689e33a075b6dd95f723160fcb08914e2b3 | 8,900 | cc | C++ | simlib/src/delay.cc | MichalCab/IMS | d45dd8e7c0f794b4ee7f2ce1ccbc45edeaaa106e | [
"MIT"
] | null | null | null | simlib/src/delay.cc | MichalCab/IMS | d45dd8e7c0f794b4ee7f2ce1ccbc45edeaaa106e | [
"MIT"
] | null | null | null | simlib/src/delay.cc | MichalCab/IMS | d45dd8e7c0f794b4ee7f2ce1ccbc45edeaaa106e | [
"MIT"
] | null | null | null | /////////////////////////////////////////////////////////////////////////////
//! \file delay.cc Delay block implementation (experimental)
//
// Copyright (c) 1991-2004 Petr Peringer
//
// This library is licensed under GNU Library GPL. See the file COPYING.
//
//
// This module contains implementation of continuous... | 34.765625 | 81 | 0.53 | MichalCab |
77e946fb239702f1d5fa1c20424d3a6d33f5a8c5 | 502 | cpp | C++ | Deflow/Blocks/getvectorelementsblock.cpp | Lambipapp/Deflow | ee844990743458cbb48d13a1e6267ceae9fe809a | [
"Apache-2.0"
] | null | null | null | Deflow/Blocks/getvectorelementsblock.cpp | Lambipapp/Deflow | ee844990743458cbb48d13a1e6267ceae9fe809a | [
"Apache-2.0"
] | null | null | null | Deflow/Blocks/getvectorelementsblock.cpp | Lambipapp/Deflow | ee844990743458cbb48d13a1e6267ceae9fe809a | [
"Apache-2.0"
] | null | null | null | #include "getvectorelementsblock.h"
#include "ui_getvectorelementsblock.h"
GetVectorElementsBlock::GetVectorElementsBlock(QWidget *parent) :
BaseBlock(parent),
ui(new Ui::GetVectorElementsBlock)
{
ui->setupUi(this);
ui->label->setAttribute(Qt::WA_TransparentForMouseEvents);
initConnectors();
my... | 22.818182 | 65 | 0.752988 | Lambipapp |
77f00d392019a94e762dc604064bbeb804767070 | 1,203 | cpp | C++ | MedicalClinic/MedicalClinic/Main.cpp | KarolJaksik/ClinicCenter | 86e14c26a397a2f98c892bc536b4a3c5ad8e1143 | [
"MIT"
] | null | null | null | MedicalClinic/MedicalClinic/Main.cpp | KarolJaksik/ClinicCenter | 86e14c26a397a2f98c892bc536b4a3c5ad8e1143 | [
"MIT"
] | null | null | null | MedicalClinic/MedicalClinic/Main.cpp | KarolJaksik/ClinicCenter | 86e14c26a397a2f98c892bc536b4a3c5ad8e1143 | [
"MIT"
] | 1 | 2019-07-09T15:41:13.000Z | 2019-07-09T15:41:13.000Z | // MedicalClinic.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include "pch.h"
#include <iostream>
#include <fstream>
#include <List>
#include <cstdio>
#include "File.h";
#include "Doctor.h"
#include "Person.h"
#include "Patient.h"
#include "Adress.h"
#include "Admin.h"
#in... | 26.152174 | 135 | 0.688279 | KarolJaksik |
77f1f06de3a5271ff68816f157dab1ca2560f001 | 6,732 | cpp | C++ | comm/ent_init.cpp | if16888/ent | 56e85197f687f8ab7dcdd09640cd159806ffab6a | [
"Apache-2.0"
] | null | null | null | comm/ent_init.cpp | if16888/ent | 56e85197f687f8ab7dcdd09640cd159806ffab6a | [
"Apache-2.0"
] | null | null | null | comm/ent_init.cpp | if16888/ent | 56e85197f687f8ab7dcdd09640cd159806ffab6a | [
"Apache-2.0"
] | null | null | null | /*-----------------------------------------------------------------------------
* Copyright 2019 Fei Li<if16888@foxmail.com>
*
* 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... | 24.391304 | 81 | 0.465092 | if16888 |
77f280109a773dac9ac6d4502306833d266a71ef | 3,649 | cpp | C++ | src/stable/streamstack.cpp | zippy/libbu | 6c79102419f9e79d25751fefc155f746496f4b50 | [
"BSD-3-Clause"
] | 1 | 2020-02-20T23:15:54.000Z | 2020-02-20T23:15:54.000Z | src/stable/streamstack.cpp | zippy/libbu | 6c79102419f9e79d25751fefc155f746496f4b50 | [
"BSD-3-Clause"
] | null | null | null | src/stable/streamstack.cpp | zippy/libbu | 6c79102419f9e79d25751fefc155f746496f4b50 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (C) 2007-2013 Xagasoft, All rights reserved.
*
* This file is part of the libbu++ library and is released under the
* terms of the license contained in the file LICENSE.
*/
#include "bu/streamstack.h"
Bu::StreamStack::StreamStack()
{
}
Bu::StreamStack::StreamStack( Bu::Stream *pStream )
{
lFi... | 15.52766 | 69 | 0.626199 | zippy |
77f53df66835b14952f366e62575b7d7a48cc468 | 4,696 | cpp | C++ | tests/main_test.cpp | ShameekConyers/sic-optimization | f7a0e6c3759305e9c79f7ce0a8f174b1b3a14435 | [
"MIT"
] | null | null | null | tests/main_test.cpp | ShameekConyers/sic-optimization | f7a0e6c3759305e9c79f7ce0a8f174b1b3a14435 | [
"MIT"
] | null | null | null | tests/main_test.cpp | ShameekConyers/sic-optimization | f7a0e6c3759305e9c79f7ce0a8f174b1b3a14435 | [
"MIT"
] | null | null | null |
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <iostream>
#include <filesystem>
#include <string>
#include "../src/Env.hpp"
#include "../src/Utils.hpp"
#include "../src/AntSystem.hpp"
#include "../src/AntColonySystem.hpp"
#include "../src/HeuristicDataHandler.hpp"
#include "../src/NearestNeighbor.hpp"... | 22.68599 | 73 | 0.670571 | ShameekConyers |
af83a52effb5b75912ba955b6458ceaf86c1145f | 1,775 | cpp | C++ | compiler/as/sass2cubin/RulesModifier/RulesModifierDataMovement.cpp | moumou3/gdev | 29e7af10ff89291bdba310c8640805ef7db47d10 | [
"MIT"
] | 129 | 2015-02-20T16:33:33.000Z | 2022-03-24T20:17:26.000Z | compiler/as/sass2cubin/RulesModifier/RulesModifierDataMovement.cpp | moumou3/gdev | 29e7af10ff89291bdba310c8640805ef7db47d10 | [
"MIT"
] | 11 | 2015-07-27T07:47:02.000Z | 2022-01-15T16:39:39.000Z | compiler/as/sass2cubin/RulesModifier/RulesModifierDataMovement.cpp | moumou3/gdev | 29e7af10ff89291bdba310c8640805ef7db47d10 | [
"MIT"
] | 46 | 2015-01-07T03:42:21.000Z | 2022-03-24T20:17:52.000Z |
#include "../DataTypes.h"
#include "../helper/helperMixed.h"
#include "../stdafx.h"
#include "stdafx.h" //SMark
#include "RulesModifierDataMovement.h"
struct ModifierRuleLDType: ModifierRule
{
ModifierRuleLDType(int type): ModifierRule("", true, false, false)
{
hpBinaryStringToOpcode4("11111000... | 20.170455 | 70 | 0.611268 | moumou3 |
af896b1734356458b42549b61c86142f694eee4d | 4,931 | cpp | C++ | chipKIT/RTCC/RTCC.cpp | AJoao/embeddedlibs | aae4d5b19d58e60a5fdd6d77aa31c68932223425 | [
"BSD-2-Clause"
] | 2 | 2019-12-03T16:59:30.000Z | 2021-04-19T02:42:27.000Z | chipKIT/RTCC/RTCC.cpp | AJoao/embeddedlibs | aae4d5b19d58e60a5fdd6d77aa31c68932223425 | [
"BSD-2-Clause"
] | null | null | null | chipKIT/RTCC/RTCC.cpp | AJoao/embeddedlibs | aae4d5b19d58e60a5fdd6d77aa31c68932223425 | [
"BSD-2-Clause"
] | 2 | 2018-07-06T15:45:34.000Z | 2019-11-06T13:01:44.000Z | /*
All code is copyright 2011 Majenko Technologies.
The code is provided freely with no warranty either implicitly or explicity implied.
You may freely use the code for whatever you wish, but Majenko Technologies will not
be liable for any damage of any form howsoever caused by the use or misuse of this code.
*/
... | 17.930909 | 88 | 0.644697 | AJoao |
af89d650c165124cc9faee65ee04d3d2d0a10ea2 | 27 | cpp | C++ | Backgommon/CTweenManager.cpp | mrsaleh/Backgommon | 586eecceb9cec55e3c2fc4c41ff5f6bb29804294 | [
"MIT"
] | null | null | null | Backgommon/CTweenManager.cpp | mrsaleh/Backgommon | 586eecceb9cec55e3c2fc4c41ff5f6bb29804294 | [
"MIT"
] | null | null | null | Backgommon/CTweenManager.cpp | mrsaleh/Backgommon | 586eecceb9cec55e3c2fc4c41ff5f6bb29804294 | [
"MIT"
] | null | null | null | #include "CTweenManager.h"
| 13.5 | 26 | 0.777778 | mrsaleh |
af8d6bf8398333f2714e302317173104045a09e4 | 10,796 | cpp | C++ | src/Intake.cpp | ParadigmShift1259/FRC_ROBOT_2018 | 69dac5a0dbf8d1cb2a81f3c9ed7dd167ea71f1ed | [
"MIT"
] | 3 | 2018-02-02T01:50:01.000Z | 2019-07-29T05:45:10.000Z | src/Intake.cpp | ParadigmShift1259/FRC_ROBOT_2018 | 69dac5a0dbf8d1cb2a81f3c9ed7dd167ea71f1ed | [
"MIT"
] | 2 | 2018-01-19T01:20:17.000Z | 2018-01-27T00:37:44.000Z | src/Intake.cpp | ParadigmShift1259/FRC_ROBOT_2018 | 69dac5a0dbf8d1cb2a81f3c9ed7dd167ea71f1ed | [
"MIT"
] | null | null | null | /*
* Intake.cpp
*
* Created on: Jan 20, 2018
* Author: Jival
*/
#include <Intake.h>
#include "Const.h"
Intake::Intake(DriverStation *ds, OperatorInputs *inputs, Lifter *lifter, DrivePID *drivepid)
{
m_leftmotor = nullptr;
m_rightmotor = nullptr;
m_solenoid = nullptr;
m_ds = ds;
m_i... | 27.331646 | 160 | 0.667006 | ParadigmShift1259 |
af8d779276abdec85f91168f9484bf53b023e907 | 1,625 | cpp | C++ | vr-gl/src/renderer_cache.cpp | vladimir-voinea/vr | 0af18898ee512a0f94be7609e19753b92da03775 | [
"MIT"
] | null | null | null | vr-gl/src/renderer_cache.cpp | vladimir-voinea/vr | 0af18898ee512a0f94be7609e19753b92da03775 | [
"MIT"
] | null | null | null | vr-gl/src/renderer_cache.cpp | vladimir-voinea/vr | 0af18898ee512a0f94be7609e19753b92da03775 | [
"MIT"
] | null | null | null | #include "renderer_cache.hpp"
#include <geometry.hpp>
#include "opengl_shader.hpp"
#include <shader_material.hpp>
#include <texture.hpp>
#include <cube_texture.hpp>
namespace vr::gl
{
loaded_geometry* renderer_cache::get(const geometry* geometry)
{
auto it = m_loaded_geometry.find(geometry);
return it != m_load... | 29.545455 | 88 | 0.742154 | vladimir-voinea |
af95475d55b46e405207e691f92e01293508424d | 977 | cpp | C++ | code/src/utils/Log.cpp | reuqlauQemoN/streamopenacc | c8d74dcea6b28e1038d76ab27fca5c23e21ecead | [
"Apache-1.1"
] | 69 | 2015-07-02T05:25:29.000Z | 2022-01-10T08:54:46.000Z | code/src/utils/Log.cpp | xiaguoyang/streamDM-Cpp | 0304d03393f6987596aa445a0506631655297e79 | [
"Apache-1.1"
] | 3 | 2015-08-15T06:42:17.000Z | 2021-05-17T09:30:51.000Z | code/src/utils/Log.cpp | xiaguoyang/streamDM-Cpp | 0304d03393f6987596aa445a0506631655297e79 | [
"Apache-1.1"
] | 40 | 2015-07-02T06:03:26.000Z | 2021-12-16T02:07:29.000Z | /*
* Copyright (C) 2015 Holmes Team at HUAWEI Noah's Ark Lab.
*
* 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 requi... | 30.53125 | 76 | 0.708291 | reuqlauQemoN |
af95833a66f3e966e9e60beab80ff77817aebf16 | 3,302 | cpp | C++ | Source/OUUTests/Private/BlueprintRuntime/Core/OUULexicalOperatorLibrary.spec.cpp | CloobGD/OpenUnrealUtilities | a077b0d7347a0425606d91e96a6c9080469583a5 | [
"MIT"
] | 2 | 2021-11-03T07:45:41.000Z | 2021-12-20T17:02:36.000Z | Source/OUUTests/Private/BlueprintRuntime/Core/OUULexicalOperatorLibrary.spec.cpp | CloobGD/OpenUnrealUtilities | a077b0d7347a0425606d91e96a6c9080469583a5 | [
"MIT"
] | null | null | null | Source/OUUTests/Private/BlueprintRuntime/Core/OUULexicalOperatorLibrary.spec.cpp | CloobGD/OpenUnrealUtilities | a077b0d7347a0425606d91e96a6c9080469583a5 | [
"MIT"
] | null | null | null | // Copyright (c) 2021 Jonas Reich
#include "OUUTestUtilities.h"
#if WITH_AUTOMATION_WORKER
#include "Core/OUULexicalOperatorLibrary.h"
BEGIN_DEFINE_SPEC(FOUULexicalOperatorLibrarySpec, "OpenUnrealUtilities.BlueprintRuntime.Core.OUULexicalOperatorLibrary", DEFAULT_OUU_TEST_FLAGS)
template <typename TargetType>
usi... | 36.688889 | 153 | 0.678982 | CloobGD |
af97a3556e402f5115e8e8e5fbebe48396a03cb7 | 190 | hpp | C++ | src/Scene/AmbientLightEntity.hpp | Strife-AI/Strife.Engine | 6b83e762f28acb3f4440d5b7763beccfd08dfc8f | [
"NCSA"
] | 12 | 2020-12-27T22:13:58.000Z | 2021-03-14T09:03:02.000Z | src/Scene/AmbientLightEntity.hpp | Strife-AI/Strife.Engine | 6b83e762f28acb3f4440d5b7763beccfd08dfc8f | [
"NCSA"
] | 10 | 2021-01-14T15:14:31.000Z | 2021-05-24T22:01:09.000Z | src/Scene/AmbientLightEntity.hpp | Strife-AI/Strife.Engine | 6b83e762f28acb3f4440d5b7763beccfd08dfc8f | [
"NCSA"
] | null | null | null | #pragma once
#include "BaseEntity.hpp"
DEFINE_ENTITY(AmbientLightEntity, "ambient-light")
{
void OnAdded() override;
void OnDestroyed() override;
AmbientLight ambientLight;
}; | 17.272727 | 50 | 0.731579 | Strife-AI |
afa82004cda2817baddb87f979888c3a36496f3f | 1,664 | cpp | C++ | algorithm/sort/quick_sort/Solution.cpp | MyYaYa/leetcode | d779c215516ede594267b15abdfba5a47dc879dd | [
"Apache-2.0"
] | 1 | 2016-09-29T14:23:59.000Z | 2016-09-29T14:23:59.000Z | algorithm/sort/quick_sort/Solution.cpp | MyYaYa/leetcode | d779c215516ede594267b15abdfba5a47dc879dd | [
"Apache-2.0"
] | null | null | null | algorithm/sort/quick_sort/Solution.cpp | MyYaYa/leetcode | d779c215516ede594267b15abdfba5a47dc879dd | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
/**
* partition method 1
* from two boundaries to middle, swap the lesser and the larger.
*/
void quickSort(int arr[], int left, int right) {
int i = left, j = right;
int pivot = arr[left];
/* partition */
while (i < j) {
while (i < j && arr[j] >= piv... | 26.412698 | 65 | 0.485577 | MyYaYa |
afacd135f39c380ab0bb8d7968c9207e29fc5767 | 1,191 | cpp | C++ | test/src_test/vinecop_test.cpp | tvatter/vinecoplib | ae34d56408437e6eeacec40a51a8fa8dac378672 | [
"MIT"
] | 28 | 2017-05-05T13:27:58.000Z | 2021-07-15T23:40:01.000Z | test/src_test/vinecop_test.cpp | vinecopulib/vinecopulib | ae34d56408437e6eeacec40a51a8fa8dac378672 | [
"MIT"
] | 264 | 2017-03-28T10:07:13.000Z | 2022-01-23T10:04:39.000Z | test/src_test/vinecop_test.cpp | tvatter/vinecoplib | ae34d56408437e6eeacec40a51a8fa8dac378672 | [
"MIT"
] | 8 | 2017-04-24T13:54:47.000Z | 2020-10-22T16:56:17.000Z | // Copyright © 2016-2021 Thomas Nagler and Thibault Vatter
//
// This file is part of the vinecopulib library and licensed under the terms of
// the MIT license. For a copy, see the LICENSE file in the root directory of
// vinecopulib or https://vinecopulib.github.io/vinecopulib/.
#include "include/vinecop_test.hpp"
#... | 33.083333 | 80 | 0.690176 | tvatter |
afb2645ae2c4c31b3cb0f2580b21217279e8cdd4 | 2,209 | cpp | C++ | src/TreeOperators/TreeStructured/TreeSOP.cpp | roman-ellerbrock/QuTree | 28c5b4eddf20e41cd015a03d33f31693eff17839 | [
"MIT"
] | 6 | 2020-04-24T09:58:23.000Z | 2022-02-06T03:40:55.000Z | src/TreeOperators/TreeStructured/TreeSOP.cpp | roman-ellerbrock/QuTree | 28c5b4eddf20e41cd015a03d33f31693eff17839 | [
"MIT"
] | 1 | 2020-06-18T11:33:14.000Z | 2020-06-18T11:35:23.000Z | src/TreeOperators/TreeStructured/TreeSOP.cpp | roman-ellerbrock/QuTree | 28c5b4eddf20e41cd015a03d33f31693eff17839 | [
"MIT"
] | 1 | 2020-12-26T15:23:21.000Z | 2020-12-26T15:23:21.000Z | //
// Created by Roman Ellerbrock on 2019-07-13.
//
#include "TreeOperators/TreeStructured/TreeSOP.h"
void NodeOperator::Print(const vector<string>& names, size_t indent) const {
for (size_t i = 0; i < indent; ++i) {
cout << "\t";
}
if (names.empty()) {
cout << "(" << part() << ", " << mode() << ")";
} else {... | 24.544444 | 111 | 0.554097 | roman-ellerbrock |
afb3751d38cda6f69b55b6ad96bcdb3e9c4902d6 | 108,800 | cc | C++ | src/Analyze.cc | lagoproject/easy | f94becc63eaf6b822cd4ef721251f64b3dc7c323 | [
"BSD-3-Clause"
] | null | null | null | src/Analyze.cc | lagoproject/easy | f94becc63eaf6b822cd4ef721251f64b3dc7c323 | [
"BSD-3-Clause"
] | null | null | null | src/Analyze.cc | lagoproject/easy | f94becc63eaf6b822cd4ef721251f64b3dc7c323 | [
"BSD-3-Clause"
] | null | null | null | #include "Analyze.h"
#include "Constants.h"
#include "Trigger.h"
#include <iostream>
#include <fstream>
#include <cstdlib>
#include <iomanip>
#include <vector>
#include <string.h>
#include <map>
#include "TFile.h"
#include "TH2.h"
#include "TGraph.h"
#include "TGraphErrors.h"
#include "TEllipse.h"
#inclu... | 24.565365 | 319 | 0.546728 | lagoproject |
afb4a874f700e381b1f91920abe14870b5eae0ac | 133 | hpp | C++ | VulkanTest/include/Utils.hpp | Tackwin/BossRoom | ecad5853e591b9edc54e75448547e20e14964f72 | [
"MIT"
] | null | null | null | VulkanTest/include/Utils.hpp | Tackwin/BossRoom | ecad5853e591b9edc54e75448547e20e14964f72 | [
"MIT"
] | null | null | null | VulkanTest/include/Utils.hpp | Tackwin/BossRoom | ecad5853e591b9edc54e75448547e20e14964f72 | [
"MIT"
] | null | null | null | #pragma once
#include <vector>
#include <string>
struct Utils {
static std::vector<char> readBytes(const std::string& filename);
}; | 19 | 65 | 0.729323 | Tackwin |
afb69ac2811ba7fcc9e10713f18f6c279d5541e1 | 2,113 | cpp | C++ | dstSIMDFuncTable.cpp | hglm/DataSetTurbo | 37d901cbfbeeaa52230d34b20adaac27a2f3432b | [
"0BSD"
] | 1 | 2016-03-19T18:59:01.000Z | 2016-03-19T18:59:01.000Z | dstSIMDFuncTable.cpp | hglm/DataSetTurbo | 37d901cbfbeeaa52230d34b20adaac27a2f3432b | [
"0BSD"
] | 2 | 2015-04-01T21:14:37.000Z | 2015-04-01T21:19:08.000Z | dstSIMDFuncTable.cpp | hglm/DataSetTurbo | 37d901cbfbeeaa52230d34b20adaac27a2f3432b | [
"0BSD"
] | null | null | null | /*
Copyright (c) 2014 Harm Hanemaaijer <fgenfb@yahoo.com>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR D... | 37.732143 | 72 | 0.856129 | hglm |
afb897174cfe917b3feb3b4514f6780a4ad9f24b | 2,354 | cpp | C++ | protocol/command.cpp | wherewindblow/spaceless | 891ef66cf22d268dd742ea15b15f944a9ba8185f | [
"Apache-2.0"
] | 1 | 2020-12-10T12:08:35.000Z | 2020-12-10T12:08:35.000Z | protocol/command.cpp | wherewindblow/spaceless | 891ef66cf22d268dd742ea15b15f944a9ba8185f | [
"Apache-2.0"
] | null | null | null | protocol/command.cpp | wherewindblow/spaceless | 891ef66cf22d268dd742ea15b15f944a9ba8185f | [
"Apache-2.0"
] | null | null | null | /**
* command.cpp
* @author wherewindblow
* @date Jun 12, 2018
*/
#include "command.h"
#include <map>
#include <foundation/basics.h>
#include <foundation/exception.h>
#include "command.details"
#include "message.h"
namespace spaceless {
namespace protocol {
namespace details {
class CommandTableImpl
{
publi... | 17.567164 | 70 | 0.68904 | wherewindblow |
afbb7aa2cb0f845c3de71d196bbc8424457ed789 | 445 | cpp | C++ | src/L/L0563.cpp | wlhcode/lscct | 7fd112a9d1851ddcf41886d3084381a52e84a3ce | [
"MIT"
] | null | null | null | src/L/L0563.cpp | wlhcode/lscct | 7fd112a9d1851ddcf41886d3084381a52e84a3ce | [
"MIT"
] | null | null | null | src/L/L0563.cpp | wlhcode/lscct | 7fd112a9d1851ddcf41886d3084381a52e84a3ce | [
"MIT"
] | null | null | null | #include "bits/stdc++.h" // replace "" with <>
using namespace std;
int arr[505];
int main() {
ios::sync_with_stdio(false);
cin.tie(0);
for(int i=0;i<503;i++) arr[i]=0;
int x,y,q=INT_MIN;
cin>>x>>y;
for(int i=0;i<y;i++){
int a,b;
cin>>a>>b;
arr[a]+=b;
}
for(int i=... | 18.541667 | 46 | 0.433708 | wlhcode |
afbdc0fc7d084b72b0361236055a458a8fefc962 | 17,858 | cc | C++ | conex/cone_program.cc | frankpermenter/conex | 40f8838e6e618bf68df9aae80db7272ff95b7244 | [
"MIT"
] | 1 | 2021-10-04T20:41:20.000Z | 2021-10-04T20:41:20.000Z | conex/cone_program.cc | frankpermenter/conex | 40f8838e6e618bf68df9aae80db7272ff95b7244 | [
"MIT"
] | null | null | null | conex/cone_program.cc | frankpermenter/conex | 40f8838e6e618bf68df9aae80db7272ff95b7244 | [
"MIT"
] | null | null | null | #include "conex/cone_program.h"
#include "conex/kkt_solver.h"
#include <vector>
#include "conex/divergence.h"
#include "conex/newton_step.h"
#include "conex/quadratic_cost.h"
using Eigen::MatrixXd;
using Eigen::VectorXd;
namespace conex {
double CalcMinMu(double lambda_max, double, WeightedSlackEigenvalues* p) {
... | 31.22028 | 80 | 0.632434 | frankpermenter |
afc146897eaba5516d177033353b487b3f6b0e03 | 6,402 | hpp | C++ | include/ext/net/socket_stream.hpp | dmlys/netlib | 81627e5f9bea8f1225b1083efa66a8b5dcb9c514 | [
"BSL-1.0"
] | 1 | 2018-05-14T13:46:59.000Z | 2018-05-14T13:46:59.000Z | include/ext/net/socket_stream.hpp | dmlys/netlib | 81627e5f9bea8f1225b1083efa66a8b5dcb9c514 | [
"BSL-1.0"
] | null | null | null | include/ext/net/socket_stream.hpp | dmlys/netlib | 81627e5f9bea8f1225b1083efa66a8b5dcb9c514 | [
"BSL-1.0"
] | null | null | null | #pragma once
#include <string>
#include <ostream>
#include <istream>
#include <ext/net/socket_base.hpp>
#include <ext/net/socket_streambuf.hpp>
namespace ext::net
{
/// реализация iostream для сокета.
/// подробнее смотри socket_streambuf
class socket_stream : public std::iostream
{
socket_streambuf m_streambu... | 41.843137 | 138 | 0.710872 | dmlys |
afc1965ccde4342b9bd1ad9614289fdc2177cdcd | 2,577 | cpp | C++ | bench/adjacency_list/run_adj_list_bench_metall_numa.cpp | correaa/metall | f58728a5e963a6e77b68c1853d3d1ba1fe6a58b4 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | bench/adjacency_list/run_adj_list_bench_metall_numa.cpp | correaa/metall | f58728a5e963a6e77b68c1853d3d1ba1fe6a58b4 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | bench/adjacency_list/run_adj_list_bench_metall_numa.cpp | correaa/metall | f58728a5e963a6e77b68c1853d3d1ba1fe6a58b4 | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | null | null | null | // Copyright 2019 Lawrence Livermore National Security, LLC and other Metall Project Developers.
// See the top-level COPYRIGHT file for details.
//
// SPDX-License-Identifier: (Apache-2.0 OR MIT)
#include <iostream>
#include <string>
#include <vector>
#include <cstddef>
#include <metall/metall.hpp>
#include <metall/... | 35.30137 | 119 | 0.63019 | correaa |
afc710f8a30f19e31d7676a4d93e987159b56f7b | 604 | cpp | C++ | 41. First Missing Positive.cpp | corn1ng/LeetCode-Solution | e7b6f77dd407c9a5cc8be43dc9b0e5d9bc185b95 | [
"Apache-2.0"
] | 6 | 2017-11-18T02:16:35.000Z | 2017-12-17T06:30:40.000Z | 41. First Missing Positive.cpp | corn1ng/LeetCode-Solution | e7b6f77dd407c9a5cc8be43dc9b0e5d9bc185b95 | [
"Apache-2.0"
] | null | null | null | 41. First Missing Positive.cpp | corn1ng/LeetCode-Solution | e7b6f77dd407c9a5cc8be43dc9b0e5d9bc185b95 | [
"Apache-2.0"
] | null | null | null | class Solution {
public:
int firstMissingPositive(vector<int>& nums) {
if(nums.size() == 0)
{ int a =1;
return a;
}
int length =nums.size();
int res=0;
for(int i=0;i<length;i++)
{ //不加nums[i]<length 时会越界。
while(nums[i]>0&&nums[i]<l... | 22.37037 | 70 | 0.392384 | corn1ng |
afc720093423dd4a174170d7af6bfacba5f0b7f5 | 515 | hpp | C++ | Libraries/Geometry/ConvexMeshShape.hpp | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | 3 | 2022-02-11T10:34:33.000Z | 2022-02-24T17:44:17.000Z | Libraries/Geometry/ConvexMeshShape.hpp | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | null | null | null | Libraries/Geometry/ConvexMeshShape.hpp | RyanTylerRae/WelderEngineRevamp | 3efdad59dd1821ddb1c09b59520e8e2d7023bb10 | [
"MIT"
] | null | null | null | // MIT Licensed (see LICENSE.md).
#pragma once
namespace Zero
{
struct ConvexMeshShape
{
ConvexMeshShape();
ConvexMeshShape(const Intersection::SupportShape& support);
void Support(Vec3Param direction, Vec3Ptr support) const;
void GetCenter(Vec3Ref center) const;
Obb Transform(Mat4Param transformation) co... | 21.458333 | 70 | 0.765049 | RyanTylerRae |
afd2dd7002de8092230dc764495018cb327f9478 | 29,335 | cxx | C++ | src-plugins/libs/vtkInria/itkAddOn/IO/itkGDCMImporter.cxx | ocommowi/medInria-public | 9074e40c886881666e7a52c53309d8d28e35c0e6 | [
"BSD-4-Clause"
] | null | null | null | src-plugins/libs/vtkInria/itkAddOn/IO/itkGDCMImporter.cxx | ocommowi/medInria-public | 9074e40c886881666e7a52c53309d8d28e35c0e6 | [
"BSD-4-Clause"
] | null | null | null | src-plugins/libs/vtkInria/itkAddOn/IO/itkGDCMImporter.cxx | ocommowi/medInria-public | 9074e40c886881666e7a52c53309d8d28e35c0e6 | [
"BSD-4-Clause"
] | null | null | null | /*=========================================================================
medInria
Copyright (c) INRIA 2013. All rights reserved.
See LICENSE.txt for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.
====... | 27.753075 | 160 | 0.598432 | ocommowi |
afd7b4ed260e09462a4dbab51c62215c2046d985 | 20,800 | cpp | C++ | SimSpark/spark/carbon/sparkpropertywidget.cpp | IllyasvielEin/Robocup3dInstaller | 12e91d9372dd08a92feebf98e916c98bc2242ff4 | [
"MIT"
] | null | null | null | SimSpark/spark/carbon/sparkpropertywidget.cpp | IllyasvielEin/Robocup3dInstaller | 12e91d9372dd08a92feebf98e916c98bc2242ff4 | [
"MIT"
] | null | null | null | SimSpark/spark/carbon/sparkpropertywidget.cpp | IllyasvielEin/Robocup3dInstaller | 12e91d9372dd08a92feebf98e916c98bc2242ff4 | [
"MIT"
] | null | null | null | /* -*- mode: c++; c-basic-offset: 4; indent-tabs-mode: nil -*-
This file is part of Carbon
Author: Patrick Geib
$Id$
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; version 2 of th... | 34.380165 | 165 | 0.572837 | IllyasvielEin |
afe06e1d127e2bf4e4121dd58ae37303bb7a5961 | 48,528 | cpp | C++ | emilibase.cpp | ramirongo/EMILI | 6eb4f4b8fd3c9796ed1ce384d9abe380570299af | [
"BSD-2-Clause"
] | 2 | 2020-06-02T20:19:55.000Z | 2021-03-17T14:53:45.000Z | emilibase.cpp | ramirongo/EMILI | 6eb4f4b8fd3c9796ed1ce384d9abe380570299af | [
"BSD-2-Clause"
] | 1 | 2021-11-05T12:48:39.000Z | 2021-11-08T16:14:40.000Z | emilibase.cpp | ramirongo/EMILI | 6eb4f4b8fd3c9796ed1ce384d9abe380570299af | [
"BSD-2-Clause"
] | null | null | null | //
// Created by Federico Pagnozzi on 28/11/14.
// Copyright (c) 2014 Federico Pagnozzi. All rights reserved.
// This file is distributed under the BSD 2-Clause License. See LICENSE.TXT
// for details.
#include "emilibase.h"
#include <cstdlib>
#include <cstdio>
#include <signal.h>
#include <ctime>
#include <sstrea... | 25.40733 | 158 | 0.576183 | ramirongo |
afe94cb4f468d5ffe6bf1be3694336d583499f46 | 656 | hpp | C++ | plugin/d3d9/include/mh/renderer_d3d9.hpp | overworks/MhGameLib | 87973e29633ed09a3fa51eb27ea7fc8af5e9d71b | [
"MIT"
] | null | null | null | plugin/d3d9/include/mh/renderer_d3d9.hpp | overworks/MhGameLib | 87973e29633ed09a3fa51eb27ea7fc8af5e9d71b | [
"MIT"
] | null | null | null | plugin/d3d9/include/mh/renderer_d3d9.hpp | overworks/MhGameLib | 87973e29633ed09a3fa51eb27ea7fc8af5e9d71b | [
"MIT"
] | null | null | null | #ifndef _MH_RENDERER_D3D9_HPP_
#define _MH_RENDERER_D3D9_HPP_
#include <d3d9.h>
#include <mh/renderer.hpp>
#ifndef CHECK_HR
#ifdef _MH_DEBUG_
#define CHECK_HR(x)\
{\
HRESULT _hr = (x);\
if (FAILED(_hr))\
DXTraceW(__FILE__, (DWORD)__LINE__, _hr, L#x, TRUE); \
}
#else
#define CHECK_HR(x) (x)
#endif // _MH_DEBU... | 16.820513 | 57 | 0.707317 | overworks |
aff0640d90135b488834293022755aa7e912baee | 1,859 | cpp | C++ | src/ArgParser.cpp | rock-cpp/new_rock_replay | bc24c181b589533037e626b9361597bf1bf1170f | [
"BSD-3-Clause"
] | null | null | null | src/ArgParser.cpp | rock-cpp/new_rock_replay | bc24c181b589533037e626b9361597bf1bf1170f | [
"BSD-3-Clause"
] | null | null | null | src/ArgParser.cpp | rock-cpp/new_rock_replay | bc24c181b589533037e626b9361597bf1bf1170f | [
"BSD-3-Clause"
] | null | null | null | #include "ArgParser.hpp"
#include "LogFileHelper.hpp"
#include <boost/algorithm/string.hpp>
#include <iostream>
bool ArgParser::parseArguments(int argc, char* argv[])
{
using namespace boost::program_options;
options_description desc(
"Usage: rock-replay2 {logfile|*}.log or folder.\nLogging can be c... | 33.8 | 133 | 0.628295 | rock-cpp |
aff3743ffdcaa836419bf535255315f8c5117835 | 1,475 | cpp | C++ | multiwar/src/server_node.cpp | hukcc/autocar-test-ros | 95697d7465b3cfcb987caf83d4e7c001d7c18335 | [
"BSD-2-Clause"
] | null | null | null | multiwar/src/server_node.cpp | hukcc/autocar-test-ros | 95697d7465b3cfcb987caf83d4e7c001d7c18335 | [
"BSD-2-Clause"
] | null | null | null | multiwar/src/server_node.cpp | hukcc/autocar-test-ros | 95697d7465b3cfcb987caf83d4e7c001d7c18335 | [
"BSD-2-Clause"
] | null | null | null | #include <ros/ros.h>
#include <boost/asio.hpp>
#include <boost/array.hpp>
#include <boost/bind.hpp>
#include <thread>
#include <iostream>
#include "udp_broadcast.h"
#include <multiwar/share_info.h>
using namespace std;
multiwar::share_info field_info;
void battle_callback(const multiwar::share_info& info)
{
;
}... | 23.790323 | 92 | 0.658305 | hukcc |
affae751d4d01283c2a9d72b60a499148024bdc4 | 747 | cpp | C++ | CHAPTER 10/C10E11.cpp | lrpinnto/stroustrup-exercises | a471a0d7b49b51b7c26e005ff9e66f3f6db199dd | [
"MIT"
] | null | null | null | CHAPTER 10/C10E11.cpp | lrpinnto/stroustrup-exercises | a471a0d7b49b51b7c26e005ff9e66f3f6db199dd | [
"MIT"
] | null | null | null | CHAPTER 10/C10E11.cpp | lrpinnto/stroustrup-exercises | a471a0d7b49b51b7c26e005ff9e66f3f6db199dd | [
"MIT"
] | null | null | null | #include "../stroustrup/std_lib_facilities.h"
//CHAP 10 EX 11
int main()
try {
cout<<"Please enter input filename: ";
string iname;
cin>>iname;
ifstream ifs {iname};
if (!ifs) error("can't open input file",iname);
ifs.exceptions(ifs.exceptions()|ios_base::badbit);
vector<int>numbers;
... | 20.189189 | 82 | 0.548862 | lrpinnto |
9b88142b9ed62c9925a3df4cf4b88fa70e2a1eb9 | 4,500 | hpp | C++ | include/melon/data_structures/fast_binary_heap.hpp | fhamonic/melon | 946cc9d92f994d649cc77b34e0dd0eac4cd4ad50 | [
"BSL-1.0"
] | null | null | null | include/melon/data_structures/fast_binary_heap.hpp | fhamonic/melon | 946cc9d92f994d649cc77b34e0dd0eac4cd4ad50 | [
"BSL-1.0"
] | null | null | null | include/melon/data_structures/fast_binary_heap.hpp | fhamonic/melon | 946cc9d92f994d649cc77b34e0dd0eac4cd4ad50 | [
"BSL-1.0"
] | null | null | null | #ifndef MELON_FAST_BINARY_HEAP_HPP
#define MELON_FAST_BINARY_HEAP_HPP
#include <algorithm>
#include <cassert>
#include <functional>
#include <ranges>
#include <utility>
#include <vector>
namespace fhamonic {
namespace melon {
template <typename ND, typename PR, typename CMP = std::less<PR>>
class FastBinaryHeap {
pu... | 32.142857 | 79 | 0.600222 | fhamonic |
9b8ccf3c42f3c9ee56fd9d803277423fbedaeb8d | 524 | cpp | C++ | examples/project_setup_with_hal/project_setup_with_hal.cpp | ChrisIdema/STM32TimerArray | 51a655b865e789fc7e240a5a43706bcbe5493675 | [
"BSD-3-Clause"
] | null | null | null | examples/project_setup_with_hal/project_setup_with_hal.cpp | ChrisIdema/STM32TimerArray | 51a655b865e789fc7e240a5a43706bcbe5493675 | [
"BSD-3-Clause"
] | 2 | 2020-08-24T13:32:16.000Z | 2020-09-24T14:12:00.000Z | examples/project_setup_with_hal/project_setup_with_hal.cpp | zomborid/STM32TimerArray | 15d209d1dbf3645d481684e82fc9da71939a1e09 | [
"BSD-3-Clause"
] | 2 | 2020-09-09T15:08:51.000Z | 2020-10-22T03:31:51.000Z | #include "app.h"
#include "STM32TimerArray.hpp"
#include "stm32_hal.h"
// if this compiles and the LED blinks, the library is included successfully
const char* version_string = STM32TimerArray::version;
void app_start(){
// implementation here ...
// HAL blink example (if LD2 is defined as the user... | 27.578947 | 90 | 0.696565 | ChrisIdema |
9b8eb5b7dbd30aaa771954c856440cedc2244c3e | 3,901 | cpp | C++ | engine/source/private/engine/mesh.cpp | kociap/GameEngine | ff5f1ca589df5b44887c3383919a73bbe0ab05a0 | [
"MIT"
] | 12 | 2019-01-02T11:13:19.000Z | 2020-06-02T10:58:20.000Z | engine/source/private/engine/mesh.cpp | kociap/GameEngine | ff5f1ca589df5b44887c3383919a73bbe0ab05a0 | [
"MIT"
] | null | null | null | engine/source/private/engine/mesh.cpp | kociap/GameEngine | ff5f1ca589df5b44887c3383919a73bbe0ab05a0 | [
"MIT"
] | 1 | 2020-04-03T11:54:53.000Z | 2020-04-03T11:54:53.000Z | #include <engine/mesh.hpp>
namespace anton_engine {
Mesh generate_plane() {
// clang-format off
return Mesh({atl::variadic_construct,
Vertex({-1, 1, 0}, {0, 0, 1}, {1, 0, 0}, {0, 1, 0}, {0, 1}), Vertex({-1, -1, 0}, {0, 0, 1}, {1, 0, 0}, {0, 1, 0}, {0, 0}),
Ve... | 84.804348 | 155 | 0.306588 | kociap |
9b8ee3ad67152c0efb186bf41564429d29b934c0 | 2,587 | cpp | C++ | Source/DiabloUI/mainmenu.cpp | pionere/devilutionX | 63f8deb298a00b040010fc299c0568eae19522e1 | [
"Unlicense"
] | 2 | 2021-02-02T19:27:20.000Z | 2022-03-07T16:50:55.000Z | Source/DiabloUI/mainmenu.cpp | pionere/devilutionX | 63f8deb298a00b040010fc299c0568eae19522e1 | [
"Unlicense"
] | null | null | null | Source/DiabloUI/mainmenu.cpp | pionere/devilutionX | 63f8deb298a00b040010fc299c0568eae19522e1 | [
"Unlicense"
] | 1 | 2022-03-07T16:51:16.000Z | 2022-03-07T16:51:16.000Z |
#include "utils/display.h"
#include "DiabloUI/diabloui.h"
#include "DiabloUI/selok.h"
DEVILUTION_BEGIN_NAMESPACE
static const int ATTRACT_TIMEOUT = 30; //seconds
static Uint32 guAttractTc;
static int _gnMainMenuResult;
static void UiMainMenuSelect(unsigned index)
{
_gnMainMenuResult = gUIListItems... | 25.116505 | 101 | 0.72903 | pionere |
9b904ea3eca25c3f9d714f079c01833a2b381d47 | 2,885 | cpp | C++ | src/utils/MatrixUtils.cpp | ldXiao/polyfem | d4103af16979ff67d461a9ebe46a14bbc4dc8c7c | [
"MIT"
] | null | null | null | src/utils/MatrixUtils.cpp | ldXiao/polyfem | d4103af16979ff67d461a9ebe46a14bbc4dc8c7c | [
"MIT"
] | null | null | null | src/utils/MatrixUtils.cpp | ldXiao/polyfem | d4103af16979ff67d461a9ebe46a14bbc4dc8c7c | [
"MIT"
] | null | null | null | #include <polyfem/MatrixUtils.hpp>
#include <polyfem/Logger.hpp>
#include <igl/list_to_matrix.h>
#include <MatOp/SparseSymMatProd.h>
#include <MatOp/SparseSymShiftSolve.h>
#include <SymEigsSolver.h>
#include <SymEigsShiftSolver.h>
#include <iostream>
#include <fstream>
#include <vector>
void polyfem::show_matrix_s... | 27.47619 | 121 | 0.654073 | ldXiao |
9b9668a6ab7c980f65cb2bb2238ad98861ba2b73 | 890 | cpp | C++ | PAT/B/1043.cpp | zhi2xin1/pat-ans | 740ee6b4d5a8c354bdff012750a615c738d5013e | [
"MIT"
] | null | null | null | PAT/B/1043.cpp | zhi2xin1/pat-ans | 740ee6b4d5a8c354bdff012750a615c738d5013e | [
"MIT"
] | null | null | null | PAT/B/1043.cpp | zhi2xin1/pat-ans | 740ee6b4d5a8c354bdff012750a615c738d5013e | [
"MIT"
] | null | null | null | #include <cstdio>
int main() {
int PATest[6]={0};
bool inputEOF=true;
while(inputEOF){
switch(getchar()){
case 'P':++PATest[0];break;
case 'A':++PATest[1];break;
case 'T':++PATest[2];break;
case 'e':++PATest[3];break;
case 's':++PATest[4];... | 23.421053 | 39 | 0.408989 | zhi2xin1 |
9b983e701680068ae60243589a552481c23010a1 | 1,094 | cpp | C++ | TheCppStandardLibrary/Contents/Ch05_GeneralUtilitiesLibrary/Ch05_04_SynthesizedMoveConstructor_noexcept_true.cpp | ltimaginea/The-Cpp-Standard-Library | 20cc34ec484325d8e4ae28625f9a7b6c09a49095 | [
"MIT"
] | 1 | 2022-03-22T08:02:37.000Z | 2022-03-22T08:02:37.000Z | CppPrimer/Content/Ch13_CopyControl/Ch13_01_default_delete/Ch13_01_SynthesizedMoveConstructor_noexcept_true.cpp | ltimaginea/Cpp-Primer | a894d90cee2128a992c589c5c855457a6b5d71de | [
"MIT"
] | null | null | null | CppPrimer/Content/Ch13_CopyControl/Ch13_01_default_delete/Ch13_01_SynthesizedMoveConstructor_noexcept_true.cpp | ltimaginea/Cpp-Primer | a894d90cee2128a992c589c5c855457a6b5d71de | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <string>
#include <memory>
#include <type_traits>
class T
{
public:
T(std::string str = std::string()) :up_(std::make_unique<std::string>(str)) { }
T(const T& rup) :up_(std::make_unique<std::string>(*rup.up_)) { }
T(T&&) = default; // 成员 up_ 是 unique_ptr 类型,其移动构造函数是... | 28.051282 | 110 | 0.665448 | ltimaginea |
9b9afe6f7460940cfc3d6111032b082e41e0d979 | 3,792 | cpp | C++ | ClientSample/src/clientapp.cpp | wunderfeyd/chipdna-winlin-client-cpp | 6db0060c88c364426b8faa9b34f6082c47b34eef | [
"MIT"
] | 1 | 2019-09-07T07:06:24.000Z | 2019-09-07T07:06:24.000Z | ClientSample/src/clientapp.cpp | wunderfeyd/chipdna-winlin-client-cpp | 6db0060c88c364426b8faa9b34f6082c47b34eef | [
"MIT"
] | 4 | 2020-01-30T06:09:09.000Z | 2022-02-08T10:44:17.000Z | ClientSample/src/clientapp.cpp | wunderfeyd/chipdna-winlin-client-cpp | 6db0060c88c364426b8faa9b34f6082c47b34eef | [
"MIT"
] | 1 | 2021-12-22T10:22:40.000Z | 2021-12-22T10:22:40.000Z | #include <iostream>
#include <stdio.h>
#include <string>
#include <sstream>
#include "client.h"
#include <stdlib.h>
#include "pugixml.hpp"
#include "configparser.h"
#ifdef WIN32
#include <direct.h>
#define GetCurrentDir _getcwd
#else
#include <unistd.h>
#include <sys/stat.h>
#define GetCurrentDir getcwd
#endif
static... | 27.085714 | 157 | 0.626055 | wunderfeyd |
9b9fc95077b126c8ccbe8e6f180a39bbd9504471 | 2,541 | hpp | C++ | lib/common/lin/include/lin/core/types/base.hpp | shihaocao/rfid | 57cdeea427f4c2c07604a63b0351793d759e8c5b | [
"MIT"
] | null | null | null | lib/common/lin/include/lin/core/types/base.hpp | shihaocao/rfid | 57cdeea427f4c2c07604a63b0351793d759e8c5b | [
"MIT"
] | null | null | null | lib/common/lin/include/lin/core/types/base.hpp | shihaocao/rfid | 57cdeea427f4c2c07604a63b0351793d759e8c5b | [
"MIT"
] | null | null | null | /** @file lin/core/types/base.hpp
* @author Kyle Krol
* Defines the base type which is a tensor read-write interface. */
#ifndef LIN_CORE_TYPES_BASE_HPP_
#define LIN_CORE_TYPES_BASE_HPP_
#include "../config.hpp"
#include "../traits.hpp"
#include "stream.hpp"
#include <initializer_list>
#include <type_traits>
#i... | 32.164557 | 78 | 0.705628 | shihaocao |
9ba0abbd0561c284835c6a354a759c83be602b97 | 1,541 | cpp | C++ | src/node_mapbox_gl_native.cpp | cutting-room-floor/node-mapbox-gl-native | a4c3a043604de518bbdd289871aed1df862a77cf | [
"BSD-3-Clause"
] | 1 | 2019-11-25T11:51:33.000Z | 2019-11-25T11:51:33.000Z | src/node_mapbox_gl_native.cpp | cutting-room-floor/node-mapbox-gl-native | a4c3a043604de518bbdd289871aed1df862a77cf | [
"BSD-3-Clause"
] | 1 | 2018-03-26T06:48:05.000Z | 2018-03-26T06:48:05.000Z | src/node_mapbox_gl_native.cpp | cutting-room-floor/node-mapbox-gl-native | a4c3a043604de518bbdd289871aed1df862a77cf | [
"BSD-3-Clause"
] | null | null | null | #pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-parameter"
#pragma GCC diagnostic ignored "-Wshadow"
#include <node.h>
#include <nan.h>
#pragma GCC diagnostic pop
#include "node_map.hpp"
#include "node_log.hpp"
#include "node_request.hpp"
void RegisterModule(v8::Handle<v8::Object> exports) {
... | 41.648649 | 94 | 0.734588 | cutting-room-floor |
9ba6c47589d6511ae8edd823bd7c8aa49e64812b | 373 | hpp | C++ | dev/test/gen/small_class.hpp | sostheim/home | 0ee3d94d8e473d78369586354dac0337f0ce88c4 | [
"Apache-2.0"
] | null | null | null | dev/test/gen/small_class.hpp | sostheim/home | 0ee3d94d8e473d78369586354dac0337f0ce88c4 | [
"Apache-2.0"
] | null | null | null | dev/test/gen/small_class.hpp | sostheim/home | 0ee3d94d8e473d78369586354dac0337f0ce88c4 | [
"Apache-2.0"
] | null | null | null | #ifndef SMALL_CLASS_DOT_H
#define SMALL_CLASS_DOT_H
#include <string>
#include "enum_mapper.hpp"
class small_class : public enum_mapper< int >
{
static small_class & instance();
private:
small_class( );
small_class( const small_class &val );
small_class &operator=( const small_class &val );
void add... | 17.761905 | 52 | 0.713137 | sostheim |
9bac3f470af761d059b3cacd1193e6e9b64c9441 | 1,202 | cpp | C++ | Pimpl/src/pimpl.cpp | kakaly/RAII | c446779336db8a9a96def5602b8f9974c6616b69 | [
"MIT"
] | 2 | 2021-01-28T06:05:06.000Z | 2021-12-12T15:17:20.000Z | Pimpl/src/pimpl.cpp | kakaly/cplusplusidioms | c446779336db8a9a96def5602b8f9974c6616b69 | [
"MIT"
] | null | null | null | Pimpl/src/pimpl.cpp | kakaly/cplusplusidioms | c446779336db8a9a96def5602b8f9974c6616b69 | [
"MIT"
] | null | null | null | #include "pimpl.h"
#include <iostream>
#include <memory>
using namespace std;
class MyClassPimpl
{
public:
MyClassPimpl()
{
cout << "MyClassPimpl constructor called\n\n";
}
~MyClassPimpl()
{
cout << "MyClassPimpl destructor called\n\n";
}
void doSomething(int a)
{
cout << "MyClassPimpl... | 17.676471 | 62 | 0.665557 | kakaly |
9bb118d6d6ad66b523670e627b7fe0646732a386 | 774 | cpp | C++ | Engine/Tools/GfMaterialCompiler/Common/GfMaterialCompiler.cpp | alapontgr/Engine | 6be363d79b9fdaee813b196db12ae296a6ca8089 | [
"MIT"
] | null | null | null | Engine/Tools/GfMaterialCompiler/Common/GfMaterialCompiler.cpp | alapontgr/Engine | 6be363d79b9fdaee813b196db12ae296a6ca8089 | [
"MIT"
] | null | null | null | Engine/Tools/GfMaterialCompiler/Common/GfMaterialCompiler.cpp | alapontgr/Engine | 6be363d79b9fdaee813b196db12ae296a6ca8089 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////////////////
//
// Author: Sergio Alapont Granero (seralgrainf@gmail.com)
// Date: 2020/04/13
// File: GfMaterialCompiler.cpp
//
// Copyright (c) 2018 (See README.md)
//
////////////////////////////////////////////////////////////////////////////////... | 24.1875 | 80 | 0.334625 | alapontgr |
9bb2befe05e819f91e111fb6c72543bdc05287e8 | 750 | cpp | C++ | src/stat.cpp | pinniini/harbour-sailTrivia | ea8e2a93e86fd9f9997de6df5906cf6503cd0d6a | [
"MIT"
] | 2 | 2018-12-11T19:59:01.000Z | 2022-03-11T07:04:02.000Z | src/stat.cpp | pinniini/harbour-sailTrivia | ea8e2a93e86fd9f9997de6df5906cf6503cd0d6a | [
"MIT"
] | 13 | 2018-06-11T10:41:52.000Z | 2019-09-25T17:06:19.000Z | src/stat.cpp | pinniini/harbour-sailTrivia | ea8e2a93e86fd9f9997de6df5906cf6503cd0d6a | [
"MIT"
] | null | null | null | #include "stat.h"
Stat::Stat(QObject *parent) : QObject(parent)
{
}
Stat::Stat(QString key, double numericValue, QString textValue)
: _key(key), _numericValue(numericValue), _textValue(textValue)
{
}
Stat::~Stat()
{
}
QString Stat::key() const
{
return _key;
}
double Stat::numericValue() const
{
ret... | 14.705882 | 67 | 0.66 | pinniini |
9bb3044a629f3408ac2d85b9c1effb7d5fa91fa3 | 1,327 | hpp | C++ | include/asmith/genetic-algorithm/base_genetic_algorithm.hpp | asmith-git/genetic-algorithm | 90f66b562233b5a4ff687ff905db46575a2456b5 | [
"Apache-2.0"
] | null | null | null | include/asmith/genetic-algorithm/base_genetic_algorithm.hpp | asmith-git/genetic-algorithm | 90f66b562233b5a4ff687ff905db46575a2456b5 | [
"Apache-2.0"
] | null | null | null | include/asmith/genetic-algorithm/base_genetic_algorithm.hpp | asmith-git/genetic-algorithm | 90f66b562233b5a4ff687ff905db46575a2456b5 | [
"Apache-2.0"
] | null | null | null | // Copyright 2017 Adam Smith
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writin... | 32.365854 | 75 | 0.746797 | asmith-git |
9bbbf7d0475405a064d5fbd7d9202397d8f5cfde | 156 | hpp | C++ | src/collectors/all.hpp | RichardAH/valmond | 66965947fb5c7835af687ee2aa1fc00fc7f32eac | [
"MIT"
] | 4 | 2020-01-15T22:36:01.000Z | 2020-01-20T02:38:57.000Z | src/collectors/all.hpp | RichardAH/valmond | 66965947fb5c7835af687ee2aa1fc00fc7f32eac | [
"MIT"
] | 1 | 2021-01-04T19:24:42.000Z | 2021-07-01T20:31:01.000Z | src/collectors/all.hpp | RichardAH/valmond | 66965947fb5c7835af687ee2aa1fc00fc7f32eac | [
"MIT"
] | 3 | 2020-02-10T16:52:00.000Z | 2021-07-01T13:52:35.000Z | #pragma once
#include <json/json.h>
namespace collectors {
namespace all {
Json::Value
collectAllData();
} // namespace all
} // namespace collectors
| 12 | 26 | 0.711538 | RichardAH |
9bbff665734d71236fee85d956509d27aeca7898 | 1,143 | cpp | C++ | source/ext/exmem.cpp | basic-1/basic-1 | ddb253e0c98970042ba5502f745c8289bfc07398 | [
"MIT"
] | null | null | null | source/ext/exmem.cpp | basic-1/basic-1 | ddb253e0c98970042ba5502f745c8289bfc07398 | [
"MIT"
] | null | null | null | source/ext/exmem.cpp | basic-1/basic-1 | ddb253e0c98970042ba5502f745c8289bfc07398 | [
"MIT"
] | 1 | 2020-08-29T17:50:09.000Z | 2020-08-29T17:50:09.000Z | /*
BASIC1 interpreter
Copyright (c) 2020 Nikolay Pletnev
MIT license
exmem.cpp: memory management functions for interpreter (using C++ new and
delete operators)
*/
#include <cstdint>
#include <cstdlib>
extern "C"
{
#include "b1itypes.h"
#include "b1err.h"
}
extern "C" B1_T_ERROR b1_ex_mem... | 18.435484 | 145 | 0.690289 | basic-1 |
9bc0315318f511709e6be11dbfdf7ef5372fbd78 | 1,937 | hpp | C++ | src/object/scene/scene.hpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/object/scene/scene.hpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | src/object/scene/scene.hpp | degarashi/revenant | 9e671320a5c8790f6bdd1b14934f81c37819f7b3 | [
"MIT"
] | null | null | null | #pragma once
#include "../lua.hpp"
#include "base.hpp"
#include "if.hpp"
namespace rev {
//! 1シーンにつきUpdateTreeとDrawTreeを1つずつ用意
template <class T>
class Scene : public ObjectT_Lua<T, IScene> {
private:
using base = ObjectT_Lua<T, IScene>;
SceneBase _sbase;
public:
Scene(const HGroup& hUpd=HGroup(), cons... | 25.486842 | 70 | 0.640165 | degarashi |
9bc33838fbf177295ff3f96c36dd26ab29529bce | 4,213 | cpp | C++ | FECore/writeplot.cpp | wzaylor/FEBio | 5444c06473dd66dc0bfdf6e3b2c79d3c0cd0b7a6 | [
"MIT"
] | null | null | null | FECore/writeplot.cpp | wzaylor/FEBio | 5444c06473dd66dc0bfdf6e3b2c79d3c0cd0b7a6 | [
"MIT"
] | null | null | null | FECore/writeplot.cpp | wzaylor/FEBio | 5444c06473dd66dc0bfdf6e3b2c79d3c0cd0b7a6 | [
"MIT"
] | null | null | null | /*This file is part of the FEBio source code and is licensed under the MIT license
listed below.
See Copyright-FEBio.txt for details.
Copyright (c) 2020 University of Utah, The Trustees of Columbia University in
the City of New York, and others.
Permission is hereby granted, free of charge, to any person obtaining ... | 28.086667 | 139 | 0.631379 | wzaylor |
9bc3af66a3fff6ed0993801643f6243a57e19919 | 588 | hpp | C++ | TabGraph/include/Renderer/SceneRenderer.hpp | Gpinchon/TabGraph | 29eae2d9982b6ce3e4ff43c707c87c2f57ab39bb | [
"Apache-2.0"
] | 1 | 2020-08-28T09:35:18.000Z | 2020-08-28T09:35:18.000Z | TabGraph/include/Renderer/SceneRenderer.hpp | Gpinchon/TabGraph | 29eae2d9982b6ce3e4ff43c707c87c2f57ab39bb | [
"Apache-2.0"
] | null | null | null | TabGraph/include/Renderer/SceneRenderer.hpp | Gpinchon/TabGraph | 29eae2d9982b6ce3e4ff43c707c87c2f57ab39bb | [
"Apache-2.0"
] | 1 | 2020-10-08T11:21:13.000Z | 2020-10-08T11:21:13.000Z | /*
* @Author: gpinchon
* @Date: 2021-03-25 11:04:30
* @Last Modified by: gpinchon
* @Last Modified time: 2021-03-28 07:55:36
*/
#pragma once
#include <glm/fwd.hpp>
#include <memory>
class Scene;
class LightProbe;
namespace Renderer {
struct Options;
void OnFrameBegin(std::shared_ptr<Scene> scene,... | 26.727273 | 96 | 0.710884 | Gpinchon |
9bc5c7103bf748da57834af0a1c8972ba9e1f0ee | 407 | hpp | C++ | vendor/src/comment_element.hpp | crails-framework/comet.cpp | c43b5e72a065b7a2e34f723fcca11d9a673c564e | [
"BSD-3-Clause"
] | null | null | null | vendor/src/comment_element.hpp | crails-framework/comet.cpp | c43b5e72a065b7a2e34f723fcca11d9a673c564e | [
"BSD-3-Clause"
] | null | null | null | vendor/src/comment_element.hpp | crails-framework/comet.cpp | c43b5e72a065b7a2e34f723fcca11d9a673c564e | [
"BSD-3-Clause"
] | null | null | null | #ifndef COMET_COMMENT_ELEMENT_HPP
# define COMET_COMMENT_ELEMENT_HPP
# include "element.hpp"
namespace Comet
{
class CommentElement : public Comet::Element
{
static client::HTMLElement* makeCommentElement(const client::String&);
public:
CommentElement(const client::String& str) : Element(makeCommentEle... | 22.611111 | 83 | 0.737101 | crails-framework |
9bc70997a378680d8df6a7d58c1f7e106d447e1a | 7,048 | cpp | C++ | src/SyslogController.cpp | omnidynmc/openapi | 7c28179859125efb8c945d0c44543194e6bcd09f | [
"MIT"
] | null | null | null | src/SyslogController.cpp | omnidynmc/openapi | 7c28179859125efb8c945d0c44543194e6bcd09f | [
"MIT"
] | null | null | null | src/SyslogController.cpp | omnidynmc/openapi | 7c28179859125efb8c945d0c44543194e6bcd09f | [
"MIT"
] | null | null | null | #include <fstream>
#include <string>
#include <queue>
#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <cassert>
#include <list>
#include <map>
#include <new>
#include <iostream>
#include <fstream>
#include <stdarg.h>
#include <stdlib.h>
#include <time.h>
#include <syslog.h>
#include "SyslogController... | 40.976744 | 120 | 0.677213 | omnidynmc |
9bc9b5d6ce9b92545f14d04169450811b3890baf | 1,640 | cpp | C++ | staff/core/component/src/Component.cpp | gale320/staff | c90e65a984e9931d803fc88243971639fe3876b7 | [
"Apache-2.0"
] | 14 | 2015-04-04T17:42:53.000Z | 2021-03-09T11:09:51.000Z | staff/core/component/src/Component.cpp | gale320/staff | c90e65a984e9931d803fc88243971639fe3876b7 | [
"Apache-2.0"
] | 3 | 2015-07-30T13:22:42.000Z | 2017-06-06T15:13:28.000Z | staff/core/component/src/Component.cpp | gale320/staff | c90e65a984e9931d803fc88243971639fe3876b7 | [
"Apache-2.0"
] | 13 | 2015-04-25T20:43:45.000Z | 2021-12-29T07:55:47.000Z | /*
* Copyright 2011 Utkin Dmitry
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agr... | 24.848485 | 88 | 0.70061 | gale320 |
9bccdef5e38324bad8dd1ab5cb167d8d4f959b98 | 1,957 | hpp | C++ | examples/common/Logger.hpp | koplyarov/wigwag | d5646c610b324c9252ec7ac807f883f88e7442eb | [
"0BSD"
] | 103 | 2016-02-26T14:39:03.000Z | 2021-02-13T10:15:52.000Z | examples/common/Logger.hpp | koplyarov/wigwag | d5646c610b324c9252ec7ac807f883f88e7442eb | [
"0BSD"
] | 1 | 2018-05-07T06:00:19.000Z | 2018-05-07T19:57:20.000Z | examples/common/Logger.hpp | koplyarov/wigwag | d5646c610b324c9252ec7ac807f883f88e7442eb | [
"0BSD"
] | 9 | 2016-03-17T11:56:33.000Z | 2020-08-06T10:11:50.000Z | #ifndef EXAMPLES_COMMON_LOGGER_HPP
#define EXAMPLES_COMMON_LOGGER_HPP
// Copyright (c) 2016, Dmitry Koplyarov <koplyarov.da@gmail.com>
//
// Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted,
// provided that the above copyright notice and this permi... | 26.445946 | 172 | 0.645887 | koplyarov |
9bd1f940e34082bcf3d3a4896ecce8acd4e48883 | 2,175 | cpp | C++ | Medusa/Medusa/Node/Component/Movement/LinearMovementComponent.cpp | tony2u/Medusa | d4ac8181a693bc796681880e09aac3fdba9aaaaf | [
"MIT"
] | 143 | 2015-11-18T01:06:03.000Z | 2022-03-30T03:08:54.000Z | Medusa/Medusa/Node/Component/Movement/LinearMovementComponent.cpp | tony2u/Medusa | d4ac8181a693bc796681880e09aac3fdba9aaaaf | [
"MIT"
] | 1 | 2019-10-23T13:00:40.000Z | 2019-10-23T13:00:40.000Z | Medusa/Medusa/Node/Component/Movement/LinearMovementComponent.cpp | tony2u/Medusa | d4ac8181a693bc796681880e09aac3fdba9aaaaf | [
"MIT"
] | 45 | 2015-11-18T01:17:59.000Z | 2022-03-05T12:29:45.000Z | // Copyright (c) 2015 fjz13. All rights reserved.
// Use of this source code is governed by a MIT-style
// license that can be found in the LICENSE file.
#include "MedusaPreCompiled.h"
#include "LinearMovementComponent.h"
#include "Node/INode.h"
MEDUSA_BEGIN;
LinearMovementComponent::LinearMovementComponent(const Str... | 22.193878 | 146 | 0.724598 | tony2u |
9bd21138dc52ef0e32ceb418fb6748dce57c9c29 | 1,834 | cpp | C++ | Sound/SineWaveSoundSource.cpp | wolfgang1991/CommonLibraries | 949251019cc8dd532938d16ab85a4e772eb6817e | [
"Zlib"
] | null | null | null | Sound/SineWaveSoundSource.cpp | wolfgang1991/CommonLibraries | 949251019cc8dd532938d16ab85a4e772eb6817e | [
"Zlib"
] | 1 | 2020-07-31T13:20:54.000Z | 2020-08-06T15:45:39.000Z | Sound/SineWaveSoundSource.cpp | wolfgang1991/CommonLibraries | 949251019cc8dd532938d16ab85a4e772eb6817e | [
"Zlib"
] | null | null | null | #include "SineWaveSoundSource.h"
#include "ISoundDriver.h"
#include "SoundManager.h"
#include <Matrix.h>
#include <limits>
#include <iostream>
SineWaveSoundSource::SineWaveSoundSource(SoundManager* soundmgr, uint32_t frequency, uint32_t maxFrequency):ISoundSource(soundmgr),sampleRate(soundmgr->getSoundDriver()->getN... | 28.215385 | 235 | 0.757361 | wolfgang1991 |
9bdc39b26647d4e89c39057b784a9c74d3083e8b | 184 | cc | C++ | below1.5/laptopsticker.cc | danzel-py/Kattis-Problem-Archive | bce1929d654b1bceb104f96d68c74349273dd1ff | [
"Apache-2.0"
] | null | null | null | below1.5/laptopsticker.cc | danzel-py/Kattis-Problem-Archive | bce1929d654b1bceb104f96d68c74349273dd1ff | [
"Apache-2.0"
] | null | null | null | below1.5/laptopsticker.cc | danzel-py/Kattis-Problem-Archive | bce1929d654b1bceb104f96d68c74349273dd1ff | [
"Apache-2.0"
] | null | null | null | #include <iostream>
using namespace std;
int main(){
int ws,hs,hc,wc;
cin>>wc>>hc>>ws>>hs;
if(wc>ws+1 && hc>hs+1){
cout<<1;
}
else cout<<0;
return 0;
} | 15.333333 | 27 | 0.51087 | danzel-py |
9be5b38b784abb417ff7cb72a69c4054c098994c | 26,469 | cpp | C++ | src/HeaderFiles/CountedBtree.cpp | Anonymous82338590/AdaptiveDynamicArray | 47786167d6b6238da8f717ef8126fd68a6939990 | [
"MIT"
] | null | null | null | src/HeaderFiles/CountedBtree.cpp | Anonymous82338590/AdaptiveDynamicArray | 47786167d6b6238da8f717ef8126fd68a6939990 | [
"MIT"
] | null | null | null | src/HeaderFiles/CountedBtree.cpp | Anonymous82338590/AdaptiveDynamicArray | 47786167d6b6238da8f717ef8126fd68a6939990 | [
"MIT"
] | null | null | null | #include "CountedBtree.h"
#include <iostream>
#include <list>
using namespace std;
NodeForCBT::NodeForCBT(int capacity, int numkeys, NodeForCBT * parent, bool isLeaf) {
Pointers = new NodeForCBT *[capacity];
Keys = new int[capacity];
KeysNumInChild = new int[capacity];
for (int i = 0; i < capacity; i++... | 29.118812 | 142 | 0.527523 | Anonymous82338590 |
9be5f71cc49331b0ce05d3a555ab69e9b5a7fa52 | 12,609 | cpp | C++ | src/ibeo_scala.cpp | astuff/ibeo_scala | 338dac857914c23c643368542bff739b766502a4 | [
"MIT"
] | 3 | 2018-06-07T13:35:35.000Z | 2021-12-07T02:47:05.000Z | src/ibeo_scala.cpp | astuff/ibeo_scala | 338dac857914c23c643368542bff739b766502a4 | [
"MIT"
] | 5 | 2019-01-11T08:51:28.000Z | 2019-12-13T08:46:51.000Z | src/ibeo_scala.cpp | astuff/ibeo_scala | 338dac857914c23c643368542bff739b766502a4 | [
"MIT"
] | 6 | 2018-09-07T11:53:55.000Z | 2021-04-21T06:32:04.000Z | /*
* ibeo_scala.cpp - ROS implementation of the Ibeo ScaLa driver.
* Copyright (C) 2017 AutonomouStuff, Co.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* v... | 36.12894 | 157 | 0.642398 | astuff |
9be7ed9c1bcae36eadcb97849963cbd4192472bd | 2,061 | hpp | C++ | ncurses/includes/NCurseRenderer.hpp | tiboitel/Nibbler | f95341206d6750d2b85deb4ee6bb789234229201 | [
"MIT"
] | null | null | null | ncurses/includes/NCurseRenderer.hpp | tiboitel/Nibbler | f95341206d6750d2b85deb4ee6bb789234229201 | [
"MIT"
] | null | null | null | ncurses/includes/NCurseRenderer.hpp | tiboitel/Nibbler | f95341206d6750d2b85deb4ee6bb789234229201 | [
"MIT"
] | null | null | null | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* NCurseRender.hpp :+: :+: :+: ... | 29.442857 | 80 | 0.441533 | tiboitel |
9bf081198861096bc1026f10604ce7137e13ee26 | 4,584 | cc | C++ | qtclient/programsview.cc | chrisandreae/keyboard-firmware | 91e71bf6e46b9d0ef4880c023afcd32131c49ff4 | [
"Ruby"
] | 111 | 2015-01-06T21:14:49.000Z | 2022-02-06T14:29:27.000Z | qtclient/programsview.cc | chrisandreae/keyboard-firmware | 91e71bf6e46b9d0ef4880c023afcd32131c49ff4 | [
"Ruby"
] | 18 | 2015-01-31T15:16:54.000Z | 2022-02-26T10:18:39.000Z | qtclient/programsview.cc | chrisandreae/keyboard-firmware | 91e71bf6e46b9d0ef4880c023afcd32131c49ff4 | [
"Ruby"
] | 22 | 2015-05-13T00:29:46.000Z | 2019-03-09T10:07:38.000Z | #include <QAbstractItemModel>
#include <QVBoxLayout>
#include <QTableView>
#include <QLabel>
#include <QTextEdit>
#include <QItemSelectionModel>
#include <QFileDialog>
#include <QAction>
#include <QPushButton>
#include <QDebug>
#include <QHeaderView>
#include "programsview.h"
#include "programspresenter.h"
#include "p... | 28.47205 | 100 | 0.707679 | chrisandreae |
9bf1cbf4bc802108da77ad878bfc4ff4aba46db1 | 30,157 | cc | C++ | src/cache.cc | kodachi77/SuperMalloc | 965d77bfc858cf80f900bb6a173d045ba5c9f9bd | [
"MIT"
] | null | null | null | src/cache.cc | kodachi77/SuperMalloc | 965d77bfc858cf80f900bb6a173d045ba5c9f9bd | [
"MIT"
] | null | null | null | src/cache.cc | kodachi77/SuperMalloc | 965d77bfc858cf80f900bb6a173d045ba5c9f9bd | [
"MIT"
] | null | null | null | #include <stdio.h>
#include "atomically.h"
#include "bassert.h"
#include "generated_constants.h"
#include "malloc_internal.h"
#ifdef ENABLE_LOG_CHECKING
static void clog_command( char command, const void* ptr, size_t size );
#else
#define clog_command( a, b, c ) ( (void) 0 )
#endif
typedef bool ignore;
// Cached sc... | 30.308543 | 238 | 0.590079 | kodachi77 |
9bfbb09a5ebd1f5fb611e035a1bf5a76f16f2047 | 3,257 | cpp | C++ | Engine/source/console/optimizer.cpp | Parcons/Torque3D | 516163fd5debea9c91b558046d858f5f56fc198d | [
"MIT"
] | 417 | 2020-06-01T15:55:15.000Z | 2022-03-31T12:50:51.000Z | Engine/source/console/optimizer.cpp | Ashry00/Torque3D | 33e3e41c8b7eb41c743a589558bc21302207ef97 | [
"MIT"
] | 186 | 2020-06-02T19:12:39.000Z | 2022-02-15T02:22:27.000Z | Engine/source/console/optimizer.cpp | Ashry00/Torque3D | 33e3e41c8b7eb41c743a589558bc21302207ef97 | [
"MIT"
] | 84 | 2020-06-01T15:54:44.000Z | 2022-03-24T13:52:59.000Z | //-----------------------------------------------------------------------------
// Copyright (c) 2013 GarageGames, LLC
// Copyright (c) 2021 TGEMIT Authors & Contributors
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Softw... | 31.019048 | 89 | 0.624194 | Parcons |
5003c8b76f6d6bb2cdbe7be6227403370be9bfd7 | 5,638 | cpp | C++ | test/safe_float_addition_test.cpp | aTom3333/safefloat | 760a1fa243672d49271836e8c431f002a615eca5 | [
"BSL-1.0"
] | 1 | 2019-08-08T01:24:16.000Z | 2019-08-08T01:24:16.000Z | test/safe_float_addition_test.cpp | aTom3333/safefloat | 760a1fa243672d49271836e8c431f002a615eca5 | [
"BSL-1.0"
] | null | null | null | test/safe_float_addition_test.cpp | aTom3333/safefloat | 760a1fa243672d49271836e8c431f002a615eca5 | [
"BSL-1.0"
] | 2 | 2019-05-28T11:31:09.000Z | 2019-10-12T21:55:25.000Z | #define BOOST_TEST_DYN_LINK
#include <boost/test/unit_test.hpp>
#include <boost/mpl/vector.hpp>
#include <boost/mpl/at.hpp>
#include <boost/mpl/quote.hpp>
#include <boost/mpl/protect.hpp>
#include <boost/mpl/bind.hpp>
#include <boost/mpl/list.hpp>
#include <limits>
#include <cmath>
#include <boost/safe_float.hpp>
#... | 35.683544 | 115 | 0.696169 | aTom3333 |
5006d7d15314ec5c8a6e403f829f61f3bf34042a | 1,656 | hpp | C++ | helper/win32u_helper.hpp | yak1ex/UTF8-Win32API | a320d71ff8d04f1b7a3d28222e832648eca97480 | [
"BSD-2-Clause"
] | 2 | 2015-12-01T14:56:09.000Z | 2017-04-29T20:05:26.000Z | helper/win32u_helper.hpp | yak1ex/UTF8-Win32API | a320d71ff8d04f1b7a3d28222e832648eca97480 | [
"BSD-2-Clause"
] | null | null | null | helper/win32u_helper.hpp | yak1ex/UTF8-Win32API | a320d71ff8d04f1b7a3d28222e832648eca97480 | [
"BSD-2-Clause"
] | null | null | null | #ifndef WIN32U_H
#define WIN32U_H
#include <algorithm>
#include <windows.h>
namespace win32u {
template<typename T>
struct remove_pointer
{
typedef T type;
};
template<typename T>
struct remove_pointer<T*>
{
typedef T type;
};
template<typename T>
class scoped_array
{
T *m;
scoped_array... | 22.684932 | 81 | 0.666063 | yak1ex |
500b41d83400b9f9d9e16d2f8335f52e4600fcd3 | 4,392 | cpp | C++ | src/PANDecoder.cpp | zhongqingyang/SegmentationCpp | 44675315d512841bfa5c33d5a1f92b9d2e6bc5f6 | [
"MIT"
] | 135 | 2021-05-06T04:03:27.000Z | 2022-03-31T01:34:03.000Z | src/PANDecoder.cpp | zhongqingyang/SegmentationCpp | 44675315d512841bfa5c33d5a1f92b9d2e6bc5f6 | [
"MIT"
] | 17 | 2021-05-10T06:44:54.000Z | 2022-03-07T09:00:43.000Z | src/PANDecoder.cpp | zhongqingyang/SegmentationCpp | 44675315d512841bfa5c33d5a1f92b9d2e6bc5f6 | [
"MIT"
] | 33 | 2021-05-05T16:12:17.000Z | 2022-03-22T07:56:26.000Z | #include "PANDecoder.h"
ConvBnReluImpl::ConvBnReluImpl(int in_channels, int out_channels, int kernel_size, int stride, int padding,
int dilation, int groups, bool bias, bool _add_relu, bool _interpolate) {
add_relu = _add_relu;
interpolate = _interpolate;
conv = torch::nn::Conv2d(conv_options(in_channels, out_chan... | 37.220339 | 121 | 0.699454 | zhongqingyang |
500c6ef28f8ff5dc8565913e4ccb6886fbba6bf4 | 2,801 | cpp | C++ | user/MIT_Controller/FSM_States/FSM_State_down.cpp | ZJ-science/Mit_mini_cheetah_gdut | 4c3d6f9f34598b3e139bb30f4389d0c3b6b6fe74 | [
"MIT"
] | 1 | 2021-05-11T23:24:24.000Z | 2021-05-11T23:24:24.000Z | user/MIT_Controller/FSM_States/FSM_State_down.cpp | alexhaislip/mit_mini_cheetah | 4c3d6f9f34598b3e139bb30f4389d0c3b6b6fe74 | [
"MIT"
] | null | null | null | user/MIT_Controller/FSM_States/FSM_State_down.cpp | alexhaislip/mit_mini_cheetah | 4c3d6f9f34598b3e139bb30f4389d0c3b6b6fe74 | [
"MIT"
] | 2 | 2021-01-04T03:15:22.000Z | 2022-03-02T03:08:56.000Z |
//by ---zj 2020.10.12
#include "FSM_State_down.h"
#include "JPosInitializer.h"
#include<iostream>
using namespace std;
template<typename T > //notice
FSM_State_Down<T>::FSM_State_Down(ControlFSMData< T >* _controlFSMData):FSM_State<T>(_controlFSMData, FSM_StateName::Down ,"Down!"),_ini_foot_pos(4)
{
this->checkF... | 25.008929 | 148 | 0.60764 | ZJ-science |
500e26820c72a7015ea4251f6c700210587dbb7b | 30 | hpp | C++ | test/nonstd/invoke.tweak.hpp | martinmoene/invoke-lite | f0af42c47840709f12fd2ed9c282a6606f6715a1 | [
"BSL-1.0"
] | 18 | 2017-11-30T12:20:59.000Z | 2022-03-15T03:21:58.000Z | test/nonstd/invoke.tweak.hpp | martinmoene/invoke-lite | f0af42c47840709f12fd2ed9c282a6606f6715a1 | [
"BSL-1.0"
] | 2 | 2021-10-13T12:35:11.000Z | 2021-10-18T16:12:23.000Z | test/nonstd/invoke.tweak.hpp | martinmoene/invoke-lite | f0af42c47840709f12fd2ed9c282a6606f6715a1 | [
"BSL-1.0"
] | 1 | 2022-03-15T03:22:00.000Z | 2022-03-15T03:22:00.000Z | #define invoke_TWEAK_VALUE 42
| 15 | 29 | 0.866667 | martinmoene |
50153b5974b4fc946efff7aa9d5c49d1d541a8eb | 1,170 | hpp | C++ | include/Simpleton/Camera 2D/animate.hpp | Hopobcn/EnTT-Pacman | 5187472419f05b79fa9b92593e85fff7c0ae6ca1 | [
"MIT"
] | 52 | 2017-08-12T14:41:58.000Z | 2022-01-12T01:18:57.000Z | include/Simpleton/Camera 2D/animate.hpp | KUflower/EnTT-Pacman | ebcbc5e6005e44ea89711ced913333ae7fa468bd | [
"MIT"
] | null | null | null | include/Simpleton/Camera 2D/animate.hpp | KUflower/EnTT-Pacman | ebcbc5e6005e44ea89711ced913333ae7fa468bd | [
"MIT"
] | 5 | 2018-11-20T04:02:15.000Z | 2020-03-02T19:15:16.000Z | //
// animate.hpp
// Simpleton Engine
//
// Created by Indi Kernick on 26/11/17.
// Copyright © 2017 Indi Kernick. All rights reserved.
//
#ifndef engine_camera_2d_animate_hpp
#define engine_camera_2d_animate_hpp
#include "props.hpp"
#define GLM_ENABLE_EXPERIMENTAL
#include <glm/gtx/norm.hpp>
#undef GLM_ENABLE_EX... | 23.4 | 87 | 0.667521 | Hopobcn |
501dd302a3a345876fd4afe54a6d40d3066087bf | 195 | hpp | C++ | addons/chat/script_component.hpp | Task-Force-Dagger/Dagger | 56b9ffe3387f74830419a987eed5a0f386674331 | [
"MIT"
] | null | null | null | addons/chat/script_component.hpp | Task-Force-Dagger/Dagger | 56b9ffe3387f74830419a987eed5a0f386674331 | [
"MIT"
] | null | null | null | addons/chat/script_component.hpp | Task-Force-Dagger/Dagger | 56b9ffe3387f74830419a987eed5a0f386674331 | [
"MIT"
] | null | null | null | #define COMPONENT chat
#define COMPONENT_BEAUTIFIED Chat
#include "\z\tfd\addons\main\script_mod.hpp"
#include "\z\tfd\addons\main\script_macros.hpp"
#define CURUNIT (call CBA_fnc_currentUnit)
| 24.375 | 47 | 0.8 | Task-Force-Dagger |
502023c766ecc47b59d66310e3921298f40a3037 | 2,421 | cpp | C++ | MW2 Lobby Tools/AttachmentNode.cpp | jisopo/MW2-Lobby-Tools | 2d943961ea31d5e17f42358866a99c82f300f484 | [
"MIT"
] | 12 | 2017-03-13T22:05:09.000Z | 2021-08-10T16:45:36.000Z | MW2 Lobby Tools/AttachmentNode.cpp | jisopo/MW2-Lobby-Tools | 2d943961ea31d5e17f42358866a99c82f300f484 | [
"MIT"
] | null | null | null | MW2 Lobby Tools/AttachmentNode.cpp | jisopo/MW2-Lobby-Tools | 2d943961ea31d5e17f42358866a99c82f300f484 | [
"MIT"
] | 3 | 2018-09-23T04:34:09.000Z | 2021-08-10T16:45:18.000Z | #include "stdafx.h"
#include "AttachmentNode.h"
AttachmentNode::AttachmentNode()
{
}
AttachmentNode::~AttachmentNode()
{
}
MenuNode* AttachmentNode::Create(MenuNode* parent, std::string label, std::string weapon, std::string attachment)
{
auto node = new AttachmentNode();
node->SetParent(parent);
node->SetLabel(... | 22.626168 | 154 | 0.707559 | jisopo |
5020562f6466a2ac4311f7bac63cb261fc671097 | 470 | cpp | C++ | source/cppsocket/os_specific.cpp | dinobei/cppsocket | 473fd0404ce20055ea3564004b304eb018782bba | [
"MIT"
] | null | null | null | source/cppsocket/os_specific.cpp | dinobei/cppsocket | 473fd0404ce20055ea3564004b304eb018782bba | [
"MIT"
] | null | null | null | source/cppsocket/os_specific.cpp | dinobei/cppsocket | 473fd0404ce20055ea3564004b304eb018782bba | [
"MIT"
] | null | null | null | #include "os_specific.h"
#if defined(__CPPSOCKET_WINDOWS__)
int writev(const int sock, const struct iovec *iov, int nvecs)
{
DWORD ret;
if (WSASend(sock, (LPWSABUF)iov, nvecs, &ret, 0, NULL, NULL) == 0)
{
return ret;
}
return -1;
}
int readv(const int sock, const struct iovec *iov, int nv... | 18.076923 | 70 | 0.597872 | dinobei |
5023d406ada8b9fbb6f968fbfc97018b75ec84f1 | 1,964 | cpp | C++ | src/core/shaders/shader/impl/ogl/ogl_shader.cpp | seigtm/meov | 2aeb87961df0602c2d36192d8589776463531059 | [
"MIT"
] | 1 | 2022-03-05T10:28:23.000Z | 2022-03-05T10:28:23.000Z | src/core/shaders/shader/impl/ogl/ogl_shader.cpp | seigtm/meov | 2aeb87961df0602c2d36192d8589776463531059 | [
"MIT"
] | 9 | 2022-01-25T07:44:34.000Z | 2022-03-15T07:09:16.000Z | src/core/shaders/shader/impl/ogl/ogl_shader.cpp | seigtm/meov | 2aeb87961df0602c2d36192d8589776463531059 | [
"MIT"
] | null | null | null | #include "common.hpp"
#include "ogl_shader.hpp"
namespace meov::core::shaders::gl {
OGLShaderImpl::OGLShaderImpl(ShaderType type, const std::string_view &source)
: Shader::Impl{ type, glCreateShader(GetOriginalType(type)) } {
if(source.empty()) {
const std::string defaultSrc{ getDefaultShaderSource(t... | 29.757576 | 81 | 0.645621 | seigtm |
5023ec534c57ae934950c18407165360f451ec7c | 7,000 | cpp | C++ | globals.cpp | piotrplaza/MouseSpaceShooter | 9aed0c16889b6ce70e725c165bf28307201e81d1 | [
"MIT"
] | null | null | null | globals.cpp | piotrplaza/MouseSpaceShooter | 9aed0c16889b6ce70e725c165bf28307201e81d1 | [
"MIT"
] | null | null | null | globals.cpp | piotrplaza/MouseSpaceShooter | 9aed0c16889b6ce70e725c165bf28307201e81d1 | [
"MIT"
] | 1 | 2020-06-16T10:32:06.000Z | 2020-06-16T10:32:06.000Z | #include "globals.hpp"
#include <memory>
#include <vector>
#include <unordered_map>
#include "ogl/shaders/basic.hpp"
#include "ogl/shaders/colored.hpp"
#include "ogl/shaders/julia.hpp"
#include "ogl/shaders/particles.hpp"
#include "ogl/shaders/sceneCoordTextured.hpp"
#include "ogl/shaders/textured.hpp"
#include "ogl/... | 20.895522 | 109 | 0.737143 | piotrplaza |
5026b45189911a0113105a09c78093b7cc0bb43f | 831 | hpp | C++ | src/But/Exception.hpp | el-bart/but | eee2e7e34dde415f4c87461f75c2bab38fc56407 | [
"BSD-3-Clause"
] | 27 | 2016-01-12T19:30:57.000Z | 2022-01-27T15:52:39.000Z | src/But/Exception.hpp | el-bart/but | eee2e7e34dde415f4c87461f75c2bab38fc56407 | [
"BSD-3-Clause"
] | 4 | 2017-04-10T16:30:22.000Z | 2019-04-24T21:02:55.000Z | src/But/Exception.hpp | el-bart/but | eee2e7e34dde415f4c87461f75c2bab38fc56407 | [
"BSD-3-Clause"
] | 2 | 2016-12-09T17:09:59.000Z | 2019-07-16T00:19:31.000Z | #pragma once
#include <sstream>
#include <utility>
#include <stdexcept>
#include <But/detail/Exception.hpp>
namespace But
{
class Exception: public std::runtime_error
{
protected:
explicit Exception(std::stringstream&& ss): std::runtime_error{ ss.str() } { }
static std::stringstream defineBegining(char const* ... | 31.961538 | 133 | 0.738869 | el-bart |
5028052c918bee20406f0624c260cf3a6f6066f8 | 3,264 | cpp | C++ | ltb-net/example/src/example_server.cpp | LoganBarnes/ltb-gvs | b1178e31c35aece434c7d47af955275fca9bb2a5 | [
"MIT"
] | 1 | 2020-04-04T16:57:25.000Z | 2020-04-04T16:57:25.000Z | ltb-net/example/src/example_server.cpp | LoganBarnes/ltb-gvs | b1178e31c35aece434c7d47af955275fca9bb2a5 | [
"MIT"
] | null | null | null | ltb-net/example/src/example_server.cpp | LoganBarnes/ltb-gvs | b1178e31c35aece434c7d47af955275fca9bb2a5 | [
"MIT"
] | null | null | null | // ///////////////////////////////////////////////////////////////////////////////////////
// LTB Networking
// Copyright (c) 2020 Logan Barnes - All Rights Reserved
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software")... | 41.846154 | 119 | 0.656556 | LoganBarnes |
5028decc6a65d911b0d4fb4adf84e01c308143a0 | 4,098 | cpp | C++ | tests/win32/synch.cpp | afmenez/xfspp | 202c8b819d6fe9e1a669f6042e9724ad7415cedd | [
"MIT"
] | 25 | 2017-03-30T04:58:10.000Z | 2022-01-26T22:34:03.000Z | tests/win32/synch.cpp | afmenez/xfspp | 202c8b819d6fe9e1a669f6042e9724ad7415cedd | [
"MIT"
] | 4 | 2019-08-26T06:14:47.000Z | 2022-02-23T18:48:11.000Z | tests/win32/synch.cpp | afmenez/xfspp | 202c8b819d6fe9e1a669f6042e9724ad7415cedd | [
"MIT"
] | 10 | 2017-04-10T09:52:58.000Z | 2021-09-30T13:42:22.000Z | /* tests/win32/synch.cpp
*
* Copyright (C) 2007 Antonio Di Monaco
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
#include "tests/catch.hpp"
#include "tests/minhook.hpp"
#include "win32/synch.hpp"
#include "win32/thread.hp... | 21.68254 | 96 | 0.633968 | afmenez |
df27071f63fa6577948f4526d11c0c35241a9363 | 1,454 | hpp | C++ | cpp/include/common/type_trait_utils.hpp | algo-trading-kjsce/trading | 29a245a16512fd5803168064b45021cd508e7de0 | [
"MIT"
] | 2 | 2020-11-08T06:11:35.000Z | 2021-09-18T01:44:45.000Z | cpp/include/common/type_trait_utils.hpp | algo-trading-kjsce/trading | 29a245a16512fd5803168064b45021cd508e7de0 | [
"MIT"
] | null | null | null | cpp/include/common/type_trait_utils.hpp | algo-trading-kjsce/trading | 29a245a16512fd5803168064b45021cd508e7de0 | [
"MIT"
] | 1 | 2021-06-13T02:36:25.000Z | 2021-06-13T02:36:25.000Z | /**
* @file type_trait_utils.hpp
* @author ashwinn76
* @brief
* @version 0.1
* @date 2020-09-19
*
* @copyright Copyright (c) 2020
*
*/
#pragma once
#include <cstdint>
#include <type_traits>
#ifdef __cpp_consteval
# define __CONSTEVAL consteval
#else
# define __CONSTEVAL constexpr
#endif
#define REQUI... | 22.030303 | 78 | 0.651994 | algo-trading-kjsce |
df27b896fcd3651b9fc7ea6aac75eb5dad80cc26 | 760 | cpp | C++ | Bithacks.cpp | kinoshita-lab/bithacks | 210d72e3b40aecad3d1b1782c95b7e39c3593086 | [
"Unlicense"
] | null | null | null | Bithacks.cpp | kinoshita-lab/bithacks | 210d72e3b40aecad3d1b1782c95b7e39c3593086 | [
"Unlicense"
] | null | null | null | Bithacks.cpp | kinoshita-lab/bithacks | 210d72e3b40aecad3d1b1782c95b7e39c3593086 | [
"Unlicense"
] | null | null | null | /*
* Bit Twiddling Hacks
By Sean Eron Anderson
seander@cs.stanford.edu
*/
#include "Bithacks.h"
namespace bithacks
{
unsigned int abs(const int v)
{
unsigned int r; // the result goes here
int const mask = v >> sizeof(int) * CHAR_BIT - 1;
return (v + mask) ^ mask;
// Patented variation:... | 16.888889 | 67 | 0.543421 | kinoshita-lab |
df29e609d840bdc3683e28c00b5cdf6dc8e38f75 | 808 | hpp | C++ | world/include/Spellbook.hpp | sidav/shadow-of-the-wyrm | 747afdeebed885b1a4f7ab42f04f9f756afd3e52 | [
"MIT"
] | 60 | 2019-08-21T04:08:41.000Z | 2022-03-10T13:48:04.000Z | world/include/Spellbook.hpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 3 | 2021-03-18T15:11:14.000Z | 2021-10-20T12:13:07.000Z | world/include/Spellbook.hpp | cleancoindev/shadow-of-the-wyrm | 51b23e98285ecb8336324bfd41ebf00f67b30389 | [
"MIT"
] | 8 | 2019-11-16T06:29:05.000Z | 2022-01-23T17:33:43.000Z | #pragma once
#include "Readable.hpp"
class Spellbook : public Readable
{
public:
Spellbook();
~Spellbook();
bool operator==(const Spellbook& book) const;
bool destroy_on_read() const override;
void set_spell_id(const std::string& new_spell_id);
std::string get_spell_id() const;
vo... | 22.444444 | 64 | 0.711634 | sidav |
df431fe8b498e85d245006d3b87472df3004f8e6 | 240 | cpp | C++ | unittests/HelloWorld/HelloWorldTest.cpp | second-reality/please | 0b3b483d9edd516d135ad402c2690027e8822849 | [
"MIT"
] | null | null | null | unittests/HelloWorld/HelloWorldTest.cpp | second-reality/please | 0b3b483d9edd516d135ad402c2690027e8822849 | [
"MIT"
] | null | null | null | unittests/HelloWorld/HelloWorldTest.cpp | second-reality/please | 0b3b483d9edd516d135ad402c2690027e8822849 | [
"MIT"
] | null | null | null | #include "blop/HelloWorld/HelloWorld.h"
#include <boost/test/unit_test.hpp>
using namespace blop;
BOOST_AUTO_TEST_CASE(answerToLifeUniverseAndEverything)
{
HelloWorld h;
BOOST_CHECK(h.getAnswerToLifeUniverseAndEverything() == 42);
}
| 20 | 62 | 0.8 | second-reality |
df4838b830308949fce89dae5c02c8970b69e7bf | 757 | cpp | C++ | projects/C++/tutorial/functions/math-functions/generic/index.cpp | turbofuture1/dukeofedinburgh | bdb9679aa4977aa6df97b8c8d0b00cd68bbdf3a2 | [
"MIT"
] | 1 | 2022-02-08T21:00:12.000Z | 2022-02-08T21:00:12.000Z | projects/C++/tutorial/functions/math-functions/generic/index.cpp | turbofuture1/dukeofedinburgh | bdb9679aa4977aa6df97b8c8d0b00cd68bbdf3a2 | [
"MIT"
] | null | null | null | projects/C++/tutorial/functions/math-functions/generic/index.cpp | turbofuture1/dukeofedinburgh | bdb9679aa4977aa6df97b8c8d0b00cd68bbdf3a2 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main()
{
int number_1;
int number_2;
cout << "Enter a number: ";
cin >> number_1;
cout << "Enter another number: ";
cin >> number_2;
int maximum_number = max(number_1, number_2);
int minimum_number = ... | 21.027778 | 68 | 0.589168 | turbofuture1 |
df490d57336712930979753951446a79d2486997 | 17,838 | cpp | C++ | lib/LCD1602/src/LCD1602.cpp | tidabek/ESP32Radio-V2 | 7d2a1ebc7a3b6f01bf8e3858b592929e202c398b | [
"Apache-2.0"
] | 28 | 2021-10-04T15:43:24.000Z | 2022-03-10T08:22:19.000Z | lib/LCD1602/src/LCD1602.cpp | tidabek/ESP32Radio-V2 | 7d2a1ebc7a3b6f01bf8e3858b592929e202c398b | [
"Apache-2.0"
] | 21 | 2021-10-05T14:49:04.000Z | 2022-03-31T17:17:41.000Z | lib/LCD1602/src/LCD1602.cpp | tidabek/ESP32Radio-V2 | 7d2a1ebc7a3b6f01bf8e3858b592929e202c398b | [
"Apache-2.0"
] | 5 | 2021-10-12T20:37:13.000Z | 2022-02-06T14:00:14.000Z | //***************************************************************************************************
//* LCD1602.h -- Driver for LCD 1602 display with I2C backpack. *
//***************************************************************************************************
// The back... | 45.274112 | 104 | 0.261464 | tidabek |
df504090162a54b4dbbc28f2b194fcc83da2c07e | 2,986 | cpp | C++ | unittest/source/ut_async.cpp | onbings/bofstd | 366ff7f7d8871d5fa5785d5690d90506a7714ecc | [
"MIT"
] | null | null | null | unittest/source/ut_async.cpp | onbings/bofstd | 366ff7f7d8871d5fa5785d5690d90506a7714ecc | [
"MIT"
] | 1 | 2021-03-20T14:46:54.000Z | 2021-03-20T14:47:10.000Z | unittest/source/ut_async.cpp | onbings/bofstd | 366ff7f7d8871d5fa5785d5690d90506a7714ecc | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2013-2023, OnBings All rights reserved.
*
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
* KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
* PURPOSE.
*
* This module im... | 28.990291 | 134 | 0.680174 | onbings |
df54f894b18016801c96523c6d59e31a741c005f | 34 | hpp | C++ | src/boost_scoped_array.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_scoped_array.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_scoped_array.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/scoped_array.hpp>
| 17 | 33 | 0.794118 | miathedev |
df57a9970194fcf61f7109a3c77693aad2b3b07c | 374 | cpp | C++ | regression/esbmc-cpp/stream/istream_ignore_1/main.cpp | shmarovfedor/esbmc | 3226a3d68b009d44b9535a993ac0f25e1a1fbedd | [
"BSD-3-Clause"
] | 143 | 2015-06-22T12:30:01.000Z | 2022-03-21T08:41:17.000Z | regression/esbmc-cpp/stream/istream_ignore_1/main.cpp | shmarovfedor/esbmc | 3226a3d68b009d44b9535a993ac0f25e1a1fbedd | [
"BSD-3-Clause"
] | 542 | 2017-06-02T13:46:26.000Z | 2022-03-31T16:35:17.000Z | regression/esbmc-cpp/stream/istream_ignore_1/main.cpp | shmarovfedor/esbmc | 3226a3d68b009d44b9535a993ac0f25e1a1fbedd | [
"BSD-3-Clause"
] | 81 | 2015-10-21T22:21:59.000Z | 2022-03-24T14:07:55.000Z | // istream ignore
#include <iostream>
#include <cassert>
using namespace std;
int main () {
char first, last;
int i, j;
cout << "Enter your first and last names: ";
first=cin.get();
assert((int)cin.gcount() == 1);
cin.ignore(256,' ');
last=cin.get();
assert((int)cin.gcount() == 1);
cout << "Y... | 17.809524 | 48 | 0.588235 | shmarovfedor |
df6152c937f746c1db7620658fc9d842328bf7e0 | 2,722 | cpp | C++ | src/protocol/StreamSocket.cpp | RichaGNigam/MyRepository | 7ec8461b73e19b72c8eda38b337737c010b79885 | [
"Apache-2.0"
] | 8 | 2018-05-02T09:38:43.000Z | 2018-09-03T17:36:13.000Z | src/protocol/StreamSocket.cpp | RichaGNigam/MyRepository | 7ec8461b73e19b72c8eda38b337737c010b79885 | [
"Apache-2.0"
] | 2 | 2018-06-19T07:18:54.000Z | 2018-06-19T07:21:51.000Z | src/protocol/StreamSocket.cpp | RichaGNigam/MyRepository | 7ec8461b73e19b72c8eda38b337737c010b79885 | [
"Apache-2.0"
] | 1 | 2018-06-27T01:37:13.000Z | 2018-06-27T01:37:13.000Z | #include <arpa/inet.h>
#include <string.h>
#include <byteswap.h>
#include "StreamSocket.h"
#include "Log.h"
using namespace std;
StreamSocket::StreamSocket()
{
}
PushFYICodec* StreamSocket::CreateCodec()
{
return new StreamSocket();
}
StreamSocket::~StreamSocket()
{
}
ssize_t StreamSocket::encode(const char* src,... | 19.582734 | 111 | 0.652094 | RichaGNigam |
df63f4fbd535310900b8d7cbdbb4e77541fc9674 | 2,123 | hpp | C++ | iOS/G3MiOSSDK/Commons/Basic/TileTexturizer.hpp | AeroGlass/g3m | a21a9e70a6205f1f37046ae85dafc6e3bfaeb917 | [
"BSD-2-Clause"
] | null | null | null | iOS/G3MiOSSDK/Commons/Basic/TileTexturizer.hpp | AeroGlass/g3m | a21a9e70a6205f1f37046ae85dafc6e3bfaeb917 | [
"BSD-2-Clause"
] | null | null | null | iOS/G3MiOSSDK/Commons/Basic/TileTexturizer.hpp | AeroGlass/g3m | a21a9e70a6205f1f37046ae85dafc6e3bfaeb917 | [
"BSD-2-Clause"
] | null | null | null | //
// TileTexturizer.hpp
// G3MiOSSDK
//
// Created by Diego Gomez Deck on 12/07/12.
// Copyright (c) 2012 IGO Software SL. All rights reserved.
//
#ifndef G3MiOSSDK_TileTexturizer
#define G3MiOSSDK_TileTexturizer
#include "Renderer.hpp"
class Mesh;
class G3MRenderContext;
class Tile;
class TileTessellator;
clas... | 30.328571 | 87 | 0.564767 | AeroGlass |
df661f8b2eabb66a95b2d201122275301bc55dca | 529 | cpp | C++ | origin_code/insertionSort2.cpp | vectordb-io/vstl | 1cd35add1a28cc1bcac560629b4a49495fe2b065 | [
"Apache-2.0"
] | null | null | null | origin_code/insertionSort2.cpp | vectordb-io/vstl | 1cd35add1a28cc1bcac560629b4a49495fe2b065 | [
"Apache-2.0"
] | null | null | null | origin_code/insertionSort2.cpp | vectordb-io/vstl | 1cd35add1a28cc1bcac560629b4a49495fe2b065 | [
"Apache-2.0"
] | null | null | null | // test insertion sort
#include <iostream>
#include <algorithm> // has copy
#include "insertionSort.h"
using namespace std;
int main()
{
int a[10] = {3, 2, 4, 1, 6, 9, 8, 7, 5, 0};
// output the elements
cout << "a[0:9] = ";
copy(a, a+10, ostream_iterator<int>(cout, " "));
cout << en... | 18.892857 | 52 | 0.542533 | vectordb-io |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.