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 108 | 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 67k ⌀ | 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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e0447588f79276f223c96a4be21122dcde195285 | 3,313 | cpp | C++ | python/sedef.cpp | mateog4712/SEDEF | dc05b661854a96b934ee098bedb970a5040b697b | [
"MIT"
] | 21 | 2018-07-06T06:09:42.000Z | 2021-06-28T21:21:01.000Z | python/sedef.cpp | mateog4712/SEDEF | dc05b661854a96b934ee098bedb970a5040b697b | [
"MIT"
] | 21 | 2018-06-29T23:57:33.000Z | 2022-03-01T02:37:49.000Z | python/sedef.cpp | mateog4712/SEDEF | dc05b661854a96b934ee098bedb970a5040b697b | [
"MIT"
] | 9 | 2019-10-16T10:14:12.000Z | 2021-06-29T17:11:27.000Z | /// 786
#include <string>
using namespace std;
#include "src/common.h"
#include "src/search.h"
#include "src/chain.h"
#include "src/align.h"
class PyHit {
public:
int qs, qe;
int rs, re;
Alignment c;
// PyHit() = default;
int query_start() { return qs; }
int query_end() { return qe; }
int ref_start() { retu... | 25.290076 | 92 | 0.638696 | mateog4712 |
e0462028989128bc82fc25982091e8b8a48f3869 | 355 | cpp | C++ | Source/Model.cpp | RPKQ/OpenGL_scratchUp | cbe0268d6bb86bc0de49fafdcf078e5b85395964 | [
"CC-BY-3.0"
] | null | null | null | Source/Model.cpp | RPKQ/OpenGL_scratchUp | cbe0268d6bb86bc0de49fafdcf078e5b85395964 | [
"CC-BY-3.0"
] | null | null | null | Source/Model.cpp | RPKQ/OpenGL_scratchUp | cbe0268d6bb86bc0de49fafdcf078e5b85395964 | [
"CC-BY-3.0"
] | null | null | null | #include "Model.h"
Model::Model() {}
Model::~Model()
{
for(int i=0; i<meshes.size(); i++)
delete meshes[i];
}
void Model::draw(Program* program)
{
for (std::vector<Mesh*>::iterator mesh = this->meshes.begin(); mesh != this->meshes.end(); ++mesh)
{
(*mesh)->draw(program);
}
}
void Model::addMesh(Mesh* mesh)
... | 15.434783 | 99 | 0.616901 | RPKQ |
e046997443b3e543fb43151ef82eb3009d970a81 | 447 | cpp | C++ | pgm02_03.cpp | neharkarvishal/Data-Structures-and-Algorithms-with-Object-Oriented-Design-Patterns-in-C- | c9a29d2dd43ad8561e828c25f98de6a8c8f2317a | [
"Unlicense"
] | 1 | 2021-07-13T03:58:36.000Z | 2021-07-13T03:58:36.000Z | pgm02_03.cpp | neharkarvishal/Data-Structures-and-Algorithms-with-Object-Oriented-Design-Patterns-in-C- | c9a29d2dd43ad8561e828c25f98de6a8c8f2317a | [
"Unlicense"
] | null | null | null | pgm02_03.cpp | neharkarvishal/Data-Structures-and-Algorithms-with-Object-Oriented-Design-Patterns-in-C- | c9a29d2dd43ad8561e828c25f98de6a8c8f2317a | [
"Unlicense"
] | null | null | null | //
// This file contains the C++ code from Program 2.3 of
// "Data Structures and Algorithms
// with Object-Oriented Design Patterns in C++"
// by Bruno R. Preiss.
//
// Copyright (c) 1998 by Bruno R. Preiss, P.Eng. All rights reserved.
//
// http://www.pads.uwaterloo.ca/Bruno.Preiss/books/opus4/programs/... | 24.833333 | 80 | 0.651007 | neharkarvishal |
e047b1720d51db02c5a4f7efba596675bf572a7a | 2,538 | cpp | C++ | listing_8.1.cpp | renc/CppConcurrencyInAction | e0261af587900c71d7cb2a31b56899e610be320e | [
"BSL-1.0"
] | 62 | 2016-10-14T23:11:14.000Z | 2022-03-20T08:32:15.000Z | listing_8.1.cpp | renc/CppConcurrencyInAction | e0261af587900c71d7cb2a31b56899e610be320e | [
"BSL-1.0"
] | 2 | 2017-11-16T08:17:44.000Z | 2021-10-14T06:49:41.000Z | listing_8.1.cpp | renc/CppConcurrencyInAction | e0261af587900c71d7cb2a31b56899e610be320e | [
"BSL-1.0"
] | 31 | 2017-01-04T12:32:40.000Z | 2022-03-28T12:19:20.000Z | template<typename T>
struct sorter
{
struct chunk_to_sort
{
std::list<T> data;
std::promise<std::list<T> > promise;
};
thread_safe_stack<chunk_to_sort> chunks;
std::vector<std::thread> threads;
unsigned const max_thread_count;
std::atomic<bool> end_of_data;
sorter():
... | 24.640777 | 73 | 0.550827 | renc |
e04c85a0329210b5e84e7c4166cd0b2d80957b2f | 2,590 | hpp | C++ | pythran/pythonic/utils/numpy_traits.hpp | Pikalchemist/Pythran | 17d4108b56b3b365e089a4e1b01a09eb7e12942b | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/utils/numpy_traits.hpp | Pikalchemist/Pythran | 17d4108b56b3b365e089a4e1b01a09eb7e12942b | [
"BSD-3-Clause"
] | null | null | null | pythran/pythonic/utils/numpy_traits.hpp | Pikalchemist/Pythran | 17d4108b56b3b365e089a4e1b01a09eb7e12942b | [
"BSD-3-Clause"
] | 1 | 2017-03-12T20:32:36.000Z | 2017-03-12T20:32:36.000Z | #ifndef PYTHONIC_UTILS_NUMPY_TRAITS_HPP
#define PYTHONIC_UTILS_NUMPY_TRAITS_HPP
namespace pythonic {
namespace types {
template<class T, size_t N>
class ndarray;
template<class A>
class numpy_iexpr;
template<class A, class F>
class numpy_fexpr;
... | 27.849462 | 85 | 0.535521 | Pikalchemist |
e04e3aa2bc206c8ad55cb71fb24826415cfdf6f2 | 8,439 | cpp | C++ | vbox/src/VBox/Additions/darwin/vboxfs/VBoxVFS.cpp | Nurzamal/rest_api_docker | a9cc01dfc235467d490d9663755b33ef6990bdd8 | [
"MIT"
] | null | null | null | vbox/src/VBox/Additions/darwin/vboxfs/VBoxVFS.cpp | Nurzamal/rest_api_docker | a9cc01dfc235467d490d9663755b33ef6990bdd8 | [
"MIT"
] | null | null | null | vbox/src/VBox/Additions/darwin/vboxfs/VBoxVFS.cpp | Nurzamal/rest_api_docker | a9cc01dfc235467d490d9663755b33ef6990bdd8 | [
"MIT"
] | null | null | null | /* $Id: VBoxVFS.cpp 69500 2017-10-28 15:14:05Z vboxsync $ */
/** @file
* VBoxVFS - Guest Additions Shared Folders driver. KEXT entry point.
*/
/*
* Copyright (C) 2013-2017 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is... | 26.790476 | 130 | 0.591302 | Nurzamal |
e05062ff88b45be93f2a4832f6fda5fcfea6ea79 | 1,211 | cpp | C++ | xfa/fxfa/parser/cxfa_nodelist.cpp | jamespayor/pdfium | 07b4727a34d2f4aff851f0dc420faf617caca220 | [
"BSD-3-Clause"
] | 1 | 2019-01-12T07:00:46.000Z | 2019-01-12T07:00:46.000Z | xfa/fxfa/parser/cxfa_nodelist.cpp | jamespayor/pdfium | 07b4727a34d2f4aff851f0dc420faf617caca220 | [
"BSD-3-Clause"
] | null | null | null | xfa/fxfa/parser/cxfa_nodelist.cpp | jamespayor/pdfium | 07b4727a34d2f4aff851f0dc420faf617caca220 | [
"BSD-3-Clause"
] | null | null | null | // Copyright 2016 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "xfa/fxfa/parser/cxfa_nodelist.h"
#include <memory>
#include "core/... | 31.051282 | 80 | 0.695293 | jamespayor |
e0598af3d478abd775a354a1b4a6e602c1a8efe3 | 11,422 | cpp | C++ | examples/descriptorsets/descriptorsets.cpp | harskish/Vulkan | 25be6e4fda8b0d16875a55a1a476209305d4a983 | [
"MIT"
] | 318 | 2016-05-30T18:53:13.000Z | 2022-03-23T19:09:57.000Z | examples/descriptorsets/descriptorsets.cpp | harskish/Vulkan | 25be6e4fda8b0d16875a55a1a476209305d4a983 | [
"MIT"
] | 47 | 2016-06-04T20:53:27.000Z | 2020-12-21T17:14:21.000Z | examples/descriptorsets/descriptorsets.cpp | harskish/Vulkan | 25be6e4fda8b0d16875a55a1a476209305d4a983 | [
"MIT"
] | 35 | 2016-06-08T11:05:02.000Z | 2021-07-26T17:26:36.000Z | /*
* Vulkan Example - Using descriptor sets for passing data to shader stages
*
* Relevant code parts are marked with [POI]
*
* Copyright (C) 2018 by Sascha Willems - www.saschawillems.de
*
* This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
*/
#include <vulkanExampleBase.h>
class... | 40.647687 | 157 | 0.601471 | harskish |
e05f0e003cec62d237f36c821b18874dde622368 | 1,398 | cxx | C++ | src/Message.cxx | krafczyk/ArgParse | 0ff6f17d028a56da3478dfe8eec1b40f4d584fce | [
"MIT"
] | 1 | 2019-03-10T18:38:51.000Z | 2019-03-10T18:38:51.000Z | src/Message.cxx | krafczyk/ArgParse | 0ff6f17d028a56da3478dfe8eec1b40f4d584fce | [
"MIT"
] | null | null | null | src/Message.cxx | krafczyk/ArgParse | 0ff6f17d028a56da3478dfe8eec1b40f4d584fce | [
"MIT"
] | null | null | null | #include <cstdarg>
#include "ArgParse/Message.h"
namespace ArgParse {
std::string currentMessage = "";
FILE* STDOUT_Channel = stdout;
FILE* STDERR_Channel = stderr;
int DebugLevel = -1;
bool Color = true;
const std::string& GetMessage() {
return currentMessage;
}
void SetMessage(const std::string& message... | 21.507692 | 53 | 0.702432 | krafczyk |
e0611582d2ae2383e1455983130a81b56f6bf90f | 3,899 | cpp | C++ | tests/testOpenAddressingHash.cpp | tellproject/tellstore | 58fa57b4a62dcfed062aa8c191d3b0e49241ac60 | [
"Apache-2.0"
] | 49 | 2015-09-30T13:02:31.000Z | 2022-03-23T01:12:42.000Z | tests/testOpenAddressingHash.cpp | ngaut/tellstore | 58fa57b4a62dcfed062aa8c191d3b0e49241ac60 | [
"Apache-2.0"
] | 1 | 2016-07-18T03:21:56.000Z | 2016-07-27T05:07:29.000Z | tests/testOpenAddressingHash.cpp | ngaut/tellstore | 58fa57b4a62dcfed062aa8c191d3b0e49241ac60 | [
"Apache-2.0"
] | 10 | 2016-02-25T15:46:13.000Z | 2020-07-02T10:21:24.000Z | /*
* (C) Copyright 2015 ETH Zurich Systems Group (http://www.systems.ethz.ch/) and others.
*
* 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/LICENS... | 28.459854 | 88 | 0.710439 | tellproject |
e0662402ab66259e863a37cf175454d66072fc87 | 3,947 | cpp | C++ | catkin_ws/src/srrg2_core/srrg2_core/src/srrg_messages/message_handlers/message_synchronized_source.cpp | laaners/progetto-labiagi_pick_e_delivery | 3453bfbc1dd7562c78ba06c0f79b069b0a952c0e | [
"MIT"
] | 5 | 2020-03-11T14:36:13.000Z | 2021-09-09T09:01:15.000Z | catkin_ws/src/srrg2_core/srrg2_core/src/srrg_messages/message_handlers/message_synchronized_source.cpp | laaners/progetto-labiagi_pick_e_delivery | 3453bfbc1dd7562c78ba06c0f79b069b0a952c0e | [
"MIT"
] | 1 | 2020-06-07T17:25:04.000Z | 2020-07-15T07:36:10.000Z | catkin_ws/src/srrg2_core/srrg2_core/src/srrg_messages/message_handlers/message_synchronized_source.cpp | laaners/progetto-labiagi_pick_e_delivery | 3453bfbc1dd7562c78ba06c0f79b069b0a952c0e | [
"MIT"
] | 2 | 2020-11-30T08:17:53.000Z | 2021-06-19T05:07:07.000Z | #include "message_synchronized_source.h"
#include "message_pack.h"
#include "srrg_system_utils/shell_colors.h"
namespace srrg2_core {
void MessageSynchronizedSource::clearBuffer() {
// we delete all messages in the buffers
for (auto it = _message_map.begin(); it != _message_map.end(); ++it) {
if (it->... | 32.891667 | 98 | 0.60375 | laaners |
e068180c7c3841ca885196dbf2f2d2d7fd0b2bac | 4,729 | cpp | C++ | RTC/VolumeAdjust/src/VolumeAdjust.cpp | rsdlab/ConductorSystem | 0eff74f570f34f6f9a9d22c40c03c4030db12a4e | [
"MIT"
] | null | null | null | RTC/VolumeAdjust/src/VolumeAdjust.cpp | rsdlab/ConductorSystem | 0eff74f570f34f6f9a9d22c40c03c4030db12a4e | [
"MIT"
] | null | null | null | RTC/VolumeAdjust/src/VolumeAdjust.cpp | rsdlab/ConductorSystem | 0eff74f570f34f6f9a9d22c40c03c4030db12a4e | [
"MIT"
] | null | null | null | // -*- C++ -*-
/*!
* @file VolumeAdjust.cpp
* @brief ModuleDescription
* @date $Date$
*
* $Id$
*/
#include "VolumeAdjust.h"
// Module specification
// <rtc-template block="module_spec">
static const char* volumeadjust_spec[] =
{
"implementation_id", "VolumeAdjust",
"type_name", "VolumeAdjust"... | 20.383621 | 70 | 0.618524 | rsdlab |
e06d0ef15d477fc966c299c097764754af0b4205 | 615 | cpp | C++ | base/fs/sis/groveler/debug.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | base/fs/sis/groveler/debug.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | base/fs/sis/groveler/debug.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*++
Copyright (c) 1998 Microsoft Corporation
Module Name:
debug.cpp
Abstract:
SIS Groveler debug print file
Authors:
John Douceur, 1998
Cedric Krumbein, 1998
Environment:
User Mode
Revision History:
--*/
#include "all.hxx"
#if DBG
VOID __cdecl PrintDeb... | 12.8125 | 65 | 0.585366 | npocmaka |
e0704e8caad5741d51be04513041d9bf2654efc7 | 725 | cc | C++ | base/profiler/stack_sampler.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | base/profiler/stack_sampler.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 802 | 2017-04-21T14:18:36.000Z | 2022-03-31T21:20:48.000Z | base/profiler/stack_sampler.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/profiler/stack_sampler.h"
#include "base/memory/ptr_util.h"
#include "base/profiler/stack_buffer.h"
namespace base {
StackSampler::Stack... | 25.892857 | 73 | 0.758621 | zealoussnow |
2fda1fbec701c99d237ea4c2bb3ff1f8226e6107 | 19,329 | cpp | C++ | sp/src/game/server/hl2/prop_gravity_ball.cpp | ntrf/blamod | d59b5f968264121d013a81ae1ba1f51432030170 | [
"Apache-2.0"
] | 12 | 2016-09-24T02:47:18.000Z | 2020-12-29T16:16:52.000Z | sp/src/game/server/hl2/prop_gravity_ball.cpp | Margen67/blamod | d59b5f968264121d013a81ae1ba1f51432030170 | [
"Apache-2.0"
] | 31 | 2016-11-27T14:38:02.000Z | 2020-06-03T11:11:29.000Z | sp/src/game/server/hl2/prop_gravity_ball.cpp | Margen67/blamod | d59b5f968264121d013a81ae1ba1f51432030170 | [
"Apache-2.0"
] | 3 | 2016-09-24T16:08:44.000Z | 2020-12-30T00:59:58.000Z | //========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose: TE120 combine ball - launched by physconcussion
//
//
//=============================================================================//
#include "cbase.h"
#include "prop_combine_ball.h"
#include "prop_gravity_ball.h"
#include "... | 31.429268 | 173 | 0.62326 | ntrf |
2fdac9740de9a531064d3bb538a3891c02f81bb8 | 3,167 | cc | C++ | chrome/browser/ui/autofill/payments/autofill_progress_dialog_controller_impl.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | chrome/browser/ui/autofill/payments/autofill_progress_dialog_controller_impl.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | chrome/browser/ui/autofill/payments/autofill_progress_dialog_controller_impl.cc | zealoussnow/chromium | fd8a8914ca0183f0add65ae55f04e287543c7d4a | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/autofill/payments/autofill_progress_dialog_controller_impl.h"
#include "components/autofill/core/browser/metrics/autofill_met... | 35.188889 | 89 | 0.791285 | zealoussnow |
2fded95ceaec827151e12e1f6f025b3732cd03d4 | 1,323 | cpp | C++ | tree/left_view_simple_recusion.cpp | kashyap99saksham/Code | 96658d0920eb79c007701d2a3cc9dbf453d78f96 | [
"MIT"
] | 16 | 2020-06-02T19:22:45.000Z | 2022-02-05T10:35:28.000Z | tree/left_view_simple_recusion.cpp | codezoned/Code | de91ffc7ef06812a31464fb40358e2436734574c | [
"MIT"
] | null | null | null | tree/left_view_simple_recusion.cpp | codezoned/Code | de91ffc7ef06812a31464fb40358e2436734574c | [
"MIT"
] | 2 | 2020-08-27T17:40:06.000Z | 2022-02-05T10:33:52.000Z | /*
Given a Binary Tree, print left view of it. Left view of a Binary Tree is set of nodes visible when tree is visited from left side.
left-view
Examples:
Input :
1
/ \
2 3
/ \ \
4 5 6
Output : 1 2 4
Input :
1
/ \... | 16.5375 | 131 | 0.535903 | kashyap99saksham |
2fe31bcb242a2c7da6f07b3090679706be6475a0 | 408 | cpp | C++ | Engine/Audio/_dummy/Audio_ps.cpp | vitei/Usa | c44f893d5b3d8080529ecf0e227f983fddb829d4 | [
"MIT"
] | 47 | 2018-04-27T02:16:26.000Z | 2022-02-28T05:21:24.000Z | Engine/Audio/_dummy/Audio_ps.cpp | vitei/Usa | c44f893d5b3d8080529ecf0e227f983fddb829d4 | [
"MIT"
] | 2 | 2018-11-13T18:46:41.000Z | 2022-03-12T00:04:44.000Z | Engine/Audio/_dummy/Audio_ps.cpp | vitei/Usa | c44f893d5b3d8080529ecf0e227f983fddb829d4 | [
"MIT"
] | 6 | 2019-08-10T21:56:23.000Z | 2020-10-21T11:18:29.000Z | /****************************************************************************
// Usagi Engine, Copyright © Vitei, Inc. 2013
****************************************************************************/
#include "Engine/Common/Common.h"
#include "Audio_ps.h"
namespace usg{
Audio_ps::Audio_ps()
{
}
Audio_ps::~Audio_... | 12.75 | 77 | 0.404412 | vitei |
2fe43e6569d47f6f433679d35f420ed5e6eac3cd | 23,369 | cpp | C++ | src/widgets/numpad_debug.cpp | milostosic/rapp | 5fab06e6fb8e43dda62b4a86b1c4b3e71670b261 | [
"BSD-2-Clause"
] | 53 | 2017-11-08T06:23:47.000Z | 2022-03-25T20:14:38.000Z | src/widgets/numpad_debug.cpp | milostosic/rapp | 5fab06e6fb8e43dda62b4a86b1c4b3e71670b261 | [
"BSD-2-Clause"
] | null | null | null | src/widgets/numpad_debug.cpp | milostosic/rapp | 5fab06e6fb8e43dda62b4a86b1c4b3e71670b261 | [
"BSD-2-Clause"
] | 7 | 2018-09-07T02:27:48.000Z | 2022-03-25T20:14:40.000Z | //--------------------------------------------------------------------------//
/// Copyright (c) 2010-2016 Milos Tosic. All Rights Reserved. ///
/// License: http://www.opensource.org/licenses/BSD-2-Clause ///
//--------------------------------------------------------------------------//
#in... | 34.879104 | 158 | 0.690102 | milostosic |
2fe45aa4c3689136a07eae048668c4d5befce9c7 | 320 | cpp | C++ | source/template/function.cpp | chronoxor/CppTemplate | 57357f3a21f1f8721331a9f4a3758344741858b1 | [
"MIT"
] | 24 | 2016-10-09T04:08:55.000Z | 2022-02-18T01:03:54.000Z | source/template/function.cpp | chronoxor/CppTemplate | 57357f3a21f1f8721331a9f4a3758344741858b1 | [
"MIT"
] | null | null | null | source/template/function.cpp | chronoxor/CppTemplate | 57357f3a21f1f8721331a9f4a3758344741858b1 | [
"MIT"
] | 15 | 2019-01-19T16:04:01.000Z | 2021-09-14T15:07:56.000Z | /*!
\file function.cpp
\brief Template function implementation
\author Ivan Shynkarenka
\date 26.05.2016
\copyright MIT License
*/
#include "template/function.h"
#include <cstdlib>
namespace CppTemplate {
int function(int parameter)
{
return rand() % parameter;
}
} // namespace CppTemplate
| 15.238095 | 43 | 0.69375 | chronoxor |
2fe4a45196ef837f7e4d1c6f4969fd58ed6d0163 | 1,475 | hpp | C++ | include/ML/Editor/Editor_MainMenuBar.hpp | Gurman8r/ML | 171e7865291f3fd9ea748d59f9d4bdb4e2a6eed1 | [
"MIT"
] | 3 | 2019-10-09T19:03:05.000Z | 2019-12-15T14:22:38.000Z | include/ML/Editor/Editor_MainMenuBar.hpp | Gurman8r/ML | 171e7865291f3fd9ea748d59f9d4bdb4e2a6eed1 | [
"MIT"
] | null | null | null | include/ML/Editor/Editor_MainMenuBar.hpp | Gurman8r/ML | 171e7865291f3fd9ea748d59f9d4bdb4e2a6eed1 | [
"MIT"
] | null | null | null | #ifndef _ML_EDITOR_MAIN_MENU_HPP_
#define _ML_EDITOR_MAIN_MENU_HPP_
#include <ML/Editor/Editor_Widget.hpp>
namespace ml
{
/* * * * * * * * * * * * * * * * * * * * */
class ML_EDITOR_API Editor_MainMenuBar final : public Editor_Widget
{
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *... | 23.046875 | 93 | 0.423051 | Gurman8r |
2fe54390124f1481683ad394b8cdc34d24997cba | 7,619 | cpp | C++ | hmdv/hmdfix.cpp | risa2000/hmdq | 5eba01dad407b32d06cd3847ae5057f9b4fb7691 | [
"BSD-3-Clause"
] | 16 | 2019-08-08T15:33:04.000Z | 2022-03-03T20:29:18.000Z | hmdv/hmdfix.cpp | risa2000/hmdq | 5eba01dad407b32d06cd3847ae5057f9b4fb7691 | [
"BSD-3-Clause"
] | 1 | 2021-10-20T06:27:33.000Z | 2021-10-20T19:59:16.000Z | hmdv/hmdfix.cpp | risa2000/hmdq | 5eba01dad407b32d06cd3847ae5057f9b4fb7691 | [
"BSD-3-Clause"
] | 2 | 2020-08-20T07:12:54.000Z | 2022-03-03T20:30:01.000Z | /******************************************************************************
* HMDQ Tools - tools for VR headsets and other hardware introspection *
* https://github.com/risa2000/hmdq *
* *
... | 34.789954 | 89 | 0.55926 | risa2000 |
2fe62929799606f23c74c320cffe4e481624588c | 696 | cpp | C++ | torch_mlu/csrc/aten/operators/bang/dump.cpp | Cambricon/catch | 2625da389f25a67066d20fb6b0c38250ef98f8ab | [
"BSD-2-Clause"
] | 20 | 2022-03-01T11:40:51.000Z | 2022-03-30T08:17:47.000Z | torch_mlu/csrc/aten/operators/bang/dump.cpp | Cambricon/catch | 2625da389f25a67066d20fb6b0c38250ef98f8ab | [
"BSD-2-Clause"
] | null | null | null | torch_mlu/csrc/aten/operators/bang/dump.cpp | Cambricon/catch | 2625da389f25a67066d20fb6b0c38250ef98f8ab | [
"BSD-2-Clause"
] | null | null | null | #include "aten/operators/bang/bang_kernel.h"
#include "aten/operators/bang/internal/bang_internal.h"
namespace torch_mlu {
namespace bang {
namespace ops {
bool bang_dump(const at::Tensor& input) {
auto input_impl = getMluTensorImpl(input);
auto input_ptr = input_impl->cnnlMalloc();
int32_t size = input.n... | 29 | 80 | 0.716954 | Cambricon |
2fe90f86043e426ce667ee98163fbb2abcb3e45b | 22,787 | cpp | C++ | Sources/Elastos/Packages/InputMethods/PinyinIME/src/elastos/droid/inputmethod/pinyin/InputModeSwitcher.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 7 | 2017-07-13T10:34:54.000Z | 2021-04-16T05:40:35.000Z | Sources/Elastos/Packages/InputMethods/PinyinIME/src/elastos/droid/inputmethod/pinyin/InputModeSwitcher.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | null | null | null | Sources/Elastos/Packages/InputMethods/PinyinIME/src/elastos/droid/inputmethod/pinyin/InputModeSwitcher.cpp | jingcao80/Elastos | d0f39852356bdaf3a1234743b86364493a0441bc | [
"Apache-2.0"
] | 9 | 2017-07-13T12:33:20.000Z | 2021-06-19T02:46:48.000Z | //=========================================================================
// Copyright (C) 2012 The Elastos Open Source Project
//
// 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
//
// ... | 35.549142 | 126 | 0.641155 | jingcao80 |
2fea1e25f312515fa2c33c3731c88c9339d6d3ee | 5,442 | hh | C++ | AVR/drv_misc_WS2812.hh | artraze/lillib | 543f9c511b68c83e9c5c34d4446d20b59e730d8f | [
"MIT"
] | null | null | null | AVR/drv_misc_WS2812.hh | artraze/lillib | 543f9c511b68c83e9c5c34d4446d20b59e730d8f | [
"MIT"
] | null | null | null | AVR/drv_misc_WS2812.hh | artraze/lillib | 543f9c511b68c83e9c5c34d4446d20b59e730d8f | [
"MIT"
] | null | null | null | #pragma once
#include "board_cfg.h"
#ifdef DEV_WS2812
#include "device.h"
#if BOARD_CFG_FREQ == 16000000
template<uint8_t kIoi>
void WS2812_send(uint8_t n, uint8_t *grb)
{
// 0: 400ns( 6.4) high, 850ns(13.6) low
// 1: 800ns(12.8) high, 450ns( 7.2) low
// Note that writing a bit to the PIN register toggles the... | 71.605263 | 113 | 0.212238 | artraze |
2feb47bc9d43868e354b96864e908a2e2ee735b9 | 7,004 | cpp | C++ | cpp/benckmark01_inproc_communication/zmq_inproc/bench_zmq_inproc.cpp | ForrestSu/StudyNotes | 7e823de2edbbdb1dc192dfa57c83b1776ef29836 | [
"MIT"
] | null | null | null | cpp/benckmark01_inproc_communication/zmq_inproc/bench_zmq_inproc.cpp | ForrestSu/StudyNotes | 7e823de2edbbdb1dc192dfa57c83b1776ef29836 | [
"MIT"
] | 1 | 2020-10-24T11:30:30.000Z | 2020-10-24T11:30:32.000Z | cpp/benckmark01_inproc_communication/zmq_inproc/bench_zmq_inproc.cpp | ForrestSu/StudyNotes | 7e823de2edbbdb1dc192dfa57c83b1776ef29836 | [
"MIT"
] | null | null | null | /*
* bench_zmq_inproc.cpp
* 测试zmq inproc 发送接收效率, (取代传统的进程间通信带锁的方式)
*
* Created on: 2019年03月14日
*/
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <atomic>
#include <vector>
#include <string>
#include <zmq.h>
#include <chrono>
#include <pthread.h>
#include <unistd.h>
#include <cassert>
int64... | 30.854626 | 136 | 0.643632 | ForrestSu |
2feef87cd92c4cf7ed70cd5289ee1ae1d3b0a2f5 | 6,492 | cpp | C++ | src/drawBitmap.cpp | solhuebner/ardynia | 23e1f2449c7f4919eb88f23faa40cbd141d05249 | [
"MIT"
] | 41 | 2018-10-08T16:40:53.000Z | 2022-02-22T03:10:02.000Z | src/drawBitmap.cpp | paulderson/ardynia | 431663a63471cc8d11d7245c9992bf1cc1746a5a | [
"MIT"
] | 6 | 2019-02-25T03:55:51.000Z | 2021-08-08T20:08:45.000Z | src/drawBitmap.cpp | paulderson/ardynia | 431663a63471cc8d11d7245c9992bf1cc1746a5a | [
"MIT"
] | 14 | 2018-10-08T16:49:59.000Z | 2021-10-05T06:24:55.000Z | #include "drawBitmap.h"
#include <Arduboy2.h>
/**
* draw a bitmap with an optional mask and optional mirroring
*
* This code is a combination of Arduboy2's Sprite::drawExternalMask() and Ardbitmap's drawBitmap()
*
* This method can accomplish the same effect as most of Sprite's methods:
* drawOverwrite: pass in a... | 30.767773 | 166 | 0.504467 | solhuebner |
2fef4489639e885cd1ccf3ab83099f1155306d7e | 534 | cpp | C++ | luogu/p1507.cpp | ajidow/Answers_of_OJ | 70e0c02d9367c3a154b83a277edbf158f32484a3 | [
"MIT"
] | null | null | null | luogu/p1507.cpp | ajidow/Answers_of_OJ | 70e0c02d9367c3a154b83a277edbf158f32484a3 | [
"MIT"
] | null | null | null | luogu/p1507.cpp | ajidow/Answers_of_OJ | 70e0c02d9367c3a154b83a277edbf158f32484a3 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
#define maxn 60
#define maxm 410
using namespace std;
int Vmax,Mmax;
int n;
int v[maxn],m[maxn],cal[maxn];
int dp[maxm][maxm];
int main()
{
scanf("%d %d",&Vmax,&Mmax);
scanf("%d",&n);
for(int i = 1; i <= n; ++i)
{
scanf("%d %d %d",&v[i],&m[i],&cal[i]);
}
for(int i = 1;... | 14.432432 | 55 | 0.490637 | ajidow |
2ff11fc42c7206551433943312a819d138d29b8e | 1,351 | cpp | C++ | demo/future.cpp | YuanL12/BATS | 35a32facc87e17649b7fc32225c8ffaf0301bbfa | [
"MIT"
] | 5 | 2020-04-24T17:34:54.000Z | 2021-04-07T15:56:00.000Z | demo/future.cpp | YuanL12/BATS | 35a32facc87e17649b7fc32225c8ffaf0301bbfa | [
"MIT"
] | 5 | 2021-05-13T14:16:35.000Z | 2021-08-15T15:11:55.000Z | demo/future.cpp | YuanL12/BATS | 35a32facc87e17649b7fc32225c8ffaf0301bbfa | [
"MIT"
] | 1 | 2021-05-09T12:17:30.000Z | 2021-05-09T12:17:30.000Z | #include <bats.hpp>
#include <iostream>
#define FT ModP<int, 3>
int main() {
bats::future::Matrix A(5,5, FT(1));
A(1,0) = 0;
A(2,1) = 2;
A(3,2) = 2;
A.print();
// auto H1 = HessenbergTransform(A);
// H1.print();
// H1.prod().print();
//
// std::cout << "hessenberg_to_companion" << std::endl;
//
// hesse... | 17.776316 | 62 | 0.541821 | YuanL12 |
2ff28ed346fd99064cd2abecccf0ab33431d93af | 399 | cpp | C++ | C++/OOP/inheritance/multilevel-inheritance.cpp | mohitkhedkar/Programming-Language-Basics | 82252d6d056079a1b581e8299b69638d44444e6a | [
"MIT"
] | null | null | null | C++/OOP/inheritance/multilevel-inheritance.cpp | mohitkhedkar/Programming-Language-Basics | 82252d6d056079a1b581e8299b69638d44444e6a | [
"MIT"
] | null | null | null | C++/OOP/inheritance/multilevel-inheritance.cpp | mohitkhedkar/Programming-Language-Basics | 82252d6d056079a1b581e8299b69638d44444e6a | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
class Animal {
public:
void eat(){
cout<<"eating"<<endl;
}
};
class Dog: public Animal{
public:
void bark(){
cout<<"Barking"<<endl;
}
};
class BabyDog: public Dog{
public:
void weep(){
cout<<"Weeping"<<endl;
}
};
int main(... | 13.3 | 30 | 0.52381 | mohitkhedkar |
2ff925f50291ade82dd732d6a582bdeeea36fe7e | 1,620 | cpp | C++ | src/round/common/StringTokenizer.cpp | cybergarage/round-cc | 13fb5c39e9bc14a4ad19f9a63d8d97ddda475ca1 | [
"BSD-3-Clause"
] | null | null | null | src/round/common/StringTokenizer.cpp | cybergarage/round-cc | 13fb5c39e9bc14a4ad19f9a63d8d97ddda475ca1 | [
"BSD-3-Clause"
] | null | null | null | src/round/common/StringTokenizer.cpp | cybergarage/round-cc | 13fb5c39e9bc14a4ad19f9a63d8d97ddda475ca1 | [
"BSD-3-Clause"
] | null | null | null | /******************************************************************
*
* Round for C++
*
* Copyright (C) Satoshi Konno 2015
*
* This is licensed under BSD-style license, see file COPYING.
*
******************************************************************/
#include <round/common/StringTokenizer.h>
Round::StringTokeni... | 27.931034 | 104 | 0.668519 | cybergarage |
2ff9d7d478df79adce264170d405ea95bbfcf349 | 569 | cpp | C++ | messagebuilder.cpp | vcato/sockets | 61badc4c7b5eb010a213467954d4064baea43116 | [
"MIT"
] | null | null | null | messagebuilder.cpp | vcato/sockets | 61badc4c7b5eb010a213467954d4064baea43116 | [
"MIT"
] | null | null | null | messagebuilder.cpp | vcato/sockets | 61badc4c7b5eb010a213467954d4064baea43116 | [
"MIT"
] | null | null | null | #include "messagebuilder.hpp"
#include <iostream>
using std::cerr;
void
MessageBuilder::addChunk(
const char *chunk,
size_t chunk_size,
const MessageHandler& message_handler
)
{
size_t i=0;
while (i!=chunk_size) {
size_t begin = i;
while (i!=chunk_size && chunk[i]!='\0') {
++i;
... | 14.589744 | 47 | 0.602812 | vcato |
2ffdcc5bf5f728e1d17b54d45a3587b197febfac | 1,986 | cpp | C++ | gm/picture.cpp | pospx/external_skia | 7a135275c9fc2a4b3cbdcf9a96e7102724752234 | [
"BSD-3-Clause"
] | 3 | 2020-08-06T00:31:13.000Z | 2021-07-29T07:28:17.000Z | gm/picture.cpp | pospx/external_skia | 7a135275c9fc2a4b3cbdcf9a96e7102724752234 | [
"BSD-3-Clause"
] | 3 | 2020-04-26T17:03:31.000Z | 2020-04-28T14:55:33.000Z | gm/picture.cpp | pospx/external_skia | 7a135275c9fc2a4b3cbdcf9a96e7102724752234 | [
"BSD-3-Clause"
] | 57 | 2016-12-29T02:00:25.000Z | 2021-11-16T01:22:50.000Z | /*
* Copyright 2014 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gm.h"
#include "SkPaint.h"
#include "SkPath.h"
#include "SkPictureRecorder.h"
static sk_sp<SkPicture> make_picture() {
SkPictureRecorder rec;
SkCanvas* canv... | 23.093023 | 78 | 0.650554 | pospx |
2ffea2ad79528e7c0808b12426690b2552f1413d | 2,413 | cpp | C++ | src/Arabic/names/ar_IdFTokens.cpp | BBN-E/serif | 1e2662d82fb1c377ec3c79355a5a9b0644606cb4 | [
"Apache-2.0"
] | 1 | 2022-03-24T19:57:00.000Z | 2022-03-24T19:57:00.000Z | src/Arabic/names/ar_IdFTokens.cpp | BBN-E/serif | 1e2662d82fb1c377ec3c79355a5a9b0644606cb4 | [
"Apache-2.0"
] | null | null | null | src/Arabic/names/ar_IdFTokens.cpp | BBN-E/serif | 1e2662d82fb1c377ec3c79355a5a9b0644606cb4 | [
"Apache-2.0"
] | null | null | null | // Copyright 2008 by BBN Technologies Corp.
// All Rights Reserved.
#include "Generic/common/leak_detection.h"
#include "Arabic/names/ar_IdFTokens.h"
#include <string>
#include <cstdio>
IdFTokens::IdFTokens(){
//arrays are statically allocated
_numTokens = 0;
}
IdFTokens::~IdFTokens(){
resetTokens... | 31.75 | 113 | 0.678823 | BBN-E |
64001866965efbaa045fa902d576df34e221d8fd | 990 | cpp | C++ | LilEngie/Core/src/Entity/SceneManager.cpp | Nordaj/LilEngie | 453cee13c45ae33abe2665e1446fc90e67b1117a | [
"MIT"
] | null | null | null | LilEngie/Core/src/Entity/SceneManager.cpp | Nordaj/LilEngie | 453cee13c45ae33abe2665e1446fc90e67b1117a | [
"MIT"
] | null | null | null | LilEngie/Core/src/Entity/SceneManager.cpp | Nordaj/LilEngie | 453cee13c45ae33abe2665e1446fc90e67b1117a | [
"MIT"
] | null | null | null | #include <vector>
#include <Graphics/Renderer.h>
#include <Entity/Components/Camera.h>
#include <Game/SceneLoader.h>
#include "GameObject.h"
#include "Scene.h"
#include "SceneManager.h"
//Properties
namespace SceneManager
{
//Private
Scene *scene;
}
void SceneManager::SetScene(Scene *s)
{
if (scene != nullptr)
s... | 14.347826 | 80 | 0.694949 | Nordaj |
6400e34a737eb3fba8a54b442d7a577821976df7 | 399 | hpp | C++ | RaiderEngine/ObjectRegistryBase.hpp | rystills/RaiderEngine | 5a5bce4b3eca2f2f8c166e3a6296b07309af0d8a | [
"MIT"
] | 4 | 2019-07-20T08:41:04.000Z | 2022-03-04T01:53:38.000Z | RaiderEngine/ObjectRegistryBase.hpp | rystills/RaiderEngine | 5a5bce4b3eca2f2f8c166e3a6296b07309af0d8a | [
"MIT"
] | null | null | null | RaiderEngine/ObjectRegistryBase.hpp | rystills/RaiderEngine | 5a5bce4b3eca2f2f8c166e3a6296b07309af0d8a | [
"MIT"
] | null | null | null | #pragma once
#include "stdafx.h"
#include "GameObject.hpp"
#include "Light.hpp"
class ObjectRegistryBase {
public:
virtual GameObject* instantiateGameObject(std::string name, glm::vec3 pos, glm::vec3 rot, glm::vec3 scale, std::vector<std::string> extraArgs);
virtual Light* instantiateLight(std::string name, glm::ve... | 36.272727 | 144 | 0.746867 | rystills |
6401d0ca36a268f8acae3ca3adf73ddf79d557d2 | 4,336 | cpp | C++ | src/utils/Log.cpp | pkicki/bench-mr | db22f75062aff47cf0800c8a2189db1f674a93cc | [
"Apache-2.0",
"MIT"
] | 41 | 2021-02-10T08:40:34.000Z | 2022-03-20T18:33:20.000Z | src/utils/Log.cpp | pkicki/bench-mr | db22f75062aff47cf0800c8a2189db1f674a93cc | [
"Apache-2.0",
"MIT"
] | 5 | 2021-06-15T14:27:53.000Z | 2022-02-20T08:16:55.000Z | src/utils/Log.cpp | pkicki/bench-mr | db22f75062aff47cf0800c8a2189db1f674a93cc | [
"Apache-2.0",
"MIT"
] | 23 | 2021-04-07T08:09:49.000Z | 2022-03-20T18:33:53.000Z | #include "Log.h"
#include <stdio.h>
#include <stdlib.h>
#include "smoothers/grips/GRIPS.h"
nlohmann::json Log::_json = {{"runs", nlohmann::json::array()}};
nlohmann::json Log::_currentRun;
void Log::instantiateRun() {
auto time =
std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
char... | 34.688 | 80 | 0.63953 | pkicki |
64028553177bfa199627de11285bd3d494d40879 | 1,218 | cpp | C++ | source/polyvec/curve-tracer/curve_constraints.cpp | dedoardo/polyfit | fea3bb9f28c2a44a55825529198e5c3796ac1fa6 | [
"MIT"
] | 27 | 2020-08-17T17:25:59.000Z | 2022-03-01T05:49:12.000Z | source/polyvec/curve-tracer/curve_constraints.cpp | dedoardo/polyfit | fea3bb9f28c2a44a55825529198e5c3796ac1fa6 | [
"MIT"
] | 4 | 2020-08-26T13:54:59.000Z | 2020-09-21T07:19:22.000Z | source/polyvec/curve-tracer/curve_constraints.cpp | dedoardo/polyfit | fea3bb9f28c2a44a55825529198e5c3796ac1fa6 | [
"MIT"
] | 5 | 2020-08-26T23:26:48.000Z | 2021-01-04T09:06:07.000Z | #include <polyvec/curve-tracer/curve_constraints.hpp>
using namespace polyvec;
GlobFitConstraint_LineDirection::GlobFitConstraint_LineDirection(GlobFitLineParametrization* line, GlobFitCurveParametrization::ParameterAddress& target)
: line(line)
{
this->source_params.push_back(GlobFitCurveParametrization::Paramete... | 39.290323 | 153 | 0.759442 | dedoardo |
64041b31db8531435f261be78200fa5609186602 | 263 | hpp | C++ | src/test/CatchFormatters.hpp | frederic-tingaud-sonarsource/xania | 0cf7bcbd72a0fc4acb3a9d33ba8f325833aeacc9 | [
"BSD-2-Clause"
] | 39 | 2020-07-15T13:36:44.000Z | 2022-03-21T00:46:00.000Z | src/test/CatchFormatters.hpp | frederic-tingaud-sonarsource/xania | 0cf7bcbd72a0fc4acb3a9d33ba8f325833aeacc9 | [
"BSD-2-Clause"
] | 255 | 2020-07-16T17:54:59.000Z | 2022-03-27T20:16:51.000Z | src/test/CatchFormatters.hpp | frederic-tingaud-sonarsource/xania | 0cf7bcbd72a0fc4acb3a9d33ba8f325833aeacc9 | [
"BSD-2-Clause"
] | 11 | 2020-07-15T21:46:48.000Z | 2022-03-24T22:19:17.000Z | #pragma once
#include <catch2/catch.hpp>
#include <fmt/format.h>
template <typename T>
requires fmt::has_formatter<T, fmt::format_context>::value struct Catch::StringMaker<T> {
static std::string convert(const T &value) { return fmt::to_string(value); }
};
| 26.3 | 89 | 0.726236 | frederic-tingaud-sonarsource |
6405f83ca701f14127c5b3f8483e53625a63617b | 27,962 | cpp | C++ | preview/MsixCore/msixmgr/AutoPlay.cpp | rooju/msix-packaging | da46d3b5fbdca03ba4603531bb287d9def9203be | [
"MIT"
] | null | null | null | preview/MsixCore/msixmgr/AutoPlay.cpp | rooju/msix-packaging | da46d3b5fbdca03ba4603531bb287d9def9203be | [
"MIT"
] | null | null | null | preview/MsixCore/msixmgr/AutoPlay.cpp | rooju/msix-packaging | da46d3b5fbdca03ba4603531bb287d9def9203be | [
"MIT"
] | null | null | null | #include <windows.h>
#include <iostream>
#include <algorithm>
#include "RegistryKey.hpp"
#include "AutoPlay.hpp"
#include "../GeneralUtil.hpp"
#include <TraceLoggingProvider.h>
#include "../MsixTraceLoggingProvider.hpp"
#include "Constants.hpp"
#include "CryptoProvider.hpp"
#include "Base32Encoding.hpp"
#i... | 44.954984 | 171 | 0.664008 | rooju |
6408a78f1f877309787a70b763eee146d1036e86 | 2,573 | cc | C++ | source/src/Ht1SAction.cc | hiteshvvr/XrayEfficiency | 50cccf940f1458e83e6d8e1605e5c96478cad4cf | [
"MIT"
] | null | null | null | source/src/Ht1SAction.cc | hiteshvvr/XrayEfficiency | 50cccf940f1458e83e6d8e1605e5c96478cad4cf | [
"MIT"
] | null | null | null | source/src/Ht1SAction.cc | hiteshvvr/XrayEfficiency | 50cccf940f1458e83e6d8e1605e5c96478cad4cf | [
"MIT"
] | null | null | null | //--------------------------------------------------------//
//----------STEPPING ACTION-------------------------------//
//--------------------------------------------------------//
#include "Ht1RAction.hh"
#include "Ht1SAction.hh"
#include "Ht1EAction.hh"
#include "Ht1DetectorConstruction.hh"
#include "Ht1Run.hh"
#... | 31 | 169 | 0.652546 | hiteshvvr |
640a5a98c08ee9e54c620c8b4a67b07b596360d5 | 592 | hpp | C++ | src/ir_2_llvm.hpp | Sokolmish/coursework_3 | 3ce0f70f90b7e79b99f212d03ccacf8b370d54f1 | [
"MIT"
] | null | null | null | src/ir_2_llvm.hpp | Sokolmish/coursework_3 | 3ce0f70f90b7e79b99f212d03ccacf8b370d54f1 | [
"MIT"
] | null | null | null | src/ir_2_llvm.hpp | Sokolmish/coursework_3 | 3ce0f70f90b7e79b99f212d03ccacf8b370d54f1 | [
"MIT"
] | null | null | null | #ifndef IR_2_LLVM_HPP_INCLUDED__
#define IR_2_LLVM_HPP_INCLUDED__
#include <memory>
#include "ir/unit.hpp"
class IR2LLVM {
public:
explicit IR2LLVM(IntermediateUnit const &iunit);
IR2LLVM(IR2LLVM const&) = delete;
IR2LLVM& operator=(IR2LLVM const&) = delete;
[[nodiscard]] std::string getRes() const... | 19.096774 | 59 | 0.714527 | Sokolmish |
640bd5b0256ba44923bd2097a770d6cf1bac4799 | 806 | cpp | C++ | src/VFXSampleBaseViewer/VFXCommonScene.cpp | wakare/Leviathan | 8a488f014d6235c5c6e6422c9f53c82635b7ebf7 | [
"MIT"
] | 3 | 2019-03-05T13:05:30.000Z | 2019-12-16T05:56:21.000Z | src/VFXSampleBaseViewer/VFXCommonScene.cpp | wakare/Leviathan | 8a488f014d6235c5c6e6422c9f53c82635b7ebf7 | [
"MIT"
] | null | null | null | src/VFXSampleBaseViewer/VFXCommonScene.cpp | wakare/Leviathan | 8a488f014d6235c5c6e6422c9f53c82635b7ebf7 | [
"MIT"
] | null | null | null | #include "VFXCommonScene.h"
#include "LevSceneData.h"
#include "LevSceneNode.h"
#include "LevSceneObject.h"
#include "LevSceneObjectDescription.h"
#include "LevNormalScene.h"
#include "LevNumericalUniform.h"
#include "LevRAttrUniformManager.h"
namespace Leviathan
{
namespace Viewer
{
VFXCommonScene::VFXCommonScene... | 26 | 131 | 0.761787 | wakare |
640e25a5443bb2adfc95b094ae08051b0c92beac | 2,160 | cpp | C++ | practice/Data structures/Graph/Euler Path.cpp | vkashkumar/Competitive-Programming | c457e745208c0ca3e45b1ffce254a21504533f51 | [
"MIT"
] | 2 | 2019-01-30T12:45:18.000Z | 2021-05-06T19:02:51.000Z | practice/Data structures/Graph/Euler Path.cpp | vkashkumar/Competitive-Programming | c457e745208c0ca3e45b1ffce254a21504533f51 | [
"MIT"
] | null | null | null | practice/Data structures/Graph/Euler Path.cpp | vkashkumar/Competitive-Programming | c457e745208c0ca3e45b1ffce254a21504533f51 | [
"MIT"
] | 3 | 2020-10-02T15:42:04.000Z | 2022-03-27T15:14:16.000Z | #include<bits/stdc++.h>
using namespace std;
#define fast ios::sync_with_stdio(false);cin.tie(0)
#define pb push_back
#define digit(x) floor(log10(x))+1
#define mod 1000000007
#define endl "\n"
#define int long long
#define matrix vector<vector<int> >
#define vi vector<int>
#define pii pair<int,int>
#define vs vector<s... | 22.736842 | 70 | 0.522222 | vkashkumar |
640ef212363af275b62548b75b00467c81615297 | 10,028 | cc | C++ | tensorflow/core/kernels/matrix_triangular_solve_op.cc | c0g/tomserflow | f7b42f6ba58c3ff20ecd002535d2cca5d93bcf8e | [
"Apache-2.0"
] | null | null | null | tensorflow/core/kernels/matrix_triangular_solve_op.cc | c0g/tomserflow | f7b42f6ba58c3ff20ecd002535d2cca5d93bcf8e | [
"Apache-2.0"
] | null | null | null | tensorflow/core/kernels/matrix_triangular_solve_op.cc | c0g/tomserflow | f7b42f6ba58c3ff20ecd002535d2cca5d93bcf8e | [
"Apache-2.0"
] | null | null | null | /* Copyright 2015 Google Inc. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
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 ... | 36.867647 | 94 | 0.674611 | c0g |
640f9dbc3b4c998391f88f9691a65f12ade5ca26 | 3,066 | hpp | C++ | include/dataflow/blocks/impl/GeneratorBlock.hpp | Klirxel/DataFlowFramework | 5da51e794a4dac613e1fed96d3e8da68af6d7203 | [
"BSL-1.0"
] | null | null | null | include/dataflow/blocks/impl/GeneratorBlock.hpp | Klirxel/DataFlowFramework | 5da51e794a4dac613e1fed96d3e8da68af6d7203 | [
"BSL-1.0"
] | null | null | null | include/dataflow/blocks/impl/GeneratorBlock.hpp | Klirxel/DataFlowFramework | 5da51e794a4dac613e1fed96d3e8da68af6d7203 | [
"BSL-1.0"
] | null | null | null | #include <future>
#include <utility>
#include "../GeneratorBlock.h"
namespace dataflow::blocks {
template <typename OPERATOR, typename... T_OUT, typename OUTPUT_PREDICATE>
GeneratorBlock<OPERATOR, ChannelBundle<T_OUT...>, OUTPUT_PREDICATE>::GeneratorBlock(
OPERATOR& op,
ChannelBundle<T_OUT...> outputChannels... | 32.273684 | 113 | 0.722766 | Klirxel |
64110b5df90cb18944554afc169a8d4d9f33a89a | 1,714 | cpp | C++ | Chapter6-Graph/src/exercise1_zhangming/6-1-13.cpp | caoshenghui/DataStructures | b028bbdb3156537637eed87d634313820b0f295a | [
"MIT"
] | 4 | 2021-03-01T13:24:24.000Z | 2022-03-06T10:58:34.000Z | Chapter6-Graph/src/exercise1_zhangming/6-1-13.cpp | caoshenghui/DataStructures | b028bbdb3156537637eed87d634313820b0f295a | [
"MIT"
] | null | null | null | Chapter6-Graph/src/exercise1_zhangming/6-1-13.cpp | caoshenghui/DataStructures | b028bbdb3156537637eed87d634313820b0f295a | [
"MIT"
] | 1 | 2021-03-01T13:24:32.000Z | 2021-03-01T13:24:32.000Z | // File: 6-1-13.cpp
// Author: csh
// Date: 2020/12/26
// ===================
// 无向图
void Graph::Apart(){
int i, j;
for(i = 0; i < numVertex; i++)
Mark[i] = UNVISITED;
for(i = 0; i < numVertex; i++){
// 检查所有顶点是否被标记,从未标记顶点开始周游
if(Mark[i] == UNVISITED){
do_travers... | 22.25974 | 60 | 0.452742 | caoshenghui |
64139d8a85b21b523f3c202a4ac876b16c35fd4e | 581 | cpp | C++ | kody_projektowe/sieci_tymczasowe_propagacja/sieci_tymczasowe_propagacja/Connections.cpp | sirsz/Elpis | 7bb5e77deb98c6b9da5a7c98025d92de9f6e29c2 | [
"Unlicense"
] | null | null | null | kody_projektowe/sieci_tymczasowe_propagacja/sieci_tymczasowe_propagacja/Connections.cpp | sirsz/Elpis | 7bb5e77deb98c6b9da5a7c98025d92de9f6e29c2 | [
"Unlicense"
] | null | null | null | kody_projektowe/sieci_tymczasowe_propagacja/sieci_tymczasowe_propagacja/Connections.cpp | sirsz/Elpis | 7bb5e77deb98c6b9da5a7c98025d92de9f6e29c2 | [
"Unlicense"
] | null | null | null | #include "StdAfx.h"
#include "Connections.h"
CConnections::CConnections(void)
: NumberConnections(0)
, From(NULL)
, Target(NULL)
{
}
CConnections::~CConnections(void)
{
Destroy();
}
int CConnections::Create(int N)
{
Destroy();
if(N>0)
{
NumberConnections = N;
From = new int [N];
Ta... | 12.630435 | 34 | 0.566265 | sirsz |
641f0847696f11c80a80a947cad10885eabd3359 | 7,191 | cpp | C++ | driver/pwm/imxpwm/file.cpp | pjgorka88/imx-iotcore | c73879479ed026e607bf8ac111c836940a7aca00 | [
"MIT"
] | 68 | 2018-12-16T11:03:08.000Z | 2021-09-30T19:14:02.000Z | driver/pwm/imxpwm/file.cpp | pjgorka88/imx-iotcore | c73879479ed026e607bf8ac111c836940a7aca00 | [
"MIT"
] | 72 | 2018-12-18T01:13:18.000Z | 2019-11-08T02:13:07.000Z | driver/pwm/imxpwm/file.cpp | pjgorka88/imx-iotcore | c73879479ed026e607bf8ac111c836940a7aca00 | [
"MIT"
] | 43 | 2018-12-14T21:38:49.000Z | 2021-10-01T02:17:22.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
//
// Module Name:
//
// file.cpp
//
// Abstract:
//
// This module contains methods implementation for the file object create/close
// callbacks.
//
// Environment:
//
// Kernel mode only
//
#include "precomp.h"
#prag... | 30.470339 | 97 | 0.624531 | pjgorka88 |
6420821e1c120f18bc426ff2449745f8b9088127 | 10,826 | hpp | C++ | softlight/include/softlight/SL_BoundingBox.hpp | Kim-Du-Yeon/SoftLight | 26c1c04be5a99167f2cda0c7a992cecdc8259968 | [
"MIT"
] | 27 | 2019-04-22T01:51:51.000Z | 2022-02-11T06:12:17.000Z | softlight/include/softlight/SL_BoundingBox.hpp | Kim-Du-Yeon/SoftLight | 26c1c04be5a99167f2cda0c7a992cecdc8259968 | [
"MIT"
] | 1 | 2021-11-12T05:19:52.000Z | 2021-11-12T05:19:52.000Z | softlight/include/softlight/SL_BoundingBox.hpp | Kim-Du-Yeon/SoftLight | 26c1c04be5a99167f2cda0c7a992cecdc8259968 | [
"MIT"
] | 2 | 2020-09-07T03:04:39.000Z | 2021-11-09T06:08:37.000Z |
#ifndef SL_BOUNDING_BOX_HPP
#define SL_BOUNDING_BOX_HPP
#include "lightsky/math/vec3.h"
#include "lightsky/math/vec4.h"
#include "lightsky/math/vec_utils.h"
#include "lightsky/math/mat4.h"
/**
* @brief Bounding Box Class
*/
class SL_BoundingBox
{
private:
ls::math::vec4 mMaxPoint;
ls::math::vec4 mMinP... | 26.086747 | 87 | 0.554776 | Kim-Du-Yeon |
642093883101895e2ced777fc54429b453950c07 | 337 | hpp | C++ | 2018/ED/atividade/include/Node.hpp | LorhanSohaky/UFSCar | af0e84946cbb61b12dfa738610065bbb0f4887a2 | [
"MIT"
] | 1 | 2021-04-24T05:33:26.000Z | 2021-04-24T05:33:26.000Z | 2018/ED/atividade/include/Node.hpp | LorhanSohaky/UFSCar | af0e84946cbb61b12dfa738610065bbb0f4887a2 | [
"MIT"
] | 8 | 2020-11-21T05:22:13.000Z | 2021-09-22T13:42:22.000Z | 2018/ED/atividade/include/Node.hpp | LorhanSohaky/UFSCar | af0e84946cbb61b12dfa738610065bbb0f4887a2 | [
"MIT"
] | 1 | 2018-11-18T15:50:55.000Z | 2018-11-18T15:50:55.000Z | #ifndef NODE_HPP
#define NODE_HPP
template < class T >
class Node {
public:
explicit Node( const int key, const T value, Node* const left, Node* const right );
T getValue() const;
int getKey() const;
Node* left;
Node* right;
int height;
private:
int key;
T value;
};
#include "../... | 15.318182 | 87 | 0.623145 | LorhanSohaky |
64225a6536c7393dd05f0a83d328c12af8b3fda5 | 459 | cpp | C++ | level1 pro/p01.cpp | Randle-Github/c2021 | f08649b34b2db1fa548c187386e787acdd00de71 | [
"MIT"
] | null | null | null | level1 pro/p01.cpp | Randle-Github/c2021 | f08649b34b2db1fa548c187386e787acdd00de71 | [
"MIT"
] | null | null | null | level1 pro/p01.cpp | Randle-Github/c2021 | f08649b34b2db1fa548c187386e787acdd00de71 | [
"MIT"
] | null | null | null | #include<bits/stdc++.h>
#include<cstring>
#include<windows.h>
using namespace std;
int main()
{
string s="x";
while(true){
for(int i=1;i<=30;i++){
cout<<s;
Sleep(100);
system("cls");
string k=" ";
s=k.append(s);
}
for(int i=1;i<=30... | 19.125 | 31 | 0.411765 | Randle-Github |
642c4a580020b110e07d7ed3938e43c59fbb95af | 2,420 | cpp | C++ | source/Library.Shared/Utility.cpp | ssshammi/real-time-3d-rendering-with-directx-and-hlsl | 05a05c5c26784dafa9a89747276f385252951f2f | [
"MIT"
] | 12 | 2019-08-18T19:28:55.000Z | 2022-03-29T12:55:20.000Z | str/wstring_convert/varcholik/Utility.cpp | gusenov/examples-cpp | 2cd0abe15bf534c917bcfbca70694daaa19c4612 | [
"MIT"
] | null | null | null | str/wstring_convert/varcholik/Utility.cpp | gusenov/examples-cpp | 2cd0abe15bf534c917bcfbca70694daaa19c4612 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "Utility.h"
using namespace std;
namespace Library
{
void Utility::GetFileName(const string& inputPath, string& filename)
{
string fullPath(inputPath);
replace(fullPath.begin(), fullPath.end(), '\\', '/');
string::size_type lastSlashIndex = fullPath.find_last_of('/');
if (lastSla... | 22.201835 | 88 | 0.682645 | ssshammi |
643358c9777896d06012fac8be2f28df2c499053 | 2,625 | cpp | C++ | include/taichi/visualization/json_pakua.cpp | gonnavis/taichi | ba1898643e4548a23ecae340e963614b28b8a103 | [
"MIT"
] | 2 | 2019-06-25T02:12:37.000Z | 2019-06-25T02:12:48.000Z | include/taichi/visualization/json_pakua.cpp | gonnavis/taichi | ba1898643e4548a23ecae340e963614b28b8a103 | [
"MIT"
] | null | null | null | include/taichi/visualization/json_pakua.cpp | gonnavis/taichi | ba1898643e4548a23ecae340e963614b28b8a103 | [
"MIT"
] | 1 | 2021-11-29T22:47:24.000Z | 2021-11-29T22:47:24.000Z | /*******************************************************************************
Copyright (c) The Taichi Authors (2016- ). All Rights Reserved.
The use of this software is governed by the LICENSE file.
*******************************************************************************/
#include <thread>
#include ... | 26.785714 | 80 | 0.555048 | gonnavis |
643470cae896de052f1a6d5c1a9c45654b24b8bb | 1,162 | hpp | C++ | bat/msvc/private/test/cmdbit/msvc2019/tools/find_in.hpp | Kartonagnick/bat_engine-windows | 455e4a40c6df16520d5695a75752013b41340a83 | [
"MIT"
] | null | null | null | bat/msvc/private/test/cmdbit/msvc2019/tools/find_in.hpp | Kartonagnick/bat_engine-windows | 455e4a40c6df16520d5695a75752013b41340a83 | [
"MIT"
] | 22 | 2020-12-28T04:36:24.000Z | 2021-01-05T04:49:29.000Z | bat/msvc/private/test/garbage/msvc2019/tools/find_in.hpp | Kartonagnick/bat_engine-windows | 455e4a40c6df16520d5695a75752013b41340a83 | [
"MIT"
] | null | null | null |
#pragma once
#ifndef dFSYSTEM_FIND_IN_USED_
#define dFSYSTEM_FIND_IN_USED_ 1
#include <functional>
#include <string>
#include <list>
//==============================================================================
//==============================================================================
namespace fsystem
{
... | 24.208333 | 80 | 0.437177 | Kartonagnick |
643474b9efb34aa7004f76d894996c431760610c | 1,042 | cpp | C++ | lucida/imagematching/opencv_imm/server/IMMServer.cpp | rlugojr/lucida | a2a59d131dbf0835572faf0a968359829f199aa3 | [
"BSD-3-Clause"
] | 1 | 2017-07-31T15:26:32.000Z | 2017-07-31T15:26:32.000Z | lucida/imagematching/opencv_imm/server/IMMServer.cpp | rlugojr/lucida | a2a59d131dbf0835572faf0a968359829f199aa3 | [
"BSD-3-Clause"
] | 1 | 2021-02-08T20:25:37.000Z | 2021-02-08T20:25:37.000Z | lucida/imagematching/opencv_imm/server/IMMServer.cpp | iru-ken/lucida | cd060b0aa0d8721828a8f37b271e1aa83e76ea6f | [
"BSD-3-Clause"
] | 1 | 2017-03-19T11:02:14.000Z | 2017-03-19T11:02:14.000Z | #include <iostream>
#include <thrift/lib/cpp2/server/ThriftServer.h>
#include <thrift/lib/cpp2/async/HeaderClientChannel.h>
DEFINE_int32(port,
8082,
"Port for IMM service (default: 8082)");
DEFINE_int32(num_of_threads,
4,
"Number of threads (default: 4)");
#include "IMMHandler.h"
using namespace folly;
usi... | 22.170213 | 57 | 0.737044 | rlugojr |
6435dedcd2519942859f49e672df56718525674f | 103 | cpp | C++ | pctg_complex.cpp | julky117/Prota | a9ff73e4db3de4577b5d93cdbf7785a5451a197b | [
"MIT"
] | null | null | null | pctg_complex.cpp | julky117/Prota | a9ff73e4db3de4577b5d93cdbf7785a5451a197b | [
"MIT"
] | null | null | null | pctg_complex.cpp | julky117/Prota | a9ff73e4db3de4577b5d93cdbf7785a5451a197b | [
"MIT"
] | null | null | null | #include "pctg_complex.h"
pctg_complex_t::pctg_complex_t(const int position) : position(position) {} | 34.333333 | 74 | 0.776699 | julky117 |
64371860c2204810ff38d9c47e07233a2c755006 | 1,599 | cpp | C++ | pronto/core/components/point_light.cpp | MgBag/pronto | c10827e094726d8dc285c3da68c9c03be42d9a32 | [
"MIT"
] | null | null | null | pronto/core/components/point_light.cpp | MgBag/pronto | c10827e094726d8dc285c3da68c9c03be42d9a32 | [
"MIT"
] | null | null | null | pronto/core/components/point_light.cpp | MgBag/pronto | c10827e094726d8dc285c3da68c9c03be42d9a32 | [
"MIT"
] | null | null | null | #include "point_light.h"
#include "platform/resource.h"
#include "core/entity.h"
#include "core/world.h"
#include "core/application.h"
#include "platform/renderer.h"
namespace pronto
{
PointLight::PointLight(Entity* ent) :
Component(ent),
attenuation_(100.f),
color_(glm::vec3(1, 1, 1)),
intensity_(50... | 19.5 | 76 | 0.654159 | MgBag |
64379ece0c2367f196cd4e054b7711692a305131 | 2,230 | cc | C++ | chrome/browser/invalidation/ticl_invalidation_service_unittest.cc | nagineni/chromium-crosswalk | 5725642f1c67d0f97e8613ec1c3e8107ab53fdf8 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 231 | 2015-01-08T09:04:44.000Z | 2021-12-30T03:03:10.000Z | chrome/browser/invalidation/ticl_invalidation_service_unittest.cc | j4ckfrost/android_external_chromium_org | a1a3dad8b08d1fcf6b6b36c267158ed63217c780 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2017-02-14T21:55:58.000Z | 2017-02-14T21:55:58.000Z | chrome/browser/invalidation/ticl_invalidation_service_unittest.cc | j4ckfrost/android_external_chromium_org | a1a3dad8b08d1fcf6b6b36c267158ed63217c780 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 268 | 2015-01-21T05:53:28.000Z | 2022-03-25T22:09:01.000Z | // Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/invalidation/ticl_invalidation_service.h"
#include "chrome/browser/invalidation/invalidation_service_factory.h"
#include "ch... | 34.307692 | 75 | 0.773094 | nagineni |
6438402a08ef58b7fccd04182984ed6d272e562e | 1,945 | hpp | C++ | mnist_vae_cnn/vae_utils.hpp | akhandait/models | 1ec71f34f8a9401825eb2f6f586012761b71584e | [
"BSD-3-Clause"
] | 54 | 2020-03-20T05:40:01.000Z | 2022-03-18T13:56:46.000Z | mnist_vae_cnn/vae_utils.hpp | akhandait/models | 1ec71f34f8a9401825eb2f6f586012761b71584e | [
"BSD-3-Clause"
] | 136 | 2020-03-19T18:23:18.000Z | 2022-03-31T09:08:10.000Z | mnist_vae_cnn/vae_utils.hpp | akhandait/models | 1ec71f34f8a9401825eb2f6f586012761b71584e | [
"BSD-3-Clause"
] | 47 | 2020-03-20T11:51:34.000Z | 2022-03-23T15:44:10.000Z | /**
* @file vae_utils.cpp
* @author Atharva Khandait
*
* Utility function necessary for training and working with VAE models.
*
* mlpack is free software; you may redistribute it and/or modify it under the
* terms of the 3-clause BSD license. You should have received a copy of the
* 3-clause BSD license along ... | 28.188406 | 78 | 0.666324 | akhandait |
64384b178a8d27d119a2054dcd9134bb5307a8da | 2,985 | inl | C++ | include/Fission/Base/hsv_conversions.inl | lazergenixdev/Fission | da4151c37d81c19a77fe3d78d181da6c16ba4ddd | [
"MIT"
] | 1 | 2021-02-28T10:58:11.000Z | 2021-02-28T10:58:11.000Z | include/Fission/Base/hsv_conversions.inl | lazergenixdev/Fission | da4151c37d81c19a77fe3d78d181da6c16ba4ddd | [
"MIT"
] | 1 | 2021-07-06T17:34:48.000Z | 2021-09-16T20:41:57.000Z | include/Fission/Base/hsv_conversions.inl | lazergenixdev/Fission | da4151c37d81c19a77fe3d78d181da6c16ba4ddd | [
"MIT"
] | null | null | null | /**
*
* @file: hsv_conversions.inl
* @author: lazergenixdev@gmail.com
*
*
* This file is provided under the MIT License:
*
* Copyright (c) 2021 Lazergenix Software
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to ... | 29.264706 | 80 | 0.59263 | lazergenixdev |
64385ac90f0bb810e26972f831b4f2ba5c967011 | 174 | cpp | C++ | Code/structure/structure5.cpp | capacitybuilding/Fundamentals-of-Programming-Source-Code | 76d9a70b6b36c7eb1992de3806d1a16584904f76 | [
"MIT"
] | null | null | null | Code/structure/structure5.cpp | capacitybuilding/Fundamentals-of-Programming-Source-Code | 76d9a70b6b36c7eb1992de3806d1a16584904f76 | [
"MIT"
] | null | null | null | Code/structure/structure5.cpp | capacitybuilding/Fundamentals-of-Programming-Source-Code | 76d9a70b6b36c7eb1992de3806d1a16584904f76 | [
"MIT"
] | null | null | null | #include<iostream>
using namespace std;
struct Student{
string name;
string id;
int year;
string dep;
float gpa;
}s2, s3;
int main(){
Student s1;
}
| 11.6 | 20 | 0.614943 | capacitybuilding |
643b0da1d1a79b461a9ab287360ad0f77b3f9b18 | 14,449 | cpp | C++ | src/RenderSystem/Vulkan/Managers/CDeviceMemoryManager.cpp | przemyslaw-szymanski/vke | 1d8fb139e0e995e330db6b8873dfc49463ec312c | [
"MIT"
] | 1 | 2018-01-06T04:44:36.000Z | 2018-01-06T04:44:36.000Z | src/RenderSystem/Vulkan/Managers/CDeviceMemoryManager.cpp | przemyslaw-szymanski/vke | 1d8fb139e0e995e330db6b8873dfc49463ec312c | [
"MIT"
] | null | null | null | src/RenderSystem/Vulkan/Managers/CDeviceMemoryManager.cpp | przemyslaw-szymanski/vke | 1d8fb139e0e995e330db6b8873dfc49463ec312c | [
"MIT"
] | null | null | null | #include "RenderSystem/Vulkan/Managers/CDeviceMemoryManager.h"
#if VKE_VULKAN_RENDERER
#include "RenderSystem/CDeviceContext.h"
#include "RenderSystem/CDDI.h"
namespace VKE
{
namespace RenderSystem
{
CDeviceMemoryManager::CDeviceMemoryManager(CDeviceContext* pCtx) :
m_pCtx{ pCtx }
{
... | 40.247911 | 172 | 0.522181 | przemyslaw-szymanski |
643b2731e65bb36d7d7cac192ee3a77c4e702308 | 906 | hpp | C++ | src/holosuite-lib/holocapture/HoloCaptureOpenNI2Listener.hpp | itsermo/holosuite | 16659efec910a4050ddd6548b1310e3ed09636e0 | [
"BSD-3-Clause"
] | null | null | null | src/holosuite-lib/holocapture/HoloCaptureOpenNI2Listener.hpp | itsermo/holosuite | 16659efec910a4050ddd6548b1310e3ed09636e0 | [
"BSD-3-Clause"
] | null | null | null | src/holosuite-lib/holocapture/HoloCaptureOpenNI2Listener.hpp | itsermo/holosuite | 16659efec910a4050ddd6548b1310e3ed09636e0 | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include "../holocommon/CommonDefs.hpp"
#include <log4cxx/log4cxx.h>
#include <opencv2/opencv.hpp>
#include <OpenNI.h>
#include <mutex>
#include <condition_variable>
#define HOLO_CAPTURE_OPENNI2_MUTEX_TIMEOUT_MS 30
namespace holo
{
namespace capture
{
class HoloCaptureOpenNI2Listener : public openni... | 20.133333 | 81 | 0.756071 | itsermo |
643bd58227e5fc842f483310d28910448b8f85db | 3,207 | cpp | C++ | Classes/GameScene.cpp | danielgimenes/Frenzy | bf6aef2de3b4f22baef98ce08121fc1fdc3f5c53 | [
"MIT"
] | 2 | 2015-09-07T05:15:11.000Z | 2019-01-09T02:37:05.000Z | Classes/GameScene.cpp | danielgimenes/Frenzy | bf6aef2de3b4f22baef98ce08121fc1fdc3f5c53 | [
"MIT"
] | null | null | null | Classes/GameScene.cpp | danielgimenes/Frenzy | bf6aef2de3b4f22baef98ce08121fc1fdc3f5c53 | [
"MIT"
] | null | null | null | #include "GameScene.h"
#include "Colors.h"
USING_NS_CC;
Scene* GameScene::createScene()
{
// 'scene' is an autorelease object
auto scene = Scene::create();
// 'layer' is an autorelease object
auto layer = GameScene::create();
// add layer as a child to scene
scene->addChild(layer);
... | 29.971963 | 151 | 0.664484 | danielgimenes |
643cb5edcd9a93bd2ad13b582851a54cefb312f5 | 708 | cpp | C++ | Algorithms/2.add-two-numbers/add-two-numbers_2-dfs.cpp | OctopusLian/leetcode-solutions | 40920d11c584504e805d103cdc6ef3f3774172b3 | [
"MIT"
] | 1 | 2020-12-01T18:35:24.000Z | 2020-12-01T18:35:24.000Z | Algorithms/2.add-two-numbers/add-two-numbers_2-dfs.cpp | OctopusLian/leetcode-solutions | 40920d11c584504e805d103cdc6ef3f3774172b3 | [
"MIT"
] | 18 | 2020-11-10T05:48:29.000Z | 2020-11-26T08:39:20.000Z | Algorithms/2.add-two-numbers/add-two-numbers_2-dfs.cpp | OctopusLian/leetcode-solutions | 40920d11c584504e805d103cdc6ef3f3774172b3 | [
"MIT"
] | 5 | 2020-11-09T07:43:00.000Z | 2021-12-02T14:59:37.000Z | /**
* Definition for singly-linked list.
* struct ListNode {
* int val;
* ListNode *next;
* ListNode() : val(0), next(nullptr) {}
* ListNode(int x) : val(x), next(nullptr) {}
* ListNode(int x, ListNode *next) : val(x), next(next) {}
* };
*/
class Solution {
public:
ListNode* addTwoNumbe... | 29.5 | 81 | 0.524011 | OctopusLian |
64423b92acd78d7636aad9ee0f9d39f4b190b3ed | 5,072 | cpp | C++ | gameOfLife/main.cpp | anAwesomeWave/sfmlGames | 6e262b80dbe625451125cc62e65113ca1ced542e | [
"MIT"
] | null | null | null | gameOfLife/main.cpp | anAwesomeWave/sfmlGames | 6e262b80dbe625451125cc62e65113ca1ced542e | [
"MIT"
] | null | null | null | gameOfLife/main.cpp | anAwesomeWave/sfmlGames | 6e262b80dbe625451125cc62e65113ca1ced542e | [
"MIT"
] | null | null | null | #include <SFML/GRAPHICS.hpp>
#include <iostream>
using namespace sf;
void createCube(int arrOfCubes[62][62]) {
for(int i = 1; i < 61; i ++) {
for(int j = 1; j < 61; j ++) {
if(arrOfCubes[i][j] == 0) {
int numberOfCubes = 0;
if(arrOfCubes[i-1][j-1] == 1 || arrOfC... | 37.57037 | 125 | 0.440457 | anAwesomeWave |
6444adcd77313e5b74b96ba2b1c86d23c302bdd9 | 9,084 | hpp | C++ | Generated Files/Scenario5_MatsTexs.g.hpp | hot3dx/RotoDraw3D-DirectX-12 | be854c55ce784fe9ce6298ae962aa4eac08aa534 | [
"MIT"
] | null | null | null | Generated Files/Scenario5_MatsTexs.g.hpp | hot3dx/RotoDraw3D-DirectX-12 | be854c55ce784fe9ce6298ae962aa4eac08aa534 | [
"MIT"
] | null | null | null | Generated Files/Scenario5_MatsTexs.g.hpp | hot3dx/RotoDraw3D-DirectX-12 | be854c55ce784fe9ce6298ae962aa4eac08aa534 | [
"MIT"
] | null | null | null | //------------------------------------------------------------------------------
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//-----------------------------------------------------------------------------... | 36.336 | 239 | 0.561867 | hot3dx |
64460cb1484577ce0dfd24ee892719fc986ca795 | 2,780 | cc | C++ | cdn/src/model/ModifyFileCacheExpiredConfigRequest.cc | sdk-team/aliyun-openapi-cpp-sdk | d0e92f6f33126dcdc7e40f60582304faf2c229b7 | [
"Apache-2.0"
] | 3 | 2020-01-06T08:23:14.000Z | 2022-01-22T04:41:35.000Z | cdn/src/model/ModifyFileCacheExpiredConfigRequest.cc | sdk-team/aliyun-openapi-cpp-sdk | d0e92f6f33126dcdc7e40f60582304faf2c229b7 | [
"Apache-2.0"
] | null | null | null | cdn/src/model/ModifyFileCacheExpiredConfigRequest.cc | sdk-team/aliyun-openapi-cpp-sdk | d0e92f6f33126dcdc7e40f60582304faf2c229b7 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required... | 26.47619 | 93 | 0.771942 | sdk-team |
6446489f3bc7686b13790767d3634e2a0f2f0aa2 | 754 | cpp | C++ | src/simulator/vulkan/semaphore.cpp | happydpc/RobotSimulator | 0c09d09e802c3118a2beabc7999637ce1fa4e7a7 | [
"MIT"
] | 1 | 2021-12-22T18:24:08.000Z | 2021-12-22T18:24:08.000Z | src/simulator/vulkan/semaphore.cpp | happydpc/RobotSimulator | 0c09d09e802c3118a2beabc7999637ce1fa4e7a7 | [
"MIT"
] | null | null | null | src/simulator/vulkan/semaphore.cpp | happydpc/RobotSimulator | 0c09d09e802c3118a2beabc7999637ce1fa4e7a7 | [
"MIT"
] | null | null | null | //--------------------------------------------------
// Robot Simulator
// semaphore.cpp
// Date: 24/06/2020
// By Breno Cunha Queiroz
//--------------------------------------------------
#include "semaphore.h"
Semaphore::Semaphore(Device* device)
{
_device = device;
VkSemaphoreCreateInfo semaphoreInfo{};
semap... | 23.5625 | 112 | 0.600796 | happydpc |
644798953569b9ef0bb7edf4ed78e2e4f7a17f15 | 8,707 | tcc | C++ | libiop/protocols/encoded/common/rational_linear_combination.tcc | alexander-zw/libiop | a2ed2ec2f3e85f29b6035951553b02cb737c817a | [
"MIT"
] | null | null | null | libiop/protocols/encoded/common/rational_linear_combination.tcc | alexander-zw/libiop | a2ed2ec2f3e85f29b6035951553b02cb737c817a | [
"MIT"
] | null | null | null | libiop/protocols/encoded/common/rational_linear_combination.tcc | alexander-zw/libiop | a2ed2ec2f3e85f29b6035951553b02cb737c817a | [
"MIT"
] | null | null | null | #include "libiop/algebra/utils.hpp"
namespace libiop {
template<typename FieldT>
combined_denominator<FieldT>::combined_denominator(const std::size_t num_rationals) :
num_rationals_(num_rationals)
{
}
/* Returns the product of all the denominators */
template<typename FieldT>
std::shared_ptr<std::vector<FieldT>>... | 36.279167 | 111 | 0.683932 | alexander-zw |
64489282c7c1649226ff6f3dfb5152fa25dd174d | 9,447 | cpp | C++ | BRE/GeometryPass/GeometryPass.cpp | nicolasbertoa/D3D12Base | cdf36d9a6ef8ab3860a03cb250032a0690f89851 | [
"BSD-3-Clause"
] | 9 | 2016-07-14T05:43:45.000Z | 2016-10-31T15:21:53.000Z | BRE/GeometryPass/GeometryPass.cpp | yang-shuohao/BRE12 | cdf36d9a6ef8ab3860a03cb250032a0690f89851 | [
"BSD-3-Clause"
] | null | null | null | BRE/GeometryPass/GeometryPass.cpp | yang-shuohao/BRE12 | cdf36d9a6ef8ab3860a03cb250032a0690f89851 | [
"BSD-3-Clause"
] | null | null | null | #include "GeometryPass.h"
#include <d3d12.h>
#include <DirectXColors.h>
#include <tbb/parallel_for.h>
#include <CommandListExecutor/CommandListExecutor.h>
#include <DescriptorManager\CbvSrvUavDescriptorManager.h>
#include <DescriptorManager\RenderTargetDescriptorManager.h>
#include <DirectXManager\DirectXManager.h>
#... | 41.986667 | 132 | 0.659998 | nicolasbertoa |
64495b0aa5d86ae44570c2d99cb6363e1d63ca9b | 526 | cpp | C++ | Source Code/05_functions_and_random/05_06_random_seed.cpp | rushone2010/CS_A150 | 0acab19e69c051f67b8dafe904ca77de0431958d | [
"MIT"
] | 2 | 2017-03-18T22:04:47.000Z | 2017-03-30T23:24:53.000Z | Source Code/05_functions_and_random/05_06_random_seed.cpp | rushone2010/CS_A150 | 0acab19e69c051f67b8dafe904ca77de0431958d | [
"MIT"
] | null | null | null | Source Code/05_functions_and_random/05_06_random_seed.cpp | rushone2010/CS_A150 | 0acab19e69c051f67b8dafe904ca77de0431958d | [
"MIT"
] | null | null | null | /*
Random seed.
*** Try and execute the program
more than once to see results.
*/
#include <iostream>
#include <cstdlib>
#include <ctime>
using namespace std;
int main()
{
// Sets the seed of the random number generator.
srand(static_cast<unsigned int>(time(0)));
for (int i = 1; i <= 40; ++i) {
//int d1... | 15.470588 | 50 | 0.551331 | rushone2010 |
644a657565febdbdc70180d6cc39bb26357c09a8 | 4,763 | cpp | C++ | src/mame/video/gotya.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 26 | 2015-03-31T06:25:51.000Z | 2021-12-14T09:29:04.000Z | src/mame/video/gotya.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | null | null | null | src/mame/video/gotya.cpp | Robbbert/messui | 49b756e2140d8831bc81335298ee8c5471045e79 | [
"BSD-3-Clause"
] | 10 | 2015-03-27T05:45:51.000Z | 2022-02-04T06:57:36.000Z | // license:BSD-3-Clause
// copyright-holders:Zsolt Vasvari
#include "emu.h"
#include "video/resnet.h"
#include "includes/gotya.h"
/***************************************************************************
Convert the color PROMs into a more useable format.
*******************************************************... | 26.758427 | 221 | 0.65274 | Robbbert |
644e8d460bfe9f3df6be2050b0aca3fc23bf59a5 | 10,094 | cc | C++ | DEM/Src/nebula2/src/gfx2/nd3d9server_resource.cc | moltenguy1/deusexmachina | 134f4ca4087fff791ec30562cb250ccd50b69ee1 | [
"MIT"
] | 2 | 2017-04-30T20:24:29.000Z | 2019-02-12T08:36:26.000Z | DEM/Src/nebula2/src/gfx2/nd3d9server_resource.cc | moltenguy1/deusexmachina | 134f4ca4087fff791ec30562cb250ccd50b69ee1 | [
"MIT"
] | null | null | null | DEM/Src/nebula2/src/gfx2/nd3d9server_resource.cc | moltenguy1/deusexmachina | 134f4ca4087fff791ec30562cb250ccd50b69ee1 | [
"MIT"
] | null | null | null | //------------------------------------------------------------------------------
// nd3d9server_resource.cc
// (C) 2003 RadonLabs GmbH
//------------------------------------------------------------------------------
#include "gfx2/nd3d9server.h"
#include "resource/nresourceserver.h"
#include "gfx2/nmesh2.h"
#i... | 38.67433 | 134 | 0.518526 | moltenguy1 |
6450ffd44849c9ecceaac140a9e4e85d496b960b | 4,721 | hpp | C++ | include/mmu/api/utils.hpp | RUrlus/ModelMetricUncertainty | f401a25dd196d6e4edf4901fcfee4b56ebd7c10b | [
"Apache-2.0"
] | null | null | null | include/mmu/api/utils.hpp | RUrlus/ModelMetricUncertainty | f401a25dd196d6e4edf4901fcfee4b56ebd7c10b | [
"Apache-2.0"
] | 11 | 2021-12-08T10:34:17.000Z | 2022-01-20T13:40:05.000Z | include/mmu/api/utils.hpp | RUrlus/ModelMetricUncertainty | f401a25dd196d6e4edf4901fcfee4b56ebd7c10b | [
"Apache-2.0"
] | null | null | null | /* utils.hpp -- Utility function around type checking of py::array_t
* Copyright 2022 Ralph Urlus
*/
#ifndef INCLUDE_MMU_API_UTILS_HPP_
#define INCLUDE_MMU_API_UTILS_HPP_
#include <pybind11/numpy.h>
#include <pybind11/pybind11.h>
#include <string>
#include <mmu/api/numpy.hpp>
#include <mmu/core/common.hpp>
namesp... | 29.50625 | 112 | 0.614912 | RUrlus |
645551c936cef2b3fe3492e4d5b2e419c1fe9be1 | 2,898 | inl | C++ | inc/subevent/timer_manager.inl | SammyEnigma/subevent | e2d3deb9b55d73278c1c011368c6d1793834bd2d | [
"MIT"
] | 17 | 2017-03-19T16:08:21.000Z | 2022-02-22T16:21:33.000Z | inc/subevent/timer_manager.inl | SammyEnigma/subevent | e2d3deb9b55d73278c1c011368c6d1793834bd2d | [
"MIT"
] | null | null | null | inc/subevent/timer_manager.inl | SammyEnigma/subevent | e2d3deb9b55d73278c1c011368c6d1793834bd2d | [
"MIT"
] | 4 | 2017-12-16T14:36:09.000Z | 2020-02-12T13:14:15.000Z | #ifndef SUBEVENT_TIMER_MANAGER_INL
#define SUBEVENT_TIMER_MANAGER_INL
#include <algorithm>
#include <functional>
#include <subevent/timer_manager.hpp>
#include <subevent/common.hpp>
#include <subevent/timer.hpp>
#include <subevent/thread.hpp>
SEV_NS_BEGIN
//----------------------------------------------------------... | 19.32 | 80 | 0.494479 | SammyEnigma |
645d06e94c928595ffdfe90ae8908889e0a7b7e2 | 15,349 | cpp | C++ | cocos2d/cocos/cornell/CUCapsuleObstacle.cpp | Mshnik/Pineapple | 378917353d22d8497769ed8e45d9a73b40d2717e | [
"MIT"
] | null | null | null | cocos2d/cocos/cornell/CUCapsuleObstacle.cpp | Mshnik/Pineapple | 378917353d22d8497769ed8e45d9a73b40d2717e | [
"MIT"
] | null | null | null | cocos2d/cocos/cornell/CUCapsuleObstacle.cpp | Mshnik/Pineapple | 378917353d22d8497769ed8e45d9a73b40d2717e | [
"MIT"
] | 1 | 2019-12-25T02:32:13.000Z | 2019-12-25T02:32:13.000Z | //
// CUCapsuleObstacle.cpp
// Cornell Extensions to Cocos2D
//
// This class implements a capsule physics object. A capsule is a box with semicircular
// ends along the major axis. They are a popular physics objects, particularly for
// character avatars. The rounded ends means they are less likely to snag, and... | 32.727079 | 114 | 0.640302 | Mshnik |
646165866984e4c015898cbcc1d64dd6cdada5b7 | 7,010 | cpp | C++ | test/performance/distance.cpp | lf-shaw/operon | 09a6ac1932d552b8be505f235318e50e923b0da1 | [
"MIT"
] | 50 | 2020-10-14T10:08:21.000Z | 2022-03-10T12:55:05.000Z | test/performance/distance.cpp | lf-shaw/operon | 09a6ac1932d552b8be505f235318e50e923b0da1 | [
"MIT"
] | 16 | 2020-10-26T13:05:47.000Z | 2022-02-22T20:24:41.000Z | test/performance/distance.cpp | lf-shaw/operon | 09a6ac1932d552b8be505f235318e50e923b0da1 | [
"MIT"
] | 16 | 2020-10-26T13:05:38.000Z | 2022-01-14T02:52:13.000Z | // SPDX-License-Identifier: MIT
// SPDX-FileCopyrightText: Copyright 2019-2021 Heal Research
#include <doctest/doctest.h>
#include "core/dataset.hpp"
#include "core/format.hpp"
#include "core/metrics.hpp"
#include "core/distance.hpp"
#include "core/pset.hpp"
#include "analyzers/diversity.hpp"
#include "operators/crea... | 39.162011 | 142 | 0.592297 | lf-shaw |
64618a54f5177929ceddee34373c1f95fb79101b | 4,791 | cpp | C++ | Game/src/options.cpp | eliseuegewarth/seven-keys | 7afcd9d9af6d99117bf949e328099ad5f07acef8 | [
"MIT"
] | null | null | null | Game/src/options.cpp | eliseuegewarth/seven-keys | 7afcd9d9af6d99117bf949e328099ad5f07acef8 | [
"MIT"
] | null | null | null | Game/src/options.cpp | eliseuegewarth/seven-keys | 7afcd9d9af6d99117bf949e328099ad5f07acef8 | [
"MIT"
] | 1 | 2017-08-25T14:37:52.000Z | 2017-08-25T14:37:52.000Z | /**
* options.cpp
* Class that implements the options game menu.
* Licença: LGPL. Sem copyright.
*/
#include "options.hpp"
#include "7keys.hpp"
#include "internacionalization.hpp"
#include "util/button.hpp"
#include "core/font.hpp"
#include "core/environment.hpp"
#include "core/mousemotionevent.hpp"
#include <ios... | 38.95122 | 157 | 0.713212 | eliseuegewarth |
646196d8165d1709d1abeb6227ea4bde32c737ae | 193 | hpp | C++ | missions/12_A2CO_COOP_USMC_vs_GUE.lingor/ambience/modules/modules.hpp | amlr/Multi-Session-Operations | ebfa0520a151fb27ff79fa74b17548f8560ed0a9 | [
"Apache-2.0"
] | null | null | null | missions/12_A2CO_COOP_USMC_vs_GUE.lingor/ambience/modules/modules.hpp | amlr/Multi-Session-Operations | ebfa0520a151fb27ff79fa74b17548f8560ed0a9 | [
"Apache-2.0"
] | null | null | null | missions/12_A2CO_COOP_USMC_vs_GUE.lingor/ambience/modules/modules.hpp | amlr/Multi-Session-Operations | ebfa0520a151fb27ff79fa74b17548f8560ed0a9 | [
"Apache-2.0"
] | null | null | null | #define CRB_CIVILIANS
//#define CRB_DOGS
//#define CRB_EMERGENCY
//#define CRB_SHEPHERDS
//#define RMM_CTP
#define TUP_AIRTRAFFIC
#define TUP_SEATRAFFIC
//#define CRB_DESTROYCITY
//#define AEG
| 19.3 | 25 | 0.797927 | amlr |
6462b05d02741f58aa4986cbd534e071369dd649 | 273 | cpp | C++ | src/GameState.cpp | kurogit/arduino_pong | 1f16d8c9b90f5c7e75dbbf5cc1400f1e093208f6 | [
"MIT"
] | null | null | null | src/GameState.cpp | kurogit/arduino_pong | 1f16d8c9b90f5c7e75dbbf5cc1400f1e093208f6 | [
"MIT"
] | null | null | null | src/GameState.cpp | kurogit/arduino_pong | 1f16d8c9b90f5c7e75dbbf5cc1400f1e093208f6 | [
"MIT"
] | null | null | null | /*!
* \file
* \details This file is part of https://github.com/kurogit/arduino_pong which is licensed under the MIT License.
* \copyright 2016 Patrick Schwartz <kurogit@schwartzm.com>
*/
#include "GameState.hpp"
namespace arduino_pong
{
} // namespace arduino_pong
| 21 | 113 | 0.736264 | kurogit |
6464b097ed539aee40ed03c54e99a25489c2ad72 | 30 | cpp | C++ | paperfilter/linux/pcap.cpp | sbilly/dripcap | 895af8cc8f2a0b1881df73f0a1df19f78c1c47d7 | [
"MIT"
] | 3 | 2020-05-06T17:56:21.000Z | 2021-07-24T13:59:28.000Z | paperfilter/linux/pcap.cpp | sbilly/dripcap | 895af8cc8f2a0b1881df73f0a1df19f78c1c47d7 | [
"MIT"
] | null | null | null | paperfilter/linux/pcap.cpp | sbilly/dripcap | 895af8cc8f2a0b1881df73f0a1df19f78c1c47d7 | [
"MIT"
] | null | null | null | #include "../darwin/pcap.cpp"
| 15 | 29 | 0.666667 | sbilly |
6464e022c5a30b5196fc8c2be3e0dd0233c0bb3a | 3,394 | cpp | C++ | sketches/ledmatrix/ledmatrix.cpp | ubirch/ubirch-thgs | 29614c85f752ca7393169f1ce0e4ff71649675e6 | [
"Apache-2.0"
] | null | null | null | sketches/ledmatrix/ledmatrix.cpp | ubirch/ubirch-thgs | 29614c85f752ca7393169f1ce0e4ff71649675e6 | [
"Apache-2.0"
] | null | null | null | sketches/ledmatrix/ledmatrix.cpp | ubirch/ubirch-thgs | 29614c85f752ca7393169f1ce0e4ff71649675e6 | [
"Apache-2.0"
] | null | null | null | /***************************************************
This is a library for our I2C LED Backpacks
Designed specifically to work with the Adafruit LED Matrix backpacks
----> http://www.adafruit.com/products/872
----> http://www.adafruit.com/products/871
----> http://www.adafruit.com/products/870
These dis... | 27.370968 | 81 | 0.598998 | ubirch |
64696e459790dd965d8067ab8d08da4aa89d3bfc | 5,802 | hpp | C++ | vlc_linux/vlc-3.0.16/modules/gui/qt/dialogs/external.hpp | Brook1711/biubiu_Qt6 | 5c4d22a1d1beef63bc6c7738dce6c477c4642803 | [
"MIT"
] | null | null | null | vlc_linux/vlc-3.0.16/modules/gui/qt/dialogs/external.hpp | Brook1711/biubiu_Qt6 | 5c4d22a1d1beef63bc6c7738dce6c477c4642803 | [
"MIT"
] | null | null | null | vlc_linux/vlc-3.0.16/modules/gui/qt/dialogs/external.hpp | Brook1711/biubiu_Qt6 | 5c4d22a1d1beef63bc6c7738dce6c477c4642803 | [
"MIT"
] | null | null | null | /*****************************************************************************
* external.hpp : Dialogs from other LibVLC core and other plugins
****************************************************************************
* Copyright (C) 2009 Rémi Denis-Courmont
*
* This program is free software; you can redistrib... | 36.721519 | 82 | 0.639262 | Brook1711 |
646d6d10348f8a09d15ebef2da303b1a7b5d2277 | 40,174 | cpp | C++ | src/Cello/test_CelloArray.cpp | aoife-flood/enzo-e | ab8ebc4716fff22bed9f692daf0472ae6ffffe73 | [
"BSD-3-Clause"
] | 26 | 2019-02-12T19:39:13.000Z | 2022-03-31T01:52:29.000Z | src/Cello/test_CelloArray.cpp | aoife-flood/enzo-e | ab8ebc4716fff22bed9f692daf0472ae6ffffe73 | [
"BSD-3-Clause"
] | 128 | 2019-02-13T20:22:30.000Z | 2022-03-29T20:21:00.000Z | src/Cello/test_CelloArray.cpp | aoife-flood/enzo-e | ab8ebc4716fff22bed9f692daf0472ae6ffffe73 | [
"BSD-3-Clause"
] | 29 | 2019-02-12T19:37:51.000Z | 2022-03-14T14:02:45.000Z | // See LICENSE_CELLO file for license and copyright information
/// @file test_CelloArray.cpp
/// @author Matthew Abruzzo (matthewabruzzo@gmail.com)
/// @date 2020-06-09
/// @brief Test program for the CelloArray class template
///
/// The main testing strategy here is to test some of the core functionall... | 35.552212 | 80 | 0.559193 | aoife-flood |
646da392d67b6610ae0ac4fffead06487b4f34ba | 660 | cpp | C++ | src/sim_bounds.cpp | cbosoft/BEARS | 9c62df5f4fbb6a2130ea37c925567797b4abfd87 | [
"MIT"
] | null | null | null | src/sim_bounds.cpp | cbosoft/BEARS | 9c62df5f4fbb6a2130ea37c925567797b4abfd87 | [
"MIT"
] | null | null | null | src/sim_bounds.cpp | cbosoft/BEARS | 9c62df5f4fbb6a2130ea37c925567797b4abfd87 | [
"MIT"
] | null | null | null | #include <cmath>
#include "sim.hpp"
// https://en.wikipedia.org/wiki/Periodic_boundary_conditions#Practical_implementation:_continuity_and_the_minimum_image_convention
Vec Sim::enforce_bounds(const Vec &p) const
{
Vec rv;
for (unsigned int i = 0; i < p.v.size(); i++) {
rv.v[i] = std::fmod(p.v[i], this->side_l... | 26.4 | 131 | 0.636364 | cbosoft |
646e5bf66c5cee923ad5da2e8ad7df8ab90aee90 | 6,918 | cpp | C++ | lib/djvViewApp/EditSystem.cpp | pafri/DJV | 9db15673b6b03ad3743f57119118261b1fbe8810 | [
"BSD-3-Clause"
] | null | null | null | lib/djvViewApp/EditSystem.cpp | pafri/DJV | 9db15673b6b03ad3743f57119118261b1fbe8810 | [
"BSD-3-Clause"
] | null | null | null | lib/djvViewApp/EditSystem.cpp | pafri/DJV | 9db15673b6b03ad3743f57119118261b1fbe8810 | [
"BSD-3-Clause"
] | null | null | null | // SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 2004-2020 Darby Johnston
// All rights reserved.
#include <djvViewApp/EditSystem.h>
#include <djvViewApp/Media.h>
#include <djvViewApp/MediaWidget.h>
#include <djvViewApp/WindowSystem.h>
#include <djvUI/Action.h>
#include <djvUI/Menu.h>
#include <djvUI/Shortc... | 34.59 | 109 | 0.433651 | pafri |
647170c9feec043e3caa404fd95aa348793cea24 | 42,055 | cpp | C++ | dev/Code/CryEngine/RenderDll/XRenderD3D9/DXMETAL/Implementation/GLFormat.cpp | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 1,738 | 2017-09-21T10:59:12.000Z | 2022-03-31T21:05:46.000Z | dev/Code/CryEngine/RenderDll/XRenderD3D9/DXMETAL/Implementation/GLFormat.cpp | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 427 | 2017-09-29T22:54:36.000Z | 2022-02-15T19:26:50.000Z | dev/Code/CryEngine/RenderDll/XRenderD3D9/DXMETAL/Implementation/GLFormat.cpp | jeikabu/lumberyard | 07228c605ce16cbf5aaa209a94a3cb9d6c1a4115 | [
"AML"
] | 671 | 2017-09-21T08:04:01.000Z | 2022-03-29T14:30:07.000Z | /*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... | 72.508621 | 306 | 0.612507 | jeikabu |
6471de1a62fe2223ca6889cae4634b83bd518566 | 721 | cpp | C++ | C++/Number_of_steps_hackerearth.cpp | arpitarunkumaar/Hacktoberfest2021 | 0af40f90a6c0716caadbbfff44ece947b6146f60 | [
"MIT"
] | 125 | 2021-10-01T19:05:26.000Z | 2021-10-03T13:32:42.000Z | C++/Number_of_steps_hackerearth.cpp | arpitarunkumaar/Hacktoberfest2021 | 0af40f90a6c0716caadbbfff44ece947b6146f60 | [
"MIT"
] | 201 | 2021-10-30T20:40:01.000Z | 2022-03-22T17:26:28.000Z | C++/Number_of_steps_hackerearth.cpp | arpitarunkumaar/Hacktoberfest2021 | 0af40f90a6c0716caadbbfff44ece947b6146f60 | [
"MIT"
] | 294 | 2021-10-01T18:46:05.000Z | 2021-10-03T14:25:07.000Z | //Number of steps
//Basic Programming> Input/Output> Basics of Input/Output
#include <bits/stdc++.h>
using namespace std;
int main() {
int n;scanf("%d",&n);
int a[n],b[n];
for(int i=0;i<n;i++) {
scanf("%d",&a[i]);
}
int s=a[0];
for(int i=0;i<n;i++) {
scanf("%d",&b[i]);
}
... | 18.025 | 57 | 0.367545 | arpitarunkumaar |
647285c31cbc3b417b3305e3c8a46ae8e24c48c3 | 1,467 | cpp | C++ | 2017-08-22/J.cpp | tangjz/Three-Investigators | 46dc9b2f0fbb4fe89b075a81feaacc33feeb1b52 | [
"MIT"
] | 3 | 2018-04-02T06:00:51.000Z | 2018-05-29T04:46:29.000Z | 2017-08-22/J.cpp | tangjz/Three-Investigators | 46dc9b2f0fbb4fe89b075a81feaacc33feeb1b52 | [
"MIT"
] | 2 | 2018-03-31T17:54:30.000Z | 2018-05-02T11:31:06.000Z | 2017-08-22/J.cpp | tangjz/Three-Investigators | 46dc9b2f0fbb4fe89b075a81feaacc33feeb1b52 | [
"MIT"
] | 2 | 2018-10-07T00:08:06.000Z | 2021-06-28T11:02:59.000Z | #include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
using namespace std;
const int LMAX = 2600;
int T, N, M;
char A[LMAX], B[LMAX];
bool star[LMAX];
bool f[LMAX][LMAX][2];
bool match(char x, char y)
{
if(x == '.' || y == '.')
return true;
return x == y;
}
int main()
{
int t, i, j, k;
... | 18.111111 | 93 | 0.373551 | tangjz |
6472ca4aae3de7657a2ba8e0bcbc16cf3a3dbab4 | 821 | cpp | C++ | Algorithm-Note/4-Algorithm-Preliminary/4.3-Recursion/Eight-Queen.cpp | authetic-x/PAT-Advanced-Level-Practice | 57a40853fab96a73e0c5ff377b2f12a5a553e11f | [
"MIT"
] | null | null | null | Algorithm-Note/4-Algorithm-Preliminary/4.3-Recursion/Eight-Queen.cpp | authetic-x/PAT-Advanced-Level-Practice | 57a40853fab96a73e0c5ff377b2f12a5a553e11f | [
"MIT"
] | null | null | null | Algorithm-Note/4-Algorithm-Preliminary/4.3-Recursion/Eight-Queen.cpp | authetic-x/PAT-Advanced-Level-Practice | 57a40853fab96a73e0c5ff377b2f12a5a553e11f | [
"MIT"
] | null | null | null | //
// Created by authetic on 2018/8/16.
//
#include <cstdio>
#include <cmath>
#include <cstdlib>
const int maxn = 10;
bool hashtable[10] = {false};
int p[maxn]={0},n=8,count=0;
void generate(int index) {
if (index == n+1) {
count++;
return;
}
for (int i=1; i<=n; i++) {
if (!hashtab... | 20.02439 | 52 | 0.411693 | authetic-x |
64761fb25e33e1481807347cd7fe9d1ac6810106 | 1,304 | hpp | C++ | src/phase_field/PFBaseClass.hpp | flowzario/mesoBasic | 0a86c98e784a7446a7b6f03b48eef4c9dbfe5940 | [
"MIT"
] | null | null | null | src/phase_field/PFBaseClass.hpp | flowzario/mesoBasic | 0a86c98e784a7446a7b6f03b48eef4c9dbfe5940 | [
"MIT"
] | null | null | null | src/phase_field/PFBaseClass.hpp | flowzario/mesoBasic | 0a86c98e784a7446a7b6f03b48eef4c9dbfe5940 | [
"MIT"
] | null | null | null |
# ifndef PFBASECLASS_H
# define PFBASECLASS_H
# include "../utils/CommonParams.h"
# include "../utils/GetPot"
using namespace std;
// ---------------------------------------------------------------------
// This is the base class for phase-field classes in the PF App.
// This class serves as an interface, and contai... | 29.636364 | 73 | 0.382669 | flowzario |
64783d070f0a46328f1073e894c7afb53ce20bbd | 6,222 | cpp | C++ | src/core/utility.cpp | Sundancer78/Marlin-2.0.4_SKR_14_turbo_ender3 | d9dbef52e6fb4e110908a6d09d0af00fc0ac9b20 | [
"MIT"
] | 1 | 2020-11-29T18:04:31.000Z | 2020-11-29T18:04:31.000Z | src/core/utility.cpp | Sundancer78/Marlin-2.0.4_SKR_14_turbo_ender3 | d9dbef52e6fb4e110908a6d09d0af00fc0ac9b20 | [
"MIT"
] | 1 | 2020-09-27T14:53:34.000Z | 2020-09-27T14:53:34.000Z | src/core/utility.cpp | Sundancer78/Marlin-2.0.4_SKR_14_turbo_ender3 | d9dbef52e6fb4e110908a6d09d0af00fc0ac9b20 | [
"MIT"
] | null | null | null | /**
* Marlin 3D Printer Firmware
* Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General... | 29.211268 | 124 | 0.605754 | Sundancer78 |
6478dc632d122fc4ea2f681786afadefa92854b2 | 2,910 | cpp | C++ | 06_Multithreading/src/SFML-Book/Stats.cpp | Krozark/SFML-book | 397dd3dc0c73b694d4b5c117e974c7ebdb885572 | [
"BSD-2-Clause"
] | 75 | 2015-01-18T21:29:03.000Z | 2022-02-09T14:11:05.000Z | 06_Multithreading/src/SFML-Book/Stats.cpp | Krozark/SFML-book | 397dd3dc0c73b694d4b5c117e974c7ebdb885572 | [
"BSD-2-Clause"
] | 7 | 2015-03-12T10:41:55.000Z | 2020-11-23T11:15:58.000Z | 06_Multithreading/src/SFML-Book/Stats.cpp | Krozark/SFML-book | 397dd3dc0c73b694d4b5c117e974c7ebdb885572 | [
"BSD-2-Clause"
] | 33 | 2015-12-01T07:34:46.000Z | 2022-03-23T03:37:42.000Z | #include <SFML-Book/Stats.hpp>
#include <SFML-Book/Configuration.hpp>
#define FONT_SIZE 24
namespace book
{
Stats::Stats()
{
reset();
}
void Stats::reset()
{
_nb_rows = 0;
_nb_score = 0;
_nb_lvl = 0;
_is_game_over = false;
_initial_lvl = 0;
... | 25.982143 | 80 | 0.564948 | Krozark |
647b799e3c4f615e86414b398073408f20771b30 | 476 | cpp | C++ | Hashing/colorful.cpp | aneesh001/InterviewBit | fcbac096fd8e9554a52db10dc9e5a88cb8a83ef3 | [
"MIT"
] | null | null | null | Hashing/colorful.cpp | aneesh001/InterviewBit | fcbac096fd8e9554a52db10dc9e5a88cb8a83ef3 | [
"MIT"
] | null | null | null | Hashing/colorful.cpp | aneesh001/InterviewBit | fcbac096fd8e9554a52db10dc9e5a88cb8a83ef3 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int colorful(int A) {
vector<int> digits;
while(A) {
digits.push_back(A % 10);
A /= 10;
}
reverse(digits.begin(), digits.end());
unordered_set<int> seen;
for(int i = 0; i < digits.size(); ++i) {
int prd = 1;
for(int j = i; j < digits.size(); ++j) {
prd... | 14.424242 | 42 | 0.537815 | aneesh001 |
647beafa61b468ae327ee06d91311e250936812c | 445 | hpp | C++ | include/ncurses++/widget.hpp | lukaszgemborowski/ncursesplusplus | e104281812dfe47720a8185fe1351393cf66e366 | [
"MIT"
] | 3 | 2019-12-07T19:54:15.000Z | 2021-01-10T18:38:20.000Z | include/ncurses++/widget.hpp | lukaszgemborowski/ncursesplusplus | e104281812dfe47720a8185fe1351393cf66e366 | [
"MIT"
] | 16 | 2019-12-10T13:46:59.000Z | 2019-12-15T00:39:05.000Z | include/ncurses++/widget.hpp | lukaszgemborowski/ncursesplusplus | e104281812dfe47720a8185fe1351393cf66e366 | [
"MIT"
] | null | null | null | #ifndef NCURSESPP_WIDGET_HPP
#define NCURSESPP_WIDGET_HPP
#include <ncurses++/rect.hpp>
namespace ncursespp
{
template<class Base>
class widget
{
public:
widget() = default;
void resize(rect_i r)
{
static_cast<Base *>(this)->do_resize (r);
size_ = r;
}
constexpr auto size() cons... | 13.484848 | 49 | 0.638202 | lukaszgemborowski |
647f3c18364d461350dcc578c06c138e60b4b202 | 2,240 | cc | C++ | libhashkit/one_at_a_time.cc | TOT0RoKR/libmemcached | dd6800972b93897c4e7ba192976b888c3621b3cb | [
"BSD-3-Clause"
] | 712 | 2016-07-02T03:32:22.000Z | 2022-03-23T14:23:02.000Z | libhashkit/one_at_a_time.cc | TOT0RoKR/libmemcached | dd6800972b93897c4e7ba192976b888c3621b3cb | [
"BSD-3-Clause"
] | 294 | 2016-07-03T16:17:41.000Z | 2022-03-30T04:37:49.000Z | libhashkit/one_at_a_time.cc | TOT0RoKR/libmemcached | dd6800972b93897c4e7ba192976b888c3621b3cb | [
"BSD-3-Clause"
] | 163 | 2016-07-08T10:03:38.000Z | 2022-01-21T05:03:48.000Z | /* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
*
* HashKit library
*
* Copyright (C) 2011-2012 Data Differential, http://datadifferential.com/
* Copyright (C) 2006-2009 Brian Aker All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted ... | 34.461538 | 81 | 0.716518 | TOT0RoKR |
64809ddbe4a8edde7a892c5098c0a46b18bcc170 | 2,240 | cpp | C++ | libtumbler/test/speaker_test.cpp | FairyDevicesRD/tumbler | e847d9770e7b4d64f3eb936cfcd72e3588176138 | [
"Apache-2.0"
] | 12 | 2018-01-16T01:55:24.000Z | 2021-10-05T21:59:05.000Z | libtumbler/test/speaker_test.cpp | FairyDevicesRD/tumbler | e847d9770e7b4d64f3eb936cfcd72e3588176138 | [
"Apache-2.0"
] | 2 | 2019-04-16T09:21:44.000Z | 2019-07-04T06:57:48.000Z | libtumbler/test/speaker_test.cpp | FairyDevicesRD/tumbler | e847d9770e7b4d64f3eb936cfcd72e3588176138 | [
"Apache-2.0"
] | 4 | 2018-02-22T08:13:07.000Z | 2019-03-13T16:53:21.000Z | /*
* @file speaker_test.cpp
* \~english
* @brief Test for speaker
* \~japanese
* @brief スピーカーテスト
* \~
* @copyright Copyright 2018 Fairy Devices Inc. http://www.fairydevices.jp/
* @copyright Apache License, Version 2.0
* @author Masato Fujino, created on: 2018/02/19
*
* Copyright 2018 Fairy Devices Inc. http:... | 27.654321 | 86 | 0.687054 | FairyDevicesRD |
6481578a08d372f27bd4a5df8390b6eb516a4e2c | 1,906 | cpp | C++ | libv8/ruby/1.9.1/gems/therubyracer-0.9.4/ext/v8/v8_try_catch.cpp | tcmaker/ConOnRails | 97656120dbc9a5bf773538e021b768d0515ae333 | [
"Apache-2.0"
] | 1 | 2021-02-07T21:33:42.000Z | 2021-02-07T21:33:42.000Z | libv8/ruby/1.9.1/gems/therubyracer-0.9.4/ext/v8/v8_try_catch.cpp | tcmaker/ConOnRails | 97656120dbc9a5bf773538e021b768d0515ae333 | [
"Apache-2.0"
] | null | null | null | libv8/ruby/1.9.1/gems/therubyracer-0.9.4/ext/v8/v8_try_catch.cpp | tcmaker/ConOnRails | 97656120dbc9a5bf773538e021b768d0515ae333 | [
"Apache-2.0"
] | null | null | null | #include "rr.h"
#include "v8_try_catch.h"
#include "v8_message.h"
using namespace v8;
namespace {
VALUE TryCatchClass;
TryCatch *unwrap(VALUE self) {
TryCatch *tc = 0;
Data_Get_Struct(self, class TryCatch, tc);
if (RTEST(rb_iv_get(self, "dead"))) {
rb_raise(rb_eScriptError, "out of scope access... | 26.84507 | 92 | 0.650052 | tcmaker |