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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
9ba16e2b3b2e7967375bb965138ec895aebf545a | 1,970 | hpp | C++ | include/core/Acceleration.hpp | BlauHimmel/Hikari | 38746e5d03a8e106a346a6f792f3093034a576bb | [
"MIT"
] | 11 | 2018-11-22T03:07:10.000Z | 2022-03-31T15:51:29.000Z | include/core/Acceleration.hpp | BlauHimmel/Hikari | 38746e5d03a8e106a346a6f792f3093034a576bb | [
"MIT"
] | 2 | 2019-02-14T15:05:42.000Z | 2019-07-26T06:07:13.000Z | include/core/Acceleration.hpp | BlauHimmel/Hikari | 38746e5d03a8e106a346a6f792f3093034a576bb | [
"MIT"
] | 4 | 2018-12-18T12:40:07.000Z | 2022-03-31T15:51:31.000Z | #pragma once
#include <core\Common.hpp>
#include <core\Object.hpp>
#include <core\Mesh.hpp>
#include <core\MemoryArena.hpp>
NAMESPACE_BEGIN
/**
* \brief Acceleration data structure for ray intersection queries
*
* The current implementation falls back to a brute force loop
* through the geometry.
*/
class Accelerati... | 26.621622 | 91 | 0.732487 | BlauHimmel |
9bab83e12fb087a554f31d4e874efb503700a6c7 | 11,772 | cpp | C++ | wmis/lib/mis/ml/ml_features.cpp | josephholten/KaMIS-ml | 9b17d8764a72b75b04519aaaa5858f69d2ae4c54 | [
"MIT"
] | null | null | null | wmis/lib/mis/ml/ml_features.cpp | josephholten/KaMIS-ml | 9b17d8764a72b75b04519aaaa5858f69d2ae4c54 | [
"MIT"
] | null | null | null | wmis/lib/mis/ml/ml_features.cpp | josephholten/KaMIS-ml | 9b17d8764a72b75b04519aaaa5858f69d2ae4c54 | [
"MIT"
] | null | null | null | //
// Created by joseph on 10/27/21.
//
#include "ml_features.h"
#include <random>
#include <unordered_set>
#include "mis_config.h"
#include "configuration_mis.h"
#include "timer.h"
#include "graph_io.h"
#include "weighted_ls.h"
#include "stat.h"
// constructors
// for training (many graphs with labels)
ml_features... | 34.931751 | 159 | 0.619011 | josephholten |
9bab9f4bc1555af31e6a446e06bdb8c625ceec2b | 1,027 | cpp | C++ | Main.cpp | EmuraDaisuke/Windows.HighPrecision-IntervalWait | 0734c55383f193df7b6efb53a0459f69c01e75aa | [
"MIT"
] | 1 | 2020-07-05T19:28:11.000Z | 2020-07-05T19:28:11.000Z | Main.cpp | EmuraDaisuke/Windows.HighPrecision-IntervalWait | 0734c55383f193df7b6efb53a0459f69c01e75aa | [
"MIT"
] | null | null | null | Main.cpp | EmuraDaisuke/Windows.HighPrecision-IntervalWait | 0734c55383f193df7b6efb53a0459f69c01e75aa | [
"MIT"
] | null | null | null |
#include <chrono>
#include <iostream>
#include <iomanip>
#include <windows.h>
#include <winuser.h>
#include <conio.h>
#include "./IntervalWait.h"
#pragma comment(lib, "user32.lib")
double Now()
{
using namespace std::chrono;
return duration_cast<nanoseconds>(steady_clock::now().time_since_epoch()).coun... | 19.377358 | 110 | 0.573515 | EmuraDaisuke |
9bb1da14b77ac8949214478663c1c4f92fa7c00f | 425 | cpp | C++ | sources/Vertex.cpp | jbalestr42/GraphicsEngine | f317bddf750577602b231824c7f880142f5a8ce6 | [
"WTFPL"
] | 2 | 2017-05-26T14:37:23.000Z | 2021-06-07T09:39:18.000Z | sources/Vertex.cpp | jbalestr42/GraphicsEngine | f317bddf750577602b231824c7f880142f5a8ce6 | [
"WTFPL"
] | 1 | 2016-11-26T15:18:26.000Z | 2017-05-24T18:01:25.000Z | sources/Vertex.cpp | jbalestr42/GraphicsEngine | f317bddf750577602b231824c7f880142f5a8ce6 | [
"WTFPL"
] | 3 | 2017-06-07T16:41:58.000Z | 2022-03-18T05:12:37.000Z | #include "Vertex.hpp"
Vertex::Vertex(void) { }
Vertex::Vertex(Vector3 const & pos, Vector2 const & u, Vector3 const & n, Color const & col)
{
position = pos;
uv = u;
normal = n;
color = col;
}
Vertex::Vertex(Vertex const & vertex)
{
*this = vertex;
}
Vertex & Vertex::operator=(Vertex const & vertex)
{
positio... | 16.346154 | 92 | 0.656471 | jbalestr42 |
9bb5e782a604379aea0b4df7a8df7d81af1c3062 | 4,003 | cpp | C++ | chapter24/ch24_drill.cpp | ClassAteam/stroustrup-ppp | ea9e85d4ea9890038eb5611c3bc82734c8706ce7 | [
"MIT"
] | 124 | 2018-06-23T10:16:56.000Z | 2022-03-19T15:16:12.000Z | chapter24/ch24_drill.cpp | therootfolder/stroustrup-ppp | b1e936c9a67b9205fdc9712c42496b45200514e2 | [
"MIT"
] | 23 | 2018-02-08T20:57:46.000Z | 2021-10-08T13:58:29.000Z | chapter24/ch24_drill.cpp | ClassAteam/stroustrup-ppp | ea9e85d4ea9890038eb5611c3bc82734c8706ce7 | [
"MIT"
] | 65 | 2019-05-27T03:05:56.000Z | 2022-03-26T03:43:05.000Z | //
// Stroustrup - Programming Principles & Practice
//
// Chapter 24 Drill
//
// Some fun and odd stuff here, including a sqrt exercise from chapter 5.
//
#include <iostream>
#include <stdexcept>
#include <iomanip>
#include <complex>
#include <numeric>
#include "../text_lib/Matrix.h"
#include "../text_lib/MatrixIO.h"... | 30.792308 | 78 | 0.481139 | ClassAteam |
9bc32cff6bd178fb7f9757ed33635c622f424982 | 784 | cpp | C++ | Codeforces/1562A-the-miracle-and-the-sleeper.cpp | SusmoySenGupta/online-judge-solutions | 8735a1bc71a05dc46255664c3ec6f47f042bfa6c | [
"MIT"
] | null | null | null | Codeforces/1562A-the-miracle-and-the-sleeper.cpp | SusmoySenGupta/online-judge-solutions | 8735a1bc71a05dc46255664c3ec6f47f042bfa6c | [
"MIT"
] | null | null | null | Codeforces/1562A-the-miracle-and-the-sleeper.cpp | SusmoySenGupta/online-judge-solutions | 8735a1bc71a05dc46255664c3ec6f47f042bfa6c | [
"MIT"
] | null | null | null | /*
author: Susmoy Sen Gupta
email: susmoy.cse@gmail.com
github: github.com/SusmoySenGupta
Judge: Codeforces
problem no: 1562A
problem name: The Miracle and the Sleeper
problem link: https://codeforces.com/problemset/problem/1562/A
Status: __Solved__
Solved at: Sep/03/2021 11:37
*/
#include <iostream>
#defi... | 15.68 | 63 | 0.618622 | SusmoySenGupta |
9bc8a62ca82accee9ad861984e54ccec21d7f854 | 1,835 | cpp | C++ | RedisPublishCommand.cpp | MutesK/Replication | 8b77c7257e8265daebdc4b74a279e292906c6740 | [
"MIT"
] | null | null | null | RedisPublishCommand.cpp | MutesK/Replication | 8b77c7257e8265daebdc4b74a279e292906c6740 | [
"MIT"
] | null | null | null | RedisPublishCommand.cpp | MutesK/Replication | 8b77c7257e8265daebdc4b74a279e292906c6740 | [
"MIT"
] | null | null | null | //
// Created by JunMin Kim on 2020/11/01.
//
#include "RedisCommon.h"
#include "RedisConnection.hpp"
#include "RedisPublishCommand.hpp"
#ifdef REPLICATION_REDIS
namespace Replication
{
namespace Redis
{
RedisPublishCommand::RedisPublishCommand(const ConnectionPtr& Ptr)
: Command(Ptr)... | 26.214286 | 117 | 0.575477 | MutesK |
9bc8c3fd80f849e76daae272e351538c8f0c4b2f | 1,126 | cpp | C++ | engine/Fury/BufferManager.cpp | sindney/fury3d | a5880af615c3225e279eb63a9193c7ca8b5fcf49 | [
"MIT"
] | 95 | 2016-01-29T08:58:02.000Z | 2022-02-07T02:42:20.000Z | engine/Fury/BufferManager.cpp | sindney/fury3d | a5880af615c3225e279eb63a9193c7ca8b5fcf49 | [
"MIT"
] | 3 | 2017-07-30T02:21:50.000Z | 2018-10-12T13:55:32.000Z | engine/Fury/BufferManager.cpp | sindney/fury3d | a5880af615c3225e279eb63a9193c7ca8b5fcf49 | [
"MIT"
] | 30 | 2016-01-29T09:48:34.000Z | 2021-11-09T13:15:36.000Z | #include "Fury/BufferManager.h"
namespace fury
{
void BufferManager::Remove(size_t id)
{
auto it = m_Buffers.find(id);
if (it != m_Buffers.end())
m_Buffers.erase(it);
}
void BufferManager::Release(size_t id)
{
auto it = m_Buffers.find(id);
if (it != m_Buffers.end())
{
if (!it->sec... | 17.59375 | 65 | 0.619005 | sindney |
9bcf042f20f6db6d3b65e55bf9555452197051ab | 690 | cpp | C++ | sources/src/Sx/Signals/Observer.cpp | vsemyonoff/observer | e006286e102efc4d5c372bd742ff843579c1b5a7 | [
"BSD-2-Clause"
] | 1 | 2020-02-13T19:42:11.000Z | 2020-02-13T19:42:11.000Z | sources/src/Sx/Signals/Observer.cpp | vsemyonoff/observer | e006286e102efc4d5c372bd742ff843579c1b5a7 | [
"BSD-2-Clause"
] | null | null | null | sources/src/Sx/Signals/Observer.cpp | vsemyonoff/observer | e006286e102efc4d5c372bd742ff843579c1b5a7 | [
"BSD-2-Clause"
] | null | null | null | #include <Sx/Signals/Connection.hpp>
#include <Sx/Signals/Observer.hpp>
using namespace Sx::Signals;
Observer::~Observer() noexcept
{
for (const auto& c : connections)
c->detached = true;
connections.clear();
}
Observer::Observer(const Observer&) noexcept {}
Observer& Observer::operator=(const Obser... | 18.157895 | 66 | 0.678261 | vsemyonoff |
9bcfef469d052cec0fd780068f38ba19bea02d35 | 103 | hpp | C++ | code/include/common/graphics/drawables/menu/menu.hpp | StuntHacks/infinite-dungeons | b462dd27c4e0f7285940e45d086b5d022fea23df | [
"MIT"
] | null | null | null | code/include/common/graphics/drawables/menu/menu.hpp | StuntHacks/infinite-dungeons | b462dd27c4e0f7285940e45d086b5d022fea23df | [
"MIT"
] | null | null | null | code/include/common/graphics/drawables/menu/menu.hpp | StuntHacks/infinite-dungeons | b462dd27c4e0f7285940e45d086b5d022fea23df | [
"MIT"
] | null | null | null | #include "TextBox.hpp"
#include "textboxes/textboxes.hpp"
#include "circle_selects/circle_selects.hpp"
| 25.75 | 44 | 0.805825 | StuntHacks |
9bd80b08b5d3248db06b924845890cd9b9fa9d6f | 7,249 | hpp | C++ | sdl/Hypergraph/OpenFstDraw.hpp | sdl-research/hyp | d39f388f9cd283bcfa2f035f399b466407c30173 | [
"Apache-2.0"
] | 29 | 2015-01-26T21:49:51.000Z | 2021-06-18T18:09:42.000Z | sdl/Hypergraph/OpenFstDraw.hpp | hypergraphs/hyp | d39f388f9cd283bcfa2f035f399b466407c30173 | [
"Apache-2.0"
] | 1 | 2015-12-08T15:03:15.000Z | 2016-01-26T14:31:06.000Z | sdl/Hypergraph/OpenFstDraw.hpp | hypergraphs/hyp | d39f388f9cd283bcfa2f035f399b466407c30173 | [
"Apache-2.0"
] | 4 | 2015-11-21T14:25:38.000Z | 2017-10-30T22:22:00.000Z | // Copyright 2014-2015 SDL plc
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing,... | 33.873832 | 114 | 0.667816 | sdl-research |
9be1c4458b75455036fa5199e45d238c309b037f | 4,567 | hpp | C++ | io/converter/math/string_to_value_converter.hpp | aconstlink/snakeoil | 3c6e02655e1134f8422f01073090efdde80fc109 | [
"MIT"
] | 1 | 2017-08-11T19:12:24.000Z | 2017-08-11T19:12:24.000Z | io/converter/math/string_to_value_converter.hpp | aconstlink/snakeoil | 3c6e02655e1134f8422f01073090efdde80fc109 | [
"MIT"
] | 11 | 2018-07-07T20:09:44.000Z | 2020-02-16T22:45:09.000Z | io/converter/math/string_to_value_converter.hpp | aconstlink/snakeoil | 3c6e02655e1134f8422f01073090efdde80fc109 | [
"MIT"
] | null | null | null | //------------------------------------------------------------
// snakeoil (c) Alexis Constantin Link
// Distributed under the MIT license
//------------------------------------------------------------
#ifndef _SNAKEOIL_IO_MATH_STRING_TO_VALUE_CONVERTER_H_
#define _SNAKEOIL_IO_MATH_STRING_TO_VALUE_CONVERTER_H_
#includ... | 36.830645 | 134 | 0.563608 | aconstlink |
9be9bf0b529c7b7ad58fd54d05154becc1240e77 | 83 | cpp | C++ | Tests/TestsRosicAndRapt/Source/rosic_tests/PortedFromRSLib/RSLib/Core/Text/KeyValueStringPair.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 34 | 2017-04-19T18:26:02.000Z | 2022-02-15T17:47:26.000Z | Tests/TestsRosicAndRapt/Source/rosic_tests/PortedFromRSLib/RSLib/Core/Text/KeyValueStringPair.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 307 | 2017-05-04T21:45:01.000Z | 2022-02-03T00:59:01.000Z | Tests/TestsRosicAndRapt/Source/rosic_tests/PortedFromRSLib/RSLib/Core/Text/KeyValueStringPair.cpp | RobinSchmidt/RS-MET-Preliminary | 6c01cbaad7cce3daa3293c444dd9e4b74e5ebfbe | [
"FTL"
] | 4 | 2017-09-05T17:04:31.000Z | 2021-12-15T21:24:28.000Z | using namespace RSLib;
/*
rsKeyValueStringPair::~rsKeyValueStringPair()
{
}
*/
| 9.222222 | 46 | 0.710843 | RobinSchmidt |
9bf69f554bcf843f358fa3a214d37b0a371f8ddf | 962 | cpp | C++ | Programming-Contest/Strings/Automation.cpp | ar-pavel/Code-Library | 2d1b952231c1059bbf98d85d2c23fd8fb21b455c | [
"MIT"
] | null | null | null | Programming-Contest/Strings/Automation.cpp | ar-pavel/Code-Library | 2d1b952231c1059bbf98d85d2c23fd8fb21b455c | [
"MIT"
] | null | null | null | Programming-Contest/Strings/Automation.cpp | ar-pavel/Code-Library | 2d1b952231c1059bbf98d85d2c23fd8fb21b455c | [
"MIT"
] | null | null | null |
#define MAX_SIZE 1000010
int f[MAX_SIZE][26];
void Compute_Transition_Fnc(string P)
{
int m = P.size();
forab(q,0,m){
string Pq = P.substr(0,q);
forab(c,'a','z'){
int K = min( m , q+1 );
string aux = Pq + c;
while(1){
bool check = true;
... | 24.666667 | 81 | 0.461538 | ar-pavel |
9bf946c493624f7160d5af830eb40502639eed13 | 6,208 | cpp | C++ | SATsolver.cpp | erikkvam/SATsolver | 958bf94dd2748b8f6a16bac813b03bb409f097ad | [
"MIT"
] | null | null | null | SATsolver.cpp | erikkvam/SATsolver | 958bf94dd2748b8f6a16bac813b03bb409f097ad | [
"MIT"
] | null | null | null | SATsolver.cpp | erikkvam/SATsolver | 958bf94dd2748b8f6a16bac813b03bb409f097ad | [
"MIT"
] | null | null | null | #include <iostream>
#include <stdlib.h>
#include <algorithm>
#include <vector>
using namespace std;
#define UNDEF -1
#define TRUE 1
#define FALSE 0
uint numVars;
uint numClauses;
vector<vector<int> > clauses;
vector<int> model;
vector<int> modelStack;
uint indexOfNextLitToPropagate;
uint decisionLevel;
vector<vector... | 34.681564 | 143 | 0.536082 | erikkvam |
50000dfb3397b837cde449d5ec3cf38fcb308ea3 | 13,922 | cpp | C++ | mbed-client/source/m2mdiscover.cpp | marcuschangarm/mbed-cloud-client | d7edc529ed3722c811ff401440ef58ea980bf543 | [
"Apache-2.0"
] | 27 | 2018-04-04T12:06:23.000Z | 2020-10-16T08:58:38.000Z | mbed-client/source/m2mdiscover.cpp | marcuschangarm/mbed-cloud-client | d7edc529ed3722c811ff401440ef58ea980bf543 | [
"Apache-2.0"
] | 41 | 2018-07-12T08:09:39.000Z | 2020-11-06T13:47:43.000Z | mbed-client/source/m2mdiscover.cpp | marcuschangarm/mbed-cloud-client | d7edc529ed3722c811ff401440ef58ea980bf543 | [
"Apache-2.0"
] | 53 | 2018-04-16T08:36:25.000Z | 2020-11-02T15:50:43.000Z | /*
* Copyright (c) 2021 Pelion. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
* 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
*... | 40.353623 | 194 | 0.661112 | marcuschangarm |
50055b78e2f5144dcbd0d4c4353d0018b8456238 | 1,680 | hh | C++ | LFSR/src/LFSR.hh | mvy/Cryptographic-C---Toolkit | 74f46d4ccca4f8af3e1af9580d95be9d84ced152 | [
"MIT"
] | null | null | null | LFSR/src/LFSR.hh | mvy/Cryptographic-C---Toolkit | 74f46d4ccca4f8af3e1af9580d95be9d84ced152 | [
"MIT"
] | null | null | null | LFSR/src/LFSR.hh | mvy/Cryptographic-C---Toolkit | 74f46d4ccca4f8af3e1af9580d95be9d84ced152 | [
"MIT"
] | 1 | 2019-06-22T20:25:43.000Z | 2019-06-22T20:25:43.000Z | /*
* Cryptographic C++ Toolkit (CCTk)
* Martial Lienert, Yves Stadler
*/
#ifndef __LFSR_HH__
#define __LFSR_HH__
#include "CCTkConfig.hh"
#include<vector>
/**
* Linear Feedback Shift Register
*
* More information on :
* http://en.wikipedia.org/wiki/Linear_feedback_shift_register
*/
/* Ha... | 21 | 115 | 0.62381 | mvy |
500e80e7c5580d995ef762523f48b356735ccdb2 | 1,236 | cpp | C++ | src/memory/xstr.cpp | Colinwang531/av_converged_communication_system_architecture | d8d8a2ff72b5342fd0c3426978884c0e9c43dde8 | [
"MIT"
] | 2 | 2021-12-10T07:45:30.000Z | 2021-12-17T01:42:36.000Z | src/memory/xstr.cpp | Colinwang531/av_converged_communication_system_architecture | d8d8a2ff72b5342fd0c3426978884c0e9c43dde8 | [
"MIT"
] | null | null | null | src/memory/xstr.cpp | Colinwang531/av_converged_communication_system_architecture | d8d8a2ff72b5342fd0c3426978884c0e9c43dde8 | [
"MIT"
] | null | null | null | #ifdef _WINDOWS
#include <string.h>
#else
#include <cstring>
#endif//WINDOWS
#include <new>
#include "error_code.h"
#include "memory/xstr.h"
using namespace framework::utils::memory;
XStr::XStr()
{}
XStr::~XStr()
{}
int XStr::copy(
const char* src/* = nullptr*/,
const uint64_t src_bytes/* = 0*/,
char* ... | 17.913043 | 108 | 0.572816 | Colinwang531 |
5019f50e041edd4dd3dd83e2568da473280fd281 | 11,926 | cpp | C++ | RelevanceAnnotator.cpp | briangreenery/useless-text-editor | 3e0bf11a9f833b88a0a69f2e6f564743b2f9e5b3 | [
"Unlicense"
] | 4 | 2018-05-17T11:17:26.000Z | 2021-12-01T00:48:43.000Z | RelevanceAnnotator.cpp | briangreenery/useless-text-editor | 3e0bf11a9f833b88a0a69f2e6f564743b2f9e5b3 | [
"Unlicense"
] | null | null | null | RelevanceAnnotator.cpp | briangreenery/useless-text-editor | 3e0bf11a9f833b88a0a69f2e6f564743b2f9e5b3 | [
"Unlicense"
] | 1 | 2021-05-31T19:08:00.000Z | 2021-05-31T19:08:00.000Z | // RelevanceAnnotator.cpp
#include "RelevanceAnnotator.h"
#include "TextStyleRegistry.h"
#include "TextDocument.h"
#include "TextDocumentReader.h"
#include "TextRange.h"
#include <algorithm>
RelevanceAnnotator::RelevanceAnnotator( const TextDocument& doc, TextStyleRegistry& styleRegistry )
: m_doc( doc )
... | 27.353211 | 125 | 0.668372 | briangreenery |
501ac698ad9439e27bac3263edc9c84cd9d66f66 | 63,046 | cxx | C++ | Peridigm/Code/Anisotropic_Material/io/mesh_input/quick_grid/QuickGrid.cxx | oldninja/PeriDoX | f31bccc7b8ea60cd814d00732aebdbbe876a2ac7 | [
"BSD-3-Clause"
] | null | null | null | Peridigm/Code/Anisotropic_Material/io/mesh_input/quick_grid/QuickGrid.cxx | oldninja/PeriDoX | f31bccc7b8ea60cd814d00732aebdbbe876a2ac7 | [
"BSD-3-Clause"
] | null | null | null | Peridigm/Code/Anisotropic_Material/io/mesh_input/quick_grid/QuickGrid.cxx | oldninja/PeriDoX | f31bccc7b8ea60cd814d00732aebdbbe876a2ac7 | [
"BSD-3-Clause"
] | null | null | null | /*! \file QuickGrid.cxx */
//@HEADER
// ************************************************************************
//
// Peridigm
// Copyright (2011) Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
// the U.S. Government retains ... | 32.019299 | 181 | 0.657869 | oldninja |
501f5c8d526c8ad541d0e3388d5379bf84b0c33c | 13,785 | cpp | C++ | Nacro/SDK/FN_Feedback_RateExperience_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 11 | 2021-08-08T23:25:10.000Z | 2022-02-19T23:07:22.000Z | Nacro/SDK/FN_Feedback_RateExperience_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 1 | 2022-01-01T22:51:59.000Z | 2022-01-08T16:14:15.000Z | Nacro/SDK/FN_Feedback_RateExperience_functions.cpp | Milxnor/Nacro | eebabf662bbce6d5af41820ea0342d3567a0aecc | [
"BSD-2-Clause"
] | 8 | 2021-08-09T13:51:54.000Z | 2022-01-26T20:33:37.000Z | // Fortnite (1.8) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "../SDK.hpp"
namespace SDK
{
//---------------------------------------------------------------------------
//Functions
//---------------------------------------------------------------------------
// Function Feedback_RateExperience.Feed... | 35.620155 | 200 | 0.796518 | Milxnor |
5023fef1b19ae04de7e5c6074238da5f964c3e25 | 3,589 | cpp | C++ | Graphs/bipartite_ques.cpp | hinduBale/30DayDSAlgoChallenge | 86296763a6fbbff84de04e9da4128dae89466ce3 | [
"MIT"
] | 1 | 2021-04-04T13:22:37.000Z | 2021-04-04T13:22:37.000Z | Graphs/bipartite_ques.cpp | hinduBale/30DayDSAlgoChallenge | 86296763a6fbbff84de04e9da4128dae89466ce3 | [
"MIT"
] | null | null | null | Graphs/bipartite_ques.cpp | hinduBale/30DayDSAlgoChallenge | 86296763a6fbbff84de04e9da4128dae89466ce3 | [
"MIT"
] | null | null | null | /*
Link to question:
https://www.spoj.com/problems/BUGLIFE/
Question:
Professor Hopper is researching the sexual behavior of a rare species of bugs. He assumes that they feature two different genders and that they only interact with bugs of the opposite gender. In his experiment, individual bugs and their interactions... | 26.984962 | 399 | 0.696573 | hinduBale |
502785fcbdf26c731c54ed2840555ef1d3910b87 | 1,225 | hpp | C++ | src/game/sys/sound/sound_comp.hpp | lowkey42/BanishedBlaze | 71e66f444a84bea1eca3639de3f3ff1f79e385d1 | [
"MIT"
] | null | null | null | src/game/sys/sound/sound_comp.hpp | lowkey42/BanishedBlaze | 71e66f444a84bea1eca3639de3f3ff1f79e385d1 | [
"MIT"
] | null | null | null | src/game/sys/sound/sound_comp.hpp | lowkey42/BanishedBlaze | 71e66f444a84bea1eca3639de3f3ff1f79e385d1 | [
"MIT"
] | null | null | null | /** Entities that can play sound effects *************************************
* *
* Copyright (c) 2016 Florian Oetke *
* This file is distributed under the MIT License *
* ... | 27.222222 | 79 | 0.528163 | lowkey42 |
5029b126e8fa901b23dd5432a0392c4aecddda76 | 1,156 | cpp | C++ | src/Services/StringizeService/ConstStringHolderMemory.cpp | Terryhata6/Mengine | dfe36fdc84d7398fbbbd199feffc46c6f157f1d4 | [
"MIT"
] | 39 | 2016-04-21T03:25:26.000Z | 2022-01-19T14:16:38.000Z | src/Services/StringizeService/ConstStringHolderMemory.cpp | Terryhata6/Mengine | dfe36fdc84d7398fbbbd199feffc46c6f157f1d4 | [
"MIT"
] | 23 | 2016-06-28T13:03:17.000Z | 2022-02-02T10:11:54.000Z | src/Services/StringizeService/ConstStringHolderMemory.cpp | Terryhata6/Mengine | dfe36fdc84d7398fbbbd199feffc46c6f157f1d4 | [
"MIT"
] | 14 | 2016-06-22T20:45:37.000Z | 2021-07-05T12:25:19.000Z | #include "ConstStringHolderMemory.h"
#include "Kernel/MemoryAllocator.h"
#include "stdex/memorycopy.h"
namespace Mengine
{
//////////////////////////////////////////////////////////////////////////
ConstStringHolderMemory::ConstStringHolderMemory()
{
}
////////////////////////////////... | 38.533333 | 144 | 0.482699 | Terryhata6 |
df24b20b1e7b4e2edb6c344f2b05f59b5bcaccc6 | 5,505 | cpp | C++ | SDL_Guide XX Move A Box/main.cpp | xeek-pro/SDL_Guide | 16c9fbff4dd246b73e984ab4149e94ef418e532a | [
"MIT"
] | 3 | 2020-07-13T04:49:27.000Z | 2020-07-24T21:27:43.000Z | SDL_Guide XX Move A Box/main.cpp | xeek-pro/sdl_guide | 16c9fbff4dd246b73e984ab4149e94ef418e532a | [
"MIT"
] | null | null | null | SDL_Guide XX Move A Box/main.cpp | xeek-pro/sdl_guide | 16c9fbff4dd246b73e984ab4149e94ef418e532a | [
"MIT"
] | 1 | 2021-07-13T13:48:18.000Z | 2021-07-13T13:48:18.000Z | #include <SDL.h>
#include <iostream>
#include <sstream>
#include <string>
#include <stdlib.h>
#include <algorithm>
#include "SDL_RectEx.h"
int main(int argc, char* argv[])
{
std::string app_title = "SDL Box Movement Example";
int screen_width = 1024, screen_height = 768;
SDL_Window* main_window = NULL;
SDL_Rendere... | 40.182482 | 138 | 0.608174 | xeek-pro |
df2605f500607ef0a605342dc52c081358b2a97c | 722 | cpp | C++ | jni/application/Item.cpp | clarkdonald/eecs494explore3d | fd4086d2c5482a289d51ef71c5f1ae20347db80a | [
"BSD-2-Clause"
] | null | null | null | jni/application/Item.cpp | clarkdonald/eecs494explore3d | fd4086d2c5482a289d51ef71c5f1ae20347db80a | [
"BSD-2-Clause"
] | null | null | null | jni/application/Item.cpp | clarkdonald/eecs494explore3d | fd4086d2c5482a289d51ef71c5f1ae20347db80a | [
"BSD-2-Clause"
] | null | null | null | //
// Item.cpp
// game
//
// Created by Donald Clark on 10/30/13.
//
//
#include "Item.h"
#include "Utility.h"
using namespace Zeni;
using namespace Zeni::Collision;
Item::Item(const Point3f &corner_,
const Vector3f &scale_,
const Quaternion &rotation_)
: Game_Object(corner_, scale_, rotatio... | 16.409091 | 75 | 0.621884 | clarkdonald |
df263697f664190ec6cd11844239d5b2799142bb | 1,201 | hpp | C++ | desktop_simple/ebuilds/v1.12.0-noetic/libqicore-1.12.0-noetic/libqicore/qicore/logmanager.hpp | Maelic/ros_overlay_on_gentoo_prefix_32b | a2c9b217d66f4d29b087741e7e7da22ce6f58492 | [
"BSD-2-Clause"
] | null | null | null | desktop_simple/ebuilds/v1.12.0-noetic/libqicore-1.12.0-noetic/libqicore/qicore/logmanager.hpp | Maelic/ros_overlay_on_gentoo_prefix_32b | a2c9b217d66f4d29b087741e7e7da22ce6f58492 | [
"BSD-2-Clause"
] | null | null | null | desktop_simple/ebuilds/v1.12.0-noetic/libqicore-1.12.0-noetic/libqicore/qicore/logmanager.hpp | Maelic/ros_overlay_on_gentoo_prefix_32b | a2c9b217d66f4d29b087741e7e7da22ce6f58492 | [
"BSD-2-Clause"
] | null | null | null | /*
** Author(s):
** - Herve Cuche <hcuche@aldebaran-robotics.com>
** - Matthieu Nottale <mnottale@aldebaran-robotics.com>
**
** Copyright (C) 2013 Aldebaran Robotics
*/
#ifndef LOGMANAGER_HPP_
#define LOGMANAGER_HPP_
#include <qi/macro.hpp>
#include <qicore/api.hpp>
#include <qicore/logmessage.hpp>
#include <qi/an... | 20.706897 | 95 | 0.72856 | Maelic |
df49771f03ecc4b54003974a4397f9641afafb63 | 604 | cpp | C++ | tests/reconnect_on_signal.cpp | Yrds/observable | 20182bcd721e51d056a7419f4e06f3d2502c68c4 | [
"MIT"
] | 45 | 2016-07-07T12:11:18.000Z | 2022-02-11T08:24:22.000Z | tests/reconnect_on_signal.cpp | aseprite/observable | 8e03c3cb060120b25517503e6c1d9072686d1cd3 | [
"MIT"
] | 1 | 2018-08-14T00:35:11.000Z | 2018-08-14T23:13:27.000Z | tests/reconnect_on_signal.cpp | aseprite/observable | 8e03c3cb060120b25517503e6c1d9072686d1cd3 | [
"MIT"
] | 13 | 2016-11-01T16:02:51.000Z | 2021-07-14T22:48:57.000Z | // Observable Library
// Copyright (c) 2016 David Capello
//
// This file is released under the terms of the MIT license.
// Read LICENSE.txt for more information.
#include "obs/signal.h"
#include "test.h"
obs::signal<void()> sig;
obs::scoped_connection conn;
void func() {
conn = sig.connect(func);
// This seco... | 22.37037 | 70 | 0.690397 | Yrds |
df51b92829664124a7ba513a939f4e7d6effebb6 | 295 | cpp | C++ | Codeforces/1~999/985/A.cpp | tiger0132/code-backup | 9cb4ee5e99bf3c274e34f1e59d398ab52e51ecf7 | [
"MIT"
] | 6 | 2018-12-30T06:16:54.000Z | 2022-03-23T08:03:33.000Z | Codeforces/1~999/985/A.cpp | tiger0132/code-backup | 9cb4ee5e99bf3c274e34f1e59d398ab52e51ecf7 | [
"MIT"
] | null | null | null | Codeforces/1~999/985/A.cpp | tiger0132/code-backup | 9cb4ee5e99bf3c274e34f1e59d398ab52e51ecf7 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <cstdio>
int n, a[111], a1, a2;
int main() {
scanf("%d", &n), n /= 2;
for (int i = 0; i < n; i++) scanf("%d", a + i);
std::sort(a, a + n);
for (int i = 0; i < n; i++) a1 += abs(2 * i + 1 - a[i]), a2 += abs(2 * i + 2 - a[i]);
printf("%d", a1 < a2 ? a1 : a2);
} | 26.818182 | 86 | 0.447458 | tiger0132 |
df552f60e2c9d8a8be9d1a0a9bb191c427ea5ab3 | 61 | hpp | C++ | src/boost_fusion_container_generation_make_vector.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_fusion_container_generation_make_vector.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_fusion_container_generation_make_vector.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/fusion/container/generation/make_vector.hpp>
| 30.5 | 60 | 0.836066 | miathedev |
df58d9e989d4c1ff39ff5ca925a18e3f7768a188 | 3,000 | hpp | C++ | include/arcade/types.hpp | MisterPeModder/Arcade-Interface | 316e0ec874a98763cd1bad021814d476360d7ead | [
"MIT"
] | 1 | 2022-03-11T16:04:30.000Z | 2022-03-11T16:04:30.000Z | include/arcade/types.hpp | MisterPeModder/Arcade-Interface | 316e0ec874a98763cd1bad021814d476360d7ead | [
"MIT"
] | 3 | 2022-03-15T16:34:46.000Z | 2022-03-31T19:41:18.000Z | include/arcade/types.hpp | MisterPeModder/Arcade-Interface | 316e0ec874a98763cd1bad021814d476360d7ead | [
"MIT"
] | null | null | null | /*
** EPITECH PROJECT, 2022
** Arcade: Interface
** File description:
** Misc types
*/
/// @file
///
/// Misc types.
#ifndef ARCADE_TYPES_HPP_
#define ARCADE_TYPES_HPP_
namespace arcade
{
/// A 2D vector.
template <typename T> struct vec2 {
/// x coordinate.
T x;
/// y coordinate.
... | 20.979021 | 73 | 0.437667 | MisterPeModder |
df5d34c38359b1f660eb1efcce8a835d88584a70 | 5,889 | cpp | C++ | src/widget/menu.cpp | RyanDraves/CPPurses | 19cbdae2d18e702144659187ec989c486c714a0f | [
"MIT"
] | null | null | null | src/widget/menu.cpp | RyanDraves/CPPurses | 19cbdae2d18e702144659187ec989c486c714a0f | [
"MIT"
] | null | null | null | src/widget/menu.cpp | RyanDraves/CPPurses | 19cbdae2d18e702144659187ec989c486c714a0f | [
"MIT"
] | null | null | null | #include <cppurses/widget/widgets/menu.hpp>
#include <cstddef>
#include <cstdint>
#include <iterator>
#include <string>
#include <utility>
#include <signals/signals.hpp>
#include <cppurses/painter/attribute.hpp>
#include <cppurses/painter/glyph_string.hpp>
#include <cppurses/painter/painter.hpp>
#include <cppurses/s... | 29.009852 | 80 | 0.661572 | RyanDraves |
df5df3daab4989624d4b62d0c164d5c7b3c57da8 | 1,485 | cpp | C++ | gazebo_test_tools/src/spawn_cubes_unity.cpp | karthikm-0/gazebo-pkgs | 14f5966cddac35b59501ff3ee378e0cba650d3fb | [
"BSD-3-Clause"
] | null | null | null | gazebo_test_tools/src/spawn_cubes_unity.cpp | karthikm-0/gazebo-pkgs | 14f5966cddac35b59501ff3ee378e0cba650d3fb | [
"BSD-3-Clause"
] | null | null | null | gazebo_test_tools/src/spawn_cubes_unity.cpp | karthikm-0/gazebo-pkgs | 14f5966cddac35b59501ff3ee378e0cba650d3fb | [
"BSD-3-Clause"
] | null | null | null | #include <gazebo_test_tools/gazebo_cube_spawner.h>
#include <gazebo_test_tools/FakeObjectRecognizer.h>
#include <gazebo_test_tools/SpawnCubesUnity.h>
float dim = 0.05;
float mass = 0.05;
std::string frame_id = "world";
// Used to request cubes to be spawned through a cube_spawner service provided by Jennifer Buehl... | 27.5 | 128 | 0.686869 | karthikm-0 |
df608a16c05eec2080c7b18342b20acbaeeab262 | 849 | cpp | C++ | src/Exceptions.cpp | marcosivni/dicomlib | dd268d07368ff4f1ffd1f94cdaa1e2dbf30bc5c7 | [
"BSD-3-Clause"
] | null | null | null | src/Exceptions.cpp | marcosivni/dicomlib | dd268d07368ff4f1ffd1f94cdaa1e2dbf30bc5c7 | [
"BSD-3-Clause"
] | null | null | null | src/Exceptions.cpp | marcosivni/dicomlib | dd268d07368ff4f1ffd1f94cdaa1e2dbf30bc5c7 | [
"BSD-3-Clause"
] | null | null | null | /************************************************************************
* DICOMLIB
* Copyright 2003 Sunnybrook and Women's College Health Science Center
* Implemented by Trevor Morgan (morgan@sten.sunnybrook.utoronto.ca)
*
* See LICENSE.txt for copyright and licensing info.
******************************************... | 22.342105 | 86 | 0.600707 | marcosivni |
df64eca128a21b76db80a47157a3c8144567bd50 | 971 | hxx | C++ | include/kinggame/Player.hxx | Zaechus/thekinggame | 2a2dd1749f7c770a1c1c7f150fe6d8f1e69c6946 | [
"MIT"
] | 2 | 2018-04-15T23:13:18.000Z | 2018-04-19T11:02:21.000Z | include/kinggame/Player.hxx | LuckyChucky/kinggame | 6a5c89d70901645975af7f9fa5ee0c466a64b41b | [
"MIT"
] | null | null | null | include/kinggame/Player.hxx | LuckyChucky/kinggame | 6a5c89d70901645975af7f9fa5ee0c466a64b41b | [
"MIT"
] | 2 | 2018-04-23T00:05:28.000Z | 2018-09-02T21:51:30.000Z | // include/kinggame/Player.hxx
//
// Maxwell Anderson 2018
#ifndef THEKINGGAME_INCLUDE_KINGGAME_PLAYER_HXX_
#define THEKINGGAME_INCLUDE_KINGGAME_PLAYER_HXX_
#include <map>
#include <string>
#include "Obj.hxx"
#include "Room.hxx"
#include "World.hxx"
namespace kinggame {
class World;
class Player {
public:
Player... | 19.039216 | 66 | 0.710608 | Zaechus |
df689544c12a535686b9c9f51cdc368e57d92253 | 1,298 | hpp | C++ | libraries/plugins/apis/block_api/include/morphene/plugins/block_api/block_api_objects.hpp | morphene/morphene | 5620f9a8473690ff63e67b7b242a202d05f7ee86 | [
"MIT"
] | 4 | 2019-05-16T20:10:54.000Z | 2019-05-27T22:41:14.000Z | libraries/plugins/apis/block_api/include/morphene/plugins/block_api/block_api_objects.hpp | morphene/morphene | 5620f9a8473690ff63e67b7b242a202d05f7ee86 | [
"MIT"
] | null | null | null | libraries/plugins/apis/block_api/include/morphene/plugins/block_api/block_api_objects.hpp | morphene/morphene | 5620f9a8473690ff63e67b7b242a202d05f7ee86 | [
"MIT"
] | null | null | null | #pragma once
#include <morphene/chain/account_object.hpp>
#include <morphene/chain/block_summary_object.hpp>
#include <morphene/chain/global_property_object.hpp>
#include <morphene/chain/history_object.hpp>
#include <morphene/chain/morphene_objects.hpp>
#include <morphene/chain/transaction_object.hpp>
#include <morphen... | 33.282051 | 110 | 0.697227 | morphene |
df6c1484e866f38f78c718766f6ffc7938f05a1f | 37 | cpp | C++ | Defines.cpp | dlsocool/dcx | 3d209d27cbd719f1d6c6d125b6f935ecaa79094c | [
"BSD-3-Clause"
] | 18 | 2015-02-21T05:41:19.000Z | 2022-02-26T00:48:31.000Z | Defines.cpp | dlsocool/dcx | 3d209d27cbd719f1d6c6d125b6f935ecaa79094c | [
"BSD-3-Clause"
] | 68 | 2015-04-06T16:23:35.000Z | 2022-03-09T17:33:50.000Z | Defines.cpp | dlsocool/dcx | 3d209d27cbd719f1d6c6d125b6f935ecaa79094c | [
"BSD-3-Clause"
] | 2 | 2018-04-01T09:39:33.000Z | 2018-08-04T23:53:29.000Z | #include "defines.h"
/* EOF */
| 7.4 | 21 | 0.486486 | dlsocool |
df71f82e1b480dbda71965ff96401214791386b2 | 14,850 | cpp | C++ | src/games/hexon/HexBlocks_Hexon_Utils.cpp | Press-Play-On-Tape/TheHex | ad2876e1de0d09dbe8123201ecc88bcd4a0d7c5c | [
"BSD-3-Clause"
] | 1 | 2021-07-05T15:55:59.000Z | 2021-07-05T15:55:59.000Z | src/games/hexon/HexBlocks_Hexon_Utils.cpp | Press-Play-On-Tape/TheHex | ad2876e1de0d09dbe8123201ecc88bcd4a0d7c5c | [
"BSD-3-Clause"
] | null | null | null | src/games/hexon/HexBlocks_Hexon_Utils.cpp | Press-Play-On-Tape/TheHex | ad2876e1de0d09dbe8123201ecc88bcd4a0d7c5c | [
"BSD-3-Clause"
] | null | null | null | #include "../../HexBlocks.h"
using PC = Pokitto::Core;
using PD = Pokitto::Display;
#include "../../utils/Constants.h"
#include "../../sounds/Sounds.h"
bool Game::isValidMovement_Hexon(SelectedShape &selectedShape) {
return isValidMovement_Hexon(selectedShape, this->gamePlayVariables.x, this->gamePlayVariab... | 24.50495 | 158 | 0.46303 | Press-Play-On-Tape |
df7e7b4824394733be5bed1bbf27832bb315434a | 698 | cpp | C++ | example-midi.cpp | gsliepen/modsynth | 38ef0cbdf7d5a61b682df8ce73ae5edb8adc40de | [
"MIT"
] | 1 | 2021-01-11T02:02:19.000Z | 2021-01-11T02:02:19.000Z | example-midi.cpp | gsliepen/modsynth | 38ef0cbdf7d5a61b682df8ce73ae5edb8adc40de | [
"MIT"
] | null | null | null | example-midi.cpp | gsliepen/modsynth | 38ef0cbdf7d5a61b682df8ce73ae5edb8adc40de | [
"MIT"
] | null | null | null | /* SPDX-License-Identifier: MIT */
#include <iostream>
#include "modsynth.hpp"
#include "midi.hpp"
using namespace ModSynth;
int main()
{
// Components
MIDI midi;
VCO vco;
VCF vcf{0, 3};
VCA vca{2000};
Envelope envelope{0.1, 1, 0.1};
Speaker speaker;
// Routing
Wire wires[] {
{midi.channels[0].gate, ... | 20.529412 | 49 | 0.620344 | gsliepen |
df7f817be3946af6097fbb92bcf18326b471680d | 1,586 | cpp | C++ | test/core/testCoordinator.cpp | luyi0619/coco | 486baa4341be58c26be8c964d0550ae84604cdac | [
"MIT"
] | 2 | 2021-08-12T12:23:26.000Z | 2021-09-12T04:12:41.000Z | test/core/testCoordinator.cpp | luyi0619/coco | 486baa4341be58c26be8c964d0550ae84604cdac | [
"MIT"
] | null | null | null | test/core/testCoordinator.cpp | luyi0619/coco | 486baa4341be58c26be8c964d0550ae84604cdac | [
"MIT"
] | null | null | null | //
// Created by Yi Lu on 8/28/18.
//
#include "benchmark/tpcc/Database.h"
#include "core/Coordinator.h"
#include <gtest/gtest.h>
DEFINE_int32(threads, 1, "the number of threads.");
DEFINE_string(servers, "127.0.0.1:10010;127.0.0.1:10011;127.0.0.1:10012",
"semicolon-separated list of servers");
TEST(Te... | 22.027778 | 73 | 0.653846 | luyi0619 |
df7fe383943d3aef908aec409cab14e27574f932 | 1,287 | cpp | C++ | src/States/IntroState.cpp | ananace/LD43 | 5b52767d09b9fceb60200ef000e83e2a308adb81 | [
"MIT"
] | null | null | null | src/States/IntroState.cpp | ananace/LD43 | 5b52767d09b9fceb60200ef000e83e2a308adb81 | [
"MIT"
] | null | null | null | src/States/IntroState.cpp | ananace/LD43 | 5b52767d09b9fceb60200ef000e83e2a308adb81 | [
"MIT"
] | null | null | null | #include "../Application.hpp"
#include "IntroState.hpp"
#include "MenuState.hpp"
#include <SFML/Graphics/Sprite.hpp>
#include <SFML/Window/Event.hpp>
using States::IntroState;
IntroState::IntroState()
: m_introTimer(0)
{
}
void IntroState::init()
{
auto& resman = getApp().getResourceManager();
// TODO:... | 24.75 | 76 | 0.671329 | ananace |
df8e2b842bd0864d39a8995a20cfeca468852bc6 | 460 | cpp | C++ | Intra NSU Programming Contest/Welcome to INPC/Welcome to INPC/main.cpp | anirudha-ani/Toph | e7781731e8b1d6a107df3eb88f3976b8f4b0f955 | [
"Apache-2.0"
] | null | null | null | Intra NSU Programming Contest/Welcome to INPC/Welcome to INPC/main.cpp | anirudha-ani/Toph | e7781731e8b1d6a107df3eb88f3976b8f4b0f955 | [
"Apache-2.0"
] | null | null | null | Intra NSU Programming Contest/Welcome to INPC/Welcome to INPC/main.cpp | anirudha-ani/Toph | e7781731e8b1d6a107df3eb88f3976b8f4b0f955 | [
"Apache-2.0"
] | null | null | null | //
// main.cpp
// Welcome to INPC
//
// Created by Anirudha Paul on 2/16/16.
// Copyright © 2016 Anirudha Paul. All rights reserved.
//
#include <iostream>
using namespace std;
int main(int argc, const char * argv[])
{
int names;
string input;
cin >> names;
for (int i = 0 ; i < names; i... | 16.428571 | 56 | 0.521739 | anirudha-ani |
df988e6431d9ac472e246f9dddb2bb6193bccdf1 | 9,099 | cpp | C++ | modules/actors/tests/test_actors.cpp | agruzdev/Yato | 9b5a49f6ec4169b67b9e5ffd11fdae9c238b0a3d | [
"Apache-2.0"
] | 9 | 2020-04-16T10:43:09.000Z | 2022-03-07T04:31:52.000Z | modules/actors/tests/test_actors.cpp | agruzdev/Yato | 9b5a49f6ec4169b67b9e5ffd11fdae9c238b0a3d | [
"Apache-2.0"
] | 3 | 2020-04-16T10:51:31.000Z | 2021-09-02T19:37:26.000Z | modules/actors/tests/test_actors.cpp | agruzdev/Yato | 9b5a49f6ec4169b67b9e5ffd11fdae9c238b0a3d | [
"Apache-2.0"
] | null | null | null | /**
* YATO library
*
* Apache License, Version 2.0
* Copyright (c) 2016-2020 Alexey Gruzdev
*/
#include "gtest/gtest.h"
#include <thread>
#include <yato/actors/actor_system.h>
#include <yato/actors/logger.h>
#include <yato/any_match.h>
#include <yato/stl_utility.h>
#include "test_actors_common.h"
namespace
{
... | 24.658537 | 109 | 0.528849 | agruzdev |
dfa253a08b9190811a200df0db5021681ddfef32 | 371 | cpp | C++ | lib/src/dexode/eventbus/perk/TagPerk.cpp | nicolasnoble/EventBus | de1852c6394640c76ab58429245408dabcf6cc79 | [
"Apache-2.0"
] | 231 | 2017-08-17T16:08:44.000Z | 2022-03-31T16:35:32.000Z | lib/src/dexode/eventbus/perk/TagPerk.cpp | qilinlee/EventBus | 182fea93590524578fe90226e7e1b3eb42357e34 | [
"Apache-2.0"
] | 37 | 2018-07-31T08:00:01.000Z | 2021-08-03T14:32:33.000Z | lib/src/dexode/eventbus/perk/TagPerk.cpp | qilinlee/EventBus | 182fea93590524578fe90226e7e1b3eb42357e34 | [
"Apache-2.0"
] | 73 | 2017-07-25T14:45:14.000Z | 2022-03-29T02:10:48.000Z | //
// Created by gelldur on 24.12.2019.
//
#include "TagPerk.hpp"
namespace dexode::eventbus::perk
{
Flag TagPerk::onPrePostponeEvent(PostponeHelper& postponeCall)
{
if(auto found = _eventsToWrap.find(postponeCall.eventID); found != _eventsToWrap.end())
{
found->second(postponeCall.event);
return Flag::postpone... | 17.666667 | 88 | 0.735849 | nicolasnoble |
dfac013e2cde596978dd01eea4a823cefd6bbb31 | 1,041 | cpp | C++ | STRINGS/Convert String to LowerCase .cpp | snanacha/Coding-questions | 18c4b5a23fc3da5c419d2ec69fbf13b7b4ecee0d | [
"MIT"
] | null | null | null | STRINGS/Convert String to LowerCase .cpp | snanacha/Coding-questions | 18c4b5a23fc3da5c419d2ec69fbf13b7b4ecee0d | [
"MIT"
] | 1 | 2021-03-30T14:00:56.000Z | 2021-03-30T14:00:56.000Z | STRINGS/Convert String to LowerCase .cpp | snanacha/Coding-questions | 18c4b5a23fc3da5c419d2ec69fbf13b7b4ecee0d | [
"MIT"
] | null | null | null | Change the string
/*
Convert String to LowerCase
School Accuracy: 80.57% Submissions: 4374 Points: 0
Given a string S. The task is to convert characters of string to lowercase.
Example 1:
Input: S = "ABCddE"
Output: "abcdde"
Explanation: A, B, C and E are converted to
a, b, c and E thus all uppercase cha... | 22.148936 | 146 | 0.666667 | snanacha |
dfbaabfaab63a43fbb34ed35306d1ce49f04d167 | 2,974 | cpp | C++ | src/core/parsers/message/token_scanner.cpp | tinganho/lya | d956220da76d5658e8e2c0654db2068427463c60 | [
"Apache-2.0"
] | 1 | 2020-06-04T06:57:31.000Z | 2020-06-04T06:57:31.000Z | src/core/parsers/message/token_scanner.cpp | tinganho/lya | d956220da76d5658e8e2c0654db2068427463c60 | [
"Apache-2.0"
] | 6 | 2018-01-05T02:55:59.000Z | 2018-01-09T03:29:55.000Z | src/core/parsers/message/token_scanner.cpp | tinganho/lya | d956220da76d5658e8e2c0654db2068427463c60 | [
"Apache-2.0"
] | null | null | null | //
// Created by Tingan Ho on 2017-11-06.
//
#include <glibmm/ustring.h>
#include <memory>
#include "token_scanner.h"
#include "syntaxes.h"
#include "diagnostics/diagnostics.h"
using namespace Lya::core::diagnostics;
using namespace Lya::lib::types;
using namespace Lya::lib::utils;
namespace Lya::core::parsers::mess... | 22.70229 | 97 | 0.654674 | tinganho |
dfbc2bbda90919250353bd56da1c6a15fd3f8b56 | 2,131 | hpp | C++ | src/backend/graph_compiler/core/src/compiler/config/context.hpp | wuxun-zhang/mkl-dnn | 00a239ad2c932b967234ffb528069800ffcc0334 | [
"Apache-2.0"
] | null | null | null | src/backend/graph_compiler/core/src/compiler/config/context.hpp | wuxun-zhang/mkl-dnn | 00a239ad2c932b967234ffb528069800ffcc0334 | [
"Apache-2.0"
] | null | null | null | src/backend/graph_compiler/core/src/compiler/config/context.hpp | wuxun-zhang/mkl-dnn | 00a239ad2c932b967234ffb528069800ffcc0334 | [
"Apache-2.0"
] | null | null | null | /*******************************************************************************
* Copyright 2020-2022 Intel 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://... | 33.825397 | 81 | 0.680432 | wuxun-zhang |
dfbeea734da4cfaf8372908ec4e6e8d614b2de90 | 6,978 | hpp | C++ | modules/haxm/src/common/interface/hax_types.hpp | dmiller423/virt86 | f6cedb78dc55b8ea1b8ca4b53209a58a49b5bd60 | [
"MIT"
] | 148 | 2019-02-19T11:05:28.000Z | 2022-02-26T11:57:05.000Z | modules/haxm/src/common/interface/hax_types.hpp | dmiller423/virt86 | f6cedb78dc55b8ea1b8ca4b53209a58a49b5bd60 | [
"MIT"
] | 16 | 2019-02-19T02:51:48.000Z | 2019-12-11T21:17:12.000Z | modules/haxm/src/common/interface/hax_types.hpp | dmiller423/virt86 | f6cedb78dc55b8ea1b8ca4b53209a58a49b5bd60 | [
"MIT"
] | 17 | 2019-02-19T04:05:33.000Z | 2021-05-02T12:14:13.000Z | /*
* Copyright (c) 2011 Intel Corporation
*
* 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 fol... | 38.766667 | 92 | 0.648037 | dmiller423 |
dfc6192adf49382bc2eea0871d47c6adde41586e | 1,272 | hpp | C++ | include/asmith/genetic-algorithm/optimisation_problem.hpp | asmith-git/genetic-algorithm | 90f66b562233b5a4ff687ff905db46575a2456b5 | [
"Apache-2.0"
] | null | null | null | include/asmith/genetic-algorithm/optimisation_problem.hpp | asmith-git/genetic-algorithm | 90f66b562233b5a4ff687ff905db46575a2456b5 | [
"Apache-2.0"
] | null | null | null | include/asmith/genetic-algorithm/optimisation_problem.hpp | asmith-git/genetic-algorithm | 90f66b562233b5a4ff687ff905db46575a2456b5 | [
"Apache-2.0"
] | null | null | null | // Copyright 2017 Adam Smith
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writin... | 35.333333 | 88 | 0.758648 | asmith-git |
dfcb68e61d0836ce410aba647e9b1ba55b96b1db | 245 | cpp | C++ | gohbcalc/gohbcalc.cpp | skapix/ohbcalc | 627ec6964268ce93d33032cff6f1813496881f78 | [
"MIT"
] | 1 | 2018-02-18T06:38:54.000Z | 2018-02-18T06:38:54.000Z | gohbcalc/gohbcalc.cpp | skapix/ohbcalc | 627ec6964268ce93d33032cff6f1813496881f78 | [
"MIT"
] | null | null | null | gohbcalc/gohbcalc.cpp | skapix/ohbcalc | 627ec6964268ce93d33032cff6f1813496881f78 | [
"MIT"
] | null | null | null | #include "CalculatorWindow.h"
#include <QApplication>
#include <memory>
using namespace std;
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
auto window = make_unique<CalculatorWindow>();
window->show();
app.exec();
} | 17.5 | 48 | 0.702041 | skapix |
dfcc98e08f4028cbaf65113757a66dd8be982f1d | 1,776 | cpp | C++ | atcoder/joi/JOI_012_yo/d.cpp | zaurus-yusya/atcoder | 5fc345b3da50222fa1366d1ce52ae58799488cef | [
"MIT"
] | 3 | 2020-05-27T16:27:12.000Z | 2021-01-27T12:47:12.000Z | atcoder/joi/JOI_012_yo/d.cpp | zaurus-yusya/Competitive-Programming | c72e13a11f76f463510bd4a476b86631d9d1b13a | [
"MIT"
] | null | null | null | atcoder/joi/JOI_012_yo/d.cpp | zaurus-yusya/Competitive-Programming | c72e13a11f76f463510bd4a476b86631d9d1b13a | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
typedef long long ll;
typedef long double ld;
#define rep(i,n) for(ll i=0;i<(n);i++)
#define repr(i,n) for(ll i=(n-1);i>=0;i--)
#define all(x) x.begin(),x.end()
#define br cout << "\n";
using namespace std;
const long long INF = 1e10;
const long long MOD = 1e9+7;
using Graph = vector<vector<ll>... | 26.909091 | 95 | 0.433559 | zaurus-yusya |
2547fd128dec4c1801b6ef1a284b9824816804b7 | 6,450 | hpp | C++ | include/tagreader.hpp | dda119141/mp3tags | c75818e4fd6341f2c0c0b482f5c6eb1809b382aa | [
"MIT"
] | 1 | 2020-08-01T21:51:05.000Z | 2020-08-01T21:51:05.000Z | include/tagreader.hpp | dda119141/mp3tags | c75818e4fd6341f2c0c0b482f5c6eb1809b382aa | [
"MIT"
] | 1 | 2020-05-01T11:52:59.000Z | 2020-05-01T11:52:59.000Z | include/tagreader.hpp | dda119141/mp3tags | c75818e4fd6341f2c0c0b482f5c6eb1809b382aa | [
"MIT"
] | null | null | null | // Copyright(c) 2020-present, Moge & contributors.
// Email: dda119141@gmail.com
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#ifndef _TAG_READER
#define _TAG_READER
#include <id3v2_common.hpp>
#include <id3v2_v40.hpp>
#include <id3v2_v30.hpp>
#include <id3v2_v00.hpp>
#include <id3v1.hpp>... | 30.28169 | 91 | 0.58093 | dda119141 |
2548f15afc9141f5d0376189a7ce5e0bbdbc0aa6 | 683 | hpp | C++ | tesla/base/Noncopyable.hpp | liuheng/tesla | da406aa9744618314a3dab99d8eb698b32234cbd | [
"MIT"
] | null | null | null | tesla/base/Noncopyable.hpp | liuheng/tesla | da406aa9744618314a3dab99d8eb698b32234cbd | [
"MIT"
] | null | null | null | tesla/base/Noncopyable.hpp | liuheng/tesla | da406aa9744618314a3dab99d8eb698b32234cbd | [
"MIT"
] | null | null | null | /*
*
* Author
* Thomas Liu
* Date
* 4/17/2014
* Description
* Noncopyable, copyed from boost::noncopyable.hpp
* I don't want to include boost if <tr1> exists
*
* Licensed under the Apache License, Version 2.0
*
*/
#ifndef TESLA_BASE_NONCOPYABLE_HPP
#define TESLA_BASE_NONCOPYABLE_HPP
namesp... | 17.512821 | 56 | 0.692533 | liuheng |
254b10bb9e8eb88df26dfc8ba4c94048b8fc8c27 | 8,307 | cpp | C++ | src/server/scripts/Kalimdor/LostCityOfTheTolvir/boss_high_prophet_barim.cpp | forgottenlands/ForgottenCore406 | 5dbbef6b3b0b17c277fde85e40ec9fdab0b51ad1 | [
"OpenSSL"
] | null | null | null | src/server/scripts/Kalimdor/LostCityOfTheTolvir/boss_high_prophet_barim.cpp | forgottenlands/ForgottenCore406 | 5dbbef6b3b0b17c277fde85e40ec9fdab0b51ad1 | [
"OpenSSL"
] | null | null | null | src/server/scripts/Kalimdor/LostCityOfTheTolvir/boss_high_prophet_barim.cpp | forgottenlands/ForgottenCore406 | 5dbbef6b3b0b17c277fde85e40ec9fdab0b51ad1 | [
"OpenSSL"
] | null | null | null | /*
* Copyright (C) 2010 - 2012 ProjectSkyfire <http://www.projectskyfire.org/>
*
* Copyright (C) 2011 - 2012 ArkCORE <http://www.arkania.net/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Founda... | 32.704724 | 143 | 0.559648 | forgottenlands |
255158e13e44296d47f07ca5721017a7c792fcb1 | 1,969 | cpp | C++ | sources/UseCases/JNI_Sampling/f2/function2.cpp | alrinach/ARISS | b84ace8412ebb037d7c1690ee488c111aef57b64 | [
"CECILL-B",
"MIT"
] | null | null | null | sources/UseCases/JNI_Sampling/f2/function2.cpp | alrinach/ARISS | b84ace8412ebb037d7c1690ee488c111aef57b64 | [
"CECILL-B",
"MIT"
] | null | null | null | sources/UseCases/JNI_Sampling/f2/function2.cpp | alrinach/ARISS | b84ace8412ebb037d7c1690ee488c111aef57b64 | [
"CECILL-B",
"MIT"
] | null | null | null | /*
* Use case JNI_Template function2.cpp
*/
#include "CBasefunction.h"
#include <iostream>
int main(int argc, char *argv[]) {
int redemarrage = atoi(argv[7]);
int position = atoi(argv[6]);
GUI_ARINC_partition("Partition2", position, redemarrage);
int nbarg = argc;
char **argument = new char*[argc]... | 37.150943 | 88 | 0.562214 | alrinach |
255686deebe130e69adedc60fda42e28ac5ebd78 | 730 | cpp | C++ | lessons/week9/testy/test_guistyle.cpp | Wiladams/sr | 4151ddc8303a78e44b0921d9dea0617dd412a7db | [
"MIT"
] | 1 | 2020-03-25T22:02:46.000Z | 2020-03-25T22:02:46.000Z | lessons/week9/testy/test_guistyle.cpp | Wiladams/sr | 4151ddc8303a78e44b0921d9dea0617dd412a7db | [
"MIT"
] | null | null | null | lessons/week9/testy/test_guistyle.cpp | Wiladams/sr | 4151ddc8303a78e44b0921d9dea0617dd412a7db | [
"MIT"
] | 2 | 2020-02-06T01:59:27.000Z | 2020-02-10T01:22:41.000Z | /*
Test the guistyle object.
The guistyle object draws the raised and sunken rectangles
that are typical of UI elements such as buttons and sliders.
*/
#include "p5.hpp"
#include "guistyle.hpp"
GUIStyle gs;
void draw()
{
background(colors.pink);
gs.setBorderWidth(4);
gs.drawSunkenRect(10, 1... | 19.72973 | 64 | 0.657534 | Wiladams |
2557a7ff3d8082672289297ac348180a32fb6168 | 10,474 | cpp | C++ | Connector/CmdMsg.cpp | openlastchaos/lastchaos-source-server | 935b770fa857e67b705717d154b11b717741edeb | [
"Apache-2.0"
] | null | null | null | Connector/CmdMsg.cpp | openlastchaos/lastchaos-source-server | 935b770fa857e67b705717d154b11b717741edeb | [
"Apache-2.0"
] | null | null | null | Connector/CmdMsg.cpp | openlastchaos/lastchaos-source-server | 935b770fa857e67b705717d154b11b717741edeb | [
"Apache-2.0"
] | 1 | 2022-01-17T09:34:39.000Z | 2022-01-17T09:34:39.000Z | #include <boost/format.hpp>
#include "stdhdrs.h"
#include "Server.h"
#include "../ShareLib/DBCmd.h"
#include "CmdMsg.h"
void LoginRepMsg(CNetMsg::SP& msg, MSG_CONN_ERRORCODE errcode, const char* id, CUser* user)
{
msg->Init(MSG_CONN_REP);
RefMsg(msg) << (unsigned char)MSG_CONN_LOGIN_REP
<< id
<< (unsigned c... | 24.761229 | 158 | 0.673477 | openlastchaos |
2557e99c2ce1a1d9e3e4ab2d113d67c7c1fe71b6 | 16,571 | cpp | C++ | pxr/imaging/plugin/hdOSPRay/basisCurves.cpp | ospray/hdOSPRay | b7b9dff23d3f2df71d4b5ca1028c970bfdc2669b | [
"Apache-2.0"
] | 93 | 2019-02-27T17:25:12.000Z | 2022-03-30T02:20:11.000Z | pxr/imaging/plugin/hdOSPRay/basisCurves.cpp | ospray/hdOSPRay | b7b9dff23d3f2df71d4b5ca1028c970bfdc2669b | [
"Apache-2.0"
] | 14 | 2019-03-15T12:23:16.000Z | 2021-11-15T23:32:00.000Z | pxr/imaging/plugin/hdOSPRay/basisCurves.cpp | ospray/hdOSPRay | b7b9dff23d3f2df71d4b5ca1028c970bfdc2669b | [
"Apache-2.0"
] | 9 | 2019-03-11T14:47:49.000Z | 2022-01-16T00:50:45.000Z |
//
// Copyright 2021 Intel
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Tra... | 38.899061 | 80 | 0.576791 | ospray |
25595e212acbae9095fa2df568ae2e27e042a1a2 | 1,981 | cpp | C++ | demo/vel_pkg/src/move_vel.cpp | KeKe0114/Team204 | 12a64614a6c8e477d2054bd1b44295ecc691894d | [
"MIT"
] | 1 | 2020-05-16T10:30:43.000Z | 2020-05-16T10:30:43.000Z | demo/vel_pkg/src/move_vel.cpp | dzh19990407/Team204 | 39d61db5a1d5abcff63f45d50a14c1d7c8277dd2 | [
"MIT"
] | 23 | 2020-03-08T05:22:09.000Z | 2020-06-07T02:40:56.000Z | demo/vel_pkg/src/move_vel.cpp | dzh19990407/Team204 | 39d61db5a1d5abcff63f45d50a14c1d7c8277dd2 | [
"MIT"
] | 11 | 2020-03-08T02:51:59.000Z | 2020-06-07T15:08:32.000Z | #include <ros/ros.h>
#include <std_msgs/Float32MultiArray.h>
#include <std_msgs/String.h>
#include <std_msgs/Int32.h>
#include <sensor_msgs/LaserScan.h>
#include <geometry_msgs/Twist.h>
static ros::Publisher vel_pub;
static ros::Subscriber sub_sr;
bool lock;
geometry_msgs::Twist Move_and_turn(double x, double z)
{
... | 19.048077 | 67 | 0.636547 | KeKe0114 |
255ca03db4054a6e9cca7a750c283cd666293209 | 18,762 | cpp | C++ | Sources/Plugins/Model_X/SDKMESHModelReader.cpp | jdelezenne/Sonata | fb1b1b64a78874a0ab2809995be4b6f14f9e4d56 | [
"MIT"
] | null | null | null | Sources/Plugins/Model_X/SDKMESHModelReader.cpp | jdelezenne/Sonata | fb1b1b64a78874a0ab2809995be4b6f14f9e4d56 | [
"MIT"
] | null | null | null | Sources/Plugins/Model_X/SDKMESHModelReader.cpp | jdelezenne/Sonata | fb1b1b64a78874a0ab2809995be4b6f14f9e4d56 | [
"MIT"
] | null | null | null | /*=============================================================================
SDKMESHModelReader.cpp
Project: Sonata Engine
Author: Julien Delezenne
=============================================================================*/
#include "SDKMESHModelReader.h"
namespace SE_X
{
#define SE_LOGNOTICE(message) Logger:... | 31.21797 | 238 | 0.756316 | jdelezenne |
255e9d7110e1f6301c9e0cfd51e6090fab7f45ae | 537 | cpp | C++ | src/engine/texture_manager.cpp | LorenzoDiStefano/CppEngine2D | 1985b5ce92452aed73ed7b719cf555dabd9e9367 | [
"MIT"
] | null | null | null | src/engine/texture_manager.cpp | LorenzoDiStefano/CppEngine2D | 1985b5ce92452aed73ed7b719cf555dabd9e9367 | [
"MIT"
] | null | null | null | src/engine/texture_manager.cpp | LorenzoDiStefano/CppEngine2D | 1985b5ce92452aed73ed7b719cf555dabd9e9367 | [
"MIT"
] | null | null | null | #include "texture_manager.hpp"
namespace engine
{
texture_manager::texture_manager() : m_stored_texture{ 0 }, m_renderer{ NULL } { }
void texture_manager::set_renderer(gfx::my_renderer* renderer)
{
this->m_renderer = renderer;
}
//return index of texture
int texture_manager::load_texture(const std::string& p... | 24.409091 | 83 | 0.743017 | LorenzoDiStefano |
256425ecac572a9272b81f402129e0f16835e682 | 2,171 | hpp | C++ | include/codegen/include/UnityEngine/EventSystems/ExecuteEvents_--c.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/UnityEngine/EventSystems/ExecuteEvents_--c.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/UnityEngine/EventSystems/ExecuteEvents_--c.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 2 | 2021-10-03T02:14:20.000Z | 2021-11-12T09:29:36.000Z | // Autogenerated from CppHeaderCreator on 7/27/2020 3:10:39 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
#include "utils/typedefs.h"
// Including type: System.Object
#include "System/Object.hpp"
// Including type... | 42.568627 | 120 | 0.721787 | Futuremappermydud |
256b36811e459d3e3a7bbba144ffde399f61e83b | 1,065 | cc | C++ | src/page_close_button.cc | jeff-cn/doogie | 1b4ed74adecbae773b51e674d298e3d5b09e4244 | [
"MIT"
] | 291 | 2017-07-19T22:32:25.000Z | 2022-02-16T03:03:21.000Z | charts/doogie-0.7.8/src/page_close_button.cc | hyq5436/playground | 828b9d2266dbb7d0311e2e73b295fcafb101d94f | [
"MIT"
] | 81 | 2017-09-06T15:46:27.000Z | 2020-11-30T14:12:11.000Z | charts/doogie-0.7.8/src/page_close_button.cc | hyq5436/playground | 828b9d2266dbb7d0311e2e73b295fcafb101d94f | [
"MIT"
] | 29 | 2017-09-18T19:14:50.000Z | 2022-01-24T06:03:17.000Z | #include "page_close_button.h"
#include "util.h"
namespace doogie {
PageCloseButton::PageCloseButton(QTreeWidget* tree, QWidget* parent) :
QToolButton(parent), tree_(tree) {
setCheckable(true);
setIcon(Util::CachedIcon(":/res/images/fontawesome/times.png"));
setText("Close");
setAutoRaise(true);
}
void ... | 24.767442 | 70 | 0.698592 | jeff-cn |
2570bf51db189f1c3ebcf4c384a4312d6478bcc3 | 1,412 | cpp | C++ | IonSymbolTable.cpp | wukakuki/ion-hash-cpp | 94d35c6d44bb208e09b0eb5402d9c93af2b3337a | [
"Apache-2.0"
] | 2 | 2021-08-09T05:57:50.000Z | 2021-08-09T19:27:23.000Z | IonSymbolTable.cpp | wukakuki/ion-hash-cpp | 94d35c6d44bb208e09b0eb5402d9c93af2b3337a | [
"Apache-2.0"
] | null | null | null | IonSymbolTable.cpp | wukakuki/ion-hash-cpp | 94d35c6d44bb208e09b0eb5402d9c93af2b3337a | [
"Apache-2.0"
] | null | null | null | /* Copyright (C) Siqi.Wu - All Rights Reserved
* Unauthorized copying of this file, via any medium is strictly prohibited
* Written by Siqi.Wu <lion547016@gmail.com>, July 2021
*/
#include "IonSymbolTable.h"
#include "IonWriter.h"
#include "ionc/ion.h"
#include <cstdlib>
#ifndef ION_OK
#define ION_OK(x) if (x) { ... | 22.774194 | 125 | 0.664306 | wukakuki |
257ba66d9da773ca868b7d1312cb3fec62143177 | 6,274 | cc | C++ | progprojet/trial/general/Vecteur3D.cc | YoussefSaied/MagneticFrustration | d3df5a70f4926540b97695170d85b15b8d895890 | [
"MIT"
] | 1 | 2020-12-18T15:39:49.000Z | 2020-12-18T15:39:49.000Z | progprojet/trial/general/Vecteur3D.cc | YoussefSaied/MagneticFrustration | d3df5a70f4926540b97695170d85b15b8d895890 | [
"MIT"
] | null | null | null | progprojet/trial/general/Vecteur3D.cc | YoussefSaied/MagneticFrustration | d3df5a70f4926540b97695170d85b15b8d895890 | [
"MIT"
] | null | null | null | #include <iostream>
#include "Vecteur3D.h"
#include <cmath>
#include "Aleatoire.h"
using namespace std;
// random utilisé dans la méthode random_vector()
random_device generator;
uniform_int_distribution<int> distribution(0, 10);
// constructeurs
Vecteur3D:: Vecteur3D(double x, double y, double z) : x(x), y(y), z(z... | 22.89781 | 120 | 0.583201 | YoussefSaied |
257c2a8b0c80fb8b96fcf1f8d66bdc939336ad18 | 2,913 | cpp | C++ | solutions/integer-to-english-words/solution.cpp | locker/leetcode | bf34a697de47aaf32823224d054f9a45613ce180 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | solutions/integer-to-english-words/solution.cpp | locker/leetcode | bf34a697de47aaf32823224d054f9a45613ce180 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | solutions/integer-to-english-words/solution.cpp | locker/leetcode | bf34a697de47aaf32823224d054f9a45613ce180 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-08-30T06:53:23.000Z | 2019-08-30T06:53:23.000Z | #include <cassert>
#include <iostream>
#include <string>
#include <utility>
using namespace std;
class Solution {
private:
string numberLessThanTwentyToWord(int num) {
assert(num >= 0);
assert(num < 20);
static const char *numToWord[] = {
[0] = "Zero",
[1] = "One",
[2] = "Two",
[3] = "Three",
... | 22.937008 | 85 | 0.577755 | locker |
257e74fce27fd7bb75e222d8ca6989c8b88b5d53 | 11,541 | cpp | C++ | src/main/cpp/auton.cpp | RaidersRobotics5561/SwerveDrive2_2022 | b21ecc272270b909ed58e65ce6e9241b99d85cc1 | [
"BSD-3-Clause"
] | null | null | null | src/main/cpp/auton.cpp | RaidersRobotics5561/SwerveDrive2_2022 | b21ecc272270b909ed58e65ce6e9241b99d85cc1 | [
"BSD-3-Clause"
] | null | null | null | src/main/cpp/auton.cpp | RaidersRobotics5561/SwerveDrive2_2022 | b21ecc272270b909ed58e65ce6e9241b99d85cc1 | [
"BSD-3-Clause"
] | 1 | 2022-02-02T01:45:57.000Z | 2022-02-02T01:45:57.000Z | /*
Auton.cpp
Created on: Feb 28, 2021
Author: 5561
Changes:
2021-02-28 -> Beta
*/
#include <math.h>
#include "control_pid.hpp"
#include "Lookup.hpp"
#include "Const.hpp"
#include <frc/DriverStation.h>
// #include "BallHandler.hpp"
double distanceTarget;
int theCoolerInteger;
double V_autonTimer = 0;... | 34.044248 | 138 | 0.494585 | RaidersRobotics5561 |
257f704e634247c7e4d0be070f88bb0dac9d8080 | 10,011 | cpp | C++ | FlexProxy/FlexServer/src/FlexServer/Forwarder.cpp | carlcc/FlexProxy | a9b6a11e44e75979409608317c19c3da7cc10def | [
"Apache-2.0"
] | null | null | null | FlexProxy/FlexServer/src/FlexServer/Forwarder.cpp | carlcc/FlexProxy | a9b6a11e44e75979409608317c19c3da7cc10def | [
"Apache-2.0"
] | null | null | null | FlexProxy/FlexServer/src/FlexServer/Forwarder.cpp | carlcc/FlexProxy | a9b6a11e44e75979409608317c19c3da7cc10def | [
"Apache-2.0"
] | null | null | null | #include "FlexServer/Forwarder.h"
#include "FlexCommon/Log.h"
#include "FlexCommon/MiscUtils.h"
#include "FlexCommon/Time.h"
#include <chrono>
#define FORARDER_L_INFO(fmt, ...) L_INFO(fmt " ({})", ##__VA_ARGS__, id_)
#define FORARDER_L_ERROR(fmt, ...) L_ERROR(fmt " ({})", ##__VA_ARGS__, id_)
#define FORARDER_SCOPE_EXI... | 37.077778 | 149 | 0.528419 | carlcc |
257fb2ea69ae1ea1b16895697efcac76a15f6fb4 | 2,857 | cpp | C++ | thirdparty/ULib/examples/workflow/validation.cpp | liftchampion/nativejson-benchmark | 6d575ffa4359a5c4230f74b07d994602a8016fb5 | [
"MIT"
] | null | null | null | thirdparty/ULib/examples/workflow/validation.cpp | liftchampion/nativejson-benchmark | 6d575ffa4359a5c4230f74b07d994602a8016fb5 | [
"MIT"
] | null | null | null | thirdparty/ULib/examples/workflow/validation.cpp | liftchampion/nativejson-benchmark | 6d575ffa4359a5c4230f74b07d994602a8016fb5 | [
"MIT"
] | null | null | null | // validation.cpp
#include <ulib/string.h>
#undef PACKAGE
#define PACKAGE "validation"
#undef ARGS
#define ARGS ""
#define U_OPTIONS \
"purpose \"program for workflow validation...\"\n" \
"option c config 1 \"path of configuration file\" \"\"\n"
#include "action.h"
class Application : public Action {
public:
... | 40.239437 | 133 | 0.466923 | liftchampion |
257fc8096472fe90ab89ddd93e88157d474d9119 | 811 | cpp | C++ | leetcode/leetcode_0198_easy_house_robber/main.v01.cpp | friskit-china/leetcode-cn-repo | 5f428e77f9d3f79da3e670a38b86d85bd58c81b2 | [
"MIT"
] | null | null | null | leetcode/leetcode_0198_easy_house_robber/main.v01.cpp | friskit-china/leetcode-cn-repo | 5f428e77f9d3f79da3e670a38b86d85bd58c81b2 | [
"MIT"
] | null | null | null | leetcode/leetcode_0198_easy_house_robber/main.v01.cpp | friskit-china/leetcode-cn-repo | 5f428e77f9d3f79da3e670a38b86d85bd58c81b2 | [
"MIT"
] | null | null | null | #include <iostream>
#include <vector>
using namespace std;
class Solution {
public:
int rob(vector<int>& nums) {
if (nums.size() == 0){
return 0;
}else if (nums.size() == 1){
return nums[0];
}else if (nums.size() == 2){
return max(nums[0], nums[1]);
... | 24.575758 | 72 | 0.454994 | friskit-china |
2580576a6f3cfa08a43f7f685f588146a186471e | 1,666 | cpp | C++ | src/services/log.cpp | viniciusferrao/cloysterhpc | a7b51ce2e2110e21f2720a40d5b6a2c521158937 | [
"Apache-2.0"
] | 4 | 2021-10-10T22:38:54.000Z | 2022-03-03T01:13:44.000Z | src/services/log.cpp | viniciusferrao/cloysterhpc | a7b51ce2e2110e21f2720a40d5b6a2c521158937 | [
"Apache-2.0"
] | null | null | null | src/services/log.cpp | viniciusferrao/cloysterhpc | a7b51ce2e2110e21f2720a40d5b6a2c521158937 | [
"Apache-2.0"
] | 1 | 2021-10-30T20:29:27.000Z | 2021-10-30T20:29:27.000Z | //
// Created by Vinícius Ferrão on 23/11/21.
//
#include "log.h"
#include <spdlog/sinks/stdout_color_sinks.h>
#include <memory>
void Log::init(Level level) {
auto stderrSink = std::make_shared<spdlog::sinks::stderr_color_sink_mt>();
stderrSink->set_pattern("%^[%Y-%m-%d %H:%M:%S.%e] %v%$");
std::vector<... | 30.290909 | 78 | 0.567227 | viniciusferrao |
258671241fa45cb435baa3942436e876f0047ea6 | 1,683 | hxx | C++ | include/kry/Utility.hxx | rcgoodfellow/kry | 29b0616d92c514b015eab4a93ad2c2c04d412190 | [
"BSD-2-Clause"
] | null | null | null | include/kry/Utility.hxx | rcgoodfellow/kry | 29b0616d92c514b015eab4a93ad2c2c04d412190 | [
"BSD-2-Clause"
] | null | null | null | include/kry/Utility.hxx | rcgoodfellow/kry | 29b0616d92c514b015eab4a93ad2c2c04d412190 | [
"BSD-2-Clause"
] | null | null | null | /******************************************************************************
* libKrylov
* =========
* Utility.hxx contians usefull stuff used throught libKrylov
*
* 19 August 2014
* ~ ry
* ***************************************************************************/
#ifndef KRY_UTILITY_HXX
#define KRY_UTILITY... | 23.054795 | 79 | 0.63161 | rcgoodfellow |
25894e16fa3cb98e6c14015eae93fd0b1d2fbf80 | 727 | hpp | C++ | src/org/apache/poi/util/CloseIgnoringInputStream.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/util/CloseIgnoringInputStream.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | src/org/apache/poi/util/CloseIgnoringInputStream.hpp | pebble2015/cpoi | 6dcc0c5e13e3e722b4ef9fd0baffbf62bf71ead6 | [
"Apache-2.0"
] | null | null | null | // Generated from /POI/java/org/apache/poi/util/CloseIgnoringInputStream.java
#pragma once
#include <java/io/fwd-POI.hpp>
#include <org/apache/poi/util/fwd-POI.hpp>
#include <java/io/FilterInputStream.hpp>
struct default_init_tag;
class poi::util::CloseIgnoringInputStream
: public ::java::io::FilterInputStream
... | 20.771429 | 77 | 0.716644 | pebble2015 |
259210636ee812b511e7b876d9b48592722bfc9b | 644 | cpp | C++ | src/v8-extensions/array-buffer-allocator.cpp | localh0rzd/napajs | b3f5e67dd20caef5d96ea8c3e3d4c542fcb9a431 | [
"MIT"
] | 9,088 | 2017-08-08T22:28:16.000Z | 2019-05-05T14:57:12.000Z | src/v8-extensions/array-buffer-allocator.cpp | localh0rzd/napajs | b3f5e67dd20caef5d96ea8c3e3d4c542fcb9a431 | [
"MIT"
] | 172 | 2017-08-09T21:32:15.000Z | 2019-05-03T21:21:05.000Z | src/v8-extensions/array-buffer-allocator.cpp | localh0rzd/napajs | b3f5e67dd20caef5d96ea8c3e3d4c542fcb9a431 | [
"MIT"
] | 370 | 2017-08-09T04:58:14.000Z | 2019-04-13T18:59:29.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#include "v8-extensions-macros.h"
#if !(V8_VERSION_CHECK_FOR_ARRAY_BUFFER_ALLOCATOR)
#include "array-buffer-allocator.h"
#include <cstring>
#include <stdlib.h>
#include <v8.h>
using namespace napa::v8_extensions;
void*... | 22.206897 | 66 | 0.748447 | localh0rzd |
25936507865b3b7a0913e35ff5badc10e553c8b4 | 783 | hpp | C++ | FlicsFacts/Controller/shareresponsesformatter.hpp | pgulotta/FlicsFacts-2 | a4c5cccd839793478d46e6eb32ef1233a9c723ae | [
"MIT"
] | null | null | null | FlicsFacts/Controller/shareresponsesformatter.hpp | pgulotta/FlicsFacts-2 | a4c5cccd839793478d46e6eb32ef1233a9c723ae | [
"MIT"
] | null | null | null | FlicsFacts/Controller/shareresponsesformatter.hpp | pgulotta/FlicsFacts-2 | a4c5cccd839793478d46e6eb32ef1233a9c723ae | [
"MIT"
] | null | null | null | #pragma once
#include "../FlicsFacts/fam/qqmlobjectlistmodel.hpp"
#include <../FlicsFacts/Model/movieresponse.hpp>
#include <QObject>
#include <vector>
#include <iterator>
#include <memory>
class QString;
class ShareResponsesFormatter final : public QObject
{
Q_OBJECT
public slots:
signals:
p... | 24.46875 | 86 | 0.733078 | pgulotta |
25968da7615c317e9215785ac7dc7cdd982ca6a2 | 6,041 | cc | C++ | src/monitor.cc | sails/saf | 0af8ab73062e8c2adbb3412533cc64a0b291b7d6 | [
"MIT"
] | 8 | 2015-01-26T20:03:35.000Z | 2022-03-22T14:32:48.000Z | src/monitor.cc | sails/saf | 0af8ab73062e8c2adbb3412533cc64a0b291b7d6 | [
"MIT"
] | null | null | null | src/monitor.cc | sails/saf | 0af8ab73062e8c2adbb3412533cc64a0b291b7d6 | [
"MIT"
] | 9 | 2015-05-22T03:28:20.000Z | 2022-03-23T08:59:57.000Z | // Copyright (C) 2014 sails Authors.
// All rights reserved.
//
// Official git repository and contact information can be found at
// https://github.com/sails/sails and http://www.sailsxu.com/.
//
// Filename: monitor.cc
//
// Author: sailsxu <sailsxu@gmail.com>
// Created: 2014-10-20 17:14:50
#include "src/monitor.h"... | 29.183575 | 79 | 0.673398 | sails |
259824b9db342cd728f1885ec099400f396493b3 | 622 | cpp | C++ | AtCoder/ABC/ABC-134/SolveE.cpp | MonadicDavidHuang/CompetitiveProgramming | b5b6f39a1be05d257f8ea8e504dd910cc624b153 | [
"MIT"
] | null | null | null | AtCoder/ABC/ABC-134/SolveE.cpp | MonadicDavidHuang/CompetitiveProgramming | b5b6f39a1be05d257f8ea8e504dd910cc624b153 | [
"MIT"
] | null | null | null | AtCoder/ABC/ABC-134/SolveE.cpp | MonadicDavidHuang/CompetitiveProgramming | b5b6f39a1be05d257f8ea8e504dd910cc624b153 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using ll = long long int;
const int MAX = (int)(1e5 + 5);
const ll INF = (ll)(1e10 + 5);
const int MAX_N = (int)(1e5 + 5);
int n;
ll a[MAX_N];
multiset<ll> mst;
int main(void) {
// Here your code !
scanf("%d", &n);
for (int i = 0; i < n; ++i) {
scanf("%lld"... | 15.170732 | 44 | 0.506431 | MonadicDavidHuang |
259a5971339ae9b32e8c52e42993b4f7fd252dca | 2,832 | cpp | C++ | chatroom/server.cpp | huangsunyang/shiyanlou | 0b42f783d6aae639c1b0c2a33883a94e127038f7 | [
"MIT"
] | 30 | 2017-05-24T06:24:29.000Z | 2020-12-18T11:09:53.000Z | chatroom/server.cpp | huangsunyang/shiyanlou | 0b42f783d6aae639c1b0c2a33883a94e127038f7 | [
"MIT"
] | null | null | null | chatroom/server.cpp | huangsunyang/shiyanlou | 0b42f783d6aae639c1b0c2a33883a94e127038f7 | [
"MIT"
] | 15 | 2017-05-24T06:24:33.000Z | 2020-04-21T11:32:36.000Z | #include "utility.h"
int main() {
struct sockaddr_in serverAddr;
serverAddr.sin_family = PF_INET;
serverAddr.sin_port = htons(SERVER_PORT);
serverAddr.sin_addr.s_addr = inet_addr(SERVER_IP);
int listener = socket(PF_INET, SOCK_STREAM, 0);
if (listener < 0) {
perror("Listener");
... | 30.782609 | 112 | 0.509181 | huangsunyang |
259f1e13786bfbe41bb48dcc949b9c0d102b8fa2 | 538 | cpp | C++ | Acun3D/Spotlight.cpp | Catchouli-old/Acun3D | 1a34791d30528a442d9734de31b0bcac86cb32d5 | [
"MIT"
] | 1 | 2018-11-15T18:53:44.000Z | 2018-11-15T18:53:44.000Z | Acun3D/Spotlight.cpp | Catchouli-old/Acun3D | 1a34791d30528a442d9734de31b0bcac86cb32d5 | [
"MIT"
] | null | null | null | Acun3D/Spotlight.cpp | Catchouli-old/Acun3D | 1a34791d30528a442d9734de31b0bcac86cb32d5 | [
"MIT"
] | null | null | null | #include "Spotlight.h"
namespace a3d
{
Spotlight::Spotlight(Vector position, Vector direction, Colour colour, float fov, float exponent)
: Light(LightTypes::SPOT, colour), _position(position), _direction(direction),
_fov(fov), _exponent(exponent)
{
}
const Vector& Spotlight::getPosition() const
{
retur... | 17.354839 | 98 | 0.702602 | Catchouli-old |
25a52f3c5a1d23b4e36fd418256f4e2482cf130a | 1,709 | hh | C++ | aegir-brewd/src/GPIO.hh | gczuczy/aegir | 1275ca41bfe4a56347eb2531211df4c70933fb96 | [
"BSD-3-Clause"
] | null | null | null | aegir-brewd/src/GPIO.hh | gczuczy/aegir | 1275ca41bfe4a56347eb2531211df4c70933fb96 | [
"BSD-3-Clause"
] | 11 | 2020-06-04T20:31:02.000Z | 2022-02-26T01:39:26.000Z | aegir-brewd/src/GPIO.hh | gczuczy/aegir | 1275ca41bfe4a56347eb2531211df4c70933fb96 | [
"BSD-3-Clause"
] | 1 | 2020-12-10T19:19:41.000Z | 2020-12-10T19:19:41.000Z | /*
Basic C++ wrapper for libgpio
*/
#ifndef GPIO_HH
#define GPIO_HH
#include <sys/types.h>
#include <libgpio.h>
#include <string>
#include <map>
#include <vector>
#include "Exception.hh"
namespace aegir {
enum class PINState: uint8_t {
Off=0,
On=1,
Pulsate=2,
Unknown=255
};
cl... | 18.78022 | 56 | 0.574605 | gczuczy |
25a5464f1646714e89d1f2238694da8a8850d8d1 | 3,798 | cpp | C++ | Space Harrier Clone/GameScene.cpp | BrunoAOR/Space-Harrier-Clone | 35465ad2d421f69a75a02855627c8ea726b248c6 | [
"MIT"
] | 12 | 2018-12-07T16:05:02.000Z | 2021-09-06T01:46:50.000Z | Space Harrier Clone/GameScene.cpp | BrunoAOR/Space-Harrier-Clone | 35465ad2d421f69a75a02855627c8ea726b248c6 | [
"MIT"
] | null | null | null | Space Harrier Clone/GameScene.cpp | BrunoAOR/Space-Harrier-Clone | 35465ad2d421f69a75a02855627c8ea726b248c6 | [
"MIT"
] | 1 | 2020-06-03T03:37:27.000Z | 2020-06-03T03:37:27.000Z | #include "GameScene.h"
#include "Engine/API.h"
#include "Engine/GameObject.h"
#include "Engine/Transform.h"
#include "Engine/Behaviour.h"
#include "Engine/Sprite.h"
#include "Engine/Vector2.h"
#include "gameData.h"
#include "FloorManager.h"
#include "DarkLineinfo.h"
#include "FloorObjectsFactory.h"
#include "Backgroun... | 26.193103 | 118 | 0.71169 | BrunoAOR |
25aa44984a1a5b6a8455e2cc7912cf0c0bf3cc3e | 617 | hpp | C++ | Include/Injector/Graphics/Pipeline/DiffuseGpuPipeline.hpp | InjectorGames/Inject | 09e74a83c287b81fd8272c10d6bae2b1aa785c0e | [
"BSD-3-Clause"
] | 2 | 2019-12-10T16:26:58.000Z | 2020-04-17T11:47:42.000Z | Include/Injector/Graphics/Pipeline/DiffuseGpuPipeline.hpp | InjectorGames/Inject | 09e74a83c287b81fd8272c10d6bae2b1aa785c0e | [
"BSD-3-Clause"
] | 28 | 2020-08-17T12:39:50.000Z | 2020-11-16T20:42:50.000Z | Include/Injector/Graphics/Pipeline/DiffuseGpuPipeline.hpp | InjectorGames/InjectorEngine | 09e74a83c287b81fd8272c10d6bae2b1aa785c0e | [
"BSD-3-Clause"
] | null | null | null | #pragma once
#include "Injector/Mathematics/Vector4.hpp"
namespace Injector
{
class DiffuseGpuPipeline
{
public:
virtual const FloatVector4& getObjectColor() const = 0;
virtual void setObjectColor(const FloatVector4& color) = 0;
virtual const FloatVector4& getAmbientColor() const = 0;
virtual void setAmbi... | 28.045455 | 68 | 0.76175 | InjectorGames |
25ac395c76e5e39c1b36fe24d38740f89cb5553e | 1,916 | cpp | C++ | runtime/thread/semaphore.cpp | braiam/ROCm-OpenCL-Runtime | a66edda66d98923e61fe97596c632eac743e63ed | [
"MIT"
] | 1 | 2021-11-11T04:11:32.000Z | 2021-11-11T04:11:32.000Z | runtime/thread/semaphore.cpp | braiam/ROCm-OpenCL-Runtime | a66edda66d98923e61fe97596c632eac743e63ed | [
"MIT"
] | null | null | null | runtime/thread/semaphore.cpp | braiam/ROCm-OpenCL-Runtime | a66edda66d98923e61fe97596c632eac743e63ed | [
"MIT"
] | 1 | 2021-11-11T04:11:26.000Z | 2021-11-11T04:11:26.000Z | //
// Copyright (c) 2008,2010 Advanced Micro Devices, Inc. All rights reserved.
//
#include "thread/semaphore.hpp"
#include "thread/thread.hpp"
#if defined(_WIN32) || defined(__CYGWIN__)
#include <windows.h>
#else // !_WIN32
#include <semaphore.h>
#include <errno.h>
#endif // !_WIN32
namespace amd {
Semaphore::Se... | 21.772727 | 85 | 0.608038 | braiam |
25ad3c8caffa3d545b376fdebb96c1aa69f8aee2 | 798 | hpp | C++ | src/ast/include/unary_operation_expr.hpp | bfeip/Lain | 3df115167dbb0eb8147b225a24bb72b6c0920c64 | [
"MIT"
] | 5 | 2017-03-28T00:36:54.000Z | 2019-08-06T00:05:44.000Z | src/ast/include/unary_operation_expr.hpp | bfeip/Lain | 3df115167dbb0eb8147b225a24bb72b6c0920c64 | [
"MIT"
] | 4 | 2017-03-28T01:36:05.000Z | 2017-04-17T20:34:46.000Z | src/ast/include/unary_operation_expr.hpp | bfeip/Lain | 3df115167dbb0eb8147b225a24bb72b6c0920c64 | [
"MIT"
] | null | null | null | #ifndef UNARY_OPERATION_EXPR_HPP
#define UNARY_OPERATION_EXPR_HPP
#include "ast_shared.hpp"
#include "expr.hpp"
#include "operation_type.hpp"
class UnaryOperationExpr : virtual public Expr {
private:
std::unique_ptr<Expr> operand;
OperationType op;
public:
UnaryOperationExpr() = delete;
UnaryOperationExpr(Sco... | 29.555556 | 101 | 0.716792 | bfeip |
25ae0da3413de84735a70c76d68d862e6525e0ae | 2,303 | cpp | C++ | products/gooeyfi_core/src/GooeyFiButton.cpp | cbtek/GooeyFi | f900d8465959f3ad73d2d4d528091afbe7570bb7 | [
"MIT"
] | 1 | 2018-01-23T14:59:28.000Z | 2018-01-23T14:59:28.000Z | products/gooeyfi_core/src/GooeyFiButton.cpp | cbtek/GooeyFi | f900d8465959f3ad73d2d4d528091afbe7570bb7 | [
"MIT"
] | null | null | null | products/gooeyfi_core/src/GooeyFiButton.cpp | cbtek/GooeyFi | f900d8465959f3ad73d2d4d528091afbe7570bb7 | [
"MIT"
] | null | null | null | /*
GooeyFiButton.cpp
MIT License
Copyright (c) 2016 cbtek
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, modif... | 23.742268 | 78 | 0.721233 | cbtek |
25bab4577369ee85445bb570dbd12573ef9a15c3 | 9,062 | cpp | C++ | src/TestTool/TestTeletext.cpp | qtlmovie/qtlmovie | 082ad5ea6522a02d5ac0d86f23cdd6152edff613 | [
"BSD-2-Clause"
] | 8 | 2016-08-09T14:05:58.000Z | 2020-09-05T14:43:36.000Z | src/TestTool/TestTeletext.cpp | qtlmovie/qtlmovie | 082ad5ea6522a02d5ac0d86f23cdd6152edff613 | [
"BSD-2-Clause"
] | 15 | 2016-08-09T14:11:21.000Z | 2022-01-15T23:39:07.000Z | src/TestTool/TestTeletext.cpp | qtlmovie/qtlmovie | 082ad5ea6522a02d5ac0d86f23cdd6152edff613 | [
"BSD-2-Clause"
] | 1 | 2017-08-26T22:08:58.000Z | 2017-08-26T22:08:58.000Z | //----------------------------------------------------------------------------
//
// Copyright (c) 2013-2017, Thierry Lelegard
// 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. Redistri... | 35.537255 | 154 | 0.536526 | qtlmovie |
25bbfb56745fb8732ccd1877d0f1a6ce595a1b46 | 13,779 | cc | C++ | ja2/Build/Laptop/Insurance.cc | gtrafimenkov/ja2-vanilla-cp | 961076add8175afa845cbd6c33dbf9cd78f61a0c | [
"BSD-Source-Code"
] | null | null | null | ja2/Build/Laptop/Insurance.cc | gtrafimenkov/ja2-vanilla-cp | 961076add8175afa845cbd6c33dbf9cd78f61a0c | [
"BSD-Source-Code"
] | null | null | null | ja2/Build/Laptop/Insurance.cc | gtrafimenkov/ja2-vanilla-cp | 961076add8175afa845cbd6c33dbf9cd78f61a0c | [
"BSD-Source-Code"
] | null | null | null | #include "Laptop/Insurance.h"
#include "Directories.h"
#include "Laptop/InsuranceContract.h"
#include "Laptop/InsuranceText.h"
#include "Laptop/Laptop.h"
#include "Local.h"
#include "SGP/ButtonSystem.h"
#include "SGP/Font.h"
#include "SGP/HImage.h"
#include "SGP/Line.h"
#include "SGP/VObject.h"
#include "SGP/VSurface.... | 39.25641 | 100 | 0.782713 | gtrafimenkov |
25c21ba065b3113f4bff89de7d8ee2c178457871 | 3,267 | cpp | C++ | test/utils/round_trip.cpp | mathisloge/mapnik-vector-tile | 57d183482bf84e90072c2975829f3190bb62e19f | [
"BSD-3-Clause"
] | 247 | 2015-01-06T07:05:59.000Z | 2022-03-10T09:34:22.000Z | test/utils/round_trip.cpp | mathisloge/mapnik-vector-tile | 57d183482bf84e90072c2975829f3190bb62e19f | [
"BSD-3-Clause"
] | 210 | 2015-01-09T05:38:25.000Z | 2021-04-27T10:43:24.000Z | test/utils/round_trip.cpp | mathisloge/mapnik-vector-tile | 57d183482bf84e90072c2975829f3190bb62e19f | [
"BSD-3-Clause"
] | 86 | 2015-01-06T01:04:35.000Z | 2021-11-21T11:52:27.000Z | // test utils
#include "round_trip.hpp"
// mapnik-vector-tile
#include "vector_tile_processor.hpp"
#include "vector_tile_strategy.hpp"
#include "vector_tile_geometry_decoder.hpp"
// mapnik
#include <mapnik/feature_factory.hpp>
#include <mapnik/memory_datasource.hpp>
// std
#include <exception>
// libprotobuf
#pragm... | 34.755319 | 113 | 0.665136 | mathisloge |
25c6ead1068b0c55c14367d6a25390dece3f8fa8 | 2,035 | cpp | C++ | runtime/pass/EmitCodes.cpp | easywave/easy-just-in-time | 6360bdcff1943b93fb92e71b8bbe5844f6c897ab | [
"BSD-3-Clause"
] | null | null | null | runtime/pass/EmitCodes.cpp | easywave/easy-just-in-time | 6360bdcff1943b93fb92e71b8bbe5844f6c897ab | [
"BSD-3-Clause"
] | null | null | null | runtime/pass/EmitCodes.cpp | easywave/easy-just-in-time | 6360bdcff1943b93fb92e71b8bbe5844f6c897ab | [
"BSD-3-Clause"
] | 1 | 2021-11-29T01:10:25.000Z | 2021-11-29T01:10:25.000Z | #include <easy/runtime/RuntimePasses.h>
#include <easy/runtime/BitcodeTracker.h>
#include <llvm/IR/Module.h>
#include <llvm/IR/Function.h>
#include <llvm/IR/Constant.h>
#include <llvm/IR/Constants.h>
#include <llvm/IR/InstIterator.h>
#include <llvm/IR/IRBuilder.h>
#include <llvm/Linker/Linker.h>
#include <llvm/ADT/Smal... | 25.123457 | 71 | 0.637838 | easywave |
5ad87d43cdc303e8bbd0461a3b02471c01a5ab44 | 289 | cpp | C++ | EntityComponentSystem/PbrRenderer/ModelResource.cpp | Spheya/Slamanander-Engine | d0708399eacab26b243045b33b51ff30d614b7bd | [
"MIT"
] | null | null | null | EntityComponentSystem/PbrRenderer/ModelResource.cpp | Spheya/Slamanander-Engine | d0708399eacab26b243045b33b51ff30d614b7bd | [
"MIT"
] | null | null | null | EntityComponentSystem/PbrRenderer/ModelResource.cpp | Spheya/Slamanander-Engine | d0708399eacab26b243045b33b51ff30d614b7bd | [
"MIT"
] | null | null | null | #include "ModelResource.hpp"
void renderer::ModelResource::load() {
_model = std::make_unique<Model>(getPath());
}
renderer::Model* renderer::ModelResource::getModel() {
return _model.get();
}
const renderer::Model* renderer::ModelResource::getModel() const {
return _model.get();
}
| 20.642857 | 66 | 0.719723 | Spheya |
5ad8ce0ad3510e13f3f813eda9426a37939b0232 | 580 | cc | C++ | ExampleWorkspace/ExampleLibC/src/class-c.cc | nidegen/Tart | 030bae172e9c2bb59020a6ccc29dfa7b928ce3f7 | [
"MIT"
] | null | null | null | ExampleWorkspace/ExampleLibC/src/class-c.cc | nidegen/Tart | 030bae172e9c2bb59020a6ccc29dfa7b928ce3f7 | [
"MIT"
] | null | null | null | ExampleWorkspace/ExampleLibC/src/class-c.cc | nidegen/Tart | 030bae172e9c2bb59020a6ccc29dfa7b928ce3f7 | [
"MIT"
] | null | null | null | #include "class-c.h"
#include <iostream>
#include <unordered_set>
ClassC::ClassC() {
is_true_ = true;
std::cout << "Class C initialized, activation is: " << is_true_ << '\n';
std::cout << "ExampleLibC was copiled with C++ version " << __cplusplus << std::endl;
std::cout << "ExampleLibC TART_TARGET_OS is: " <<... | 30.526316 | 87 | 0.656897 | nidegen |
5ad8e5b1b7244e23e80cf401837e0f16fde8d22e | 2,889 | cpp | C++ | Edu CF R25/B.cpp | parthlathiya/Codeforces_Submissions | 6c8f40dbeea31a3c3c7d37b799b78f6af4bbcf68 | [
"MIT"
] | null | null | null | Edu CF R25/B.cpp | parthlathiya/Codeforces_Submissions | 6c8f40dbeea31a3c3c7d37b799b78f6af4bbcf68 | [
"MIT"
] | null | null | null | Edu CF R25/B.cpp | parthlathiya/Codeforces_Submissions | 6c8f40dbeea31a3c3c7d37b799b78f6af4bbcf68 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define rep(i,a,b) for(ll i=a;i<b;i++)
#define re(i,b) for(ll i=0;i<b;i++)
#define repr(i,n) for(ll i=n-1;i>=0;i--)
#define ll long long
#define ld long double
#define llu long long unsigned
#define pll std::pair<ll, ll>
#defin... | 19.787671 | 88 | 0.421253 | parthlathiya |
5adafdca2d08620deb01d8b13702aca27d335996 | 761 | cpp | C++ | hackerrank/maxsubarray/solution.cpp | SamProkopchuk/coding-problems | fa0ca2c05ac90e41945de1a5751e5545a8459ac4 | [
"MIT"
] | null | null | null | hackerrank/maxsubarray/solution.cpp | SamProkopchuk/coding-problems | fa0ca2c05ac90e41945de1a5751e5545a8459ac4 | [
"MIT"
] | null | null | null | hackerrank/maxsubarray/solution.cpp | SamProkopchuk/coding-problems | fa0ca2c05ac90e41945de1a5751e5545a8459ac4 | [
"MIT"
] | null | null | null | #include <algorithm>
#include <climits>
#include <iostream>
#include <vector>
typedef signed long long ll;
#define FOR(x, to) for (x = 0; x < (to); ++x)
#define FORR(x, arr) for (auto& x : arr)
using namespace std;
int main() {
int t, n, i, x, cursum, maxsubarr, maxsubseq, largest;
cin >> t;
wh... | 23.060606 | 57 | 0.549277 | SamProkopchuk |
5ae63bf0abeb5131d2947a797e28be60d7d0bb61 | 641 | cpp | C++ | YorozuyaGSLib/source/_attack_skill_result_zocl.cpp | lemkova/Yorozuya | f445d800078d9aba5de28f122cedfa03f26a38e4 | [
"MIT"
] | 29 | 2017-07-01T23:08:31.000Z | 2022-02-19T10:22:45.000Z | YorozuyaGSLib/source/_attack_skill_result_zocl.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 90 | 2017-10-18T21:24:51.000Z | 2019-06-06T02:30:33.000Z | YorozuyaGSLib/source/_attack_skill_result_zocl.cpp | kotopes/Yorozuya | 605c97d3a627a8f6545cc09f2a1b0a8afdedd33a | [
"MIT"
] | 44 | 2017-12-19T08:02:59.000Z | 2022-02-24T23:15:01.000Z | #include <_attack_skill_result_zocl.hpp>
START_ATF_NAMESPACE
_attack_skill_result_zocl::_attack_skill_result_zocl()
{
using org_ptr = void (WINAPIV*)(struct _attack_skill_result_zocl*);
(org_ptr(0x1400eed50L))(this);
};
void _attack_skill_result_zocl::ctor__attack_skill_result_zocl()
... | 30.52381 | 75 | 0.698908 | lemkova |
5ae831dfdb6a4baa77461d60a22d13714c3eae6d | 692 | cpp | C++ | tests/std/utility.cpp | AlCash07/ACTL | 15de4e2783d8e39dbd8e10cd635aaab328ca4f5b | [
"BSL-1.0"
] | 17 | 2018-08-22T06:48:20.000Z | 2022-02-22T21:20:09.000Z | tests/std/utility.cpp | AlCash07/ACTL | 15de4e2783d8e39dbd8e10cd635aaab328ca4f5b | [
"BSL-1.0"
] | null | null | null | tests/std/utility.cpp | AlCash07/ACTL | 15de4e2783d8e39dbd8e10cd635aaab328ca4f5b | [
"BSL-1.0"
] | null | null | null | // Copyright 2019 Oleksandr Bacherikov.
//
// Distributed under the Boost Software License, Version 1.0
// (see accompanying file LICENSE.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt).
#include <actl/io/device/memory.hpp>
#include <actl/std/utility.hpp>
#include "test.hpp"
using namespace ac::io;
TEST_CA... | 23.066667 | 77 | 0.611272 | AlCash07 |
5ae9a899e453b0c591d3fa8f49e993d740cc8588 | 735 | cpp | C++ | tlx/timestamp.cpp | mullovc/tlx | e7c17b5981cbd7912b689fa0ad993e18424e26fe | [
"BSL-1.0"
] | 284 | 2017-02-26T08:49:15.000Z | 2022-03-30T21:55:37.000Z | tlx/timestamp.cpp | xiao2mo/tlx | b311126e670753897c1defceeaa75c83d2d9531a | [
"BSL-1.0"
] | 24 | 2017-09-05T21:02:41.000Z | 2022-03-07T10:09:59.000Z | tlx/timestamp.cpp | xiao2mo/tlx | b311126e670753897c1defceeaa75c83d2d9531a | [
"BSL-1.0"
] | 62 | 2017-02-23T12:29:27.000Z | 2022-03-31T07:45:59.000Z | /*******************************************************************************
* tlx/timestamp.cpp
*
* Part of tlx - http://panthema.net/tlx
*
* Copyright (C) 2019 Timo Bingmann <tb@panthema.net>
*
* All rights reserved. Published under the Boost Software License, Version 1.0
*********************************... | 28.269231 | 80 | 0.451701 | mullovc |
5aea94dbf1a332c0bde67c48cfa530baca832597 | 271 | cpp | C++ | task5/MockConfiguration.cpp | hasherezade/mastercoder2014 | cc9e201fa8e5c7b2b8b085a777b10b70e4827705 | [
"BSD-3-Clause"
] | 9 | 2015-09-27T10:35:02.000Z | 2021-12-26T13:21:35.000Z | task5/MockConfiguration.cpp | hasherezade/mastercoder2014 | cc9e201fa8e5c7b2b8b085a777b10b70e4827705 | [
"BSD-3-Clause"
] | null | null | null | task5/MockConfiguration.cpp | hasherezade/mastercoder2014 | cc9e201fa8e5c7b2b8b085a777b10b70e4827705 | [
"BSD-3-Clause"
] | 6 | 2016-03-25T07:02:36.000Z | 2022-02-24T06:28:16.000Z | #include "MockConfiguration.h"
DistanceType MockConfiguration::getDistnanceType()
{
return currentType;
}
void MockConfiguration::useJaroWinkler()
{
currentType = JARO_WINKLER;
}
void MockConfiguration::useLevenshtein()
{
currentType = LEVENSHTEIN;
} | 16.9375 | 51 | 0.745387 | hasherezade |
5aebd39ecd2063eadc43241eb6177b5810862f50 | 3,182 | cpp | C++ | dkk_lib/src/Communicator.cpp | mjf-89/DistributedKernelKmeans | ca6daa81cd51a0f2400a111c5d10a9ef144f1574 | [
"MIT"
] | null | null | null | dkk_lib/src/Communicator.cpp | mjf-89/DistributedKernelKmeans | ca6daa81cd51a0f2400a111c5d10a9ef144f1574 | [
"MIT"
] | null | null | null | dkk_lib/src/Communicator.cpp | mjf-89/DistributedKernelKmeans | ca6daa81cd51a0f2400a111c5d10a9ef144f1574 | [
"MIT"
] | null | null | null | #include <stdlib.h>
#include "Communicator.h"
#include "DistributedArray2D.h"
namespace DKK{
Communicator::Communicator(int *argc, char*** argv)
{
MPI_Init(argc, argv);
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Comm_size(MPI_COMM_WORLD, &size);
dsps = (int*)malloc(sizeof(int)*size);
cnts = (int*)malloc(sizeof(... | 25.869919 | 118 | 0.714645 | mjf-89 |
5af39e0a103be2f95f20ae701bb4c5c528617591 | 8,136 | inl | C++ | H3API/lib/h3api/H3Allocator/H3Allocator.inl | pawel54321/H3Plugins | 737739beabb8c80f393ee480949c1e37b3c61507 | [
"MIT"
] | 45 | 2019-06-13T15:41:59.000Z | 2022-03-20T06:04:42.000Z | H3API/lib/h3api/H3Allocator/H3Allocator.inl | pawel54321/H3Plugins | 737739beabb8c80f393ee480949c1e37b3c61507 | [
"MIT"
] | 20 | 2020-04-06T14:09:42.000Z | 2021-12-14T04:21:52.000Z | H3API/lib/h3api/H3Allocator/H3Allocator.inl | pawel54321/H3Plugins | 737739beabb8c80f393ee480949c1e37b3c61507 | [
"MIT"
] | 9 | 2019-06-13T15:42:03.000Z | 2021-02-10T12:03:30.000Z | //////////////////////////////////////////////////////////////////////
// //
// Created by RoseKavalier: //
// rosekavalierhc@gmail.com //
// Created: 20... | 24.286567 | 106 | 0.660767 | pawel54321 |
5af6666e50842e290dae73c96e019c40f81b4ec2 | 54 | hpp | C++ | src/boost_flyweight_intermodule_holder_fwd.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_flyweight_intermodule_holder_fwd.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_flyweight_intermodule_holder_fwd.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/flyweight/intermodule_holder_fwd.hpp>
| 27 | 53 | 0.851852 | miathedev |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.