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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9b48d5e4e8a9a8f65d4e01e68adc6cfac40bc6dc | 4,261 | hpp | C++ | mllib/LogisticRegression.hpp | Christina-hshi/Boosting-with-Husky | 1744f0c90567a969d3e50d19f27f358f5865d2f6 | [
"Apache-2.0"
] | 1 | 2019-01-23T02:10:10.000Z | 2019-01-23T02:10:10.000Z | mllib/LogisticRegression.hpp | Christina-hshi/Boosting-with-Husky | 1744f0c90567a969d3e50d19f27f358f5865d2f6 | [
"Apache-2.0"
] | null | null | null | mllib/LogisticRegression.hpp | Christina-hshi/Boosting-with-Husky | 1744f0c90567a969d3e50d19f27f358f5865d2f6 | [
"Apache-2.0"
] | null | null | null | /*
Edit by Christina
*/
#pragma once
#include <limits>
#include "mllib/Utility.hpp"
#include "mllib/Instances.hpp"
#include "lib/aggregator_factory.hpp"
#include "mllib/Classifier.hpp"
namespace husky{
namespace mllib{
/*
MODE
GLOBAL: global training
LOCAL: trainin... | 45.817204 | 273 | 0.574513 | Christina-hshi |
9b494df3b5e60407052fe5b8a93ae58a3c4bab6a | 565 | hpp | C++ | include/MemeCore/TestRequest.hpp | Gurman8r/CppSandbox | a0f1cf0ade69ecaba4d167c0611a620914155e53 | [
"MIT"
] | null | null | null | include/MemeCore/TestRequest.hpp | Gurman8r/CppSandbox | a0f1cf0ade69ecaba4d167c0611a620914155e53 | [
"MIT"
] | null | null | null | include/MemeCore/TestRequest.hpp | Gurman8r/CppSandbox | a0f1cf0ade69ecaba4d167c0611a620914155e53 | [
"MIT"
] | null | null | null | #ifndef _ML_REQUEST_HPP_
#define _ML_REQUEST_HPP_
#include <MemeCore/IRequest.hpp>
namespace ml
{
/* * * * * * * * * * * * * * * * * * * * */
class ML_CORE_API TestRequest
: public IRequest
{
public:
using LogFunc = void(*)(const ml::String &);
public:
TestRequest();
~TestRequest();
public:
void se... | 15.694444 | 46 | 0.59469 | Gurman8r |
9b52892eac05dc229e55bcbb9214c1db73817838 | 9,115 | hpp | C++ | libraries/protocol/include/scorum/protocol/betting/market.hpp | scorum/scorum | 1da00651f2fa14bcf8292da34e1cbee06250ae78 | [
"MIT"
] | 53 | 2017-10-28T22:10:35.000Z | 2022-02-18T02:20:48.000Z | libraries/protocol/include/scorum/protocol/betting/market.hpp | Scorum/Scorum | fb4aa0b0960119b97828865d7a5b4d0409af7876 | [
"MIT"
] | 38 | 2017-11-25T09:06:51.000Z | 2018-10-31T09:17:22.000Z | libraries/protocol/include/scorum/protocol/betting/market.hpp | Scorum/Scorum | fb4aa0b0960119b97828865d7a5b4d0409af7876 | [
"MIT"
] | 27 | 2018-01-08T19:43:35.000Z | 2022-01-14T10:50:42.000Z | #pragma once
#include <fc/static_variant.hpp>
#include <scorum/protocol/betting/wincase.hpp>
#include <scorum/protocol/betting/market_kind.hpp>
#include <scorum/protocol/config.hpp>
#include <boost/range/algorithm/transform.hpp>
namespace scorum {
namespace protocol {
template <market_kind kind, typename tag = void>... | 40.691964 | 111 | 0.635765 | scorum |
9b64fe04440fda5b7bfc633eaf03e32d5e2ea0a8 | 1,259 | cc | C++ | deps/steamworks_sdk/public/rail/sdk/base/rail_array_test.cc | jeffersQuan/greenworks | ab73a59574e4a15a1e97091334b384f6e84257eb | [
"MIT"
] | null | null | null | deps/steamworks_sdk/public/rail/sdk/base/rail_array_test.cc | jeffersQuan/greenworks | ab73a59574e4a15a1e97091334b384f6e84257eb | [
"MIT"
] | null | null | null | deps/steamworks_sdk/public/rail/sdk/base/rail_array_test.cc | jeffersQuan/greenworks | ab73a59574e4a15a1e97091334b384f6e84257eb | [
"MIT"
] | null | null | null | // Copyright (c) 2019, Entropy Game Global Limited.
// All rights reserved.
#include <stdint.h>
#include "rail/sdk/base/rail_array.h"
#include "thirdparty/gtest/gtest.h"
struct Item {
int32_t id;
int32_t value;
};
TEST(RailArray, size) {
rail::RailArray<struct Item> array;
EXPECT_EQ(0U, array.size())... | 22.890909 | 54 | 0.631454 | jeffersQuan |
9b6caf18dd8e10d0f32bb9507f848b8ed7329c4f | 1,552 | hpp | C++ | code/szen/inc/szen/System/SpriteBatch.hpp | Sonaza/scyori | a894a9c7bd45a68ea1b6ff14877cdbe47ddd39cf | [
"BSD-3-Clause"
] | null | null | null | code/szen/inc/szen/System/SpriteBatch.hpp | Sonaza/scyori | a894a9c7bd45a68ea1b6ff14877cdbe47ddd39cf | [
"BSD-3-Clause"
] | null | null | null | code/szen/inc/szen/System/SpriteBatch.hpp | Sonaza/scyori | a894a9c7bd45a68ea1b6ff14877cdbe47ddd39cf | [
"BSD-3-Clause"
] | null | null | null | #ifndef SZEN_SPRITEBATCH_HPP
#define SZEN_SPRITEBATCH_HPP
#include <SFML/Graphics.hpp>
#include <functional>
#include <map>
#include <vector>
#include <thor/Particles.hpp>
namespace sz
{
class TextureAsset;
class ShaderAsset;
struct BatchData
{
BatchData() : texture(NULL), shader(NULL), particles(NULL) {}
... | 21.555556 | 137 | 0.717784 | Sonaza |
9b724925d691a7781cd8a990a5556961f5e913fb | 37,941 | cpp | C++ | src/Parser.cpp | MichaelMCE/LCDMisc | 1d2a913d62fd4d940ad95b5f8463a5f06e683427 | [
"CC-BY-4.0"
] | null | null | null | src/Parser.cpp | MichaelMCE/LCDMisc | 1d2a913d62fd4d940ad95b5f8463a5f06e683427 | [
"CC-BY-4.0"
] | null | null | null | src/Parser.cpp | MichaelMCE/LCDMisc | 1d2a913d62fd4d940ad95b5f8463a5f06e683427 | [
"CC-BY-4.0"
] | null | null | null | #include "Parser.h"
#include "Tokenizer.h"
#include "malloc.h"
#include "config.h"
//#include <stdio.h>
//#include "string.h"
#define REDUCE 0x20000000
#define SHIFT 0x40000000
#define ACCEPT 0x60000000
#define ACTION_MASK 0x60000000
struct Rule {
ScriptTokenType result;
NodeType nodeType;
unsigned char numTerms:... | 49.791339 | 213 | 0.760048 | MichaelMCE |
9b7950992e4d849dbac86ca9d939085a949e337a | 19,891 | cpp | C++ | cplus/libcfint/CFIntSubProjectEditObj.cpp | msobkow/cfint_2_13 | 63ff9dfc85647066d0c8d61469ada572362e2b48 | [
"Apache-2.0"
] | null | null | null | cplus/libcfint/CFIntSubProjectEditObj.cpp | msobkow/cfint_2_13 | 63ff9dfc85647066d0c8d61469ada572362e2b48 | [
"Apache-2.0"
] | null | null | null | cplus/libcfint/CFIntSubProjectEditObj.cpp | msobkow/cfint_2_13 | 63ff9dfc85647066d0c8d61469ada572362e2b48 | [
"Apache-2.0"
] | null | null | null | // Description: C++18 edit object instance implementation for CFInt SubProject.
/*
* org.msscf.msscf.CFInt
*
* Copyright (c) 2020 Mark Stephen Sobkow
*
* MSS Code Factory CFInt 2.13 Internet Essentials
*
* Copyright 2020-2021 Mark Stephen Sobkow
*
* This file is part of MSS Code Factory.
*
* MSS Code ... | 34.413495 | 181 | 0.727062 | msobkow |
f926c57c62e11c0191895d80560b45d9e36323fa | 19,255 | cpp | C++ | kernel/Scheduler.cpp | SmkViper/CranberryOS | ef4823aa526cf9e2b1ab05f01c87528a8bfff5c6 | [
"MIT"
] | null | null | null | kernel/Scheduler.cpp | SmkViper/CranberryOS | ef4823aa526cf9e2b1ab05f01c87528a8bfff5c6 | [
"MIT"
] | null | null | null | kernel/Scheduler.cpp | SmkViper/CranberryOS | ef4823aa526cf9e2b1ab05f01c87528a8bfff5c6 | [
"MIT"
] | null | null | null | #include "Scheduler.h"
#include <cstring>
#include <new>
#include "ARM/SchedulerDefines.h"
#include "IRQ.h"
#include "MemoryManager.h"
#include "Timer.h"
// How the scheduler currently works:
//
// CopyProcess creates a new memory page and puts the task struct at the bottom of the page, with the stack pointer
// poin... | 36.746183 | 126 | 0.513944 | SmkViper |
f935d5845c9b02a9c2aca16f33c9703cce725ceb | 1,475 | cpp | C++ | Deprecated/Debug/Debug.cpp | Theundeadwarrior/Casiope | f21b53b8e51adb9b341269471443b9dc0f61e9d8 | [
"MIT"
] | 3 | 2016-08-04T05:08:59.000Z | 2018-03-28T04:40:43.000Z | Deprecated/Debug/Debug.cpp | Theundeadwarrior/Casiope | f21b53b8e51adb9b341269471443b9dc0f61e9d8 | [
"MIT"
] | 6 | 2016-08-05T17:57:51.000Z | 2018-03-28T04:41:09.000Z | Deprecated/Debug/Debug.cpp | Theundeadwarrior/Casiope | f21b53b8e51adb9b341269471443b9dc0f61e9d8 | [
"MIT"
] | 1 | 2016-08-16T05:40:59.000Z | 2016-08-16T05:40:59.000Z | #include "Debug.h"
#include <assert.h>
#include <stdio.h>
#include <stdarg.h>
#include <string>
#include <Windows.h>
#include <iostream>
namespace Atum
{
namespace Utilities
{
void OutputTrace(char* text, ...)
{
char buffer[256];
va_list args;
va_start (args, text);
vsprintf_s (buffer, text, args);
... | 22.014925 | 97 | 0.660339 | Theundeadwarrior |
f93cbce816eabe0acb98a508a6479f13f027ed1c | 2,930 | cpp | C++ | Rasterizer/src/Light.cpp | litelawliet/ISARTRasterizer | 329ed70ea830cfff286c01d8efa5e726276f1fcd | [
"MIT"
] | 1 | 2020-03-23T14:36:02.000Z | 2020-03-23T14:36:02.000Z | Rasterizer/src/Light.cpp | litelawliet/ISARTRasterizer | 329ed70ea830cfff286c01d8efa5e726276f1fcd | [
"MIT"
] | null | null | null | Rasterizer/src/Light.cpp | litelawliet/ISARTRasterizer | 329ed70ea830cfff286c01d8efa5e726276f1fcd | [
"MIT"
] | null | null | null | #include "Light.h"
#include "Color.h"
#include "Vertex.h"
#include "Maths/Vec4.h"
#include <iostream>
#include <algorithm>
using namespace Maths::Vector;
//ADD LIGHTING HERE EVENTUALLY
Light::Light(const Maths::Vector::Vec3 p_position, const float p_ambient, const float p_diffuse, const float p_specular)
: m_positi... | 30.206186 | 145 | 0.757679 | litelawliet |
f946696a7d0623b6cb4cc3138e4b97679ef3ab6d | 8,891 | hpp | C++ | test/gaussian_filter/gaussian_filter_linear_vs_x_test_suite.hpp | aeolusbot-tommyliu/fl | a50d0c9620a8f86e0cd14a5e22ee0f022d00bd02 | [
"MIT"
] | 17 | 2015-07-03T06:53:05.000Z | 2021-05-15T20:55:12.000Z | test/gaussian_filter/gaussian_filter_linear_vs_x_test_suite.hpp | aeolusbot-tommyliu/fl | a50d0c9620a8f86e0cd14a5e22ee0f022d00bd02 | [
"MIT"
] | 3 | 2015-02-20T12:48:17.000Z | 2019-12-18T08:45:13.000Z | test/gaussian_filter/gaussian_filter_linear_vs_x_test_suite.hpp | aeolusbot-tommyliu/fl | a50d0c9620a8f86e0cd14a5e22ee0f022d00bd02 | [
"MIT"
] | 15 | 2015-02-20T11:34:14.000Z | 2021-05-15T20:55:13.000Z | /*
* This is part of the fl library, a C++ Bayesian filtering library
* (https://github.com/filtering-library)
*
* Copyright (c) 2015 Max Planck Society,
* Autonomous Motion Department,
* Institute for Intelligent Systems
*
* This Source Code Form is subject to the terms of the MIT License (MIT).
... | 30.44863 | 91 | 0.614554 | aeolusbot-tommyliu |
f94e38df5799ef9f869a4654054e011cac6b46a3 | 13,307 | hpp | C++ | common/cxx/adstlog_cxx/include/adstlog_cxx/adstlog.hpp | csitarichie/someip_cyclone_dds_bridge | 2ccaaa6e2484a938b08562497431df61ab23769f | [
"MIT"
] | null | null | null | common/cxx/adstlog_cxx/include/adstlog_cxx/adstlog.hpp | csitarichie/someip_cyclone_dds_bridge | 2ccaaa6e2484a938b08562497431df61ab23769f | [
"MIT"
] | null | null | null | common/cxx/adstlog_cxx/include/adstlog_cxx/adstlog.hpp | csitarichie/someip_cyclone_dds_bridge | 2ccaaa6e2484a938b08562497431df61ab23769f | [
"MIT"
] | null | null | null | #pragma once
#include <memory>
#include <string>
#include <vector>
#include "adstlog_cxx/p7_trace_wrapper.hpp"
// clang-format off
// Actor module registers all of these channels
#define ADSTLOG_ACTOR_CH p7ActorCh_
#define ADSTLOG_MSG_TX_CH p7MsgTxCh_
#define ADSTLOG_MSG_RX_CH p7MsgRxCh_
#define ADSTLOG_GRPC_RX_... | 46.044983 | 116 | 0.690915 | csitarichie |
f952d5cc45ae8b814c1940f16c5fc9eda719b50a | 6,025 | cpp | C++ | src/SearchRange.cpp | emweb/aga | bd7ad699e901168fe1658bea7c3c5d53fa5938e5 | [
"OML",
"Naumen",
"Condor-1.1",
"MS-PL"
] | 13 | 2017-10-12T10:10:55.000Z | 2020-11-12T08:28:43.000Z | src/SearchRange.cpp | emweb/aga | bd7ad699e901168fe1658bea7c3c5d53fa5938e5 | [
"OML",
"Naumen",
"Condor-1.1",
"MS-PL"
] | null | null | null | src/SearchRange.cpp | emweb/aga | bd7ad699e901168fe1658bea7c3c5d53fa5938e5 | [
"OML",
"Naumen",
"Condor-1.1",
"MS-PL"
] | 6 | 2018-09-13T04:49:10.000Z | 2020-11-12T08:28:45.000Z | #include "SearchRange.h"
#include "Cigar.h"
SearchRangeItem::SearchRangeItem(Type aType, int aStartColumn, int anEndColumn,
int aStartRow, int anEndRow)
: type(aType),
startRow(aStartRow),
endRow(anEndRow),
startColumn(aStartColumn),
endColumn(anEndColumn)
{ }
std::ostream& operator<<(std::ostr... | 23.720472 | 99 | 0.618257 | emweb |
f953fc44bb7d10293222e69195cbc3c3cdbb7bee | 13,193 | cpp | C++ | samples/examples/imkRecognizeObject-file.cpp | v4r-tuwien/v4r | ff3fbd6d2b298b83268ba4737868bab258262a40 | [
"BSD-1-Clause",
"BSD-2-Clause"
] | 2 | 2021-02-22T11:36:33.000Z | 2021-07-20T11:31:08.000Z | samples/examples/imkRecognizeObject-file.cpp | v4r-tuwien/v4r | ff3fbd6d2b298b83268ba4737868bab258262a40 | [
"BSD-1-Clause",
"BSD-2-Clause"
] | null | null | null | samples/examples/imkRecognizeObject-file.cpp | v4r-tuwien/v4r | ff3fbd6d2b298b83268ba4737868bab258262a40 | [
"BSD-1-Clause",
"BSD-2-Clause"
] | 3 | 2018-10-19T10:39:23.000Z | 2021-04-07T13:39:03.000Z | /******************************************************************************
* Copyright (c) 2017 Johann Prankl
*
* 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, ... | 35.560647 | 119 | 0.612901 | v4r-tuwien |
f9567c21e5efba5d8f92be3281a01b12c87beb69 | 485 | cpp | C++ | src/tema fisa for/ex 4 e/main.cpp | andrew-miroiu/Cpp-projects | d0917a7f78aef929c25dc9b019e910951c2050ac | [
"MIT"
] | 2 | 2021-11-27T18:29:32.000Z | 2021-11-28T14:35:47.000Z | src/tema fisa for/ex 4 e/main.cpp | andrew-miroiu/Cpp-projects | d0917a7f78aef929c25dc9b019e910951c2050ac | [
"MIT"
] | null | null | null | src/tema fisa for/ex 4 e/main.cpp | andrew-miroiu/Cpp-projects | d0917a7f78aef929c25dc9b019e910951c2050ac | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int a,b,x,i=0,cx;
cout<<"a= ";
cin>>a;
cout<<"b= ";
cin>>b;
x=a;
cx=x;
for(x; x<=b; x++)
{
cx=x;
while(cx!=0)
{
if(cx%10==0)
{
i=i+1;
cx=0;
... | 13.472222 | 52 | 0.31134 | andrew-miroiu |
f959c903e7d50b358684b12ef918d3179555705b | 4,509 | cpp | C++ | unit_tests/main.cpp | obhi-d/hfn | 692203a25a13214ba8a0e2feddb8d6e78275c860 | [
"MIT"
] | null | null | null | unit_tests/main.cpp | obhi-d/hfn | 692203a25a13214ba8a0e2feddb8d6e78275c860 | [
"MIT"
] | null | null | null | unit_tests/main.cpp | obhi-d/hfn | 692203a25a13214ba8a0e2feddb8d6e78275c860 | [
"MIT"
] | null | null | null | #define CATCH_CONFIG_MAIN
#include "hfn/config.hpp"
#include "hfn/cxstring.hpp"
#include "hfn/digest.hpp"
#include "hfn/fnv1a.hpp"
#include "hfn/murmur3.hpp"
#include "hfn/rhid.hpp"
#include "hfn/type_hash.hpp"
#include "hfn/wyhash.hpp"
#include "hfn/xxhash.hpp"
#include <catch2/catch.hpp>
#include <iostream>
class ty... | 32.673913 | 92 | 0.664005 | obhi-d |
f959e804126995f18a040d22d82f3909666733f0 | 511 | cpp | C++ | Util/WebUrl.cpp | SoftlySpoken/gStore | b2cf71288ccef376640000965aff7c430101446a | [
"BSD-3-Clause"
] | 150 | 2015-01-14T15:06:38.000Z | 2018-08-28T09:34:17.000Z | Util/WebUrl.cpp | SoftlySpoken/gStore | b2cf71288ccef376640000965aff7c430101446a | [
"BSD-3-Clause"
] | 28 | 2015-05-11T02:45:39.000Z | 2018-08-24T11:43:17.000Z | Util/WebUrl.cpp | SoftlySpoken/gStore | b2cf71288ccef376640000965aff7c430101446a | [
"BSD-3-Clause"
] | 91 | 2015-05-04T09:52:41.000Z | 2018-08-18T13:02:15.000Z | #include "WebUrl.h"
using namespace std;
WebUrl::WebUrl() {}
WebUrl::~WebUrl() {}
string WebUrl::CutParam(string url, string param)
{
int index = url.find("?" + param + "=");
if (index < 0)
{
index = url.find("&" + param + "=");
}
if (index < 0)
return string();
int index2 = index + 1 + (param + "=").lengt... | 18.25 | 49 | 0.60274 | SoftlySpoken |
f9601f472091e6a18894fa6522a21e9160e64b8c | 4,786 | cpp | C++ | PageRepository/Source/Page.cpp | DiplodocusDB/PhysicalStorage | 9b110471d14300873a9067b25b0825727c178549 | [
"MIT"
] | null | null | null | PageRepository/Source/Page.cpp | DiplodocusDB/PhysicalStorage | 9b110471d14300873a9067b25b0825727c178549 | [
"MIT"
] | 19 | 2018-01-20T14:38:20.000Z | 2018-01-26T22:58:52.000Z | PageRepository/Source/Page.cpp | DiplodocusDB/PhysicalStorage | 9b110471d14300873a9067b25b0825727c178549 | [
"MIT"
] | null | null | null | /*
Copyright (c) 2018-2019 Xavier Leclercq
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, me... | 29.361963 | 117 | 0.649603 | DiplodocusDB |
f96c117a5b81a2b6b456ee21a20b141634852997 | 8,129 | cpp | C++ | d20/a.cpp | webdeveloperukraine/adventofcode2020 | 4d4f36437da0fd4889f0fcbe28cad8fecb6f6f34 | [
"MIT"
] | null | null | null | d20/a.cpp | webdeveloperukraine/adventofcode2020 | 4d4f36437da0fd4889f0fcbe28cad8fecb6f6f34 | [
"MIT"
] | null | null | null | d20/a.cpp | webdeveloperukraine/adventofcode2020 | 4d4f36437da0fd4889f0fcbe28cad8fecb6f6f34 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#include "../helpers/string_helpers.cpp"
typedef long long int ll;
struct Tile{
ll id;
vector<string> pattern;
int width, height;
Tile(){ throw runtime_error("No Way!"); }
Tile(ll id, vector<string> pattern) : id(id), pattern(pattern){
height = pattern.size()... | 17.905286 | 85 | 0.558986 | webdeveloperukraine |
f96c326286a20d184db4bb728848da1abf9f28fe | 2,663 | cpp | C++ | source/line.cpp | Zylon-D-Lite/drawingPrototype | 60caa86e72ad7fd36aed15679b003747c69e81c6 | [
"MIT"
] | null | null | null | source/line.cpp | Zylon-D-Lite/drawingPrototype | 60caa86e72ad7fd36aed15679b003747c69e81c6 | [
"MIT"
] | null | null | null | source/line.cpp | Zylon-D-Lite/drawingPrototype | 60caa86e72ad7fd36aed15679b003747c69e81c6 | [
"MIT"
] | null | null | null | #include "./line.hpp"
const png::rgba_pixel Line::WHITE_PIXEL = png::rgba_pixel(255, 255, 255, 255);
const png::rgba_pixel Line::BLACK_PIXEL = png::rgba_pixel(0, 0, 0, 255);
const png::rgba_pixel Line::TRANSPARENT_PIXEL = png::rgba_pixel(0, 0, 0, 0);
const png::rgba_pixel Line::RED_PIXEL = png::rgba_pixel(255, 0, 0, 2... | 39.161765 | 86 | 0.607585 | Zylon-D-Lite |
f96d0aa3ae182e22ac149151167544afb5674954 | 15,323 | cpp | C++ | ppm_image.cpp | gulesh/pixmap-ops | 573afdd349d7e4913d7dbc60f0b9d3edd33b39ca | [
"MIT"
] | null | null | null | ppm_image.cpp | gulesh/pixmap-ops | 573afdd349d7e4913d7dbc60f0b9d3edd33b39ca | [
"MIT"
] | null | null | null | ppm_image.cpp | gulesh/pixmap-ops | 573afdd349d7e4913d7dbc60f0b9d3edd33b39ca | [
"MIT"
] | null | null | null | #include "ppm_image.h"
#include <string>
#include <fstream>
#include <iostream>
#include <cmath>
#include <algorithm>
using namespace agl;
using namespace std;
ppm_image::ppm_image()
{
imageWidth = 0;
imageHeight = 0;
pixelArray= nullptr;
}
ppm_image::ppm_image(int w, int h)
{
imageWidth = w;
imag... | 26.835377 | 125 | 0.559812 | gulesh |
f96f63c2c2a06f5743891f2fd243ece7b1615cb4 | 608 | cpp | C++ | server/src/extension_queue/queue.cpp | valmat/queueServer | 6626e99cd4fccca6f2ae17b8cc33ef151b651b5d | [
"BSD-3-Clause"
] | 4 | 2017-09-25T12:23:22.000Z | 2019-02-19T14:15:46.000Z | server/src/extension_queue/queue.cpp | valmat/queueServer | 6626e99cd4fccca6f2ae17b8cc33ef151b651b5d | [
"BSD-3-Clause"
] | 1 | 2019-02-25T17:53:32.000Z | 2019-02-27T06:57:35.000Z | server/src/extension_queue/queue.cpp | valmat/queueServer | 6626e99cd4fccca6f2ae17b8cc33ef151b651b5d | [
"BSD-3-Clause"
] | 1 | 2019-02-19T13:42:29.000Z | 2019-02-19T13:42:29.000Z | /**
* RocksServer plugin
* https://github.com/valmat/queueServer
*/
#include "../include.h"
#include "RequestMoveFirstPref.h"
#include "RequestFirstPref.h"
#include "RequestGetIncr.h"
using namespace RocksServer;
/*
* Create plugin
*
* @param extension object of Extension
* @param rdb wrapped ob... | 20.266667 | 65 | 0.641447 | valmat |
f9711d8fdecf29560f186cbd4c4f86ee0342ff38 | 3,739 | cpp | C++ | Core-src/AnalyzeWindow.cpp | HaikuArchives/BeAE | b57860a81266dd465655ec98b7524406bfde27aa | [
"BSD-3-Clause"
] | 6 | 2015-03-04T19:41:12.000Z | 2022-03-27T09:44:25.000Z | Core-src/AnalyzeWindow.cpp | HaikuArchives/BeAE | b57860a81266dd465655ec98b7524406bfde27aa | [
"BSD-3-Clause"
] | 20 | 2015-03-03T21:02:20.000Z | 2021-08-02T13:26:59.000Z | Core-src/AnalyzeWindow.cpp | HaikuArchives/BeAE | b57860a81266dd465655ec98b7524406bfde27aa | [
"BSD-3-Clause"
] | 8 | 2015-02-23T19:10:32.000Z | 2020-10-26T08:03:00.000Z | /*
Copyright (c) 2003, Xentronix
Author: Frans van Nispen (frans@xentronix.com)
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 ... | 30.647541 | 101 | 0.61487 | HaikuArchives |
f972af1ee36532247bf190e9808e6e5d4a624d8e | 708 | hpp | C++ | include/RadonFramework/IO/ConsoleUI/With.hpp | tak2004/RF_Console | b2a1114b4e948281c64b085eb407926704ecc7cb | [
"Apache-2.0"
] | null | null | null | include/RadonFramework/IO/ConsoleUI/With.hpp | tak2004/RF_Console | b2a1114b4e948281c64b085eb407926704ecc7cb | [
"Apache-2.0"
] | null | null | null | include/RadonFramework/IO/ConsoleUI/With.hpp | tak2004/RF_Console | b2a1114b4e948281c64b085eb407926704ecc7cb | [
"Apache-2.0"
] | null | null | null | #pragma once
#include <RadonFramework/IO/ConsoleUI/Component.hpp>
#include <RadonFramework/IO/ConsoleUI/ComponentOperator.hpp>
#include <RadonFramework/IO/ConsoleUI/State.hpp>
namespace RadonFramework::IO::ConsoleUI
{
template <class T>
struct With : public ComponentOperator
{
template <int N>
With(char const (&... | 21.454545 | 60 | 0.710452 | tak2004 |
f97a4336ab04e9446d773096c45ca5d954126da6 | 1,205 | cpp | C++ | Challenge-2021-04/08_letter_combinations_of_a_phone_number.cpp | qiufengyu/LetsCode | 196fae0bf5c78ee20d05798a9439596e702fdb24 | [
"MIT"
] | null | null | null | Challenge-2021-04/08_letter_combinations_of_a_phone_number.cpp | qiufengyu/LetsCode | 196fae0bf5c78ee20d05798a9439596e702fdb24 | [
"MIT"
] | null | null | null | Challenge-2021-04/08_letter_combinations_of_a_phone_number.cpp | qiufengyu/LetsCode | 196fae0bf5c78ee20d05798a9439596e702fdb24 | [
"MIT"
] | null | null | null | #include "../header.h"
class Solution {
public:
vector<string> letterCombinations(string digits) {
if (digits.length() == 0) {
return {};
}
unordered_map<char, string> m;
m['2'] = "abc";
m['3'] = "def";
m['4'] = "ghi";
m['5'] = "jkl";
m['6']... | 25.104167 | 121 | 0.509544 | qiufengyu |
f97d1a9270894f9dc0a87e4b98415bcd3e15cd13 | 2,071 | hpp | C++ | Libs/SceneGraph/PlantNode.hpp | dns/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 3 | 2020-04-11T13:00:31.000Z | 2020-12-07T03:19:10.000Z | Libs/SceneGraph/PlantNode.hpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | null | null | null | Libs/SceneGraph/PlantNode.hpp | DNS/Cafu | 77b34014cc7493d6015db7d674439fe8c23f6493 | [
"MIT"
] | 1 | 2020-04-11T13:00:04.000Z | 2020-04-11T13:00:04.000Z | /*
Cafu Engine, http://www.cafu.de/
Copyright (c) Carsten Fuchs and other contributors.
This project is licensed under the terms of the MIT license.
*/
#ifndef CAFU_TREE_NODE_HPP_INCLUDED
#define CAFU_TREE_NODE_HPP_INCLUDED
#include "Node.hpp"
#include "Plants/Tree.hpp"
struct PlantDescriptionT;
class PlantDescrMan... | 30.455882 | 146 | 0.633028 | dns |
f97f1b80cd830250828379c88056dfae3aa0c8f6 | 3,247 | hpp | C++ | modules/engine/include/randar/Render/Geometry.hpp | litty-studios/randar | 95daae57b1ec7d87194cdbcf6e3946b4ed9fc79b | [
"MIT"
] | 1 | 2016-11-12T02:43:29.000Z | 2016-11-12T02:43:29.000Z | modules/engine/include/randar/Render/Geometry.hpp | litty-studios/randar | 95daae57b1ec7d87194cdbcf6e3946b4ed9fc79b | [
"MIT"
] | null | null | null | modules/engine/include/randar/Render/Geometry.hpp | litty-studios/randar | 95daae57b1ec7d87194cdbcf6e3946b4ed9fc79b | [
"MIT"
] | null | null | null | #ifndef RANDAR_RENDER_GEOMETRY_HPP
#define RANDAR_RENDER_GEOMETRY_HPP
#include <randar/Render/Primitive.hpp>
#include <randar/Render/ShaderProgram.hpp>
#include <randar/Render/VertexBuffer.hpp>
namespace randar
{
class Geometry : public GraphicsContextResource
{
public:
VertexBuffer vertices;
... | 25.769841 | 80 | 0.558978 | litty-studios |
f97f4fbe581321f5293e8955e8f7d600fd259aba | 13,240 | cpp | C++ | dependencies/HDRTools/common/src/DisplayGammaAdjustHLG.cpp | rudals0215/AR-streaming-with-MPEG-DASH | 7c9f24a2eed7f756e51451670286a11351a6b877 | [
"MIT"
] | null | null | null | dependencies/HDRTools/common/src/DisplayGammaAdjustHLG.cpp | rudals0215/AR-streaming-with-MPEG-DASH | 7c9f24a2eed7f756e51451670286a11351a6b877 | [
"MIT"
] | null | null | null | dependencies/HDRTools/common/src/DisplayGammaAdjustHLG.cpp | rudals0215/AR-streaming-with-MPEG-DASH | 7c9f24a2eed7f756e51451670286a11351a6b877 | [
"MIT"
] | 1 | 2021-07-07T00:53:49.000Z | 2021-07-07T00:53:49.000Z | /* The copyright in this software is being made available under the BSD
* License, included below. This software may be subject to other third party
* and contributor rights, including patent rights, and no such rights are
* granted under this license.
*
* <OWNER> = British Broadcasting Corporation (BBC).
* <ORGA... | 43.84106 | 151 | 0.649245 | rudals0215 |
f98335835b564975be345d5087b058a382845d32 | 5,545 | cpp | C++ | src/TransitionHandler.cpp | MacaroniDamage/FabulousNeopixelFirmware | 4ebf638f9d053629dd2eb81039cc153755d55668 | [
"MIT"
] | 2 | 2021-06-05T15:26:29.000Z | 2021-06-05T23:50:09.000Z | src/TransitionHandler.cpp | MacaroniDamage/FabulousNeopixelFirmware | 4ebf638f9d053629dd2eb81039cc153755d55668 | [
"MIT"
] | null | null | null | src/TransitionHandler.cpp | MacaroniDamage/FabulousNeopixelFirmware | 4ebf638f9d053629dd2eb81039cc153755d55668 | [
"MIT"
] | null | null | null | /**
* @file TransitionHandler.cpp
* @author MacaroniDamage
* @brief Executes state machine that handel transitions to different
* stages
* @version 0.1
* @date 2020-12-18
*
*
*/
#include "TransitionHandler.h"
/** Configures the instace so that
* it triggers the wished state machine
**/
void Transiti... | 25.911215 | 87 | 0.70532 | MacaroniDamage |
f9847bb79e52b2a28bc39127617f9544416c7709 | 7,076 | cp | C++ | Win32/Sources/Application/SMTP_Queue/CSMTPView.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 12 | 2015-04-21T16:10:43.000Z | 2021-11-05T13:41:46.000Z | Win32/Sources/Application/SMTP_Queue/CSMTPView.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 2 | 2015-11-02T13:32:11.000Z | 2019-07-10T21:11:21.000Z | Win32/Sources/Application/SMTP_Queue/CSMTPView.cp | mulberry-mail/mulberry4-client | cdaae15c51dd759110b4fbdb2063d0e3d5202103 | [
"ECL-2.0",
"Apache-2.0"
] | 6 | 2015-01-12T08:49:12.000Z | 2021-03-27T09:11:10.000Z | /*
Copyright (c) 2007 Cyrus Daboo. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
... | 30.110638 | 172 | 0.71368 | mulberry-mail |
f988503b86a58fce537ef8d81853b4f82278da5b | 111,478 | cpp | C++ | src/newsview.cpp | taviso/mpgravity | f6a2a7a02014b19047e44db76ae551bd689c16ac | [
"BSD-3-Clause"
] | 9 | 2020-04-01T04:15:22.000Z | 2021-09-26T21:03:47.000Z | src/newsview.cpp | taviso/mpgravity | f6a2a7a02014b19047e44db76ae551bd689c16ac | [
"BSD-3-Clause"
] | 17 | 2020-04-02T19:38:40.000Z | 2020-04-12T05:47:08.000Z | src/newsview.cpp | taviso/mpgravity | f6a2a7a02014b19047e44db76ae551bd689c16ac | [
"BSD-3-Clause"
] | null | null | null | /*****************************************************************************/
/* SOURCE CONTROL VERSIONS */
/*---------------------------------------------------------------------------*/
/* ... | 28.222278 | 152 | 0.61866 | taviso |
f98a0cdf5f2a3eee6a87ac19dbb2e18e2198ddcd | 1,283 | cpp | C++ | Tree/BalancedTree/BalancedTree.cpp | PrachieNaik/DSA | 083522bb3c8a0694adec1f2856d4d4cd0fb51722 | [
"MIT"
] | null | null | null | Tree/BalancedTree/BalancedTree.cpp | PrachieNaik/DSA | 083522bb3c8a0694adec1f2856d4d4cd0fb51722 | [
"MIT"
] | null | null | null | Tree/BalancedTree/BalancedTree.cpp | PrachieNaik/DSA | 083522bb3c8a0694adec1f2856d4d4cd0fb51722 | [
"MIT"
] | null | null | null | /*
Problem statement: Given a binary tree, find if it is height balanced or not. A tree is height balanced if difference between heights of left and right subtrees is
not more than one for all nodes of tree.
Constraints:
1<= N <= 10^4
Approach: To check if a tree is height-balanced, get the height of left and right... | 27.891304 | 163 | 0.681216 | PrachieNaik |
f98b56f403871a3056dd8284deee2b49b92ca23d | 4,718 | cpp | C++ | src/model_loading/model.cpp | clsrfish/learnogl | 3e1cc42a595dd12779268ba587ef68fa4991e1f5 | [
"Apache-2.0"
] | null | null | null | src/model_loading/model.cpp | clsrfish/learnogl | 3e1cc42a595dd12779268ba587ef68fa4991e1f5 | [
"Apache-2.0"
] | null | null | null | src/model_loading/model.cpp | clsrfish/learnogl | 3e1cc42a595dd12779268ba587ef68fa4991e1f5 | [
"Apache-2.0"
] | null | null | null | //
// model.cpp
//
// Created by Clsrfish on 08/10/2020
//
#include "./model.h"
#include "../gl/gl_utils.h"
model_loading::Model::Model(const std::string &modelPath)
{
loadModel(modelPath);
}
void model_loading::Model::Draw(const Shader &shader)
{
for (unsigned int i = 0; i < Meshes.size(); i++)
{
... | 31.453333 | 152 | 0.602798 | clsrfish |
f98fc6fe889504295cefaf5aa7436bc071f81e98 | 7,042 | hpp | C++ | src/Utilities/NMatrix/NLine.hpp | fcaillaud/SARAH | ca79c7d9449cf07eec9d5cc13293ec0c128defc1 | [
"MIT"
] | null | null | null | src/Utilities/NMatrix/NLine.hpp | fcaillaud/SARAH | ca79c7d9449cf07eec9d5cc13293ec0c128defc1 | [
"MIT"
] | null | null | null | src/Utilities/NMatrix/NLine.hpp | fcaillaud/SARAH | ca79c7d9449cf07eec9d5cc13293ec0c128defc1 | [
"MIT"
] | null | null | null | /**
* \file NLine.hpp
* \author fcaillaud
* \version 1.0
* \date 2 Avril 2014
* \brief Fichier décrivant la classe NLine.
* \details Classe utilisée pour représenter une ligne ou colonne de matrice (plus ou moins un vecteur).
* \todo Réfléchir à une meilleure approche pour toute la classe.
*/
#... | 24.883392 | 164 | 0.598268 | fcaillaud |
f9950c4c127eed8eb765a4f79dff18707a5a927e | 1,141 | cpp | C++ | libs/charconv/src/charconv/fcppt_string_to_utf8_file.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 2 | 2016-01-27T13:18:14.000Z | 2018-05-11T01:11:32.000Z | libs/charconv/src/charconv/fcppt_string_to_utf8_file.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | null | null | null | libs/charconv/src/charconv/fcppt_string_to_utf8_file.cpp | cpreh/spacegameengine | 313a1c34160b42a5135f8223ffaa3a31bc075a01 | [
"BSL-1.0"
] | 3 | 2018-05-11T01:11:34.000Z | 2021-04-24T19:47:45.000Z | // Copyright Carl Philipp Reh 2006 - 2019.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <sge/charconv/fcppt_string_to_utf8.hpp>
#include <sge/charconv/fcppt_string_to_utf8_file.h... | 31.694444 | 92 | 0.69851 | cpreh |
f9a02a599df97e56a3b57d258939f6fc32e01d64 | 610 | cpp | C++ | source/343.cpp | narikbi/LeetCode | 835215c21d1bd6820b20c253026bcb6f889ed3fc | [
"MIT"
] | 2 | 2017-02-28T11:39:13.000Z | 2019-12-07T17:23:20.000Z | source/343.cpp | narikbi/LeetCode | 835215c21d1bd6820b20c253026bcb6f889ed3fc | [
"MIT"
] | null | null | null | source/343.cpp | narikbi/LeetCode | 835215c21d1bd6820b20c253026bcb6f889ed3fc | [
"MIT"
] | null | null | null | //
// 343.cpp
// LeetCode
//
// Created by Narikbi on 23.02.17.
// Copyright © 2017 app.leetcode.kz. All rights reserved.
//
#include <stdio.h>
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <deque>
#include <queue>
#include <set>
#include <map>
#include <stack>
#include <cma... | 16.052632 | 66 | 0.539344 | narikbi |
f9a62c668e2250f899b7b3e209bda4e68f8183bc | 2,605 | cpp | C++ | droneArchitectureRvizInterfaceROSModule/src/source/swarmAgentInterface.cpp | MorS25/cvg_quadrotor_swarm | da75d02049163cf65fd7305bc46a16359a851c7c | [
"BSD-3-Clause"
] | null | null | null | droneArchitectureRvizInterfaceROSModule/src/source/swarmAgentInterface.cpp | MorS25/cvg_quadrotor_swarm | da75d02049163cf65fd7305bc46a16359a851c7c | [
"BSD-3-Clause"
] | null | null | null | droneArchitectureRvizInterfaceROSModule/src/source/swarmAgentInterface.cpp | MorS25/cvg_quadrotor_swarm | da75d02049163cf65fd7305bc46a16359a851c7c | [
"BSD-3-Clause"
] | null | null | null | #include "swarmAgentInterface.h"
#include "RvizInteractiveMarkerDisplay.h"
SwarmAgentInterface::SwarmAgentInterface(int idDrone_in)
{
idDrone = idDrone_in;
return;
}
SwarmAgentInterface::~SwarmAgentInterface()
{
return;
}
void SwarmAgentInterface::open(ros::NodeHandle &nIn)
{
n = nIn;
loc... | 30.290698 | 250 | 0.761996 | MorS25 |
f9a85337ac0427c6189842eb22ef8534aa49fb95 | 6,279 | cpp | C++ | MakeBuild/MakeBuild/CMakeFile.cpp | mooming/make_builder | e5aa68d4c922b3343cb032c0201126b9ed85ae37 | [
"MIT"
] | 1 | 2018-09-29T01:36:18.000Z | 2018-09-29T01:36:18.000Z | MakeBuild/MakeBuild/CMakeFile.cpp | mooming/make_builder | e5aa68d4c922b3343cb032c0201126b9ed85ae37 | [
"MIT"
] | null | null | null | MakeBuild/MakeBuild/CMakeFile.cpp | mooming/make_builder | e5aa68d4c922b3343cb032c0201126b9ed85ae37 | [
"MIT"
] | null | null | null | //
// CMakeFile.cpp
// mbuild
//
// Created by mooming on 2016. 8. 15..
//
//
#include "CMakeFile.h"
#include "StringUtil.h"
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
using namespace std;
using namespace Builder;
namespace
{
void AddFrameworks(ostream& os, string projName, cons... | 23.965649 | 93 | 0.563306 | mooming |
e2fffc29f48d61bbb1fd0392d17ef7142a1b37af | 3,606 | hh | C++ | include/maxscale/response_distribution.hh | sdrik/MaxScale | c6c318b36dde0a25f22ac3fd59c9d33d774fe37a | [
"BSD-3-Clause"
] | null | null | null | include/maxscale/response_distribution.hh | sdrik/MaxScale | c6c318b36dde0a25f22ac3fd59c9d33d774fe37a | [
"BSD-3-Clause"
] | null | null | null | include/maxscale/response_distribution.hh | sdrik/MaxScale | c6c318b36dde0a25f22ac3fd59c9d33d774fe37a | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2021 MariaDB Corporation Ab
*
* Use of this software is governed by the Business Source License included
* in the LICENSE.TXT file and at www.mariadb.com/bsl11.
*
* Change Date: 2025-12-13
*
* On the date above, in accordance with the Business Source License, use
* of this software will be g... | 31.356522 | 95 | 0.602329 | sdrik |
390abeb5824edd87d529070e13d838c0c2467c31 | 17,059 | cpp | C++ | engine/src/ph/util/GltfLoader.cpp | PetorSFZ/PhantasyEngine | befe8e9499b7fd93d8765721b6841337a57b0dd6 | [
"Zlib"
] | null | null | null | engine/src/ph/util/GltfLoader.cpp | PetorSFZ/PhantasyEngine | befe8e9499b7fd93d8765721b6841337a57b0dd6 | [
"Zlib"
] | null | null | null | engine/src/ph/util/GltfLoader.cpp | PetorSFZ/PhantasyEngine | befe8e9499b7fd93d8765721b6841337a57b0dd6 | [
"Zlib"
] | null | null | null | // Copyright (c) Peter Hillerström (skipifzero.com, peter@hstroem.se)
//
// 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.
//
// Permission is granted to anyone to use this software for ... | 33.318359 | 101 | 0.712762 | PetorSFZ |
390ff228cd4db2d07d9236a1271bdac3a64c1706 | 4,848 | cpp | C++ | src/loaders/PE.cpp | LucasDblt/QBDL | fc873087740f10ac56c023cad8b1c8ca42aa8d28 | [
"Apache-2.0"
] | 52 | 2021-05-21T20:17:13.000Z | 2022-03-26T11:08:44.000Z | src/loaders/PE.cpp | LucasDblt/QBDL | fc873087740f10ac56c023cad8b1c8ca42aa8d28 | [
"Apache-2.0"
] | 2 | 2021-06-06T09:32:09.000Z | 2021-09-03T10:25:19.000Z | src/loaders/PE.cpp | LucasDblt/QBDL | fc873087740f10ac56c023cad8b1c8ca42aa8d28 | [
"Apache-2.0"
] | 7 | 2021-05-22T02:17:20.000Z | 2022-01-25T16:21:07.000Z | #include "logging.hpp"
#include <LIEF/PE.hpp>
#include <QBDL/Engine.hpp>
#include <QBDL/arch.hpp>
#include <QBDL/loaders/PE.hpp>
#include <QBDL/utils.hpp>
using namespace LIEF::PE;
namespace QBDL::Loaders {
std::unique_ptr<PE> PE::from_file(const char *path, TargetSystem &engines,
B... | 31.277419 | 80 | 0.607673 | LucasDblt |
391258a61b2f516878fedbf96255bda38df9868f | 3,927 | cpp | C++ | qt-4.8.4/src/gui/kernel/qdesktopwidget_gix.cpp | easion/qt_for_gix | f5b41cc1a048fb8ebecab7f9a1646e1e3b2accb8 | [
"Apache-2.0"
] | null | null | null | qt-4.8.4/src/gui/kernel/qdesktopwidget_gix.cpp | easion/qt_for_gix | f5b41cc1a048fb8ebecab7f9a1646e1e3b2accb8 | [
"Apache-2.0"
] | null | null | null | qt-4.8.4/src/gui/kernel/qdesktopwidget_gix.cpp | easion/qt_for_gix | f5b41cc1a048fb8ebecab7f9a1646e1e3b2accb8 | [
"Apache-2.0"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** Contact: Qt Software Information (qt-info@nokia.com)
**
** Copyright (C) 2011 www.hanxuantech.com. The Gix parts.
** Written by Easion <easion@hanxuantech.com>
**
**... | 29.30597 | 77 | 0.718615 | easion |
3912b1cc54d2b24986c1b54851f0b0eb1ce44980 | 637 | cpp | C++ | Problems/codility/CyclicRotation/main.cpp | grand87/timus | 8edcae276ab74b68fff18da3722460f492534a8a | [
"MIT"
] | null | null | null | Problems/codility/CyclicRotation/main.cpp | grand87/timus | 8edcae276ab74b68fff18da3722460f492534a8a | [
"MIT"
] | 1 | 2019-05-09T19:17:00.000Z | 2019-05-09T19:17:00.000Z | Problems/codility/CyclicRotation/main.cpp | grand87/timus | 8edcae276ab74b68fff18da3722460f492534a8a | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
vector<int> solution(vector<int> &A, int K) {
const int size = A.size();
if(size != 0 && K % size != 0) {
vector<int> result(size);
for (int i = 0; i < size; i++) {
result[(i + K) % size] = A[i];
}
return re... | 18.735294 | 45 | 0.467818 | grand87 |
3915750d1eb18c97faa2696719710f45cb2ef94d | 916 | cpp | C++ | Codeforces/731A - Night at the Museum.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | Codeforces/731A - Night at the Museum.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | Codeforces/731A - Night at the Museum.cpp | naimulcsx/online-judge-solutions | 0b80f81bcfb05a7cfe7fc925304c70b19eff1d6f | [
"MIT"
] | null | null | null | #include <iostream>
#include <cctype>
#include <cmath>
#include <string>
using namespace std;
int get_minimum_distance(char src, char dest) {
int distance;
src = tolower(src);
dest = tolower(dest);
// if the distance between the pointed charecter and the destination charecter is greater than 13, then... | 26.171429 | 154 | 0.644105 | naimulcsx |
39186a85e96ca0f5d099d05e8241ea93483e058a | 5,307 | cpp | C++ | src/gui/pen.cpp | strandfield/yasl | d109eb3166184febfe48d1a2d1c96683c4a813f7 | [
"MIT"
] | 1 | 2020-12-28T01:41:35.000Z | 2020-12-28T01:41:35.000Z | src/gui/pen.cpp | strandfield/yasl | d109eb3166184febfe48d1a2d1c96683c4a813f7 | [
"MIT"
] | null | null | null | src/gui/pen.cpp | strandfield/yasl | d109eb3166184febfe48d1a2d1c96683c4a813f7 | [
"MIT"
] | null | null | null | // Copyright (C) 2018 Vincent Chambrin
// This file is part of the Yasl project
// For conditions of distribution and use, see copyright notice in LICENSE
#include "yasl/gui/pen.h"
#include "yasl/common/binding/class.h"
#include "yasl/common/binding/default_arguments.h"
#include "yasl/common/binding/namespace.h"
#inc... | 43.5 | 130 | 0.689278 | strandfield |
392427e59bed278479a35b3e6ff5951f21cb75ed | 2,802 | cpp | C++ | unit_tests/test_playable_moves.cpp | julienlopez/Aronda | 8fb6625bc037736dc2926f97f46a59441d7dc221 | [
"MIT"
] | null | null | null | unit_tests/test_playable_moves.cpp | julienlopez/Aronda | 8fb6625bc037736dc2926f97f46a59441d7dc221 | [
"MIT"
] | 4 | 2018-02-21T15:38:56.000Z | 2019-04-03T07:57:22.000Z | unit_tests/test_playable_moves.cpp | julienlopez/Aronda | 8fb6625bc037736dc2926f97f46a59441d7dc221 | [
"MIT"
] | null | null | null | #include <catch.hpp>
#include "game.hpp"
#include <numeric_range.hpp>
#include <boost/optional/optional_io.hpp>
using Aronda::Board;
using Aronda::Game;
using Aronda::InvalidMove;
using Aronda::Square;
using Aronda::SquareState;
template <class T> bool contains(const std::vector<T>& container, const T& value)
{
... | 32.206897 | 100 | 0.557459 | julienlopez |
3927538b461a290b31713b17dcd1b427bbf1a297 | 736 | cpp | C++ | tests/test18.cpp | varnie/giraffe | 0448536cdca5dad66110aa64fdf24688b2a0050a | [
"MIT"
] | null | null | null | tests/test18.cpp | varnie/giraffe | 0448536cdca5dad66110aa64fdf24688b2a0050a | [
"MIT"
] | 1 | 2020-06-16T14:25:17.000Z | 2020-06-16T14:25:17.000Z | tests/test18.cpp | varnie/giraffe | 0448536cdca5dad66110aa64fdf24688b2a0050a | [
"MIT"
] | null | null | null | //
// Created by varnie on 2/23/16.
//
#include <gtest/gtest.h>
#include "../include/Giraffe.h"
TEST(StorageTest, CheckRetrievingAllEntities) {
struct Foo {
Foo() { }
};
using StorageT = Giraffe::Storage<>;
using EntityT = Giraffe::Entity<StorageT>;
StorageT storage;
for (int i = 0... | 17.52381 | 48 | 0.576087 | varnie |
392770182075de0f956a67a461d133ca273fc07b | 1,231 | cpp | C++ | Notes_Week3/composition.cpp | WeiChienHsu/CS165 | 65e95efc90415c8acc707e2d544eb384d3982e18 | [
"MIT"
] | 1 | 2019-01-06T22:36:01.000Z | 2019-01-06T22:36:01.000Z | Notes_Week3/composition.cpp | WeiChienHsu/CS165 | 65e95efc90415c8acc707e2d544eb384d3982e18 | [
"MIT"
] | null | null | null | Notes_Week3/composition.cpp | WeiChienHsu/CS165 | 65e95efc90415c8acc707e2d544eb384d3982e18 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
class Rectangle {
private:
double length;
double width;
public:
void setLength(double len) {
length = len;
}
void setWidth(double wid) {
width = wid;
}
double getLength() {
return length;
}
double getWidth() {
r... | 17.84058 | 89 | 0.607636 | WeiChienHsu |
392b50d729fc87eed2c45f0554e10b2f27e19709 | 1,949 | cpp | C++ | texture-packer/src/main/Functions/main.cpp | ii887522/texture-packer | 0dc2b6656329f427881c36ddafc0196447c74926 | [
"MIT"
] | null | null | null | texture-packer/src/main/Functions/main.cpp | ii887522/texture-packer | 0dc2b6656329f427881c36ddafc0196447c74926 | [
"MIT"
] | null | null | null | texture-packer/src/main/Functions/main.cpp | ii887522/texture-packer | 0dc2b6656329f427881c36ddafc0196447c74926 | [
"MIT"
] | null | null | null | // Copyright ii887522
#ifndef TEST
#define ALLOCATOR_IMPLEMENTATIONS
#include <nitro/nitro.h>
#include <SDL.h>
#include <viewify/viewify.h>
#include <iostream>
#include <stdexcept>
#include <filesystem>
#include "../ViewGroupFactory/TexturePackerViewGroupFactory.h"
#include "../Any/CommandLine.h"
#include <SDL_image... | 37.480769 | 155 | 0.746537 | ii887522 |
3930edb38c8069acc6af05d921b0fc3c51491186 | 982 | cpp | C++ | LoveLiveWallpaper/src/Interactable.cpp | Juvwxyz/LoveLiveWallpaper | a0eeac941b5ccd53af538192cb92b7df049839c4 | [
"MIT"
] | 2 | 2020-05-09T00:13:06.000Z | 2020-05-25T05:49:40.000Z | LoveLiveWallpaper/src/Interactable.cpp | Juvwxyz/LoveLiveWallpaper | a0eeac941b5ccd53af538192cb92b7df049839c4 | [
"MIT"
] | null | null | null | LoveLiveWallpaper/src/Interactable.cpp | Juvwxyz/LoveLiveWallpaper | a0eeac941b5ccd53af538192cb92b7df049839c4 | [
"MIT"
] | 1 | 2020-05-25T05:49:44.000Z | 2020-05-25T05:49:44.000Z | #include "Interactable.h"
#include "Component.h"
#include "Mouse.h"
#include "MouseEventArg.h"
#include "Transform.h"
namespace LLWP
{
Interactable::Interactable()
{
Mouse::OnHitTest += (*this, &Interactable::OnHitTest);
}
bool Interactable::OnHitTest(Interactable*& hitted, const MouseEventArg... | 26.540541 | 127 | 0.550916 | Juvwxyz |
3932962e99e15a87428393817850c8fb38c73874 | 1,441 | hpp | C++ | include/argot/concepts/reference.hpp | mattcalabrese/argot | 97349baaf27659c9dc4d67cf8963b2e871eaedae | [
"BSL-1.0"
] | 49 | 2018-05-09T23:17:45.000Z | 2021-07-21T10:05:19.000Z | include/argot/concepts/reference.hpp | mattcalabrese/argot | 97349baaf27659c9dc4d67cf8963b2e871eaedae | [
"BSL-1.0"
] | null | null | null | include/argot/concepts/reference.hpp | mattcalabrese/argot | 97349baaf27659c9dc4d67cf8963b2e871eaedae | [
"BSL-1.0"
] | 2 | 2019-08-04T03:51:36.000Z | 2020-12-28T06:53:29.000Z | /*==============================================================================
Copyright (c) 2017, 2018, 2019 Matt Calabrese
Distributed under the Boost Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
=======================================... | 27.711538 | 80 | 0.700902 | mattcalabrese |
39410f0a0e8766d77f03a940a2f9f9f063b966d9 | 4,968 | cpp | C++ | test/path_append_test.cpp | abdes/asap_filesystem | 44b8ab19900db6ce58a8802817a5b42d6ab6a4b3 | [
"BSD-3-Clause"
] | 3 | 2019-05-20T14:21:11.000Z | 2019-05-21T19:09:13.000Z | test/path_append_test.cpp | abdes/asap_filesystem | 44b8ab19900db6ce58a8802817a5b42d6ab6a4b3 | [
"BSD-3-Clause"
] | null | null | null | test/path_append_test.cpp | abdes/asap_filesystem | 44b8ab19900db6ce58a8802817a5b42d6ab6a4b3 | [
"BSD-3-Clause"
] | null | null | null | // Copyright The Authors 2018.
// Distributed under the 3-Clause BSD License.
// (See accompanying file LICENSE or copy at
// https://opensource.org/licenses/BSD-3-Clause)
#if defined(__clang__)
#pragma clang diagnostic push
// Catch2 uses a lot of macro names that will make clang go crazy
#if (__clang_... | 29.748503 | 92 | 0.589171 | abdes |
39503020253aa1fc8bd888aea2ab04ff9816e6bc | 49 | hpp | C++ | src/agl/opengl/function/vertex_attribute/all.hpp | the-last-willy/abstractgl | d685bef25ac18773d3eea48ca52806c3a3485ddb | [
"MIT"
] | null | null | null | src/agl/opengl/function/vertex_attribute/all.hpp | the-last-willy/abstractgl | d685bef25ac18773d3eea48ca52806c3a3485ddb | [
"MIT"
] | null | null | null | src/agl/opengl/function/vertex_attribute/all.hpp | the-last-willy/abstractgl | d685bef25ac18773d3eea48ca52806c3a3485ddb | [
"MIT"
] | null | null | null | #pragma once
#include "get_vertex_location.hpp"
| 12.25 | 34 | 0.795918 | the-last-willy |
39514b46fc36f061eaefc57aff06033acea5d384 | 1,023 | cpp | C++ | src/homework/tic_tac_toe/tic_tac_toe_manager.cpp | acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-Irvingperez | 52f01b57eea81445f5ef13325969a8a1bd868c50 | [
"MIT"
] | null | null | null | src/homework/tic_tac_toe/tic_tac_toe_manager.cpp | acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-Irvingperez | 52f01b57eea81445f5ef13325969a8a1bd868c50 | [
"MIT"
] | null | null | null | src/homework/tic_tac_toe/tic_tac_toe_manager.cpp | acc-cosc-1337-fall-2020/acc-cosc-1337-fall-2020-Irvingperez | 52f01b57eea81445f5ef13325969a8a1bd868c50 | [
"MIT"
] | null | null | null | #include "tic_tac_toe_manager.h"
void TicTacToeManager::save_game(std::unique_ptr<TicTacToe> & b)
{
update_winner_count(b->get_winner());
games.push_back(std::move(b));
}
ostream& operator << (ostream& out, const TicTacToeManager& manager)
{
for(auto& x : manager.games)
{
out << *x;
}
... | 21.3125 | 68 | 0.545455 | acc-cosc-1337-fall-2020 |
395242967db1c79c99f873570497994265193717 | 671 | hpp | C++ | src/input.hpp | MaemiKozue/hexceed | 11ddcdfe3f7cadc23ca8ccba950df05fe49ce60a | [
"MIT"
] | null | null | null | src/input.hpp | MaemiKozue/hexceed | 11ddcdfe3f7cadc23ca8ccba950df05fe49ce60a | [
"MIT"
] | null | null | null | src/input.hpp | MaemiKozue/hexceed | 11ddcdfe3f7cadc23ca8ccba950df05fe49ce60a | [
"MIT"
] | null | null | null | #ifndef INPUT_H
#define INPUT_H
#include <iostream>
typedef enum InputType {
MOUSE, KEYBOARD
} InputType;
typedef enum KEY {
KEY_ENTER
} KEY;
typedef enum MOUSE_BUTTON {
MB_MIDDLE, MB_LEFT, MB_RIGHT
} MOUSE_BUTTON;
class Input
{
private:
InputType type;
int x, y; // mouse position
MOUSE_BU... | 15.97619 | 54 | 0.654247 | MaemiKozue |
395693c05065645deeca76b1e0fbb8443b352707 | 2,080 | hpp | C++ | ext/src/java/awt/BasicStroke.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | ext/src/java/awt/BasicStroke.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | ext/src/java/awt/BasicStroke.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/rt.jar
#pragma once
#include <fwd-POI.hpp>
#include <java/awt/fwd-POI.hpp>
#include <java/lang/fwd-POI.hpp>
#include <java/lang/Object.hpp>
#include <java/awt/Stroke.hpp>
struct default_init_tag;
class java::awt::BasicStroke
... | 30.144928 | 112 | 0.694231 | pebble2015 |
39599126185e37194126c4ae8f0c418c2f957a66 | 487 | hpp | C++ | EntitySystemGenerator/Include/ComponentMapsSourceGenerator.hpp | jordanlittlefair/Foundation | ab737b933ea5bbe2be76133ed78c8e882f072fd0 | [
"BSL-1.0"
] | null | null | null | EntitySystemGenerator/Include/ComponentMapsSourceGenerator.hpp | jordanlittlefair/Foundation | ab737b933ea5bbe2be76133ed78c8e882f072fd0 | [
"BSL-1.0"
] | null | null | null | EntitySystemGenerator/Include/ComponentMapsSourceGenerator.hpp | jordanlittlefair/Foundation | ab737b933ea5bbe2be76133ed78c8e882f072fd0 | [
"BSL-1.0"
] | null | null | null | #pragma once
#ifndef _ENTITYSYSTEMGENERATOR_COMPONENTMAPSSOURCEGENERATOR_HPP_
#define _ENTITYSYSTEMGENERATOR_COMPONENTMAPSSOURCEGENERATOR_HPP_
#include "CodeGenerator.hpp"
#include "ComponentDefinitions.hpp"
namespace Fnd
{
namespace EntitySystemCodeGeneration
{
class ComponentMapsSourceGenerator:
... | 18.037037 | 68 | 0.780287 | jordanlittlefair |
395b252c334d240cbe37b6be91d0904cb2f834af | 349 | cpp | C++ | cpp/cpp_primer/chapter10/ex_10_42.cpp | KaiserLancelot/Cpp-Primer | a4791a6765f0b6c864e8881e6a5328e2a3d68974 | [
"MIT"
] | 2 | 2019-12-21T00:53:47.000Z | 2020-01-01T10:36:30.000Z | cpp/cpp_primer/chapter10/ex_10_42.cpp | KaiserLancelot/Cpp-Primer | a4791a6765f0b6c864e8881e6a5328e2a3d68974 | [
"MIT"
] | null | null | null | cpp/cpp_primer/chapter10/ex_10_42.cpp | KaiserLancelot/Cpp-Primer | a4791a6765f0b6c864e8881e6a5328e2a3d68974 | [
"MIT"
] | null | null | null | //
// Created by kaiser on 18-12-17.
//
#include <algorithm>
#include <iostream>
#include <list>
#include <string>
void elim_dups(std::list<std::string>& words) {
words.sort();
words.unique();
}
int main() {
std::list<std::string> vs{"a", "a", "c", "c", "b"};
elim_dups(vs);
for (const auto& s : vs) {
s... | 15.863636 | 53 | 0.56447 | KaiserLancelot |
395f6301e153f9d9d7d2dd3428f88d665133c104 | 850 | cpp | C++ | PTA-B/right/1013-right.cpp | chiangyung/PTA | c8e6bcbc9e552dad5ab71679d861a235b8ad0730 | [
"MIT"
] | 2 | 2018-08-23T06:58:56.000Z | 2018-09-04T02:07:44.000Z | PTA-B/right/1013-right.cpp | chiangyung/PTA | c8e6bcbc9e552dad5ab71679d861a235b8ad0730 | [
"MIT"
] | null | null | null | PTA-B/right/1013-right.cpp | chiangyung/PTA | c8e6bcbc9e552dad5ab71679d861a235b8ad0730 | [
"MIT"
] | null | null | null | #include <iostream>
#include <math.h>
using namespace std;
const int INTMAX = pow(2, 30);
bool is_prime(const int n)
{
for (int i = 2; i <= sqrt(n); i++) {
if (n % i == 0) {
return false;
}
}
return true;
}
int main(int argc, char *argv[])
{
int m, n;
int count1 = 0, ... | 18.888889 | 45 | 0.342353 | chiangyung |
395f7c953cc08a36d29401fb4b839e28b84b46d3 | 531 | cpp | C++ | test/Model/Header.cpp | jxx-project/JXXRS | 0d788e3aba5231ec1782699c9d397b9d81fdb1fd | [
"BSL-1.0"
] | null | null | null | test/Model/Header.cpp | jxx-project/JXXRS | 0d788e3aba5231ec1782699c9d397b9d81fdb1fd | [
"BSL-1.0"
] | null | null | null | test/Model/Header.cpp | jxx-project/JXXRS | 0d788e3aba5231ec1782699c9d397b9d81fdb1fd | [
"BSL-1.0"
] | null | null | null | //
// Copyright (C) 2018 Dr. Michael Steffens
//
// SPDX-License-Identifier: BSL-1.0
//
#include "Model/Header.h"
namespace Model {
Header::Header()
{
}
Header::Header(const std::string& name, const std::string& value) : name(name), value(value)
{
}
Header::Header(const JXXON::Json& json) : name(json.get<decltype... | 16.090909 | 123 | 0.661017 | jxx-project |
396289f2ff22620325ab55248496538c6b002707 | 3,553 | cpp | C++ | src/caffe/test/test_training_utils.cpp | ayzk/ft-caffe-public | 888399c2fcf90c227416576a5a265b218c6be5da | [
"BSD-2-Clause"
] | 933 | 2016-08-29T14:29:20.000Z | 2022-03-20T09:03:49.000Z | src/caffe/test/test_training_utils.cpp | ayzk/ft-caffe-public | 888399c2fcf90c227416576a5a265b218c6be5da | [
"BSD-2-Clause"
] | 286 | 2016-08-30T01:33:01.000Z | 2021-08-22T08:34:19.000Z | src/caffe/test/test_training_utils.cpp | ayzk/ft-caffe-public | 888399c2fcf90c227416576a5a265b218c6be5da | [
"BSD-2-Clause"
] | 611 | 2016-08-30T07:22:04.000Z | 2021-12-18T11:53:08.000Z | /*
All modification made by Intel Corporation: © 2016 Intel Corporation
All contributions by the University of California:
Copyright (c) 2014, 2015, The Regents of the University of California (Regents)
All rights reserved.
All other contributions:
Copyright (c) 2014, 2015, the respective contributors
All rights rese... | 35.178218 | 92 | 0.777934 | ayzk |
39644976619fc7b047dc5bfb77f4732ad44a2038 | 621 | cxx | C++ | test_code/test_fdstream_simple.cxx | m-renaud/posix-lib | 0296999e252e2b40a80bcc01ea6a1742e8ef1c49 | [
"BSD-2-Clause"
] | 1 | 2020-11-11T12:50:30.000Z | 2020-11-11T12:50:30.000Z | test_code/test_fdstream_simple.cxx | m-renaud/posix-lib | 0296999e252e2b40a80bcc01ea6a1742e8ef1c49 | [
"BSD-2-Clause"
] | null | null | null | test_code/test_fdstream_simple.cxx | m-renaud/posix-lib | 0296999e252e2b40a80bcc01ea6a1742e8ef1c49 | [
"BSD-2-Clause"
] | null | null | null | #include <iostream>
#include "../fdstream.hxx"
#include "../pipe.hxx"
int main()
{
try
{
mrr::posix::pipe successful_auth;
mrr::posix::fd_ostream write_end(successful_auth.write_end());
mrr::posix::fd_istream read_end(successful_auth.read_end());
int received[2];
write_end << 5 << std::endl;
write_end... | 17.25 | 64 | 0.639291 | m-renaud |
396aeaba14dfb506f287778ba27e13dd0c0d77f0 | 1,473 | hpp | C++ | include/sprout/predef/compiler/sgi_mipspro.hpp | thinkoid/Sprout | a5a5944bb1779d3bb685087c58c20a4e18df2f39 | [
"BSL-1.0"
] | 4 | 2021-12-29T22:17:40.000Z | 2022-03-23T11:53:44.000Z | dsp/lib/sprout/sprout/predef/compiler/sgi_mipspro.hpp | TheSlowGrowth/TapeLooper | ee8d8dccc27e39a6f6f6f435847e4d5e1b97c264 | [
"MIT"
] | 16 | 2021-10-31T21:41:09.000Z | 2022-01-22T10:51:34.000Z | include/sprout/predef/compiler/sgi_mipspro.hpp | thinkoid/Sprout | a5a5944bb1779d3bb685087c58c20a4e18df2f39 | [
"BSL-1.0"
] | null | null | null | /*=============================================================================
Copyright (c) 2011-2019 Bolero MURAKAMI
https://github.com/bolero-MURAKAMI/Sprout
Distributed under the sprout Software License, Version 1.0. (See accompanying
file LICENSE_1_0.txt or copy at http://www.sprout.org/LICENSE_1_0.txt)
... | 35.071429 | 84 | 0.739308 | thinkoid |
396b1304f779670ccebfe8e01a457de7da6c4d38 | 1,764 | hpp | C++ | tasks/FrameFilter.hpp | PhischDotOrg/stm32f4-common | 4b6b9c436018c89d3668c6ee107e97abb930bae2 | [
"MIT"
] | 1 | 2022-01-31T01:59:52.000Z | 2022-01-31T01:59:52.000Z | tasks/FrameFilter.hpp | PhischDotOrg/stm32-common | 4b6b9c436018c89d3668c6ee107e97abb930bae2 | [
"MIT"
] | 5 | 2020-04-13T21:55:12.000Z | 2020-06-27T17:44:44.000Z | tasks/FrameFilter.hpp | PhischDotOrg/stm32f4-common | 4b6b9c436018c89d3668c6ee107e97abb930bae2 | [
"MIT"
] | null | null | null | /*-
* $Copyright$
-*/
#ifndef _FRAME_FILTER_HPP_3532115b_b86b_48e5_a4c1_810606f79dfe
#define _FRAME_FILTER_HPP_3532115b_b86b_48e5_a4c1_810606f79dfe
#include <tasks/Task.hpp>
#if defined(__cplusplus)
extern "C" {
#endif /* defined(__cplusplus) */
#include "FreeRTOS/FreeRTOS.h"
#include "FreeRTOS/queue.h"
#if defined... | 25.2 | 119 | 0.679705 | PhischDotOrg |
396c73354d9d9ef8cf18366a2a474450ef4f9501 | 1,774 | cc | C++ | map-structure/vi-map/test/test_map_get_vertex_ids_in_mission_test.cc | AdronTech/maplab | 1340e01466fc1c02994860723b8117daf9ad226d | [
"Apache-2.0"
] | 1,936 | 2017-11-27T23:11:37.000Z | 2022-03-30T14:24:14.000Z | map-structure/vi-map/test/test_map_get_vertex_ids_in_mission_test.cc | AdronTech/maplab | 1340e01466fc1c02994860723b8117daf9ad226d | [
"Apache-2.0"
] | 353 | 2017-11-29T18:40:39.000Z | 2022-03-30T15:53:46.000Z | map-structure/vi-map/test/test_map_get_vertex_ids_in_mission_test.cc | AdronTech/maplab | 1340e01466fc1c02994860723b8117daf9ad226d | [
"Apache-2.0"
] | 661 | 2017-11-28T07:20:08.000Z | 2022-03-28T08:06:29.000Z | #include <Eigen/Core>
#include <gtest/gtest.h>
#include <maplab-common/test/testing-entrypoint.h>
#include "vi-map/test/vi-map-generator.h"
namespace vi_map {
class VIMapTest : public ::testing::Test {
protected:
VIMapTest() : map_(), generator_(map_, 42) {}
virtual void SetUp() {
pose::Transformation T_G_... | 27.71875 | 74 | 0.73168 | AdronTech |
397170c480ab89b57d5c1d86eefd61c9657a072d | 10,484 | cc | C++ | src/io/scene_loader.cc | hyungman/SpRay | 96380740dd88e6fbc21c0fdbf232cff357b1235d | [
"Apache-2.0"
] | 7 | 2018-10-22T17:13:36.000Z | 2020-04-17T08:28:55.000Z | src/io/scene_loader.cc | hyungman/SpRay | 96380740dd88e6fbc21c0fdbf232cff357b1235d | [
"Apache-2.0"
] | null | null | null | src/io/scene_loader.cc | hyungman/SpRay | 96380740dd88e6fbc21c0fdbf232cff357b1235d | [
"Apache-2.0"
] | 1 | 2018-11-01T14:53:22.000Z | 2018-11-01T14:53:22.000Z | // ========================================================================== //
// Copyright (c) 2017-2018 The University of Texas at Austin. //
// All rights reserved. //
// ... | 29.041551 | 80 | 0.572778 | hyungman |
3974218429c4050238314f3d62724d1d653797df | 10,436 | hpp | C++ | OpenAutoItParser/include/OpenAutoIt/TokenKind.hpp | OpenAutoit/OpenAutoit | f58c98c6e2a706ba7f06dcbc08a54a5a6440063e | [
"MIT"
] | null | null | null | OpenAutoItParser/include/OpenAutoIt/TokenKind.hpp | OpenAutoit/OpenAutoit | f58c98c6e2a706ba7f06dcbc08a54a5a6440063e | [
"MIT"
] | 6 | 2022-02-01T04:07:12.000Z | 2022-03-01T04:43:49.000Z | OpenAutoItParser/include/OpenAutoIt/TokenKind.hpp | OpenAutoit/OpenAutoit | f58c98c6e2a706ba7f06dcbc08a54a5a6440063e | [
"MIT"
] | null | null | null | #pragma once
namespace OpenAutoIt
{
enum class TokenKind
{
NotAToken,
EndOfFile, // '\0'
NewLine, // '\n'
Comment, // ; Comment
VariableIdentifier, // $var
FunctionIdentifier, // my_func
/* Literals */
IntegerLiteral, // 123
FloatLi... | 41.412698 | 94 | 0.542353 | OpenAutoit |
3976a580c60f6c867eaa81ee34c727b5c0186dbd | 2,118 | cxx | C++ | STEER/STEERBase/AliGenEposEventHeader.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 52 | 2016-12-11T13:04:01.000Z | 2022-03-11T11:49:35.000Z | STEER/STEERBase/AliGenEposEventHeader.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 1,388 | 2016-11-01T10:27:36.000Z | 2022-03-30T15:26:09.000Z | STEER/STEERBase/AliGenEposEventHeader.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 275 | 2016-06-21T20:24:05.000Z | 2022-03-31T13:06:19.000Z | /**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... | 25.518072 | 76 | 0.531161 | AllaMaevskaya |
397909e5ff617b46401a0c2a6bf3af3550b1f4c6 | 344 | cpp | C++ | Problemset/climbing-stairs/climbing-stairs.cpp | Singularity0909/LeetCode | d46fb1c8ed9b16339d46d5c37f69d44e5c178954 | [
"MIT"
] | 1 | 2020-10-06T01:06:45.000Z | 2020-10-06T01:06:45.000Z | Problemset/climbing-stairs/climbing-stairs.cpp | Singularity0909/LeetCode | d46fb1c8ed9b16339d46d5c37f69d44e5c178954 | [
"MIT"
] | null | null | null | Problemset/climbing-stairs/climbing-stairs.cpp | Singularity0909/LeetCode | d46fb1c8ed9b16339d46d5c37f69d44e5c178954 | [
"MIT"
] | 1 | 2021-11-17T13:52:51.000Z | 2021-11-17T13:52:51.000Z |
// @Title: 爬楼梯 (Climbing Stairs)
// @Author: Singularity0909
// @Date: 2020-06-11 21:10:10
// @Runtime: 0 ms
// @Memory: 5.6 MB
class Solution {
public:
int ans[50] = { 0 };
int climbStairs(int n) {
if (n <= 3)
return n;
return ans[n] ? ans[n] : ans[n] = climbStairs(n - 1) + climb... | 19.111111 | 82 | 0.52907 | Singularity0909 |
397adea56a014b5fc6911d96ffdb6695d6a84410 | 2,181 | hpp | C++ | VcppBits/Settings/SettingsException.hpp | faesong/vcppbits | 9ad70f8e398110df48e4e2640a06fca09ef994f9 | [
"MIT"
] | null | null | null | VcppBits/Settings/SettingsException.hpp | faesong/vcppbits | 9ad70f8e398110df48e4e2640a06fca09ef994f9 | [
"MIT"
] | null | null | null | VcppBits/Settings/SettingsException.hpp | faesong/vcppbits | 9ad70f8e398110df48e4e2640a06fca09ef994f9 | [
"MIT"
] | null | null | null | // The MIT License (MIT)
// Copyright 2015-2020 Vitalii Minnakhmetov <restlessmonkey@ya.ru>
// 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 limi... | 34.619048 | 76 | 0.727648 | faesong |
302fe2d3f3f102b03543aea9ee36bd7b982fb4a3 | 8,462 | cpp | C++ | ConnectOptionDialog.cpp | hyo0913/MQTT-Client-with-QMQTT | d9974d755dcc4f16c1e89b426c45be3854bcdbb5 | [
"MIT"
] | 1 | 2021-02-10T08:56:12.000Z | 2021-02-10T08:56:12.000Z | ConnectOptionDialog.cpp | hyo0913/MQTT-Client-using-qmqtt | d9974d755dcc4f16c1e89b426c45be3854bcdbb5 | [
"MIT"
] | null | null | null | ConnectOptionDialog.cpp | hyo0913/MQTT-Client-using-qmqtt | d9974d755dcc4f16c1e89b426c45be3854bcdbb5 | [
"MIT"
] | null | null | null | #include "ConnectOptionDialog.h"
#include "ui_ConnectOptionDialog.h"
#include "QFileDialog"
#include "QApplication"
ConnectOptionDialog::ConnectOptionDialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::ConnectOptionDialog)
{
ui->setupUi(this);
connect(ui->checkBoxWillFlag, SIGNAL(toggle... | 28.979452 | 110 | 0.69109 | hyo0913 |
3030085cec3c16ba6b029381746dd0a63baff54c | 1,446 | cc | C++ | test/config_test.cc | lilialexlee/kit | 94492e04832749fcdfb7f9fb8a778bb949d5e7d6 | [
"MIT"
] | 1 | 2015-09-22T15:33:30.000Z | 2015-09-22T15:33:30.000Z | test/config_test.cc | lilialexlee/kit | 94492e04832749fcdfb7f9fb8a778bb949d5e7d6 | [
"MIT"
] | null | null | null | test/config_test.cc | lilialexlee/kit | 94492e04832749fcdfb7f9fb8a778bb949d5e7d6 | [
"MIT"
] | null | null | null | /*
* config_test.cc
*
*/
#include "util/config.h"
#include <iostream>
int main() {
kit::Config config;
config.Init("./test/example_conf");
std::string str_value;
int ret = config.GetStr("str", &str_value);
if (ret == 0) {
std::cout << "get str: " << str_value << "\n";
} else {
... | 21.909091 | 53 | 0.502766 | lilialexlee |
30315f2c2da15598ac8a5ff4725bec76120052dd | 2,307 | hxx | C++ | src/tcl_iface/array.hxx | AltSysrq/Abendstern | 106e1ad2457f7bfd90080eecf49a33f6079f8e1e | [
"BSD-3-Clause"
] | null | null | null | src/tcl_iface/array.hxx | AltSysrq/Abendstern | 106e1ad2457f7bfd90080eecf49a33f6079f8e1e | [
"BSD-3-Clause"
] | null | null | null | src/tcl_iface/array.hxx | AltSysrq/Abendstern | 106e1ad2457f7bfd90080eecf49a33f6079f8e1e | [
"BSD-3-Clause"
] | 1 | 2022-01-29T11:54:41.000Z | 2022-01-29T11:54:41.000Z | /**
* @file
* @author Jason Lingle
* @brief Makes C automatic/static arrays accessible to trusted Tcl.
*/
/*
* array.hxx
* Make C arrays accessible to trusted Tcl.
*
* Created on: 12.07.2010
* Author: jason
*/
#ifndef ARRAY_HXX_
#define ARRAY_HXX_
#include <stdexcept>
#include <exception>
#include "... | 24.806452 | 81 | 0.647161 | AltSysrq |
30351cdc1536feb813463363d184c60765f63aa0 | 799 | cpp | C++ | 20-Valid_Parentheses.cpp | elsdrium/LeetCode-practice | a3b1fa5dd200155a636d36cd570e2454f7194e10 | [
"MIT"
] | null | null | null | 20-Valid_Parentheses.cpp | elsdrium/LeetCode-practice | a3b1fa5dd200155a636d36cd570e2454f7194e10 | [
"MIT"
] | null | null | null | 20-Valid_Parentheses.cpp | elsdrium/LeetCode-practice | a3b1fa5dd200155a636d36cd570e2454f7194e10 | [
"MIT"
] | null | null | null | class Solution {
public:
bool isValid(string s) {
list<char> stack;
for( char c : s ) {
switch ( c ) {
case '(':
case '{':
case '[':
stack.push_back(c);
break;
case ')':
... | 27.551724 | 60 | 0.307885 | elsdrium |
303880210283d85be75660b6f91578dee964ab52 | 4,210 | cpp | C++ | 002_disparity_panorama.cpp | DreamVu/Code-Samples | 2fccd9e649fbe7d9895df7d799cb1ec33066d1c2 | [
"MIT"
] | null | null | null | 002_disparity_panorama.cpp | DreamVu/Code-Samples | 2fccd9e649fbe7d9895df7d799cb1ec33066d1c2 | [
"MIT"
] | null | null | null | 002_disparity_panorama.cpp | DreamVu/Code-Samples | 2fccd9e649fbe7d9895df7d799cb1ec33066d1c2 | [
"MIT"
] | null | null | null | /*
CODE SAMPLE # 002: Disparity panorama
This code will grab the basic stereo panoramas (left and right images) and ALSO the Disparity panorama, and all these 3 images are displayed in an opencv window
>>>>>> Compile this code using the following command....
g++ 002_disparity_panorama.cpp ../lib/libPAL.so `pkg-con... | 26.3125 | 162 | 0.676485 | DreamVu |
303fb3bc53beaf5ea5c43b46203287c27e904f92 | 13,179 | hpp | C++ | sources/RenderSystem/spShaderClass.hpp | rontrek/softpixel | 73a13a67e044c93f5c3da9066eedbaf3805d6807 | [
"Zlib"
] | 14 | 2015-08-16T21:05:20.000Z | 2019-08-21T17:22:01.000Z | sources/RenderSystem/spShaderClass.hpp | rontrek/softpixel | 73a13a67e044c93f5c3da9066eedbaf3805d6807 | [
"Zlib"
] | null | null | null | sources/RenderSystem/spShaderClass.hpp | rontrek/softpixel | 73a13a67e044c93f5c3da9066eedbaf3805d6807 | [
"Zlib"
] | 3 | 2020-02-15T09:17:41.000Z | 2020-05-21T14:10:40.000Z | /*
* Shader class header
*
* This file is part of the "SoftPixel Engine" (Copyright (c) 2008 by Lukas Hermanns)
* See "SoftPixelEngine.hpp" for license information.
*/
#ifndef __SP_SHADER_CLASS_H__
#define __SP_SHADER_CLASS_H__
#include "Base/spStandard.hpp"
#include "Base/spInputOutput.hpp"
#include "Base/spB... | 34.865079 | 131 | 0.629866 | rontrek |
303fd170eef267427715ae2218bd05a1403ec51d | 3,942 | hpp | C++ | examples/accumulator/accumulators/stubs/template_function_accumulator.hpp | kempj/hpx | ffdbfed5dfa029a0f2e97e7367cb66d12103df67 | [
"BSL-1.0"
] | null | null | null | examples/accumulator/accumulators/stubs/template_function_accumulator.hpp | kempj/hpx | ffdbfed5dfa029a0f2e97e7367cb66d12103df67 | [
"BSL-1.0"
] | null | null | null | examples/accumulator/accumulators/stubs/template_function_accumulator.hpp | kempj/hpx | ffdbfed5dfa029a0f2e97e7367cb66d12103df67 | [
"BSL-1.0"
] | null | null | null | // Copyright (c) 2007-2012 Hartmut Kaiser
// Copyright (c) 2011 Bryce Adelstein-Lelbach
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#if !defined(HPX_EXAMPLES_STUBS_TEMPLATE_FUNCTION_ACCUMULATOR_JUL_... | 40.22449 | 94 | 0.58067 | kempj |
30492562f44dbe9294a88209c703116a098d00bd | 7,356 | cpp | C++ | srm 195 div1/FanFailure.cpp | emiliot/topcoder | c58e105424b484a4e5600bad2c58d664cdcae935 | [
"MIT"
] | null | null | null | srm 195 div1/FanFailure.cpp | emiliot/topcoder | c58e105424b484a4e5600bad2c58d664cdcae935 | [
"MIT"
] | null | null | null | srm 195 div1/FanFailure.cpp | emiliot/topcoder | c58e105424b484a4e5600bad2c58d664cdcae935 | [
"MIT"
] | null | null | null | // Paste me into the FileEdit configuration dialog
#include "assert.h"
#include "ctype.h"
#include "float.h"
#include "math.h"
#include "stdio.h"
#include "string.h"
#include "stdlib.h"
#include "stdarg.h"
#include "time.h"
#include "algorithm"
#include "numeric"
#include "functional"
#include "utility"
#include "bits... | 30.396694 | 277 | 0.592577 | emiliot |
304f206ea3efb19f7470a6edb5116fce5b896372 | 552 | hpp | C++ | src/Type.hpp | pawelprazak/jeff-native-agent | 1554a8f69d0f0ca719ae5a794564e0e155b82545 | [
"Apache-2.0"
] | 7 | 2017-12-10T16:37:18.000Z | 2021-01-19T06:33:23.000Z | src/Type.hpp | pawelprazak/jeff-native-agent | 1554a8f69d0f0ca719ae5a794564e0e155b82545 | [
"Apache-2.0"
] | 3 | 2016-01-13T13:39:50.000Z | 2016-02-19T18:08:38.000Z | src/Type.hpp | pawelprazak/jeff-native-agent | 1554a8f69d0f0ca719ae5a794564e0e155b82545 | [
"Apache-2.0"
] | 5 | 2015-12-08T09:03:10.000Z | 2019-07-29T16:13:13.000Z | #ifndef JEFF_NATIVE_AGENT_TYPE_HPP
#define JEFF_NATIVE_AGENT_TYPE_HPP
#include <jni.h>
#include <jvmti.h>
#include "Object.hpp"
class Type : Object {
public:
Type();
Type(const std::string signature);
virtual ~Type();
private:
const std::string signature;
public:
static const Type *const from... | 19.034483 | 90 | 0.721014 | pawelprazak |
30534b9793b2207074a3d48925d19d11f017d241 | 142 | cpp | C++ | src/app/camera/camera.cpp | JonCG90/Goby | da1bfcea23c058427e6bad1c58f1cd5405fe4c5f | [
"MIT"
] | null | null | null | src/app/camera/camera.cpp | JonCG90/Goby | da1bfcea23c058427e6bad1c58f1cd5405fe4c5f | [
"MIT"
] | null | null | null | src/app/camera/camera.cpp | JonCG90/Goby | da1bfcea23c058427e6bad1c58f1cd5405fe4c5f | [
"MIT"
] | null | null | null | //
// camera.cpp
// Goby
//
// Created by Jonathan Graham on 8/18/19.
//
#include "camera.hpp"
namespace Goby
{
} // namespace Goby
| 10.142857 | 42 | 0.598592 | JonCG90 |
3054fbf14a79cbdc41baa36817c2127adc340035 | 12,908 | cpp | C++ | test/diamond_complex.cpp | rwols/yaml-archive | 4afec73e557c15350c5e068c010f4e378edc95ef | [
"BSL-1.0"
] | 1 | 2018-01-27T23:35:21.000Z | 2018-01-27T23:35:21.000Z | test/diamond_complex.cpp | rwols/yaml-archive | 4afec73e557c15350c5e068c010f4e378edc95ef | [
"BSL-1.0"
] | 2 | 2019-08-17T05:37:36.000Z | 2019-08-17T22:57:26.000Z | test/diamond_complex.cpp | rwols/yaml-archive | 4afec73e557c15350c5e068c010f4e378edc95ef | [
"BSL-1.0"
] | 1 | 2021-03-19T11:53:53.000Z | 2021-03-19T11:53:53.000Z | #include "io_count_fixture.hpp"
#include <boost/serialization/export.hpp>
#include <boost/serialization/map.hpp>
#include <boost/test/unit_test.hpp>
#define NVP(name) BOOST_SERIALIZATION_NVP(name)
using boost::serialization::make_nvp;
namespace {
// used to detect when base_diamond class is saved multiple times
int d... | 29.47032 | 75 | 0.68353 | rwols |
305b0147381455dd98f6417efd6da68f5d915c91 | 2,275 | cpp | C++ | C++/Brute Force Password Cracker.cpp | CyanCoding/Brute-Force-Password-Cracker | dcc753618e1de8294b118721adca35f87eb2bfe7 | [
"MIT"
] | 30 | 2019-02-07T23:41:24.000Z | 2022-03-13T15:39:37.000Z | C++/Brute Force Password Cracker.cpp | CyanCoding/Brute-Force-Password-Cracker | dcc753618e1de8294b118721adca35f87eb2bfe7 | [
"MIT"
] | 3 | 2020-09-22T19:55:16.000Z | 2021-10-01T19:48:13.000Z | C++/Brute Force Password Cracker.cpp | CyanCoding/Brute-Force-Password-Cracker | dcc753618e1de8294b118721adca35f87eb2bfe7 | [
"MIT"
] | 28 | 2018-06-08T15:27:03.000Z | 2022-02-07T05:40:29.000Z | #include <iostream>
#include <string> // to_string
#include <iomanip> // setprecision
using namespace std;
bool stop = false;
long long amount = 0;
string password;
clock_t start;
const char Alphabet[62] = {
'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', ... | 30.333333 | 311 | 0.487912 | CyanCoding |
305e00e4be433b098a54686754f91b0d53e16b0f | 336 | hpp | C++ | include/mil/utils/index_sequence.hpp | vhapiak/meta_info_lib | 677984960028c6ef0f2b462c2f6ae8ac7fc714ea | [
"MIT"
] | null | null | null | include/mil/utils/index_sequence.hpp | vhapiak/meta_info_lib | 677984960028c6ef0f2b462c2f6ae8ac7fc714ea | [
"MIT"
] | null | null | null | include/mil/utils/index_sequence.hpp | vhapiak/meta_info_lib | 677984960028c6ef0f2b462c2f6ae8ac7fc714ea | [
"MIT"
] | null | null | null | #pragma once
#include <cstddef>
#include "detail/index_sequence.hpp"
namespace mil {
namespace utils {
template <std::size_t... Idx>
using index_sequnece = detail::index_sequnece<Idx...>;
template <std::size_t N>
using make_index_sequence = typename detail::make_index_sequence<N>::type;
} // namespace utils
} /... | 18.666667 | 74 | 0.738095 | vhapiak |
30608a5bc5e5b05a736a10130fb51f16f51e84ee | 3,614 | cxx | C++ | FIT/FITcalib/AliFITCalibTimeEq.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 52 | 2016-12-11T13:04:01.000Z | 2022-03-11T11:49:35.000Z | FIT/FITcalib/AliFITCalibTimeEq.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 1,388 | 2016-11-01T10:27:36.000Z | 2022-03-30T15:26:09.000Z | FIT/FITcalib/AliFITCalibTimeEq.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 275 | 2016-06-21T20:24:05.000Z | 2022-03-31T13:06:19.000Z |
/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors... | 31.982301 | 91 | 0.57969 | AllaMaevskaya |
30657cd12bea49e681cd2756206affac7f565829 | 4,202 | cpp | C++ | src/drive.cpp | sizeofvoid/openbsdisks2 | 4bc053a9d15f4e367a9f7601e7e506cd3d72bd7c | [
"BSD-3-Clause"
] | 7 | 2021-05-13T07:43:10.000Z | 2022-01-09T12:18:48.000Z | src/drive.cpp | sizeofvoid/openbsdisks2 | 4bc053a9d15f4e367a9f7601e7e506cd3d72bd7c | [
"BSD-3-Clause"
] | null | null | null | src/drive.cpp | sizeofvoid/openbsdisks2 | 4bc053a9d15f4e367a9f7601e7e506cd3d72bd7c | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright 2016 Gleb Popov <6yearold@gmail.com>
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the f... | 24.011429 | 99 | 0.694669 | sizeofvoid |
3065e0634838c6a4728f0c0528a5fc7a269dc115 | 675 | cpp | C++ | src/cbtCore/Rendering/Buffer/cbtBufferLayout.cpp | TypeDefinition/cbtEngine | 9ddbc6a5436cc31efc475f6d1c37fade4a003c0d | [
"MIT"
] | null | null | null | src/cbtCore/Rendering/Buffer/cbtBufferLayout.cpp | TypeDefinition/cbtEngine | 9ddbc6a5436cc31efc475f6d1c37fade4a003c0d | [
"MIT"
] | null | null | null | src/cbtCore/Rendering/Buffer/cbtBufferLayout.cpp | TypeDefinition/cbtEngine | 9ddbc6a5436cc31efc475f6d1c37fade4a003c0d | [
"MIT"
] | null | null | null | // Include CBT
#include "cbtBufferLayout.h"
NS_CBT_BEGIN
cbtU32 GetByteSize(cbtBufferDataType _dataType)
{
switch (_dataType)
{
case cbtBufferDataType::CBT_S8:
case cbtBufferDataType::CBT_U8:
return 1;
case cbtBufferDataType::CBT_S16:
case cbtBufferD... | 24.107143 | 51 | 0.6 | TypeDefinition |
3068245fb2012c6185a50f5ed6d9c464cbf886c1 | 1,717 | cpp | C++ | control_app/joystick.cpp | houcy/wall-e-1 | b159d05b0afa343cb161f60ec98974bc2f063afd | [
"MIT"
] | 1 | 2021-05-05T14:11:03.000Z | 2021-05-05T14:11:03.000Z | control_app/joystick.cpp | houcy/wall-e-1 | b159d05b0afa343cb161f60ec98974bc2f063afd | [
"MIT"
] | null | null | null | control_app/joystick.cpp | houcy/wall-e-1 | b159d05b0afa343cb161f60ec98974bc2f063afd | [
"MIT"
] | null | null | null | #include "joystick.h"
#include "log.h"
#include <QTimer>
// Linux headers
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
/* Standard C++ API does not allow to read char device file in unblocking mode,
* so used Linux API
*/
#define JOYSTICK_FILE "/dev/input/js0"
#define READ_DATA_I... | 22.893333 | 80 | 0.576005 | houcy |
3069a83b76d7aa1d62e769e3c75bcc32085ad3e2 | 2,168 | cpp | C++ | src/sorts/CombSort/comb_sort.cpp | delightedok/TGSToolkits | 7570378fde1f3045a545c293fddb275143701114 | [
"MIT"
] | null | null | null | src/sorts/CombSort/comb_sort.cpp | delightedok/TGSToolkits | 7570378fde1f3045a545c293fddb275143701114 | [
"MIT"
] | null | null | null | src/sorts/CombSort/comb_sort.cpp | delightedok/TGSToolkits | 7570378fde1f3045a545c293fddb275143701114 | [
"MIT"
] | null | null | null | #include "../../comms/comm_headers.h"
#include <sorts/comb_sort.h>
#define THIS_FILE "comb_sort.cpp"
#define LOG_TAG "SORTS-COMB"
TGSTK_EXPORT SortCombObject::SortCombObject(SortVTable & vTable, float factor) : SortObject(vTable)
{
this->factor = factor;
if (factor <= 1)
{
mlog_e(LOG_TA... | 31.42029 | 112 | 0.398985 | delightedok |
307373a68a63c0a7466f75495fb6cfd8d2e2b32e | 4,271 | cpp | C++ | test/lab/test_client.cpp | brigid-jp/brigid-core | edd7e1cdbfeb1babbc8fcf39c71c5d90d0137589 | [
"MIT"
] | 6 | 2019-12-24T01:55:57.000Z | 2021-01-18T02:51:28.000Z | test/lab/test_client.cpp | brigid-jp/brigid-core | edd7e1cdbfeb1babbc8fcf39c71c5d90d0137589 | [
"MIT"
] | 11 | 2021-09-16T12:58:45.000Z | 2021-12-08T08:14:58.000Z | test/lab/test_client.cpp | brigid-jp/brigid-core | edd7e1cdbfeb1babbc8fcf39c71c5d90d0137589 | [
"MIT"
] | null | null | null | // Copyright (c) 2021 <dev@brigid.jp>
// This software is released under the MIT License.
// https://opensource.org/licenses/mit-license.php
#include <brigid/error.hpp>
#include "test_common.hpp"
#include <exception>
#include <iomanip>
#include <iostream>
#include <vector>
#include <netinet/in.h>
#include <netinet/t... | 29.054422 | 123 | 0.510887 | brigid-jp |
30777d7ac5ce4310015b27a34498b181e760e9f1 | 1,068 | cpp | C++ | cpp/UniqueBinarySearchTreesII.cpp | thinksource/code_interview | 08be992240508b73894eaf6b8c025168fd19df19 | [
"Apache-2.0"
] | 12 | 2015-03-12T03:27:26.000Z | 2021-03-11T09:26:16.000Z | cpp/UniqueBinarySearchTreesII.cpp | thinksource/code_interview | 08be992240508b73894eaf6b8c025168fd19df19 | [
"Apache-2.0"
] | null | null | null | cpp/UniqueBinarySearchTreesII.cpp | thinksource/code_interview | 08be992240508b73894eaf6b8c025168fd19df19 | [
"Apache-2.0"
] | 11 | 2015-01-28T16:45:40.000Z | 2017-03-28T20:01:38.000Z | /**
* Definition for binary tree
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solution {
public:
vector<TreeNode *> generateTrees(int n) {
vector<TreeNode *> v;
generateTrees(1,n,v);
... | 27.384615 | 71 | 0.476592 | thinksource |
307e4dcc379f086608ed6971559fccc25010eecc | 2,928 | cpp | C++ | Graphs/MazeRunner.cpp | TheArquitect/Classic-Algorithms | 29ef20af79346142df8c76dd266e728b5e12cd10 | [
"BSD-2-Clause"
] | 1 | 2019-09-30T17:47:41.000Z | 2019-09-30T17:47:41.000Z | Graphs/MazeRunner.cpp | TheArquitect/Classic-Algorithms | 29ef20af79346142df8c76dd266e728b5e12cd10 | [
"BSD-2-Clause"
] | null | null | null | Graphs/MazeRunner.cpp | TheArquitect/Classic-Algorithms | 29ef20af79346142df8c76dd266e728b5e12cd10 | [
"BSD-2-Clause"
] | null | null | null | /**
File : MazeRunner.cpp
Author : Menashe Rosemberg
Created : 2019.04.02 Version: 20190402.12
Check all spaces reachable in a maze from a random start place
BSD License
Copyright (c) 2019 TheArquitect (Menashe Rosemberg) rosemberg@ymail.com
Redistribution and use in source... | 49.627119 | 83 | 0.563525 | TheArquitect |
3082d2b7b359e5c3f2df5d7dd1534c7b330b0f79 | 1,299 | cpp | C++ | microcontroller/lib/Timer/Timer.cpp | robfors/nut_sorter-microcontroller | bc909fdaa1cc856341fe16773aefe9f1af773c83 | [
"Apache-2.0"
] | null | null | null | microcontroller/lib/Timer/Timer.cpp | robfors/nut_sorter-microcontroller | bc909fdaa1cc856341fe16773aefe9f1af773c83 | [
"Apache-2.0"
] | null | null | null | microcontroller/lib/Timer/Timer.cpp | robfors/nut_sorter-microcontroller | bc909fdaa1cc856341fe16773aefe9f1af773c83 | [
"Apache-2.0"
] | null | null | null | #include "Timer.h"
//
// public
//
Timer::Timer(Units units)
{
_default_length = 0;
_length = 0;
_units = units;
_is_active = false;
_start_time = 0;
}
Timer::Timer(unsigned long default_length, Units units)
{
_default_length = default_length;
_length = 0;
_units = units;
_is_active = false;
_... | 13.121212 | 61 | 0.639723 | robfors |
30863a06f9bb3bb0f2714fb003ace0def7f08e26 | 155 | cpp | C++ | benignware/1000.cpp | CodmingOut/SecretProjectAI | addc43117eab30a25453c18fa042739c33cc6cfb | [
"MIT"
] | 8 | 2018-04-12T15:54:09.000Z | 2020-06-05T07:41:15.000Z | src/1000/1000.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | null | null | null | src/1000/1000.cpp14.cpp | upple/BOJ | e6dbf9fd17fa2b458c6a781d803123b14c18e6f1 | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int count_0 = 0, count_1 = 0;
int main(void)
{
int a, b;
cin >> a >> b;
cout << a + b << endl;
return 0;
} | 11.071429 | 29 | 0.574194 | CodmingOut |
308846f94715c810eea8e4c19b8358fdaa42b62a | 309 | cpp | C++ | Sorting-and-Order-Statistics/Selection sort.cpp | Fresher001/Competitive-Programming-2 | e1e953bb1d4ade46cc670b2d0432f68504538ed2 | [
"MIT"
] | 86 | 2016-10-18T23:30:36.000Z | 2022-01-09T21:57:34.000Z | Sorting-and-Order-Statistics/Selection sort.cpp | Fresher001/Competitive-Programming-2 | e1e953bb1d4ade46cc670b2d0432f68504538ed2 | [
"MIT"
] | 1 | 2018-04-13T09:38:36.000Z | 2018-04-13T09:38:36.000Z | Sorting-and-Order-Statistics/Selection sort.cpp | Fresher001/Competitive-Programming-2 | e1e953bb1d4ade46cc670b2d0432f68504538ed2 | [
"MIT"
] | 39 | 2017-03-02T07:25:40.000Z | 2020-12-14T12:13:50.000Z | #include <bits/stdc++.h>
using namespace std;
void selection_sort(int A[], int l, int r)
{
for (int i = l; i < r; ++i)
{
int p = i;
for (int j = i + 1; j <= r; ++j)
if (A[j] < A[p])
p = j;
swap(A[i], A[p]);
}
}
int main()
{
return 0;
}
| 13.434783 | 42 | 0.391586 | Fresher001 |
308acdf55b1fd94729126e79d44df30fb1e46fdf | 419 | hpp | C++ | src/PheromonWeight.hpp | mwieczor/ACO | aa30ecd728d6b205188da4993857e2291a464255 | [
"MIT"
] | null | null | null | src/PheromonWeight.hpp | mwieczor/ACO | aa30ecd728d6b205188da4993857e2291a464255 | [
"MIT"
] | null | null | null | src/PheromonWeight.hpp | mwieczor/ACO | aa30ecd728d6b205188da4993857e2291a464255 | [
"MIT"
] | null | null | null | #pragma once
#include "Ant.hpp"
class WeightGraph;
class Node;
class PheromonWeight{
public:
PheromonWeight(){}
virtual ~PheromonWeight()=default;
protected:
virtual void leavePheromon(IWeightGraph &mGraph, Node lastNode, Node position, double weight);
// virtual void leavePheromon(WeightGraph &mGrap... | 19.952381 | 98 | 0.747017 | mwieczor |
3091aa4676803d92ae456bcbb9262bf7557229fb | 5,095 | cpp | C++ | modules/core/src/Slot/gmSlotBase.cpp | GraphMIC/GraphMIC | 8fc2aeb0143ee1292c6757f010fc9e8c68823e2b | [
"BSD-3-Clause"
] | 43 | 2016-04-11T11:34:05.000Z | 2022-03-31T03:37:57.000Z | modules/core/src/Slot/gmSlotBase.cpp | kevinlq/GraphMIC | 8fc2aeb0143ee1292c6757f010fc9e8c68823e2b | [
"BSD-3-Clause"
] | 1 | 2016-05-17T12:58:16.000Z | 2016-05-17T12:58:16.000Z | modules/core/src/Slot/gmSlotBase.cpp | kevinlq/GraphMIC | 8fc2aeb0143ee1292c6757f010fc9e8c68823e2b | [
"BSD-3-Clause"
] | 14 | 2016-05-13T20:23:16.000Z | 2021-12-20T10:33:19.000Z | #include "gmSlotBase.hpp"
#include "gmSlotInput.hpp"
#include "gmSlotOutput.hpp"
#include "gmNodeEditor.hpp"
#include "gmNodeConnector.hpp"
#include "gmSlotInputBase.hpp"
#include "gmSlotOutputBase.hpp"
#include "gmSlotConstraints.hpp"
#include "gmAsync.hpp"
namespace gm
{
namespace Slot
{
Base::Base(... | 28.305556 | 210 | 0.452208 | GraphMIC |
30a19e7445d08c0baac9ae0bbc2d884232c675a1 | 1,446 | hpp | C++ | apps/las2oci.hpp | libLAS/libLAS-1.6 | 92b4c1370785481f212cc7fec9623637233c1418 | [
"BSD-3-Clause"
] | 1 | 2019-02-13T14:41:23.000Z | 2019-02-13T14:41:23.000Z | apps/las2oci.hpp | libLAS/libLAS-1.6 | 92b4c1370785481f212cc7fec9623637233c1418 | [
"BSD-3-Clause"
] | 1 | 2018-03-13T07:12:06.000Z | 2018-03-13T07:12:06.000Z | apps/las2oci.hpp | libLAS/libLAS-1.6 | 92b4c1370785481f212cc7fec9623637233c1418 | [
"BSD-3-Clause"
] | 2 | 2021-05-17T02:09:16.000Z | 2021-06-21T12:15:52.000Z | #ifndef LAS2OCI_HPP_INCLUDED
#define LAS2OCI_HPP_INCLUDED
#include "oci_wrapper.h"
#include <stdlib.h>
// god-awful hack because of GDAL/GeoTIFF's shitty include structure
#define CPL_SERV_H_INCLUDED
#include <liblas/liblas.hpp>
#include <boost/cstdint.hpp>
#include <boost/concept_check.hpp>
#include <string>
#i... | 17.421687 | 92 | 0.674965 | libLAS |
30a7ede92394a9d33e79057d72973a78de7eb231 | 1,903 | cpp | C++ | detect_all_cycles.cpp | poojacos/graph_algos | a6e5d5f29b2c18fda73cfdace8781cbddc294650 | [
"MIT"
] | null | null | null | detect_all_cycles.cpp | poojacos/graph_algos | a6e5d5f29b2c18fda73cfdace8781cbddc294650 | [
"MIT"
] | null | null | null | detect_all_cycles.cpp | poojacos/graph_algos | a6e5d5f29b2c18fda73cfdace8781cbddc294650 | [
"MIT"
] | null | null | null | // C++ program to print all the cycles
// in an undirected graph
//CONCEPT-use colors
#include <bits/stdc++.h>
using namespace std;
const int N = 100000;
// variables to be used
// in both functions
vector<int> graph[N];
vector<int> cycles[N];
// Function to mark the vertex with
// different colors for diff... | 21.144444 | 85 | 0.620074 | poojacos |
dd645f424261ce5b53ea1744ecac4d11c2ca18b4 | 14,422 | hpp | C++ | include/types/mat.hpp | Oxsomi/core2 | 96d64fc5f47b6aee2e205205196e4bb1ddee59f6 | [
"MIT"
] | null | null | null | include/types/mat.hpp | Oxsomi/core2 | 96d64fc5f47b6aee2e205205196e4bb1ddee59f6 | [
"MIT"
] | 12 | 2020-01-17T21:40:53.000Z | 2020-11-18T18:13:35.000Z | include/types/mat.hpp | Oxsomi/core2 | 96d64fc5f47b6aee2e205205196e4bb1ddee59f6 | [
"MIT"
] | null | null | null | #pragma once
#include "vec.hpp"
//Helper for generating matrices
//All rotations and fovs are in radians
//Matrix storage
template<typename T, usz W, usz H>
struct TMatStorage {
union {
T f[W * H];
T m[W][H];
Vec<T, W> axes[H];
};
constexpr inline TMatStorage(): f{} {}
template<typename ...args>
const... | 23.112179 | 138 | 0.630495 | Oxsomi |
dd6fc2943c3e92cafa915e06f0f9a2191e0dbd71 | 7,484 | cpp | C++ | source/MultiLibrary/Filesystem/Windows/Filesystem.cpp | danielga/multilibrary | 3d1177dd3affa875e06015f5e3e42dda525f3336 | [
"BSD-3-Clause"
] | 2 | 2018-06-22T12:43:57.000Z | 2019-05-31T21:56:27.000Z | source/MultiLibrary/Filesystem/Windows/Filesystem.cpp | danielga/multilibrary | 3d1177dd3affa875e06015f5e3e42dda525f3336 | [
"BSD-3-Clause"
] | 1 | 2017-09-09T01:21:31.000Z | 2017-11-12T17:52:56.000Z | source/MultiLibrary/Filesystem/Windows/Filesystem.cpp | danielga/multilibrary | 3d1177dd3affa875e06015f5e3e42dda525f3336 | [
"BSD-3-Clause"
] | 1 | 2022-03-30T18:57:41.000Z | 2022-03-30T18:57:41.000Z | /*************************************************************************
* MultiLibrary - https://danielga.github.io/multilibrary/
* A C++ library that covers multiple low level systems.
*------------------------------------------------------------------------
* Copyright (c) 2014-2022, Daniel Almeida
* All righ... | 29.234375 | 126 | 0.671833 | danielga |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.