hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
6ba83f29215b9316a8611b7119260f5a319ed458 | 4,130 | hpp | C++ | lib/lib/propcov-cpp/Sensor.hpp | ryanketzner/sphericalpolygon | de7ab321382d192b86e7ad9527f025a143f3f3f7 | [
"Apache-2.0"
] | 4 | 2021-12-23T16:49:06.000Z | 2022-02-09T21:36:31.000Z | lib/lib/propcov-cpp/Sensor.hpp | ryanketzner/sphericalpolygon | de7ab321382d192b86e7ad9527f025a143f3f3f7 | [
"Apache-2.0"
] | 15 | 2022-01-14T17:28:14.000Z | 2022-02-11T02:39:25.000Z | lib/lib/propcov-cpp/Sensor.hpp | ryanketzner/sphericalpolygon | de7ab321382d192b86e7ad9527f025a143f3f3f7 | [
"Apache-2.0"
] | 1 | 2022-02-03T15:44:16.000Z | 2022-02-03T15:44:16.000Z | //------------------------------------------------------------------------------
// Sensor
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool.
//
// Copyright (c) 2002 - 2017 United States Government as represented by the
// ... | 37.545455 | 83 | 0.569976 | ryanketzner |
6babe1134196c091801af9a73861040f5dba40af | 564 | cpp | C++ | src/Actors/Brick/conspecies.cpp | KURUJISU/Top_P | d218656e13cbe05b01926366e114b34b8d430035 | [
"MIT"
] | null | null | null | src/Actors/Brick/conspecies.cpp | KURUJISU/Top_P | d218656e13cbe05b01926366e114b34b8d430035 | [
"MIT"
] | null | null | null | src/Actors/Brick/conspecies.cpp | KURUJISU/Top_P | d218656e13cbe05b01926366e114b34b8d430035 | [
"MIT"
] | null | null | null |
/**
* @file conspecies.cpp
* @brief 同種
*
* @author y.akira
* @date 2017.01.21
*/
#include "precompiled.h"
Conspecies::Conspecies() {
name_ = "Conspecies";
tag_ = CONSPECIES;
color_ = ofColor(255, 0, 0);
}
void Conspecies::setup() {
enableUpdate();
enableCollision();
}
void Conspecies::up... | 15.243243 | 46 | 0.631206 | KURUJISU |
6bacddf6568e473b52a858bd4cfdbfc766431b22 | 2,130 | cpp | C++ | baseoperations/util/workingcatalog.cpp | ridoo/IlwisCore | 9d9837507d804a4643545a03fd40d9b4d0eaee45 | [
"Apache-2.0"
] | null | null | null | baseoperations/util/workingcatalog.cpp | ridoo/IlwisCore | 9d9837507d804a4643545a03fd40d9b4d0eaee45 | [
"Apache-2.0"
] | null | null | null | baseoperations/util/workingcatalog.cpp | ridoo/IlwisCore | 9d9837507d804a4643545a03fd40d9b4d0eaee45 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include "kernel.h"
#include "ilwisdata.h"
#include "symboltable.h"
#include "operationExpression.h"
#include "operationmetadata.h"
#include "commandhandler.h"
#include "operation.h"
#include "ilwiscontext.h"
#include "catalog.h"
#include "workingcatalog.h"
using namespace Ilwis;
using namespace Ba... | 30.428571 | 190 | 0.738498 | ridoo |
6badc26572af87415aab2b61e49d27d2dca5a0ec | 9,093 | hpp | C++ | src/perfmon/perfmon.hpp | rethinkdb/rethinkdb-legacy | e9c37045b46a94a1c918eacf73cdab945a10601d | [
"Apache-2.0"
] | 64 | 2018-09-27T04:30:36.000Z | 2019-02-03T12:53:01.000Z | src/perfmon/perfmon.hpp | rethinkdb/rethinkdb-legacy | e9c37045b46a94a1c918eacf73cdab945a10601d | [
"Apache-2.0"
] | 10 | 2018-09-27T14:36:01.000Z | 2019-01-29T12:59:39.000Z | src/perfmon/perfmon.hpp | rethinkdb/rethinkdb-legacy | e9c37045b46a94a1c918eacf73cdab945a10601d | [
"Apache-2.0"
] | 10 | 2018-10-05T11:42:18.000Z | 2019-02-04T02:35:31.000Z | // Copyright 2010-2014 RethinkDB, all rights reserved.
#ifndef PERFMON_PERFMON_HPP_
#define PERFMON_PERFMON_HPP_
/* Please avoid #include'ing this file from other headers unless you absolutely
* need to. Please #include "perfmon/types.hpp" instead. This helps avoid
* potential circular dependency problems, since perf... | 33.065455 | 105 | 0.720114 | rethinkdb |
6bb1ff881a2da1e41dc235ad453377a59b554f98 | 9,365 | cpp | C++ | libs/lwbase/tstring.cpp | hajokirchhoff/litwindow | 7f574d4e80ee8339ac11c35f075857c20391c223 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | libs/lwbase/tstring.cpp | hajokirchhoff/litwindow | 7f574d4e80ee8339ac11c35f075857c20391c223 | [
"MIT",
"BSD-3-Clause"
] | 1 | 2017-01-07T09:44:20.000Z | 2017-01-07T09:44:20.000Z | libs/lwbase/tstring.cpp | hajokirchhoff/litwindow | 7f574d4e80ee8339ac11c35f075857c20391c223 | [
"MIT",
"BSD-3-Clause"
] | null | null | null | /*
* Copyright 2004, Hajo Kirchhoff - Lit Window Productions, http://www.litwindow.com
* This file is part of the Lit Window Library. All use of this material - copying
* in full or part, including in other works, using in non-profit or for-profit work
* and other uses - is governed by the licence contained in the Lit... | 31.112957 | 173 | 0.617085 | hajokirchhoff |
6bb4da235cd7def299b05e86c0c57e8684e860c3 | 2,339 | cpp | C++ | src/main.cpp | ssbl/chip8 | 9b4ae761ef4d445a1d94ba2858a0cef0f71b8973 | [
"MIT"
] | null | null | null | src/main.cpp | ssbl/chip8 | 9b4ae761ef4d445a1d94ba2858a0cef0f71b8973 | [
"MIT"
] | null | null | null | src/main.cpp | ssbl/chip8 | 9b4ae761ef4d445a1d94ba2858a0cef0f71b8973 | [
"MIT"
] | null | null | null | #include "chip8.hpp"
#include <SDL.h>
#include <iostream>
int
main(const int argc, const char* argv[])
{
if (argc != 2) {
std::cerr << "usage: chip8 <path-to-rom-file>\n";
return 1;
}
Chip8 chip8;
if (!chip8.load_rom(argv[1])) {
std::cerr << "error loading file: " << argv[1] << '\n';
return... | 24.621053 | 78 | 0.566054 | ssbl |
6bb7c1531e58ddd2788f5a5fc6638065a08c26af | 1,712 | hpp | C++ | include/ROMFileWidget.hpp | ShimmerFairy/z64fe | e680f009814ee5f625422837a1744ad02b7d8f08 | [
"ClArtistic"
] | 4 | 2016-05-04T07:03:11.000Z | 2022-02-25T18:55:15.000Z | include/ROMFileWidget.hpp | ShimmerFairy/z64fe | e680f009814ee5f625422837a1744ad02b7d8f08 | [
"ClArtistic"
] | null | null | null | include/ROMFileWidget.hpp | ShimmerFairy/z64fe | e680f009814ee5f625422837a1744ad02b7d8f08 | [
"ClArtistic"
] | null | null | null | /** \file ROMFileWidget.hpp
*
* \brief Declares a widget for a list of files and associated operations.
*
* The widget declared in this file is intended to be a dock widget for
* scrolling through files.
*
*/
#pragma once
#include "ROM.hpp"
#include "ROMFileModel.hpp"
#include <QWidget>
#include <QGridLayo... | 21.135802 | 80 | 0.653037 | ShimmerFairy |
6bb862b0a6c9325101924f33d7b66a71488a03d4 | 222 | cpp | C++ | P8: Factorial of a number.cpp | Nishi-16-K/C-projects | f59199a253dcd99c78f794a56b70592d81d0b75e | [
"MIT"
] | 1 | 2021-07-15T17:36:14.000Z | 2021-07-15T17:36:14.000Z | P8: Factorial of a number.cpp | Nishi-16-K/C_plus_plus-Projects | f59199a253dcd99c78f794a56b70592d81d0b75e | [
"MIT"
] | null | null | null | P8: Factorial of a number.cpp | Nishi-16-K/C_plus_plus-Projects | f59199a253dcd99c78f794a56b70592d81d0b75e | [
"MIT"
] | null | null | null | #include<iostream>
#include<conio.h>
using namespace std;
void main()
{
int i,no,fact=1;
cout<<” Enter Any Number: “;
cin>>no;
for(i=no;i>=1;i–)
{
fact=fact*i;
}
cout<<“\n Factorial of given Number is: “<<fact;
getch();
}
| 13.875 | 48 | 0.644144 | Nishi-16-K |
6bbd6334fac5d6e63ec3f56e666d178a3da0e796 | 3,783 | cpp | C++ | FileWatcherDemo/file_activity/directory_watcher_base.cpp | pvthuyet/file-watcher-demo | 37fb2022fb27952db294b253fe2817d4548817bc | [
"BSL-1.0"
] | null | null | null | FileWatcherDemo/file_activity/directory_watcher_base.cpp | pvthuyet/file-watcher-demo | 37fb2022fb27952db294b253fe2817d4548817bc | [
"BSL-1.0"
] | null | null | null | FileWatcherDemo/file_activity/directory_watcher_base.cpp | pvthuyet/file-watcher-demo | 37fb2022fb27952db294b253fe2817d4548817bc | [
"BSL-1.0"
] | null | null | null | #include "directory_watcher_base.h"
#include "observer_impl.h"
#include "request_impl.h"
#include "gsl\gsl_assert"
#include "spdlog_header.h"
#include <utility>
namespace died
{
directory_watcher_base::~directory_watcher_base() noexcept
{
stop();
}
void directory_watcher_base::set_rule(std::shared_ptr<fat::Unn... | 25.22 | 109 | 0.688607 | pvthuyet |
6bc187867b57f56df790d6f9ad238288bceaccc7 | 16,968 | inl | C++ | ExtLib/Aurora/External/libRocket/Include/Rocket/Core/StringBase.inl | Mechap/ODFAEG | ad4bf026ee7055aaf168c5a8e3dc57baaaf42e40 | [
"Zlib"
] | 241 | 2015-01-04T00:36:58.000Z | 2022-01-06T19:19:23.000Z | ExtLib/Aurora/External/libRocket/Include/Rocket/Core/StringBase.inl | Mechap/ODFAEG | ad4bf026ee7055aaf168c5a8e3dc57baaaf42e40 | [
"Zlib"
] | 10 | 2015-07-10T18:27:17.000Z | 2019-06-26T20:59:59.000Z | ExtLib/Aurora/External/libRocket/Include/Rocket/Core/StringBase.inl | Mechap/ODFAEG | ad4bf026ee7055aaf168c5a8e3dc57baaaf42e40 | [
"Zlib"
] | 82 | 2015-01-25T18:02:35.000Z | 2022-03-05T12:28:17.000Z | /*
* This source file is part of libRocket, the HTML/CSS Interface Middleware
*
* For the latest information, see http://www.librocket.com
*
* Copyright (c) 2008-2010 CodePoint Ltd, Shift Technology Ltd
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and assoc... | 23.898592 | 176 | 0.678689 | Mechap |
6bc3a59c1fdfc84aabed4fcc0711e7f85465912f | 2,236 | cpp | C++ | src/core/thread/mutex.cpp | ValtoForks/crown | 0d273f352de01f0adac8a29db7f520979540b916 | [
"MIT"
] | null | null | null | src/core/thread/mutex.cpp | ValtoForks/crown | 0d273f352de01f0adac8a29db7f520979540b916 | [
"MIT"
] | null | null | null | src/core/thread/mutex.cpp | ValtoForks/crown | 0d273f352de01f0adac8a29db7f520979540b916 | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2012-2018 Daniele Bartolini and individual contributors.
* License: https://github.com/dbartolini/crown/blob/master/LICENSE
*/
#include "core/error/error.h"
#include "core/platform.h"
#include "core/thread/mutex.h"
#if CROWN_PLATFORM_POSIX
#include <pthread.h>
#elif CROWN_PLATFORM_WINDOWS
#inc... | 22.585859 | 73 | 0.738372 | ValtoForks |
6bc5bdd54729163b3651bf9763860856e6fc6832 | 604 | hpp | C++ | include/renderer.hpp | buicaflorin/raytracer | d750b1ba86d481dd58cc763b884ae50949435cce | [
"MIT"
] | null | null | null | include/renderer.hpp | buicaflorin/raytracer | d750b1ba86d481dd58cc763b884ae50949435cce | [
"MIT"
] | null | null | null | include/renderer.hpp | buicaflorin/raytracer | d750b1ba86d481dd58cc763b884ae50949435cce | [
"MIT"
] | null | null | null | #include"SDL2/SDL.h"
#include<string>
#include "canvas.hpp"
class Renderer{
public:
Renderer();
~Renderer();
bool startRunning(void);
bool render(void);
static const uint16_t WIDTH = 640;
static const uint16_t HEGHT = 480;
bool isRunning(void);
void stopRunning(void);
void... | 21.571429 | 64 | 0.668874 | buicaflorin |
6bc5c9480f22b45ffc3c7e66a1700166488fe3aa | 347 | hxx | C++ | src/dbl/manager/manager.hxx | mcptr/dbl-service | 9af5aee06be0a4b909782b251bf6078513399d33 | [
"MIT"
] | null | null | null | src/dbl/manager/manager.hxx | mcptr/dbl-service | 9af5aee06be0a4b909782b251bf6078513399d33 | [
"MIT"
] | null | null | null | src/dbl/manager/manager.hxx | mcptr/dbl-service | 9af5aee06be0a4b909782b251bf6078513399d33 | [
"MIT"
] | 1 | 2018-10-09T06:30:03.000Z | 2018-10-09T06:30:03.000Z | #ifndef DBL_MANAGER_MANAGER_HXX
#define DBL_MANAGER_MANAGER_HXX
#include "dbl/core/api.hxx"
#include <memory>
namespace dbl {
namespace manager {
class Manager
{
public:
Manager() = delete;
Manager(std::shared_ptr<core::Api> api);
virtual ~Manager() = default;
protected:
std::shared_ptr<core::Api> api_;
};
} /... | 13.88 | 41 | 0.717579 | mcptr |
6bc65c249a6ba92785f09308a3592b638cbf5274 | 1,070 | hpp | C++ | Source/Runtime/Impl/Function.hpp | JoinCAD/CPP-Reflection | 61163369b6b3b370c4ce726dbf8e60e441723821 | [
"MIT"
] | 540 | 2015-09-18T09:44:57.000Z | 2022-03-25T07:23:09.000Z | Source/Runtime/Impl/Function.hpp | yangzhengxing/CPP-Reflection | 43ec755b7a5c62e3252c174815c2e44727e11e72 | [
"MIT"
] | 16 | 2015-09-23T06:37:43.000Z | 2020-04-10T15:40:08.000Z | Source/Runtime/Impl/Function.hpp | yangzhengxing/CPP-Reflection | 43ec755b7a5c62e3252c174815c2e44727e11e72 | [
"MIT"
] | 88 | 2015-09-21T15:12:32.000Z | 2021-11-30T14:07:34.000Z | /* ----------------------------------------------------------------------------
** Copyright (c) 2016 Austin Brunkhorst, All Rights Reserved.
**
** Function.hpp
** --------------------------------------------------------------------------*/
#pragma once
namespace ursine
{
namespace meta
{
template<typ... | 28.918919 | 83 | 0.428037 | JoinCAD |
6bc6e6a4e1152287ffce0c8b8423ed3228ef94ae | 6,187 | cpp | C++ | src/benchmark/tpch_benchmark.cpp | dey4ss/hyrise | c304b9ced36044e303eb8a4d68a05fc7edc04819 | [
"MIT"
] | null | null | null | src/benchmark/tpch_benchmark.cpp | dey4ss/hyrise | c304b9ced36044e303eb8a4d68a05fc7edc04819 | [
"MIT"
] | 11 | 2019-12-02T20:47:52.000Z | 2020-02-04T23:19:31.000Z | src/benchmark/tpch_benchmark.cpp | dey4ss/hyrise | c304b9ced36044e303eb8a4d68a05fc7edc04819 | [
"MIT"
] | null | null | null | #include <chrono>
#include <iostream>
#include <string>
#include <boost/algorithm/string.hpp>
#include <boost/lexical_cast.hpp>
#include "SQLParserResult.h"
#include "benchmark_runner.hpp"
#include "cli_config_parser.hpp"
#include "cxxopts.hpp"
#include "hyrise.hpp"
#include "tpch/tpch_benchmark_item_runner.hpp"
#inc... | 45.82963 | 155 | 0.71925 | dey4ss |
6bcbb3302ace753f0047979701c589997a7c89fa | 3,254 | cpp | C++ | _lab/lab07-startercodeUPDATED/linkedListFuncs.cpp | richawadaskar/ucsb-cs16-f18-mirza.github.io | 3a09baa689ef160a781d0de6ff9958698843902a | [
"MIT"
] | 7 | 2019-01-09T05:02:29.000Z | 2019-09-17T19:55:10.000Z | _lab/lab07-startercodeUPDATED/linkedListFuncs.cpp | richawadaskar/ucsb-cs16-f18-mirza.github.io | 3a09baa689ef160a781d0de6ff9958698843902a | [
"MIT"
] | 7 | 2019-05-01T21:58:01.000Z | 2021-09-27T21:53:17.000Z | _lab/lab07-startercodeUPDATED/linkedListFuncs.cpp | richawadaskar/ucsb-cs16-f18-mirza.github.io | 3a09baa689ef160a781d0de6ff9958698843902a | [
"MIT"
] | 51 | 2019-01-10T20:09:59.000Z | 2019-05-06T23:11:55.000Z | #include <iostream>
#include <string>
#include <sstream> // for ostringstream
#include <cassert>
#include "arrayFuncs.h"
#include "linkedList.h"
#include "linkedListFuncs.h"
LinkedList * arrayToLinkedList(int *a, int size) {
LinkedList * list = new LinkedList;
list->head=NULL;
list->tail=NULL;
for (in... | 23.242857 | 91 | 0.620774 | richawadaskar |
6bce0831135cc23ae0b60eef9a95fb789177c1e1 | 10,543 | cpp | C++ | Applications/ViewFromTheWindow/App.cpp | zgpxgame/hieroglyph3 | bb1c59d82a69062bb76431b691fbcb381930768a | [
"MIT"
] | 25 | 2017-08-05T07:29:00.000Z | 2022-02-02T06:28:27.000Z | Applications/ViewFromTheWindow/App.cpp | zgpxgame/hieroglyph3 | bb1c59d82a69062bb76431b691fbcb381930768a | [
"MIT"
] | null | null | null | Applications/ViewFromTheWindow/App.cpp | zgpxgame/hieroglyph3 | bb1c59d82a69062bb76431b691fbcb381930768a | [
"MIT"
] | 9 | 2018-07-14T08:40:29.000Z | 2021-03-19T08:51:30.000Z | //--------------------------------------------------------------------------------
// This file is a portion of the Hieroglyph 3 Rendering Engine. It is distributed
// under the MIT License, available in the root of this distribution and
// at the following URL:
//
// http://www.opensource.org/licenses/mit-license.ph... | 34.454248 | 200 | 0.639002 | zgpxgame |
6bde78bad04e45b95eda3b09a9ec0fc1c3ce079a | 721 | cpp | C++ | src/p2p/SingletonChord.cpp | danhil/Chord | 3e6f7a3c6506e52dbbe26d412e51d65dafbe7cca | [
"MIT"
] | null | null | null | src/p2p/SingletonChord.cpp | danhil/Chord | 3e6f7a3c6506e52dbbe26d412e51d65dafbe7cca | [
"MIT"
] | 1 | 2017-01-31T08:46:55.000Z | 2017-02-06T07:54:06.000Z | src/p2p/SingletonChord.cpp | danhil/Chord | 3e6f7a3c6506e52dbbe26d412e51d65dafbe7cca | [
"MIT"
] | null | null | null | #include "SingletonChord.h"
#include "DebugUtil.h"
SingletonChord* SingletonChord::instance = NULL;
SingletonChord::SingletonChord()
: debug(Debug::GetDebugger())
{
myNode = NULL;
}
SingletonChord::~SingletonChord()
{
delete myNode;
delete instance;
}
// Not yet threadsafe
SingletonChord* SingletonChord::getInst... | 17.166667 | 66 | 0.732316 | danhil |
6bde9b695259e8ee0714a52dab9cb40030a5dd30 | 685 | cpp | C++ | src/types/unsupp.cpp | PeterBortas/samdisk | 7a6f882c42f10093848cc3815453c143ac09f63a | [
"MIT"
] | 1 | 2018-12-13T14:56:30.000Z | 2018-12-13T14:56:30.000Z | src/types/unsupp.cpp | PeterBortas/samdisk | 7a6f882c42f10093848cc3815453c143ac09f63a | [
"MIT"
] | null | null | null | src/types/unsupp.cpp | PeterBortas/samdisk | 7a6f882c42f10093848cc3815453c143ac09f63a | [
"MIT"
] | null | null | null | // Catch recognised unsupported image types by file signatures.
#include "SAMdisk.h"
bool ReadUnsupported (MemFile &file, std::shared_ptr<Disk> &/*disk*/)
{
std::array<char, SECTOR_SIZE> buf;
if (!file.rewind() || !file.read(buf))
return false;
std::string strType;
if (std::string(buf.data() + 0x00, 12) == "C... | 27.4 | 112 | 0.652555 | PeterBortas |
6be0e60457ce2880ace06bfb30a0e65cf99bcb36 | 3,534 | cpp | C++ | C++/max_sub_sum/max_sub_sum/main.cpp | LinKeymy/Algorithm | c6a08704bc28047f7444fc0fdec3ff98a7b929f5 | [
"MIT"
] | null | null | null | C++/max_sub_sum/max_sub_sum/main.cpp | LinKeymy/Algorithm | c6a08704bc28047f7444fc0fdec3ff98a7b929f5 | [
"MIT"
] | null | null | null | C++/max_sub_sum/max_sub_sum/main.cpp | LinKeymy/Algorithm | c6a08704bc28047f7444fc0fdec3ff98a7b929f5 | [
"MIT"
] | null | null | null | //
// main.cpp
// max_sub_sum
//
// Created by SteveLin on 2019/7/8.
// Copyright © 2019 alin. All rights reserved.
//
#include <iostream>
#include <vector>
using namespace std;
/*
设 i = 5, j = 7
j = 5 6 7 .....
k = 5 5 6 5 6 7
所以 for (int k = i; i <= j; ++k)
O(N^3)
*/
int max_sub_sum_... | 22.509554 | 69 | 0.490379 | LinKeymy |
6be6c6632acf8ef5b712120bd9376d3cbf8958c5 | 7,831 | cpp | C++ | src/Plugin/Plugins/FirePlugin.cpp | Jon-edge/esp-rgb-led-matrix | 0eec32d71996096318bc8e529bda7f5f41612146 | [
"MIT"
] | null | null | null | src/Plugin/Plugins/FirePlugin.cpp | Jon-edge/esp-rgb-led-matrix | 0eec32d71996096318bc8e529bda7f5f41612146 | [
"MIT"
] | null | null | null | src/Plugin/Plugins/FirePlugin.cpp | Jon-edge/esp-rgb-led-matrix | 0eec32d71996096318bc8e529bda7f5f41612146 | [
"MIT"
] | null | null | null | /* MIT License
*
* Copyright (c) 2019 - 2022 Andreas Merkle <web@blue-andi.de>
*
* 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 ... | 33.182203 | 99 | 0.397012 | Jon-edge |
6bebd04a47b5bd298f454c4ca9826e8448800c69 | 17,943 | cpp | C++ | qws/src/core/QTimeLine.cpp | keera-studios/hsQt | 8aa71a585cbec40005354d0ee43bce9794a55a9a | [
"BSD-2-Clause"
] | 42 | 2015-02-16T19:29:16.000Z | 2021-07-25T11:09:03.000Z | qws/src/core/QTimeLine.cpp | keera-studios/hsQt | 8aa71a585cbec40005354d0ee43bce9794a55a9a | [
"BSD-2-Clause"
] | 1 | 2017-11-23T12:49:25.000Z | 2017-11-23T12:49:25.000Z | qws/src/core/QTimeLine.cpp | keera-studios/hsQt | 8aa71a585cbec40005354d0ee43bce9794a55a9a | [
"BSD-2-Clause"
] | 5 | 2015-10-15T21:25:30.000Z | 2017-11-22T13:18:24.000Z | /////////////////////////////////////////////////////////////////////////////
//
// File : QTimeLine.cpp
// Copyright : (c) David Harley 2010
// Project : qtHaskell
// Version : 1.1.4
// Modified : 2010-09-02 17:01:55
//
// Warning : this file is machine generated -... | 44.085995 | 126 | 0.662041 | keera-studios |
6beea00e6975467bf93be1283131c18af7f0ffc1 | 2,023 | hpp | C++ | src/Signal.hpp | 9elements/pwrseqd | fa435d8fed2de2c7948cbc1f0e55f9257786c907 | [
"Apache-2.0"
] | null | null | null | src/Signal.hpp | 9elements/pwrseqd | fa435d8fed2de2c7948cbc1f0e55f9257786c907 | [
"Apache-2.0"
] | null | null | null | src/Signal.hpp | 9elements/pwrseqd | fa435d8fed2de2c7948cbc1f0e55f9257786c907 | [
"Apache-2.0"
] | null | null | null | #pragma once
#include "Validate.hpp"
#include <boost/thread/mutex.hpp>
#include <chrono>
#include <vector>
using namespace std;
using namespace std::chrono;
class StateMachine;
class SignalProvider;
class GpioOutput;
class GpioInput;
class NullOutput;
class LogicInput;
class VoltageRegulator;
class ACPIStates;
//... | 23.252874 | 79 | 0.717252 | 9elements |
6bef9acea1776476dd1dcc37ee2510de6129dbdb | 344 | cpp | C++ | source/sema/block_node_manipulator.cpp | stryku/cmakesl | e53bffed62ae9ca68c0c2de0de8e2a94bfe4d326 | [
"BSD-3-Clause"
] | 51 | 2019-05-06T01:33:34.000Z | 2021-11-17T11:44:54.000Z | source/sema/block_node_manipulator.cpp | stryku/cmakesl | e53bffed62ae9ca68c0c2de0de8e2a94bfe4d326 | [
"BSD-3-Clause"
] | 191 | 2019-05-06T18:31:24.000Z | 2020-06-19T06:48:06.000Z | source/sema/block_node_manipulator.cpp | stryku/cmakesl | e53bffed62ae9ca68c0c2de0de8e2a94bfe4d326 | [
"BSD-3-Clause"
] | 3 | 2019-10-12T21:03:29.000Z | 2020-06-19T06:22:25.000Z | #include "sema/block_node_manipulator.hpp"
#include "sema/sema_nodes.hpp"
namespace cmsl::sema {
block_node_manipulator::block_node_manipulator(block_node& block)
: m_block_node{ block }
{
}
void block_node_manipulator::append_expression(
std::unique_ptr<expression_node> node)
{
m_block_node.m_nodes.emplace_bac... | 21.5 | 65 | 0.784884 | stryku |
6bf37acb6c316e40d2321acadd63014c0fac56fa | 3,982 | hpp | C++ | libprocess/src/geometry.hpp | richese/magneto-locator | aef8b195b81b1c59fe2e813f097caf82b5715ba1 | [
"MIT"
] | null | null | null | libprocess/src/geometry.hpp | richese/magneto-locator | aef8b195b81b1c59fe2e813f097caf82b5715ba1 | [
"MIT"
] | null | null | null | libprocess/src/geometry.hpp | richese/magneto-locator | aef8b195b81b1c59fe2e813f097caf82b5715ba1 | [
"MIT"
] | null | null | null | //------------------------------------------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2015 Lukáš Mandák <lukas.mandak@yandex.com>
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Softwa... | 25.044025 | 80 | 0.684078 | richese |
6bf883533d11a6e3f785b336af4742487e9b7002 | 513 | hh | C++ | src/jsonl_source.hh | epgdatacapbon/mirakc-arib | f50851ac1869599e95dcbefe115624b95e8274de | [
"Apache-2.0",
"MIT"
] | null | null | null | src/jsonl_source.hh | epgdatacapbon/mirakc-arib | f50851ac1869599e95dcbefe115624b95e8274de | [
"Apache-2.0",
"MIT"
] | null | null | null | src/jsonl_source.hh | epgdatacapbon/mirakc-arib | f50851ac1869599e95dcbefe115624b95e8274de | [
"Apache-2.0",
"MIT"
] | null | null | null | #pragma once
#include "base.hh"
#include "jsonl_sink.hh"
namespace {
class JsonlSource {
public:
JsonlSource() = default;
virtual ~JsonlSource() = default;
void Connect(std::unique_ptr<JsonlSink>&& sink) {
sink_ = std::move(sink);
}
protected:
bool FeedDocument(const rapidjson::Document& doc) {
... | 16.03125 | 53 | 0.668616 | epgdatacapbon |
6bfb93e25bbfe9fad068ded8da62dda97ba67cac | 1,054 | cpp | C++ | artery_tree/view_artery_tree.cpp | ncrookston/liver_source | 9876ac4e9ea57d8e23767af9be061a9b10c6f1e5 | [
"BSL-1.0"
] | null | null | null | artery_tree/view_artery_tree.cpp | ncrookston/liver_source | 9876ac4e9ea57d8e23767af9be061a9b10c6f1e5 | [
"BSL-1.0"
] | null | null | null | artery_tree/view_artery_tree.cpp | ncrookston/liver_source | 9876ac4e9ea57d8e23767af9be061a9b10c6f1e5 | [
"BSL-1.0"
] | null | null | null | #include "gl/visualizer.hpp"
#include "liver/macrocell_tree.hpp"
#include "utility/options.hpp"
#include "utility/volume_image.hpp"
#include <boost/filesystem.hpp>
#include <boost/program_options.hpp>
namespace po = boost::program_options;
using namespace jhmi;
int main(int argc, char* argv[]) {
GOOGLE_PROTOBUF_VER... | 31 | 71 | 0.688805 | ncrookston |
6bfd1e3809464e38aa3a5fa2ffb912e4d90ca2b9 | 1,571 | cc | C++ | IR/src/Literal.cc | avartak/DIMPLE | b117baa2880cdae4afdeecea733c301e54980ef6 | [
"MIT"
] | 3 | 2021-04-04T08:49:38.000Z | 2021-07-03T02:01:26.000Z | IR/src/Literal.cc | avartak/DIMPLE | b117baa2880cdae4afdeecea733c301e54980ef6 | [
"MIT"
] | null | null | null | IR/src/Literal.cc | avartak/DIMPLE | b117baa2880cdae4afdeecea733c301e54980ef6 | [
"MIT"
] | null | null | null | #include <llvm/IR/Constants.h>
#include <llvm/IR/GlobalVariable.h>
#include <Literal.h>
#include <PrimitiveType.h>
#include <PointerType.h>
#include <ArrayType.h>
#include <Globals.h>
namespace avl {
IntLiteral::IntLiteral(uint64_t i):
Value(VALUE_INT, std::make_shared<PrimitiveType>(TYPE_INT64), TheBuil... | 32.729167 | 139 | 0.676639 | avartak |
d400cf9d4237fbb95882501b0e8452f3184df6b4 | 3,212 | hpp | C++ | src/xalanc/XercesParserLiaison/Deprecated/XercesBridgeTypes.hpp | ulisesten/xalanc | a722de08e61ce66965c4a828242f7d1250950621 | [
"Apache-2.0"
] | 24 | 2015-07-29T22:49:17.000Z | 2022-03-25T10:14:17.000Z | src/xalanc/XercesParserLiaison/Deprecated/XercesBridgeTypes.hpp | ulisesten/xalanc | a722de08e61ce66965c4a828242f7d1250950621 | [
"Apache-2.0"
] | 14 | 2019-05-10T16:25:50.000Z | 2021-11-24T18:04:47.000Z | src/xalanc/XercesParserLiaison/Deprecated/XercesBridgeTypes.hpp | ulisesten/xalanc | a722de08e61ce66965c4a828242f7d1250950621 | [
"Apache-2.0"
] | 28 | 2015-04-20T15:50:51.000Z | 2022-01-26T14:56:55.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 you under the Apache License, Version 2.0 (the "License");
* you m... | 33.113402 | 76 | 0.758095 | ulisesten |
d4043f4b60e4a34aa36560b6efd4cd9e6b10211a | 1,048 | hpp | C++ | satori/include/url-parser.hpp | njlr/satori | 16d3909c275a2b1b421b20431ce4ab6048d747c1 | [
"MIT"
] | 15 | 2017-11-13T11:31:44.000Z | 2021-01-02T07:26:54.000Z | satori/include/url-parser.hpp | njlr/satori | 16d3909c275a2b1b421b20431ce4ab6048d747c1 | [
"MIT"
] | null | null | null | satori/include/url-parser.hpp | njlr/satori | 16d3909c275a2b1b421b20431ce4ab6048d747c1 | [
"MIT"
] | 2 | 2018-01-04T14:57:55.000Z | 2019-07-29T15:24:19.000Z | #ifndef SATORI_URL_PARSER_HPP
#define SATORI_URL_PARSER_HPP
#include <http_parser.h>
#include <neither/either.hpp>
#include <string.h>
#include <string>
#include <vector>
#include <satori/url.hpp>
namespace satori {
neither::Either<int, Url> parseUrl(std::string const &maybeUrl) {
http_parser_url parser;
http... | 20.54902 | 72 | 0.646947 | njlr |
d409837af5e31ec1e2509db5ea212126e05e9e80 | 1,672 | hpp | C++ | examples/17_winchat/chatter/NEDistributedApp.hpp | Ali-Nasrolahi/areg-sdk | 4fbc2f2644220196004a31672a697a864755f0b6 | [
"Apache-2.0"
] | 70 | 2021-07-20T11:26:16.000Z | 2022-03-27T11:17:43.000Z | examples/17_winchat/chatter/NEDistributedApp.hpp | Ali-Nasrolahi/areg-sdk | 4fbc2f2644220196004a31672a697a864755f0b6 | [
"Apache-2.0"
] | 32 | 2021-07-31T05:20:44.000Z | 2022-03-20T10:11:52.000Z | examples/17_winchat/chatter/NEDistributedApp.hpp | Ali-Nasrolahi/areg-sdk | 4fbc2f2644220196004a31672a697a864755f0b6 | [
"Apache-2.0"
] | 40 | 2021-11-02T09:45:38.000Z | 2022-03-27T11:17:46.000Z | #pragma once
/************************************************************************
* \file chatter/NEDistributedApp.hpp
* \brief Configurations, settings, etc..
************************************************************************/
#include "areg/base/GEGlobal.h"
#include "areg/trace/GE... | 27.866667 | 114 | 0.592105 | Ali-Nasrolahi |
d40ab85f5740ec473acffed1fc00a2a4b472d9df | 1,274 | cpp | C++ | src/model/CoinsProxyModel.cpp | Midar/feather | ac9693077c338527a4b31ca6b2d85514f8fe739a | [
"BSD-3-Clause"
] | 22 | 2022-02-03T16:22:35.000Z | 2022-03-27T14:06:38.000Z | src/model/CoinsProxyModel.cpp | Midar/feather | ac9693077c338527a4b31ca6b2d85514f8fe739a | [
"BSD-3-Clause"
] | 9 | 2022-02-11T06:23:59.000Z | 2022-03-25T03:42:02.000Z | src/model/CoinsProxyModel.cpp | Midar/feather | ac9693077c338527a4b31ca6b2d85514f8fe739a | [
"BSD-3-Clause"
] | 8 | 2022-02-06T06:57:49.000Z | 2022-03-24T11:58:30.000Z | // SPDX-License-Identifier: BSD-3-Clause
// SPDX-FileCopyrightText: 2020-2022 The Monero Project
#include "CoinsProxyModel.h"
#include "CoinsModel.h"
#include "libwalletqt/CoinsInfo.h"
CoinsProxyModel::CoinsProxyModel(QObject *parent, Coins *coins)
: QSortFilterProxyModel(parent)
, m_coins(coins)
... | 30.333333 | 105 | 0.705651 | Midar |
d413e4a230758126fcf243aa2dcb392a49cffbd0 | 53,454 | cpp | C++ | fbcopy/fbcopy.cpp | cyborgve/FBExport | 595cee439d95b5eebcd8a486d7817db1f6cff4a7 | [
"MIT"
] | null | null | null | fbcopy/fbcopy.cpp | cyborgve/FBExport | 595cee439d95b5eebcd8a486d7817db1f6cff4a7 | [
"MIT"
] | null | null | null | fbcopy/fbcopy.cpp | cyborgve/FBExport | 595cee439d95b5eebcd8a486d7817db1f6cff4a7 | [
"MIT"
] | null | null | null | /*
Copyright (c) 2005-2007 Milan Babuskov
Copyright (c) 2005 Thiago Borges
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... | 35.731283 | 154 | 0.496689 | cyborgve |
d41734bc3922b4d716a93e2c73c9b3b425763d3b | 1,434 | hpp | C++ | include/ghex/rma/cuda/resource_cache.hpp | fthaler/GHEX | ead3699e3ed3aa60c5f18225d4d6f8dcf3412cf9 | [
"BSD-3-Clause"
] | null | null | null | include/ghex/rma/cuda/resource_cache.hpp | fthaler/GHEX | ead3699e3ed3aa60c5f18225d4d6f8dcf3412cf9 | [
"BSD-3-Clause"
] | 4 | 2019-12-11T10:22:25.000Z | 2021-12-20T13:50:20.000Z | include/ghex/rma/cuda/resource_cache.hpp | fthaler/GHEX | ead3699e3ed3aa60c5f18225d4d6f8dcf3412cf9 | [
"BSD-3-Clause"
] | null | null | null | /*
* GridTools
*
* Copyright (c) 2014-2020, ETH Zurich
* All rights reserved.
*
* Please, refer to the LICENSE file in the root directory.
* SPDX-License-Identifier: BSD-3-Clause
*
*/
#ifndef INCLUDED_GHEX_RMA_CUDA_RESOURCE_CACHE_HPP
#define INCLUDED_GHEX_RMA_CUDA_RESOURCE_CACHE_HPP
#include <map>
#includ... | 26.072727 | 98 | 0.683403 | fthaler |
d4177e4e53d24629ea363990053cd437ec2ce2dd | 30,147 | cpp | C++ | ad3qp/ad3/GenericFactor.cpp | andre-martins/lp-sparsemap | 5df0c2f25290881a0ecd4270a9fbbc488d9055ff | [
"MIT"
] | 38 | 2020-02-04T04:26:51.000Z | 2022-03-17T12:08:04.000Z | ad3qp/ad3/GenericFactor.cpp | andre-martins/lp-sparsemap | 5df0c2f25290881a0ecd4270a9fbbc488d9055ff | [
"MIT"
] | 5 | 2020-02-04T05:19:26.000Z | 2022-01-12T08:54:24.000Z | ad3qp/ad3/GenericFactor.cpp | andre-martins/lp-sparsemap | 5df0c2f25290881a0ecd4270a9fbbc488d9055ff | [
"MIT"
] | 4 | 2020-03-07T10:35:14.000Z | 2021-04-16T11:04:43.000Z | // Copyright (c) 2012 Andre Martins
// All Rights Reserved.
//
// This file is part of AD3 2.1.
//
// AD3 2.1 is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at... | 37.218519 | 81 | 0.501509 | andre-martins |
d4178bae472e0af1fb94cd882059beaa8d6a9fb0 | 1,963 | hpp | C++ | sources/include/paymentchannel/ContractTransactionBuilder.hpp | JoystreamClassic/paymentchannel-cpp | fa3843e01102cf7033e8c205ecfaaffd5476203e | [
"MIT"
] | null | null | null | sources/include/paymentchannel/ContractTransactionBuilder.hpp | JoystreamClassic/paymentchannel-cpp | fa3843e01102cf7033e8c205ecfaaffd5476203e | [
"MIT"
] | null | null | null | sources/include/paymentchannel/ContractTransactionBuilder.hpp | JoystreamClassic/paymentchannel-cpp | fa3843e01102cf7033e8c205ecfaaffd5476203e | [
"MIT"
] | null | null | null | /**
* Copyright (C) JoyStream - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* Written by Bedeho Mender <bedeho.mender@gmail.com>, April 20 2016
*/
#ifndef PAYMENTCHANNEL_CONTRACT_HPP
#define PAYMENTCHANNEL_CONTRACT_HPP
#include <co... | 26.890411 | 119 | 0.727967 | JoystreamClassic |
d417b8ddaabf74c9086b567ad72775b684cb726f | 843 | cpp | C++ | src/sensors/temperature_sensors/null_temperature_sensor_test.cpp | kokabe2/golem | a93b0a9d300a6961fdbba2c5c5174e9dc7afaa07 | [
"MIT"
] | null | null | null | src/sensors/temperature_sensors/null_temperature_sensor_test.cpp | kokabe2/golem | a93b0a9d300a6961fdbba2c5c5174e9dc7afaa07 | [
"MIT"
] | null | null | null | src/sensors/temperature_sensors/null_temperature_sensor_test.cpp | kokabe2/golem | a93b0a9d300a6961fdbba2c5c5174e9dc7afaa07 | [
"MIT"
] | null | null | null | // Copyright(c) 2020 Ken Okabe
// This software is released under the MIT License, see LICENSE.
#include "gtest/gtest.h"
extern "C" {
#include "null_temperature_sensor.h"
}
class NullTemperatureSensorTest : public ::testing::Test {
protected:
TemperatureSensor sensor;
virtual void SetUp() { sensor ... | 33.72 | 105 | 0.7414 | kokabe2 |
d41a547168d1e268f6ca32d5feb1fefaa9e78440 | 2,431 | hpp | C++ | include/opentxs/network/zeromq/RequestSocket.hpp | nopdotcom/opentxs | 140428ba8f1bd4c09654ebf0a1c1725f396efa8b | [
"MIT"
] | null | null | null | include/opentxs/network/zeromq/RequestSocket.hpp | nopdotcom/opentxs | 140428ba8f1bd4c09654ebf0a1c1725f396efa8b | [
"MIT"
] | null | null | null | include/opentxs/network/zeromq/RequestSocket.hpp | nopdotcom/opentxs | 140428ba8f1bd4c09654ebf0a1c1725f396efa8b | [
"MIT"
] | null | null | null | // Copyright (c) 2018 The Open-Transactions developers
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#ifndef OPENTXS_NETWORK_ZEROMQ_REQUESTSOCKET_HPP
#define OPENT... | 35.231884 | 122 | 0.739613 | nopdotcom |
d41e14038958af079e022b2d802519018b23ab5c | 8,772 | cpp | C++ | hw_inference/App/test_caffenet.cpp | heartever/mojo-cnn | 25b7cd5ac17dd84cbe50d17d64721c71f4640f73 | [
"MIT"
] | null | null | null | hw_inference/App/test_caffenet.cpp | heartever/mojo-cnn | 25b7cd5ac17dd84cbe50d17d64721c71f4640f73 | [
"MIT"
] | 1 | 2019-01-15T08:34:56.000Z | 2019-01-15T08:34:56.000Z | hw_inference/App/test_caffenet.cpp | heartever/mojo-cnn | 25b7cd5ac17dd84cbe50d17d64721c71f4640f73 | [
"MIT"
] | null | null | null | // == mojo ====================================================================
//
// Copyright (c) gnawice@gnawice.com. All rights reserved.
// See LICENSE in root folder
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation... | 29.436242 | 145 | 0.625057 | heartever |
d41e5963c5f76e4e44e9bde084d9b506212d557a | 404 | hpp | C++ | benchmarks/quantities.hpp | tnuvoletta/Principia | 25cf2fb70c512cf86a842ed525f6ab10e57f937c | [
"MIT"
] | 565 | 2015-01-04T21:47:18.000Z | 2022-03-22T12:04:58.000Z | benchmarks/quantities.hpp | tnuvoletta/Principia | 25cf2fb70c512cf86a842ed525f6ab10e57f937c | [
"MIT"
] | 1,019 | 2015-01-03T11:42:27.000Z | 2022-03-29T21:02:15.000Z | benchmarks/quantities.hpp | tnuvoletta/Principia | 25cf2fb70c512cf86a842ed525f6ab10e57f937c | [
"MIT"
] | 92 | 2015-02-11T23:08:58.000Z | 2022-03-21T03:35:37.000Z |
#pragma once
#include <vector>
#include "base/not_null.hpp"
#include "quantities/named_quantities.hpp"
namespace principia {
namespace quantities {
inline void DimensionfulDiscreteCosineTransform(std::vector<Momentum>& result);
inline void DoubleDiscreteCosineTransform(std::vector<double>& result);
} // namesp... | 20.2 | 79 | 0.787129 | tnuvoletta |
d4200e2615c348fca5cc44faaef9c4485131275b | 1,400 | cpp | C++ | packages/QUIGameEntry/dev/source/qt5/OpenGLWidget.cpp | phaser/quintessence | 6fdd46c9b0ef397827717e9095c218aeeb89b6d3 | [
"MIT"
] | 1 | 2015-05-21T09:23:16.000Z | 2015-05-21T09:23:16.000Z | packages/QUIGameEntry/dev/source/qt5/OpenGLWidget.cpp | phaser/quintessence | 6fdd46c9b0ef397827717e9095c218aeeb89b6d3 | [
"MIT"
] | null | null | null | packages/QUIGameEntry/dev/source/qt5/OpenGLWidget.cpp | phaser/quintessence | 6fdd46c9b0ef397827717e9095c218aeeb89b6d3 | [
"MIT"
] | null | null | null | // Copyright (C) 2013 Cristian Bidea
// This file is part of QUIGameEntry.
//
// QUIGameEntry is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at you... | 26.923077 | 81 | 0.693571 | phaser |
d4238ff2e06322a5342339c271b5b3a79d788320 | 767 | cxx | C++ | tri.cxx | goodmanjonathan/kattis-problems | 0dde13f037e6486566039f68dfff85bbc9d950fb | [
"MIT"
] | null | null | null | tri.cxx | goodmanjonathan/kattis-problems | 0dde13f037e6486566039f68dfff85bbc9d950fb | [
"MIT"
] | null | null | null | tri.cxx | goodmanjonathan/kattis-problems | 0dde13f037e6486566039f68dfff85bbc9d950fb | [
"MIT"
] | null | null | null | #include <iostream>
int main() {
int a, b, c;
std::cin >> a >> b >> c;
char sigil1;
char sigil2;
if (a + b == c) {
sigil1 = '+';
sigil2 = '=';
} else if (a - b == c) {
sigil1 = '-';
sigil2 = '=';
} else if (a * b == c) {
sigil1 = '*';
sigil2 ... | 20.72973 | 57 | 0.318123 | goodmanjonathan |
d42532634403a287b64e75df43f31d6fd0bf575b | 712 | cpp | C++ | extra/src/directory.cpp | perriera/blockchain | 2c89ecc110dcc9c042bdb919c7cf3017a43d4ce8 | [
"MIT"
] | null | null | null | extra/src/directory.cpp | perriera/blockchain | 2c89ecc110dcc9c042bdb919c7cf3017a43d4ce8 | [
"MIT"
] | null | null | null | extra/src/directory.cpp | perriera/blockchain | 2c89ecc110dcc9c042bdb919c7cf3017a43d4ce8 | [
"MIT"
] | null | null | null | #include <iostream>
#include <fstream>
#include "directory.hpp"
using namespace std;
//
// simplest crc64 c++ implementation
// https://gist.github.com/timepp
//
Directory::Directory(const Path &path) : _path(path)
{
string listing_file = "/tmp/listing.txt";
string cmd = "ls " + _path + ">" + listing_file;
... | 22.967742 | 53 | 0.616573 | perriera |
d42841e16d358d014c43111505c3ca609a16c71f | 946 | cpp | C++ | math/quadratic_solver_benchmark.cpp | masrtis/eyebeam | a9ea111c7958838c19c0b26ea1961f119b4f91f1 | [
"MIT"
] | null | null | null | math/quadratic_solver_benchmark.cpp | masrtis/eyebeam | a9ea111c7958838c19c0b26ea1961f119b4f91f1 | [
"MIT"
] | 4 | 2020-12-13T14:55:24.000Z | 2021-03-10T01:47:36.000Z | math/quadratic_solver_benchmark.cpp | masrtis/eyebeam | a9ea111c7958838c19c0b26ea1961f119b4f91f1 | [
"MIT"
] | null | null | null | #include "quadratic_solver.h"
#include "random_generator.h"
#include <tuple>
#include <benchmark/benchmark.h>
namespace eyebeam
{
namespace
{
auto generateRandomQuadraticCoefficients()
{
auto a = RandomGenerator::generateRandomFloat();
while (areEqual(a, 0.0F))
{
a = RandomGenerator::generateR... | 19.306122 | 65 | 0.690275 | masrtis |
d4286889e0ecbcbf9272998d4021eeb8bb2d42ca | 2,355 | cpp | C++ | src/entry.cpp | lyssdod/node-test | 41ed9060cfe25f85abd66f755a0c88a26e129570 | [
"MIT"
] | 5 | 2016-09-22T20:00:31.000Z | 2021-01-10T04:29:22.000Z | src/entry.cpp | lyssdod/node-test | 41ed9060cfe25f85abd66f755a0c88a26e129570 | [
"MIT"
] | 13 | 2016-09-03T14:13:08.000Z | 2019-02-13T16:45:04.000Z | src/entry.cpp | lyssdod/node-test | 41ed9060cfe25f85abd66f755a0c88a26e129570 | [
"MIT"
] | 8 | 2016-09-18T16:10:24.000Z | 2017-06-23T20:50:15.000Z | #include <v8.h>
#include <nan.h>
#include <libtorrent/entry.hpp>
#include "entry.hpp"
using namespace v8;
namespace nodelt {
Local<Value> entry_to_object(const libtorrent::entry& e_) {
Nan::EscapableHandleScope scope;
if (e_.type() == libtorrent::entry::int_t) {
return scope.Escape... | 34.130435 | 122 | 0.541826 | lyssdod |
2d6e3200cf68f201da8751a786cde88d92a7b42c | 5,198 | cpp | C++ | sources/effectengine/Animation4Music_WavesPulseSlow.cpp | awawa-dev/hyperion.ng | 459aa9b81fe04bfd7a259d761a0fdff94178e10d | [
"MIT-0",
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | 2 | 2020-08-24T10:02:51.000Z | 2020-08-24T20:03:50.000Z | sources/effectengine/Animation4Music_WavesPulseSlow.cpp | awawa-dev/hyperion.ng | 459aa9b81fe04bfd7a259d761a0fdff94178e10d | [
"MIT-0",
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | null | null | null | sources/effectengine/Animation4Music_WavesPulseSlow.cpp | awawa-dev/hyperion.ng | 459aa9b81fe04bfd7a259d761a0fdff94178e10d | [
"MIT-0",
"Apache-2.0",
"CC-BY-4.0",
"MIT"
] | null | null | null | /* Animation4Music_WavesPulseSlow.cpp
*
* MIT License
*
* Copyright (c) 2021 awawa-dev
*
* Project homesite: https://github.com/awawa-dev/HyperHDR
*
* 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 t... | 31.695122 | 147 | 0.658907 | awawa-dev |
2d6e800d6c095d91207bcf0c5542844b5ea7205f | 453 | cpp | C++ | UPCFramework/NDrawable2D.cpp | UPC-DESARROLLO-JUEGOS-1/DJ12017-II-FinalProject | 4a866769056ea4443bafea43f875885e550549ba | [
"MIT"
] | null | null | null | UPCFramework/NDrawable2D.cpp | UPC-DESARROLLO-JUEGOS-1/DJ12017-II-FinalProject | 4a866769056ea4443bafea43f875885e550549ba | [
"MIT"
] | null | null | null | UPCFramework/NDrawable2D.cpp | UPC-DESARROLLO-JUEGOS-1/DJ12017-II-FinalProject | 4a866769056ea4443bafea43f875885e550549ba | [
"MIT"
] | null | null | null | #include "NDrawable2D.h"
NDrawable2D::NDrawable2D() :
mVBO_ID(0),
mNeedMatrixUpdate(true),
mWorldMatrix(1.0f),
mX(0.0f), mY(0.0f),
mScaleX(1.0f), mScaleY(1.0f),
mRotationZ(0.0f)
{ }
NDrawable2D::~NDrawable2D()
{
delete mCurrentShader;
mRenderCamera = nullptr;
if (mVBO_ID != 0) {
glDeleteBuffers(1, &mVBO_I... | 15.1 | 48 | 0.653422 | UPC-DESARROLLO-JUEGOS-1 |
2d74f73f80858ac2eb635b470ecded5cfe21ee57 | 198 | cc | C++ | CommBasicObjects/coordination/src-gen/VisualizationCoordinationService/VisualizationCoordinationService.cc | canonical-robots/DomainModelsRepositories | 68b9286d84837e5feb7b200833b158ab9c2922a4 | [
"BSD-3-Clause"
] | null | null | null | CommBasicObjects/coordination/src-gen/VisualizationCoordinationService/VisualizationCoordinationService.cc | canonical-robots/DomainModelsRepositories | 68b9286d84837e5feb7b200833b158ab9c2922a4 | [
"BSD-3-Clause"
] | 2 | 2020-08-20T14:49:47.000Z | 2020-10-07T16:10:07.000Z | CommBasicObjects/coordination/src-gen/VisualizationCoordinationService/VisualizationCoordinationService.cc | canonical-robots/DomainModelsRepositories | 68b9286d84837e5feb7b200833b158ab9c2922a4 | [
"BSD-3-Clause"
] | 8 | 2018-06-25T08:41:28.000Z | 2020-08-13T10:39:30.000Z | #include "VisualizationCoordinationService.hh"
VisualizationCoordinationService::VisualizationCoordinationService (){
}
VisualizationCoordinationService::~VisualizationCoordinationService (){
}
| 22 | 71 | 0.853535 | canonical-robots |
2d76394e7512d99a1f4d829b7ed283dc43eaab62 | 6,455 | hpp | C++ | serv-cli/readline.hpp | yeweili94/WebServer | 82cbe8e7e433c83a82cfb1c2dc053ab02d9119d1 | [
"MIT"
] | null | null | null | serv-cli/readline.hpp | yeweili94/WebServer | 82cbe8e7e433c83a82cfb1c2dc053ab02d9119d1 | [
"MIT"
] | null | null | null | serv-cli/readline.hpp | yeweili94/WebServer | 82cbe8e7e433c83a82cfb1c2dc053ab02d9119d1 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <error.h>
#include <errno.h>
#define ERR_EXIT(m) \
do { \
perror(m); \
exit(EXIT_FAILURE); \
} while(0)
ssize_t readn(int fd, void *buf, size_t count);
ssize_t ... | 23.996283 | 87 | 0.481177 | yeweili94 |
2d7cff740873305e7f6e6119f526e75b431d93fb | 420 | hpp | C++ | cpp/include/mh/types/disable_copy_move.hpp | PazerOP/stuff | 8ef31153dce1c9593d59fe7fb731fca4d15f3fa6 | [
"MIT"
] | null | null | null | cpp/include/mh/types/disable_copy_move.hpp | PazerOP/stuff | 8ef31153dce1c9593d59fe7fb731fca4d15f3fa6 | [
"MIT"
] | 4 | 2020-01-04T02:26:00.000Z | 2020-04-19T10:46:50.000Z | cpp/include/mh/types/disable_copy_move.hpp | PazerOP/stuff | 8ef31153dce1c9593d59fe7fb731fca4d15f3fa6 | [
"MIT"
] | null | null | null | #pragma once
namespace mh
{
struct disable_copy
{
constexpr disable_copy() = default;
disable_copy(const disable_copy&) = delete;
disable_copy& operator=(const disable_copy&) = delete;
};
struct disable_move
{
constexpr disable_move() = default;
disable_move(disable_move&&) = delete;
disable_move& op... | 20 | 58 | 0.728571 | PazerOP |
2d7d8ddcbd6ec2167c59abc8de711274bbd40631 | 16,882 | hpp | C++ | include/OpenSpaceToolkit/Core/FileSystem/Directory.hpp | open-space-collective/library-core | 0b031edb403e2d657d02761b07dd4b35680fcafc | [
"Apache-2.0"
] | 8 | 2018-06-13T06:50:34.000Z | 2019-07-15T03:36:50.000Z | include/OpenSpaceToolkit/Core/FileSystem/Directory.hpp | open-space-collective/library-core | 0b031edb403e2d657d02761b07dd4b35680fcafc | [
"Apache-2.0"
] | 37 | 2018-06-12T07:42:38.000Z | 2020-01-05T01:13:27.000Z | include/OpenSpaceToolkit/Core/FileSystem/Directory.hpp | open-space-collective/library-core | 0b031edb403e2d657d02761b07dd4b35680fcafc | [
"Apache-2.0"
] | 2 | 2020-03-05T18:17:24.000Z | 2020-04-07T18:18:24.000Z | ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// @project Open Space Toolkit ▸ Core
/// @file OpenSpaceToolkit/Core/FileSystem/Directory.hpp
/// @author Lucas Brémond <lucas@... | 47.55493 | 191 | 0.365478 | open-space-collective |
2d8145db98eb38fde2d250e9613f6e1f4979c54c | 1,924 | cpp | C++ | SimSpark/spark/utility/rcssnet/handler.cpp | IllyasvielEin/Robocup3dInstaller | 12e91d9372dd08a92feebf98e916c98bc2242ff4 | [
"MIT"
] | null | null | null | SimSpark/spark/utility/rcssnet/handler.cpp | IllyasvielEin/Robocup3dInstaller | 12e91d9372dd08a92feebf98e916c98bc2242ff4 | [
"MIT"
] | null | null | null | SimSpark/spark/utility/rcssnet/handler.cpp | IllyasvielEin/Robocup3dInstaller | 12e91d9372dd08a92feebf98e916c98bc2242ff4 | [
"MIT"
] | null | null | null | // -*-c++-*-
/***************************************************************************
handler.cpp - handles network startup
-------------------
begin : 14-AUG-2003
copyright : (C) 2003 by The RoboCup Soccer Server
... | 29.151515 | 78 | 0.399688 | IllyasvielEin |
2d85661bd63c6242cf8a74a08a8e8542d18ff083 | 6,652 | cpp | C++ | Game/SceneEdit/src/ui/res/ClothSetting_wdr.cpp | hackerlank/SourceCode | b702c9e0a9ca5d86933f3c827abb02a18ffc9a59 | [
"MIT"
] | 4 | 2021-07-31T13:56:01.000Z | 2021-11-13T02:55:10.000Z | Game/SceneEdit/src/ui/res/ClothSetting_wdr.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | null | null | null | Game/SceneEdit/src/ui/res/ClothSetting_wdr.cpp | shacojx/SourceCodeGameTLBB | e3cea615b06761c2098a05427a5f41c236b71bf7 | [
"MIT"
] | 7 | 2021-08-31T14:34:23.000Z | 2022-01-19T08:25:58.000Z | //------------------------------------------------------------------------------
// Source code generated by wxDesigner from file: ClothSetting.wdr
// Do not modify this file, all changes will be lost!
//------------------------------------------------------------------------------
#if defined(__GNUG__) && !defined(NO... | 45.561644 | 145 | 0.691521 | hackerlank |
2d8a3f36658baf3a2c03170e387cd19d28d1cd9c | 254 | hpp | C++ | src/slaggy-engine/slaggy-engine/physics/CollisionPair.hpp | SlaggyWolfie/slaggy-engine | 846235c93a52a96be85c5274a1372bc09c16f144 | [
"MIT"
] | 1 | 2021-09-24T23:13:13.000Z | 2021-09-24T23:13:13.000Z | src/slaggy-engine/slaggy-engine/physics/CollisionPair.hpp | SlaggyWolfie/slaggy-engine | 846235c93a52a96be85c5274a1372bc09c16f144 | [
"MIT"
] | null | null | null | src/slaggy-engine/slaggy-engine/physics/CollisionPair.hpp | SlaggyWolfie/slaggy-engine | 846235c93a52a96be85c5274a1372bc09c16f144 | [
"MIT"
] | 2 | 2020-06-24T07:10:13.000Z | 2022-03-08T17:19:12.000Z | #pragma once
#ifndef COLLISION_PAIR_HPP
#define COLLISION_PAIR_HPP
namespace slaggy
{
class Shape;
struct CollisionPair
{
Shape* lhs = nullptr;
Shape* rhs = nullptr;
CollisionPair(Shape* lhs, Shape* rhs) : lhs(lhs), rhs(rhs) { }
};
}
#endif | 14.941176 | 64 | 0.700787 | SlaggyWolfie |
2d90a4230b4c79604d2b9b22a14152e4bcc3de08 | 2,404 | cpp | C++ | src/distance/JointAvoidanceConfigurationRanker.cpp | usc-csci-545/aikido | afd8b203c17cb0b05d7db436f8bffbbe2111a75a | [
"BSD-3-Clause"
] | null | null | null | src/distance/JointAvoidanceConfigurationRanker.cpp | usc-csci-545/aikido | afd8b203c17cb0b05d7db436f8bffbbe2111a75a | [
"BSD-3-Clause"
] | null | null | null | src/distance/JointAvoidanceConfigurationRanker.cpp | usc-csci-545/aikido | afd8b203c17cb0b05d7db436f8bffbbe2111a75a | [
"BSD-3-Clause"
] | null | null | null | #include "aikido/distance/JointAvoidanceConfigurationRanker.hpp"
namespace aikido {
namespace distance {
using statespace::dart::ConstMetaSkeletonStateSpacePtr;
using ::dart::dynamics::ConstMetaSkeletonPtr;
//==============================================================================
JointAvoidanceConfigurationRa... | 36.424242 | 80 | 0.702995 | usc-csci-545 |
2d91075d770384117cbac8bdeae12b43d1cd846a | 2,455 | cpp | C++ | newcoder/mazeWithKeyDoor.cpp | Yvettre/Cpp-practice | 711985f27789cd442962a004293ac4ef2ce5029c | [
"MIT"
] | null | null | null | newcoder/mazeWithKeyDoor.cpp | Yvettre/Cpp-practice | 711985f27789cd442962a004293ac4ef2ce5029c | [
"MIT"
] | null | null | null | newcoder/mazeWithKeyDoor.cpp | Yvettre/Cpp-practice | 711985f27789cd442962a004293ac4ef2ce5029c | [
"MIT"
] | null | null | null | /***************************************************************
拼多多2018年校招:迷宫寻路
假设一个探险家被困在了地底的迷宫之中,要从当前位置开始找到一条通往迷宫出口的路径。
迷宫可以用一个二维矩阵组成,有的部分是墙,有的部分是路。
迷宫之中有的路上还有门,每扇门都在迷宫的某个地方有与之匹配的钥匙,只有先拿到钥匙才能打开门。
请设计一个算法,帮助探险家找到脱困的最短路径。
如前所述,迷宫是通过一个二维矩阵表示的,每个元素的值的含义如下:
0-墙,1-路,2-探险家的起始位置,3-迷宫的出口,大写字母-门,小写字母-对应大写字母所代表的门的钥匙
- 输入描述:... | 23.834951 | 95 | 0.575967 | Yvettre |
2d92731eb8bec1e85a52c6243b3e9952b5b1ac47 | 372 | cpp | C++ | MCTS/ArduinoVersion/Computer/ConnectNode.cpp | Jdvdb/Connect4MCTS | 3b52683ec09d235baa78405fdc376693cae0df4f | [
"MIT"
] | 1 | 2020-04-11T05:38:25.000Z | 2020-04-11T05:38:25.000Z | MCTS/ComputerVersion/ConnectNode.cpp | Jdvdb/Connect4MCTS | 3b52683ec09d235baa78405fdc376693cae0df4f | [
"MIT"
] | null | null | null | MCTS/ComputerVersion/ConnectNode.cpp | Jdvdb/Connect4MCTS | 3b52683ec09d235baa78405fdc376693cae0df4f | [
"MIT"
] | null | null | null | #include "ConnectNode.h"
using namespace std;
ConnectNode::ConnectNode(const ConnectFour& inputGame, const bool currentPlayer, int myId, int parentId, int move) {
// set these based on input
currentGame = inputGame;
playerTurn = currentPlayer;
id = myId;
parent = parentId;
newMove = move;
}
void ConnectNode::... | 21.882353 | 116 | 0.747312 | Jdvdb |
2da44fb4b71452d02bf7e9c597bae57056b815a0 | 8,099 | cpp | C++ | library/src/blas3/rocblas_trtri_batched.cpp | ntrost57/rocBLAS | a03ecf96be5bfdd11945bc409c92bab593eef899 | [
"MIT"
] | 1 | 2019-01-22T04:51:12.000Z | 2019-01-22T04:51:12.000Z | library/src/blas3/rocblas_trtri_batched.cpp | Acidburn0zzz/rocBLAS | ed0d2b161eb6c28ed36732d10843e433d359b1bc | [
"MIT"
] | null | null | null | library/src/blas3/rocblas_trtri_batched.cpp | Acidburn0zzz/rocBLAS | ed0d2b161eb6c28ed36732d10843e433d359b1bc | [
"MIT"
] | null | null | null | /* ************************************************************************
* * Copyright 2016 Advanced Micro Devices, Inc.
* *
* * ************************************************************************ */
#include <hip/hip_runtime.h>
#include "rocblas.h"
#include "definitions.h"
#include "trtri_device.h"
#i... | 34.611111 | 99 | 0.440301 | ntrost57 |
2da6aa29fd509d71a7450e5273f1d7808c3e64e8 | 1,103 | cpp | C++ | main.cpp | SiLeader/cxx-function | d7f402a3988d500338f25f487065e6136194a491 | [
"Apache-2.0"
] | null | null | null | main.cpp | SiLeader/cxx-function | d7f402a3988d500338f25f487065e6136194a491 | [
"Apache-2.0"
] | null | null | null | main.cpp | SiLeader/cxx-function | d7f402a3988d500338f25f487065e6136194a491 | [
"Apache-2.0"
] | null | null | null | // Copyright 2018 SiLeader and Cerussite.
//
// 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 applica... | 23.978261 | 77 | 0.618314 | SiLeader |
2da7b9b5436f071c4300fed942eb6d414c1373e0 | 13,714 | cpp | C++ | input_server/input_recorder/srcs/InputRecorder/win.cpp | return/BeOSSampleCode | ca5a319fecf425a69e944f3c928a85011563a932 | [
"BSD-3-Clause"
] | 5 | 2018-09-09T21:01:57.000Z | 2022-03-27T10:01:27.000Z | input_server/input_recorder/srcs/InputRecorder/win.cpp | return/BeOSSampleCode | ca5a319fecf425a69e944f3c928a85011563a932 | [
"BSD-3-Clause"
] | null | null | null | input_server/input_recorder/srcs/InputRecorder/win.cpp | return/BeOSSampleCode | ca5a319fecf425a69e944f3c928a85011563a932 | [
"BSD-3-Clause"
] | 5 | 2018-04-03T01:45:23.000Z | 2021-05-14T08:23:01.000Z | /*
Copyright 1999, Be Incorporated. All Rights Reserved.
This file may be used under the terms of the Be Sample Code License.
*/
#include <Application.h>
#include <Alert.h>
#include <Debug.h>
#include <WindowScreen.h>
#include <Path.h>
#include <OS.h>
#include <MenuBar.h>
#include <MenuItem.h>
#include <String.h>
... | 25.681648 | 143 | 0.672379 | return |
2da8a4d2c4967107ff2a6f7a7b7323e2b53257a5 | 685 | cpp | C++ | CH05/ex5_21.cpp | xuyicpp/C-Primer-5th | 4db716af57151916cf99013ea528b92d73a859ea | [
"MIT"
] | 11 | 2019-11-01T03:54:17.000Z | 2022-03-27T06:34:58.000Z | CH05/ex5_21.cpp | xuyicpp/C-Primer-5th | 4db716af57151916cf99013ea528b92d73a859ea | [
"MIT"
] | null | null | null | CH05/ex5_21.cpp | xuyicpp/C-Primer-5th | 4db716af57151916cf99013ea528b92d73a859ea | [
"MIT"
] | 7 | 2017-11-07T07:26:49.000Z | 2022-02-03T18:52:05.000Z | #include <iostream>
#include <fstream>
#include <cstdlib> //for exit()
#include <string>
#include <cctype>
using namespace std;
int main(int argc, char *argv[])
{
if(argc==1) //quit if no argument
{
cerr<<"Usage: "<<argv[0]<<" filename[s]\n";
exit(EXIT_FAILURE);
}
string temp,lastOne;
for(int file=1;fil... | 15.222222 | 45 | 0.614599 | xuyicpp |
2da96333474371828a66c5f3bd75fe9a6f7e434c | 9,993 | cpp | C++ | source/supreme/textitems.cpp | AutomaticFrenzy/HamSandwich | d991c840fd688cb2541806a33f152ba9aac41a1a | [
"MIT"
] | null | null | null | source/supreme/textitems.cpp | AutomaticFrenzy/HamSandwich | d991c840fd688cb2541806a33f152ba9aac41a1a | [
"MIT"
] | null | null | null | source/supreme/textitems.cpp | AutomaticFrenzy/HamSandwich | d991c840fd688cb2541806a33f152ba9aac41a1a | [
"MIT"
] | null | null | null | static txtItem_t baseItems[]={
{ // TI_NONE
// type names
{"","","",""},
// full name
"",
// description
{""},
// flags
0
},
{ // TI_JAR
// type names
{"JAR","GLASS","",""},
// full name
"an empty glass jar",
// description
{"This is a jar... made of glass... and guess what? It's empty!"... | 22.711364 | 80 | 0.593015 | AutomaticFrenzy |
2da9d0b27b65ecac2ce231773cd9ed4f60a7aa34 | 8,843 | cc | C++ | csrc/ozz-animation.cc | jazzbre/ozz-animation-beef | b7112dc70f9686057fc40315028bef98524f23fa | [
"MIT"
] | 2 | 2021-05-12T16:09:55.000Z | 2022-01-15T10:15:05.000Z | csrc/ozz-animation.cc | jazzbre/ozz-animation-beef | b7112dc70f9686057fc40315028bef98524f23fa | [
"MIT"
] | null | null | null | csrc/ozz-animation.cc | jazzbre/ozz-animation-beef | b7112dc70f9686057fc40315028bef98524f23fa | [
"MIT"
] | null | null | null | #include "ozz-animation.h"
#include <ozz/base/io/archive.h>
#include <ozz/base/maths/soa_transform.h>
#include <ozz/base/maths/transform.h>
#include <ozz/animation/runtime/animation.h>
#include <ozz/animation/runtime/skeleton.h>
#include <ozz/animation/runtime/blending_job.h>
#include <ozz/animation/runtime/sampling_jo... | 33.11985 | 155 | 0.701685 | jazzbre |
2db2e73e03e9d342557eb9d8e8d6610c52def429 | 5,110 | cpp | C++ | src/main_tests.cpp | VaultB/vaultb | de41b954ea4d8a4f54a5ab95adf14af85809f55e | [
"MIT"
] | null | null | null | src/main_tests.cpp | VaultB/vaultb | de41b954ea4d8a4f54a5ab95adf14af85809f55e | [
"MIT"
] | null | null | null | src/main_tests.cpp | VaultB/vaultb | de41b954ea4d8a4f54a5ab95adf14af85809f55e | [
"MIT"
] | null | null | null | // Copyright (c) 2012-2018, The CryptoNote developers, The Bytecoin developers, [ ] developers.
// Licensed under the GNU Lesser General Public License. See LICENSE for details.
#include <thread>
#include "Core/BlockChainState.hpp"
#include "Core/Config.hpp"
#include "Core/Difficulty.hpp"
#include "Core/Transac... | 38.134328 | 118 | 0.70137 | VaultB |
2dbdef8d59b6318e8fbc756c0aa8b3ac049f5792 | 3,747 | cpp | C++ | src/Figure3/neuma.cpp | jonathanperrie/iscDNase-seq | 11852c08ac5b6d66ae918910ed3ac212d37ddad6 | [
"MIT"
] | null | null | null | src/Figure3/neuma.cpp | jonathanperrie/iscDNase-seq | 11852c08ac5b6d66ae918910ed3ac212d37ddad6 | [
"MIT"
] | null | null | null | src/Figure3/neuma.cpp | jonathanperrie/iscDNase-seq | 11852c08ac5b6d66ae918910ed3ac212d37ddad6 | [
"MIT"
] | null | null | null | /*
* neuma.cpp
*
* Created on: Dec 14, 2011
* Author: hugq
*/
#include "neuma.h"
NEUMA::NEUMA(Str fh, Str labl){
label = labl;
Str line;
std::ifstream in((fh+".30.gLVKM").data());
if( in.good()){
getline(in, line);//SKIP FIRST LINE
while( !in.eof( )){
gLVKM glvkm;
glvkm.initFromLineOfFile(in)... | 26.574468 | 99 | 0.595143 | jonathanperrie |
2dc560544739a85b2453a4b4ad3a1a81a0001b47 | 223,250 | cpp | C++ | Source/HoudiniEngineEditor/Private/HoudiniParameterDetails.cpp | eliiik/HoudiniEngineForUnreal-v2 | 6cfc93a8f7f4929e13823a1611532bfd102bc190 | [
"BSD-3-Clause"
] | null | null | null | Source/HoudiniEngineEditor/Private/HoudiniParameterDetails.cpp | eliiik/HoudiniEngineForUnreal-v2 | 6cfc93a8f7f4929e13823a1611532bfd102bc190 | [
"BSD-3-Clause"
] | null | null | null | Source/HoudiniEngineEditor/Private/HoudiniParameterDetails.cpp | eliiik/HoudiniEngineForUnreal-v2 | 6cfc93a8f7f4929e13823a1611532bfd102bc190 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) <2021> Side Effects Software 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,
* this list of... | 30.423821 | 245 | 0.728327 | eliiik |
2dcb9c1bfaac7e08d98afde98fb999019a23ac5f | 242 | cpp | C++ | AtCoder/arc026/a/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | null | null | null | AtCoder/arc026/a/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | 1 | 2021-10-19T08:47:23.000Z | 2022-03-07T05:23:56.000Z | AtCoder/arc026/a/main.cpp | H-Tatsuhiro/Com_Pro-Cpp | fd79f7821a76b11f4a6f83bbb26a034db577a877 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
#include <algorithm>
#include <vector>
using namespace std;
int main() {
int n, a, b, cnt = 0; cin >> n >> a >> b;
if (n < 5) cout << n * b << endl;
else cout << (n - 5) * a + 5 * b << endl;
}
| 22 | 45 | 0.524793 | H-Tatsuhiro |
2dcda8a9763da72130ff43927cf316f407eac487 | 705 | cpp | C++ | test/os.cpp | mocabe/platform_utility | 20af0c81e6b8a28fa8a052b1563f73912209efec | [
"MIT"
] | null | null | null | test/os.cpp | mocabe/platform_utility | 20af0c81e6b8a28fa8a052b1563f73912209efec | [
"MIT"
] | null | null | null | test/os.cpp | mocabe/platform_utility | 20af0c81e6b8a28fa8a052b1563f73912209efec | [
"MIT"
] | 1 | 2021-02-28T05:31:44.000Z | 2021-02-28T05:31:44.000Z | #include <platform/os.hpp>
#include <iostream>
template <class...>
constexpr bool true_v = true;
template <class T = int>
void test()
{
if constexpr (platform::is_windows) {
static_assert(true_v<T> && !platform::is_linux);
static_assert(true_v<T> && !platform::is_osx);
std::cout << "os: windows\n";
}
... | 23.5 | 54 | 0.636879 | mocabe |
2dcebac87ad7dd43ea53a95d90f81b281d4ab104 | 1,904 | hpp | C++ | include/ramen/core/shader.hpp | helixd2s/Ramen | 5b1ebcfdc796b2276b607e71e09c5842d0c52933 | [
"MIT"
] | 4 | 2021-05-13T21:12:09.000Z | 2022-01-26T18:24:30.000Z | include/ramen/core/shader.hpp | helixd2s/Ramen | 5b1ebcfdc796b2276b607e71e09c5842d0c52933 | [
"MIT"
] | null | null | null | include/ramen/core/shader.hpp | helixd2s/Ramen | 5b1ebcfdc796b2276b607e71e09c5842d0c52933 | [
"MIT"
] | null | null | null | #pragma once
//
#include "./core.hpp"
#include "./device.hpp"
#include "./memory.hpp"
//
namespace rmc {
class ShaderStageObject : public BaseObject { public:
public:
//
ShaderStageObject(Handle const& base, Handle const& handle, const std::shared_ptr<vkh::CreateHelperBase> const& info =... | 45.333333 | 226 | 0.680147 | helixd2s |
2dcfc12a129fce1a83c919ba2f803ee314981944 | 26,839 | cpp | C++ | VCECore/rgy_filter_delogo.cpp | rigaya/VCEEnc | bc7f9a6217d846326f4bf6e1f9192fe4a58b46a2 | [
"BSD-2-Clause"
] | 83 | 2017-01-22T11:51:17.000Z | 2022-03-28T07:26:20.000Z | VCECore/rgy_filter_delogo.cpp | rigaya/VCEEnc | bc7f9a6217d846326f4bf6e1f9192fe4a58b46a2 | [
"BSD-2-Clause"
] | 47 | 2017-02-08T19:09:51.000Z | 2022-03-29T10:50:54.000Z | VCECore/rgy_filter_delogo.cpp | rigaya/VCEEnc | bc7f9a6217d846326f4bf6e1f9192fe4a58b46a2 | [
"BSD-2-Clause"
] | 23 | 2017-01-23T05:54:00.000Z | 2021-07-19T16:38:11.000Z | // -----------------------------------------------------------------------------------------
// QSVEnc/VCEEnc by rigaya
// -----------------------------------------------------------------------------------------
//
// The MIT License
//
// Copyright (c) 2021 rigaya
//
// Permission is hereby granted, free of charge, ... | 51.024715 | 233 | 0.633407 | rigaya |
2dd10a8c5943e95b0fb42c89784b80f42a73dca6 | 26,993 | cpp | C++ | textord/blkocc.cpp | jan-ruzicka/tesseract-ocr-sf | 816c4e959e6f4d4afc5797ad09cfd9c2192b899f | [
"Apache-2.0"
] | null | null | null | textord/blkocc.cpp | jan-ruzicka/tesseract-ocr-sf | 816c4e959e6f4d4afc5797ad09cfd9c2192b899f | [
"Apache-2.0"
] | null | null | null | textord/blkocc.cpp | jan-ruzicka/tesseract-ocr-sf | 816c4e959e6f4d4afc5797ad09cfd9c2192b899f | [
"Apache-2.0"
] | null | null | null | /*****************************************************************************
*
* File: blkocc.cpp (Formerly blockocc.c)
* Description: Block Occupancy routines
* Author: Chris Newton
* Created: Fri Nov 8
* Modified:
* Language: C++
* Package: N/A
* Status: Experimental (Do ... | 33.2836 | 116 | 0.53036 | jan-ruzicka |
2dd52976c41b91d1aa6b743f86c798521a05d857 | 913 | cpp | C++ | lifecycle/src/lifecycle/lifecycle_model.cpp | scottnothing/ros1_lifecycle | 4f17a28f50eed7a65637b353e64577969a28fe9e | [
"Apache-2.0"
] | 23 | 2019-05-07T08:27:32.000Z | 2022-02-28T03:12:08.000Z | lifecycle/src/lifecycle/lifecycle_model.cpp | scottnothing/ros1_lifecycle | 4f17a28f50eed7a65637b353e64577969a28fe9e | [
"Apache-2.0"
] | 7 | 2020-04-17T09:16:32.000Z | 2021-05-22T03:29:12.000Z | lifecycle/src/lifecycle/lifecycle_model.cpp | scottnothing/ros1_lifecycle | 4f17a28f50eed7a65637b353e64577969a28fe9e | [
"Apache-2.0"
] | 5 | 2019-05-09T16:07:54.000Z | 2021-05-02T14:26:38.000Z | //
// ROS1 Lifecycle - A library implementing the ROS2 lifecycle for ROS1
//
// Copyright 2016,2017 Robert Bosch GmbH
//
// 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.ap... | 32.607143 | 98 | 0.732749 | scottnothing |
2dd5c926b3bf98341293c41d98ecd4e0520e03b2 | 612 | cpp | C++ | main.cpp | lukaszplk/gray_code | 66d2de374004202f3465229ca849b4d25412ad32 | [
"MIT"
] | null | null | null | main.cpp | lukaszplk/gray_code | 66d2de374004202f3465229ca849b4d25412ad32 | [
"MIT"
] | null | null | null | main.cpp | lukaszplk/gray_code | 66d2de374004202f3465229ca849b4d25412ad32 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <vector>
using namespace std;
void generateGrayarr(int n){
vector<string> arr;
arr.push_back("0");
arr.push_back("1");
int i, j;
for (i = 2; i < (1<<n); i = i<<1)
{
for (j = i-1 ; j >= 0 ; j--)
arr.push_back(arr[j]);
for (j = 0 ; j < i... | 16.105263 | 37 | 0.49183 | lukaszplk |
2dd7648b6abdd9197912943b67f4c4b3f2bbcea2 | 37,398 | cpp | C++ | src/ts_queue.cpp | meibaogit/media-server | 25144fe1c252212722f4164dd5e41f7a54a32f6c | [
"Apache-2.0"
] | 223 | 2018-08-03T12:52:08.000Z | 2022-03-31T11:53:35.000Z | src/ts_queue.cpp | tomzhang/media-server | 14563054c3eab624fa36487948d907a0b47ae3a7 | [
"Apache-2.0"
] | 6 | 2019-01-02T14:17:39.000Z | 2022-03-01T13:37:09.000Z | src/ts_queue.cpp | tomzhang/media-server | 14563054c3eab624fa36487948d907a0b47ae3a7 | [
"Apache-2.0"
] | 66 | 2018-08-21T12:46:51.000Z | 2022-03-31T11:53:28.000Z | // Media Server - Host or proxy live multimedia streams.
// Copyright (c) 2016 Baidu.com, 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.apa... | 35.753346 | 114 | 0.598134 | meibaogit |
2dd80ae30db3f020d3e9aa3e71e4b43245f73899 | 18,731 | cpp | C++ | src/VcfAnnotateFromVcf/ChunkProcessor.cpp | BeneKenobi/ngs-bits | cf849deb1c80e87b734d748f37f5878536277386 | [
"MIT"
] | 85 | 2016-04-26T17:24:20.000Z | 2022-03-11T12:33:39.000Z | src/VcfAnnotateFromVcf/ChunkProcessor.cpp | BeneKenobi/ngs-bits | cf849deb1c80e87b734d748f37f5878536277386 | [
"MIT"
] | 104 | 2016-08-09T22:18:32.000Z | 2022-03-31T12:39:12.000Z | src/VcfAnnotateFromVcf/ChunkProcessor.cpp | BeneKenobi/ngs-bits | cf849deb1c80e87b734d748f37f5878536277386 | [
"MIT"
] | 28 | 2016-05-10T14:34:20.000Z | 2021-10-14T07:22:39.000Z | #include "ChunkProcessor.h"
#include "VcfFile.h"
#include "ToolBase.h"
#include <zlib.h>
#include <QFileInfo>
#include "Helper.h"
#include "VcfFile.h"
#include "VariantList.h"
#include <QMutex>
ChunkProcessor::ChunkProcessor(AnalysisJob &job,
QByteArrayList &prefix_list,
... | 34.880819 | 153 | 0.539 | BeneKenobi |
2de14e280049c82d0ab396b63329627dfd38d476 | 550 | cpp | C++ | DP/Day17lc1039.cpp | slingjun/DailyLeetCode | 0288e1a3b9072b5c6317a81dc01c1b9521889a02 | [
"MIT"
] | null | null | null | DP/Day17lc1039.cpp | slingjun/DailyLeetCode | 0288e1a3b9072b5c6317a81dc01c1b9521889a02 | [
"MIT"
] | null | null | null | DP/Day17lc1039.cpp | slingjun/DailyLeetCode | 0288e1a3b9072b5c6317a81dc01c1b9521889a02 | [
"MIT"
] | null | null | null | class Solution {
public:
int minScoreTriangulation(vector<int>& A) {
int memo[50][50];
memset(memo, -1, sizeof(int) * 50 * 50);
return dp(A, 0, A.size()-1, memo);
}
int dp(vector<int>& A, int i, int j, int memo[50][50]){
if(i == j-1) return 0;
if(memo[i]... | 27.5 | 80 | 0.458182 | slingjun |
2de6bdcdde3ac6740e00f222a2ea575984e7ff80 | 4,770 | cc | C++ | src/SPH/computeSumVoronoiCellMassDensity.cc | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 22 | 2018-07-31T21:38:22.000Z | 2020-06-29T08:58:33.000Z | src/SPH/computeSumVoronoiCellMassDensity.cc | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 41 | 2020-09-28T23:14:27.000Z | 2022-03-28T17:01:33.000Z | src/SPH/computeSumVoronoiCellMassDensity.cc | jmikeowen/Spheral | 3e1082a7aefd6b328bd3ae24ca1a477108cfc3c4 | [
"BSD-Source-Code",
"BSD-3-Clause-LBNL",
"FSFAP"
] | 7 | 2019-12-01T07:00:06.000Z | 2020-09-15T21:12:39.000Z | //------------------------------------------------------------------------------
// Compute the Voronoi cell mass density summation.
//------------------------------------------------------------------------------
#include "computeSumVoronoiCellMassDensity.hh"
#include "Field/FieldList.hh"
#include "Neighbor/Connectivi... | 35.597015 | 101 | 0.616143 | jmikeowen |
2de83de31f1e70eb88b6cb4f056d62590bd41c25 | 5,772 | cpp | C++ | src/snOperatorCUDA/src/Operator/pooling.cpp | Allisrazor/skynet | 6fd59abb973b14f9ad60a2bd33a884a422dd53fc | [
"MIT"
] | 1 | 2019-12-25T20:13:03.000Z | 2019-12-25T20:13:03.000Z | src/snOperatorCUDA/src/Operator/pooling.cpp | Allisrazor/skynet | 6fd59abb973b14f9ad60a2bd33a884a422dd53fc | [
"MIT"
] | null | null | null | src/snOperatorCUDA/src/Operator/pooling.cpp | Allisrazor/skynet | 6fd59abb973b14f9ad60a2bd33a884a422dd53fc | [
"MIT"
] | 1 | 2020-05-06T13:51:04.000Z | 2020-05-06T13:51:04.000Z | //
// SkyNet Project
// Copyright (C) 2018 by Contributors <https://github.com/Tyill/skynet>
//
// This code is licensed under the MIT License.
//
// 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 So... | 31.540984 | 114 | 0.603604 | Allisrazor |
2deb24b102c8062148275d3d5cf4cf1083ab2d68 | 5,825 | hpp | C++ | SimpleAMR.hpp | YukiWorkshop/SimpleAMR | 866c669bbf76d0eb3adaf0b6470c036fb45433c5 | [
"W3C"
] | null | null | null | SimpleAMR.hpp | YukiWorkshop/SimpleAMR | 866c669bbf76d0eb3adaf0b6470c036fb45433c5 | [
"W3C"
] | null | null | null | SimpleAMR.hpp | YukiWorkshop/SimpleAMR | 866c669bbf76d0eb3adaf0b6470c036fb45433c5 | [
"W3C"
] | null | null | null | /*
This file is part of SimpleAMR.
Copyright (C) 2020 ReimuNotMoe
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) a... | 24.070248 | 102 | 0.699227 | YukiWorkshop |
2df0611288edaf8728e715eccd81c0901e0ce62d | 10,436 | cxx | C++ | boards/st-stm32f103rb-cmsis/Stm32Can.cxx | rilull/openmrn | f562c9957d4df2cbde7af6b9ebc70e190bd5f80c | [
"BSD-2-Clause"
] | 1 | 2016-03-14T21:43:26.000Z | 2016-03-14T21:43:26.000Z | boards/st-stm32f103rb-cmsis/Stm32Can.cxx | rilull/openmrn | f562c9957d4df2cbde7af6b9ebc70e190bd5f80c | [
"BSD-2-Clause"
] | null | null | null | boards/st-stm32f103rb-cmsis/Stm32Can.cxx | rilull/openmrn | f562c9957d4df2cbde7af6b9ebc70e190bd5f80c | [
"BSD-2-Clause"
] | null | null | null | /** \copyright
* Copyright (c) 2014, Balazs Racz
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright notice,
* this li... | 30.967359 | 80 | 0.663377 | rilull |
2df54fe7d302f5e8fcca4fd1ac170de10fbf254c | 1,947 | hpp | C++ | cpp/src/c_api/array.hpp | chirayuG-nvidia/cugraph | f80313ecfd1ff61c8223a5896c710298cd8a0614 | [
"Apache-2.0"
] | null | null | null | cpp/src/c_api/array.hpp | chirayuG-nvidia/cugraph | f80313ecfd1ff61c8223a5896c710298cd8a0614 | [
"Apache-2.0"
] | null | null | null | cpp/src/c_api/array.hpp | chirayuG-nvidia/cugraph | f80313ecfd1ff61c8223a5896c710298cd8a0614 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (c) 2021, NVIDIA CORPORATION.
*
* 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 ... | 25.285714 | 86 | 0.683616 | chirayuG-nvidia |
2df894752517c116a0f44b0e5dbba845db0e390e | 1,477 | hxx | C++ | include/geombd/CRTP/utils/sincos.hxx | garechav/geombd_crtp | c723c0cda841728fcb34fbad634f166e3237d9d9 | [
"MIT"
] | 1 | 2021-12-20T23:11:23.000Z | 2021-12-20T23:11:23.000Z | include/geombd/CRTP/utils/sincos.hxx | garechav/geombd_crtp | c723c0cda841728fcb34fbad634f166e3237d9d9 | [
"MIT"
] | null | null | null | include/geombd/CRTP/utils/sincos.hxx | garechav/geombd_crtp | c723c0cda841728fcb34fbad634f166e3237d9d9 | [
"MIT"
] | null | null | null | /**
* \file include/geombd/CRTP/utils/sincos.hxx
* \author Alvaro Paz, Gustavo Arechavaleta
* \version 1.0
* \date 2021
*
* Class to implement template-based sin cos functions
* Copyright (c) 2021 Cinvestav
* This library is distributed under the MIT License.
*/
#ifndef GEOMBD_SINCOS_HXX
... | 23.444444 | 86 | 0.616791 | garechav |
2dfbfcea5007fcbca134c2ce732c7d05072bd026 | 852 | cpp | C++ | src/CmdQueue.cpp | TangoCash/RP-Soundboard | cd70a8a663f5682ecc370bb35883fb5ff340d869 | [
"MIT"
] | 90 | 2016-07-07T20:39:09.000Z | 2022-01-03T02:40:12.000Z | src/CmdQueue.cpp | Bluscream/RP-Soundboard | a7653d62fe84d71cdcddf4b614b1a0083fc2deec | [
"MIT"
] | 106 | 2015-11-19T16:27:15.000Z | 2022-03-03T14:55:27.000Z | src/CmdQueue.cpp | Bluscream/RP-Soundboard | a7653d62fe84d71cdcddf4b614b1a0083fc2deec | [
"MIT"
] | 46 | 2017-01-14T15:34:59.000Z | 2021-12-02T15:23:32.000Z | // src/CmdQueue.cpp
//----------------------------------
// RP Soundboard Source Code
// Copyright (c) 2016 Marius Graefe
// All rights reserved
// Contact: rp_soundboard@mgraefe.de
//----------------------------------
#include "CmdQueue.h"
using Lock = std::lock_guard<std::mutex>;
CmdQueue::CmdQueue() :
stop(fals... | 12.909091 | 52 | 0.593897 | TangoCash |
2dfd947f568651fb8918d45a275dfb87700fe1d1 | 1,544 | cpp | C++ | source/GUIWindow.cpp | vonLeebpl/WKIrrlichtLime | 79e17540574bceaecc27049d99eb4ee2f6ca3479 | [
"Zlib"
] | 19 | 2019-06-23T15:43:58.000Z | 2021-07-22T14:22:52.000Z | source/GUIWindow.cpp | vonLeebpl/WKIrrlichtLime | 79e17540574bceaecc27049d99eb4ee2f6ca3479 | [
"Zlib"
] | 4 | 2019-06-23T15:46:02.000Z | 2022-02-07T14:42:58.000Z | source/GUIWindow.cpp | vonLeebpl/WKIrrlichtLime | 79e17540574bceaecc27049d99eb4ee2f6ca3479 | [
"Zlib"
] | 6 | 2019-11-17T08:42:22.000Z | 2022-01-11T07:40:17.000Z | #include "stdafx.h"
#include "GUIButton.h"
#include "GUIElement.h"
#include "GUIWindow.h"
using namespace irr;
using namespace System;
namespace IrrlichtLime {
namespace GUI {
GUIWindow^ GUIWindow::Wrap(gui::IGUIWindow* ref)
{
if (ref == nullptr)
return nullptr;
return gcnew GUIWindow(ref);
}
... | 19.061728 | 56 | 0.695596 | vonLeebpl |
2dfdac2d74e85253562af7009d4b746ef2080ef0 | 6,409 | hpp | C++ | rcff/include/CXKJ/RCF/PublishingService.hpp | DayBreakZhang/CXKJ_Code | c7caab736313f029324f1c95714f5a94b2589076 | [
"Apache-2.0"
] | null | null | null | rcff/include/CXKJ/RCF/PublishingService.hpp | DayBreakZhang/CXKJ_Code | c7caab736313f029324f1c95714f5a94b2589076 | [
"Apache-2.0"
] | null | null | null | rcff/include/CXKJ/RCF/PublishingService.hpp | DayBreakZhang/CXKJ_Code | c7caab736313f029324f1c95714f5a94b2589076 | [
"Apache-2.0"
] | null | null | null |
//******************************************************************************
// RCF - Remote Call Framework
//
// Copyright (c) 2005 - 2019, Delta V Software. All rights reserved.
// http://www.deltavsoft.com
//
// RCF is distributed under dual licenses - closed source or GPL.
// Consult your particular license fo... | 30.8125 | 123 | 0.603214 | DayBreakZhang |
9301496948687fbf4df935cf49508517e8c497be | 3,565 | cc | C++ | src/xenia/gpu/d3d11/d3d11_window.cc | shuffle2/xenia | 9a2d99d6521b63f524dcafec61a13833e79ea227 | [
"BSD-3-Clause"
] | 1 | 2016-11-18T23:13:10.000Z | 2016-11-18T23:13:10.000Z | src/xenia/gpu/d3d11/d3d11_window.cc | aniruddh22/xenia | 99c333afb1c09c8bd30a02b82f30c5b32779b2a1 | [
"BSD-3-Clause"
] | null | null | null | src/xenia/gpu/d3d11/d3d11_window.cc | aniruddh22/xenia | 99c333afb1c09c8bd30a02b82f30c5b32779b2a1 | [
"BSD-3-Clause"
] | null | null | null | /**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2013 Ben Vanik. All rights reserved. ... | 28.293651 | 82 | 0.604488 | shuffle2 |
9304f56988c06e885bfff0186f8aca1425eb75f9 | 584 | cpp | C++ | 1400/20/1429a.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 1 | 2020-07-03T15:55:52.000Z | 2020-07-03T15:55:52.000Z | 1400/20/1429a.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | null | null | null | 1400/20/1429a.cpp | actium/cf | d7be128c3a9adb014a231a399f1c5f19e1ab2a38 | [
"Unlicense"
] | 3 | 2020-10-01T14:55:28.000Z | 2021-07-11T11:33:58.000Z | #include <algorithm>
#include <iostream>
#include <vector>
template <typename T>
std::istream& operator >>(std::istream& input, std::vector<T>& v)
{
for (T& a : v)
input >> a;
return input;
}
void answer(size_t v)
{
std::cout << v << '\n';
}
void solve(const std::vector<unsigned>& a)
{
unsig... | 14.243902 | 65 | 0.515411 | actium |
930c2c1cf559cde99468a169adefecb1a55260c1 | 6,232 | hpp | C++ | src/driver/fileIO/include/FileIO.hpp | MartinSimango/ftqproto | c5e05b6fd08e5b101ca986395402a223bb66b03f | [
"MIT"
] | null | null | null | src/driver/fileIO/include/FileIO.hpp | MartinSimango/ftqproto | c5e05b6fd08e5b101ca986395402a223bb66b03f | [
"MIT"
] | 2 | 2021-10-09T17:59:29.000Z | 2021-10-09T18:17:42.000Z | src/driver/fileIO/include/FileIO.hpp | MartinSimango/ftqproto | c5e05b6fd08e5b101ca986395402a223bb66b03f | [
"MIT"
] | null | null | null | #pragma once
#include <fcntl.h>
#include <filesystem>
#include <libgen.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <vector>
#include "FileIOConstants.hpp"
#include "FileIOException.hpp"
#include "FileIOStatuses.hpp"
namespace ftq_driver {
struc... | 27.575221 | 87 | 0.704268 | MartinSimango |
930ed5cd3785307e3ead17e9cae191fa2de8561a | 16,195 | cpp | C++ | IDE/wxstedit/src/steopts.cpp | sutao80216/GDevelop | 79461bf01cc0c626e2f094d3fca940d643f93d76 | [
"MIT"
] | 1 | 2018-11-23T11:56:08.000Z | 2018-11-23T11:56:08.000Z | IDE/wxstedit/src/steopts.cpp | sutao80216/GDevelop | 79461bf01cc0c626e2f094d3fca940d643f93d76 | [
"MIT"
] | 9 | 2020-04-04T19:26:47.000Z | 2022-03-25T18:41:20.000Z | IDE/wxstedit/src/steopts.cpp | sutao80216/GDevelop | 79461bf01cc0c626e2f094d3fca940d643f93d76 | [
"MIT"
] | 2 | 2020-03-02T05:20:41.000Z | 2021-05-10T03:59:05.000Z | ///////////////////////////////////////////////////////////////////////////////
// Name: steopts.cpp
// Purpose: wxSTEditorOptions
// Author: John Labenski, parts taken from wxGuide by Otto Wyss
// Modified by:
// Created: 11/05/2002
// RCS-ID:
// Copyright: (c) John Labenski, Otto Wyss
//... | 40.588972 | 109 | 0.670022 | sutao80216 |
9312073340ce302e7b88aba43a6ceb5b90a682b1 | 3,369 | cpp | C++ | ExternalResources/reactphysics3d-0.7.1/testbed/nanogui/ext/eigen/test/cholmod_support.cpp | sh960440/Reality-Game-Engine | 9a079a9b32e8c739e5dae9c33c9924fb84ccc8a5 | [
"MIT"
] | 223 | 2019-06-06T04:40:58.000Z | 2022-03-21T05:59:54.000Z | ExternalResources/reactphysics3d-0.7.1/testbed/nanogui/ext/eigen/test/cholmod_support.cpp | sh960440/Reality-Game-Engine | 9a079a9b32e8c739e5dae9c33c9924fb84ccc8a5 | [
"MIT"
] | 69 | 2019-07-13T07:15:21.000Z | 2022-03-13T08:20:39.000Z | ExternalResources/reactphysics3d-0.7.1/testbed/nanogui/ext/eigen/test/cholmod_support.cpp | sh960440/Reality-Game-Engine | 9a079a9b32e8c739e5dae9c33c9924fb84ccc8a5 | [
"MIT"
] | 65 | 2019-06-06T06:06:58.000Z | 2022-01-19T15:59:52.000Z | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2011 Gael Guennebaud <g.gael@free.fr>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You can obtain one a... | 48.128571 | 117 | 0.799347 | sh960440 |
93148771e93cfbbc0ff9b3db7c0c4bf46b030545 | 1,443 | cpp | C++ | src/atone.cpp | rodrigo-speller/atone | 3713abb749b39b048320626333c51e1c3229287c | [
"MIT"
] | null | null | null | src/atone.cpp | rodrigo-speller/atone | 3713abb749b39b048320626333c51e1c3229287c | [
"MIT"
] | null | null | null | src/atone.cpp | rodrigo-speller/atone | 3713abb749b39b048320626333c51e1c3229287c | [
"MIT"
] | null | null | null | // Copyright (c) Rodrigo Speller. All rights reserved.
// Licensed under the MIT License. See LICENSE.txt in the project root for license information.
#include "atone.h"
#include "config/AtoneOptions.h"
#include "logging/Log.h"
#include "programs/ProgramFactory.h"
#include "system/Supervisor.h"
int main(int argc, ch... | 29.44898 | 95 | 0.602218 | rodrigo-speller |
9314aa8781eedda1eac440978f7327822cdb5a67 | 4,306 | cpp | C++ | toonz/sources/stdfx/ino_common.cpp | Savraska2/opentoonz | 47ab3039c899ae1a50d612d097415ab09f10f35e | [
"BSD-3-Clause"
] | 36 | 2020-05-18T22:26:35.000Z | 2022-02-19T00:09:25.000Z | toonz/sources/stdfx/ino_common.cpp | LibrePhone/opentoonz | cb95a29db4c47ab1f36a6e85a039c4c9c901f88a | [
"BSD-3-Clause"
] | 22 | 2017-03-16T18:52:36.000Z | 2019-09-09T06:02:53.000Z | toonz/sources/stdfx/ino_common.cpp | LibrePhone/opentoonz | cb95a29db4c47ab1f36a6e85a039c4c9c901f88a | [
"BSD-3-Clause"
] | 9 | 2019-05-27T02:48:16.000Z | 2022-03-29T12:32:04.000Z | #include "tenv.h"
#include "tsystem.h"
#include "ino_common.h"
/* copy and paste from
igs_ifx_common.h */
namespace igs {
namespace image {
namespace rgba {
enum num { blu = 0, gre, red, alp, siz };
}
}
}
//------------------------------------------------------------
namespace {
// T is TPixel32 or TPixel64
// U is ... | 29.094595 | 79 | 0.566419 | Savraska2 |
7937843e88551cc10674de63a00a8d00501cb85f | 1,365 | cpp | C++ | unit_tests/main_tests.cpp | R41fK/kuehmayer_project_2 | 19fbe26500312c576e7c4958fa160c931211e2fd | [
"BSL-1.0"
] | null | null | null | unit_tests/main_tests.cpp | R41fK/kuehmayer_project_2 | 19fbe26500312c576e7c4958fa160c931211e2fd | [
"BSL-1.0"
] | null | null | null | unit_tests/main_tests.cpp | R41fK/kuehmayer_project_2 | 19fbe26500312c576e7c4958fa160c931211e2fd | [
"BSL-1.0"
] | null | null | null | #define DOCTEST_CONFIG_IMPLEMENT
#include "doctest.h"
#include "json.hpp"
using namespace nlohmann;
#include <iostream>
#include <rang.hpp>
using namespace std;
int main(int argc, char* argv[]) {
cout << endl;
cout << rang::fg::green
<< rang::style::bold << "Started "
<< rang::fg::yell... | 25.754717 | 105 | 0.56044 | R41fK |
793add01c57c89aa10eceaec779a9ade4928f81e | 2,870 | cpp | C++ | src/minerva-safefs-layer/version/version.cpp | anonymized-code/minervafs | 4c8291b38d06febfca78090e5382ef3fc4893bd5 | [
"MIT"
] | null | null | null | src/minerva-safefs-layer/version/version.cpp | anonymized-code/minervafs | 4c8291b38d06febfca78090e5382ef3fc4893bd5 | [
"MIT"
] | null | null | null | src/minerva-safefs-layer/version/version.cpp | anonymized-code/minervafs | 4c8291b38d06febfca78090e5382ef3fc4893bd5 | [
"MIT"
] | null | null | null | #include "version.hpp"
#include <tartarus/writers.hpp>
#include <tartarus/readers.hpp>
#include <filesystem>
namespace minerva
{
version::version() {}
version::version(const std::string& version_path)
{
m_version_path = version_path;
if (version_path.size() > 0 && version_path.substr(ver... | 25.39823 | 95 | 0.570383 | anonymized-code |
793bb122a48d4a584fd17e8cc31fcf5297336b9a | 236 | cpp | C++ | jumbojavelin.cpp | Embrikht/Kattis | bffccda2f0f487dc4dffb3ab3dcb82ed0c7be374 | [
"CC0-1.0"
] | null | null | null | jumbojavelin.cpp | Embrikht/Kattis | bffccda2f0f487dc4dffb3ab3dcb82ed0c7be374 | [
"CC0-1.0"
] | null | null | null | jumbojavelin.cpp | Embrikht/Kattis | bffccda2f0f487dc4dffb3ab3dcb82ed0c7be374 | [
"CC0-1.0"
] | null | null | null | #include <iostream>
using namespace std;
int main() {
int answer, counter, temp;
cin >> counter >> answer;
while (counter > 1) {
cin >> temp;
answer += temp - 1;
counter--;
}
cout << answer << endl;
return 0;
}
| 15.733333 | 28 | 0.567797 | Embrikht |
793bf06d3d9d636c1364202c20789428889e22d0 | 3,602 | hpp | C++ | mvpnode.hpp | starkdg/mvptree | 5ce25fbf66546d17b0e16a456661f5e54ec2023f | [
"MIT"
] | 1 | 2020-08-16T00:09:30.000Z | 2020-08-16T00:09:30.000Z | mvpnode.hpp | starkdg/mvptree | 5ce25fbf66546d17b0e16a456661f5e54ec2023f | [
"MIT"
] | 1 | 2021-04-20T07:45:53.000Z | 2021-05-16T22:11:12.000Z | mvpnode.hpp | starkdg/mvptree | 5ce25fbf66546d17b0e16a456661f5e54ec2023f | [
"MIT"
] | null | null | null | #ifndef _MVPNODE_H
#define _MVPNODE_H
#include <map>
#include <vector>
#include "mvptree.hpp"
#include "defs.hpp"
using namespace std;
class MVPNode {
public:
MVPNode(){}
virtual ~MVPNode(){};
static MVPNode* CreateNode(vector<DataPoint*> &points,
map<int,vector<DataPoint*>*> &childpoints,
i... | 26.681481 | 106 | 0.715991 | starkdg |
793c6ffa0fcc3a9261b22d129cb0772904c926d9 | 3,145 | cpp | C++ | src/graphics/Graphics.cpp | mitos-drg/lo28 | fe5446f0d74557f93798e4cc9c290e55303ad811 | [
"Zlib"
] | null | null | null | src/graphics/Graphics.cpp | mitos-drg/lo28 | fe5446f0d74557f93798e4cc9c290e55303ad811 | [
"Zlib"
] | null | null | null | src/graphics/Graphics.cpp | mitos-drg/lo28 | fe5446f0d74557f93798e4cc9c290e55303ad811 | [
"Zlib"
] | null | null | null | //
// Copyright (C) 2021 by Mikolaj Mijakowski (Mitos), for further legal details see LICENSE.md
//
#include <lo28/Graphics.h>
#include <vector>
#include <cstdint>
#include <debug/logUtils.h>
#include <debug/assertions.h>
#include "Renderer.h"
#include "Fonts.h"
#include <lo28/GraphicsTypes.h>
Graphics::Graphics(C... | 29.669811 | 139 | 0.682671 | mitos-drg |
793e6d8996549e02825101712323a47875ff8b53 | 2,302 | cpp | C++ | service/imp/service/onoff/2.0.0/IClient.cpp | dterletskiy/carpc | c98d84e5bce69fb30a0f34e7b6cd82b4c98ba9b5 | [
"MIT"
] | 6 | 2022-03-24T15:40:03.000Z | 2022-03-30T09:40:20.000Z | service/imp/service/onoff/2.0.0/IClient.cpp | dterletskiy/carpc | c98d84e5bce69fb30a0f34e7b6cd82b4c98ba9b5 | [
"MIT"
] | 7 | 2022-03-24T18:53:52.000Z | 2022-03-30T10:15:50.000Z | service/imp/service/onoff/2.0.0/IClient.cpp | dterletskiy/carpc | c98d84e5bce69fb30a0f34e7b6cd82b4c98ba9b5 | [
"MIT"
] | 1 | 2022-03-20T21:22:09.000Z | 2022-03-20T21:22:09.000Z | #include "IClient.hpp"
using namespace service::onoff::V2_0_0;
IClient::IClient( const std::string& role_name )
: carpc::service::experimental::TClient< data::Types >( role_name, true )
{
}
void IClient::request_start( )
{
request< data::method::request::StartData >( this );
}
const carpc::comm::sequence:... | 27.73494 | 115 | 0.635534 | dterletskiy |
7941111bfabe4fc35c1db96b12764b17c4c32f3f | 66,949 | cc | C++ | TswDps/Simulation.cc | Philip-Trettner/tsw-optimal-dps | 512ba96066b850d4a1bcdbaaac4718f95bbe7bd7 | [
"MIT"
] | null | null | null | TswDps/Simulation.cc | Philip-Trettner/tsw-optimal-dps | 512ba96066b850d4a1bcdbaaac4718f95bbe7bd7 | [
"MIT"
] | null | null | null | TswDps/Simulation.cc | Philip-Trettner/tsw-optimal-dps | 512ba96066b850d4a1bcdbaaac4718f95bbe7bd7 | [
"MIT"
] | 1 | 2021-12-16T20:53:51.000Z | 2021-12-16T20:53:51.000Z | #include "Simulation.hh"
#include <chrono>
#include <iomanip>
#include <iostream>
#include "CombatLog.hh"
#include "Effects.hh"
#include "Passives.hh"
#include "Signets.hh"
#include "aion/Action.hh"
static float mix(float min, float max, float a)
{
return min + (max - min) * a;
}
static float saturate(float va... | 34.018801 | 138 | 0.560352 | Philip-Trettner |
7946ce1248a8fbdcff58b156e486898b34adec59 | 508 | hpp | C++ | src/socket.hpp | mre/elgato-gchd | e5bc6b98b4da4c6328a06eadf9458c0a944af043 | [
"MIT"
] | 278 | 2015-01-15T07:14:51.000Z | 2022-03-17T16:57:22.000Z | src/socket.hpp | slosher888/elgato-gchd | ed0b06ecde3acb9652c8c63289bc05f8a8de16b8 | [
"MIT"
] | 49 | 2015-01-15T08:03:33.000Z | 2021-11-07T05:58:04.000Z | src/socket.hpp | slosher888/elgato-gchd | ed0b06ecde3acb9652c8c63289bc05f8a8de16b8 | [
"MIT"
] | 57 | 2015-02-20T05:17:06.000Z | 2022-03-21T08:03:09.000Z | /**
* Copyright (c) 2014 - 2016 Tolga Cakir <tolga@cevel.net>
*
* This source file is part of Sidewinder daemon and is distributed under the
* MIT License. For more information, see LICENSE file.
*/
#ifndef SOCKET_CLASS_H
#define SOCKET_CLASS_H
#include <array>
#include <string>
#include <gchd.hpp>
class Socke... | 17.517241 | 77 | 0.692913 | mre |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.