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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
7bc20553db5798d3a40b8b3e586070525f7dc4f7 | 3,451 | cpp | C++ | Examples/IocTest/main.cpp | mrcao20/McQuickBoot | 187a16ea9459fa5e2b3477b5280302a9090e8ccf | [
"MIT"
] | 3 | 2020-03-29T18:41:42.000Z | 2020-09-23T01:46:25.000Z | Examples/IocTest/main.cpp | mrcao20/McQuickBoot | 187a16ea9459fa5e2b3477b5280302a9090e8ccf | [
"MIT"
] | 3 | 2020-11-26T03:37:31.000Z | 2020-12-21T02:17:17.000Z | Examples/IocTest/main.cpp | mrcao20/McQuickBoot | 187a16ea9459fa5e2b3477b5280302a9090e8ccf | [
"MIT"
] | null | null | null | #include <QBuffer>
#include <QCoreApplication>
#include <QDebug>
#include <QFile>
#include <QTextStream>
#include <QThread>
#include <McIoc/ApplicationContext/impl/McLocalPathApplicationContext.h>
#include <McIoc/ApplicationContext/impl/McAnnotationApplicationContext.h>
#include <McIoc/ApplicationContext/impl/McXmlApp... | 32.252336 | 92 | 0.671689 | mrcao20 |
7bc2289c2f00a37905ef4e3a1be95dcd6e18a1c3 | 1,929 | cpp | C++ | Code/Runtime/Asset/CacheStream.cpp | NathanSaidas/LiteForgeMirror | 84068b62bff6e443b53c46107a3946e2645e4447 | [
"MIT"
] | null | null | null | Code/Runtime/Asset/CacheStream.cpp | NathanSaidas/LiteForgeMirror | 84068b62bff6e443b53c46107a3946e2645e4447 | [
"MIT"
] | null | null | null | Code/Runtime/Asset/CacheStream.cpp | NathanSaidas/LiteForgeMirror | 84068b62bff6e443b53c46107a3946e2645e4447 | [
"MIT"
] | null | null | null | // ********************************************************************
// Copyright (c) 2019 Nathan Hanlan
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files(the "Software"),
// to deal in the Software without restriction, includ... | 34.446429 | 116 | 0.67859 | NathanSaidas |
7bc4194e25196b4cc5d934b22032c7f2a2d5ac11 | 6,520 | cpp | C++ | src/overlay_params.cpp | DasCapschen/DiRT-Rally-2.0-Telemetry-HUD | 7eaa754d7791239753b9d9209d574b654d120eb6 | [
"MIT"
] | 4 | 2020-02-21T18:16:42.000Z | 2021-08-23T16:46:48.000Z | src/overlay_params.cpp | DasCapschen/DiRT-Rally-2.0-Telemetry-HUD | 7eaa754d7791239753b9d9209d574b654d120eb6 | [
"MIT"
] | null | null | null | src/overlay_params.cpp | DasCapschen/DiRT-Rally-2.0-Telemetry-HUD | 7eaa754d7791239753b9d9209d574b654d120eb6 | [
"MIT"
] | 1 | 2020-06-09T10:57:22.000Z | 2020-06-09T10:57:22.000Z | /*
* Copyright © 2019 Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, pub... | 29.369369 | 79 | 0.596166 | DasCapschen |
7bc509aa911f1dba9daf558ccc7ed516521b31a3 | 789 | hpp | C++ | src/unpack_command.hpp | tzvetkoff/giffler | 87133592e064f66a611ce9e00b670c20ec99dd82 | [
"Beerware"
] | null | null | null | src/unpack_command.hpp | tzvetkoff/giffler | 87133592e064f66a611ce9e00b670c20ec99dd82 | [
"Beerware"
] | null | null | null | src/unpack_command.hpp | tzvetkoff/giffler | 87133592e064f66a611ce9e00b670c20ec99dd82 | [
"Beerware"
] | null | null | null | /*
* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* <Latchezar Tzvetkoff> wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can ... | 21.916667 | 79 | 0.569075 | tzvetkoff |
7bc53ae94b3ca39bd14c3e0a7b5f30eb6c68be27 | 1,095 | cpp | C++ | test/math/convolution/fast_zeta_transform.test.cpp | emthrm/library | 0876ba7ec64e23b5ec476a7a0b4880d497a36be1 | [
"Unlicense"
] | 1 | 2021-12-26T14:17:29.000Z | 2021-12-26T14:17:29.000Z | test/math/convolution/fast_zeta_transform.test.cpp | emthrm/library | 0876ba7ec64e23b5ec476a7a0b4880d497a36be1 | [
"Unlicense"
] | 3 | 2020-07-13T06:23:02.000Z | 2022-02-16T08:54:26.000Z | test/math/convolution/fast_zeta_transform.test.cpp | emthrm/library | 0876ba7ec64e23b5ec476a7a0b4880d497a36be1 | [
"Unlicense"
] | null | null | null | /*
* @brief 数学/畳み込み/高速ゼータ変換
*/
#define PROBLEM "https://atcoder.jp/contests/arc100/tasks/arc100_e"
// #define PROBLEM "https://atcoder.jp/contests/arc100/tasks/arc100_c"
#include <algorithm>
#include <functional>
#include <iostream>
#include <utility>
#include <vector>
#include "../../../math/convolution/... | 27.375 | 83 | 0.527854 | emthrm |
7bc5b45449fe670815fcb8e5f14e42101ef1723c | 3,168 | cc | C++ | Archive/Stroika_FINAL_for_STERL_1992/Tools/Portable/Emily/Sources/GroupInfo.cc | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 28 | 2015-09-22T21:43:32.000Z | 2022-02-28T01:35:01.000Z | Archive/Stroika_FINAL_for_STERL_1992/Tools/Portable/Emily/Sources/GroupInfo.cc | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 98 | 2015-01-22T03:21:27.000Z | 2022-03-02T01:47:00.000Z | Archive/Stroika_FINAL_for_STERL_1992/Tools/Portable/Emily/Sources/GroupInfo.cc | SophistSolutions/Stroika | f4e5d84767903a054fba0a6b9c7c4bd1aaefd105 | [
"MIT"
] | 4 | 2019-02-21T16:45:25.000Z | 2022-02-18T13:40:04.000Z | /* Copyright(c) Sophist Solutions Inc. 1991-1992. All rights reserved */
/*
* $Header: /fuji/lewis/RCS/GroupInfo.cc,v 1.4 1992/07/21 18:28:39 sterling Exp $
*
* Description:
*
* TODO:
*
* Changes:
* $Log: GroupInfo.cc,v $
* Revision 1.4 1992/07/21 18:28:39 sterling
* hi
*
* Revision 1.3 1992/07/16 ... | 20.842105 | 94 | 0.681503 | SophistSolutions |
dcf015aed94e44bff8b41f5101a846925c909be4 | 5,823 | cc | C++ | test/gtest/active_set/test_active_set.cc | edgargabriel/ucc | 106e418e08b8a02dea3f20e0f6f530f9816246c2 | [
"BSD-3-Clause"
] | null | null | null | test/gtest/active_set/test_active_set.cc | edgargabriel/ucc | 106e418e08b8a02dea3f20e0f6f530f9816246c2 | [
"BSD-3-Clause"
] | null | null | null | test/gtest/active_set/test_active_set.cc | edgargabriel/ucc | 106e418e08b8a02dea3f20e0f6f530f9816246c2 | [
"BSD-3-Clause"
] | null | null | null | /**
* Copyright (C) Mellanox Technologies Ltd. 2022. ALL RIGHTS RESERVED.
* See file LICENSE for terms.
*/
#include "common/test_ucc.h"
typedef std::tuple<std::pair<int, int>, size_t, ucc_memory_type_t> op_t;
using param = std::vector<op_t>;
#define OP_T(_src, _dst, _size, _mt) ({ ... | 32.171271 | 92 | 0.458355 | edgargabriel |
dcf5536bb29ae71b60c5178414f51678e576aa3d | 1,479 | cpp | C++ | src/lib/Checksum/Checksum.cpp | Flowm/move-on-helium-sensors | 3794d38671e1976c9801bcb8a9639465cdddb731 | [
"Apache-2.0"
] | 1 | 2021-11-11T01:49:28.000Z | 2021-11-11T01:49:28.000Z | src/lib/Checksum/Checksum.cpp | Flowm/move-on-helium-sensors | 3794d38671e1976c9801bcb8a9639465cdddb731 | [
"Apache-2.0"
] | null | null | null | src/lib/Checksum/Checksum.cpp | Flowm/move-on-helium-sensors | 3794d38671e1976c9801bcb8a9639465cdddb731 | [
"Apache-2.0"
] | null | null | null | /*
* Checksum.cpp
*
* Created on: Jan 31, 2018
* Author: tkale
*/
#include "Checksum.hpp"
/**
* Calculate CRC-16-CCITT in hardware
*
* @param [in] data A pointer to the data
* @param [in] len The length of the data
*
* WARNING: Doesnt seem to work!
*
* @return The CRC16 checksum of data
*
*/
uint... | 21.434783 | 76 | 0.592292 | Flowm |
dcf725601d6ec0b4e56d5e8ba920f99c73732588 | 4,631 | cc | C++ | src/worker/physical_data_instance.cc | schinmayee/nimbus | 170cd15e24a7a88243a6ea80aabadc0fc0e6e177 | [
"BSD-3-Clause"
] | 20 | 2017-07-03T19:09:09.000Z | 2021-09-10T02:53:56.000Z | src/worker/physical_data_instance.cc | schinmayee/nimbus | 170cd15e24a7a88243a6ea80aabadc0fc0e6e177 | [
"BSD-3-Clause"
] | null | null | null | src/worker/physical_data_instance.cc | schinmayee/nimbus | 170cd15e24a7a88243a6ea80aabadc0fc0e6e177 | [
"BSD-3-Clause"
] | 9 | 2017-09-17T02:05:06.000Z | 2020-01-31T00:12:01.000Z | /*
* Copyright 2013 Stanford University.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this l... | 25.727778 | 73 | 0.680415 | schinmayee |
dcfe1816ca31345c30fd5e8b9a7e1fb311340be3 | 1,707 | cc | C++ | lib/src/compiler/evaluation/operators/binary/match.cc | puppetlabs/puppetcpp | 45c86f43414d5f6f76f49fc3a4c7e237e4fa2b04 | [
"Apache-2.0"
] | 22 | 2015-12-08T08:54:32.000Z | 2019-04-28T11:31:04.000Z | lib/src/compiler/evaluation/operators/binary/match.cc | puppetlabs/puppetcpp | 45c86f43414d5f6f76f49fc3a4c7e237e4fa2b04 | [
"Apache-2.0"
] | 37 | 2015-12-04T20:31:38.000Z | 2017-04-17T05:00:25.000Z | lib/src/compiler/evaluation/operators/binary/match.cc | puppetlabs/puppetcpp | 45c86f43414d5f6f76f49fc3a4c7e237e4fa2b04 | [
"Apache-2.0"
] | 6 | 2015-12-04T19:54:57.000Z | 2021-03-24T12:16:46.000Z | #include <puppet/compiler/evaluation/operators/binary/match.hpp>
#include <puppet/compiler/evaluation/operators/binary/call_context.hpp>
#include <puppet/compiler/exceptions.hpp>
#include <boost/format.hpp>
using namespace std;
using namespace puppet::runtime;
namespace puppet { namespace compiler { namespace evaluat... | 38.795455 | 119 | 0.62273 | puppetlabs |
0d05be0a539ab2709befd17f4c1dd7575dcfc3fc | 538 | cpp | C++ | 791. Custom Sort String.cpp | ttang235/leetcode | ae2d6f61c80178f09de816210f53b00a838b0508 | [
"MIT"
] | null | null | null | 791. Custom Sort String.cpp | ttang235/leetcode | ae2d6f61c80178f09de816210f53b00a838b0508 | [
"MIT"
] | null | null | null | 791. Custom Sort String.cpp | ttang235/leetcode | ae2d6f61c80178f09de816210f53b00a838b0508 | [
"MIT"
] | null | null | null | // https://leetcode.com/problems/custom-sort-string/description/
class Solution {
public:
string customSortString(string S, string T) {
vector<int> cnt(26, 0);
for(auto c : T) {
cnt[c - 'a']++;
}
string res;
for(auto c : S) {
res += string(cnt[c-'a'],... | 23.391304 | 64 | 0.410781 | ttang235 |
0d064ed4f1da137c1c12b430b7e50b792315d0d5 | 592 | cpp | C++ | src/ActiveBSP/src/ActorRegistry.cpp | fbaude/activebsp | d867d74e58bde38cc0f816bcb23c6c41a5bb4f81 | [
"BSD-3-Clause"
] | null | null | null | src/ActiveBSP/src/ActorRegistry.cpp | fbaude/activebsp | d867d74e58bde38cc0f816bcb23c6c41a5bb4f81 | [
"BSD-3-Clause"
] | null | null | null | src/ActiveBSP/src/ActorRegistry.cpp | fbaude/activebsp | d867d74e58bde38cc0f816bcb23c6c41a5bb4f81 | [
"BSD-3-Clause"
] | null | null | null | #include "ActorRegistry.h"
namespace activebsp
{
ActorRegistry * ActorRegistry::_instance = NULL;
actor_registry_t & ActorRegistry::getActorRegistry()
{
static actor_registry_t * actor_handlers = new actor_registry_t();
return *actor_handlers;
}
ActorRegistry * ActorRegistry::getInstance()
{
if (_instan... | 19.096774 | 79 | 0.716216 | fbaude |
0d07091ade61e54ebdde5051b8bcb2f3fb80e92b | 1,376 | cpp | C++ | CepsyGLFramework/CepsyGLFramework/src/Graphics/AnimationData.cpp | cepsylon/CepsyGLFramework | 72cf710c892ff34aeac5ed47b0b7799756a04032 | [
"MIT"
] | null | null | null | CepsyGLFramework/CepsyGLFramework/src/Graphics/AnimationData.cpp | cepsylon/CepsyGLFramework | 72cf710c892ff34aeac5ed47b0b7799756a04032 | [
"MIT"
] | null | null | null | CepsyGLFramework/CepsyGLFramework/src/Graphics/AnimationData.cpp | cepsylon/CepsyGLFramework | 72cf710c892ff34aeac5ed47b0b7799756a04032 | [
"MIT"
] | null | null | null | #include "AnimationData.h"
#include "Animation.h"
#include "Application/Application.h"
void AnimationData::update(float dt)
{
if (mAnimation)
{
mTime += dt;
while (mAnimation->duration() < mTime)
{
mTime -= mAnimation->duration();
mPrevIndex = mIndex;
mIndex = 0;
}
// TODO: fix this, we are ass... | 23.322034 | 149 | 0.682413 | cepsylon |
0d0ee44997b63c40eb884118f1e26ef043878730 | 13,769 | hpp | C++ | src/alia/flow/for_each.hpp | tmadden/alia | 4abda686975e6b3ec52d7ef2bae8bed1cd810225 | [
"MIT"
] | 13 | 2019-10-03T09:05:18.000Z | 2021-02-03T18:05:10.000Z | src/alia/flow/for_each.hpp | tmadden/alia | 4abda686975e6b3ec52d7ef2bae8bed1cd810225 | [
"MIT"
] | 7 | 2018-07-06T16:30:58.000Z | 2021-03-03T17:54:39.000Z | src/alia/flow/for_each.hpp | tmadden/alia | 4abda686975e6b3ec52d7ef2bae8bed1cd810225 | [
"MIT"
] | 4 | 2019-10-03T09:06:03.000Z | 2020-07-21T20:23:32.000Z | #ifndef ALIA_FLOW_FOR_EACH_HPP
#define ALIA_FLOW_FOR_EACH_HPP
#include <alia/flow/macros.hpp>
#include <alia/signals/adaptors.hpp>
#include <alia/signals/basic.hpp>
#include <alia/signals/operators.hpp>
namespace alia {
// is_map_like<Container>::value yields a compile-time boolean indicating
// whether or not Conta... | 27.816162 | 79 | 0.597792 | tmadden |
0d1b8a5ee0a0e3d963a4a9c2dc913b838395b83e | 15,548 | cpp | C++ | sunvox_engine/psynth/psynths_filter.cpp | Sound-Linux-More/sunvox | 7376fbe9f9bca92be1e17aefaac2e68b558d8357 | [
"BSD-3-Clause"
] | 100 | 2016-01-15T02:43:07.000Z | 2022-03-16T14:02:38.000Z | sunvox_engine/psynth/psynths_filter.cpp | Sound-Linux-More/sunvox | 7376fbe9f9bca92be1e17aefaac2e68b558d8357 | [
"BSD-3-Clause"
] | 2 | 2018-01-10T18:21:37.000Z | 2021-12-05T01:48:08.000Z | sunvox_engine/psynth/psynths_filter.cpp | Sound-Linux-More/sunvox | 7376fbe9f9bca92be1e17aefaac2e68b558d8357 | [
"BSD-3-Clause"
] | 17 | 2016-05-16T19:48:19.000Z | 2022-03-23T10:59:42.000Z | /*
psynths_filter.cpp.
This file is part of the SunVox engine.
Copyright (C) 2002 - 2008 Alex Zolotov <nightradio@gmail.com>
*/
#include "psynth.h"
//Unique names for objects in your synth:
#define SYNTH_DATA filter_data
#define SYNTH_HANDLER psynth_filter
//And unique parameters:
#define SYNTH_INPU... | 27.087108 | 120 | 0.532223 | Sound-Linux-More |
0d1e04e5a4921062282dee077c13d3c21d9bf460 | 449 | hpp | C++ | include/Inputs.hpp | fu7mu4/entonetics | d0b2643f039a890b25d5036cc94bfe3b4d840480 | [
"MIT"
] | null | null | null | include/Inputs.hpp | fu7mu4/entonetics | d0b2643f039a890b25d5036cc94bfe3b4d840480 | [
"MIT"
] | null | null | null | include/Inputs.hpp | fu7mu4/entonetics | d0b2643f039a890b25d5036cc94bfe3b4d840480 | [
"MIT"
] | null | null | null | #ifndef ENTO_INPUTS_HPP_INCLUDED
#define ENTO_INPUTS_HPP_INCLUDED
#include "Inputer.hpp"
namespace ento
{
class Entomon_inputer : public Inputer
{
public:
Entomon_inputer( void );
float lateral( void ) const
{ return m_lateral; }
bool jumping( void ) const
{ return m_jumping; }
protected:
virtual void updat... | 14.483871 | 59 | 0.743875 | fu7mu4 |
0d2058ee7b206d3ca75aaa0e944ca25408010533 | 20,840 | cpp | C++ | src/engine/visibility/quadtree.cpp | dream-overflow/o3d | 087ab870cc0fd9091974bb826e25c23903a1dde0 | [
"FSFAP"
] | 2 | 2019-06-22T23:29:44.000Z | 2019-07-07T18:34:04.000Z | src/engine/visibility/quadtree.cpp | dream-overflow/o3d | 087ab870cc0fd9091974bb826e25c23903a1dde0 | [
"FSFAP"
] | null | null | null | src/engine/visibility/quadtree.cpp | dream-overflow/o3d | 087ab870cc0fd9091974bb826e25c23903a1dde0 | [
"FSFAP"
] | null | null | null | /**
* @file quadtree.cpp
* @brief
* @author Emmanuel RUFFIO (emmanuel.ruffio@gmail.com)
* @author Frederic SCHERMA (frederic.scherma@dreamoverflow.org)
* @date 2001-12-25
* @copyright Copyright (c) 2001-2017 Dream Overflow. All rights reserved.
* @details
*/
#include "o3d/engine/precompiled.h"
#include "o3d/... | 29.393512 | 128 | 0.614971 | dream-overflow |
0d2135f75b673ec30128d049d0250fe48880bce2 | 2,181 | cpp | C++ | core/test/test_interface_state.cpp | FabianSchuetze/moveit_task_constructor | 685fec6070fa3fa95a8abe7ae47c4047556aeb4a | [
"BSD-3-Clause"
] | 1 | 2021-12-02T17:55:07.000Z | 2021-12-02T17:55:07.000Z | core/test/test_interface_state.cpp | wangcongrobot/moveit_task_constructor | f99d03386ad8751fb0ade71c09a9810019a950ad | [
"BSD-3-Clause"
] | null | null | null | core/test/test_interface_state.cpp | wangcongrobot/moveit_task_constructor | f99d03386ad8751fb0ade71c09a9810019a950ad | [
"BSD-3-Clause"
] | 2 | 2021-05-09T06:09:47.000Z | 2021-05-09T06:28:30.000Z | #include <moveit/task_constructor/storage.h>
#include <moveit/task_constructor/stage_p.h>
#include <moveit/planning_scene/planning_scene.h>
#include "models.h"
#include <memory>
#include <algorithm>
#include <iterator>
#include <vector>
#include <gtest/gtest.h>
#include <gmock/gmock-matchers.h>
using namespace moveit... | 33.553846 | 95 | 0.698304 | FabianSchuetze |
0d251186cca5970cbdcc2327dd32d62023d31798 | 1,358 | cpp | C++ | tools/CustomUI/customUI.cpp | RuanauR/BetterEdit | 9e4c031b8dec0c80f901f79d9f4a40173a52725b | [
"MIT"
] | 30 | 2021-01-25T22:25:05.000Z | 2022-01-22T13:18:19.000Z | tools/CustomUI/customUI.cpp | RuanauR/BetterEdit | 9e4c031b8dec0c80f901f79d9f4a40173a52725b | [
"MIT"
] | 9 | 2021-07-03T11:41:47.000Z | 2022-03-30T15:14:46.000Z | tools/CustomUI/customUI.cpp | RuanauR/BetterEdit | 9e4c031b8dec0c80f901f79d9f4a40173a52725b | [
"MIT"
] | 3 | 2021-07-01T20:52:24.000Z | 2022-01-13T16:16:58.000Z | #include "customUI.hpp"
#include "../../hooks/EditorPauseLayer.hpp"
void EditorPauseLayer_CB::onCustomizeUI(CCObject*) {
UIManager::get()->startCustomizing();
this->onResume(nullptr);
}
void loadEditorCustomizations(EditorUI* self) {
self->m_pCopyBtn->removeFromParent();
self->m_pPasteBtn->removeFromP... | 34.820513 | 75 | 0.693667 | RuanauR |
0d2859253f6d4463f3e6be5b72a87d4de46e12f0 | 527 | cpp | C++ | solutions/228.summary-ranges.318085037.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 78 | 2020-10-22T11:31:53.000Z | 2022-02-22T13:27:49.000Z | solutions/228.summary-ranges.318085037.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | null | null | null | solutions/228.summary-ranges.318085037.ac.cpp | satu0king/Leetcode-Solutions | 2edff60d76c2898d912197044f6284efeeb34119 | [
"MIT"
] | 26 | 2020-10-23T15:10:44.000Z | 2021-11-07T16:13:50.000Z | class Solution {
public:
vector<string> summaryRanges(vector<int> &nums) {
vector<pair<int, int>> ranges;
for (int n : nums) {
if (ranges.empty() || ranges.back().second + 1 != n)
ranges.emplace_back(n, n);
else
ranges.back().second++;
}
vector<string> result;
for (a... | 21.958333 | 74 | 0.56926 | satu0king |
0d293d4448c4883356ecfdab4bca391a47f039a1 | 234 | cpp | C++ | gds/vadd.cpp | TheGPU/amdgpu-code | bb249b33b8b9ad15c195b591959f5cedfb552044 | [
"MIT"
] | 4 | 2018-02-11T13:00:57.000Z | 2018-06-02T13:15:47.000Z | gds/vadd.cpp | IceNarwhal/amdgpu-code | bb249b33b8b9ad15c195b591959f5cedfb552044 | [
"MIT"
] | 2 | 2017-04-04T19:53:04.000Z | 2017-05-10T16:15:12.000Z | gds/vadd.cpp | TheGPU/amdgpu-code | bb249b33b8b9ad15c195b591959f5cedfb552044 | [
"MIT"
] | 1 | 2021-05-21T08:08:43.000Z | 2021-05-21T08:08:43.000Z | #include<iostream>
#include<hip/hip_runtime.h>
#include<hip/hip_runtime_api.h>
#define LEN 16
__global__ void vAdd(hipLaunchParm lp, float *A, float *B, float *C){
int tx = hipThreadIdx_x;
C[tx] = A[tx] + B[tx];
}
int main(){}
| 18 | 69 | 0.683761 | TheGPU |
0d300a3aaa94ad42feb187f211b34dc921b16a82 | 3,810 | cpp | C++ | C Plus Plus/Graph/Floyd_Warshall_Shortest_Path.cpp | Amisha328/DS-Algo | 34576fbe95717b1d3e2f75b0a04c631ca1833091 | [
"MIT"
] | 8 | 2021-06-19T12:49:46.000Z | 2021-08-01T05:32:54.000Z | C Plus Plus/Graph/Floyd_Warshall_Shortest_Path.cpp | Amisha328/DS-Algo | 34576fbe95717b1d3e2f75b0a04c631ca1833091 | [
"MIT"
] | 61 | 2021-06-10T08:22:51.000Z | 2021-07-29T05:47:52.000Z | C Plus Plus/Graph/Floyd_Warshall_Shortest_Path.cpp | Amisha328/DS-Algo | 34576fbe95717b1d3e2f75b0a04c631ca1833091 | [
"MIT"
] | 6 | 2021-06-10T08:28:26.000Z | 2021-07-23T03:36:46.000Z | /*
Floyd Warshall Shortest Path Algorithm is applied to find the shortest distance
between two vertices in a graph.
It is based on a formula given by floyd-warshall i.e.
distance(k)[i][j] = minimum of (distance(k-1)[i][j] , distance(k-1)[i][k] + distance(k-1)[k][j])
where, i and j are the sou... | 28.222222 | 104 | 0.572441 | Amisha328 |
0d32560e00e5547f2db480bd8405d8c557e31cea | 1,381 | cpp | C++ | dev/Code/Framework/AzCore/Platform/Mac/AzCore/Module/Internal/ModuleManagerSearchPathTool_Mac.cpp | BadDevCode/lumberyard | 3d688932f919dbf5821f0cb8a210ce24abe39e9e | [
"AML"
] | 1,738 | 2017-09-21T10:59:12.000Z | 2022-03-31T21:05:46.000Z | dev/Code/Framework/AzCore/Platform/Mac/AzCore/Module/Internal/ModuleManagerSearchPathTool_Mac.cpp | olivier-be/lumberyard | 3d688932f919dbf5821f0cb8a210ce24abe39e9e | [
"AML"
] | 427 | 2017-09-29T22:54:36.000Z | 2022-02-15T19:26:50.000Z | dev/Code/Framework/AzCore/Platform/Mac/AzCore/Module/Internal/ModuleManagerSearchPathTool_Mac.cpp | olivier-be/lumberyard | 3d688932f919dbf5821f0cb8a210ce24abe39e9e | [
"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 belo... | 32.116279 | 108 | 0.67777 | BadDevCode |
0d36f6d5205dcebed842075a6aaef7dc389eea5b | 1,720 | hxx | C++ | include/usagi/json/picojson/to_bool.hxx | usagi/usagi | 2d57d21eeb92eadfdf4154a3e470aebfc3e388e5 | [
"MIT"
] | 2 | 2016-11-20T04:59:17.000Z | 2017-02-13T01:44:37.000Z | include/usagi/json/picojson/to_bool.hxx | usagi/usagi | 2d57d21eeb92eadfdf4154a3e470aebfc3e388e5 | [
"MIT"
] | 3 | 2015-09-28T12:00:02.000Z | 2015-09-28T12:03:21.000Z | include/usagi/json/picojson/to_bool.hxx | usagi/usagi | 2d57d21eeb92eadfdf4154a3e470aebfc3e388e5 | [
"MIT"
] | 3 | 2017-07-02T06:09:47.000Z | 2018-07-09T01:00:57.000Z | #pragma once
#include "type.hxx"
namespace usagi::json::picojson
{
static inline auto to_bool( const boolean_type in ) { return in; }
/// @note ECMA-262 NaN: Boolean( 0/0 ) -> false
/// @note ECMA-262 +Inf: Boolean( +1/0 ) -> true
/// @note ECMA-262 -Inf: Boolean( -1/0 ) -> true
static inline auto to_boo... | 27.741935 | 68 | 0.59593 | usagi |
0d379fa4ba8a49230f96d1116eb76ef27edaeec0 | 5,126 | cc | C++ | src/Hmm/HiddenMarkovModel.cc | alexanderrichard/squirrel | 12614a9eb429500c8f341654043f33a1b6bd1d31 | [
"AFL-3.0"
] | 63 | 2016-07-08T13:35:27.000Z | 2021-01-13T18:37:13.000Z | src/Hmm/HiddenMarkovModel.cc | alexanderrichard/squirrel | 12614a9eb429500c8f341654043f33a1b6bd1d31 | [
"AFL-3.0"
] | 4 | 2017-08-04T09:25:10.000Z | 2022-02-24T15:38:52.000Z | src/Hmm/HiddenMarkovModel.cc | alexanderrichard/squirrel | 12614a9eb429500c8f341654043f33a1b6bd1d31 | [
"AFL-3.0"
] | 30 | 2016-05-11T02:24:46.000Z | 2021-11-12T14:06:20.000Z | /*
* Copyright 2016 Alexander Richard
*
* This file is part of Squirrel.
*
* Licensed under the Academic Free License 3.0 (the "License").
* You may not use this file except in compliance with the License.
* You should have received a copy of the License along with Squirrel.
* If not, see <https://opensource.or... | 28.960452 | 140 | 0.738978 | alexanderrichard |
0d3822f67c8867bd02497940e7c7d798801b842a | 9,982 | cpp | C++ | plugins/WinVST/Ditherbox/Ditherbox.cpp | PanieriLorenzo/airwindows | 03fe0bddb4689eddd5444116ba4862942d069b76 | [
"MIT"
] | 446 | 2018-01-22T18:03:39.000Z | 2022-03-31T18:57:27.000Z | plugins/WinVST/Ditherbox/Ditherbox.cpp | PanieriLorenzo/airwindows | 03fe0bddb4689eddd5444116ba4862942d069b76 | [
"MIT"
] | 33 | 2018-01-24T20:36:48.000Z | 2022-03-23T21:27:37.000Z | plugins/WinVST/Ditherbox/Ditherbox.cpp | PanieriLorenzo/airwindows | 03fe0bddb4689eddd5444116ba4862942d069b76 | [
"MIT"
] | 71 | 2018-02-16T18:17:21.000Z | 2022-03-24T21:31:46.000Z | /* ========================================
* Ditherbox - Ditherbox.h
* Copyright (c) 2016 airwindows, All rights reserved
* ======================================== */
#ifndef __Ditherbox_H
#include "Ditherbox.h"
#endif
AudioEffect* createEffectInstance(audioMasterCallback audioMaster) {return new Ditherbox(aud... | 33.273333 | 104 | 0.676418 | PanieriLorenzo |
0d3f6b8cfd3a4a6999441ceb0071d9275d3534b3 | 4,071 | cpp | C++ | ds2/lib_demonsaw/component/chat_idle_component.cpp | demonsaw/Code | b036d455e9e034d7fd178e63d5e992242d62989a | [
"MIT"
] | 132 | 2017-03-22T03:46:38.000Z | 2022-03-08T15:08:16.000Z | ds2/lib_demonsaw/component/chat_idle_component.cpp | demonsaw/Code | b036d455e9e034d7fd178e63d5e992242d62989a | [
"MIT"
] | 4 | 2017-04-06T17:46:10.000Z | 2018-08-08T18:27:59.000Z | ds2/lib_demonsaw/component/chat_idle_component.cpp | demonsaw/Code | b036d455e9e034d7fd178e63d5e992242d62989a | [
"MIT"
] | 30 | 2017-03-26T22:38:17.000Z | 2021-11-21T20:50:17.000Z | //
// The MIT License(MIT)
//
// Copyright(c) 2014 Demonsaw LLC
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, c... | 23 | 131 | 0.669369 | demonsaw |
0d40d197c7216f170dbb37c2233e9211f1c296e8 | 4,009 | cc | C++ | crunchy/internal/keyset/macer_factory.cc | google/crunchy | 9d241ffd619889ed9855e2cf41dc0c5485a7148c | [
"Apache-2.0"
] | 125 | 2017-11-21T14:23:02.000Z | 2021-06-15T10:13:54.000Z | crunchy/internal/keyset/macer_factory.cc | Jason-Cooke/crunchy | 9d241ffd619889ed9855e2cf41dc0c5485a7148c | [
"Apache-2.0"
] | 2 | 2018-01-11T14:07:18.000Z | 2018-07-12T16:20:30.000Z | crunchy/internal/keyset/macer_factory.cc | google/crunchy | 9d241ffd619889ed9855e2cf41dc0c5485a7148c | [
"Apache-2.0"
] | 19 | 2017-12-08T16:49:06.000Z | 2022-01-22T12:34:19.000Z | // Copyright 2017 The CrunchyCrypt Authors.
//
// 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 o... | 34.86087 | 76 | 0.688451 | google |
0d44f4292eb3dbad76d97d0ceb887f16194a6eb9 | 1,533 | cpp | C++ | test/bench/cpp/rbtree-ck.cpp | lovebaihezi/koka | b1670308f88dd1fc6c22cad28385fcb185d5b27d | [
"Apache-2.0"
] | 2,057 | 2016-12-21T18:14:47.000Z | 2022-03-30T13:51:43.000Z | test/bench/cpp/rbtree-ck.cpp | lovebaihezi/koka | b1670308f88dd1fc6c22cad28385fcb185d5b27d | [
"Apache-2.0"
] | 207 | 2017-01-15T03:17:34.000Z | 2022-03-23T06:39:40.000Z | test/bench/cpp/rbtree-ck.cpp | lovebaihezi/koka | b1670308f88dd1fc6c22cad28385fcb185d5b27d | [
"Apache-2.0"
] | 116 | 2017-01-25T19:17:49.000Z | 2022-03-11T01:25:57.000Z | // Try persisting std:map through copying; is too slow...
// We should try to make a persistent RB tree in C++ but this is not trivial to do...
#include <iostream>
#include <map>
#include <list>
#include <algorithm>
#include <memory>
// #include "util/nat.h"
// #include "util/list.h"
// using namespace lean;
using std... | 24.333333 | 106 | 0.585127 | lovebaihezi |
0d4c744a76f95c97a248ba7f551d359e7406e9c4 | 4,225 | hpp | C++ | include/exec.hpp | geraldc-unm/Comb | 790d054f9722e6752a27a1c2e08c135f9d5b8e75 | [
"MIT"
] | 21 | 2018-10-03T18:15:04.000Z | 2022-02-16T08:07:50.000Z | include/exec.hpp | geraldc-unm/Comb | 790d054f9722e6752a27a1c2e08c135f9d5b8e75 | [
"MIT"
] | 5 | 2019-10-07T23:06:57.000Z | 2021-08-16T16:10:58.000Z | include/exec.hpp | geraldc-unm/Comb | 790d054f9722e6752a27a1c2e08c135f9d5b8e75 | [
"MIT"
] | 6 | 2019-09-13T16:47:33.000Z | 2022-03-03T16:17:32.000Z | //////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2018-2021, Lawrence Livermore National Security, LLC.
//
// Produced at the Lawrence Livermore National Laboratory
//
// LLNL-CODE-758885
//
// All rights reserved.
//
// This file is part of Comb.
//
// For details, see htt... | 24.142857 | 199 | 0.725207 | geraldc-unm |
0d505c9bb221def9f896b1ac514935a8c9feb8ae | 403 | cpp | C++ | Treads!/ScoreRecord.cpp | JoeKooler/Treads | 5412d4a94a7b331aa37d04ff85e6f9e53da1150b | [
"MIT"
] | null | null | null | Treads!/ScoreRecord.cpp | JoeKooler/Treads | 5412d4a94a7b331aa37d04ff85e6f9e53da1150b | [
"MIT"
] | null | null | null | Treads!/ScoreRecord.cpp | JoeKooler/Treads | 5412d4a94a7b331aa37d04ff85e6f9e53da1150b | [
"MIT"
] | null | null | null | #include "ScoreRecord.hpp"
using namespace std;
ScoreRecord::ScoreRecord(std::string nameStr, int scoreVal, float timeVal) : name(nameStr), score(scoreVal), time(timeVal)
{
}
void ScoreRecord::write(std::ostream & strm) const
{
strm << name << " ";
strm << score << " ";
strm << time << endl;
}
v... | 19.190476 | 123 | 0.62531 | JoeKooler |
0d55e3d06c3d011f9c37c453b15ebbd14e0e909e | 126 | cpp | C++ | contrib/UnitTest++/src/tests/Main.cpp | Alexander-Ignatyev/optimer | fc0fb8ffd35e6326f60d77c144cfe7635a6edaa7 | [
"BSD-3-Clause"
] | null | null | null | contrib/UnitTest++/src/tests/Main.cpp | Alexander-Ignatyev/optimer | fc0fb8ffd35e6326f60d77c144cfe7635a6edaa7 | [
"BSD-3-Clause"
] | null | null | null | contrib/UnitTest++/src/tests/Main.cpp | Alexander-Ignatyev/optimer | fc0fb8ffd35e6326f60d77c144cfe7635a6edaa7 | [
"BSD-3-Clause"
] | null | null | null | #include "../TestRunnerTeamCity.h"
int main(int, char const *[])
{
return UnitTest::RunAllTestsWithTeamCity();
}
| 15.75 | 48 | 0.650794 | Alexander-Ignatyev |
0d562cab15d064ea2ea82648da228fecb4314811 | 6,517 | cpp | C++ | src/PhantomEngine/PhantomUITextBox.cpp | DexianZhao/PhantomEngineV2 | cc3bf02ca1d442713d471ca8835ca026bb32e841 | [
"MIT"
] | 1 | 2021-10-30T07:38:25.000Z | 2021-10-30T07:38:25.000Z | src/PhantomEngine/PhantomUITextBox.cpp | DexianZhao/PhantomEngineV2 | cc3bf02ca1d442713d471ca8835ca026bb32e841 | [
"MIT"
] | null | null | null | src/PhantomEngine/PhantomUITextBox.cpp | DexianZhao/PhantomEngineV2 | cc3bf02ca1d442713d471ca8835ca026bb32e841 | [
"MIT"
] | null | null | null | //////////////////////////////////////////////////////////////////////////////////////////////////////
/*
幻影游戏引擎, 2009-2016, Phantom Game Engine, http://www.aixspace.com
Design Writer : 赵德贤 Dexian Zhao
Email: yuzhou_995@hotmail.com
*/
////////////////////////////////////////////////////////////////////////////////... | 29.622727 | 197 | 0.651834 | DexianZhao |
0d5671dac35b53c631368e274aa0088e66566096 | 2,011 | cpp | C++ | Source/PLT/POSIX/Rtc.cpp | sandsmark/Platform | 067ce90b3600ad2ab19e216b90c1618605c43ae9 | [
"MIT"
] | 3 | 2018-01-30T06:27:47.000Z | 2020-11-28T16:32:39.000Z | Source/PLT/POSIX/Rtc.cpp | sandsmark/Platform | 067ce90b3600ad2ab19e216b90c1618605c43ae9 | [
"MIT"
] | 1 | 2021-02-07T21:15:36.000Z | 2021-02-07T21:15:36.000Z | Source/PLT/POSIX/Rtc.cpp | sandsmark/Platform | 067ce90b3600ad2ab19e216b90c1618605c43ae9 | [
"MIT"
] | 1 | 2019-09-05T18:22:44.000Z | 2019-09-05T18:22:44.000Z | //------------------------------------------------------------------------------
// Copyright (c) 2019 John D. Haughton
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restricti... | 31.421875 | 80 | 0.659373 | sandsmark |
0d579fffbca8a36f51ddfe773a5f0d234528cc0a | 372 | cpp | C++ | IT-OOPs-A2/IT_OOP_L2Q2.cpp | umgbhalla/OOPsAssign | 34cee8907fea4ee659b1e0cf146a2b1b09a96c3b | [
"MIT"
] | 5 | 2021-09-03T18:33:40.000Z | 2021-09-13T11:51:38.000Z | IT-OOPs-A2/IT_OOP_L2Q2.cpp | umgbhalla/OOPsAssign | 34cee8907fea4ee659b1e0cf146a2b1b09a96c3b | [
"MIT"
] | 1 | 2021-07-28T05:36:15.000Z | 2021-07-28T05:36:15.000Z | IT-OOPs-A2/IT_OOP_L2Q2.cpp | umgbhalla/OOPsAssign | 34cee8907fea4ee659b1e0cf146a2b1b09a96c3b | [
"MIT"
] | 4 | 2021-07-28T05:26:52.000Z | 2021-07-28T16:19:03.000Z | #include <iostream>
using namespace std;
int reversDigits(int n)
{
int rev_n = 0;
while (n > 0)
{
rev_n = rev_n * 10 + n % 10;
n = n / 10;
}
return rev_n;
}
int main()
{
int n = 0;
cout << "Enter Integer value :: ";
cin >> n;
cout << "\nReverse of Integer value i... | 14.88 | 75 | 0.5 | umgbhalla |
0d594964b80acaba29852914d098dd286b38795b | 80 | cpp | C++ | Firefly/vendor/stb/stb_sprintf.cpp | Latias94/Firefly | ad6671df0b16ed9481b013936ba06ffc3be80e60 | [
"Apache-2.0"
] | null | null | null | Firefly/vendor/stb/stb_sprintf.cpp | Latias94/Firefly | ad6671df0b16ed9481b013936ba06ffc3be80e60 | [
"Apache-2.0"
] | null | null | null | Firefly/vendor/stb/stb_sprintf.cpp | Latias94/Firefly | ad6671df0b16ed9481b013936ba06ffc3be80e60 | [
"Apache-2.0"
] | null | null | null | #include "ffpch.h"
#define STB_SPRINTF_IMPLEMENTATION
#include "stb_sprintf.h"
| 16 | 34 | 0.8 | Latias94 |
0d5e451ba86c4fc06c9ee90cf820a4e0e7910b2e | 41,787 | cpp | C++ | src/network/postgres_protocol_handler.cpp | phisiart/peloton | c2becb9d6f2e2c8f48696a371b0d7c0ff79d56fc | [
"Apache-2.0"
] | 1 | 2017-04-17T15:19:36.000Z | 2017-04-17T15:19:36.000Z | src/network/postgres_protocol_handler.cpp | phisiart/peloton | c2becb9d6f2e2c8f48696a371b0d7c0ff79d56fc | [
"Apache-2.0"
] | 5 | 2017-04-23T17:16:14.000Z | 2017-04-25T03:14:16.000Z | src/network/postgres_protocol_handler.cpp | phisiart/peloton-p3 | c2becb9d6f2e2c8f48696a371b0d7c0ff79d56fc | [
"Apache-2.0"
] | null | null | null | //===----------------------------------------------------------------------===//
//
// Peloton
//
// postgres_protocol_handler.cpp
//
// Identification: src/network/postgres_protocol_handler.cpp
//
// Copyright (c) 2015-17, Carnegie Mellon University Database Group
//
//===----------------------... | 35.056208 | 112 | 0.675042 | phisiart |
0d609507770c42304e822774cfce78e26207ce2f | 1,580 | cpp | C++ | code/client/citicore/GameMode.Win32.cpp | MyNameIsYesgo/fivem | 6def381fa0a992261a4414fae700c1c077e59327 | [
"MIT"
] | 5 | 2020-07-26T16:06:24.000Z | 2021-05-01T14:29:40.000Z | code/client/citicore/GameMode.Win32.cpp | MyNameIsYesgo/fivem | 6def381fa0a992261a4414fae700c1c077e59327 | [
"MIT"
] | 6 | 2021-05-11T09:09:11.000Z | 2022-03-23T18:34:23.000Z | code/client/citicore/GameMode.Win32.cpp | MyNameIsYesgo/fivem | 6def381fa0a992261a4414fae700c1c077e59327 | [
"MIT"
] | 3 | 2020-11-09T12:41:05.000Z | 2022-01-24T23:16:15.000Z | #include "StdInc.h"
#include "ComponentLoader.h"
#include "ToolComponent.h"
#include <ResumeComponent.h>
#include <Error.h>
extern "C" DLL_EXPORT void GameMode_Init()
{
ComponentLoader* loader = ComponentLoader::GetInstance();
loader->Initialize();
// TODO: init dep tree
fwRefContainer<ComponentData> cliCompon... | 29.259259 | 136 | 0.744304 | MyNameIsYesgo |
0d60e9f614496667146802167c8e9ef9105a60af | 35,069 | cc | C++ | src/xwrouter_xid_handler.cc | telosprotocol/xwrouter | 20ef56c4ec2eaf0b7fd8baab1e06dfbcfbfe22c7 | [
"MIT"
] | 13 | 2019-09-17T08:49:46.000Z | 2020-01-13T08:06:14.000Z | src/xwrouter_xid_handler.cc | telosprotocol/xwrouter | 20ef56c4ec2eaf0b7fd8baab1e06dfbcfbfe22c7 | [
"MIT"
] | null | null | null | src/xwrouter_xid_handler.cc | telosprotocol/xwrouter | 20ef56c4ec2eaf0b7fd8baab1e06dfbcfbfe22c7 | [
"MIT"
] | null | null | null | // Copyright (c) 2017-2019 Telos Foundation & contributors
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "xwrouter/message_handler/xwrouter_xid_handler.h"
#include <algorithm>
#include "xpbase/base/kad_key/get_kadml... | 37.708602 | 144 | 0.645214 | telosprotocol |
0d62ee389e81f5fd426b9d852f144701b4e73d4f | 312 | hpp | C++ | exercicios/lista_1/exercicio_1/stack.hpp | M3nin0/estrutura-de-dados-espaciais | b3864bfd358f1a6c78001f92565bb02dd26e566c | [
"BSD-2-Clause"
] | null | null | null | exercicios/lista_1/exercicio_1/stack.hpp | M3nin0/estrutura-de-dados-espaciais | b3864bfd358f1a6c78001f92565bb02dd26e566c | [
"BSD-2-Clause"
] | null | null | null | exercicios/lista_1/exercicio_1/stack.hpp | M3nin0/estrutura-de-dados-espaciais | b3864bfd358f1a6c78001f92565bb02dd26e566c | [
"BSD-2-Clause"
] | null | null | null | #ifndef _STACK_HEADER
#define _STACK_HEADER
#include <cstddef>
class Stack
{
public:
Stack();
Stack(std::size_t size);
~Stack();
int top();
void pop();
bool empty();
void push(int v);
private:
int *p_elements;
std::size_t p_idx = 0;
std::size_t p_size = 10;
};
#endif
| 13 | 28 | 0.599359 | M3nin0 |
0d638a65e38bcdbcae82f465615f70ed64c5b2ed | 356 | cpp | C++ | QtOpenCV/main.cpp | ayaromenok/utils | d3bfd1f8b842def00d32834100ac893f2ae4638b | [
"MIT"
] | null | null | null | QtOpenCV/main.cpp | ayaromenok/utils | d3bfd1f8b842def00d32834100ac893f2ae4638b | [
"MIT"
] | 7 | 2018-04-04T11:46:21.000Z | 2020-06-12T14:44:31.000Z | QtOpenCV/main.cpp | ayaromenok/utils | d3bfd1f8b842def00d32834100ac893f2ae4638b | [
"MIT"
] | null | null | null | #include <QApplication>
#include <QDebug>
#include "cvwidget.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
qDebug() << "++++++++++++++++++++++++++++++++++++++++++";
qDebug() << "|\tQt OpenCV stub app \t|";
qDebug() << "------------------------------------------";
CvWidget w;
... | 22.25 | 61 | 0.424157 | ayaromenok |
0d696df9b3a15ee705e6ef3f9a4082dc99a64dd0 | 5,721 | cpp | C++ | src/dlg_progress.cpp | jheddings/ml_org | 3e1d58c49ea17db84628d97539c4a2aafc00343b | [
"MIT"
] | 1 | 2016-10-09T01:34:57.000Z | 2016-10-09T01:34:57.000Z | src/dlg_progress.cpp | jheddings/ml_org | 3e1d58c49ea17db84628d97539c4a2aafc00343b | [
"MIT"
] | null | null | null | src/dlg_progress.cpp | jheddings/ml_org | 3e1d58c49ea17db84628d97539c4a2aafc00343b | [
"MIT"
] | null | null | null | /* Written by Jason Heddings - http://www.heddway.com/
**
** This software is provided 'as-is', without any express or implied warranty.
** In no event will the authors be held liable for any damages arising from
** the use of this software.
**
** This code is modified from the ml_ipod plugin: http://mlipod.sf.ne... | 38.14 | 113 | 0.53627 | jheddings |
0d69d6f6c5a0a3325f38a4b5e43ef89e3e256170 | 1,293 | cpp | C++ | pillar2c/src/summarize.cpp | IntelLabs/IFLC-LIB | 4317e191081cd48ad373ea41874d90830594ca4b | [
"Apache-2.0",
"BSD-2-Clause"
] | 21 | 2017-04-12T21:31:52.000Z | 2017-10-14T16:11:19.000Z | pillar2c/src/summarize.cpp | csabahruska/flrc-lib | c2bccdbeecf6a0128988ac93e80f599ff2bfd5a8 | [
"Apache-2.0",
"BSD-2-Clause"
] | 2 | 2017-04-16T21:21:38.000Z | 2020-02-03T15:31:24.000Z | pillar2c/src/summarize.cpp | csabahruska/flrc-lib | c2bccdbeecf6a0128988ac93e80f599ff2bfd5a8 | [
"Apache-2.0",
"BSD-2-Clause"
] | 6 | 2017-04-13T13:26:12.000Z | 2019-11-09T19:44:28.000Z | #include <iostream>
#include <fstream>
#include <map>
#include <string>
using namespace std;
int main(int argc, char *argv[]) {
if(argc != 2) {
cout << "Bad command line.\n";
return -1;
}
ifstream inputfile(argv[1]);
if(!inputfile) {
cout << "Could not open file " << argv[1] <<... | 24.865385 | 109 | 0.556845 | IntelLabs |
0d6eecec20affe9494c0a8fdcc96b95db8d1a440 | 30,077 | inl | C++ | Lumos/External/imgui/plugins/ImGuiAl/fonts/ProggyCleanSZ.inl | perefm/Lumos | 2f0ae4d0bad1447b5318043500751be1753666a2 | [
"MIT"
] | 672 | 2019-01-29T18:14:40.000Z | 2022-03-31T20:38:40.000Z | Lumos/External/imgui/plugins/ImGuiAl/fonts/ProggyCleanSZ.inl | gameconstructer/Lumos | 92f6e812fdfc9404bf557e131679ae9071f25c80 | [
"MIT"
] | 25 | 2019-10-05T17:16:13.000Z | 2021-12-29T01:40:04.000Z | Lumos/External/imgui/plugins/ImGuiAl/fonts/ProggyCleanSZ.inl | gameconstructer/Lumos | 92f6e812fdfc9404bf557e131679ae9071f25c80 | [
"MIT"
] | 83 | 2019-03-13T14:11:12.000Z | 2022-03-30T02:52:49.000Z | // File: 'ProggyCleanSZ.ttf' (41228 bytes)
// Exported using binary_to_compressed_c.cpp
static const unsigned int ProggyCleanSZ_compressed_size = 9614;
static const unsigned int ProggyCleanSZ_compressed_data[9616/4] =
{
0x0000bc57, 0x00000000, 0x0ca10000, 0x00000400, 0x00010037, 0x000c0000, 0x00030080, 0x2f534f40, ... | 143.909091 | 148 | 0.805233 | perefm |
0d6fbe13958ea917914dd9f36a99095bedced173 | 25,912 | cpp | C++ | QTDialogs/ResultsAnalyzerTab/ResultsAnalyzerTab.cpp | msolids/musen | 67d9a70d03d771ccda649c21b78d165684e31171 | [
"BSD-3-Clause"
] | 19 | 2020-09-28T07:22:50.000Z | 2022-03-07T09:52:20.000Z | QTDialogs/ResultsAnalyzerTab/ResultsAnalyzerTab.cpp | LasCondes/musen | 18961807928285ff802e050050f4c627dd7bec1e | [
"BSD-3-Clause"
] | 5 | 2020-12-26T18:18:27.000Z | 2022-02-23T22:56:43.000Z | QTDialogs/ResultsAnalyzerTab/ResultsAnalyzerTab.cpp | LasCondes/musen | 18961807928285ff802e050050f4c627dd7bec1e | [
"BSD-3-Clause"
] | 11 | 2020-11-02T11:32:03.000Z | 2022-01-27T08:22:04.000Z | /* Copyright (c) 2013-2020, MUSEN Development Team. All rights reserved.
This file is part of MUSEN framework http://msolids.net/musen.
See LICENSE file for license and warranty information. */
#include "ResultsAnalyzerTab.h"
#include "qtOperations.h"
#include <QMessageBox>
#include <QFileDialog>
CAnalyzerThrea... | 35.790055 | 214 | 0.793339 | msolids |
0d710ac67539bcd4976b0e80fbb224a418b64377 | 10,383 | hpp | C++ | MyBot/discord_profile_filesystem.hpp | Sijumah/Sijdiscbot | c58433b1bcaacc17ee17637c2daa6ce07d6d4120 | [
"Apache-2.0"
] | null | null | null | MyBot/discord_profile_filesystem.hpp | Sijumah/Sijdiscbot | c58433b1bcaacc17ee17637c2daa6ce07d6d4120 | [
"Apache-2.0"
] | null | null | null | MyBot/discord_profile_filesystem.hpp | Sijumah/Sijdiscbot | c58433b1bcaacc17ee17637c2daa6ce07d6d4120 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "Sijf.hpp"
#include <string.h>
#include <string>
#include <deque>
#include <tuple>
#include <array>
#include<vector>
#include <optional>
namespace Sijdisc {
struct gameprofile {
std::string game_name;
std::deque<std::pair<std::string,double>> game_stats; //A deque of for insta... | 47.410959 | 313 | 0.663103 | Sijumah |
0d7355c704fe48cf0184084e52e3c1dc37d7c412 | 1,710 | hpp | C++ | Sources/NodeUIEngine/NUIE_ClipboardHandler.hpp | GerHobbelt/VisualScriptEngine | f76564d795b08d413a8625edba87dff21837039f | [
"MIT"
] | 19 | 2020-08-01T14:52:21.000Z | 2022-03-27T01:09:59.000Z | Sources/NodeUIEngine/NUIE_ClipboardHandler.hpp | GerHobbelt/VisualScriptEngine | f76564d795b08d413a8625edba87dff21837039f | [
"MIT"
] | 17 | 2020-08-14T15:03:07.000Z | 2020-09-24T17:08:52.000Z | Sources/NodeUIEngine/NUIE_ClipboardHandler.hpp | GerHobbelt/VisualScriptEngine | f76564d795b08d413a8625edba87dff21837039f | [
"MIT"
] | null | null | null | #ifndef NUIE_CLIPBOARDHANDLER_HPP
#define NUIE_CLIPBOARDHANDLER_HPP
#include "NUIE_Version.hpp"
#include <vector>
#include <memory>
namespace NUIE
{
class ClipboardHandler
{
public:
ClipboardHandler ();
virtual ~ClipboardHandler ();
virtual Version GetCurrentVersion () const = 0;
virtual bool IsCompatibleVer... | 27.142857 | 79 | 0.780702 | GerHobbelt |
0d740f2ac7506d22caffb7fe306b683ddcb0402b | 21,367 | hpp | C++ | src/vm/internal/ref_stream_tcp.hpp | BastianBlokland/novus | 3b984c36855aa84d6746c14ff7e294ab7d9c1575 | [
"MIT"
] | 14 | 2020-04-14T17:00:56.000Z | 2021-08-30T08:29:26.000Z | src/vm/internal/ref_stream_tcp.hpp | BastianBlokland/novus | 3b984c36855aa84d6746c14ff7e294ab7d9c1575 | [
"MIT"
] | 27 | 2020-12-27T16:00:44.000Z | 2021-08-01T13:12:14.000Z | src/vm/internal/ref_stream_tcp.hpp | BastianBlokland/novus | 3b984c36855aa84d6746c14ff7e294ab7d9c1575 | [
"MIT"
] | 1 | 2020-05-29T18:33:37.000Z | 2020-05-29T18:33:37.000Z | #pragma once
#include "internal/os_include.hpp"
#include "internal/platform_utilities.hpp"
#include "internal/ref.hpp"
#include "internal/ref_allocator.hpp"
#include "internal/ref_string.hpp"
#include "internal/settings.hpp"
#include "internal/stream_opts.hpp"
#include "internal/thread.hpp"
#include "intrinsics.hpp"
#i... | 30.877168 | 100 | 0.683671 | BastianBlokland |
0d74112cb0319a50464a9fbb6aa9e7569a8a3a27 | 4,950 | inl | C++ | unit_tests/api/cl_create_user_event_tests.inl | cmey/compute-runtime | 118bad16dfe523724dfaf8016bfa6fbe6896348b | [
"MIT"
] | null | null | null | unit_tests/api/cl_create_user_event_tests.inl | cmey/compute-runtime | 118bad16dfe523724dfaf8016bfa6fbe6896348b | [
"MIT"
] | null | null | null | unit_tests/api/cl_create_user_event_tests.inl | cmey/compute-runtime | 118bad16dfe523724dfaf8016bfa6fbe6896348b | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2017 - 2018, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, ... | 34.375 | 96 | 0.740808 | cmey |
0d752d0c5abd888642015934a7ef73606782e71c | 6,650 | cpp | C++ | SharingFaces/src/main.cpp | jjzhang166/SharingFaces | d890fca21cc766c8838d79410366bab8298ea941 | [
"MIT"
] | null | null | null | SharingFaces/src/main.cpp | jjzhang166/SharingFaces | d890fca21cc766c8838d79410366bab8298ea941 | [
"MIT"
] | null | null | null | SharingFaces/src/main.cpp | jjzhang166/SharingFaces | d890fca21cc766c8838d79410366bab8298ea941 | [
"MIT"
] | null | null | null | #define INSTALL
//#define USE_WHITE_POINT
#include "ofMain.h"
#include "SharingFacesUtils.h"
const int installWidth = 1080, installHeight = 1920;
class ofApp : public ofBaseApp {
public:
#ifdef INSTALL
static const int camWidth = 1920, camHeight = 1080;
ofxBlackMagic cam;
#else
static const int camWidth ... | 30.930233 | 114 | 0.528571 | jjzhang166 |
0d75976d5a721eda0c4153e5b1a0170f2675a3f5 | 926 | cpp | C++ | examples/CustomDemo/CustomServer/CustomServantImp.cpp | cSingleboy/TarsCpp | 17b228b660d540baa1a93215fc007c5131a2fc68 | [
"BSD-3-Clause"
] | 386 | 2018-09-11T06:17:10.000Z | 2022-03-31T05:59:41.000Z | examples/CustomDemo/CustomServer/CustomServantImp.cpp | cSingleboy/TarsCpp | 17b228b660d540baa1a93215fc007c5131a2fc68 | [
"BSD-3-Clause"
] | 128 | 2018-09-12T03:43:33.000Z | 2022-03-24T10:03:54.000Z | examples/CustomDemo/CustomServer/CustomServantImp.cpp | cSingleboy/TarsCpp | 17b228b660d540baa1a93215fc007c5131a2fc68 | [
"BSD-3-Clause"
] | 259 | 2018-09-19T08:50:37.000Z | 2022-03-11T07:17:56.000Z | #include "CustomServantImp.h"
#include "servant/Application.h"
using namespace std;
//////////////////////////////////////////////////////
void CustomServantImp::initialize()
{
//initialize servant here:
//...
}
//////////////////////////////////////////////////////
void CustomServantImp::destroy()
{
//... | 23.74359 | 140 | 0.609071 | cSingleboy |
0d7d9e197253862c736a2348f2acca71e4567600 | 261 | hpp | C++ | tests/memory_resource_headers.hpp | olegpublicprofile/stdeasy | 9f4ab01219f49ebab1983b4263d4dd6d3dc94bf0 | [
"MIT"
] | 5 | 2021-09-27T09:24:39.000Z | 2021-10-14T12:34:46.000Z | tests/memory_resource_headers.hpp | olegpublicprofile/stdeasy | 9f4ab01219f49ebab1983b4263d4dd6d3dc94bf0 | [
"MIT"
] | null | null | null | tests/memory_resource_headers.hpp | olegpublicprofile/stdeasy | 9f4ab01219f49ebab1983b4263d4dd6d3dc94bf0 | [
"MIT"
] | null | null | null | #pragma once
#include <stdeasy/memory_resource>
#include <stdeasy/monotonic_buffer_resource>
#include <stdeasy/polymorphic_allocator>
#include <stdeasy/pool_options>
#include <stdeasy/synchronized_pool_resource>
#include <stdeasy/unsynchronized_pool_resource>
| 29 | 47 | 0.846743 | olegpublicprofile |
0d7f9a98ace57bdb849fc980f98d39ec061c849e | 2,911 | hpp | C++ | external/swak/libraries/swakParsers/helpers/DebugOStream.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | external/swak/libraries/swakParsers/helpers/DebugOStream.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | external/swak/libraries/swakParsers/helpers/DebugOStream.hpp | MrAwesomeRocks/caelus-cml | 55b6dc5ba47d0e95c07412d9446ac72ac11d7fd7 | [
"mpich2"
] | null | null | null | /*---------------------------------------------------------------------------*\
Copyright: ICE Stroemungsfoschungs GmbH
Copyright (C) 1991-2008 OpenCFD Ltd.
-------------------------------------------------------------------------------
License
This file is based on CAELUS.
CAELUS is free software: you can red... | 31.301075 | 94 | 0.518722 | MrAwesomeRocks |
0d809854cbe613370439ebdcefa59e805b3642c0 | 11,783 | cc | C++ | tests/multi-test.cc | maxk-org/vdds | 015473498661cb8f06868cce2dc4519a6452b861 | [
"BSD-3-Clause"
] | null | null | null | tests/multi-test.cc | maxk-org/vdds | 015473498661cb8f06868cce2dc4519a6452b861 | [
"BSD-3-Clause"
] | null | null | null | tests/multi-test.cc | maxk-org/vdds | 015473498661cb8f06868cce2dc4519a6452b861 | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2021, Qualcomm Innovation Center, Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// ... | 28.324519 | 115 | 0.671985 | maxk-org |
0d82900198357ad2693a24a411ddb415aad4b6a4 | 584 | hpp | C++ | src/JImage.hpp | jildertviet/ofxJVisuals | 878c5b0e7a7dda49ddb71b3f5d19c13987706a73 | [
"MIT"
] | null | null | null | src/JImage.hpp | jildertviet/ofxJVisuals | 878c5b0e7a7dda49ddb71b3f5d19c13987706a73 | [
"MIT"
] | 6 | 2021-10-16T07:10:04.000Z | 2021-12-26T13:23:54.000Z | src/JImage.hpp | jildertviet/ofxJVisuals | 878c5b0e7a7dda49ddb71b3f5d19c13987706a73 | [
"MIT"
] | null | null | null | //
// Image.hpp
// Bas
//
// Created by Jildert Viet on 18-03-16.
//
//
#ifndef Image_hpp
#define Image_hpp
#include <stdio.h>
#include "ofMain.h"
#include "Event.hpp"
class JImage: public Event{
enum DrawMode{
DEFAULT
};
public:
JImage(string filename, ofVec2f loc = ofVec2... | 16.685714 | 57 | 0.583904 | jildertviet |
0d83dd1b064eb844e078bc048689083496879434 | 618 | cpp | C++ | src/PhysXPlugin/PhysXPlugin.cpp | roto5296/choreonoid | ffe12df8db71e32aea18833afb80dffc42c373d0 | [
"MIT"
] | 91 | 2015-01-29T11:03:42.000Z | 2022-02-13T07:34:04.000Z | src/PhysXPlugin/PhysXPlugin.cpp | roto5296/choreonoid | ffe12df8db71e32aea18833afb80dffc42c373d0 | [
"MIT"
] | 213 | 2015-01-26T06:21:15.000Z | 2020-07-23T05:51:30.000Z | src/PhysXPlugin/PhysXPlugin.cpp | roto5296/choreonoid | ffe12df8db71e32aea18833afb80dffc42c373d0 | [
"MIT"
] | 71 | 2015-01-06T02:32:05.000Z | 2020-12-01T03:42:25.000Z | /*!
@file
@author Shizuko Hattori
*/
#include "PhysXSimulatorItem.h"
#include <cnoid/Plugin>
using namespace std;
using namespace cnoid;
namespace {
class PhysXPlugin : public Plugin
{
public:
PhysXPlugin() : Plugin("PhysX")
{
require("Body");
}
virtual ~PhysXPl... | 14.714286 | 49 | 0.532362 | roto5296 |
0d8e396b45379595ebf886d4f0e618d0f74e0e4f | 283 | cpp | C++ | src/ham/libham/dbus-dispatcher.cpp | project-arlo/sonic-mgmt-framework | 562cd84ff3fec9ca705c7df621742f2daa61ce71 | [
"Apache-2.0"
] | 7 | 2019-10-17T06:12:02.000Z | 2021-09-08T11:16:19.000Z | src/ham/libham/dbus-dispatcher.cpp | noolex/sonic-mgmt-framework | 5493889adc47fc584b04dca1a0cc0a2007211df4 | [
"Apache-2.0"
] | 207 | 2019-06-24T04:48:11.000Z | 2020-05-06T05:51:37.000Z | src/ham/libham/dbus-dispatcher.cpp | noolex/sonic-mgmt-framework | 5493889adc47fc584b04dca1a0cc0a2007211df4 | [
"Apache-2.0"
] | 20 | 2019-06-27T19:24:45.000Z | 2021-07-15T21:12:30.000Z | #include "dbus-proxy.h" // get_dispatcher() prototype
// The dispatcher is a "main loop" construct that handles
// DBus messages. This should be defined as a singleton.
DBus::BusDispatcher * get_dispatcher()
{
static DBus::BusDispatcher dispatcher;
return &dispatcher;
}
| 23.583333 | 57 | 0.731449 | project-arlo |
0d8fe835f3d09c533a1b982dd950ec697e9208eb | 188 | cpp | C++ | test.cpp | fobes/sfmath_tests | bc6b2f2a42b3392b421f042380b673d1da8b72f8 | [
"Apache-2.0"
] | null | null | null | test.cpp | fobes/sfmath_tests | bc6b2f2a42b3392b421f042380b673d1da8b72f8 | [
"Apache-2.0"
] | null | null | null | test.cpp | fobes/sfmath_tests | bc6b2f2a42b3392b421f042380b673d1da8b72f8 | [
"Apache-2.0"
] | null | null | null | #include "pch.h"
#include "../sfmath/CSfmathMatrix.h"
TEST(TestCaseName, TestName) {
CSfmathMatrix mtx;
for (unsigned n = 0; n < 1000000; n++)
{
//CSfmathMatrix::Multiplication
}
} | 17.090909 | 39 | 0.675532 | fobes |
0d92cd8e21f307d777b4560c55606afa00122de9 | 1,288 | cpp | C++ | TypeTraits/TypeTraits.cpp | jbcoe/CppSandbox | 574dc31bbd3640a8cf1b7642c4a449bee687cce5 | [
"MIT"
] | 7 | 2015-01-18T13:30:09.000Z | 2021-08-21T19:50:26.000Z | TypeTraits/TypeTraits.cpp | jbcoe/CppSandbox | 574dc31bbd3640a8cf1b7642c4a449bee687cce5 | [
"MIT"
] | 1 | 2016-03-13T21:26:37.000Z | 2016-03-13T21:26:37.000Z | TypeTraits/TypeTraits.cpp | jbcoe/CppSandbox | 574dc31bbd3640a8cf1b7642c4a449bee687cce5 | [
"MIT"
] | 1 | 2016-02-16T04:56:25.000Z | 2016-02-16T04:56:25.000Z | #include <iostream>
#include <sstream>
#include <type_traits>
class CEmptyClass
{
public:
static constexpr const char* name = "CEmptyClass";
};
class CDerivedClass : public CEmptyClass
{
public:
static constexpr const char* name = "CDerivedClass";
};
template <typename T>
std::string TypeName()
{
std::stringst... | 20.125 | 73 | 0.608696 | jbcoe |
0d93267b7bc8a0ddf9174959f3e000ddd43d3427 | 26,514 | cpp | C++ | test/data/sample.cpp | viridia/coda | 40671b655c2d2368bdc5f3a9ae1a45b57305f7a3 | [
"Apache-2.0"
] | 1 | 2017-09-06T16:50:13.000Z | 2017-09-06T16:50:13.000Z | test/data/sample.cpp | viridia/coda | 40671b655c2d2368bdc5f3a9ae1a45b57305f7a3 | [
"Apache-2.0"
] | null | null | null | test/data/sample.cpp | viridia/coda | 40671b655c2d2368bdc5f3a9ae1a45b57305f7a3 | [
"Apache-2.0"
] | null | null | null | // ============================================================================
// Generated by codagen from sample.coda.coda. DO NOT EDIT!
// ============================================================================
#include "coda/types.h"
#include "coda/io/codec.h"
#include "sample.h"
#include "coda/runtime/descr... | 35.541555 | 223 | 0.657841 | viridia |
0d957dd3a5434ce5e1c677cde6f7b212e1880753 | 368 | cpp | C++ | Day 3/A - Theatre Square.cpp | shtanriverdi/CS487-Introduction-to-Competitive-Programming-Progress | 0d7a4fa4346ee08d9b2b2f628c3ffab7f3f81166 | [
"MIT"
] | 4 | 2019-12-12T19:59:50.000Z | 2020-01-20T15:44:44.000Z | Day 3/A - Theatre Square.cpp | shtanriverdi/CS487-Introduction-to-Competitive-Programming-Progress | 0d7a4fa4346ee08d9b2b2f628c3ffab7f3f81166 | [
"MIT"
] | null | null | null | Day 3/A - Theatre Square.cpp | shtanriverdi/CS487-Introduction-to-Competitive-Programming-Progress | 0d7a4fa4346ee08d9b2b2f628c3ffab7f3f81166 | [
"MIT"
] | null | null | null | // Question Link ---> https://codeforces.com/problemset/problem/1/A
// Day #3
#include <iostream>
using namespace std;
int main(void) {
int m, n, a;
long long width=0, height=0;
cin >> m >> n >> a;
if (m % a == 0) width = m/a;
else width=(m/a+1);
if (n %a == 0) height = n/a;
else height=(n/a+1)... | 23 | 68 | 0.557065 | shtanriverdi |
0d959fe632aca31aeb1f9e005ddebf88a16f9e3a | 454 | hpp | C++ | cpp/include/models/linear_gradient_builder.hpp | rive-app/rive-android | bb1ececb0b0b0412fb9d2669e79d9410e041d0a2 | [
"MIT"
] | 133 | 2020-10-05T21:33:00.000Z | 2022-03-30T11:17:31.000Z | cpp/include/models/linear_gradient_builder.hpp | rive-app/rive-android | bb1ececb0b0b0412fb9d2669e79d9410e041d0a2 | [
"MIT"
] | 113 | 2020-10-06T12:36:32.000Z | 2022-03-21T10:58:35.000Z | cpp/include/models/linear_gradient_builder.hpp | rive-app/rive-android | bb1ececb0b0b0412fb9d2669e79d9410e041d0a2 | [
"MIT"
] | 17 | 2020-10-21T06:10:51.000Z | 2022-01-06T06:42:42.000Z | #ifndef _RIVE_ANDROID_LINEAR_GRADIENT_BUILDER_HPP_
#define _RIVE_ANDROID_LINEAR_GRADIENT_BUILDER_HPP_
#include "jni_refs.hpp"
#include "models/gradient_builder.hpp"
namespace rive_android
{
class JNILinearGradientBuilder : public JNIGradientBuilder
{
public:
JNILinearGradientBuilder(float sx, float sy, float ex... | 22.7 | 103 | 0.790749 | rive-app |
0d9842cbceb2432c92e9e688bdfda737b392739e | 4,286 | cpp | C++ | src/pose_estimation/Kabsch.cpp | LiliMeng/btrf | c13da164b11c5ada522fa40deeaffc32192c4bf9 | [
"BSD-2-Clause"
] | 9 | 2017-10-28T15:24:04.000Z | 2021-12-28T13:51:05.000Z | src/pose_estimation/Kabsch.cpp | LiliMeng/btrf | c13da164b11c5ada522fa40deeaffc32192c4bf9 | [
"BSD-2-Clause"
] | null | null | null | src/pose_estimation/Kabsch.cpp | LiliMeng/btrf | c13da164b11c5ada522fa40deeaffc32192c4bf9 | [
"BSD-2-Clause"
] | 3 | 2017-11-08T16:10:39.000Z | 2019-05-21T03:40:02.000Z | #include <Eigen/Geometry>
#include "Kabsch.hpp"
// Given two sets of 3D points, find the rotation + translation + scale
// which best maps the first set to the second.
// Source: http://en.wikipedia.org/wiki/Kabsch_algorithm
// The input 3D points are stored as columns.
Eigen::Affine3d Find3DAffineTransform(Eigen::Mat... | 30.614286 | 90 | 0.602893 | LiliMeng |
0d98b716a60bd98f70382e2841346a5778e44157 | 1,580 | cc | C++ | simplest/src/NXSensitiveDetector.cc | maxwell-herrmann/geant4-simple-examples | 0052d40fdc05baef05b4a6873c03d0d54885ad40 | [
"BSD-2-Clause"
] | null | null | null | simplest/src/NXSensitiveDetector.cc | maxwell-herrmann/geant4-simple-examples | 0052d40fdc05baef05b4a6873c03d0d54885ad40 | [
"BSD-2-Clause"
] | null | null | null | simplest/src/NXSensitiveDetector.cc | maxwell-herrmann/geant4-simple-examples | 0052d40fdc05baef05b4a6873c03d0d54885ad40 | [
"BSD-2-Clause"
] | null | null | null | #include "NXSensitiveDetector.hh"
#include "G4HCofThisEvent.hh"
#include "G4Step.hh"
#include "G4ThreeVector.hh"
#include "G4SDManager.hh"
#include "G4ios.hh"
#include "G4RunManager.hh"
//#include "NXRunAction.hh"
#include "G4SystemOfUnits.hh"
NXSensitiveDetector::NXSensitiveDetector(G4String name) :
G4VSensitiv... | 30.384615 | 100 | 0.731646 | maxwell-herrmann |
0d99dab65f7f7c4d0ce3127843baa892aa0eb166 | 1,183 | cpp | C++ | Data_Structures/Hashing/uni_number_of_occur.cpp | abhishekjha786/ds_algo | 38355ca12e8ac20c4baa8baccf8ad189effaa6ae | [
"MIT"
] | 11 | 2020-03-20T17:24:28.000Z | 2022-01-08T02:43:24.000Z | Data_Structures/Hashing/uni_number_of_occur.cpp | abhishekjha786/ds_algo | 38355ca12e8ac20c4baa8baccf8ad189effaa6ae | [
"MIT"
] | 1 | 2021-07-25T11:24:46.000Z | 2021-07-25T12:09:25.000Z | Data_Structures/Hashing/uni_number_of_occur.cpp | abhishekjha786/ds_algo | 38355ca12e8ac20c4baa8baccf8ad189effaa6ae | [
"MIT"
] | 4 | 2020-03-20T17:24:36.000Z | 2021-12-07T19:22:59.000Z | // Unique Number of Occurrences
// Given an array of integers arr, write a function that
// returns true if and only if the number of occurrences of each value in the array is unique.
// Input: arr = [1,2,2,1,1,3]
// Output: true
// Explanation: The value 1 has 3 occurrences, 2 has 2 and 3 has 1. No two values have t... | 21.509091 | 118 | 0.60186 | abhishekjha786 |
0d9e764e29695356fe651a9baabe3a8b74526157 | 1,736 | cpp | C++ | src/lp/escf.cpp | qaskai/MLCMST | 0fa0529347eb6a44f45cf52dff477291c6fad433 | [
"MIT"
] | null | null | null | src/lp/escf.cpp | qaskai/MLCMST | 0fa0529347eb6a44f45cf52dff477291c6fad433 | [
"MIT"
] | null | null | null | src/lp/escf.cpp | qaskai/MLCMST | 0fa0529347eb6a44f45cf52dff477291c6fad433 | [
"MIT"
] | null | null | null | #include <lp/escf.hpp>
namespace MLCMST::lp {
std::string ESCF::id()
{
static std::string id = "MP_ESCF";
return id;
}
ESCF::ESCF(bool exact_solution) : SCF(exact_solution)
{
}
ESCF::ESCF(MLCMST::lp::LPSolverFactory mp_solver_factory) : SCF(mp_solver_factory)
{
}
ESCF::~ESCF() = default;
void ESCF::crea... | 24.8 | 113 | 0.593894 | qaskai |
0d9eba0cd114e6380923e7b3393a2384d953ce4a | 21,092 | cpp | C++ | ffscriptUT/ExpressionUT.cpp | VincentPT/xscript | cea6ee9e8c5af87af75188695ffa89080dce49b8 | [
"MIT"
] | null | null | null | ffscriptUT/ExpressionUT.cpp | VincentPT/xscript | cea6ee9e8c5af87af75188695ffa89080dce49b8 | [
"MIT"
] | null | null | null | ffscriptUT/ExpressionUT.cpp | VincentPT/xscript | cea6ee9e8c5af87af75188695ffa89080dce49b8 | [
"MIT"
] | 1 | 2019-12-24T22:24:01.000Z | 2019-12-24T22:24:01.000Z | /******************************************************************
* File: ExpressionUT.cpp
* Description: Test cases for checking compiling process, compiling
* linking a single expression of C Lambda scripting
* language.
* Author: Vincent Pham
*
* Copyright (c) 2018 VincentPT.
... | 38.630037 | 162 | 0.725062 | VincentPT |
0d9f7963efa15408fd1a55f3f467edb554f6eab8 | 2,008 | cpp | C++ | src/framework/shared/object/fxuserobject.cpp | IT-Enthusiast-Nepal/Windows-Driver-Frameworks | bfee6134f30f92a90dbf96e98d54582ecb993996 | [
"MIT"
] | 994 | 2015-03-18T21:37:07.000Z | 2019-04-26T04:04:14.000Z | src/framework/shared/object/fxuserobject.cpp | IT-Enthusiast-Nepal/Windows-Driver-Frameworks | bfee6134f30f92a90dbf96e98d54582ecb993996 | [
"MIT"
] | 13 | 2019-06-13T15:58:03.000Z | 2022-02-18T22:53:35.000Z | src/framework/shared/object/fxuserobject.cpp | IT-Enthusiast-Nepal/Windows-Driver-Frameworks | bfee6134f30f92a90dbf96e98d54582ecb993996 | [
"MIT"
] | 350 | 2015-03-19T04:29:46.000Z | 2019-05-05T23:26:50.000Z | /*++
Copyright (c) Microsoft Corporation
Module Name:
FxUserObject.cpp
Abstract:
This module implements the user object that device
driver writers can use to take advantage of the
driver frameworks infrastructure.
Author:
Environment:
Both kernel and user mode
Revision History:
--*... | 18.766355 | 98 | 0.687749 | IT-Enthusiast-Nepal |
0da135a935b15babcdd69091c7c57cb34ae5e7a0 | 1,635 | cpp | C++ | mitsuba-af602c6fd98a/src/libhw/gpuprogram.cpp | NTForked-ML/pbrs | 0b405d92c12d257e2581366542762c9f0c3facce | [
"MIT"
] | 139 | 2017-04-21T00:22:34.000Z | 2022-02-16T20:33:10.000Z | mitsuba-af602c6fd98a/src/libhw/gpuprogram.cpp | NTForked-ML/pbrs | 0b405d92c12d257e2581366542762c9f0c3facce | [
"MIT"
] | 11 | 2017-08-15T18:22:59.000Z | 2019-07-01T05:44:41.000Z | mitsuba-af602c6fd98a/src/libhw/gpuprogram.cpp | NTForked-ML/pbrs | 0b405d92c12d257e2581366542762c9f0c3facce | [
"MIT"
] | 30 | 2017-07-21T03:56:45.000Z | 2022-03-11T06:55:34.000Z | /*
This file is part of Mitsuba, a physically based rendering system.
Copyright (c) 2007-2014 by Wenzel Jakob and others.
Mitsuba is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License Version 3
as published by the Free Software Foundation.
... | 27.25 | 72 | 0.705199 | NTForked-ML |
d3fa83a87005e29c17820aa49ef4fb3593d3e581 | 2,032 | cpp | C++ | LeetCode/146_LRU_cache.cpp | tanishq1g/cp_codes | 80b8ccc9e195a66d6d317076fdd54a02cd21275b | [
"MIT"
] | null | null | null | LeetCode/146_LRU_cache.cpp | tanishq1g/cp_codes | 80b8ccc9e195a66d6d317076fdd54a02cd21275b | [
"MIT"
] | null | null | null | LeetCode/146_LRU_cache.cpp | tanishq1g/cp_codes | 80b8ccc9e195a66d6d317076fdd54a02cd21275b | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
#include <map>
#include <algorithm>
#include <cstdlib>
#include <string>
#include <list>
using namespace std;
struct Cache {
int _key;
int _value;
Cache(int key = 0, int value = 0) {
_key = key;
_value = value;
}
};
class LRUCache{
list<Cache> ... | 31.261538 | 88 | 0.56939 | tanishq1g |
d3fb059b7c3cb5f46273014a45feddabc1170806 | 273,722 | cpp | C++ | CodeGenere/photogram/cEqCorLI_Multi_5_DRPts1.cpp | kikislater/micmac | 3009dbdad62b3ad906ec882b74b85a3db86ca755 | [
"CECILL-B"
] | 451 | 2016-11-25T09:40:28.000Z | 2022-03-30T04:20:42.000Z | CodeGenere/photogram/cEqCorLI_Multi_5_DRPts1.cpp | kikislater/micmac | 3009dbdad62b3ad906ec882b74b85a3db86ca755 | [
"CECILL-B"
] | 143 | 2016-11-25T20:35:57.000Z | 2022-03-01T11:58:02.000Z | CodeGenere/photogram/cEqCorLI_Multi_5_DRPts1.cpp | kikislater/micmac | 3009dbdad62b3ad906ec882b74b85a3db86ca755 | [
"CECILL-B"
] | 139 | 2016-12-02T10:26:21.000Z | 2022-03-10T19:40:29.000Z | /*Header-MicMac-eLiSe-25/06/2007
MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation
eLiSe : ELements of an Image Software Environnement
www.micmac.ign.fr
Copyright : Institut Geographique National
Author : Marc Pierrot Deseilligny
Contributors : Gregoire Maille... | 42.124038 | 146 | 0.718645 | kikislater |
d3fbf002b267c042748459b159b2aab8fad1264f | 1,469 | hpp | C++ | freeflow/sys/epoll.hpp | flowgrammable/freeflow-legacy | c5cd77495d44fe3a9e48a2e06fbb44f7418d388e | [
"Apache-2.0"
] | 1 | 2017-07-30T04:18:29.000Z | 2017-07-30T04:18:29.000Z | freeflow/sys/epoll.hpp | flowgrammable/freeflow-legacy | c5cd77495d44fe3a9e48a2e06fbb44f7418d388e | [
"Apache-2.0"
] | null | null | null | freeflow/sys/epoll.hpp | flowgrammable/freeflow-legacy | c5cd77495d44fe3a9e48a2e06fbb44f7418d388e | [
"Apache-2.0"
] | null | null | null | // Copyright (c) 2013-2014 Flowgrammable.org
//
// 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 o... | 21.925373 | 70 | 0.707965 | flowgrammable |
d3ff9946b91f77b916fb13f4d75fe6d4ba923dc0 | 3,102 | cpp | C++ | src/scams/impl/predefined_moc/eln/sca_eln_vcr.cpp | sivertism/mirror-sysc-ams | ae6a41555bbe32771799111b2a120fede6cb790f | [
"Apache-2.0"
] | null | null | null | src/scams/impl/predefined_moc/eln/sca_eln_vcr.cpp | sivertism/mirror-sysc-ams | ae6a41555bbe32771799111b2a120fede6cb790f | [
"Apache-2.0"
] | null | null | null | src/scams/impl/predefined_moc/eln/sca_eln_vcr.cpp | sivertism/mirror-sysc-ams | ae6a41555bbe32771799111b2a120fede6cb790f | [
"Apache-2.0"
] | null | null | null | /*****************************************************************************
Copyright 2010-2014
Fraunhofer-Gesellschaft zur Foerderung der angewandten Forschung e.V.
Copyright 2015-2020
COSEDA Technologies GmbH
*****************************************************************************/
/****... | 22.808824 | 83 | 0.574468 | sivertism |
3101e12474308f4b9da16dea553539633d24e8fb | 1,492 | cpp | C++ | torch/csrc/jit/passes/decompose_addmm.cpp | DavidKo3/mctorch | 53ffe61763059677978b4592c8b2153b0c15428f | [
"BSD-3-Clause"
] | 1 | 2019-07-21T02:13:22.000Z | 2019-07-21T02:13:22.000Z | torch/csrc/jit/passes/decompose_addmm.cpp | DavidKo3/mctorch | 53ffe61763059677978b4592c8b2153b0c15428f | [
"BSD-3-Clause"
] | null | null | null | torch/csrc/jit/passes/decompose_addmm.cpp | DavidKo3/mctorch | 53ffe61763059677978b4592c8b2153b0c15428f | [
"BSD-3-Clause"
] | null | null | null | #include "torch/csrc/jit/passes/dead_code_elimination.h"
#include "torch/csrc/jit/passes/decompose_addmm.h"
#include "torch/csrc/jit/symbolic_variable.h"
namespace torch { namespace jit {
static void DecomposeAddmm(Block* block) {
for (auto it = block->nodes().begin(), end = block->nodes().end(); it != end;
... | 33.155556 | 79 | 0.648123 | DavidKo3 |
31038acb562f5488eb00972ee8b3075b7079cd0b | 17,446 | cpp | C++ | Tests/src/Collection/HashMap.cpp | BlockProject3D/Framework | 1c27ef19d9a12d158a2b53f6bd28dd2d8e678912 | [
"BSD-3-Clause"
] | 2 | 2019-02-02T20:48:17.000Z | 2019-02-22T09:59:40.000Z | Tests/src/Collection/HashMap.cpp | BlockProject3D/Framework | 1c27ef19d9a12d158a2b53f6bd28dd2d8e678912 | [
"BSD-3-Clause"
] | 125 | 2020-01-14T18:26:38.000Z | 2021-02-23T15:33:55.000Z | Tests/src/Collection/HashMap.cpp | BlockProject3D/Framework | 1c27ef19d9a12d158a2b53f6bd28dd2d8e678912 | [
"BSD-3-Clause"
] | 1 | 2020-05-26T08:55:10.000Z | 2020-05-26T08:55:10.000Z | // Copyright (c) 2020, BlockProject 3D
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification,
// are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this list... | 24.29805 | 104 | 0.542474 | BlockProject3D |
310556383e9eebb7e959b03dc4a53ec0198b9849 | 935 | hpp | C++ | include/pcltools/pipeline/producer.hpp | leaveitout/pcltools | 02659bfbcd6aa737f9a1aadb77c60a9db15513c3 | [
"MIT"
] | null | null | null | include/pcltools/pipeline/producer.hpp | leaveitout/pcltools | 02659bfbcd6aa737f9a1aadb77c60a9db15513c3 | [
"MIT"
] | null | null | null | include/pcltools/pipeline/producer.hpp | leaveitout/pcltools | 02659bfbcd6aa737f9a1aadb77c60a9db15513c3 | [
"MIT"
] | null | null | null | //
// Created by sean on 06/12/15.
//
#ifndef PCL_CLOUD_REGISTRATION_PRODUCER_HPP
#define PCL_CLOUD_REGISTRATION_PRODUCER_HPP
#include "node.hpp"
#include "buffer.hpp"
namespace pcltools {
namespace pipeline {
template <typename Type>
class Producer: public virtual Node {
public:
Producer (size_t id,
... | 21.25 | 89 | 0.693048 | leaveitout |
3109ae70bd42dca4f57abbda909aff86f6236ed1 | 8,269 | cpp | C++ | 7_Queens/7_Queens.cpp | eduherminio/Academic_ArtificialIntelligence | f0ec4d35cef64a1bf6841ea7ecf1d33017b3745f | [
"MIT"
] | 3 | 2017-05-16T22:25:16.000Z | 2019-05-07T16:12:21.000Z | 7_Queens/7_Queens.cpp | eduherminio/Academic_ArtificialIntelligence | f0ec4d35cef64a1bf6841ea7ecf1d33017b3745f | [
"MIT"
] | null | null | null | 7_Queens/7_Queens.cpp | eduherminio/Academic_ArtificialIntelligence | f0ec4d35cef64a1bf6841ea7ecf1d33017b3745f | [
"MIT"
] | null | null | null | #include "header/nodo_reinas.h"
#include "header/problema_csp.h"
#include <iostream>
#include <iomanip>
const unsigned dimension = 15;
const size_t iteraciones_max = 1000;
const size_t n_problemas = 1000;
typedef problema_csp::Problema_csp<nodo_reinas::Nodo_reinas> type_queens_noset;
typedef problema_csp::Proble... | 40.336585 | 107 | 0.743137 | eduherminio |
310a6af77546f452b24668251032f5f2d291a158 | 3,557 | cpp | C++ | unranged/32.cpp | Taowyoo/LeetCodeLog | cb05798538dd10675bf81011a419d0e33d85e4e0 | [
"MIT"
] | null | null | null | unranged/32.cpp | Taowyoo/LeetCodeLog | cb05798538dd10675bf81011a419d0e33d85e4e0 | [
"MIT"
] | null | null | null | unranged/32.cpp | Taowyoo/LeetCodeLog | cb05798538dd10675bf81011a419d0e33d85e4e0 | [
"MIT"
] | null | null | null | // my solution: store vaild parentheses state in a vector then get the max length by check the vector
// Time complexity: O(n)
// Space complexity: O(n)
class Solution {
public:
int longestValidParentheses(string s) {
if(s.size() <= 1) return 0;
stack<int> store;
vector<int> count(s.size(),0... | 28.918699 | 111 | 0.381501 | Taowyoo |
310c914eacea5d740c7c0b8b0d24c9615f52d05a | 1,367 | cpp | C++ | all/native/geometry/WKTGeometryReader.cpp | JianYT/mobile-sdk | 1835603e6cb7994222fea681928dc90055816628 | [
"BSD-3-Clause"
] | 155 | 2016-10-20T08:39:13.000Z | 2022-02-27T14:08:32.000Z | all/native/geometry/WKTGeometryReader.cpp | JianYT/mobile-sdk | 1835603e6cb7994222fea681928dc90055816628 | [
"BSD-3-Clause"
] | 448 | 2016-10-20T12:33:06.000Z | 2022-03-22T14:42:58.000Z | all/native/geometry/WKTGeometryReader.cpp | JianYT/mobile-sdk | 1835603e6cb7994222fea681928dc90055816628 | [
"BSD-3-Clause"
] | 64 | 2016-12-05T16:04:31.000Z | 2022-02-07T09:36:22.000Z | #ifdef _CARTO_WKBT_SUPPORT
#include "WKTGeometryReader.h"
#include "components/Exceptions.h"
#include "geometry/Geometry.h"
#include "geometry/PointGeometry.h"
#include "geometry/LineGeometry.h"
#include "geometry/PolygonGeometry.h"
#include "geometry/MultiGeometry.h"
#include "geometry/MultiPointGeometry.h"
#include ... | 31.068182 | 130 | 0.699342 | JianYT |
3112f1173918bf0caabba1a67bd9bddc197d155b | 7,235 | cpp | C++ | src-cpp/src/AST/ASTDumper.cpp | allen880117/NCTU-compiler-f19-hw4 | 0e2f9ed1d5870ae9909222b10cc0c9757bc6d51d | [
"MIT"
] | 1 | 2020-12-10T18:25:48.000Z | 2020-12-10T18:25:48.000Z | src/src/AST/ASTDumper.cpp | allen880117/NCTU-compiler-f19-hw4 | 0e2f9ed1d5870ae9909222b10cc0c9757bc6d51d | [
"MIT"
] | null | null | null | src/src/AST/ASTDumper.cpp | allen880117/NCTU-compiler-f19-hw4 | 0e2f9ed1d5870ae9909222b10cc0c9757bc6d51d | [
"MIT"
] | 1 | 2020-12-21T11:49:22.000Z | 2020-12-21T11:49:22.000Z | #include "AST/ASTDumper.hpp"
#include "AST/program.hpp"
#include "AST/declaration.hpp"
#include "AST/variable.hpp"
#include "AST/constant_value.hpp"
#include "AST/function.hpp"
#include "AST/compound_statement.hpp"
#include "AST/assignment.hpp"
#include "AST/print.hpp"
#include "AST/read.hpp"
#include "AST/variable_ref... | 28.372549 | 68 | 0.566413 | allen880117 |
311438a5c563372afc3e663c16bcee5b69593c16 | 1,823 | cpp | C++ | qt-mvvm/source/libmvvm_viewmodel/mvvm/viewmodel/standardviewitems.cpp | seaCheng/animation- | 89a0cb0efbcfea202965a5851979ae6f1b67f8f0 | [
"BSD-3-Clause"
] | 6 | 2021-12-08T03:09:47.000Z | 2022-02-24T03:51:14.000Z | qt-mvvm/source/libmvvm_viewmodel/mvvm/viewmodel/standardviewitems.cpp | seaCheng/animation- | 89a0cb0efbcfea202965a5851979ae6f1b67f8f0 | [
"BSD-3-Clause"
] | null | null | null | qt-mvvm/source/libmvvm_viewmodel/mvvm/viewmodel/standardviewitems.cpp | seaCheng/animation- | 89a0cb0efbcfea202965a5851979ae6f1b67f8f0 | [
"BSD-3-Clause"
] | null | null | null | // ************************************************************************** //
//
// Model-view-view-model framework for large GUI applications
//
//! @license GNU General Public License v3 or higher (see COPYING)
//! @authors see AUTHORS
//
// ********************************************************************... | 28.936508 | 100 | 0.56226 | seaCheng |
31145378480841bc41815445bf90027f49882f58 | 2,639 | hpp | C++ | Light/include/light/rendering/framebuffer.hpp | R-Bread/Light | 151308c0159c4fe0d795b3c16f205e4af68710d7 | [
"MIT"
] | 1 | 2021-06-15T09:53:47.000Z | 2021-06-15T09:53:47.000Z | Light/include/light/rendering/framebuffer.hpp | R-Bread/Light | 151308c0159c4fe0d795b3c16f205e4af68710d7 | [
"MIT"
] | 21 | 2021-06-10T09:07:19.000Z | 2022-01-30T21:52:24.000Z | Light/include/light/rendering/framebuffer.hpp | R-Bread/Light | 151308c0159c4fe0d795b3c16f205e4af68710d7 | [
"MIT"
] | 9 | 2021-04-10T19:32:11.000Z | 2021-05-19T16:29:25.000Z | #ifndef __FRAMEBUFFER_H__
#define __FRAMEBUFFER_H__
#include "core/base.hpp"
namespace Light
{
enum class FramebufferTextureFormat
{
None,
// Color Buffers
RGBA8,
RED_INTEGER,
// Depth Buffers
DEPTH24_STENCIL8,
// Default depth
Depth = DEPTH24_STENCIL8,
/**
* @brief First index of Depth ... | 25.375 | 101 | 0.750663 | R-Bread |
311ab21746a058d062ea864e75831f091f8667de | 6,083 | cpp | C++ | test/class.cpp | 16tons/camp | 3edae6d6a06036bac5faf4e7b9e7b5dd8e463af8 | [
"MIT"
] | 1 | 2018-08-07T22:32:55.000Z | 2018-08-07T22:32:55.000Z | test/class.cpp | 16tons/camp | 3edae6d6a06036bac5faf4e7b9e7b5dd8e463af8 | [
"MIT"
] | null | null | null | test/class.cpp | 16tons/camp | 3edae6d6a06036bac5faf4e7b9e7b5dd8e463af8 | [
"MIT"
] | null | null | null | /****************************************************************************
**
** This file is part of the CAMP library.
**
** The MIT License (MIT)
**
** Copyright (C) 2009-2014 TEGESO/TEGESOFT and/or its subsidiary(-ies) and mother company.
** Contact: Tegesoft Information (contact@tegesoft.com)
**
** Permission is... | 42.243056 | 141 | 0.605458 | 16tons |
311b9b6de9cf2b8939ff1f533a5e465e28ae1f03 | 274 | cpp | C++ | GameFramework/Base/RenderSystem/RsIndexBuffer.cpp | GavWood/tutorials | d5140129b6acd6d61f6feedcd352c12e4ebabd40 | [
"BSD-2-Clause"
] | 8 | 2017-10-26T14:26:55.000Z | 2022-01-07T07:35:39.000Z | GameFramework/Base/RenderSystem/RsIndexBuffer.cpp | GavWood/tutorials | d5140129b6acd6d61f6feedcd352c12e4ebabd40 | [
"BSD-2-Clause"
] | 1 | 2017-09-28T08:21:04.000Z | 2017-10-04T09:17:57.000Z | GameFramework/Base/RenderSystem/RsIndexBuffer.cpp | GavWood/Game-Framework | d5140129b6acd6d61f6feedcd352c12e4ebabd40 | [
"BSD-2-Clause"
] | 1 | 2021-07-21T17:37:33.000Z | 2021-07-21T17:37:33.000Z | ////////////////////////////////////////////////////////////////////////////////
/// RsIndexBuffer.cpp
#include "RsIndexBuffer.h"
BtU32 RsIndexBuffer::IndType_Short = 1 << 0;
BtU32 RsIndexBuffer::IndType_Long = 1 << 2;
BtU32 RsIndexBuffer::IndType_Dynamic = 1 << 3;
| 27.4 | 80 | 0.5 | GavWood |
311c58e18d836b054abc76bc20511168ec8e9453 | 456 | cpp | C++ | cpp/infinite.cpp | simnalamburt/snippets | 8ba4cfcb1305d2b82ea892e3305613eeb7ba382b | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 31 | 2016-01-27T07:03:25.000Z | 2022-02-25T07:59:11.000Z | cpp/infinite.cpp | simnalamburt/snippets | 8ba4cfcb1305d2b82ea892e3305613eeb7ba382b | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 1 | 2015-01-26T01:27:21.000Z | 2015-01-30T16:16:30.000Z | cpp/infinite.cpp | simnalamburt/snippets | 8ba4cfcb1305d2b82ea892e3305613eeb7ba382b | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] | 3 | 2017-02-07T04:17:56.000Z | 2020-06-12T05:01:31.000Z | //
// 무한루프를 끝내기
//
//
// $ clang++ -O1 infinite.cpp
// boom!
//
// $ clang++ -O3 infinite.cpp
// boom!
//
//
// Tested with:
// LLVM 3.0
// LLVM 3.5.0
// Apple LLVM 7.0.0
//
// Reference:
// http://rosaec.snu.ac.kr/publish/2014/techmemo/ROSAEC-2014-002.pdf
//
#include <iostream>
void foo() { while (1) { } }
... | 12.666667 | 70 | 0.52193 | simnalamburt |
31259d261d4adfffd84bc8e11c6e76537527de79 | 7,003 | cpp | C++ | src/lib/import_export/csv_parser.cpp | IanJamesMcKay/InMemoryDB | a267d9522926eca9add2ad4512f8ce352daac879 | [
"MIT"
] | 1 | 2021-04-14T11:16:52.000Z | 2021-04-14T11:16:52.000Z | src/lib/import_export/csv_parser.cpp | IanJamesMcKay/InMemoryDB | a267d9522926eca9add2ad4512f8ce352daac879 | [
"MIT"
] | null | null | null | src/lib/import_export/csv_parser.cpp | IanJamesMcKay/InMemoryDB | a267d9522926eca9add2ad4512f8ce352daac879 | [
"MIT"
] | 1 | 2020-11-30T13:11:04.000Z | 2020-11-30T13:11:04.000Z | #include "csv_parser.hpp"
#include <fstream>
#include <functional>
#include <list>
#include <memory>
#include <optional>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
#include "constant_mappings.hpp"
#include "import_export/csv_converter.hpp"
#include "import_export/csv_meta.hpp"
#incl... | 33.830918 | 117 | 0.691561 | IanJamesMcKay |
3125c3eb4a4fe5903cc398256cf9a7279f6a2c26 | 1,263 | cpp | C++ | labs/lab8/lab8.cpp | jschmidtnj/CPE390 | 610dd11c51431f2d02b919c0c32f626a3e625b04 | [
"MIT"
] | null | null | null | labs/lab8/lab8.cpp | jschmidtnj/CPE390 | 610dd11c51431f2d02b919c0c32f626a3e625b04 | [
"MIT"
] | null | null | null | labs/lab8/lab8.cpp | jschmidtnj/CPE390 | 610dd11c51431f2d02b919c0c32f626a3e625b04 | [
"MIT"
] | null | null | null | #include <iostream>
#include <limits>
using namespace std;
double maximum(double array[], int len)
{
if (len < 1)
return -1 * numeric_limits<double>::infinity();
double res = array[0];
for (int i = 0; i < len; i++)
if (array[i] > res)
res = array[i];
return res;
}
double minimum(double array[],... | 21.40678 | 78 | 0.561362 | jschmidtnj |
312d41d25311b474d2ed730983e75152652e32a4 | 7,304 | cpp | C++ | SmartRally/SCBW/api.cpp | idmontie/gptp | 14d68e5eac84c2f3085ac25a7fff31a07ea387f6 | [
"0BSD"
] | 8 | 2015-04-03T16:50:59.000Z | 2021-01-06T17:12:29.000Z | SmartRally/SCBW/api.cpp | idmontie/gptp | 14d68e5eac84c2f3085ac25a7fff31a07ea387f6 | [
"0BSD"
] | 6 | 2015-04-03T18:10:56.000Z | 2016-02-18T05:04:21.000Z | SmartRally/SCBW/api.cpp | idmontie/gptp | 14d68e5eac84c2f3085ac25a7fff31a07ea387f6 | [
"0BSD"
] | 6 | 2015-04-04T04:37:33.000Z | 2018-04-09T09:03:50.000Z | #include "api.h"
#include "scbwdata.h"
#include <SCBW/UnitFinder.h>
#include <algorithm>
#include <cassert>
#define NOMINMAX
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
namespace scbw {
const u32 Func_PrintText = 0x0048CD30;
void printText(const char* text, u32 color) {
if (!text) return;
D... | 24.928328 | 96 | 0.638828 | idmontie |
312dac6c9463b0fbf8db138b6b3babc03dda13dd | 3,467 | cpp | C++ | Kyrie/Hotkeys.cpp | wangxh1007/ddmk | a6ff276d96b663e71b3ccadabc2d92c50c18ebac | [
"Zlib"
] | null | null | null | Kyrie/Hotkeys.cpp | wangxh1007/ddmk | a6ff276d96b663e71b3ccadabc2d92c50c18ebac | [
"Zlib"
] | null | null | null | Kyrie/Hotkeys.cpp | wangxh1007/ddmk | a6ff276d96b663e71b3ccadabc2d92c50c18ebac | [
"Zlib"
] | null | null | null | #include "Hotkeys.h"
void Hotkeys_TogglePause(BYTE * state)
{
static bool execute = true;
BYTE keys[] =
{
DIK_LCONTROL,
DIK_D,
};
uint8 keysDown = 0;
for (uint8 i = 0; i < countof(keys); i++)
{
if (state[keys[i]] & 0x80)
{
keysDown++;
}
}
if (keysDown == countof(keys))
{
if (execute)
{
pa... | 18.343915 | 68 | 0.535622 | wangxh1007 |
312ed779f25cce3d3684e847302c60a64ef779b9 | 462 | cpp | C++ | src/5/BreakTest.cpp | jhxie/CPlusPlusHowToProgram | a622902a9e5e9766d9ddb83a38070d57dba786c3 | [
"BSD-2-Clause"
] | 1 | 2018-01-10T03:32:46.000Z | 2018-01-10T03:32:46.000Z | src/5/BreakTest.cpp | jhxie/CPlusPlusHowToProgram | a622902a9e5e9766d9ddb83a38070d57dba786c3 | [
"BSD-2-Clause"
] | null | null | null | src/5/BreakTest.cpp | jhxie/CPlusPlusHowToProgram | a622902a9e5e9766d9ddb83a38070d57dba786c3 | [
"BSD-2-Clause"
] | null | null | null | /**
* 5.13
* 'break' statement exiting a 'for' statement.
*/
#include <iostream>
using namespace std;
int main(void)
{
unsigned int counter; // control variable also used after loop
for (counter = 1; counter <= 10; ++counter) {
if (counter == 5) {
break; // terminates loop if 'counter... | 19.25 | 69 | 0.551948 | jhxie |
3132822d3478431b013a3f615bbf4900a00282c5 | 866 | cpp | C++ | test/testUtil/testText/testJsonReader/TestJsonRemove.cpp | wangsun1983/Obotcha | 2464e53599305703f5150df72bf73579a39d8ef4 | [
"MIT"
] | 27 | 2019-04-27T00:51:22.000Z | 2022-03-30T04:05:44.000Z | test/testUtil/testText/testJsonReader/TestJsonRemove.cpp | wangsun1983/Obotcha | 2464e53599305703f5150df72bf73579a39d8ef4 | [
"MIT"
] | 9 | 2020-05-03T12:17:50.000Z | 2021-10-15T02:18:47.000Z | test/testUtil/testText/testJsonReader/TestJsonRemove.cpp | wangsun1983/Obotcha | 2464e53599305703f5150df72bf73579a39d8ef4 | [
"MIT"
] | 1 | 2019-04-16T01:45:36.000Z | 2019-04-16T01:45:36.000Z | #include <stdio.h>
#include <unistd.h>
#include "JsonWriter.hpp"
#include "JsonReader.hpp"
#include "JsonValue.hpp"
#include "File.hpp"
#include "Log.hpp"
using namespace obotcha;
int testremove() {
JsonReader mReader = createJsonReader(createFile("abc.json"));
JsonValue root = mReader->get();
JsonValu... | 24.055556 | 89 | 0.596998 | wangsun1983 |
3138d4f99c8879d5211428906f83da19686e91d5 | 11,753 | cc | C++ | pdb/src/executionServer/sources/physicalAlgorithms/PDBShuffleForJoinAlgorithm.cc | SeraphL/plinycompute | 7788bc2b01d83f4ff579c13441d0ba90734b54a2 | [
"Apache-2.0"
] | 3 | 2019-05-04T05:17:30.000Z | 2020-02-21T05:01:59.000Z | pdb/src/executionServer/sources/physicalAlgorithms/PDBShuffleForJoinAlgorithm.cc | dcbdan/plinycompute | a6f1c8ac8f75c09615f08752c82179f33cfc6d89 | [
"Apache-2.0"
] | 3 | 2020-02-20T19:50:46.000Z | 2020-06-25T14:31:51.000Z | pdb/src/executionServer/sources/physicalAlgorithms/PDBShuffleForJoinAlgorithm.cc | dcbdan/plinycompute | a6f1c8ac8f75c09615f08752c82179f33cfc6d89 | [
"Apache-2.0"
] | 5 | 2019-02-19T23:17:24.000Z | 2020-08-03T01:08:04.000Z | //
// Created by dimitrije on 5/7/19.
//
#include <ComputePlan.h>
#include <PDBCatalogClient.h>
#include <physicalAlgorithms/PDBShuffleForJoinAlgorithm.h>
#include <ExJob.h>
#include <PDBStorageManagerBackend.h>
#include <PDBPageNetworkSender.h>
#include <ShuffleJoinProcessor.h>
#include <PDBPageSelfReceiver.h>
#inclu... | 33.389205 | 204 | 0.619246 | SeraphL |
31390bcffbdf28b9d44ba490470b8574a59720ab | 1,801 | hpp | C++ | Sources/inc/Chest.hpp | Tifox/Grog-Knight | 377a661286cda7ee3b2b2d0099641897938c2f8f | [
"Apache-2.0"
] | null | null | null | Sources/inc/Chest.hpp | Tifox/Grog-Knight | 377a661286cda7ee3b2b2d0099641897938c2f8f | [
"Apache-2.0"
] | null | null | null | Sources/inc/Chest.hpp | Tifox/Grog-Knight | 377a661286cda7ee3b2b2d0099641897938c2f8f | [
"Apache-2.0"
] | null | null | null | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 27.287879 | 63 | 0.696835 | Tifox |
3139228b1dcdfdcb70c36df002aceff8611d5b4b | 3,521 | hpp | C++ | hydra/vulkan/rect2D.hpp | tim42/hydra | dfffd50a2863695742c0c6122a505824db8be7c3 | [
"MIT"
] | 2 | 2016-09-15T22:29:46.000Z | 2017-11-30T11:16:12.000Z | hydra/vulkan/rect2D.hpp | tim42/hydra | dfffd50a2863695742c0c6122a505824db8be7c3 | [
"MIT"
] | null | null | null | hydra/vulkan/rect2D.hpp | tim42/hydra | dfffd50a2863695742c0c6122a505824db8be7c3 | [
"MIT"
] | null | null | null | //
// file : rect2D.hpp
// in : file:///home/tim/projects/hydra/hydra/vulkan/rect2D.hpp
//
// created by : Timothée Feuillet
// date: Sat Aug 13 2016 11:12:20 GMT+0200 (CEST)
//
//
// Copyright (c) 2016 Timothée Feuillet
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this softw... | 40.011364 | 137 | 0.6572 | tim42 |
313c85c28adbc9d82c68913999e52c73170665cb | 2,289 | cpp | C++ | cpp-htp/standard/ch03solutions/Ex03_16/ex03_16.cpp | yanshengjia/cplusplus-practice-range | 6767a0ac50de8b532255511cd450dc84c66d1517 | [
"Apache-2.0"
] | 75 | 2020-03-23T11:00:31.000Z | 2022-02-20T05:22:53.000Z | cpp-htp/standard/ch03solutions/Ex03_16/ex03_16.cpp | yanshengjia/cplusplus-practice-range | 6767a0ac50de8b532255511cd450dc84c66d1517 | [
"Apache-2.0"
] | null | null | null | cpp-htp/standard/ch03solutions/Ex03_16/ex03_16.cpp | yanshengjia/cplusplus-practice-range | 6767a0ac50de8b532255511cd450dc84c66d1517 | [
"Apache-2.0"
] | 39 | 2020-04-03T23:47:24.000Z | 2022-01-19T05:06:39.000Z | // Exercise 3.16 Solution: ex03_16.cpp
// Driver program for HeartRates class
#include <iostream>
#include <string>
#include "HeartRates.h"
using namespace std;
int main()
{
string first, last; // first name, last name
int month, day, year; // birth month, day, year
// get user input
cout << ... | 44.882353 | 77 | 0.554827 | yanshengjia |
3140b75af71b7541ee489e9658b9bfe426340af6 | 6,905 | cpp | C++ | test/system2/station/wxglade_out.cpp | khantkyawkhaung/robot-monitor | 3614dc0cf804138c81f6800fb5ec443bff709dbd | [
"MIT"
] | 1 | 2021-04-06T04:11:58.000Z | 2021-04-06T04:11:58.000Z | test/system2/station/wxglade_out.cpp | khantkyawkhaung/robot-monitor | 3614dc0cf804138c81f6800fb5ec443bff709dbd | [
"MIT"
] | null | null | null | test/system2/station/wxglade_out.cpp | khantkyawkhaung/robot-monitor | 3614dc0cf804138c81f6800fb5ec443bff709dbd | [
"MIT"
] | 1 | 2019-12-26T09:01:16.000Z | 2019-12-26T09:01:16.000Z | // -*- C++ -*-
//
// generated by wxGlade 0.9.4 on Tue Jun 15 15:13:10 2021
//
// Example for compiling a single file project under Linux using g++:
// g++ MyApp.cpp $(wx-config --libs) $(wx-config --cxxflags) -o MyApp
//
// Example for compiling a multi file project under Linux using g++:
// g++ main.cpp $(wx-config... | 41.347305 | 125 | 0.69819 | khantkyawkhaung |
31422e8e1306029da7d025f3fc986c23310322a8 | 628 | cpp | C++ | pat/basic/1008.cpp | phiysng/leetcode | 280e8b1a0b45233deb2262ceec85b8174e9b2ced | [
"BSD-3-Clause"
] | 3 | 2019-04-12T19:12:55.000Z | 2020-05-29T07:55:16.000Z | pat/basic/1008.cpp | phiysng/leetcode | 280e8b1a0b45233deb2262ceec85b8174e9b2ced | [
"BSD-3-Clause"
] | null | null | null | pat/basic/1008.cpp | phiysng/leetcode | 280e8b1a0b45233deb2262ceec85b8174e9b2ced | [
"BSD-3-Clause"
] | null | null | null | #include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <functional>
#include <iostream>
#include <queue>
#include <stack>
#include <unordered_map>
#include <unordered_set>
#include <vector>
using namespace std;
int main()
{
int n, shift;
cin >> n >> shift;
vector<int> a(n);
... | 19.625 | 39 | 0.515924 | phiysng |
3143216dc67187d043e04da952cf88e2c867b403 | 7,252 | cc | C++ | test/objectreference.cc | blagoev/node-addon-api | 89e62a9154b6057ed086a227db25caf26ac8c92a | [
"MIT"
] | 13 | 2019-06-18T14:30:56.000Z | 2021-04-25T06:06:52.000Z | test/objectreference.cc | shudingbo/node-addon-api | 4d816183daadd1fec9411f9a3c566b098059e02b | [
"MIT"
] | 12 | 2020-09-04T20:01:51.000Z | 2020-12-07T20:43:29.000Z | test/objectreference.cc | shudingbo/node-addon-api | 4d816183daadd1fec9411f9a3c566b098059e02b | [
"MIT"
] | 1 | 2020-05-26T15:14:43.000Z | 2020-05-26T15:14:43.000Z | /* ObjectReference can be used to create references to Values that
are not Objects by creating a blank Object and setting Values to
it. Subclasses of Objects can only be set using an ObjectReference
by first casting it as an Object. */
#include "napi.h"
using namespace Napi;
ObjectReference weak;
ObjectReference per... | 33.114155 | 77 | 0.648511 | blagoev |
3154988c80a50a8739680023a5d31eee4336c4c5 | 3,061 | hxx | C++ | main/drawinglayer/inc/drawinglayer/processor2d/processor2dtools.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 679 | 2015-01-06T06:34:58.000Z | 2022-03-30T01:06:03.000Z | main/drawinglayer/inc/drawinglayer/processor2d/processor2dtools.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 102 | 2017-11-07T08:51:31.000Z | 2022-03-17T12:13:49.000Z | main/drawinglayer/inc/drawinglayer/processor2d/processor2dtools.hxx | Grosskopf/openoffice | 93df6e8a695d5e3eac16f3ad5e9ade1b963ab8d7 | [
"Apache-2.0"
] | 331 | 2015-01-06T11:40:55.000Z | 2022-03-14T04:07:51.000Z | /**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... | 36.440476 | 87 | 0.627246 | Grosskopf |
3155bb2ed2b8ac5eb3a124bc203f890c61631e2f | 3,176 | cpp | C++ | src/prod/src/ServiceModel/management/FaultAnalysisService/Chaos/ChaosTargetFilter.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | 1 | 2018-03-15T02:09:21.000Z | 2018-03-15T02:09:21.000Z | src/prod/src/ServiceModel/management/FaultAnalysisService/Chaos/ChaosTargetFilter.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | null | null | null | src/prod/src/ServiceModel/management/FaultAnalysisService/Chaos/ChaosTargetFilter.cpp | AnthonyM/service-fabric | c396ea918714ea52eab9c94fd62e018cc2e09a68 | [
"MIT"
] | null | null | null | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#include "stdafx.h"
using nam... | 37.364706 | 148 | 0.756612 | AnthonyM |