hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count float64 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 float64 1 77k ⌀ | 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 float64 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 653k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
347a33b9a8cc5b8581d4094543dd9a5abb969da8 | 38,090 | inl | C++ | src/fonts/stb_font_consolas_32_usascii.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | 3 | 2018-03-13T12:51:57.000Z | 2021-10-11T11:32:17.000Z | src/fonts/stb_font_consolas_32_usascii.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | null | null | null | src/fonts/stb_font_consolas_32_usascii.inl | stetre/moonfonts | 5c8010c02ea62edcf42902e09478b0cd14af56ea | [
"MIT"
] | null | null | null | // Font generated by stb_font_inl_generator.c (4/1 bpp)
//
// Following instructions show how to use the only included font, whatever it is, in
// a generic way so you can replace it with any other font by changing the include.
// To use multiple fonts, replace STB_SOMEFONT_* below with STB_FONT_consolas_32_usascii... | 65 | 123 | 0.787792 |
348159ff209f445fb25dd54f0c7f876f36c2bb02 | 623 | cpp | C++ | QEdit/src/CFGReader.cpp | JannikNickel/QEdit | 8d09bcdc6fd4a8e2ecf969edb852de8a1c43dd7e | [
"MIT"
] | null | null | null | QEdit/src/CFGReader.cpp | JannikNickel/QEdit | 8d09bcdc6fd4a8e2ecf969edb852de8a1c43dd7e | [
"MIT"
] | null | null | null | QEdit/src/CFGReader.cpp | JannikNickel/QEdit | 8d09bcdc6fd4a8e2ecf969edb852de8a1c43dd7e | [
"MIT"
] | null | null | null | #include "CFGReader.h"
CFGReader::CFGReader(std::ifstream* file)
{
if(file == nullptr)
{
return;
}
std::string line;
while(getline(*file, line))
{
long index = line.find('=');
if(index != std::string::npos)
{
std::string attribute = line.substr(0, index);
std::string value = line.substr(index + 1, ... | 18.878788 | 75 | 0.629213 |
34851f8db2d45beda90ff00a004978998bc317ea | 2,863 | hpp | C++ | include/codegen/include/System/Threading/AbandonedMutexException.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | 1 | 2021-11-12T09:29:31.000Z | 2021-11-12T09:29:31.000Z | include/codegen/include/System/Threading/AbandonedMutexException.hpp | Futuremappermydud/Naluluna-Modifier-Quest | bfda34370764b275d90324b3879f1a429a10a873 | [
"MIT"
] | null | null | null | include/codegen/include/System/Threading/AbandonedMutexException.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:09:45 PM
// Created by Sc2ad
// =========================================================================
#pragma once
#pragma pack(push, 8)
// Begin includes
// Including type: System.SystemException
#include "System/SystemException.hpp"
#include "utils/il2cpp-util... | 46.934426 | 162 | 0.747468 |
348607e6739ad68f3ca92c3db60ded07b791a985 | 2,734 | cpp | C++ | src/scexpressionparser.cpp | BryanMorfe/SciCalc | 1602c159c48013beb8dee09ff648923f37c69e09 | [
"Apache-2.0"
] | 1 | 2020-12-13T16:56:32.000Z | 2020-12-13T16:56:32.000Z | src/scexpressionparser.cpp | BryanMorfe/SciCalc | 1602c159c48013beb8dee09ff648923f37c69e09 | [
"Apache-2.0"
] | null | null | null | src/scexpressionparser.cpp | BryanMorfe/SciCalc | 1602c159c48013beb8dee09ff648923f37c69e09 | [
"Apache-2.0"
] | null | null | null | #include "include/scexpressionparser.h"
#include <QStack>
#include <QDebug>
#include "include/sctokenoperations.h"
const SCExpressionParser SCExpressionParser::shared;
SCExpressionParser::SCExpressionParser() {}
SCParsedExpression SCExpressionParser::parse(const SCInExpression &exp)
{
QStack<SCToken> opStack;... | 30.719101 | 114 | 0.557059 |
348bafc7e3314b9fc89b277c6e4b7730831638be | 1,001 | cpp | C++ | Server/Server/src/core/item/item.cpp | vahmoh26/Messenger | 3413b2eedbb5ed867928c2dfe17ad2c118712f6e | [
"MIT"
] | null | null | null | Server/Server/src/core/item/item.cpp | vahmoh26/Messenger | 3413b2eedbb5ed867928c2dfe17ad2c118712f6e | [
"MIT"
] | null | null | null | Server/Server/src/core/item/item.cpp | vahmoh26/Messenger | 3413b2eedbb5ed867928c2dfe17ad2c118712f6e | [
"MIT"
] | null | null | null | #include "item.h"
#include <sstream>
#include <boost/iostreams/stream.hpp>
#include <boost/archive/text_iarchive.hpp>
#include <boost/archive/text_oarchive.hpp>
namespace server::core
{
using namespace boost;
item::item()
{
_type = type::unknown;
}
item::item(type type) : item()
{
set_type(type);
}
it... | 15.4 | 97 | 0.669331 |
348e1436324a8a5116a0d47c51a987498a14e5ac | 28,923 | hpp | C++ | src/attention_layer.hpp | isi-nlp/Zoph_RNN | 1e3e7da688cfcd0cdfb0c117cb84705399d1a967 | [
"MIT"
] | 199 | 2015-08-30T18:45:02.000Z | 2021-11-04T09:04:20.000Z | src/attention_layer.hpp | isi-nlp/Zoph_RNN | 1e3e7da688cfcd0cdfb0c117cb84705399d1a967 | [
"MIT"
] | 12 | 2016-03-07T04:37:23.000Z | 2019-04-10T08:14:06.000Z | src/attention_layer.hpp | isi-nlp/Zoph_RNN | 1e3e7da688cfcd0cdfb0c117cb84705399d1a967 | [
"MIT"
] | 72 | 2015-08-17T23:00:21.000Z | 2021-11-29T14:03:58.000Z |
template<typename dType>
attention_layer<dType>::attention_layer(int LSTM_size,int minibatch_size, int device_number, int D, int longest_sent,cublasHandle_t &handle,neuralMT_model<dType> *model,
bool feed_input,bool clip_gradients,dType norm_clip,bool dropout,dType dropout_rate,global_params ¶ms,bool bi_side)
{... | 48.856419 | 240 | 0.763959 |
3492168940e6c054403efb893ccd2ae5e67eee86 | 271 | cpp | C++ | Olamundo/02/freq03/main.cpp | tosantos1/LIP | 7dbc045afa02729f4e2f2f1d3b29baebf5be72ad | [
"MIT"
] | null | null | null | Olamundo/02/freq03/main.cpp | tosantos1/LIP | 7dbc045afa02729f4e2f2f1d3b29baebf5be72ad | [
"MIT"
] | null | null | null | Olamundo/02/freq03/main.cpp | tosantos1/LIP | 7dbc045afa02729f4e2f2f1d3b29baebf5be72ad | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
int opa(int a);
int main()
{
int n;
cin >> n;
cout << opa(n);
return 0;
}
int opa(int n){
if(n == 1 || n == 0){
return n;
}else{
return opa(n - 1) + opa (n-2);
}
return 0;
}
| 10.037037 | 38 | 0.450185 |
34925620a1745cc31dfa47a1a0ebdb4a7abec0c6 | 2,306 | hpp | C++ | mln.hpp | pisa-engine/mln | 9c03f78de5539c245a991b209a8a406f9fc64892 | [
"Apache-2.0"
] | null | null | null | mln.hpp | pisa-engine/mln | 9c03f78de5539c245a991b209a8a406f9fc64892 | [
"Apache-2.0"
] | null | null | null | mln.hpp | pisa-engine/mln | 9c03f78de5539c245a991b209a8a406f9fc64892 | [
"Apache-2.0"
] | null | null | null | #include <algorithm>
#include <array>
#include <cstddef>
#include <cstdint>
#include <iostream>
#include <numeric>
template <size_t Q>
class mln {
using Table = std::array<std::array<uint8_t, Q>, Q>;
static Table generate_compression_table(const uint32_t *in, const size_t n)
{
std::array<std::arra... | 28.469136 | 80 | 0.436687 |
349327048909567c2b1b78effa6490a6774928e0 | 334 | cpp | C++ | modules/cpp-alignlib-wrapper/src/wrapalignlib.cpp | wwPDB/py-wwpdb_utils_align | 424a285b455ee894b728526166ac244aaef6bd5c | [
"Apache-2.0"
] | null | null | null | modules/cpp-alignlib-wrapper/src/wrapalignlib.cpp | wwPDB/py-wwpdb_utils_align | 424a285b455ee894b728526166ac244aaef6bd5c | [
"Apache-2.0"
] | null | null | null | modules/cpp-alignlib-wrapper/src/wrapalignlib.cpp | wwPDB/py-wwpdb_utils_align | 424a285b455ee894b728526166ac244aaef6bd5c | [
"Apache-2.0"
] | 1 | 2020-09-12T17:12:32.000Z | 2020-09-12T17:12:32.000Z | // File: ./src/wrapalignlib.cpp
// Date: 2018-10-15
//
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
namespace py = pybind11;
using namespace pybind11::literals;
void wrapPairwiseAlign(py::module &);
void wrapPseudoMultiAlign(py::module &);
PYBIND11_MODULE(alignlib, m) {
wrapPairwiseAlign(m);
wrapPseudoMul... | 20.875 | 40 | 0.748503 |
34946d44745756e2ec3f3c918ad22612c3b6c769 | 1,568 | cpp | C++ | training/Codeforces/765E.cpp | voleking/ICPC | fc2cf408fa2607ad29b01eb00a1a212e6d0860a5 | [
"MIT"
] | 68 | 2017-10-08T04:44:23.000Z | 2019-08-06T20:15:02.000Z | training/Codeforces/765E.cpp | voleking/ICPC | fc2cf408fa2607ad29b01eb00a1a212e6d0860a5 | [
"MIT"
] | null | null | null | training/Codeforces/765E.cpp | voleking/ICPC | fc2cf408fa2607ad29b01eb00a1a212e6d0860a5 | [
"MIT"
] | 18 | 2017-05-31T02:52:23.000Z | 2019-07-05T09:18:34.000Z | // written at 10:47 on 15 Feb 2017
#include <bits/stdc++.h>
#define IOS std::ios::sync_with_stdio(false); std::cin.tie(nullptr); std::cout.tie(nullptr);
// #define __DEBUG__
#ifdef __DEBUG__
#define DEBUG(...) printf(__VA_ARGS__)
#else
#define DEBUG(...)
#endif
#define filename ""
#define setfile() freopen(fi... | 27.034483 | 118 | 0.568878 |
34980dd4ee5102d7f277e8da22a98350b5762241 | 4,210 | cpp | C++ | samples/widgets/app/app.cpp | reubenscratton/oaknut | 03b37965ad84745bd5c077a27d8b53d58a173662 | [
"MIT"
] | 5 | 2019-10-04T05:10:06.000Z | 2021-02-03T23:29:10.000Z | samples/widgets/app/app.cpp | reubenscratton/oaknut | 03b37965ad84745bd5c077a27d8b53d58a173662 | [
"MIT"
] | null | null | null | samples/widgets/app/app.cpp | reubenscratton/oaknut | 03b37965ad84745bd5c077a27d8b53d58a173662 | [
"MIT"
] | 2 | 2019-09-27T00:34:36.000Z | 2020-10-27T09:44:26.000Z | //
// Copyright © 2020 Sandcastle Software Ltd. All rights reserved.
//
// This file is part of 'Oaknut' which is released under the MIT License.
// See the LICENSE file in the root of this installation for details.
//
#include <oaknut.h>
class Drawer : public LinearLayout {
public:
Drawer() : LinearLayout() {
... | 27.337662 | 108 | 0.553682 |
349ba7372ae75faf9748c31dd57c25d3c5bad952 | 11,795 | hh | C++ | BdbTime/BdbTime.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | BdbTime/BdbTime.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | BdbTime/BdbTime.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | #ifndef BDBTIME_HH
#define BDBTIME_HH
//-----------------------------------------------------------------------------
//
// File and Version Information:
// $Id: BdbTime.hh 496 2010-01-13 17:10:44Z stroili $
//
// Description:
// Class BdbTime.
// This is a persistent time class.
//
// Environment:
//... | 34.188406 | 79 | 0.635693 |
34a130d2f192dabab62ccfa996c7233cbfd19e29 | 434 | cc | C++ | exercises/ESEMPI_BASE/operatori_aritmetici.cc | mfranzil/Programmazione1UniTN | 0aee3ec51d424039afcabfa9de80046c1d5be7d9 | [
"MIT"
] | 3 | 2021-11-05T16:25:50.000Z | 2022-02-10T14:06:00.000Z | exercises/ESEMPI_BASE/operatori_aritmetici.cc | mfranzil/Programmazione1UniTN | 0aee3ec51d424039afcabfa9de80046c1d5be7d9 | [
"MIT"
] | null | null | null | exercises/ESEMPI_BASE/operatori_aritmetici.cc | mfranzil/Programmazione1UniTN | 0aee3ec51d424039afcabfa9de80046c1d5be7d9 | [
"MIT"
] | 2 | 2018-10-31T14:53:40.000Z | 2020-01-09T22:34:37.000Z | using namespace std;
#include <iostream>
int main ()
{
int n = 7;
int m = 3;
cout << "n = " << n << endl;
cout << "m = " << m << endl;
cout << "n+m = " << n+m << endl;
cout << "n-m = " << n-m << endl;
cout << "n*m = " << n*m << endl;
cout << "n/m = " << n/m << endl;
cout << "n%m =... | 17.36 | 40 | 0.368664 |
34af9fbebdb458197455883fd2889c4ad5b4a65f | 1,788 | cpp | C++ | src/main/utils.cpp | qzerrty/graphics-editor | af76f1466bac3b3ba7363272af74ab04e6ee44ae | [
"MIT"
] | null | null | null | src/main/utils.cpp | qzerrty/graphics-editor | af76f1466bac3b3ba7363272af74ab04e6ee44ae | [
"MIT"
] | null | null | null | src/main/utils.cpp | qzerrty/graphics-editor | af76f1466bac3b3ba7363272af74ab04e6ee44ae | [
"MIT"
] | null | null | null | #include <SDL/SDL.h>
#include <SDL/SDL_ttf.h>
#include "graphicsEditor.hpp"
#include "utils.hpp"
SDL_Color translate_color(Uint32 int_color) {
#if SDL_BYTEORDER != SDL_BIG_ENDIAN
SDL_Color color={
(Uint8) ((int_color & 0x00ff0000)/0x10000),
(Uint8) ((int_color & 0x0000ff00)/0x100),
(Uint8) (int_color & 0x0... | 24.833333 | 101 | 0.630313 |
34b072586a0bd73e7f7ce8ab30fc9e1f3d7410ee | 7,245 | cpp | C++ | Tests/GuiTests/DFNs/DisparityImage/DisparityImageEdres.cpp | H2020-InFuse/cdff | e55fd48f9a909d0c274c3dfa4fe2704bc5071542 | [
"BSD-2-Clause"
] | 7 | 2019-02-26T15:09:50.000Z | 2021-09-30T07:39:01.000Z | Tests/GuiTests/DFNs/DisparityImage/DisparityImageEdres.cpp | H2020-InFuse/cdff | e55fd48f9a909d0c274c3dfa4fe2704bc5071542 | [
"BSD-2-Clause"
] | null | null | null | Tests/GuiTests/DFNs/DisparityImage/DisparityImageEdres.cpp | H2020-InFuse/cdff | e55fd48f9a909d0c274c3dfa4fe2704bc5071542 | [
"BSD-2-Clause"
] | 1 | 2020-12-06T12:09:05.000Z | 2020-12-06T12:09:05.000Z | /**
* @author Clément Bazerque
*/
/**
* Test application for the DFN DisparityImageEdres
*/
/**
* @addtogroup DFNsTest
* @{
*/
#include <DisparityImage/DisparityImageEdres.hpp>
#include <GuiTests/ParametersInterface.hpp>
#include <GuiTests/MainInterface.hpp>
#include <GuiTests/DFNs/DFNTestInterface.hpp>
#inclu... | 38.333333 | 157 | 0.757902 |
34b0b7cb584507f7860dc717ae0d4d5746ee8dc8 | 3,093 | cpp | C++ | src/Solver/NumericalJacobian.cpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 12 | 2020-09-07T11:19:10.000Z | 2022-02-17T17:40:19.000Z | src/Solver/NumericalJacobian.cpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 110 | 2020-09-02T15:29:24.000Z | 2022-03-09T09:50:01.000Z | src/Solver/NumericalJacobian.cpp | chalmersplasmatheory/DREAM | 715637ada94f5e35db16f23c2fd49bb7401f4a27 | [
"MIT"
] | 3 | 2021-05-21T13:24:31.000Z | 2022-02-11T14:43:12.000Z | /**
* Routines for numerically evaluating the jacobian numerically
* in the non-linear solver.
*/
#include <iostream>
#include "DREAM/Solver/SolverNonLinear.hpp"
#include "FVM/BlockMatrix.hpp"
#include "FVM/UnknownQuantity.hpp"
using namespace DREAM;
/**
* Evaluate jacobian numerically using finite difference
... | 28.118182 | 91 | 0.589395 |
34b7758ac1a85618e9b620de9522e93938a1edfa | 2,223 | cpp | C++ | App/src/UI/Windows/UIMatrixWindow.cpp | Shorakie/GraphDelta | f930ccd7c3bffc7a12fa864d6dca72375623cbcf | [
"MIT"
] | 1 | 2021-07-08T22:51:59.000Z | 2021-07-08T22:51:59.000Z | App/src/UI/Windows/UIMatrixWindow.cpp | Shorakie/GraphDelta | f930ccd7c3bffc7a12fa864d6dca72375623cbcf | [
"MIT"
] | null | null | null | App/src/UI/Windows/UIMatrixWindow.cpp | Shorakie/GraphDelta | f930ccd7c3bffc7a12fa864d6dca72375623cbcf | [
"MIT"
] | null | null | null | #include "UIMatrixWindow.h"
#include <IconsFontAwesome5.h>
#include <spdlog/fmt/fmt.h>
#include <Core/Application.h>
#include <Core/Utils.h>
#include "Components/Components.h"
using namespace entt::literals;
namespace Project {
UIMatrixWindow::UIMatrixWindow(GraphSystem& graphSystem, std::string name)
: Engine::... | 29.64 | 92 | 0.682861 |
34c3762ad4e9b277af235f077a414c405f58eda2 | 1,061 | cpp | C++ | src/database/library/artist.cpp | jeanyvesb9/PROJECTu | 9534ce3e067425a75a194e56ec53344c5346c151 | [
"Apache-2.0"
] | null | null | null | src/database/library/artist.cpp | jeanyvesb9/PROJECTu | 9534ce3e067425a75a194e56ec53344c5346c151 | [
"Apache-2.0"
] | null | null | null | src/database/library/artist.cpp | jeanyvesb9/PROJECTu | 9534ce3e067425a75a194e56ec53344c5346c151 | [
"Apache-2.0"
] | null | null | null | #include "artist.h"
using namespace DB;
Artist::Artist(QObject *parent)
:QObject(parent)
{
}
Artist::Artist(quint64 id, QByteArray name, bool albumArtist, QObject *parent)
: QObject(parent), id{id}, albumArtist{albumArtist}, name{name}
{
}
Artist::~Artist()
{
emit artistDeleted(this);
}
void Artist::s... | 16.323077 | 78 | 0.702168 |
34c3c0adf0797ceeb3c51c7caa3a1ab2eecde196 | 213 | cc | C++ | build/ARM/python/m5/internal/param_RubyPort.i_init.cc | Jakgn/gem5_test | 0ba7cc5213cf513cf205af7fc995cf679ebc1a3f | [
"BSD-3-Clause"
] | null | null | null | build/ARM/python/m5/internal/param_RubyPort.i_init.cc | Jakgn/gem5_test | 0ba7cc5213cf513cf205af7fc995cf679ebc1a3f | [
"BSD-3-Clause"
] | null | null | null | build/ARM/python/m5/internal/param_RubyPort.i_init.cc | Jakgn/gem5_test | 0ba7cc5213cf513cf205af7fc995cf679ebc1a3f | [
"BSD-3-Clause"
] | null | null | null | #include "sim/init.hh"
extern "C" {
void init_param_RubyPort();
}
EmbeddedSwig embed_swig_param_RubyPort(init_param_RubyPort, "m5.internal._param_RubyPort");
| 23.666667 | 99 | 0.596244 |
34c3fc0f23e5ac1ba2efe95219cd74ae93d99036 | 1,816 | cpp | C++ | evias/network/connection.cpp | evias/evias | 5b5d4c16404f855c3234afa05b11c339a3ebb4cb | [
"BSD-3-Clause"
] | 1 | 2015-10-31T03:18:02.000Z | 2015-10-31T03:18:02.000Z | evias/network/connection.cpp | evias/evias | 5b5d4c16404f855c3234afa05b11c339a3ebb4cb | [
"BSD-3-Clause"
] | null | null | null | evias/network/connection.cpp | evias/evias | 5b5d4c16404f855c3234afa05b11c339a3ebb4cb | [
"BSD-3-Clause"
] | null | null | null | #include "connection.hpp"
using namespace evias::network;
/**
* searchQueue
*
* pop the queue's first element or the first with identification reqId.
*
* \note returned object has to be free'd
* \return netPacket*
*/
netPacket *evias::network::netConnection::searchQueue(__netRequest_t reqId)
{
... | 21.364706 | 93 | 0.556718 |
34c7dc7488185dc25907f14567154347348f23d1 | 1,048 | cpp | C++ | apr.2020after/20200507/20200507/n_11328/n_11328.cpp | lis0517/BOJ_ | 8aafb2db9c3c08afd145db911144c28a7cec3279 | [
"MIT"
] | null | null | null | apr.2020after/20200507/20200507/n_11328/n_11328.cpp | lis0517/BOJ_ | 8aafb2db9c3c08afd145db911144c28a7cec3279 | [
"MIT"
] | null | null | null | apr.2020after/20200507/20200507/n_11328/n_11328.cpp | lis0517/BOJ_ | 8aafb2db9c3c08afd145db911144c28a7cec3279 | [
"MIT"
] | null | null | null | // n_11328.cpp : 이 파일에는 'main' 함수가 포함됩니다. 거기서 프로그램 실행이 시작되고 종료됩니다.
//
#include <iostream>
#include <string>
using namespace std;
int arr1[26];
int arr2[26];
int main()
{
int lp = 0;
cin >> lp;
for (int i = 0; i < lp; ++i)
{
fill(arr1 + 0, arr1 + 26, 0);
fill(arr2 + 0, arr2 + 26, 0);
string s1, s2;
cin ... | 19.407407 | 96 | 0.510496 |
34cddbfed49e6957150bde6c006b2a22752bfed9 | 1,241 | hpp | C++ | core/include/storm/core/Singleton.hpp | Arthapz/StormKit | 7c8dead874734d04b97776287b25bf2ebe9be617 | [
"MIT"
] | 17 | 2019-02-12T14:40:06.000Z | 2021-12-21T12:54:17.000Z | core/include/storm/core/Singleton.hpp | Arthapz/StormKit | 7c8dead874734d04b97776287b25bf2ebe9be617 | [
"MIT"
] | null | null | null | core/include/storm/core/Singleton.hpp | Arthapz/StormKit | 7c8dead874734d04b97776287b25bf2ebe9be617 | [
"MIT"
] | 2 | 2019-02-21T10:07:42.000Z | 2020-05-08T19:49:10.000Z | // Copyright (C) 2021 Arthur LAURENT <arthur.laurent4@gmail.com>
// This file is subject to the license terms in the LICENSE file
// found in the top-level of this distribution
#pragma once
#include <functional>
#include <memory>
#include <mutex>
#include <storm/core/Memory.hpp>
#include <storm/core/NonCopy... | 29.547619 | 79 | 0.589847 |
34d0bb63038a190ded7209dd6ecf81a9cc83c18d | 2,177 | cpp | C++ | DataProcessingList.cpp | AlanRace/imzMLParser | 1b9bc7f0b09bdeca9c8427448baed53483ce64e7 | [
"Apache-2.0"
] | 1 | 2021-03-18T09:51:10.000Z | 2021-03-18T09:51:10.000Z | DataProcessingList.cpp | AlanRace/imzMLParser | 1b9bc7f0b09bdeca9c8427448baed53483ce64e7 | [
"Apache-2.0"
] | null | null | null | DataProcessingList.cpp | AlanRace/imzMLParser | 1b9bc7f0b09bdeca9c8427448baed53483ce64e7 | [
"Apache-2.0"
] | 1 | 2018-06-08T09:11:55.000Z | 2018-06-08T09:11:55.000Z | /*
*
* Copyright 2013 Alan Race
*
* 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 ag... | 29.418919 | 147 | 0.702802 |
34daa666825c85dcb0228a49cf58f7b01a528b56 | 4,104 | cpp | C++ | third-year/GeometricModelling/Aufgabe01/Aufgabe01/AffineMap.cpp | JulianGR/university | 2f643825b238892d602baf0c8e71e4c1b0fdefc2 | [
"MIT"
] | null | null | null | third-year/GeometricModelling/Aufgabe01/Aufgabe01/AffineMap.cpp | JulianGR/university | 2f643825b238892d602baf0c8e71e4c1b0fdefc2 | [
"MIT"
] | null | null | null | third-year/GeometricModelling/Aufgabe01/Aufgabe01/AffineMap.cpp | JulianGR/university | 2f643825b238892d602baf0c8e71e4c1b0fdefc2 | [
"MIT"
] | null | null | null | ////////////////////////////////////////////////////////////////////
//
// Georg Umlauf, (c) 2020
//
////////////////////////////////////////////////////////////////////
#include "AffineMap.h"
// constructors
AffineMap::AffineMap (double t)
{
for (int j=0; j<4; j++)
for (int i=0; i<4; i++)
m_aatData[i][j] =... | 23.318182 | 93 | 0.522661 |
34dd8c2f033593082df54b2853bba8225c0295d4 | 4,986 | cpp | C++ | src/lockrace/modtrack.cpp | nicholasjalbert/Thrille | 117dbdbe93f81eec9398a75aebc62543498363ac | [
"OLDAP-2.8"
] | 2 | 2015-02-19T13:15:08.000Z | 2018-05-30T05:34:15.000Z | src/lockrace/modtrack.cpp | nicholasjalbert/Thrille | 117dbdbe93f81eec9398a75aebc62543498363ac | [
"OLDAP-2.8"
] | null | null | null | src/lockrace/modtrack.cpp | nicholasjalbert/Thrille | 117dbdbe93f81eec9398a75aebc62543498363ac | [
"OLDAP-2.8"
] | null | null | null | #include "modtrack.h"
ModifiedRaceTracker::ModifiedRaceTracker() : HybridRaceTracker() {
initializationHelper();
}
ModifiedRaceTracker::ModifiedRaceTracker(unsigned int wr, unsigned int rd) :
HybridRaceTracker(wr, rd) {
initializationHelper();
}
ModifiedRaceTracker::~ModifiedRaceTracker() {
}
void Mod... | 31.961538 | 79 | 0.573606 |
34e068bf48a74368721b09af4684c7e0457d20c8 | 769 | cpp | C++ | plugins/Nephilim/AngelScriptEXT/ASXRuntime.cpp | GrimshawA/Nephilim | 1e69df544078b55fdaf58a04db963e20094f27a9 | [
"Zlib"
] | 19 | 2015-12-19T11:15:57.000Z | 2022-03-09T11:22:11.000Z | plugins/Nephilim/AngelScriptEXT/ASXRuntime.cpp | DevilWithin/Nephilim | 1e69df544078b55fdaf58a04db963e20094f27a9 | [
"Zlib"
] | 1 | 2017-05-17T09:31:10.000Z | 2017-05-19T17:01:31.000Z | plugins/Nephilim/AngelScriptEXT/ASXRuntime.cpp | GrimshawA/Nephilim | 1e69df544078b55fdaf58a04db963e20094f27a9 | [
"Zlib"
] | 3 | 2015-12-14T17:40:26.000Z | 2021-02-25T00:42:42.000Z | #include <Nephilim/AngelScriptEXT/ASXRuntime.h>
#include <Nephilim/AngelScriptEXT/ASXEngine.h>
#include <angelscript.h>
NEPHILIM_NS_BEGIN
ASXRuntime::ASXRuntime()
: m_context(NULL)
{
}
ASXRuntime::ASXRuntime(ASXEngine& engine)
{
m_context = engine.get()->CreateContext();
}
ASXRuntime::~ASXRuntime()
{
if(m_conte... | 14.788462 | 47 | 0.73212 |
34e4275045040f9b3400d0cdefb85c2055a8dee0 | 21,640 | cpp | C++ | Tests/FileMgrTest.cpp | igalink/omniscidb | 94e878916991e7cf76bcd85b4091119b1ec66012 | [
"Apache-2.0"
] | null | null | null | Tests/FileMgrTest.cpp | igalink/omniscidb | 94e878916991e7cf76bcd85b4091119b1ec66012 | [
"Apache-2.0"
] | 1 | 2021-02-24T03:22:29.000Z | 2021-02-24T03:22:29.000Z | Tests/FileMgrTest.cpp | isabella232/omniscidb | bf83d84833710679debdf7a0484b6fbfc421cc96 | [
"Apache-2.0"
] | null | null | null | /*
* Copyright 2020 OmniSci, Inc.
*
* 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 t... | 44.989605 | 90 | 0.717976 |
34e5824156bb4489ce6a05a52d37e029521986e1 | 17,532 | cpp | C++ | examples/example-rtc.cpp | kirchnerlab/libpipe | 28f08b9399945bd13329937a9dd0691211826886 | [
"MIT"
] | 1 | 2018-11-08T13:41:18.000Z | 2018-11-08T13:41:18.000Z | examples/example-rtc.cpp | kirchnerlab/libpipe | 28f08b9399945bd13329937a9dd0691211826886 | [
"MIT"
] | null | null | null | examples/example-rtc.cpp | kirchnerlab/libpipe | 28f08b9399945bd13329937a9dd0691211826886 | [
"MIT"
] | null | null | null | /*
* example-rtc.cpp
*
* Copyright (c) 2010 Marc Kirchner
* 2011 David Sichau
*
*/
#include <libpipe/config.hpp>
#include <stdlib.h>
#include <exception>
#include <iostream>
#include <set>
#include <boost/pointer_cast.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/make_shared.hpp>
#include <... | 32.346863 | 84 | 0.592745 |
34e5fb3069618dfe4b629d3f544a01ef8e570dde | 2,942 | cpp | C++ | core/CODeMDistribution.cpp | shaulsal/CODeM | 8cc85972cbb21ec55f323e6a049429b9ab2e2c74 | [
"MIT"
] | null | null | null | core/CODeMDistribution.cpp | shaulsal/CODeM | 8cc85972cbb21ec55f323e6a049429b9ab2e2c74 | [
"MIT"
] | null | null | null | core/CODeMDistribution.cpp | shaulsal/CODeM | 8cc85972cbb21ec55f323e6a049429b9ab2e2c74 | [
"MIT"
] | null | null | null | /****************************************************************************
**
** Copyright (C) 2012-2015 The University of Sheffield (www.sheffield.ac.uk)
**
** This file is part of Liger.
**
** GNU Lesser General Public License Usage
** This file may be used under the terms of the GNU Lesser General
** Public Licen... | 29.128713 | 79 | 0.615228 |
34ec9e7f840721668c5b529c756e4cf5d515b7b4 | 753 | hpp | C++ | test/framework/test_logger.hpp | akshatkarani/iroha | 5acef9dd74720c6185360d951e9b11be4ef73260 | [
"Apache-2.0"
] | 1,467 | 2016-10-25T12:27:19.000Z | 2022-03-28T04:32:05.000Z | test/framework/test_logger.hpp | akshatkarani/iroha | 5acef9dd74720c6185360d951e9b11be4ef73260 | [
"Apache-2.0"
] | 2,366 | 2016-10-25T10:07:57.000Z | 2022-03-31T22:03:24.000Z | test/framework/test_logger.hpp | akshatkarani/iroha | 5acef9dd74720c6185360d951e9b11be4ef73260 | [
"Apache-2.0"
] | 662 | 2016-10-26T04:41:22.000Z | 2022-03-31T04:15:02.000Z | /**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#ifndef TEST_FRAMEWORK_TEST_LOGGER_HPP
#define TEST_FRAMEWORK_TEST_LOGGER_HPP
#include "logger/logger.hpp"
#include "logger/logger_manager_fwd.hpp"
/// Allows to log objects, which have toString() method without call... | 28.961538 | 80 | 0.746348 |
34ef50181b03004b1772f96aee5628700062067b | 2,797 | cpp | C++ | CardReaderLibrary/ImageEditHelper.cpp | klanderfri/CardReaderLibrary | 71fc4b7fc6052a9ec3fb477fccd9b3fcfa0b9c60 | [
"MIT"
] | 4 | 2019-03-18T14:06:59.000Z | 2021-07-17T18:36:12.000Z | CardReaderLibrary/ImageEditHelper.cpp | klanderfri/ReadMagicCard | 71fc4b7fc6052a9ec3fb477fccd9b3fcfa0b9c60 | [
"MIT"
] | 17 | 2018-04-12T18:03:16.000Z | 2018-05-09T18:33:07.000Z | CardReaderLibrary/ImageEditHelper.cpp | klanderfri/ReadMagicCard | 71fc4b7fc6052a9ec3fb477fccd9b3fcfa0b9c60 | [
"MIT"
] | 1 | 2019-03-25T18:31:17.000Z | 2019-03-25T18:31:17.000Z | #include "stdafx.h"
#include "ImageEditHelper.h"
#include <opencv2\imgproc.hpp>
using namespace cv;
using namespace std;
ImageEditHelper::ImageEditHelper()
{
this->converter = new ConversionHelper();
this->rectangleMethods = new RectangleHelper();
this->imageInfo = new ImageInformationHelper();
this->transformati... | 32.905882 | 154 | 0.782267 |
34f211ffa6f801582b60db6fe75a22298c813dd3 | 1,331 | cpp | C++ | src/library/sorry.cpp | leodemoura/lean_clone | cc077554b584d39bab55c360bc12a6fe7957afe6 | [
"Apache-2.0"
] | 130 | 2016-12-02T22:46:10.000Z | 2022-03-22T01:09:48.000Z | src/library/sorry.cpp | soonhokong/lean | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | [
"Apache-2.0"
] | 8 | 2017-05-03T01:21:08.000Z | 2020-02-25T11:38:05.000Z | src/library/sorry.cpp | soonhokong/lean | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | [
"Apache-2.0"
] | 28 | 2016-12-02T22:46:20.000Z | 2022-03-18T21:28:20.000Z | /*
Copyright (c) 2014 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include "kernel/type_checker.h"
#include "kernel/environment.h"
#include "library/module.h"
#include "library/constants.h"
namespace lean {
static name * ... | 30.25 | 119 | 0.67994 |
34f55e2c82c209303e5e12fa681355f0770aae26 | 11,053 | cpp | C++ | src/module_handler/handler_base.cpp | umichan0621/P2P-File-Share-System | 3025dcde37c9fe4988f993ec2fa5bfe2804eaedb | [
"MIT"
] | null | null | null | src/module_handler/handler_base.cpp | umichan0621/P2P-File-Share-System | 3025dcde37c9fe4988f993ec2fa5bfe2804eaedb | [
"MIT"
] | null | null | null | src/module_handler/handler_base.cpp | umichan0621/P2P-File-Share-System | 3025dcde37c9fe4988f993ec2fa5bfe2804eaedb | [
"MIT"
] | null | null | null | #include "handler_base.h"
#include <base/timer.h>
#include <base/config.hpp>
#include <base/logger/logger.h>
#include <module_net/net/nat_type.hpp>
#include <module_net/session_manager.h>
#include <module_peer/routing_table.h>
#include <module_peer/partner_table.h>
#define BASE_REGISTER(_FUNC) std::bind(&HandlerBase::... | 30.788301 | 108 | 0.733104 |
34f78628ca0943ee66cfcaa60a42f807b598d9f2 | 38,754 | cpp | C++ | JkDefrag/Source/JkDefragGui.cpp | dasmurphy/JKDefrag-Original | b6e636d073c7e3b72887f688ada0b3d60471a277 | [
"Apache-2.0"
] | 6 | 2019-04-03T19:50:40.000Z | 2022-03-22T15:59:08.000Z | JkDefrag/Source/JkDefragGui.cpp | 7lima/JKDefrag-Original | 732af9e2858ba3bf0f94a1741ac5698d89b811da | [
"Apache-2.0"
] | null | null | null | JkDefrag/Source/JkDefragGui.cpp | 7lima/JKDefrag-Original | 732af9e2858ba3bf0f94a1741ac5698d89b811da | [
"Apache-2.0"
] | 4 | 2019-02-28T18:30:10.000Z | 2020-11-01T16:32:39.000Z | #include "StdAfx.h"
/*
#include "JKDefragStruct.h"
#include "JKDefragLog.h"
#include "JkDefragLib.h"
#include "JkDefragGui.h"
*/
JKDefragGui *JKDefragGui::m_jkDefragGui = 0;
JKDefragGui::JKDefragGui()
{
m_jkLib = JKDefragLib::getInstance();
m_bmp = NULL;
jkStruct = new JKDefragStruct();
m_s... | 26.616758 | 128 | 0.645843 |
5a560a47e4c98284c4949d131cbe6cd6b3f1822b | 2,056 | hpp | C++ | types/containers/ColumnVectorUtil.hpp | Hacker0912/quickstep-datalog | 1de22e7ab787b5efa619861a167a097ff6a4f549 | [
"Apache-2.0"
] | 82 | 2016-04-18T03:59:06.000Z | 2019-02-04T11:46:08.000Z | types/containers/ColumnVectorUtil.hpp | Hacker0912/quickstep-datalog | 1de22e7ab787b5efa619861a167a097ff6a4f549 | [
"Apache-2.0"
] | 265 | 2016-04-19T17:52:43.000Z | 2018-10-11T17:55:08.000Z | types/containers/ColumnVectorUtil.hpp | Hacker0912/quickstep-datalog | 1de22e7ab787b5efa619861a167a097ff6a4f549 | [
"Apache-2.0"
] | 68 | 2016-04-18T05:00:34.000Z | 2018-10-30T12:41:02.000Z | /**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you... | 35.448276 | 78 | 0.738327 |
5a6056593fed418eec1850f6ec3aad256a72945f | 9,432 | cpp | C++ | KeePass.1.39.a/LibraryMB/Date.cpp | rrvt/KeePassLastPass | 217b627d906cf0af21ac69643a2d2e24e88f934b | [
"MIT"
] | null | null | null | KeePass.1.39.a/LibraryMB/Date.cpp | rrvt/KeePassLastPass | 217b627d906cf0af21ac69643a2d2e24e88f934b | [
"MIT"
] | 1 | 2020-05-01T00:37:31.000Z | 2020-05-01T00:37:31.000Z | KeePass.1.39.a/LibraryMB/Date.cpp | rrvt/KeePassLastPass | 217b627d906cf0af21ac69643a2d2e24e88f934b | [
"MIT"
] | 1 | 2020-02-25T09:11:37.000Z | 2020-02-25T09:11:37.000Z | // Date & Time using CTime
#include "stdafx.h"
#include "Date.h"
#include "MessageBox.h"
#include "StringInput.h"
// Helper functions for dealing with Edit boxes
static bool vrfyMnth( int cnt, TCchar ch, int& v);
static bool vrfyDay( int cnt, TCchar ch, int& v);
static bool vrfyYr( int cnt, TCchar ch, int& v);
... | 24.886544 | 105 | 0.502969 |
5a63f54de0d91ae503705aea54597e7b8c540ec2 | 4,572 | cpp | C++ | active16/src/libalf/libalf_interfaces/jalf/src/jni_algorithm_kearns_vazirani.cpp | adiojha629/JIRP_LRM | a06e3725a8f4f406a100d2a4c2c69d4e9450a2d3 | [
"MIT"
] | 2 | 2021-09-22T13:02:55.000Z | 2021-11-08T19:16:55.000Z | active16/src/libalf/libalf_interfaces/jalf/src/jni_algorithm_kearns_vazirani.cpp | adiojha629/JIRP_LRM | a06e3725a8f4f406a100d2a4c2c69d4e9450a2d3 | [
"MIT"
] | null | null | null | active16/src/libalf/libalf_interfaces/jalf/src/jni_algorithm_kearns_vazirani.cpp | adiojha629/JIRP_LRM | a06e3725a8f4f406a100d2a4c2c69d4e9450a2d3 | [
"MIT"
] | null | null | null | /* $Id: jni_algorithm_angluin.cpp 1081 2009-11-11 16:33:40Z davidpiegdon $
* vim: fdm=marker
*
* This file is part of libalf.
*
* libalf is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either ver... | 38.1 | 208 | 0.783902 |
5a669cb970f23e3dc4e79c2350eaf2177bf271a6 | 36 | cpp | C++ | src/lib/universal_include.cpp | abainbridge/trex-warrior | fac95802ce7efd8dc9c50f915ce8d5891f545640 | [
"BSD-2-Clause"
] | null | null | null | src/lib/universal_include.cpp | abainbridge/trex-warrior | fac95802ce7efd8dc9c50f915ce8d5891f545640 | [
"BSD-2-Clause"
] | null | null | null | src/lib/universal_include.cpp | abainbridge/trex-warrior | fac95802ce7efd8dc9c50f915ce8d5891f545640 | [
"BSD-2-Clause"
] | null | null | null | #include "lib/universal_include.h"
| 18 | 35 | 0.777778 |
5a6a1c2975c6531dff0687018ae8062dd9ace258 | 1,354 | hpp | C++ | include/utility/container/helper/in_place_t.hpp | SakuraLife/utility | b9bf26198917b6dc415520f74eb3eebf8aa8195e | [
"Unlicense"
] | 2 | 2017-12-10T10:59:48.000Z | 2017-12-13T04:11:14.000Z | include/utility/container/helper/in_place_t.hpp | SakuraLife/utility | b9bf26198917b6dc415520f74eb3eebf8aa8195e | [
"Unlicense"
] | null | null | null | include/utility/container/helper/in_place_t.hpp | SakuraLife/utility | b9bf26198917b6dc415520f74eb3eebf8aa8195e | [
"Unlicense"
] | null | null | null |
#ifndef __UTILITY_CONTAINER_HELPER_IN_PLACE_T__
#define __UTILITY_CONTAINER_HELPER_IN_PLACE_T__
/**
* \file ignore_t.hpp
* \author Inochi Amaoto
*
*/
#include<utility/config/utility_config.hpp>
#include<utility/trait/trait_helper.hpp>
namespace utility
{
namespace container
{
namespace helper
{
... | 21.492063 | 84 | 0.70384 |
5a6bba96e35124ac92ce3b4f4a40e291e65d674f | 1,591 | cpp | C++ | data/train/cpp/469397c48114ed209f7e63666c457ceb0a48a171StreamInterface.cpp | harshp8l/deep-learning-lang-detection | 2a54293181c1c2b1a2b840ddee4d4d80177efb33 | [
"MIT"
] | 84 | 2017-10-25T15:49:21.000Z | 2021-11-28T21:25:54.000Z | data/train/cpp/469397c48114ed209f7e63666c457ceb0a48a171StreamInterface.cpp | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 5 | 2018-03-29T11:50:46.000Z | 2021-04-26T13:33:18.000Z | data/train/cpp/469397c48114ed209f7e63666c457ceb0a48a171StreamInterface.cpp | vassalos/deep-learning-lang-detection | cbb00b3e81bed3a64553f9c6aa6138b2511e544e | [
"MIT"
] | 24 | 2017-11-22T08:31:00.000Z | 2022-03-27T01:22:31.000Z | /////////////////////////////////////////////////////////////
/** @file StreamInterface.cpp
* @ingroup Utils
*
* @author Luk2010
* @version 0.1A
*
* @date 04/01/2013 - 23/03/2014
*
* Implements the Streams class.
*
**/
/////////////////////////////////////////////////////////////
#include "StreamInterface... | 15.598039 | 63 | 0.478944 |
5a6d51ec62e418d64eab8cc29602dbba21ee1c56 | 3,011 | cpp | C++ | src/PID.cpp | iamsumit16/PID_Controller_Project-9 | a71e79eb2bbffb761c757acb9620948ec075e6f6 | [
"MIT"
] | null | null | null | src/PID.cpp | iamsumit16/PID_Controller_Project-9 | a71e79eb2bbffb761c757acb9620948ec075e6f6 | [
"MIT"
] | null | null | null | src/PID.cpp | iamsumit16/PID_Controller_Project-9 | a71e79eb2bbffb761c757acb9620948ec075e6f6 | [
"MIT"
] | null | null | null | #include "PID.h"
using namespace std;
/*
* TODO: Complete the PID class.
*/
PID::PID() {}
PID::~PID() {}
void PID::Init(double Kp, double Ki, double Kd) {
// Assign to instance variables
this -> Kp = Kp;
this -> Ki = Ki;
this -> Kd = Kd;
// Initialize errors to zero
... | 23.341085 | 83 | 0.42544 |
5a6dac2ed132145899c82aff673bf5521101c34d | 2,484 | cpp | C++ | src/event.cpp | jaykang920/x2boost | 2a1160b7f840b7ceea6b18e61603ab4e0ce7a94c | [
"MIT"
] | null | null | null | src/event.cpp | jaykang920/x2boost | 2a1160b7f840b7ceea6b18e61603ab4e0ce7a94c | [
"MIT"
] | null | null | null | src/event.cpp | jaykang920/x2boost | 2a1160b7f840b7ceea6b18e61603ab4e0ce7a94c | [
"MIT"
] | null | null | null | // Copyright (c) 2014-2017 Jae-jun Kang
// See the file LICENSE for details.
#include "x2boost/event.hpp"
#include <boost/functional/hash.hpp>
#include <boost/thread/once.hpp>
#include "x2boost/deserializer.hpp"
#include "x2boost/event_factory.hpp"
#include "x2boost/serializer.hpp"
using namespace x2boost;
namespa... | 20.032258 | 82 | 0.646135 |
5a6f5388a2fccc8bc1c1b26effb8ed7388b6643e | 8,267 | cpp | C++ | Source/Platform/String.cpp | Hork-Engine/Hork-Source | 1670e7b04dcfd28d6efdcae06a30c00e303be28f | [
"MIT"
] | 17 | 2022-01-31T07:43:06.000Z | 2022-03-29T10:30:25.000Z | Source/Platform/String.cpp | Hork-Engine/Hork-Source | 1670e7b04dcfd28d6efdcae06a30c00e303be28f | [
"MIT"
] | 2 | 2022-02-06T14:46:40.000Z | 2022-02-08T09:46:54.000Z | Source/Platform/String.cpp | Hork-Engine/Hork-Source | 1670e7b04dcfd28d6efdcae06a30c00e303be28f | [
"MIT"
] | 1 | 2022-02-15T08:23:23.000Z | 2022-02-15T08:23:23.000Z | /*
Hork Engine Source Code
MIT License
Copyright (C) 2017-2022 Alexander Samusev.
This file is part of the Hork Engine Source Code.
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 rest... | 18.961009 | 79 | 0.477803 |
5a7101e2844fbc9e66964710842291a84c9e091d | 4,022 | cpp | C++ | Project1.cpp | TomasOchoa/CSCI-261-Project1-SimpleFileProcessing | a3413ee5b404944a2e4ea9204c35ad252f899e84 | [
"MIT"
] | null | null | null | Project1.cpp | TomasOchoa/CSCI-261-Project1-SimpleFileProcessing | a3413ee5b404944a2e4ea9204c35ad252f899e84 | [
"MIT"
] | null | null | null | Project1.cpp | TomasOchoa/CSCI-261-Project1-SimpleFileProcessing | a3413ee5b404944a2e4ea9204c35ad252f899e84 | [
"MIT"
] | null | null | null | // CSCI 216 Fundamentals of Programming II Spring 2015
// Program #1: Getting started
// Author: Tomas Ochoa
// Date Due: 26 January 2015
//
// This object of this program is to do some simple file processing. The program will first
// ask the user to input a file name. If it doesn't exist it will continue to as... | 28.323944 | 95 | 0.58901 |
5a72682a7ae8be6fabc274a1d8efa6a2371a9390 | 96 | cpp | C++ | src/examples/06_module/02_shapes/circle.cpp | acc-cosc-1337-spring-2021/acc-cosc-1337-spring-2021-willcastl3 | 47a99259ea78662bd61a7f3390c8d59e004179e3 | [
"MIT"
] | null | null | null | src/examples/06_module/02_shapes/circle.cpp | acc-cosc-1337-spring-2021/acc-cosc-1337-spring-2021-willcastl3 | 47a99259ea78662bd61a7f3390c8d59e004179e3 | [
"MIT"
] | null | null | null | src/examples/06_module/02_shapes/circle.cpp | acc-cosc-1337-spring-2021/acc-cosc-1337-spring-2021-willcastl3 | 47a99259ea78662bd61a7f3390c8d59e004179e3 | [
"MIT"
] | 1 | 2021-05-25T20:20:15.000Z | 2021-05-25T20:20:15.000Z | //circle.cpp
#include "circle.h"
using std::cout;
void Circle::draw()
{
cout<<"Circle\n";
} | 12 | 21 | 0.625 |
5a77c92d07cdc42e7f340155d5922230aa50d47a | 4,199 | cpp | C++ | ofxTweener/src/ofxTweener.cpp | itsukichang/vacuuuum | 9bb8605270d3da1acc6901287f9d08fc31119d87 | [
"MIT"
] | null | null | null | ofxTweener/src/ofxTweener.cpp | itsukichang/vacuuuum | 9bb8605270d3da1acc6901287f9d08fc31119d87 | [
"MIT"
] | null | null | null | ofxTweener/src/ofxTweener.cpp | itsukichang/vacuuuum | 9bb8605270d3da1acc6901287f9d08fc31119d87 | [
"MIT"
] | null | null | null | /*
* ofxTweener.cpp
* openFrameworks
*
* Created by Sander ter Braak on 26-08-10.
*
*/
#include "ofxTweener.h"
ofxTweener Tweener;
ofxTweener::ofxTweener(){
_scale = 1;
setMode(TWEENMODE_OVERRIDE);
}
void ofxTweener::addTween(float &var, float to, float time, void (^callback)(float * arg)){
addTween(var... | 30.208633 | 206 | 0.637056 |
5a7821bce812b57e30493eaad57b046a6b4320a8 | 319 | cpp | C++ | test/io.cpp | victorrseloy/JSCPP-LIVE-REPL | 941b5fd787b05e7ff18327a982b0a225ebfba70f | [
"MIT"
] | 773 | 2015-05-26T23:51:00.000Z | 2022-03-12T13:39:09.000Z | test/io.cpp | victorrseloy/JSCPP-LIVE-REPL | 941b5fd787b05e7ff18327a982b0a225ebfba70f | [
"MIT"
] | 128 | 2015-03-28T09:11:26.000Z | 2022-03-11T09:14:28.000Z | test/io.cpp | victorrseloy/JSCPP-LIVE-REPL | 941b5fd787b05e7ff18327a982b0a225ebfba70f | [
"MIT"
] | 74 | 2015-06-16T08:44:49.000Z | 2022-02-22T18:48:58.000Z | #include "iostream"
#include "iomanip"
using namespace std;
int main() {
double f = 3.14159;
cout << setprecision(5) << f << '\n';
cout << setprecision(9) << f << '\n';
cout << fixed;
cout << setprecision(5) << f << '\n';
cout << setprecision(9) << f << '\n';
cout << setw(15) << f << '\n';
return 0;
} | 22.785714 | 39 | 0.532915 |
5a7921f5c48252f44f0dcb2adfe8895fe89dcca0 | 189 | cpp | C++ | mod01/ex05/main.cpp | paozer/piscine_cpp | 449d4a60b3c50c7ba6d94e38a7b632b5f447a438 | [
"Unlicense"
] | null | null | null | mod01/ex05/main.cpp | paozer/piscine_cpp | 449d4a60b3c50c7ba6d94e38a7b632b5f447a438 | [
"Unlicense"
] | null | null | null | mod01/ex05/main.cpp | paozer/piscine_cpp | 449d4a60b3c50c7ba6d94e38a7b632b5f447a438 | [
"Unlicense"
] | 2 | 2021-01-31T13:52:11.000Z | 2021-05-19T18:36:17.000Z | #include <iostream>
#include "Human.hpp"
int main()
{
Human bob;
std::cout << bob.identity() << std::endl;
std::cout << bob.getBrain().identity() << std::endl;
return 0;
}
| 17.181818 | 56 | 0.582011 |
5a798feffd0da4d3021a49dd4b74f077919dffa2 | 5,576 | cpp | C++ | implementations/ugene/src/corelibs/U2Lang/src/model/ExternalToolCfg.cpp | r-barnes/sw_comparison | 1ac2c9cc10a32badd6b8fb1e96516c97f7800176 | [
"BSD-Source-Code"
] | null | null | null | implementations/ugene/src/corelibs/U2Lang/src/model/ExternalToolCfg.cpp | r-barnes/sw_comparison | 1ac2c9cc10a32badd6b8fb1e96516c97f7800176 | [
"BSD-Source-Code"
] | null | null | null | implementations/ugene/src/corelibs/U2Lang/src/model/ExternalToolCfg.cpp | r-barnes/sw_comparison | 1ac2c9cc10a32badd6b8fb1e96516c97f7800176 | [
"BSD-Source-Code"
] | null | null | null | /**
* UGENE - Integrated Bioinformatics Tools.
* Copyright (C) 2008-2020 UniPro <ugene@unipro.ru>
* http://ugene.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 Foundation; either version 2
* ... | 32.8 | 194 | 0.725072 |
5a7a8fd8615ec69ed0acb0c456a9a617b264a834 | 11,651 | cpp | C++ | Examples/Example1/Example1.cpp | mpartio/MXADataModel | cfab4b41bca5c71d0ab16fb4f3ed3097093f0a57 | [
"BSD-3-Clause"
] | null | null | null | Examples/Example1/Example1.cpp | mpartio/MXADataModel | cfab4b41bca5c71d0ab16fb4f3ed3097093f0a57 | [
"BSD-3-Clause"
] | null | null | null | Examples/Example1/Example1.cpp | mpartio/MXADataModel | cfab4b41bca5c71d0ab16fb4f3ed3097093f0a57 | [
"BSD-3-Clause"
] | 1 | 2020-08-26T07:08:26.000Z | 2020-08-26T07:08:26.000Z | ///////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2007, 2010 Michael A. Jackson for BlueQuartz Software
// All rights reserved.
// BSD License: http://www.opensource.org/licenses/bsd-license.html
//
// This code was written under United States Air Force Contract num... | 40.314879 | 157 | 0.634967 |
5a7bd61fb13f1c2a6333018f5dd33db02ad43053 | 345 | cpp | C++ | C++/queue/queueTest2.cpp | faber222/Aulas-Prog | 989843c5e0ede5b7a5e8fffbd4c2da80e924ffdb | [
"MIT"
] | null | null | null | C++/queue/queueTest2.cpp | faber222/Aulas-Prog | 989843c5e0ede5b7a5e8fffbd4c2da80e924ffdb | [
"MIT"
] | null | null | null | C++/queue/queueTest2.cpp | faber222/Aulas-Prog | 989843c5e0ede5b7a5e8fffbd4c2da80e924ffdb | [
"MIT"
] | null | null | null | #include <iostream>
#include <queue>
using namespace std;
int main() {
queue<int> q;
q.push(11);
while (!q.empty()) {
int x = q.front();
q.pop();
cout << x << endl;
int y = x / 2;
if (y > 1) {
if ((x % 2)) {
q.push(y - 1);
q.push(y + 1);
} else {
q.pus... | 12.777778 | 22 | 0.402899 |
5a7d5025b11a7afb6aa28b7aab0f0696421d0e6b | 2,410 | hxx | C++ | opencascade/Vrml_Separator.hxx | valgur/OCP | 2f7d9da73a08e4ffe80883614aedacb27351134f | [
"Apache-2.0"
] | 117 | 2020-03-07T12:07:05.000Z | 2022-03-27T07:35:22.000Z | opencascade/Vrml_Separator.hxx | CadQuery/cpp-py-bindgen | 66e7376d3a27444393fc99acbdbef40bbc7031ae | [
"Apache-2.0"
] | 66 | 2019-12-20T16:07:36.000Z | 2022-03-15T21:56:10.000Z | opencascade/Vrml_Separator.hxx | CadQuery/cpp-py-bindgen | 66e7376d3a27444393fc99acbdbef40bbc7031ae | [
"Apache-2.0"
] | 76 | 2020-03-16T01:47:46.000Z | 2022-03-21T16:37:07.000Z | // Created on: 1997-03-27
// Created by: Alexander BRIVIN and Dmitry TARASOV
// Copyright (c) 1997-1999 Matra Datavision
// Copyright (c) 1999-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
//... | 29.390244 | 96 | 0.785477 |
5a7e22263a30f08d591916b4d9b50b99e85f836b | 11,581 | cpp | C++ | source/de/hackcraft/world/sub/computer/rController.cpp | DMJC/linwarrior | 50cd46660c11e58cc6fbc431a150cf55ce0dd682 | [
"Apache-2.0"
] | 23 | 2015-12-08T19:29:10.000Z | 2021-09-22T04:13:31.000Z | source/de/hackcraft/world/sub/computer/rController.cpp | DMJC/linwarrior | 50cd46660c11e58cc6fbc431a150cf55ce0dd682 | [
"Apache-2.0"
] | 7 | 2018-04-30T13:05:57.000Z | 2021-08-25T03:58:07.000Z | source/de/hackcraft/world/sub/computer/rController.cpp | DMJC/linwarrior | 50cd46660c11e58cc6fbc431a150cf55ce0dd682 | [
"Apache-2.0"
] | 4 | 2018-01-25T03:05:19.000Z | 2021-08-25T03:30:15.000Z | #include "rController.h"
#include "de/hackcraft/log/Logger.h"
#include "de/hackcraft/world/Entity.h"
#include "de/hackcraft/world/World.h"
#include "de/hackcraft/world/object/cMech.h"
#include "de/hackcraft/world/sub/weapon/rTarcom.h"
#include <cstdlib>
#include <cassert>
#include <sstream>
using std::string;
L... | 24.640426 | 187 | 0.528711 |
5a7f917a1641628bc3ba2cee0b77fbc8aedb6a29 | 34 | cpp | C++ | src/IceRay/type/type.cpp | dmilos/IceRay | 4e01f141363c0d126d3c700c1f5f892967e3d520 | [
"MIT-0"
] | 2 | 2020-09-04T12:27:15.000Z | 2022-01-17T14:49:40.000Z | src/IceRay/type/type.cpp | dmilos/IceRay | 4e01f141363c0d126d3c700c1f5f892967e3d520 | [
"MIT-0"
] | null | null | null | src/IceRay/type/type.cpp | dmilos/IceRay | 4e01f141363c0d126d3c700c1f5f892967e3d520 | [
"MIT-0"
] | 1 | 2020-09-04T12:27:52.000Z | 2020-09-04T12:27:52.000Z | #include "./general/general.cpp"
| 17 | 33 | 0.705882 |
5a8379011405bdc4d048a92c93eb0001eb3e44e7 | 1,756 | cpp | C++ | Logger.cpp | alonf/UniversalACRemote | 6d4bb6e475a5f71e264a4b48a757ae182df796aa | [
"MIT"
] | 1 | 2019-12-26T01:11:30.000Z | 2019-12-26T01:11:30.000Z | Logger.cpp | alonf/UniversalACRemote | 6d4bb6e475a5f71e264a4b48a757ae182df796aa | [
"MIT"
] | 1 | 2020-12-06T12:55:01.000Z | 2020-12-06T12:55:01.000Z | Logger.cpp | alonf/UniversalACRemote | 6d4bb6e475a5f71e264a4b48a757ae182df796aa | [
"MIT"
] | null | null | null | #include "Logger.h"
using namespace std;
Logger::Logger(int redLedPin, int greenLedPin, int baudRate /*= 115200*/): _ledsLogger(LedsLogger::Create(redLedPin, greenLedPin))
{
Serial.begin(baudRate);
Serial.setDebugOutput(true);
}
void Logger::OnCommand(const String &commandName, int commandId) const
{
Serial.printl... | 21.679012 | 130 | 0.723235 |
5a870fd79cf4d1010645b3db87f9e3820b60be81 | 392 | cpp | C++ | 1451/a.cpp | vladshablinsky/algo | 815392708d00dc8d3159b4866599de64fa9d34fa | [
"MIT"
] | 1 | 2021-10-24T00:46:37.000Z | 2021-10-24T00:46:37.000Z | 1451/a.cpp | vladshablinsky/algo | 815392708d00dc8d3159b4866599de64fa9d34fa | [
"MIT"
] | null | null | null | 1451/a.cpp | vladshablinsky/algo | 815392708d00dc8d3159b4866599de64fa9d34fa | [
"MIT"
] | null | null | null | #include <iostream>
#include <cstdio>
using namespace std;
int solve_x(int x) {
if (x == 1) {
return 0;
} else if (x == 2) {
return 1;
} else if (x & 1) {
return 1 + solve_x(x - 1);
} else {
return 2;
}
}
int solve() {
int n;
scanf("%d", &n);
return solve_x(n);
}
int main() {
int t... | 12.645161 | 30 | 0.484694 |
5a9035c976299f8f74d6b077936d00b2cef53368 | 7,932 | hpp | C++ | shared/dumps/UnityEngine_GameObject.hpp | zoller27osu/beatsaber-hook | 83a4bb55ed8b2f9e4c977877bc1b0601fed36f39 | [
"MIT"
] | 1 | 2020-04-22T07:37:13.000Z | 2020-04-22T07:37:13.000Z | shared/dumps/UnityEngine_GameObject.hpp | zoller27osu/beatsaber-hook | 83a4bb55ed8b2f9e4c977877bc1b0601fed36f39 | [
"MIT"
] | null | null | null | shared/dumps/UnityEngine_GameObject.hpp | zoller27osu/beatsaber-hook | 83a4bb55ed8b2f9e4c977877bc1b0601fed36f39 | [
"MIT"
] | null | null | null | #ifndef UnityEngine_GameObject_DEFINED
#define UnityEngine_GameObject_DEFINED
// This .hpp file was compiled via beatsaber-hook/shared/helper.py's Parse Mode.
// Created by Sc2ad.
// Methods may not be valid!
#include <dlfcn.h>
#include <string_view>
#include "../utils/typedefs.h"
#include "../utils/il2cpp-functions.hp... | 73.444444 | 148 | 0.775466 |
5a9b0d466153bbd7f0f42fe011b3fd24696215c6 | 5,388 | hh | C++ | src/mem/tcu/cmds.hh | Barkhausen-Institut/gem5-TCU | c3c86be12debec937b9b5dd351df13e5ea43ab4a | [
"BSD-3-Clause"
] | null | null | null | src/mem/tcu/cmds.hh | Barkhausen-Institut/gem5-TCU | c3c86be12debec937b9b5dd351df13e5ea43ab4a | [
"BSD-3-Clause"
] | null | null | null | src/mem/tcu/cmds.hh | Barkhausen-Institut/gem5-TCU | c3c86be12debec937b9b5dd351df13e5ea43ab4a | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright (c) 2015, Christian Menard
* Copyright (C) 2020 Nils Asmussen, Barkhausen Institut
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the follo... | 25.17757 | 81 | 0.648107 |
5a9e15128229c9f829ebe95b5c346e9c54dfd520 | 30,756 | cpp | C++ | taglib/mp4tag.cpp | acristoffers/SimplePlayer | aba0702901960648fc6602201f85198af87377ed | [
"MIT-0"
] | null | null | null | taglib/mp4tag.cpp | acristoffers/SimplePlayer | aba0702901960648fc6602201f85198af87377ed | [
"MIT-0"
] | null | null | null | taglib/mp4tag.cpp | acristoffers/SimplePlayer | aba0702901960648fc6602201f85198af87377ed | [
"MIT-0"
] | null | null | null | /**************************************************************************
* copyright : (C) 2007,2011 by Lukáš Lalinský
* email : lalinsky@gmail.com
**************************************************************************/
/***********************************************************... | 34.479821 | 134 | 0.486897 |
5a9ee72d815a1f4b94f13c9cef4bd3b03565c5bd | 3,060 | cpp | C++ | Algorithms-Library/BinTree.cpp | huozk0804/CPlusPlusArithmeticProject | 75edbec76304a74b8d8bfa4166272ac8c08c20cf | [
"MIT"
] | 1 | 2020-04-28T16:21:45.000Z | 2020-04-28T16:21:45.000Z | Algorithms-Library/BinTree.cpp | huozk0804/CPlusPlusArithmeticProject | 75edbec76304a74b8d8bfa4166272ac8c08c20cf | [
"MIT"
] | null | null | null | Algorithms-Library/BinTree.cpp | huozk0804/CPlusPlusArithmeticProject | 75edbec76304a74b8d8bfa4166272ac8c08c20cf | [
"MIT"
] | null | null | null | #include"Tree.h"
treeNode* BinTree::CreateTree(char* str) {
treeNode* st[100];
treeNode* p = NULL;
int top, k, j = 0;
top = -1;
char ch = str[j];
treeNode* b = NULL;
while (ch != '\0')
{
switch (ch)
{
case'(':
top++;
st[top] = p;
k = 1;
break;
case')':
top--;
break;
case',':
k =... | 15.773196 | 50 | 0.529085 |
5aa0f5a538f4ade6671944c5a38053e19c403cf2 | 12,382 | tpp | C++ | src/sdm/core/joint.tpp | SDMStudio/sdms | 43a86973081ffd86c091aed69b332f0087f59361 | [
"MIT"
] | null | null | null | src/sdm/core/joint.tpp | SDMStudio/sdms | 43a86973081ffd86c091aed69b332f0087f59361 | [
"MIT"
] | null | null | null | src/sdm/core/joint.tpp | SDMStudio/sdms | 43a86973081ffd86c091aed69b332f0087f59361 | [
"MIT"
] | null | null | null |
#define DEFINE_JOINT(CLASS) \
/* This macro allow to define a specific joint on std::shared_ptr<CLASS> that inherites from CLASS. */ \
template ... | 73.702381 | 194 | 0.220966 |
5aa87fe1c04f1ac8be1528f7d60a790f841cc03d | 1,330 | cpp | C++ | xenon/src/xenon/core/asset.cpp | Neathan/Xenon | d376337dd086ac8ccb84cbaf97b6537ad6dda8a4 | [
"MIT"
] | 1 | 2021-09-21T23:37:22.000Z | 2021-09-21T23:37:22.000Z | xenon/src/xenon/core/asset.cpp | Neathan/Xenon | d376337dd086ac8ccb84cbaf97b6537ad6dda8a4 | [
"MIT"
] | null | null | null | xenon/src/xenon/core/asset.cpp | Neathan/Xenon | d376337dd086ac8ccb84cbaf97b6537ad6dda8a4 | [
"MIT"
] | null | null | null | #include "asset.h"
#include "xenon/core/log.h"
namespace xe {
void copyAssetMetaRuntimeData(const Asset* source, Asset* target) {
target->metadata.handle = source->metadata.handle;
target->metadata.type = source->metadata.type;
target->metadata.path = source->metadata.path;
target->runtimeData.loaded = sour... | 32.439024 | 68 | 0.696241 |
5aab948085ff5abeee86e7106a25b873fbf0d801 | 5,641 | cc | C++ | src/outlinerdebug.cc | jariarkko/cave-outliner | 2077a24627881f45a27aec3eb4e5b4855f6b7fec | [
"BSD-3-Clause"
] | 4 | 2021-09-02T16:52:23.000Z | 2022-02-07T16:39:50.000Z | src/outlinerdebug.cc | jariarkko/cave-outliner | 2077a24627881f45a27aec3eb4e5b4855f6b7fec | [
"BSD-3-Clause"
] | 87 | 2021-09-12T06:09:57.000Z | 2022-02-15T00:05:43.000Z | src/outlinerdebug.cc | jariarkko/cave-outliner | 2077a24627881f45a27aec3eb4e5b4855f6b7fec | [
"BSD-3-Clause"
] | 1 | 2021-09-28T21:38:30.000Z | 2021-09-28T21:38:30.000Z | ///////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////
//
// CCC AAA V V ... | 27.120192 | 95 | 0.423329 |
5aad100adabbe634edb18b10d83f62667ad7bed0 | 478 | cpp | C++ | tests/memory_resource/memory_resource_mini.cpp | olegpublicprofile/stdfwd | 19671bcc8e53bd4c008f07656eaf25a22495e093 | [
"MIT"
] | 11 | 2021-03-15T07:06:21.000Z | 2021-09-27T13:54:25.000Z | tests/memory_resource/memory_resource_mini.cpp | olegpublicprofile/stdfwd | 19671bcc8e53bd4c008f07656eaf25a22495e093 | [
"MIT"
] | null | null | null | tests/memory_resource/memory_resource_mini.cpp | olegpublicprofile/stdfwd | 19671bcc8e53bd4c008f07656eaf25a22495e093 | [
"MIT"
] | 1 | 2021-06-24T10:46:46.000Z | 2021-06-24T10:46:46.000Z | #include "tests/memory_resource/memory_resource_mini.hpp"
#include "tests/memory_resource/memory_resource_fwd.hpp"
//------------------------------------------------------------------------------
namespace memory_resource_tests {
//------------------------------------------------------------------------------
void... | 22.761905 | 80 | 0.374477 |
5ab002f951bce3ed0377049fe0cc750d48f79d99 | 4,303 | ipp | C++ | src/lib/diagrams/bdd_manager_creator.ipp | MichalMrena/DecisionDiagrams | e2e9b949405bd2c1c93ba32c151b60a78620afec | [
"MIT"
] | 1 | 2022-03-17T12:55:30.000Z | 2022-03-17T12:55:30.000Z | src/lib/diagrams/bdd_manager_creator.ipp | MichalMrena/DecisionDiagrams | e2e9b949405bd2c1c93ba32c151b60a78620afec | [
"MIT"
] | null | null | null | src/lib/diagrams/bdd_manager_creator.ipp | MichalMrena/DecisionDiagrams | e2e9b949405bd2c1c93ba32c151b60a78620afec | [
"MIT"
] | null | null | null | #ifndef MIX_DD_bdd_manager_HPP
#include "../bdd_manager.hpp"
#endif
namespace teddy
{
template<class VertexData, class ArcData>
auto bdd_manager<VertexData, ArcData>::variable_not
(index_t const i) -> bdd_t
{
return this->negate(this->variable(i));
}
template<class VertexData, clas... | 33.617188 | 94 | 0.558912 |
5ab31ae91b7618b6ae521ea0638acdea9cb15ef3 | 34,408 | cpp | C++ | OpenHome/Net/Bindings/Cpp/ControlPoint/Proxies/CpAvOpenhomeOrgMediaServer1Std.cpp | kmuellerjones/ohNetGenerated | 2bb32625c9ab49e17ba84ec40cc4046ec09182f3 | [
"MIT"
] | 1 | 2017-01-06T15:34:03.000Z | 2017-01-06T15:34:03.000Z | OpenHome/Net/Bindings/Cpp/ControlPoint/Proxies/CpAvOpenhomeOrgMediaServer1Std.cpp | kmuellerjones/ohNetGenerated | 2bb32625c9ab49e17ba84ec40cc4046ec09182f3 | [
"MIT"
] | 5 | 2016-01-05T09:47:15.000Z | 2018-12-16T14:07:35.000Z | OpenHome/Net/Bindings/Cpp/ControlPoint/Proxies/CpAvOpenhomeOrgMediaServer1Std.cpp | kmuellerjones/ohNetGenerated | 2bb32625c9ab49e17ba84ec40cc4046ec09182f3 | [
"MIT"
] | 6 | 2015-04-08T18:50:36.000Z | 2021-04-14T13:41:15.000Z | #include "CpAvOpenhomeOrgMediaServer1.h"
#include <OpenHome/Net/Core/CpProxy.h>
#include <OpenHome/Net/Private/CpiService.h>
#include <OpenHome/Private/Thread.h>
#include <OpenHome/Net/Private/AsyncPrivate.h>
#include <OpenHome/Buffer.h>
#include <OpenHome/Net/Cpp/CpDevice.h>
#include <OpenHome/Net/Private/CpiDevice.h>... | 35.182004 | 218 | 0.748372 |
5ab40cad403f3d645ee6c48b5684403204a488ff | 2,178 | cpp | C++ | ModernCpp-11-14-17/cppFacilities/inlineFunctions.cpp | eduardorasgado/Cpp-AdvancedTopics | b025845e97f794be857ec5893999a5b2a18c1939 | [
"MIT"
] | 1 | 2019-06-20T17:51:11.000Z | 2019-06-20T17:51:11.000Z | ModernCpp-11-14-17/cppFacilities/inlineFunctions.cpp | eduardorasgado/Cpp-AdvancedTopics | b025845e97f794be857ec5893999a5b2a18c1939 | [
"MIT"
] | null | null | null | ModernCpp-11-14-17/cppFacilities/inlineFunctions.cpp | eduardorasgado/Cpp-AdvancedTopics | b025845e97f794be857ec5893999a5b2a18c1939 | [
"MIT"
] | null | null | null | #include <iostream>
#include <map>
#include <memory>
// inline function through a macro
// if it is not handling correctly it will create bugs
//#define Square(A) (A*A)
// In c++ instead a macro we use inline functions
// inline keyword tells the compiler to substitute the caller of the function in
// where inline f... | 32.029412 | 95 | 0.646006 |
5ab5452484bd28924f5702f898a4fabeb8873687 | 1,590 | cpp | C++ | graph-source-code/350-E/4644199.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/350-E/4644199.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/350-E/4644199.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | //Language: GNU C++
#include <stdio.h>
#include <iostream>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#define abs(a) (((a)>0)?(a):(-(a)))
#define max(a, b) (((a)>(b))?(a):(b))
#define min(a, b) (((a)<(b))?(a):(b))
#define N 303
#define oo int(1e9)
#define eps 1e-8
using namespace std;
bool g[N][N],... | 15.588235 | 59 | 0.330189 |
5ab7c41752f47e96c7046a5f0bef21e0a5476634 | 3,475 | cpp | C++ | source/AnimationPlayer.cpp | sindney/nest3d-cpp | 033575364c14a48499ddbb0cbf489b7e72b0d9b7 | [
"MIT"
] | 2 | 2018-01-11T13:00:14.000Z | 2018-01-12T02:02:16.000Z | source/AnimationPlayer.cpp | sindney/nest3d-cpp | 033575364c14a48499ddbb0cbf489b7e72b0d9b7 | [
"MIT"
] | null | null | null | source/AnimationPlayer.cpp | sindney/nest3d-cpp | 033575364c14a48499ddbb0cbf489b7e72b0d9b7 | [
"MIT"
] | null | null | null | #include <iterator>
#include "AnimationPlayer.h"
namespace nest
{
using namespace std;
void AnimationPlayer::advanceTime(float dt)
{
time += dt;
int i, j = poses.size();
PoseData *pose = NULL;
AnimationChannel *channel = NULL;
vector<QuatKeyFrame>::iterator k;
QuatKeyFrame *quatFirst = NULL, *quatSe... | 27.579365 | 94 | 0.565755 |
5ac1966d89b74921ae7bb5dd06b0c9535749dd78 | 12,743 | cpp | C++ | src/SpLog.cpp | RedLeavesSun/unisoc-dloader | e9c24086d1e27da7b9c52747682fd324c5a8bdab | [
"Apache-2.0"
] | 1 | 2021-08-22T03:22:04.000Z | 2021-08-22T03:22:04.000Z | src/SpLog.cpp | RedLeavesSun/unisoc-dloader | e9c24086d1e27da7b9c52747682fd324c5a8bdab | [
"Apache-2.0"
] | null | null | null | src/SpLog.cpp | RedLeavesSun/unisoc-dloader | e9c24086d1e27da7b9c52747682fd324c5a8bdab | [
"Apache-2.0"
] | null | null | null | #include "SpLog.h"
#include "ExePathHelper.h"
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#define LOG_DIRECTORY ( "Log")
#define BINARY_EXTENSION (".bin")
#define TEXT_EXTENSION (".log")
#define GetFileNameWithoutExtension(_fn) { \
char* pPos = strr... | 22.919065 | 112 | 0.558503 |
5ac1a14ceb5b36616b777529e204a4532891459e | 13,823 | cpp | C++ | src/graphics/bloomFFT.cpp | liuhongyi0101/SaturnRender | c6ec7ee39ef14749b09be4ae47f76613c71533cf | [
"MIT"
] | 2 | 2019-12-24T04:00:36.000Z | 2022-01-26T02:44:04.000Z | src/graphics/bloomFFT.cpp | liuhongyi0101/SaturnRender | c6ec7ee39ef14749b09be4ae47f76613c71533cf | [
"MIT"
] | null | null | null | src/graphics/bloomFFT.cpp | liuhongyi0101/SaturnRender | c6ec7ee39ef14749b09be4ae47f76613c71533cf | [
"MIT"
] | 2 | 2020-09-26T04:19:40.000Z | 2021-02-19T07:24:57.000Z | #include "graphics/bloomFFT.h"
#include "utils/loadshader.h"
BloomFFT::BloomFFT(vks::VulkanDevice * vulkanDevice)
{
this->vulkanDevice = vulkanDevice;
this->device = vulkanDevice->logicalDevice;
}
BloomFFT::~BloomFFT()
{
}
// Find and create a compute capable device queue
void BloomFFT::getComputeQueue()
{
uint32... | 43.196875 | 143 | 0.818419 |
5ac3f2e8ad5d7b8f0836af365f2c48061ba84948 | 604 | cpp | C++ | InterviewBit/Tree Data Structure/TwoSumBinaryTree.cpp | Code-With-Aagam/competitive-programming | 610520cc396fb13a03c606b5fb6739cfd68cc444 | [
"MIT"
] | 2 | 2022-02-08T12:37:41.000Z | 2022-03-09T03:48:56.000Z | InterviewBit/Tree Data Structure/TwoSumBinaryTree.cpp | ShubhamJagtap2000/competitive-programming-1 | 3a9a2e3dd08f8fa8ab823f295cd020d08d3bff84 | [
"MIT"
] | null | null | null | InterviewBit/Tree Data Structure/TwoSumBinaryTree.cpp | ShubhamJagtap2000/competitive-programming-1 | 3a9a2e3dd08f8fa8ab823f295cd020d08d3bff84 | [
"MIT"
] | 2 | 2021-01-23T14:35:48.000Z | 2021-03-15T05:04:24.000Z | /**
* Definition for binary tree
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
void inorder(TreeNode *root, vector<int> &arr) {
if (root == NULL) {
return;
}
inorder(root->left, arr);
arr.push_back(root->... | 18.30303 | 59 | 0.559603 |
5ac525f8af8438fdc1a9aa2dfa5bfd4d703a8344 | 4,474 | cpp | C++ | src/Jogo/Fases/FaseMontanha.cpp | MatheusKunnen/Jogo-TecProg | 66f4320e51e42d12da74e487cc8552377ce865bb | [
"MIT"
] | null | null | null | src/Jogo/Fases/FaseMontanha.cpp | MatheusKunnen/Jogo-TecProg | 66f4320e51e42d12da74e487cc8552377ce865bb | [
"MIT"
] | null | null | null | src/Jogo/Fases/FaseMontanha.cpp | MatheusKunnen/Jogo-TecProg | 66f4320e51e42d12da74e487cc8552377ce865bb | [
"MIT"
] | null | null | null | //
// FaseMontanha.cpp
// Jogo-SFML
//
// Created by Matheus Kunnen Ledesma on 11/10/19.
// Copyright © 2019 Matheus Kunnen Ledesma. All rights reserved.
//
#include "FaseMontanha.hpp"
namespace Game { namespace Fases {
// Const
const string FaseMontanha::CONFIG_FILE("Resources/config/fase_b_config.json");
// C... | 35.507937 | 194 | 0.660483 |
5ac62f82592e415ee827d5189293c7f3233b15a7 | 165 | cpp | C++ | codeforces/617A.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 3 | 2018-01-08T02:52:51.000Z | 2021-03-03T01:08:44.000Z | codeforces/617A.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | null | null | null | codeforces/617A.cpp | cosmicray001/Online_judge_Solutions- | 5dc6f90d3848eb192e6edea8e8c731f41a1761dd | [
"MIT"
] | 1 | 2020-08-13T18:07:35.000Z | 2020-08-13T18:07:35.000Z | #include <bits/stdc++.h>
using namespace std;
int main(){
int n;
cin >> n;
int ans = 0;
if(n % 5 != 0) ans++;
printf("%d\n", (n / 5) + ans);
return 0;
}
| 15 | 32 | 0.50303 |
5acc4ab4d9834f6261945e202b17ad0eaa29e43f | 394 | cpp | C++ | src/State.cpp | JoanStinson/AI_Decisions | 22632090c80b4a12e0f1049b4e6c78be3d024b2a | [
"MIT"
] | 3 | 2021-03-31T03:42:42.000Z | 2021-12-13T03:03:03.000Z | src/State.cpp | JoanStinson/AI_Decisions | 22632090c80b4a12e0f1049b4e6c78be3d024b2a | [
"MIT"
] | null | null | null | src/State.cpp | JoanStinson/AI_Decisions | 22632090c80b4a12e0f1049b4e6c78be3d024b2a | [
"MIT"
] | 1 | 2021-12-13T03:02:55.000Z | 2021-12-13T03:02:55.000Z | #include "State.h"
State::State() {
bankPosition = Vector2D(208, 624);
homePosition = Vector2D(624, 624);
minePosition = Vector2D(272, 112);
saloonPosition = Vector2D(1040, 624);
}
State::~State() {
delete agent;
}
void State::Init(Agent * agent, Uint32 delayTime) {
this->agent = agent;
this->delayTime = dela... | 17.909091 | 51 | 0.682741 |
5ace0782dec3b99ee0a5f4f46b0d1c899d9277ad | 2,326 | cpp | C++ | graph-source-code/362-E/8343555.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/362-E/8343555.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/362-E/8343555.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | //Language: GNU C++
#include <iostream>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <algorithm>
#include <climits>
#include <vector>
#include <queue>
#include <cstdlib>
#include <string>
#include <set>
#include <stack>
#define LL long long
#define pii pair<int,int>
#define INF 0x3f3f3f3f
using name... | 23.029703 | 65 | 0.410146 |
5ace2172fa2ef85d29199534b22ab9249c590b0d | 1,792 | hpp | C++ | tools/json-ast-exporter/src/json_utils.hpp | TheoKant/cclyzer-souffle | dfcd01daa592a2356e36aaeaa9c933305c253cba | [
"MIT"
] | 63 | 2016-02-06T21:06:40.000Z | 2021-11-16T19:58:27.000Z | tools/json-ast-exporter/src/json_utils.hpp | TheoKant/cclyzer-souffle | dfcd01daa592a2356e36aaeaa9c933305c253cba | [
"MIT"
] | 11 | 2019-05-23T20:55:12.000Z | 2021-12-08T22:18:01.000Z | tools/json-ast-exporter/src/json_utils.hpp | TheoKant/cclyzer-souffle | dfcd01daa592a2356e36aaeaa9c933305c253cba | [
"MIT"
] | 14 | 2016-02-21T17:12:36.000Z | 2021-09-26T02:48:41.000Z | #ifndef JSON_UTILS_HPP__
#define JSON_UTILS_HPP__
#include <string>
#include <clang-c/Index.h>
#include <jsoncons/json.hpp>
namespace cclyzer {
namespace ast_exporter {
namespace jsonexport {
typedef jsoncons::json json_t;
// Recording routines
void record_extent( j... | 32 | 72 | 0.541853 |
62c26d2c087b23d3802b9a3ea8eeba0faf253fea | 601 | cpp | C++ | 238-product-of-array-except-self/238-product-of-array-except-self.cpp | dishanp/LeetCode-World | 6c49c8731dae772fb7bc47f777a4d3b3e01dd70e | [
"MIT"
] | null | null | null | 238-product-of-array-except-self/238-product-of-array-except-self.cpp | dishanp/LeetCode-World | 6c49c8731dae772fb7bc47f777a4d3b3e01dd70e | [
"MIT"
] | null | null | null | 238-product-of-array-except-self/238-product-of-array-except-self.cpp | dishanp/LeetCode-World | 6c49c8731dae772fb7bc47f777a4d3b3e01dd70e | [
"MIT"
] | null | null | null | class Solution {
public:
vector<int> productExceptSelf(vector<int>& nums) {
int p=1;
int ctr=0;
int zp=1;
for(int i:nums)
{
p*=i;
if(i==0)
++ctr;
if(ctr>1){
vector<int>ans(nums.size(),0);
retu... | 20.724138 | 54 | 0.344426 |
62c349af6daabc492e41738d9210e08562d02708 | 1,499 | cpp | C++ | alon/primeNumbers.cpp | Jhoneagle/CplusplusCollection | a58d2407fbd397749d7bc07796ac052f632dcb73 | [
"MIT"
] | null | null | null | alon/primeNumbers.cpp | Jhoneagle/CplusplusCollection | a58d2407fbd397749d7bc07796ac052f632dcb73 | [
"MIT"
] | null | null | null | alon/primeNumbers.cpp | Jhoneagle/CplusplusCollection | a58d2407fbd397749d7bc07796ac052f632dcb73 | [
"MIT"
] | 1 | 2020-03-09T22:18:40.000Z | 2020-03-09T22:18:40.000Z | #include<bits/stdc++.h>
#include <iostream>
using namespace std;
bool prime(long long n) {
if (n <= 3) {
return (n > 1);
}
if (((n % 2) == 0) || ((n % 3) == 0)) {
return false;
}
long i = 5;
while ((i * i) <= n) {
if (((n % i) == 0) || ((n % (i + 2)) == 0)) {
return fals... | 16.293478 | 51 | 0.378252 |
62c790184658f7c66222caea3cbe2b63dff7990d | 4,673 | cpp | C++ | version Serial/BackgroundSubstractor.cpp | texsmv/background_substraction | 89fbe98186524efb5303e819bc2d83a360298a04 | [
"FTL"
] | null | null | null | version Serial/BackgroundSubstractor.cpp | texsmv/background_substraction | 89fbe98186524efb5303e819bc2d83a360298a04 | [
"FTL"
] | null | null | null | version Serial/BackgroundSubstractor.cpp | texsmv/background_substraction | 89fbe98186524efb5303e819bc2d83a360298a04 | [
"FTL"
] | null | null | null | #include "BackgroundSubstractor.h"
BackgroundSubstractor::BackgroundSubstractor(){
vector<string> files = globVector("input/*");
sort(files.begin(), files.end());
for (int i = 0 ; i < files.size(); i++){
cout<<files[i]<<endl;
Frame f(files[i]);
frames.push_back(f);
}
h = frames[0].mat.rows;
w... | 21.734884 | 110 | 0.439332 |
62c7c24a915b70d87ec6da0b51c9364ddca01ca9 | 1,290 | hpp | C++ | engine/source/src/Engine_collision_listener.hpp | mateusgondim/Demos | 6aa5da3a6c0e960d10811c9e71e9a0a746e8d6ab | [
"MIT"
] | 5 | 2019-02-12T07:23:55.000Z | 2020-06-22T15:03:36.000Z | engine/source/src/Engine_collision_listener.hpp | mateusgondim/Demos | 6aa5da3a6c0e960d10811c9e71e9a0a746e8d6ab | [
"MIT"
] | null | null | null | engine/source/src/Engine_collision_listener.hpp | mateusgondim/Demos | 6aa5da3a6c0e960d10811c9e71e9a0a746e8d6ab | [
"MIT"
] | 2 | 2019-06-17T05:04:21.000Z | 2020-04-22T09:05:57.000Z | #ifndef _ENGINE_COLLISION_LISTENER_HPP
#define _ENGINE_COLLISION_LISTENER_HPP
#include "Collision_listener.hpp"
#include <cstdint>
namespace physics_2d { class Body_2d; }
namespace gom { class Game_object; }
class Engine_collision_listener final : public physics_2d::Collision_listener {
public:
Engine_collisi... | 40.3125 | 80 | 0.633333 |
62c7e782f8700e161b39a4ace2cd24b8cd5f4582 | 8,218 | hpp | C++ | include/just/test.hpp | r0mai/just | 81e0b95cfc6da1ba8b54c92974055a140cdf2694 | [
"BSL-1.0"
] | 1 | 2016-05-21T17:15:12.000Z | 2016-05-21T17:15:12.000Z | include/just/test.hpp | r0mai/just | 81e0b95cfc6da1ba8b54c92974055a140cdf2694 | [
"BSL-1.0"
] | null | null | null | include/just/test.hpp | r0mai/just | 81e0b95cfc6da1ba8b54c92974055a140cdf2694 | [
"BSL-1.0"
] | null | null | null | #ifndef JUST_TEST_HPP
#define JUST_TEST_HPP
// Copyright Abel Sinkovics (abel@sinkovics.hu) 2014.
// 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 <string>
#include <vector>
#include <iostr... | 21.973262 | 80 | 0.553784 |
62d2ddf952e573be0f198c825ffdbc27578ee2d0 | 2,023 | cpp | C++ | libhpx/scheduler/events.cpp | luglio/hpx5 | 6cbeebb8e730ee9faa4487dba31a38e3139e1ce7 | [
"BSD-3-Clause"
] | 1 | 2021-05-21T16:54:43.000Z | 2021-05-21T16:54:43.000Z | libhpx/scheduler/events.cpp | ldalessa/hpx | c8888c38f5c12c27bfd80026d175ceb3839f0b40 | [
"BSD-3-Clause"
] | null | null | null | libhpx/scheduler/events.cpp | ldalessa/hpx | c8888c38f5c12c27bfd80026d175ceb3839f0b40 | [
"BSD-3-Clause"
] | 3 | 2019-06-21T07:05:43.000Z | 2020-11-21T15:24:04.000Z | // =============================================================================
// High Performance ParalleX Library (libhpx)
//
// Copyright (c) 2013-2017, Trustees of Indiana University,
// All rights reserved.
//
// This software may be modified and distributed under the terms of the BSD
// license. See the C... | 23.8 | 80 | 0.630746 |
62d8c6581a358517d4a8e20777178ac28fc2767c | 16,104 | cpp | C++ | dynamicEDT3D/src/dynamicEDT3D.cpp | hero9968/OctoMap | bf3b3949a99c13ef34d11dc8bc23dcd6680a9f3c | [
"BSD-3-Clause"
] | 1,323 | 2015-01-02T08:33:08.000Z | 2022-03-31T22:57:08.000Z | dynamicEDT3D/src/dynamicEDT3D.cpp | hero9968/OctoMap | bf3b3949a99c13ef34d11dc8bc23dcd6680a9f3c | [
"BSD-3-Clause"
] | 267 | 2015-01-21T05:34:55.000Z | 2022-03-29T18:38:21.000Z | dynamicEDT3D/src/dynamicEDT3D.cpp | hero9968/OctoMap | bf3b3949a99c13ef34d11dc8bc23dcd6680a9f3c | [
"BSD-3-Clause"
] | 610 | 2015-01-02T08:33:38.000Z | 2022-03-31T03:04:06.000Z | /**
* dynamicEDT3D:
* A library for incrementally updatable Euclidean distance transforms in 3D.
* @author C. Sprunk, B. Lau, W. Burgard, University of Freiburg, Copyright (C) 2011.
* @see http://octomap.sourceforge.net/
* License: New BSD License
*/
/*
* Copyright (c) 2011-2012, C. Sprunk, B. Lau, W. Burgard, Univer... | 27.202703 | 112 | 0.613885 |
62e0aa2965d32d1d3c12ecf9565dca58fe324e95 | 4,543 | hpp | C++ | server/drivers/laser.hpp | Koheron/koheron-sdk | 82b732635f1adf5dd0b04b9290b589c1fc091f29 | [
"MIT"
] | 77 | 2016-09-20T18:44:14.000Z | 2022-03-30T16:04:09.000Z | server/drivers/laser.hpp | rsarwar87/koheron-sdk | 02c35bf3c1c29f1029fad18b881dbd193efac5a7 | [
"MIT"
] | 101 | 2016-09-05T15:44:25.000Z | 2022-03-29T09:22:09.000Z | server/drivers/laser.hpp | rsarwar87/koheron-sdk | 02c35bf3c1c29f1029fad18b881dbd193efac5a7 | [
"MIT"
] | 34 | 2016-12-12T07:21:57.000Z | 2022-01-12T21:00:52.000Z | /// Laser controller
///
/// (c) Koheron
#ifndef __DRIVERS_LASER_CONTROLLER_HPP__
#define __DRIVERS_LASER_CONTROLLER_HPP__
#include <context.hpp>
#include <xadc.hpp>
#include <eeprom.hpp>
#include <chrono>
namespace Laser_params {
constexpr uint32_t power_channel = 1; //xadc channel
constexpr uint32_t curren... | 27.70122 | 110 | 0.580233 |
62e10d8a12b4458cb11b750206a6dd865e96bda7 | 1,409 | cpp | C++ | examples/broadcast_sender/main.cpp | toivjon/multiplatform-sockets | f2c204e36ddebb698fc07d4d41ec0e1824b6712e | [
"MIT"
] | null | null | null | examples/broadcast_sender/main.cpp | toivjon/multiplatform-sockets | f2c204e36ddebb698fc07d4d41ec0e1824b6712e | [
"MIT"
] | null | null | null | examples/broadcast_sender/main.cpp | toivjon/multiplatform-sockets | f2c204e36ddebb698fc07d4d41ec0e1824b6712e | [
"MIT"
] | null | null | null | #include "mps.h"
#include <chrono>
#include <iostream>
#include <thread>
using namespace mps;
constexpr auto MessageCount = 100;
constexpr auto MessageInterval = std::chrono::seconds(1);
int main(int argc, char* argv[]) {
// sanity check to check that we have enough arguments.
if (argc != 3) {
std::cout << ... | 29.978723 | 84 | 0.623847 |
62e129e1a0700bd08da225c5523b2a8f02826b91 | 1,259 | cpp | C++ | ArchiveOldCode/Examples/VideoCapture/videoCapture.cpp | SahSih/seniorProject | 48c9d5463f47b1dadd6e6407be9ec97d0dcb9f6d | [
"MIT"
] | null | null | null | ArchiveOldCode/Examples/VideoCapture/videoCapture.cpp | SahSih/seniorProject | 48c9d5463f47b1dadd6e6407be9ec97d0dcb9f6d | [
"MIT"
] | 6 | 2017-05-11T05:06:35.000Z | 2017-08-09T08:04:19.000Z | ArchiveOldCode/Examples/VideoCapture/videoCapture.cpp | SahSih/seniorProject | 48c9d5463f47b1dadd6e6407be9ec97d0dcb9f6d | [
"MIT"
] | 5 | 2017-05-11T05:16:35.000Z | 2017-10-19T19:13:54.000Z | #include "opencv2/highgui/highgui.hpp"
#include <iostream>
using namespace cv;
using namespace std;
int main(int argc, char* argv[])
{
VideoCapture cap(0); // open the video camera no. 0
if (!cap.isOpened()) // if not success, exit program
{
cout << "Cannot open the video cam" << endl;
r... | 27.369565 | 103 | 0.591739 |
62e13304ec181f0310e516012ce590692c08d901 | 816 | cpp | C++ | src/core/hooks/vmt.cpp | Metaphysical1/gamesneeze | 59d31ee232bbcc80d29329e0f64ebdde599c37df | [
"MIT"
] | 1,056 | 2020-11-17T11:49:12.000Z | 2022-03-23T12:32:42.000Z | src/core/hooks/vmt.cpp | dweee/gamesneeze | 99f574db2617263470280125ec78afa813f27099 | [
"MIT"
] | 102 | 2021-01-15T12:05:18.000Z | 2022-02-26T00:19:58.000Z | src/core/hooks/vmt.cpp | dweee/gamesneeze | 99f574db2617263470280125ec78afa813f27099 | [
"MIT"
] | 121 | 2020-11-18T12:08:21.000Z | 2022-03-31T07:14:32.000Z | #include "vmt.hpp"
#include <stdint.h>
#include <unistd.h>
#include <sys/mman.h>
int pagesize = sysconf(_SC_PAGE_SIZE);
int pagemask = ~(pagesize-1);
int unprotect(void* region) {
mprotect((void*) ((intptr_t)region & pagemask), pagesize, PROT_READ|PROT_WRITE|PROT_EXEC);
return PROT_READ|PROT_EXEC;
}
void pro... | 29.142857 | 94 | 0.689951 |
62e3bd7300b6b02046f63cfc9a9f10f1fd142005 | 335 | cpp | C++ | flatland_plugins/src/simple.cpp | alanhesu/flatland | dcd9e913060daf50d5bcd0a4ee5fec7179fd85e8 | [
"BSD-3-Clause"
] | null | null | null | flatland_plugins/src/simple.cpp | alanhesu/flatland | dcd9e913060daf50d5bcd0a4ee5fec7179fd85e8 | [
"BSD-3-Clause"
] | null | null | null | flatland_plugins/src/simple.cpp | alanhesu/flatland | dcd9e913060daf50d5bcd0a4ee5fec7179fd85e8 | [
"BSD-3-Clause"
] | null | null | null | #include <flatland_plugins/simple.h>
#include <pluginlib/class_list_macros.h>
#include <ros/ros.h>
using namespace flatland_server;
namespace flatland_plugins {
void Simple::OnInitialize(const YAML::Node &config) {
ROS_ERROR_STREAM("Hello world");
}
};
PLUGINLIB_EXPORT_CLASS(flatland_plugins::Simple, flatland_server... | 23.928571 | 78 | 0.802985 |
62e4dfb00af1391c38f7a90a6cc2ef23b2be0d67 | 10,425 | cpp | C++ | loop-functions/moca/TuttiFrLoopFunc.cpp | AmmarHsn/loop_functions | b8978d33242065bd100219d9a934f2281153d521 | [
"MIT"
] | null | null | null | loop-functions/moca/TuttiFrLoopFunc.cpp | AmmarHsn/loop_functions | b8978d33242065bd100219d9a934f2281153d521 | [
"MIT"
] | null | null | null | loop-functions/moca/TuttiFrLoopFunc.cpp | AmmarHsn/loop_functions | b8978d33242065bd100219d9a934f2281153d521 | [
"MIT"
] | null | null | null | /**
* @file <loop-functions/IcraLoopFunc.cpp>
*
* @author Antoine Ligot - <aligot@ulb.ac.be>
*
* @license MIT License
*/
#include "TuttiFrLoopFunc.h"
/****************************************/
/****************************************/
TuttiFrLoopFunction::TuttiFrLoopFunction() {
m_unClock = 0;
m... | 28.798343 | 115 | 0.483453 |
62e8b82ae340868a4bdd8ab29df1733b2677d8a7 | 6,723 | hpp | C++ | include/boost/numpy/dstream/detail/caller.hpp | IceCube-SPNO/BoostNumpy | 66538c0b6e38e2f985e0b44d8191c878cea0332d | [
"BSL-1.0"
] | 6 | 2015-01-07T17:29:40.000Z | 2019-03-28T15:18:27.000Z | include/boost/numpy/dstream/detail/caller.hpp | IceCube-SPNO/BoostNumpy | 66538c0b6e38e2f985e0b44d8191c878cea0332d | [
"BSL-1.0"
] | 2 | 2017-04-12T19:01:21.000Z | 2017-04-14T16:18:38.000Z | include/boost/numpy/dstream/detail/caller.hpp | IceCube-SPNO/BoostNumpy | 66538c0b6e38e2f985e0b44d8191c878cea0332d | [
"BSL-1.0"
] | 2 | 2018-01-15T07:32:24.000Z | 2020-10-14T02:55:55.000Z | /**
* $Id$
*
* Copyright (C)
* 2014 - $Date$
* Martin Wolf <boostnumpy@martin-wolf.org>
* This file has been adopted from <boost/python/detail/caller.hpp>.
*
* @file boost/numpy/dstream/detail/caller.hpp
* @version $Revision$
* @date $Date$
* @author Martin Wolf <boostnumpy@martin-wolf.org>
*
* ... | 34.834197 | 125 | 0.62844 |
62ecbe261582bd004825d91639ba33c012f6258a | 2,604 | cpp | C++ | SysLib/Demand/Files/Matrix_File.cpp | kravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | 2 | 2018-04-27T11:07:02.000Z | 2020-04-24T06:53:21.000Z | SysLib/Demand/Files/Matrix_File.cpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | SysLib/Demand/Files/Matrix_File.cpp | idkravitz/transims4 | ea0848bf3dc71440d54724bb3ecba3947b982215 | [
"NASA-1.3"
] | null | null | null | //*********************************************************
// Matrix_File.cpp - Matrix File Input/Output
//*********************************************************
#include "Matrix_File.hpp"
//-----------------------------------------------------------
// Matrix_File constructors
//--------------------------------... | 22.448276 | 84 | 0.422043 |
62eed194e14ec20219bfcc92913587fb6ffc1fd7 | 9,451 | cc | C++ | dcmtk-master2/dcmsr/libsrc/dsrtpltn.cc | happymanx/Weather_FFI | a7f9bf8f1bda2b50c9d9a875c08fccf58379ad9f | [
"MIT"
] | null | null | null | dcmtk-master2/dcmsr/libsrc/dsrtpltn.cc | happymanx/Weather_FFI | a7f9bf8f1bda2b50c9d9a875c08fccf58379ad9f | [
"MIT"
] | null | null | null | dcmtk-master2/dcmsr/libsrc/dsrtpltn.cc | happymanx/Weather_FFI | a7f9bf8f1bda2b50c9d9a875c08fccf58379ad9f | [
"MIT"
] | null | null | null | /*
*
* Copyright (C) 2015-2018, J. Riesmeier, Oldenburg, Germany
* All rights reserved. See COPYRIGHT file for details.
*
* This software and supporting documentation are maintained by
*
* OFFIS e.V.
* R&D Division Health
* Escherweg 2
* D-26121 Oldenburg, Germany
*
*
* Module: dcmsr
*
*... | 35.799242 | 129 | 0.611575 |
62f634551b97e38323aebd4169816d37be6f3994 | 5,049 | cc | C++ | Chapter20_08.cc | ucarlos/Programming-Principles-Chapter20 | 3bea0db2693eb7dd00a1071bb6bf0d392e4961ff | [
"MIT"
] | null | null | null | Chapter20_08.cc | ucarlos/Programming-Principles-Chapter20 | 3bea0db2693eb7dd00a1071bb6bf0d392e4961ff | [
"MIT"
] | null | null | null | Chapter20_08.cc | ucarlos/Programming-Principles-Chapter20 | 3bea0db2693eb7dd00a1071bb6bf0d392e4961ff | [
"MIT"
] | null | null | null | /*
* -----------------------------------------------------------------------------
* Created by Ulysses Carlos on 03/25/2020 at 10:57 PM
*
* Chapter20_08.cc
*
* Define a function that counts the number of characters in a Document.
* -----------------------------------------------------------------------------
... | 23.375 | 107 | 0.55199 |
62f8a945d1122a19d6a5aba08b02631a769d9347 | 2,742 | cpp | C++ | texture_handler.cpp | paracelso93/rocket-simulator | 746469b2ffea032bed5793ef499eba0cd443240d | [
"MIT"
] | null | null | null | texture_handler.cpp | paracelso93/rocket-simulator | 746469b2ffea032bed5793ef499eba0cd443240d | [
"MIT"
] | null | null | null | texture_handler.cpp | paracelso93/rocket-simulator | 746469b2ffea032bed5793ef499eba0cd443240d | [
"MIT"
] | null | null | null | #include "texture_handler.h"
TextureHandler* TextureHandler::mInstance = nullptr;
bool TextureHandler::add_texture(const std::string& filePath, texture_t& id, SDL_Renderer* renderer) {
id = std::hash<std::string>()(filePath);
if (mTextures.find(id) != mTextures.end()) {
return true;
}
SDL_Surface* sur = IMG_L... | 30.808989 | 197 | 0.659373 |
62fbaca3bfaa78e541b1665b57744139a23cba24 | 1,223 | cpp | C++ | 318. Maximum Product of Word Lengths.cpp | rajeev-ranjan-au6/Leetcode_Cpp | f64cd98ab96ec110f1c21393f418acf7d88473e8 | [
"MIT"
] | 3 | 2020-12-30T00:29:59.000Z | 2021-01-24T22:43:04.000Z | 318. Maximum Product of Word Lengths.cpp | rajeevranjancom/Leetcode_Cpp | f64cd98ab96ec110f1c21393f418acf7d88473e8 | [
"MIT"
] | null | null | null | 318. Maximum Product of Word Lengths.cpp | rajeevranjancom/Leetcode_Cpp | f64cd98ab96ec110f1c21393f418acf7d88473e8 | [
"MIT"
] | null | null | null | // Solution 1. Straight forward, 165ms
class Solution {
public:
int maxProduct(vector<string>& words) {
int maxlen = 0;
for(int i = 0; i < words.size(); i++)
for(int j = i + 1; j < words.size(); j++){
if(words[i].size() * words[j].size() <= maxlen) continue;
... | 32.184211 | 112 | 0.472608 |
62fdd32bf4578aadeef43d6531ee0cdb52538338 | 2,264 | hh | C++ | include/io/ssl.hh | king1600/Valk | b376a0dcce522ae03ced7d882835e4dea98df86e | [
"MIT"
] | null | null | null | include/io/ssl.hh | king1600/Valk | b376a0dcce522ae03ced7d882835e4dea98df86e | [
"MIT"
] | null | null | null | include/io/ssl.hh | king1600/Valk | b376a0dcce522ae03ced7d882835e4dea98df86e | [
"MIT"
] | null | null | null | #pragma once
#include <boost/asio.hpp>
#include <boost/asio/ssl.hpp>
#include <boost/asio/ip/tcp.hpp>
namespace io {
namespace asio = boost::asio;
namespace ssl = asio::ssl;
typedef asio::ip::tcp tcp;
typedef boost::system::error_code error_code;
static const error_code Success =
boost::system::errc... | 28.3 | 83 | 0.673587 |
1a00460bc973876f44572786544f572a32f203f7 | 103,251 | cpp | C++ | platform_bionic-android-vts-12.0_r2/tests/pthread_test.cpp | webos21/xbionic | ffb3965e86ae4a921d0cffbfdc44cbdfe6acf67a | [
"Apache-2.0"
] | 1 | 2019-05-04T02:30:08.000Z | 2019-05-04T02:30:08.000Z | platform_bionic-android-vts-12.0_r2/tests/pthread_test.cpp | webos21/xbionic | ffb3965e86ae4a921d0cffbfdc44cbdfe6acf67a | [
"Apache-2.0"
] | null | null | null | platform_bionic-android-vts-12.0_r2/tests/pthread_test.cpp | webos21/xbionic | ffb3965e86ae4a921d0cffbfdc44cbdfe6acf67a | [
"Apache-2.0"
] | null | null | null | /*
* Copyright (C) 2012 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 34.166446 | 108 | 0.737368 |
1a0125fd4d1dcb013d931218bdfe550dbe2cf45d | 282 | cpp | C++ | ds/queue.cpp | atalhaaydin/c-cpp-codes | a7ccf11c293bd67d72f2848a2da0128e0d3555fa | [
"MIT"
] | null | null | null | ds/queue.cpp | atalhaaydin/c-cpp-codes | a7ccf11c293bd67d72f2848a2da0128e0d3555fa | [
"MIT"
] | null | null | null | ds/queue.cpp | atalhaaydin/c-cpp-codes | a7ccf11c293bd67d72f2848a2da0128e0d3555fa | [
"MIT"
] | null | null | null | #include "QueueNode.h"
#include <iostream>
int main(void) {
Queue<int> q;
int temp;
q.enqueue(1);
q.enqueue(50);
q.enqueue(30);
q.enqueue(80);
q.enqueue(10);
q.enqueue(7);
q.printQueue();
while(!q.isEmpty()) {
q.dequeue(temp);
}
q.printQueue();
return 0;
}
| 14.1 | 22 | 0.606383 |
1a058f089c816fe656fccfdf5b0d50e4ca781b28 | 2,870 | cpp | C++ | src/CAN/CANMotor_PSOC.cpp | huskyroboticsteam/Resurgence | 649f78103b6d76709fdf55bb38d08c0ff50da140 | [
"Apache-2.0"
] | 3 | 2021-12-23T23:31:42.000Z | 2022-02-16T07:17:41.000Z | src/CAN/CANMotor_PSOC.cpp | huskyroboticsteam/Resurgence | 649f78103b6d76709fdf55bb38d08c0ff50da140 | [
"Apache-2.0"
] | 2 | 2021-11-22T05:33:43.000Z | 2022-01-23T07:01:47.000Z | src/CAN/CANMotor_PSOC.cpp | huskyroboticsteam/Resurgence | 649f78103b6d76709fdf55bb38d08c0ff50da140 | [
"Apache-2.0"
] | null | null | null | #include "CAN.h"
#include "CANMotor.h"
#include "CANUtils.h"
#include <chrono>
#include <cmath>
#include <condition_variable>
#include <mutex>
#include <queue>
#include <thread>
#include <vector>
extern "C" {
#include "../HindsightCAN/CANCommon.h"
#include "../HindsightCAN/CANMotorUnit.h"
#include "../HindsightCAN/CA... | 27.596154 | 91 | 0.74216 |