hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 108 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 67k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
473606e9e57605d14cc36446bfc8f714886ae17d | 4,619 | cpp | C++ | documents/code/Chapter7/MarchingTetrahedra/TetrahedraMarcher.cpp | evertonantunes/OpenGLPlayground | 1a7a9caaf81b250b90585dcdc128f6d55e391f7e | [
"MIT"
] | null | null | null | documents/code/Chapter7/MarchingTetrahedra/TetrahedraMarcher.cpp | evertonantunes/OpenGLPlayground | 1a7a9caaf81b250b90585dcdc128f6d55e391f7e | [
"MIT"
] | null | null | null | documents/code/Chapter7/MarchingTetrahedra/TetrahedraMarcher.cpp | evertonantunes/OpenGLPlayground | 1a7a9caaf81b250b90585dcdc128f6d55e391f7e | [
"MIT"
] | null | null | null | #include "TetrahedraMarcher.h"
#include <fstream>
#include "Tables.h"
TetrahedraMarcher::TetrahedraMarcher(void)
{
XDIM = 256;
YDIM = 256;
ZDIM = 256;
pVolume = NULL;
}
TetrahedraMarcher::~TetrahedraMarcher(void)
{
if(pVolume!=NULL) {
delete [] pVolume;
pVolume = NULL;
}
}
void Tet... | 27.993939 | 120 | 0.652739 | evertonantunes |
473731e1e9bd21c7cc06f33cff6cb8fdac9b44c1 | 18,378 | cpp | C++ | Max Objects/macOS/sofa~.mxo/Contents/Resources/SOFA/src/SOFADate.cpp | APL-Huddersfield/SOFA-for-Max | 55e2dbe4b6ffa9e948cfaae2f134fbc00f5b354f | [
"BSD-3-Clause"
] | 15 | 2019-03-31T22:03:21.000Z | 2022-02-25T04:15:49.000Z | Max Objects/macOS/sofa~.mxo/Contents/Resources/SOFA/src/SOFADate.cpp | APL-Huddersfield/SOFA-for-Max | 55e2dbe4b6ffa9e948cfaae2f134fbc00f5b354f | [
"BSD-3-Clause"
] | 1 | 2022-03-15T16:14:57.000Z | 2022-03-30T11:05:04.000Z | Max Objects/macOS/sofa~.mxo/Contents/Resources/SOFA/src/SOFADate.cpp | APL-Huddersfield/SOFA-for-Max | 55e2dbe4b6ffa9e948cfaae2f134fbc00f5b354f | [
"BSD-3-Clause"
] | 2 | 2019-03-31T22:04:08.000Z | 2020-12-31T08:49:54.000Z | /*
Copyright (c) 2013--2017, UMR STMS 9912 - Ircam-Centre Pompidou / CNRS / UPMC
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
... | 29.594203 | 127 | 0.512188 | APL-Huddersfield |
473ab4f0d92426be9f316ecb4889d8c6965e1e86 | 2,959 | cxx | C++ | icetray/private/modules/MaintainInitialValuesModule.cxx | hschwane/offline_production | e14a6493782f613b8bbe64217559765d5213dc1e | [
"MIT"
] | 1 | 2020-12-24T22:00:01.000Z | 2020-12-24T22:00:01.000Z | icetray/private/modules/MaintainInitialValuesModule.cxx | hschwane/offline_production | e14a6493782f613b8bbe64217559765d5213dc1e | [
"MIT"
] | null | null | null | icetray/private/modules/MaintainInitialValuesModule.cxx | hschwane/offline_production | e14a6493782f613b8bbe64217559765d5213dc1e | [
"MIT"
] | 3 | 2020-07-17T09:20:29.000Z | 2021-03-30T16:44:18.000Z | /**
* copyright (C) 2004
* the icecube collaboration
* $Id: MaintainInitialValuesModule.cxx 176001 2019-10-09 22:16:53Z olivas $
*
* @version $Revision: 176001 $
* @date $Date: 2019-10-09 16:16:53 -0600 (Wed, 09 Oct 2019) $
* @author troy d. straszheim
*
* This tests that the global GetService<> works; that t... | 31.478723 | 79 | 0.715444 | hschwane |
473b00feadf6feea3657aeebfd555c7af7f8ed95 | 635 | hpp | C++ | BaCa_P2/zadanieA/src/BitSetLib.hpp | arhmichal/P2_BaCa | 2567897544c907dac60290c3b727fc170310786c | [
"MIT"
] | 1 | 2018-03-21T18:29:29.000Z | 2018-03-21T18:29:29.000Z | BaCa_P2/zadanieA/src/BitSetLib.hpp | arhmichal/P2_BaCa | 2567897544c907dac60290c3b727fc170310786c | [
"MIT"
] | null | null | null | BaCa_P2/zadanieA/src/BitSetLib.hpp | arhmichal/P2_BaCa | 2567897544c907dac60290c3b727fc170310786c | [
"MIT"
] | null | null | null | #pragma once
#include <iostream>
#include <string>
#include <sstream>
void Emplace(std::string, int*);
void Insert(std::string, int*);
void Erase(std::string, int*);
void Print(int, std::string*);
bool Emptiness(int);
bool Nonempty(int);
bool Member(std::string, int);
bool Disjoint(int, int);
bool Conjunctive(int, in... | 23.518519 | 34 | 0.711811 | arhmichal |
47413e28fc7ab0bc3482d239c7baba537dc4340b | 1,962 | cpp | C++ | aby3/sh3/Sh3Converter.cpp | cyckun/aby3 | 99af31ccaef6cd2c22df8ef57d8b7a07d62c66cf | [
"MIT"
] | 121 | 2019-06-25T01:35:50.000Z | 2022-03-24T12:53:17.000Z | aby3/sh3/Sh3Converter.cpp | cyckun/aby3 | 99af31ccaef6cd2c22df8ef57d8b7a07d62c66cf | [
"MIT"
] | 33 | 2020-01-21T16:47:09.000Z | 2022-01-23T12:41:22.000Z | aby3/sh3/Sh3Converter.cpp | cyckun/aby3 | 99af31ccaef6cd2c22df8ef57d8b7a07d62c66cf | [
"MIT"
] | 36 | 2019-09-05T08:35:09.000Z | 2022-01-14T11:57:22.000Z | #include "Sh3Converter.h"
#include <libOTe/Tools/Tools.h>
#include "Sh3BinaryEvaluator.h"
using namespace oc;
namespace aby3
{
void Sh3Converter::toPackedBin(const sbMatrix & in, sPackedBin & dest)
{
dest.reset(in.rows(), in.bitCount());
for (u64 i = 0; i < 2; ++i)
{
... | 25.815789 | 108 | 0.462793 | cyckun |
4741de12653948415081686fc85895d4ff90ccb1 | 3,515 | cpp | C++ | QVES-App/DataPanel.cpp | joaconigro/QVES | 66498286838a60dbc7d3c1bd7bc7644208ae05a3 | [
"MIT"
] | 2 | 2017-08-09T17:32:47.000Z | 2018-04-03T11:05:12.000Z | QVES-App/DataPanel.cpp | joaconigro/QVES | 66498286838a60dbc7d3c1bd7bc7644208ae05a3 | [
"MIT"
] | null | null | null | QVES-App/DataPanel.cpp | joaconigro/QVES | 66498286838a60dbc7d3c1bd7bc7644208ae05a3 | [
"MIT"
] | 2 | 2017-10-19T04:44:37.000Z | 2019-04-29T08:59:44.000Z | #include "DataPanel.h"
#include "ui_DataPanel.h"
DataPanel::DataPanel(QVESModelDelegate *delegate, QWidget *parent) :
QWidget(parent),
ui(new Ui::DataPanel),
mainDelegate(delegate)
{
ui->setupUi(this);
ui->radioButtonField->setChecked(true);
mResetSelection = false;
selectionModel = nullptr... | 33.47619 | 144 | 0.714651 | joaconigro |
474334400e6b7b54ea439df22a9af425ed1fedb4 | 1,425 | cpp | C++ | learn_opencv3.1.0/source/chapter/chapter_030.cpp | k9bao/learn_opencv | 6fc6ec435ed2223d43f6a79c97ceb2475f7bf5c3 | [
"Apache-2.0"
] | null | null | null | learn_opencv3.1.0/source/chapter/chapter_030.cpp | k9bao/learn_opencv | 6fc6ec435ed2223d43f6a79c97ceb2475f7bf5c3 | [
"Apache-2.0"
] | null | null | null | learn_opencv3.1.0/source/chapter/chapter_030.cpp | k9bao/learn_opencv | 6fc6ec435ed2223d43f6a79c97ceb2475f7bf5c3 | [
"Apache-2.0"
] | null | null | null | #include <iostream>
#include <math.h>
#include <opencv2/opencv.hpp>
using namespace std;
using namespace cv;
Mat src, dst;
const char *output_win = "findcontours-demo";
int threshold_value = 100;
int threshold_max = 255;
RNG rng;
void Demo_Contours(int, void *);
int main(int argc, char **argv) {
src = imread("hap... | 30.319149 | 96 | 0.666667 | k9bao |
4745f641e7c0cbfd95ff7354442d29603f99b28e | 941 | cpp | C++ | src/tools/qt-gui/src/editkeycommand.cpp | D-os/libelektra | e39f439bfa5ff1fe56e6c8c7ee290913449d1dde | [
"BSD-3-Clause"
] | null | null | null | src/tools/qt-gui/src/editkeycommand.cpp | D-os/libelektra | e39f439bfa5ff1fe56e6c8c7ee290913449d1dde | [
"BSD-3-Clause"
] | null | null | null | src/tools/qt-gui/src/editkeycommand.cpp | D-os/libelektra | e39f439bfa5ff1fe56e6c8c7ee290913449d1dde | [
"BSD-3-Clause"
] | null | null | null | #include "editkeycommand.hpp"
EditKeyCommand::EditKeyCommand(TreeViewModel* model, int index, DataContainer* data, QUndoCommand* parent)
: QUndoCommand(parent)
, m_model(model)
, m_index(index)
, m_oldName(data->oldName())
, m_oldValue(data->oldValue())
, m_oldMetaData(data->oldMetadata())
, m_newName(data->ne... | 29.40625 | 106 | 0.746015 | D-os |
4748eb04b61b468b44e28c9d8ea38544fbddc8c4 | 1,083 | cpp | C++ | various/OPENEDG/ch1/unique.cpp | chgogos/oop | 3b0e6bbd29a76f863611e18d082913f080b1b571 | [
"MIT"
] | 14 | 2019-04-23T13:45:10.000Z | 2022-03-12T18:26:47.000Z | various/OPENEDG/ch1/unique.cpp | chgogos/oop | 3b0e6bbd29a76f863611e18d082913f080b1b571 | [
"MIT"
] | null | null | null | various/OPENEDG/ch1/unique.cpp | chgogos/oop | 3b0e6bbd29a76f863611e18d082913f080b1b571 | [
"MIT"
] | 9 | 2019-09-01T15:17:45.000Z | 2020-11-13T20:31:36.000Z | #include <list>
#include <iostream>
using namespace std;
template<class I>
void print (const I & start, const I & end)
{
for(I it = start; it != end; ++it)
{
cout<< *it << " ";
}
cout<<endl;
}
bool compareInt(double v1, double v2)
{
if ((int)v1 == (int)v2)
{
return true;
}
... | 20.055556 | 73 | 0.561404 | chgogos |
4749bff31a4155950511394e49ba3aece171cec7 | 4,431 | cpp | C++ | src/Utils/HttpParser.cpp | lkmaks/caos-http-web-server-by-Lavrik-Karmazin | a2bd3ca9a7f0418e331a7a7f9b874e6c876c8739 | [
"MIT"
] | null | null | null | src/Utils/HttpParser.cpp | lkmaks/caos-http-web-server-by-Lavrik-Karmazin | a2bd3ca9a7f0418e331a7a7f9b874e6c876c8739 | [
"MIT"
] | null | null | null | src/Utils/HttpParser.cpp | lkmaks/caos-http-web-server-by-Lavrik-Karmazin | a2bd3ca9a7f0418e331a7a7f9b874e6c876c8739 | [
"MIT"
] | null | null | null | #include <string>
#include <vector>
#include <map>
#include "HttpParser.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include "GeneralUtils.h"
#include "Debug.hpp"
typedef std::string::size_type size_type;
bool is_substr(const std::string &t, const std::string &s, int pos) {... | 24.213115 | 102 | 0.60009 | lkmaks |
4749d5691fdc3d53230a2008b7ea862ed6cc64a6 | 8,947 | cpp | C++ | src/Game/Terrain/Block.cpp | NikiNatov/Minecraft_Clone | f3c04d595f06ceca2c060f44d67d2b4be751896c | [
"Apache-2.0"
] | null | null | null | src/Game/Terrain/Block.cpp | NikiNatov/Minecraft_Clone | f3c04d595f06ceca2c060f44d67d2b4be751896c | [
"Apache-2.0"
] | null | null | null | src/Game/Terrain/Block.cpp | NikiNatov/Minecraft_Clone | f3c04d595f06ceca2c060f44d67d2b4be751896c | [
"Apache-2.0"
] | null | null | null | #include "pch.h"
#include "Block.h"
#include "Graphics\SpriteManager.h"
std::vector<ScopedPtr<Block>> Block::s_Blocks;
Block::Block(BlockID id)
: m_ID(id)
{
glm::vec3 positions[8];
positions[0] = { 0.0f, 0.0f, 1.0f };
positions[1] = { 1.0f, 0.0f, 1.0f };
positions[2] = { 1.0f, 1.0f, 1.0f };
positions[... | 37.592437 | 97 | 0.692858 | NikiNatov |
474aa03ad975952cdaf6d8a3f7f1d8b96c02c5c4 | 676 | cpp | C++ | CodeForces/Complete/200-299/289B-PoloThePenguinAndMatrix.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 36 | 2019-12-27T08:23:08.000Z | 2022-01-24T20:35:47.000Z | CodeForces/Complete/200-299/289B-PoloThePenguinAndMatrix.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 10 | 2019-11-13T02:55:18.000Z | 2021-10-13T23:28:09.000Z | CodeForces/Complete/200-299/289B-PoloThePenguinAndMatrix.cpp | Ashwanigupta9125/code-DS-ALGO | 49f6cf7d0c682da669db23619aef3f80697b352b | [
"MIT"
] | 53 | 2020-08-15T11:08:40.000Z | 2021-10-09T15:51:38.000Z | #include <cstdio>
#include <cstdlib>
#include <algorithm>
int main(){
int n(0), m(0), d(0); scanf("%d %d %d", &n, &m, &d);
int *array = new int[n * m];
bool possible(1);
int currentMod(-1);
for(int k = 0; k < n * m; k++){
scanf("%d", array + k);
if(currentMod < 0){currentMod = ar... | 23.310345 | 76 | 0.471893 | Ashwanigupta9125 |
474f001d6896e6253ca001b8bc9fea0976835125 | 159 | cpp | C++ | 5e/C++11/407_new.cpp | mallius/CppPrimer | 0285fabe5934492dfed0a9cf67ba5650982a5f76 | [
"MIT"
] | null | null | null | 5e/C++11/407_new.cpp | mallius/CppPrimer | 0285fabe5934492dfed0a9cf67ba5650982a5f76 | [
"MIT"
] | null | null | null | 5e/C++11/407_new.cpp | mallius/CppPrimer | 0285fabe5934492dfed0a9cf67ba5650982a5f76 | [
"MIT"
] | 1 | 2022-01-25T15:51:34.000Z | 2022-01-25T15:51:34.000Z | #include <vector>
using namespace std;
int main(void)
{
int *pi = new int{1024};
vector<int> *pv = new vector<int>{0, 1, 2, 3, 4, 5};
return 0;
} | 15.9 | 56 | 0.578616 | mallius |
47533d2ad35f7bc299d1dc4ece17e917ab4ecc2c | 38,753 | cc | C++ | trunk/elsa/elsa/mtype.cc | BackupTheBerlios/codemorpher-svn | 997c989fe1ca932771b3908bafffe1f52f965c9d | [
"BSD-3-Clause"
] | null | null | null | trunk/elsa/elsa/mtype.cc | BackupTheBerlios/codemorpher-svn | 997c989fe1ca932771b3908bafffe1f52f965c9d | [
"BSD-3-Clause"
] | null | null | null | trunk/elsa/elsa/mtype.cc | BackupTheBerlios/codemorpher-svn | 997c989fe1ca932771b3908bafffe1f52f965c9d | [
"BSD-3-Clause"
] | null | null | null | // mtype.cc
// code for mtype.h
// 2005-08-03: This code is now exercised to 100% statement coverage,
// except for the code that deals with MF_POLYMORPHIC and
// MF_ISOMORPHIC and the places annotated with gcov-ignore or
// gcov-begin/end-ignore, by in/t0511.cc.
//
// My plan is to re-do the coverage analysis using t... | 30.087733 | 115 | 0.630093 | BackupTheBerlios |
4755af93c37ba08eccd693bd20210b7c6ceae211 | 74,554 | cpp | C++ | il.cpp | jevinskie/arch-arm64 | e4a3d95a0aea1d039c3f47d2283e20bdaff16ba6 | [
"Apache-2.0"
] | 2 | 2020-12-14T07:29:55.000Z | 2021-08-02T20:27:30.000Z | il.cpp | jevinskie/arch-arm64 | e4a3d95a0aea1d039c3f47d2283e20bdaff16ba6 | [
"Apache-2.0"
] | null | null | null | il.cpp | jevinskie/arch-arm64 | e4a3d95a0aea1d039c3f47d2283e20bdaff16ba6 | [
"Apache-2.0"
] | null | null | null | #include "lowlevelilinstruction.h"
#include <cstring>
#include <inttypes.h>
#include <stdarg.h>
#include "il.h"
#include "neon_intrinsics.h"
#include "sysregs.h"
using namespace BinaryNinja;
#include "il_macros.h"
static ExprId GetCondition(LowLevelILFunction& il, Condition cond)
{
switch (cond)
{
case COND_EQ:
... | 32.713471 | 99 | 0.698608 | jevinskie |
e6dc53a9c9792921fb33953893da983f745e749e | 610 | cpp | C++ | src/base/network/Hook.cpp | svalat/iocatcher | 4845e20d938c816f6ca5ee8d3308aa9a0e0abaff | [
"Apache-2.0"
] | 2 | 2022-01-28T16:03:14.000Z | 2022-02-18T07:35:22.000Z | src/base/network/Hook.cpp | svalat/iocatcher | 4845e20d938c816f6ca5ee8d3308aa9a0e0abaff | [
"Apache-2.0"
] | 2 | 2022-02-10T10:22:02.000Z | 2022-02-11T18:00:47.000Z | src/base/network/Hook.cpp | svalat/iocatcher | 4845e20d938c816f6ca5ee8d3308aa9a0e0abaff | [
"Apache-2.0"
] | 1 | 2022-01-31T21:09:15.000Z | 2022-01-31T21:09:15.000Z | /*****************************************************
PROJECT : IO Catcher
VERSION : 0.0.0-dev
DATE : 10/2020
LICENSE : ????????
*****************************************************/
/****************************************************/
#include "Hook.hpp"
#include "LibfabricConnection.hpp"
/***... | 26.521739 | 63 | 0.372131 | svalat |
e6de82ae4e2a066e80b761b1deadf809da51b245 | 9,385 | cpp | C++ | plugins/it/src/vs_it_c.cpp | darcyg/vapoursynth-plugins | 5aaf090d3523cb8c53841949f2da286688ba33bb | [
"BSD-2-Clause"
] | null | null | null | plugins/it/src/vs_it_c.cpp | darcyg/vapoursynth-plugins | 5aaf090d3523cb8c53841949f2da286688ba33bb | [
"BSD-2-Clause"
] | null | null | null | plugins/it/src/vs_it_c.cpp | darcyg/vapoursynth-plugins | 5aaf090d3523cb8c53841949f2da286688ba33bb | [
"BSD-2-Clause"
] | 1 | 2020-04-06T16:52:59.000Z | 2020-04-06T16:52:59.000Z | /*
VS_IT Copyright(C) 2002 thejam79, 2003 minamina, 2014 msg7086
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
of the License, or(at your option) any later version.
This program... | 28.525836 | 112 | 0.599467 | darcyg |
e6df7175e64f904976d2bdc4555fd81e363172fd | 656 | cpp | C++ | Subiecte 2009/V16 II 5.cpp | jbara2002/Informatica_LCIB | ff9db6d7d6119ba835750cc2d408079f76b852df | [
"CC0-1.0"
] | 1 | 2022-03-31T21:45:03.000Z | 2022-03-31T21:45:03.000Z | Subiecte 2009/V16 II 5.cpp | jbara2002/Informatica_LCIB | ff9db6d7d6119ba835750cc2d408079f76b852df | [
"CC0-1.0"
] | null | null | null | Subiecte 2009/V16 II 5.cpp | jbara2002/Informatica_LCIB | ff9db6d7d6119ba835750cc2d408079f76b852df | [
"CC0-1.0"
] | null | null | null | #include <iostream>
using namespace std;
int main()
{
int a[16][16], n, i, j;
cin >> n;
for(i=1; i<=n; i++)
{
for(j=1; j<=n; j++)
{
if(i+j==n+1) /// Suntem pe diagonala secundara.
{
a[i][j] = 4;
}
else if(i==j) /// Sunt... | 15.619048 | 62 | 0.291159 | jbara2002 |
e6e04edd1bad9f7d4a65eea3cf4ab66a324c93e7 | 2,971 | cpp | C++ | apps/ExampleMatcher/Filter/CsvSubRouteWriter.cpp | boundter/os-matcher | 92d72bb1645a64bdd5230c0107a6cdda7a78cf48 | [
"Apache-2.0"
] | null | null | null | apps/ExampleMatcher/Filter/CsvSubRouteWriter.cpp | boundter/os-matcher | 92d72bb1645a64bdd5230c0107a6cdda7a78cf48 | [
"Apache-2.0"
] | null | null | null | apps/ExampleMatcher/Filter/CsvSubRouteWriter.cpp | boundter/os-matcher | 92d72bb1645a64bdd5230c0107a6cdda7a78cf48 | [
"Apache-2.0"
] | null | null | null | /*
* SPDX-FileCopyrightText: © 2018 Ambrosys GmbH
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "CsvSubRouteWriter.h"
#include <Core/Common/Geometry/Conversion.h>
#include <Core/Common/Time/Helper.h>
#include <amblog/global.h>
namespace Applications::ExampleMatcher::Filter {
CsvSubRouteWriter::CsvSubRout... | 45.015152 | 272 | 0.672837 | boundter |
e6e13e4fb4ad558e7a2c66389e0817740bdaf028 | 432 | cpp | C++ | src/format.cpp | julesser/CppND-System-Monitor | 8480d73ef2bb9c70d1c4e0eba7dbb861f87c05de | [
"MIT"
] | null | null | null | src/format.cpp | julesser/CppND-System-Monitor | 8480d73ef2bb9c70d1c4e0eba7dbb861f87c05de | [
"MIT"
] | null | null | null | src/format.cpp | julesser/CppND-System-Monitor | 8480d73ef2bb9c70d1c4e0eba7dbb861f87c05de | [
"MIT"
] | null | null | null | #include "format.h"
#include <string>
using std::string;
// DONE: Complete this helper function
// INPUT: Long int measuring seconds
// OUTPUT: HH:MM:SS
string Format::ElapsedTime(long seconds) {
int min = int((seconds / (60)) % 60);
int sec = int(seconds % (60));
int hrs = int(min / (60 * 60));
string time... | 24 | 71 | 0.611111 | julesser |
e6e82a72fea08c5bea940bc545aca53d20de3d6a | 66,403 | cpp | C++ | EndlessReachHD/Private/EndlessReachHDPawn.cpp | Soverance/EndlessReachHD | 1e670fa265e78ea8c8c30d510282a39176c7215d | [
"Apache-2.0"
] | 11 | 2017-07-25T11:57:28.000Z | 2020-10-24T04:26:20.000Z | EndlessReachHD/Private/EndlessReachHDPawn.cpp | Soverance/EndlessReachHD | 1e670fa265e78ea8c8c30d510282a39176c7215d | [
"Apache-2.0"
] | null | null | null | EndlessReachHD/Private/EndlessReachHDPawn.cpp | Soverance/EndlessReachHD | 1e670fa265e78ea8c8c30d510282a39176c7215d | [
"Apache-2.0"
] | 4 | 2018-03-30T10:53:09.000Z | 2020-06-27T22:40:14.000Z | // © 2012 - 2019 Soverance Studios
// https://soverance.com
// 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 ... | 36.167211 | 245 | 0.729425 | Soverance |
e6ec92140e30412542c541d2d928bb491d8a3d90 | 3,473 | cpp | C++ | solvers/src/solvers/CuSparseSolver.cpp | zurutech/stand | a341f691d991072a61d07aac6fa7e634e2d112d3 | [
"Apache-2.0"
] | 9 | 2022-01-17T07:30:49.000Z | 2022-01-20T17:27:52.000Z | solvers/src/solvers/CuSparseSolver.cpp | zurutech/stand | a341f691d991072a61d07aac6fa7e634e2d112d3 | [
"Apache-2.0"
] | null | null | null | solvers/src/solvers/CuSparseSolver.cpp | zurutech/stand | a341f691d991072a61d07aac6fa7e634e2d112d3 | [
"Apache-2.0"
] | null | null | null | /* Copyright 2022 Zuru Tech HK Limited.
*
* 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 ... | 37.344086 | 80 | 0.69738 | zurutech |
e6f062fcb872ce77d5c9e3e6edab326aed749883 | 3,943 | cpp | C++ | XRVessels/XR2Ravenstar/XR2Ravenstar/XR2PostSteps.cpp | dbeachy1/XRVessels | 8dd2d879886154de2f31fa75393d8a6ac56a2089 | [
"MIT"
] | 10 | 2021-08-20T05:49:10.000Z | 2022-01-07T13:00:20.000Z | XRVessels/XR2Ravenstar/XR2Ravenstar/XR2PostSteps.cpp | dbeachy1/XRVessels | 8dd2d879886154de2f31fa75393d8a6ac56a2089 | [
"MIT"
] | null | null | null | XRVessels/XR2Ravenstar/XR2Ravenstar/XR2PostSteps.cpp | dbeachy1/XRVessels | 8dd2d879886154de2f31fa75393d8a6ac56a2089 | [
"MIT"
] | 4 | 2021-09-11T12:08:01.000Z | 2022-02-09T00:16:19.000Z | /**
XR Vessel add-ons for OpenOrbiter Space Flight Simulator
Copyright (C) 2006-2021 Douglas Beachy
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 3 of the License, or
any... | 37.198113 | 146 | 0.632767 | dbeachy1 |
e6f0d9a145d8f4d7c84c00ba9fa45928e9a5c638 | 7,374 | cc | C++ | src/tests/grid/test_distribution_regular_bands.cc | twsearle/atlas | a1916fd521f9935f846004e6194f80275de4de83 | [
"Apache-2.0"
] | 67 | 2018-03-01T06:56:49.000Z | 2022-03-08T18:44:47.000Z | src/tests/grid/test_distribution_regular_bands.cc | twsearle/atlas | a1916fd521f9935f846004e6194f80275de4de83 | [
"Apache-2.0"
] | 93 | 2018-12-07T17:38:04.000Z | 2022-03-31T10:04:51.000Z | src/tests/grid/test_distribution_regular_bands.cc | twsearle/atlas | a1916fd521f9935f846004e6194f80275de4de83 | [
"Apache-2.0"
] | 33 | 2018-02-28T17:06:19.000Z | 2022-01-20T12:12:27.000Z | /*
* (C) Copyright 2013 ECMWF.
*
* This software is licensed under the terms of the Apache Licence Version 2.0
* which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
* In applying this licence, ECMWF does not waive the privileges and immunities
* granted to it by virtue of its status as an intergo... | 35.282297 | 115 | 0.555194 | twsearle |
e6f180d9dc9c90ff8c5aea882d4336024b7c6b0b | 2,876 | cpp | C++ | etc/berlekamp_massey with kitamasa.cpp | jinhan814/algorithms-implementation | b5185f98c5d5d34c0f98de645e5b755fcf75c120 | [
"MIT"
] | null | null | null | etc/berlekamp_massey with kitamasa.cpp | jinhan814/algorithms-implementation | b5185f98c5d5d34c0f98de645e5b755fcf75c120 | [
"MIT"
] | null | null | null | etc/berlekamp_massey with kitamasa.cpp | jinhan814/algorithms-implementation | b5185f98c5d5d34c0f98de645e5b755fcf75c120 | [
"MIT"
] | null | null | null | /*
* BOJ 13976
* https://www.acmicpc.net/problem/13976
* reference : https://www.secmem.org/blog/2019/05/17/BerlekampMassey/, https://justicehui.github.io/hard-algorithm/2021/03/13/kitamasa/
*/
#include <bits/stdc++.h>
#define fastio cin.tie(0)->sync_with_stdio(0)
using namespace std;
constexpr int MOD ... | 34.238095 | 137 | 0.439847 | jinhan814 |
e6f3a9d714382f24aa494d9f82a0f0b7864e084c | 2,747 | cpp | C++ | Snake/AIs/StupidAI/StupidAI.cpp | Madsy/GameAutomata | e32f0442f3238c6110a39dff509244dbec2d60be | [
"BSD-3-Clause"
] | 2 | 2015-08-17T17:22:40.000Z | 2015-11-17T05:15:20.000Z | Snake/AIs/StupidAI/StupidAI.cpp | Madsy/GameAutomata | e32f0442f3238c6110a39dff509244dbec2d60be | [
"BSD-3-Clause"
] | null | null | null | Snake/AIs/StupidAI/StupidAI.cpp | Madsy/GameAutomata | e32f0442f3238c6110a39dff509244dbec2d60be | [
"BSD-3-Clause"
] | null | null | null | #include <algorithm>
#include <cstdio>
#include <iostream>
#include "../../shared/SnakeGame.hpp"
Direction AIMove(int player, SnakeGameInfo& state)
{
Point head, newHead, foodDelta;
const Direction startMoves[4] = { Up, Down, Left, Right };
Direction d;
std::vector<Direction> possibleMoves;
head = state.sn... | 29.858696 | 99 | 0.670186 | Madsy |
e6f3b6ad777fa3f65581e10e8cc18bd21f3e1082 | 18,343 | hpp | C++ | include/GlobalNamespace/SliderInteractionManager.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/SliderInteractionManager.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | include/GlobalNamespace/SliderInteractionManager.hpp | RedBrumbler/BeatSaber-Quest-Codegen | 73dda50b5a3e51f10d86b766dcaa24b0c6226e25 | [
"Unlicense"
] | null | null | null | // Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "beatsaber-hook/shared/utils/typedefs.h"
#include "beatsaber-hook/shared/utils/byref.hpp"
// Including type: UnityEngine.MonoBehaviour
#include ... | 59.749186 | 239 | 0.774737 | RedBrumbler |
e6f765c2ca1a4942ae3cb81a65088395e91ac415 | 2,341 | cpp | C++ | core/projects/redmax/Body/BodyDesignParameters.cpp | eanswer/DiffHand | d7b9c068b7fa364935f3dc9d964d63e1e3a774c8 | [
"MIT"
] | 36 | 2021-07-13T19:28:50.000Z | 2022-01-09T14:52:15.000Z | core/projects/redmax/Body/BodyDesignParameters.cpp | eanswer/DiffHand | d7b9c068b7fa364935f3dc9d964d63e1e3a774c8 | [
"MIT"
] | null | null | null | core/projects/redmax/Body/BodyDesignParameters.cpp | eanswer/DiffHand | d7b9c068b7fa364935f3dc9d964d63e1e3a774c8 | [
"MIT"
] | 6 | 2021-07-15T02:06:29.000Z | 2021-11-23T03:06:14.000Z | #include "Body/BodyDesignParameters.h"
#include "Body/Body.h"
#include "Utils.h"
namespace redmax {
BodyDesignParameters::BodyDesignParameters(
Body* body, DesignParameterType type, bool active, int ndof)
: DesignParameters(type, active, ndof) {
if (_type != DesignParameterType::TYPE2
&& _ty... | 34.426471 | 85 | 0.604443 | eanswer |
e6fb7a55a534790d4ee470e7dc39cc86affa0e9e | 721 | hpp | C++ | sprout/tuple/indexes.hpp | jwakely/Sprout | a64938fad0a64608f22d39485bc55a1e0dc07246 | [
"BSL-1.0"
] | 1 | 2018-09-21T23:50:44.000Z | 2018-09-21T23:50:44.000Z | sprout/tuple/indexes.hpp | jwakely/Sprout | a64938fad0a64608f22d39485bc55a1e0dc07246 | [
"BSL-1.0"
] | null | null | null | sprout/tuple/indexes.hpp | jwakely/Sprout | a64938fad0a64608f22d39485bc55a1e0dc07246 | [
"BSL-1.0"
] | null | null | null | #ifndef SPROUT_TUPLE_INDEXES_HPP
#define SPROUT_TUPLE_INDEXES_HPP
#include <sprout/config.hpp>
#include <sprout/index_tuple.hpp>
#include <sprout/index_tuple/detail/make_indexes_helper.hpp>
#include <sprout/tuple/tuple.hpp>
namespace sprout {
namespace tuples {
//
// tuple_indexes
//
template<ty... | 22.53125 | 69 | 0.708738 | jwakely |
e6fced42eecd74e756b76964d9ff0b95b731355f | 2,762 | hh | C++ | prothos/runtime/runtime/FlowGraph.hh | ManyThreads/prothos | dd77c46df1dde323ccdfeac3319ba1dd2ea15ce1 | [
"MIT"
] | 1 | 2017-03-09T10:18:54.000Z | 2017-03-09T10:18:54.000Z | prothos/runtime/runtime/FlowGraph.hh | ManyThreads/prothos | dd77c46df1dde323ccdfeac3319ba1dd2ea15ce1 | [
"MIT"
] | 9 | 2018-10-02T11:41:07.000Z | 2019-02-07T14:39:52.000Z | prothos/runtime/runtime/FlowGraph.hh | ManyThreads/prothos | dd77c46df1dde323ccdfeac3319ba1dd2ea15ce1 | [
"MIT"
] | 1 | 2021-12-10T16:40:56.000Z | 2021-12-10T16:40:56.000Z | #pragma once
#include "runtime/FlowGraph_impl.hh"
namespace Prothos {
namespace FlowGraph {
class Graph {
public:
Graph() {}
};
class GraphNode {
public:
GraphNode(Graph &g)
: g(g)
{}
private:
Graph &g;
};
template<typename T>
inline void makeEdge(Internal::Sender<T> &s, Internal::Receiv... | 21.920635 | 119 | 0.669442 | ManyThreads |
e6fd33400e83c691970a57f89d22cb2ae8921bf6 | 270 | cpp | C++ | Pacote-Download/C-C++/repeticao4.cpp | AbnerSantos25/Arquivos-em-C | fe20725012ca1c2f1976b93f8520b6b528b249d9 | [
"MIT"
] | null | null | null | Pacote-Download/C-C++/repeticao4.cpp | AbnerSantos25/Arquivos-em-C | fe20725012ca1c2f1976b93f8520b6b528b249d9 | [
"MIT"
] | null | null | null | Pacote-Download/C-C++/repeticao4.cpp | AbnerSantos25/Arquivos-em-C | fe20725012ca1c2f1976b93f8520b6b528b249d9 | [
"MIT"
] | null | null | null | #include <stdio.h>
int main()
{
int num, fat=1;
printf("calcula o fatorial de um numero\n");
printf("informe o numero: ");
scanf("%d",&num);
for(int i=num; i>=1; i--)
fat *= i;
printf("o fatorial de %d e %d",num,fat);
return 0;
}
| 18 | 48 | 0.525926 | AbnerSantos25 |
e6fdb753db279599a480bf07b6306068a80e8354 | 7,414 | cpp | C++ | software/esp32-firmware/src/uart_thread.cpp | vhs/vhs-door-nfc | 55b8210d7b07a5c6fa26bc40fae8362b504addd6 | [
"Apache-2.0"
] | null | null | null | software/esp32-firmware/src/uart_thread.cpp | vhs/vhs-door-nfc | 55b8210d7b07a5c6fa26bc40fae8362b504addd6 | [
"Apache-2.0"
] | 1 | 2019-02-01T23:03:20.000Z | 2019-02-02T19:48:57.000Z | software/esp32-firmware/src/uart_thread.cpp | vhs/vhs-door-nfc | 55b8210d7b07a5c6fa26bc40fae8362b504addd6 | [
"Apache-2.0"
] | 1 | 2020-02-16T06:43:42.000Z | 2020-02-16T06:43:42.000Z | #include <stdio.h>
#include <string.h>
#include <sys/unistd.h>
#include <sys/stat.h>
#include <time.h>
#include <sys/time.h>
#include <assert.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "freertos/queue.h"
#include <esp_types.h>
#include "esp_system.h"
#include "esp_event.h"
#include "esp_ev... | 40.075676 | 151 | 0.632587 | vhs |
e6fdc7813286e4ab5dc92fe81d62c0da7c217457 | 654 | hpp | C++ | pythran/pythonic/numpy/isneginf.hpp | davidbrochart/pythran | 24b6c8650fe99791a4091cbdc2c24686e86aa67c | [
"BSD-3-Clause"
] | 1,647 | 2015-01-13T01:45:38.000Z | 2022-03-28T01:23:41.000Z | pythran/pythonic/numpy/isneginf.hpp | davidbrochart/pythran | 24b6c8650fe99791a4091cbdc2c24686e86aa67c | [
"BSD-3-Clause"
] | 1,116 | 2015-01-01T09:52:05.000Z | 2022-03-18T21:06:40.000Z | pythran/pythonic/numpy/isneginf.hpp | davidbrochart/pythran | 24b6c8650fe99791a4091cbdc2c24686e86aa67c | [
"BSD-3-Clause"
] | 180 | 2015-02-12T02:47:28.000Z | 2022-03-14T10:28:18.000Z | #ifndef PYTHONIC_NUMPY_ISNEGINF_HPP
#define PYTHONIC_NUMPY_ISNEGINF_HPP
#include "pythonic/include/numpy/isneginf.hpp"
#include "pythonic/utils/functor.hpp"
#include "pythonic/types/ndarray.hpp"
#include "pythonic/utils/numpy_traits.hpp"
#include "pythonic//numpy/isinf.hpp"
PYTHONIC_NS_BEGIN
namespace numpy
{
nam... | 21.096774 | 73 | 0.738532 | davidbrochart |
e6fe311388661078aa46e22620d25f38bdb567d7 | 1,434 | hpp | C++ | workspace/hw1/parking_lot.hpp | biomotion/eos-2020 | 0f457f72cbefe487808183994c7381f59c4e3235 | [
"MIT"
] | null | null | null | workspace/hw1/parking_lot.hpp | biomotion/eos-2020 | 0f457f72cbefe487808183994c7381f59c4e3235 | [
"MIT"
] | null | null | null | workspace/hw1/parking_lot.hpp | biomotion/eos-2020 | 0f457f72cbefe487808183994c7381f59c4e3235 | [
"MIT"
] | null | null | null | #ifndef PARKINGLOT_H
#define PARKINGLOT_H
#include<iostream>
#include<vector>
#include<map>
#include <sys/ioctl.h>
#include <fcntl.h>
#include "asm-arm/arch-pxa/lib/creator_pxa270_lcd.h"
#define PL_STATE_WELCOME 0
#define PL_STATE_MENU_PARKED 1
#define PL_STATE_MENU_NOT_RESERVED 2
#define PL_STATE_MENU_RESERVED 3
#de... | 22.061538 | 61 | 0.742678 | biomotion |
e6ff3dffcd27ace8ddd9f25a3988255f48674290 | 2,749 | hpp | C++ | lib/sfml/src/Object.hpp | benjyup/cpp_arcade | 4b755990b64156148e529da1c39efe8a8c0c5d1f | [
"MIT"
] | null | null | null | lib/sfml/src/Object.hpp | benjyup/cpp_arcade | 4b755990b64156148e529da1c39efe8a8c0c5d1f | [
"MIT"
] | null | null | null | lib/sfml/src/Object.hpp | benjyup/cpp_arcade | 4b755990b64156148e529da1c39efe8a8c0c5d1f | [
"MIT"
] | null | null | null | /*
** Object.hpp for cpp_arcade in /home/peixot_b/delivery/cpp_arcade/Object.hpp
**
** Made by benjamin.peixoto
** Login <benjamin.peixoto@epitech.eu>
**
** Started on Mon Apr 03 14:18:52 2017 benjamin.peixoto
// Last update Fri Apr 7 15:36:07 2017 Benjamin
*/
#ifndef Object_HPP_
#define Object_HPP_
#include <fst... | 30.544444 | 80 | 0.563478 | benjyup |
fc001a66094c076fdcc4703bf46f0f93f64ba66f | 8,406 | cpp | C++ | CMinus/CMinus/evaluator/comparison.cpp | benbraide/CMinusMinus | 6e32b825f192634538b3adde6ca579a548ca3f7e | [
"MIT"
] | null | null | null | CMinus/CMinus/evaluator/comparison.cpp | benbraide/CMinusMinus | 6e32b825f192634538b3adde6ca579a548ca3f7e | [
"MIT"
] | null | null | null | CMinus/CMinus/evaluator/comparison.cpp | benbraide/CMinusMinus | 6e32b825f192634538b3adde6ca579a548ca3f7e | [
"MIT"
] | null | null | null | #include "../type/string_type.h"
#include "../storage/global_storage.h"
#include "comparison.h"
cminus::evaluator::comparison::~comparison() = default;
cminus::evaluator::numeric_comparison::~numeric_comparison() = default;
cminus::evaluator::object::memory_ptr_type cminus::evaluator::numeric_comparison::evaluate(o... | 46.441989 | 188 | 0.786224 | benbraide |
fc05318d0135c7a78b86a34b868117c50b606c4b | 1,510 | hpp | C++ | core/include/bind/emu/edi_jump_caret.hpp | pit-ray/win-vind | 7386f6f7528d015ce7f1a5ae230d6e63f9492df9 | [
"MIT"
] | 731 | 2020-05-07T06:22:59.000Z | 2022-03-31T16:36:03.000Z | core/include/bind/emu/edi_jump_caret.hpp | pit-ray/win-vind | 7386f6f7528d015ce7f1a5ae230d6e63f9492df9 | [
"MIT"
] | 67 | 2020-07-20T19:46:42.000Z | 2022-03-31T15:34:47.000Z | core/include/bind/emu/edi_jump_caret.hpp | pit-ray/win-vind | 7386f6f7528d015ce7f1a5ae230d6e63f9492df9 | [
"MIT"
] | 15 | 2021-01-29T04:49:11.000Z | 2022-03-04T22:16:31.000Z | #ifndef _EDI_JUMP_CARET_HPP
#define _EDI_JUMP_CARET_HPP
#include "bind/binded_func_creator.hpp"
namespace vind
{
struct JumpCaretToBOL : public BindedFuncCreator<JumpCaretToBOL> {
explicit JumpCaretToBOL() ;
static void sprocess() ;
static void sprocess(NTypeLogger& parent_lgr) ;
s... | 33.555556 | 70 | 0.701325 | pit-ray |
fc06ee36a66ddf7bade121a13443131b79b2b12a | 2,007 | cpp | C++ | rt/rt/solids/quadric.cpp | DasNaCl/old-university-projects | af1c82afec4805ea672e0c353369035b394cb69d | [
"Apache-2.0"
] | null | null | null | rt/rt/solids/quadric.cpp | DasNaCl/old-university-projects | af1c82afec4805ea672e0c353369035b394cb69d | [
"Apache-2.0"
] | null | null | null | rt/rt/solids/quadric.cpp | DasNaCl/old-university-projects | af1c82afec4805ea672e0c353369035b394cb69d | [
"Apache-2.0"
] | null | null | null | #include "triangle.h"
#include <rt/bbox.h>
#include <rt/intersection.h>
#include <rt/solids/quadric.h>
namespace rt
{
Quadric::Quadric(
const Quadric::Coefficients& cof, CoordMapper* texMapper, Material* material)
: Solid(texMapper, material)
, cof(cof)
{
}
BBox Quadric::getBounds() const
{
// it's kind of h... | 29.086957 | 79 | 0.563029 | DasNaCl |
fc0936740b0faab94d140d6dd699662b0512bd2d | 13,602 | cpp | C++ | ciphers.cpp | KoSeAn97/Classic-Ciphers | c7c99913c4837425e45bdc86b5726b67eda82f7c | [
"Unlicense"
] | null | null | null | ciphers.cpp | KoSeAn97/Classic-Ciphers | c7c99913c4837425e45bdc86b5726b67eda82f7c | [
"Unlicense"
] | null | null | null | ciphers.cpp | KoSeAn97/Classic-Ciphers | c7c99913c4837425e45bdc86b5726b67eda82f7c | [
"Unlicense"
] | null | null | null | #include <iostream>
#include <list>
#include <algorithm>
#include <codecvt>
#include "ciphers.hpp"
#include "utf8.h"
#define ALPH_ENG 26
#define ALPH_RUS 32
#define SPACE_WC L' '
#define LEAST_FR L'X'
#define MX_S_ENG 5
#define MX_S_RUS 6
extern std::locale loc;
//std::wstring_convert< std::codecvt_utf8<wchar_t> > ... | 30.42953 | 112 | 0.597706 | KoSeAn97 |
fc0a255f8462c18869fcd6916641e5daa2a46017 | 835 | cpp | C++ | Gaina.cpp | Dimi-T/POO-Lab12 | 6c228e6356eeff5ba455d094cdbf6aa846a631c2 | [
"MIT"
] | null | null | null | Gaina.cpp | Dimi-T/POO-Lab12 | 6c228e6356eeff5ba455d094cdbf6aa846a631c2 | [
"MIT"
] | null | null | null | Gaina.cpp | Dimi-T/POO-Lab12 | 6c228e6356eeff5ba455d094cdbf6aa846a631c2 | [
"MIT"
] | null | null | null | #include "Gaina.h"
Gaina::Gaina():Hambar()
{
}
Gaina::Gaina(int nr_animale):Hambar(nr_animale)
{
}
Gaina::Gaina(const Gaina& obj)
{
*this = obj;
}
Gaina::~Gaina()
{
}
Gaina& Gaina::operator=(const Gaina& obj)
{
this->nr_animale = obj.nr_animale;
return *this;
}
void Gaina::afisare(ostr... | 14.910714 | 144 | 0.626347 | Dimi-T |
fc0aad87fcce1efcc823c926ae9f36f7a6a433bd | 1,130 | cpp | C++ | higan/sfc/expansion/expansion.cpp | 13824125580/higan | fbdd3f980b65412c362096579869ae76730e4118 | [
"Intel",
"ISC"
] | 38 | 2018-04-05T05:00:05.000Z | 2022-02-06T00:02:02.000Z | higan/sfc/expansion/expansion.cpp | 13824125580/higan | fbdd3f980b65412c362096579869ae76730e4118 | [
"Intel",
"ISC"
] | 1 | 2018-04-29T19:45:14.000Z | 2018-04-29T19:45:14.000Z | higan/sfc/expansion/expansion.cpp | 13824125580/higan | fbdd3f980b65412c362096579869ae76730e4118 | [
"Intel",
"ISC"
] | 8 | 2018-04-16T22:37:46.000Z | 2021-02-10T07:37:03.000Z | #include <sfc/sfc.hpp>
namespace SuperFamicom {
ExpansionPort expansionPort;
Expansion::Expansion() {
if(!handle()) create(Expansion::Enter, 1);
}
Expansion::~Expansion() {
scheduler.remove(*this);
}
auto Expansion::Enter() -> void {
while(true) scheduler.synchronize(), expansionPort.device->main();
}
auto ... | 20.925926 | 74 | 0.699115 | 13824125580 |
fc0ad633ccb12312afee8de445a4c5bb98dc3e39 | 289 | cpp | C++ | QtOrmTests/QueryModelsTest/D.cpp | rensfo/QtOrm | 46a16ee507cff4b1367b674420365137bf20aa9f | [
"MIT"
] | null | null | null | QtOrmTests/QueryModelsTest/D.cpp | rensfo/QtOrm | 46a16ee507cff4b1367b674420365137bf20aa9f | [
"MIT"
] | 1 | 2016-11-04T14:26:58.000Z | 2016-11-04T14:27:57.000Z | QtOrmTests/QueryModelsTest/D.cpp | rensfo/QtOrm | 46a16ee507cff4b1367b674420365137bf20aa9f | [
"MIT"
] | null | null | null | #include "D.h"
D::D(QObject *parent) : QObject(parent){
}
D::~D() {
}
QSharedPointer<KindA> D::getKindA() const {
return kindA;
}
void D::setKindA(QSharedPointer<KindA> value) {
kindA = value;
}
long D::getId() const {
return id;
}
void D::setId(long value) {
id = value;
}
| 11.56 | 47 | 0.619377 | rensfo |
fc0b2647e0f66ade4bdcfa23a7f3470c66dac983 | 313 | cpp | C++ | BCM2/src/main.cpp | Zardium/blockcraftmine2 | d2a570e3ab35c756ffaf2ac83849a5d878841f3f | [
"Apache-2.0"
] | null | null | null | BCM2/src/main.cpp | Zardium/blockcraftmine2 | d2a570e3ab35c756ffaf2ac83849a5d878841f3f | [
"Apache-2.0"
] | null | null | null | BCM2/src/main.cpp | Zardium/blockcraftmine2 | d2a570e3ab35c756ffaf2ac83849a5d878841f3f | [
"Apache-2.0"
] | null | null | null | // Local Headers
#include "pch.hpp"
#include "BCM2.hpp"
// System Headers
#include <glad/glad.h>
#include <GLFW/glfw3.h>
// Standard Headers
#include <cstdio>
#include <cstdlib>
#include <thread>
int main(int argc, char * argv[])
{
BlockCraftMine2::Game main_game;
main_game();
return EXIT_SUCCESS;
}
| 15.65 | 35 | 0.693291 | Zardium |
fc0db890723239f5296e51413438a65d55ace6f1 | 1,191 | cc | C++ | HDU/5095_Linearization_of_the_kernel_functions_in_SVM/5095.cc | pdszhh/ACM | 956b3d03a5d3f070ef24c940b7459f5cccb11d6c | [
"MIT"
] | 1 | 2019-05-05T03:51:20.000Z | 2019-05-05T03:51:20.000Z | HDU/5095_Linearization_of_the_kernel_functions_in_SVM/5095.cc | pdszhh/ACM | 956b3d03a5d3f070ef24c940b7459f5cccb11d6c | [
"MIT"
] | null | null | null | HDU/5095_Linearization_of_the_kernel_functions_in_SVM/5095.cc | pdszhh/ACM | 956b3d03a5d3f070ef24c940b7459f5cccb11d6c | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
int main() {
string str = "pqruvwxyz";
int t;
cin >> t;
while (t--) {
int num[10];
for (int i = 0; i < 10; ++i)
cin >> num[i];
bool flag = false;
for (int i = 0; i < 9; ++i) {
if (num[i... | 20.894737 | 42 | 0.280437 | pdszhh |
fc1765053d9939f891a86fa23721432cce0bc871 | 18,135 | cpp | C++ | core/variant_call.cpp | ZopharShinta/SegsEngine | 86d52c5b805e05e107594efd3358cabd694365f0 | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | core/variant_call.cpp | ZopharShinta/SegsEngine | 86d52c5b805e05e107594efd3358cabd694365f0 | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | core/variant_call.cpp | ZopharShinta/SegsEngine | 86d52c5b805e05e107594efd3358cabd694365f0 | [
"CC-BY-3.0",
"Apache-2.0",
"MIT"
] | null | null | null | /*************************************************************************/
/* variant_call.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... | 42.174419 | 163 | 0.636173 | ZopharShinta |
fc1786ec223203c0d0cc2c157a0077dd0a4cb4ea | 8,102 | cpp | C++ | tests/test_progress.cpp | jinyyu/kvd | f3a2f7944b037ee59f26e7e8bf69024686023fd0 | [
"MIT"
] | 2 | 2019-04-18T15:15:20.000Z | 2019-08-16T03:01:16.000Z | tests/test_progress.cpp | jinyyu/kvd | f3a2f7944b037ee59f26e7e8bf69024686023fd0 | [
"MIT"
] | null | null | null | tests/test_progress.cpp | jinyyu/kvd | f3a2f7944b037ee59f26e7e8bf69024686023fd0 | [
"MIT"
] | null | null | null | #include <gtest/gtest.h>
#include <raft-kv/raft/progress.h>
using namespace kv;
static bool cmp_InFlights(const InFlights& l, const InFlights& r) {
return l.start == r.start && l.count == r.count && l.size == r.size && l.buffer == r.buffer;
}
TEST(progress, add) {
InFlights in(10);
in.buffer.resize(10, 0);
... | 28.034602 | 121 | 0.618489 | jinyyu |
fc1efbfa3bb6422aee8616cbc642d6897baf3344 | 6,569 | cpp | C++ | src/llc.cpp | salessandri/libtins | 2cf61403e186cda93c48ffb4310ff46eddb8dd20 | [
"BSD-2-Clause"
] | null | null | null | src/llc.cpp | salessandri/libtins | 2cf61403e186cda93c48ffb4310ff46eddb8dd20 | [
"BSD-2-Clause"
] | null | null | null | src/llc.cpp | salessandri/libtins | 2cf61403e186cda93c48ffb4310ff46eddb8dd20 | [
"BSD-2-Clause"
] | 1 | 2020-11-12T21:19:10.000Z | 2020-11-12T21:19:10.000Z | /*
* Copyright (c) 2014, Matias Fontanini
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of ... | 27.60084 | 116 | 0.706348 | salessandri |
fc1f020afe3acad394af8c020777f964da209f1f | 2,527 | hh | C++ | psana/psana/peakFinder/peakfinder8.hh | ZhenghengLi/lcls2 | 94e75c6536954a58c8937595dcac295163aa1cdf | [
"BSD-3-Clause-LBNL"
] | 16 | 2017-11-09T17:10:56.000Z | 2022-03-09T23:03:10.000Z | psana/psana/peakFinder/peakfinder8.hh | ZhenghengLi/lcls2 | 94e75c6536954a58c8937595dcac295163aa1cdf | [
"BSD-3-Clause-LBNL"
] | 6 | 2017-12-12T19:30:05.000Z | 2020-07-09T00:28:33.000Z | psana/psana/peakFinder/peakfinder8.hh | ZhenghengLi/lcls2 | 94e75c6536954a58c8937595dcac295163aa1cdf | [
"BSD-3-Clause-LBNL"
] | 25 | 2017-09-18T20:02:43.000Z | 2022-03-27T22:27:42.000Z | // This file is part of OM.
//
// OM 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 3 of the License, or (at your option) any later version.
//
// OM is distributed in the hope that it will b... | 43.568966 | 86 | 0.734863 | ZhenghengLi |
fc1fb8db83e54cf86864f1c20ee6f31ee9243501 | 4,104 | cpp | C++ | XJ Contests/2020/12.3/T3/C.cpp | jinzhengyu1212/Clovers | 0efbb0d87b5c035e548103409c67914a1f776752 | [
"MIT"
] | null | null | null | XJ Contests/2020/12.3/T3/C.cpp | jinzhengyu1212/Clovers | 0efbb0d87b5c035e548103409c67914a1f776752 | [
"MIT"
] | null | null | null | XJ Contests/2020/12.3/T3/C.cpp | jinzhengyu1212/Clovers | 0efbb0d87b5c035e548103409c67914a1f776752 | [
"MIT"
] | null | null | null | /*
the vast starry sky,
bright for those who chase the light.
*/
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> pii;
#define mk make_pair
const int inf=(int)1e9;
const ll INF=(ll)5e18;
const int MOD=998244353;
int _abs(int x){return x<0 ? -x : x;}
int add(int x,int y){x+=y; ret... | 30.857143 | 98 | 0.504873 | jinzhengyu1212 |
fc21af3d3b8dc236074202a09ad8ffa9c9e2ae37 | 5,506 | cpp | C++ | test/ara/com/someip/pubsub/someip_pubsub_test.cpp | bigdark1024/Adaptive-AUTOSAR | b7ebbbd123761bf3f73b1ef425c14c7705c967f8 | [
"MIT"
] | 49 | 2021-07-26T14:28:55.000Z | 2022-03-29T03:33:32.000Z | test/ara/com/someip/pubsub/someip_pubsub_test.cpp | bigdark1024/Adaptive-AUTOSAR | b7ebbbd123761bf3f73b1ef425c14c7705c967f8 | [
"MIT"
] | 9 | 2021-07-26T14:35:20.000Z | 2022-02-05T15:49:43.000Z | test/ara/com/someip/pubsub/someip_pubsub_test.cpp | bigdark1024/Adaptive-AUTOSAR | b7ebbbd123761bf3f73b1ef425c14c7705c967f8 | [
"MIT"
] | 17 | 2021-09-03T15:38:27.000Z | 2022-03-27T15:48:01.000Z | #include <gtest/gtest.h>
#include "../../../../../src/ara/com/someip/pubsub/someip_pubsub_server.h"
#include "../../../../../src/ara/com/someip/pubsub/someip_pubsub_client.h"
#include "../../helper/mockup_network_layer.h"
namespace ara
{
namespace com
{
namespace someip
{
namespace ... | 38.236111 | 87 | 0.460407 | bigdark1024 |
fc235de156e8661ed509ddf134cd4c96efda6600 | 6,373 | cpp | C++ | source/core/util/h5json.cpp | jwuttke/daquiri-qpx | 6606f4efca9bbe460e25e511fd94a8277c7e1fe6 | [
"BSD-2-Clause"
] | 2 | 2018-03-25T05:31:44.000Z | 2019-07-25T05:17:51.000Z | source/core/util/h5json.cpp | jwuttke/daquiri-qpx | 6606f4efca9bbe460e25e511fd94a8277c7e1fe6 | [
"BSD-2-Clause"
] | 158 | 2017-11-16T09:20:24.000Z | 2022-03-28T11:39:43.000Z | source/core/util/h5json.cpp | martukas/daquiri-qpx | 6606f4efca9bbe460e25e511fd94a8277c7e1fe6 | [
"BSD-2-Clause"
] | 2 | 2018-09-20T08:29:21.000Z | 2020-08-04T18:34:50.000Z | #include <core/util/h5json.h>
std::string vector_idx_minlen(size_t idx, size_t max)
{
size_t minlen = std::to_string(max).size();
std::string name = std::to_string(idx);
if (name.size() < minlen)
name = std::string(minlen - name.size(), '0').append(name);
return name;
}
namespace hdf5 {
node::Group requ... | 28.07489 | 76 | 0.571473 | jwuttke |
fc23ec946dd1aae6ca6656c444d1030e2a5eb347 | 13,013 | hpp | C++ | lockfree/AsyncObject.hpp | unevens/lockfree-async | 57009fc5270d3b42b8ff8c57c6c2961cdcf299b1 | [
"MIT"
] | 2 | 2020-04-06T01:50:26.000Z | 2021-03-18T17:19:36.000Z | lockfree/AsyncObject.hpp | unevens/lockfree-async | 57009fc5270d3b42b8ff8c57c6c2961cdcf299b1 | [
"MIT"
] | null | null | null | lockfree/AsyncObject.hpp | unevens/lockfree-async | 57009fc5270d3b42b8ff8c57c6c2961cdcf299b1 | [
"MIT"
] | null | null | null | /*
Copyright 2021 Dario Mambro
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublic... | 29.308559 | 120 | 0.694229 | unevens |
fc253b679201b7f90ebcf825bc71e1a5df0c375d | 1,688 | cpp | C++ | jni/chipmunk/binding/com_wiyun_engine_chipmunk_Circle.cpp | zchajax/WiEngine | ea2fa297f00aa5367bb5b819d6714ac84a8a8e25 | [
"MIT"
] | 39 | 2015-01-23T10:01:31.000Z | 2021-06-10T03:01:18.000Z | jni/chipmunk/binding/com_wiyun_engine_chipmunk_Circle.cpp | luckypen/WiEngine | 7e80641fe15a77a2fc43db90f15dad6aa2c2860a | [
"MIT"
] | 1 | 2015-04-15T08:07:47.000Z | 2015-04-15T08:07:47.000Z | jni/chipmunk/binding/com_wiyun_engine_chipmunk_Circle.cpp | luckypen/WiEngine | 7e80641fe15a77a2fc43db90f15dad6aa2c2860a | [
"MIT"
] | 20 | 2015-01-20T07:36:10.000Z | 2019-09-15T01:02:19.000Z | #include <jni.h>
#include "com_wiyun_engine_chipmunk_Circle.h"
#include "chipmunk.h"
extern jfieldID g_fid_Body_mPointer;
extern jfieldID g_fid_Shape_mPointer;
JNIEXPORT void JNICALL Java_com_wiyun_engine_chipmunk_Circle_init(JNIEnv * env, jobject thiz, jobject body, jfloat radius, jfloat centerX, jfloat cen... | 38.363636 | 157 | 0.773697 | zchajax |
fc25be88f5d97fcf8a952c365d18d58944675ed7 | 3,891 | cc | C++ | chrome/browser/interstitials/security_interstitial_page.cc | xzhan96/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2021-01-07T18:51:03.000Z | 2021-01-07T18:51:03.000Z | chrome/browser/interstitials/security_interstitial_page.cc | emilio/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | chrome/browser/interstitials/security_interstitial_page.cc | emilio/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/interstitials/security_interstitial_page.h"
#include <utility>
#include "base/i18n/rtl.h"
#include "base/metrics/histogram_... | 35.054054 | 80 | 0.782575 | xzhan96 |
fc28a8069f03f3aa0f570a80beb5d220ed4611ae | 4,055 | cc | C++ | third_party/blink/renderer/core/page/scrolling/fragment_anchor.cc | chromium/chromium | df46e572c3449a4b108d6e02fbe4f6d24cf98381 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 14,668 | 2015-01-01T01:57:10.000Z | 2022-03-31T23:33:32.000Z | third_party/blink/renderer/core/page/scrolling/fragment_anchor.cc | chromium/chromium | df46e572c3449a4b108d6e02fbe4f6d24cf98381 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 86 | 2015-10-21T13:02:42.000Z | 2022-03-14T07:50:50.000Z | third_party/blink/renderer/core/page/scrolling/fragment_anchor.cc | chromium/chromium | df46e572c3449a4b108d6e02fbe4f6d24cf98381 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 5,941 | 2015-01-02T11:32:21.000Z | 2022-03-31T16:35:46.000Z | // Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "third_party/blink/renderer/core/page/scrolling/fragment_anchor.h"
#include "base/metrics/histogram_macros.h"
#include "third_party/blink/public... | 42.239583 | 92 | 0.759063 | chromium |
fc2a0f3392b9794e99344c8fc4ef7941b7e46778 | 678 | cc | C++ | net/socket/ssl_error_params.cc | Scopetta197/chromium | b7bf8e39baadfd9089de2ebdc0c5d982de4a9820 | [
"BSD-3-Clause"
] | 212 | 2015-01-31T11:55:58.000Z | 2022-02-22T06:35:11.000Z | net/socket/ssl_error_params.cc | 1065672644894730302/Chromium | 239dd49e906be4909e293d8991e998c9816eaa35 | [
"BSD-3-Clause"
] | 5 | 2015-03-27T14:29:23.000Z | 2019-09-25T13:23:12.000Z | net/socket/ssl_error_params.cc | 1065672644894730302/Chromium | 239dd49e906be4909e293d8991e998c9816eaa35 | [
"BSD-3-Clause"
] | 221 | 2015-01-07T06:21:24.000Z | 2022-02-11T02:51:12.000Z | // Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/socket/ssl_error_params.h"
#include "base/values.h"
namespace net {
SSLErrorParams::SSLErrorParams(int net_error, int ssl_lib_error)
... | 25.111111 | 73 | 0.735988 | Scopetta197 |
fc2f6c79898723b87a65d4377f6d2e7edc089055 | 1,141 | cpp | C++ | src/_leetcode/leet_m03.cpp | turesnake/leetPractice | a87b9b90eb8016038d7e5d3ad8e50e4ceb54d69b | [
"MIT"
] | null | null | null | src/_leetcode/leet_m03.cpp | turesnake/leetPractice | a87b9b90eb8016038d7e5d3ad8e50e4ceb54d69b | [
"MIT"
] | null | null | null | src/_leetcode/leet_m03.cpp | turesnake/leetPractice | a87b9b90eb8016038d7e5d3ad8e50e4ceb54d69b | [
"MIT"
] | null | null | null | /*
* ====================== leet_m03.cpp ==========================
* -- tpr --
* CREATE -- 2020.05.18
* MODIFY --
* ----------------------------------------------------------
* 面试题03. 数组中重复的数字
*/
#include "in... | 18.403226 | 65 | 0.38475 | turesnake |
fc3014e5dde343a76927afbb470a15dbf80d8994 | 3,476 | cpp | C++ | src/client/RigidBodySys.cpp | Naftoreiclag/VS8C | 9dc68c88c0ad02408609b3cfa834a48ad5c256a8 | [
"Apache-2.0"
] | null | null | null | src/client/RigidBodySys.cpp | Naftoreiclag/VS8C | 9dc68c88c0ad02408609b3cfa834a48ad5c256a8 | [
"Apache-2.0"
] | null | null | null | src/client/RigidBodySys.cpp | Naftoreiclag/VS8C | 9dc68c88c0ad02408609b3cfa834a48ad5c256a8 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2015 James Fong
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 writ... | 34.078431 | 122 | 0.737342 | Naftoreiclag |
fc310e984915f553272a2c1f598190737294767f | 885 | hpp | C++ | src/TextWidget.hpp | marcogillies/GUIWidgetsInheritanceExample | de41415d1b923c10931e87be5859c4936e207bd7 | [
"MIT"
] | null | null | null | src/TextWidget.hpp | marcogillies/GUIWidgetsInheritanceExample | de41415d1b923c10931e87be5859c4936e207bd7 | [
"MIT"
] | null | null | null | src/TextWidget.hpp | marcogillies/GUIWidgetsInheritanceExample | de41415d1b923c10931e87be5859c4936e207bd7 | [
"MIT"
] | null | null | null | //
// TextWidget.hpp
// GUIWidgets
//
// Created by Marco Gillies on 13/03/2017.
//
//
#ifndef TextWidget_hpp
#define TextWidget_hpp
#include <string>
#include "Widget.hpp"
class ofTrueTypeFont;
/*
* This is a base class for Widgets that
* contain text.
* It stores a string and a font to draw
* the text... | 22.125 | 87 | 0.688136 | marcogillies |
fc35608b9c7898fcf51a44b33fbcd7c9b5e9be78 | 4,718 | hpp | C++ | crogine/include/crogine/core/State.hpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 41 | 2017-08-29T12:14:36.000Z | 2022-02-04T23:49:48.000Z | crogine/include/crogine/core/State.hpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 11 | 2017-09-02T15:32:45.000Z | 2021-12-27T13:34:56.000Z | crogine/include/crogine/core/State.hpp | fallahn/crogine | f6cf3ade1f4e5de610d52e562bf43e852344bca0 | [
"FTL",
"Zlib"
] | 5 | 2020-01-25T17:51:45.000Z | 2022-03-01T05:20:30.000Z | /*-----------------------------------------------------------------------
Matt Marchant 2017 - 2020
http://trederia.blogspot.com
crogine - Zlib license.
This software is provided 'as-is', without any express or
implied warranty.In no event will the authors be held
liable for any damages arising from the use of this ... | 30.43871 | 85 | 0.625265 | fallahn |
fc3846c1ee06b5620458de9307ce7a316136d6b6 | 4,105 | cpp | C++ | qubus/src/performance_models/unified_performance_model.cpp | qubusproject/Qubus | 0feb8d6df00459c5af402545dbe7c82ee3ec4b7c | [
"BSL-1.0"
] | null | null | null | qubus/src/performance_models/unified_performance_model.cpp | qubusproject/Qubus | 0feb8d6df00459c5af402545dbe7c82ee3ec4b7c | [
"BSL-1.0"
] | null | null | null | qubus/src/performance_models/unified_performance_model.cpp | qubusproject/Qubus | 0feb8d6df00459c5af402545dbe7c82ee3ec4b7c | [
"BSL-1.0"
] | null | null | null | #include <hpx/config.hpp>
#include <qubus/performance_models/unified_performance_model.hpp>
#include <qubus/performance_models/regression_performance_model.hpp>
#include <qubus/performance_models/simple_statistical_performance_model.hpp>
#include <hpx/include/local_lcos.hpp>
#include <qubus/util/assert.hpp>
#inclu... | 32.322835 | 100 | 0.647259 | qubusproject |
fc38c32ad236fe64f0c1747f769a287e4139fe0c | 1,611 | cpp | C++ | cmdstan/stan/lib/stan_math/test/unit/math/prim/arr/err/check_finite_test.cpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | cmdstan/stan/lib/stan_math/test/unit/math/prim/arr/err/check_finite_test.cpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | cmdstan/stan/lib/stan_math/test/unit/math/prim/arr/err/check_finite_test.cpp | yizhang-cae/torsten | dc82080ca032325040844cbabe81c9a2b5e046f9 | [
"BSD-3-Clause"
] | null | null | null | #include <stan/math/prim/arr.hpp>
#include <gtest/gtest.h>
using stan::math::check_finite;
// ---------- check_finite: vector tests ----------
TEST(ErrorHandlingScalar,CheckFinite_Vector) {
const char* function = "check_finite";
std::vector<double> x;
x.clear();
x.push_back (-1);
x.push_back (0);
x.pu... | 27.305085 | 66 | 0.66915 | yizhang-cae |
fc39f8dfa8e2c14eb979d3dcc2e98825f4f00f24 | 3,084 | cpp | C++ | source/tracker/tracker.cpp | ponpiste/BitTorrent | cad7ac1af64ac3075ee1c7b0516458612b1f9a4c | [
"MIT"
] | 1 | 2022-01-19T15:25:31.000Z | 2022-01-19T15:25:31.000Z | source/tracker/tracker.cpp | ponpiste/BitTorrent | cad7ac1af64ac3075ee1c7b0516458612b1f9a4c | [
"MIT"
] | null | null | null | source/tracker/tracker.cpp | ponpiste/BitTorrent | cad7ac1af64ac3075ee1c7b0516458612b1f9a4c | [
"MIT"
] | 1 | 2020-10-12T01:50:20.000Z | 2020-10-12T01:50:20.000Z | #include "tracker/tracker.h"
#include <stdlib.h>
#include <time.h>
#include <vector>
#include "tracker/udp.h"
#include "tracker/url.h"
#include <algorithm>
#include <stdexcept>
#include "download/peer_id.h"
#include "parsing/bencode.h"
using namespace std;
buffer tracker::build_conn_req_udp() {
const int SIZE_CONN... | 19.396226 | 82 | 0.645266 | ponpiste |
fc3a4806e7045c1da477929085774722c2fe0e4b | 583 | cpp | C++ | geometria/orden.radial.cpp | AlgorithmCR/eldiego | f1c01061467ce8a50a5e6134ab6ea09c9bcd7e0f | [
"MIT"
] | 31 | 2015-11-15T19:24:17.000Z | 2018-09-27T01:45:24.000Z | geometria/orden.radial.cpp | AlgorithmCR/eldiego | f1c01061467ce8a50a5e6134ab6ea09c9bcd7e0f | [
"MIT"
] | 23 | 2015-09-23T15:56:32.000Z | 2016-05-04T02:48:16.000Z | geometria/orden.radial.cpp | AlgorithmCR/eldiego | f1c01061467ce8a50a5e6134ab6ea09c9bcd7e0f | [
"MIT"
] | 7 | 2016-08-25T21:29:56.000Z | 2018-07-22T03:39:51.000Z | struct Cmp{//orden total de puntos alrededor de un punto r
pto r;
Cmp(pto r):r(r) {}
int cuad(const pto &a) const{
if(a.x > 0 && a.y >= 0)return 0;
if(a.x <= 0 && a.y > 0)return 1;
if(a.x < 0 && a.y <= 0)return 2;
if(a.x >= 0 && a.y < 0)return 3;
assert(a.x ==0 && a.y==0);
return -1;
}
bool cmp(const p... | 27.761905 | 62 | 0.548885 | AlgorithmCR |
fc3b5850c60e31b70d44ef4db6d74beb15bdeb0a | 6,732 | cc | C++ | E/src/texgen/noise.cc | vaginessa/Ctrl-Alt-Test | b981ebdbc6b0678f004c4052d70ebb56af2d89a0 | [
"Apache-2.0"
] | 114 | 2015-04-14T10:30:05.000Z | 2021-06-11T02:57:59.000Z | E/src/texgen/noise.cc | vaginessa/Ctrl-Alt-Test | b981ebdbc6b0678f004c4052d70ebb56af2d89a0 | [
"Apache-2.0"
] | null | null | null | E/src/texgen/noise.cc | vaginessa/Ctrl-Alt-Test | b981ebdbc6b0678f004c4052d70ebb56af2d89a0 | [
"Apache-2.0"
] | 11 | 2015-07-26T02:11:32.000Z | 2020-04-02T21:06:15.000Z | //=============================================================================
//
// Perlin Noise
//
//=============================================================================
// Improved Perlin noise.
// Original Perlin noise implementation can be found at :
// http://mrl.nyu.edu/~perlin/doc/oscar.html#noise
#... | 36.389189 | 91 | 0.579323 | vaginessa |
fc3dc1daa50e1b7aff83bdc001d2deeded71d3a8 | 7,478 | cpp | C++ | base/string/format/scan_test.cpp | hjinlin/toft | ebf3ebb3d37e9a59e27b197cefe8fdc3e8810441 | [
"BSD-3-Clause"
] | 264 | 2015-01-03T11:50:17.000Z | 2022-03-17T02:38:34.000Z | base/string/format/scan_test.cpp | hjinlin/toft | ebf3ebb3d37e9a59e27b197cefe8fdc3e8810441 | [
"BSD-3-Clause"
] | 12 | 2015-04-27T15:17:34.000Z | 2021-05-01T04:31:18.000Z | base/string/format/scan_test.cpp | hjinlin/toft | ebf3ebb3d37e9a59e27b197cefe8fdc3e8810441 | [
"BSD-3-Clause"
] | 128 | 2015-02-07T18:13:10.000Z | 2022-02-21T14:24:14.000Z | // Copyright (c) 2013, The TOFT Authors.
// All rights reserved.
//
// Author: CHEN Feng <chen3feng@gmail.com>
// Created: 2013-02-06
#include "toft/base/string/format/scan.h"
#include <math.h>
#include <stdint.h>
#include "thirdparty/gtest/gtest.h"
namespace toft {
TEST(Scan, Escape)
{
int n = 0;
ASSERT_E... | 23.815287 | 75 | 0.572078 | hjinlin |
fc402bfffe5fe870621af77a6755ff10bb13fb5e | 49 | hpp | C++ | src/boost_type_traits_remove_volatile.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 10 | 2018-03-17T00:58:42.000Z | 2021-07-06T02:48:49.000Z | src/boost_type_traits_remove_volatile.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 2 | 2021-03-26T15:17:35.000Z | 2021-05-20T23:55:08.000Z | src/boost_type_traits_remove_volatile.hpp | miathedev/BoostForArduino | 919621dcd0c157094bed4df752b583ba6ea6409e | [
"BSL-1.0"
] | 4 | 2019-05-28T21:06:37.000Z | 2021-07-06T03:06:52.000Z | #include <boost/type_traits/remove_volatile.hpp>
| 24.5 | 48 | 0.836735 | miathedev |
fc42cc426a7d718a5871c0aecd63bdaea0358ab4 | 3,927 | hpp | C++ | 3rdparty/GPSTk/ext/lib/Geomatics/SolarPosition.hpp | mfkiwl/ICE | e660d031bb1bcea664db1de4946fd8781be5b627 | [
"MIT"
] | 50 | 2019-10-12T01:22:20.000Z | 2022-02-15T23:28:26.000Z | 3rdparty/GPSTk/ext/lib/Geomatics/SolarPosition.hpp | wuyou33/Enabling-Robust-State-Estimation-through-Measurement-Error-Covariance-Adaptation | 2f1ff054b7c5059da80bb3b2f80c05861a02cc36 | [
"MIT"
] | null | null | null | 3rdparty/GPSTk/ext/lib/Geomatics/SolarPosition.hpp | wuyou33/Enabling-Robust-State-Estimation-through-Measurement-Error-Covariance-Adaptation | 2f1ff054b7c5059da80bb3b2f80c05861a02cc36 | [
"MIT"
] | 14 | 2019-11-05T01:50:29.000Z | 2021-08-06T06:23:44.000Z | //============================================================================
//
// This file is part of GPSTk, the GPS Toolkit.
//
// The GPSTk 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; ei... | 42.225806 | 86 | 0.627451 | mfkiwl |
fc430bc77094a8d881350a93ed4f6b6d5b3d676b | 2,238 | cpp | C++ | source/parse_globule.cpp | cloudy-astrophysics/cloudy_lfs | aed1d6d78042b93f17ea497a37b35a524f3d3e2e | [
"Zlib"
] | null | null | null | source/parse_globule.cpp | cloudy-astrophysics/cloudy_lfs | aed1d6d78042b93f17ea497a37b35a524f3d3e2e | [
"Zlib"
] | null | null | null | source/parse_globule.cpp | cloudy-astrophysics/cloudy_lfs | aed1d6d78042b93f17ea497a37b35a524f3d3e2e | [
"Zlib"
] | null | null | null | /* This file is part of Cloudy and is copyright (C)1978-2019 by Gary J. Ferland and
* others. For conditions of distribution and use see copyright notice in license.txt */
/*ParseGlobule parse parameters off the globule command */
#include "cddefines.h"
#include "radius.h"
#include "dense.h"
#include "optimize.h"
#in... | 29.064935 | 89 | 0.699285 | cloudy-astrophysics |
fc43606c53cd95afd2b5f676978af82cbd02d44a | 46,812 | cpp | C++ | tools/multiCamRemote/src/multicastReceive.cpp | Falcons-Robocup/code | 2281a8569e7f11cbd3238b7cc7341c09e2e16249 | [
"Apache-2.0"
] | 2 | 2021-01-15T13:27:19.000Z | 2021-08-04T08:40:52.000Z | tools/multiCamRemote/src/multicastReceive.cpp | Falcons-Robocup/code | 2281a8569e7f11cbd3238b7cc7341c09e2e16249 | [
"Apache-2.0"
] | null | null | null | tools/multiCamRemote/src/multicastReceive.cpp | Falcons-Robocup/code | 2281a8569e7f11cbd3238b7cc7341c09e2e16249 | [
"Apache-2.0"
] | 5 | 2018-05-01T10:39:31.000Z | 2022-03-25T03:02:35.000Z | // Copyright 2017-2019 Andre Pool
// SPDX-License-Identifier: Apache-2.0
#include <arpa/inet.h>
#include <errno.h>
#include <netdb.h>
#include <pwd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include "multicastReceive.hpp"
// #define READFROMFILE
using namespace std;
multic... | 39.3709 | 151 | 0.68318 | Falcons-Robocup |
fc4387bcd7722c348014d92ee2580001bd33c40a | 2,894 | cpp | C++ | Engine/posttoantigate.cpp | vadkasevas/BAS | 657f62794451c564c77d6f92b2afa9f5daf2f517 | [
"MIT"
] | 302 | 2016-05-20T12:55:23.000Z | 2022-03-29T02:26:14.000Z | Engine/posttoantigate.cpp | chulakshana/BAS | 955f5a41bd004bcdd7d19725df6ab229b911c09f | [
"MIT"
] | 9 | 2016-07-21T09:04:50.000Z | 2021-05-16T07:34:42.000Z | Engine/posttoantigate.cpp | chulakshana/BAS | 955f5a41bd004bcdd7d19725df6ab229b911c09f | [
"MIT"
] | 113 | 2016-05-18T07:48:37.000Z | 2022-02-26T12:59:39.000Z | #include "posttoantigate.h"
#include "every_cpp.h"
#include <QMap>
#include <QPixmap>
#include <QBuffer>
#include <QMapIterator>
namespace BrowserAutomationStudioFramework
{
PostToAntigate::PostToAntigate(QObject *parent) :
QObject(parent)
{
}
void PostToAntigate::Post(const QString& id,const ... | 25.165217 | 177 | 0.533172 | vadkasevas |
fc4540e3a67875ca07a322da13529cbacca1c3bb | 4,461 | cpp | C++ | Source/mysql/main.cpp | inkneko-software/dao_generator | 88f000622677a355a2807750c59dff73913777e9 | [
"MIT"
] | null | null | null | Source/mysql/main.cpp | inkneko-software/dao_generator | 88f000622677a355a2807750c59dff73913777e9 | [
"MIT"
] | null | null | null | Source/mysql/main.cpp | inkneko-software/dao_generator | 88f000622677a355a2807750c59dff73913777e9 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <fstream>
#include <vector>
#include <map>
#include <boost/filesystem.hpp>
#include <boost/regex.hpp>
using namespace std;
using namespace boost::filesystem;
using namespace boost;
void tableObjectGenerator(const path& output, pair<string, vector<pair<string, string>>> ta... | 27.537037 | 123 | 0.557498 | inkneko-software |
fc4d88c4927883c6fde339dada02ad66b681f371 | 7,238 | cpp | C++ | RTPS/Factory/RtpsFactory.cpp | intact-software-systems/cpp-software-patterns | e463fc7eeba4946b365b5f0b2eecf3da0f4c895b | [
"MIT"
] | 1 | 2020-09-03T07:23:11.000Z | 2020-09-03T07:23:11.000Z | RTPS/Factory/RtpsFactory.cpp | intact-software-systems/cpp-software-patterns | e463fc7eeba4946b365b5f0b2eecf3da0f4c895b | [
"MIT"
] | null | null | null | RTPS/Factory/RtpsFactory.cpp | intact-software-systems/cpp-software-patterns | e463fc7eeba4946b365b5f0b2eecf3da0f4c895b | [
"MIT"
] | null | null | null | /*
* RtpsFactory.cpp
*
* Created on: Mar 25, 2012
* Author: knuthelv
*/
#include"RTPS/Factory/RtpsFactory.h"
#include"RTPS/Stateless/IncludeLibs.h"
#include"RTPS/Stateful/IncludeLibs.h"
#include"RTPS/Machine/IncludeLibs.h"
namespace RTPS
{
/*----------------------------------------------------------------... | 41.36 | 175 | 0.564797 | intact-software-systems |
fc4e1df538dae331072c04d44a82b268a0125a77 | 4,389 | cpp | C++ | src/core/lib/core_reflection/unit_test/test_methods.cpp | wgsyd/wgtf | d8cacb43e2c5d40080d33c18a8c2f5bd27d21bed | [
"BSD-3-Clause"
] | 28 | 2016-06-03T05:28:25.000Z | 2019-02-14T12:04:31.000Z | src/core/lib/core_reflection/unit_test/test_methods.cpp | karajensen/wgtf | 740397bcfdbc02bc574231579d57d7c9cd5cc26d | [
"BSD-3-Clause"
] | null | null | null | src/core/lib/core_reflection/unit_test/test_methods.cpp | karajensen/wgtf | 740397bcfdbc02bc574231579d57d7c9cd5cc26d | [
"BSD-3-Clause"
] | 14 | 2016-06-03T05:52:27.000Z | 2019-03-21T09:56:03.000Z | #include "pch.hpp"
#include "core_reflection/interfaces/i_class_definition.hpp"
#include "core_reflection/reflected_property.hpp"
#include "core_reflection/reflected_object.hpp"
#include "core_reflection/reflection_macros.hpp"
#include "core_reflection/property_accessor.hpp"
#include "core_reflection/metadata/meta_typ... | 32.511111 | 80 | 0.749373 | wgsyd |
fc4e5bb6b4221eb7761eeb3586ed0dd6f41406ba | 1,247 | hpp | C++ | bulletgba/generator/data/code/__system/downline-rapidlaser.hpp | pqrs-org/BulletGBA | a294007902970242b496f2528b4762cfef22bc86 | [
"Unlicense"
] | 5 | 2020-03-24T07:44:49.000Z | 2021-08-30T14:43:31.000Z | bulletgba/generator/data/code/__system/downline-rapidlaser.hpp | pqrs-org/BulletGBA | a294007902970242b496f2528b4762cfef22bc86 | [
"Unlicense"
] | null | null | null | bulletgba/generator/data/code/__system/downline-rapidlaser.hpp | pqrs-org/BulletGBA | a294007902970242b496f2528b4762cfef22bc86 | [
"Unlicense"
] | null | null | null | #ifndef GENERATED_67db08201e650091d0f4debd02149456_HPP
#define GENERATED_67db08201e650091d0f4debd02149456_HPP
#include "bullet.hpp"
void stepfunc_4dc4ca4ba154013f98fc63fdd20fbaf2_e52a135e83b87469f9e45b4e6e7c5ead(BulletInfo *p);
void stepfunc_c4d4e858c15e560b23a1b1a6a8131982_e52a135e83b87469f9e45b4e6e7c5ead(Bullet... | 54.217391 | 104 | 0.907779 | pqrs-org |
fc4e8262880bafc08d6758cf504d733aa34672ff | 235 | cpp | C++ | baekjoon/10950.cpp | 3-24/Competitive-Programming | 8cb3b85bf89db2c173cb0b136de27f2983f335fc | [
"MIT"
] | 1 | 2019-07-15T00:27:37.000Z | 2019-07-15T00:27:37.000Z | baekjoon/10950.cpp | 3-24/Competitive-Programming | 8cb3b85bf89db2c173cb0b136de27f2983f335fc | [
"MIT"
] | null | null | null | baekjoon/10950.cpp | 3-24/Competitive-Programming | 8cb3b85bf89db2c173cb0b136de27f2983f335fc | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
int a,b,t;
cin >> t;
while(t--){
cin >> a >> b;
cout << a+b << endl;
}
return 0;
} | 15.666667 | 37 | 0.493617 | 3-24 |
fc4f21ad5ce4d3d35e574b80a2d54094e6e26222 | 838 | cpp | C++ | src/FileIO/ParserTools.cpp | tizian/Cendric2 | 5b0438c73a751bcc0d63c3af839af04ab0fb21a3 | [
"MIT"
] | 279 | 2015-05-06T19:04:07.000Z | 2022-03-21T21:33:38.000Z | src/FileIO/ParserTools.cpp | tizian/Cendric2 | 5b0438c73a751bcc0d63c3af839af04ab0fb21a3 | [
"MIT"
] | 222 | 2016-10-26T15:56:25.000Z | 2021-10-03T15:30:18.000Z | src/FileIO/ParserTools.cpp | tizian/Cendric2 | 5b0438c73a751bcc0d63c3af839af04ab0fb21a3 | [
"MIT"
] | 49 | 2015-10-01T21:23:03.000Z | 2022-03-19T20:11:31.000Z | #include "FileIO/ParserTools.h"
std::vector<Condition> ParserTools::parseConditions(const std::string& toParse_, bool negativeConditions) {
std::vector<Condition> conditions;
std::string toParse = toParse_;
size_t pos;
while (!toParse.empty()) {
if ((pos = toParse.find(",")) == std::string::npos) {
return c... | 23.942857 | 107 | 0.686158 | tizian |
fc516cf44e2eeb7a5d5d050059b0dac2987eef36 | 191 | inl | C++ | admin/wmi/wbem/tools/locstudioparser/inc/locutil/logfile.inl | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | admin/wmi/wbem/tools/locstudioparser/inc/locutil/logfile.inl | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | admin/wmi/wbem/tools/locstudioparser/inc/locutil/logfile.inl | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | /*++
Copyright (C) 1996-1999 Microsoft Corporation
Module Name:
LOGFILE.INL
History:
--*/
inline
CLogFile::CLogFile()
{}
inline
CLogFile::~CLogFile()
{}
| 7.958333 | 46 | 0.570681 | npocmaka |
fc53bf9655ae0958e75c77a71b612a507c5d3ccc | 3,951 | cpp | C++ | src/main.cpp | FelipeCRamos/amaze | ce483a246025b3bf6bb9a76b4db87f13aac9e048 | [
"MIT"
] | null | null | null | src/main.cpp | FelipeCRamos/amaze | ce483a246025b3bf6bb9a76b4db87f13aac9e048 | [
"MIT"
] | null | null | null | src/main.cpp | FelipeCRamos/amaze | ce483a246025b3bf6bb9a76b4db87f13aac9e048 | [
"MIT"
] | null | null | null | #include <iostream>
#include <sstream>
#include <fstream>
#include <string>
#include <iomanip>
#include <cassert>
#include <thread>
#include <vector>
#include <map>
#include "maze.hpp"
void separator(){
const char SEP_CHAR = '-';
const size_t SEP_FILL = 80;
std::cout <<
"\e[2m" <<
std::setfill(SEP_CHAR) <<
s... | 24.239264 | 75 | 0.595039 | FelipeCRamos |
fc541603237e69c47bb97722a3d5a03620436202 | 579 | cc | C++ | tools/baulk/commands.unzip.cc | dandycheung/baulk | f0ea046bf19e494510ae61cc4633fc38877c53e4 | [
"MIT"
] | null | null | null | tools/baulk/commands.unzip.cc | dandycheung/baulk | f0ea046bf19e494510ae61cc4633fc38877c53e4 | [
"MIT"
] | null | null | null | tools/baulk/commands.unzip.cc | dandycheung/baulk | f0ea046bf19e494510ae61cc4633fc38877c53e4 | [
"MIT"
] | null | null | null | ///
#include "baulk.hpp"
#include "commands.hpp"
#include <bela/match.hpp>
#include <baulk/archive.hpp>
#include "extractor.hpp"
namespace baulk::commands {
void usage_unzip() {
bela::FPrintF(stderr, LR"(Usage: baulk unzip [zipfile] [destination]
Extract compressed files in a ZIP archive.
Example:
baulk unzip cur... | 20.678571 | 70 | 0.704663 | dandycheung |
fc542baa8ba1b139a29ffd0a31cddb8da15a8592 | 3,230 | cpp | C++ | LuoguCodes/P3275.cpp | Anguei/OI-Codes | 0ef271e9af0619d4c236e314cd6d8708d356536a | [
"MIT"
] | null | null | null | LuoguCodes/P3275.cpp | Anguei/OI-Codes | 0ef271e9af0619d4c236e314cd6d8708d356536a | [
"MIT"
] | null | null | null | LuoguCodes/P3275.cpp | Anguei/OI-Codes | 0ef271e9af0619d4c236e314cd6d8708d356536a | [
"MIT"
] | null | null | null | // luogu-judger-enable-o2
#include <cmath>
#include <cctype>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <set>
#include <map>
#include <stack>
#include <queue>
#include <string>
#include <vector>
#include <numeric>
#include <iomanip>
#include <iostream>
#include <algorithm>
#define fn "gin"
#define... | 29.363636 | 129 | 0.464706 | Anguei |
fc579ca8240ee5300fd9cf3cda6f37fd6e6c3bdb | 3,642 | cpp | C++ | rmf_traffic/test/unit/schedule/test_Region.cpp | 0to1/rmf_traffic | 0e641f779e9c7e6d69c316e905df5a51a2c124e1 | [
"Apache-2.0"
] | 10 | 2021-04-14T07:01:56.000Z | 2022-02-21T02:26:58.000Z | rmf_traffic/test/unit/schedule/test_Region.cpp | 0to1/rmf_traffic | 0e641f779e9c7e6d69c316e905df5a51a2c124e1 | [
"Apache-2.0"
] | 63 | 2021-03-10T06:06:13.000Z | 2022-03-25T08:47:07.000Z | rmf_traffic/test/unit/schedule/test_Region.cpp | 0to1/rmf_traffic | 0e641f779e9c7e6d69c316e905df5a51a2c124e1 | [
"Apache-2.0"
] | 10 | 2021-03-17T02:52:14.000Z | 2022-02-21T02:27:02.000Z | /*
* Copyright (C) 2021 Open Source Robotics Foundation
*
* 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 appl... | 28.232558 | 75 | 0.658155 | 0to1 |
fc585ecf2c219c09d0f397b31f280885d7861974 | 940 | cc | C++ | basic/mem_leak_tools/02_demo.cc | chanchann/littleMickle | f3a839d8ad55f483bbac4e4224dcd35234c5aa00 | [
"MIT"
] | 1 | 2021-03-16T02:13:12.000Z | 2021-03-16T02:13:12.000Z | basic/mem_leak_tools/02_demo.cc | chanchann/littleMickle | f3a839d8ad55f483bbac4e4224dcd35234c5aa00 | [
"MIT"
] | null | null | null | basic/mem_leak_tools/02_demo.cc | chanchann/littleMickle | f3a839d8ad55f483bbac4e4224dcd35234c5aa00 | [
"MIT"
] | null | null | null | /*
申请的堆内存没有释放 + 对堆内存的访问越界
==19218== Invalid write of size 4
==19218== at 0x400547: fun() (in /home/ysy/thread/other/mem_leak_tools/test)
==19218== by 0x400558: main (in /home/ysy/thread/other/mem_leak_tools/test)
==19218== Address 0x5204068 is 0 bytes after a block of size 40 alloc'd
==19218== at 0x4C2DBF6: ... | 29.375 | 79 | 0.657447 | chanchann |
fc5900a97a39cb59d06f9d8dd847fc057bce27dc | 4,105 | cpp | C++ | 01_Develop/libXMFFmpeg/Source/libavformat/rtpenc_xiph.cpp | mcodegeeks/OpenKODE-Framework | d4382d781da7f488a0e7667362a89e8e389468dd | [
"MIT"
] | 2 | 2017-08-03T07:15:00.000Z | 2018-06-18T10:32:53.000Z | 01_Develop/libXMFFmpeg/Source/libavformat/rtpenc_xiph.cpp | mcodegeeks/OpenKODE-Framework | d4382d781da7f488a0e7667362a89e8e389468dd | [
"MIT"
] | null | null | null | 01_Develop/libXMFFmpeg/Source/libavformat/rtpenc_xiph.cpp | mcodegeeks/OpenKODE-Framework | d4382d781da7f488a0e7667362a89e8e389468dd | [
"MIT"
] | 2 | 2019-03-04T22:57:42.000Z | 2020-03-06T01:32:26.000Z | /*
* RTP packetization for Xiph audio and video
* Copyright (c) 2010 Josh Allmann
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.... | 32.322835 | 84 | 0.585384 | mcodegeeks |
fc590e68074fe23af6b7b3aa78deb8308310e7bd | 6,288 | cpp | C++ | agusarov_task_1/trunk/func_sim/func_memory/func_memory.cpp | MIPT-ILab/mipt-mips-old-branches | a4e17025999b15d423601cf38a84234c5c037b33 | [
"MIT"
] | 1 | 2018-03-04T21:28:20.000Z | 2018-03-04T21:28:20.000Z | agusarov_task_1/trunk/func_sim/func_memory/func_memory.cpp | MIPT-ILab/mipt-mips-old-branches | a4e17025999b15d423601cf38a84234c5c037b33 | [
"MIT"
] | null | null | null | agusarov_task_1/trunk/func_sim/func_memory/func_memory.cpp | MIPT-ILab/mipt-mips-old-branches | a4e17025999b15d423601cf38a84234c5c037b33 | [
"MIT"
] | null | null | null | /**
* func_memory.cpp - the module implementing the concept of
* programer-visible memory space accesing via memory address.
* @author Alexander Titov <alexander.igorevich.titov@gmail.com>
* Copyright 2012 uArchSim iLab project
*/
// Generic C
#include <libelf.h>
#include <cstdio>
#include <unistd.h>
#include <c... | 22.618705 | 93 | 0.624046 | MIPT-ILab |
fc5918cc889c38079a7da84b81d62eb192aea889 | 1,122 | hpp | C++ | src/engine/Player.hpp | psettle/podracing | 1a9c816bf8bb51910d0d2aa95c7c155553d9435e | [
"MIT"
] | 1 | 2021-09-25T18:18:14.000Z | 2021-09-25T18:18:14.000Z | src/engine/Player.hpp | psettle/podracing | 1a9c816bf8bb51910d0d2aa95c7c155553d9435e | [
"MIT"
] | null | null | null | src/engine/Player.hpp | psettle/podracing | 1a9c816bf8bb51910d0d2aa95c7c155553d9435e | [
"MIT"
] | null | null | null | #ifndef PLAYER_H
#define PLAYER_H
#include <iostream>
#include <memory>
#include <sstream>
#include <string>
#include <vector>
#include "IPlayer.hpp"
#include "Pod.hpp"
#include "Vec2.hpp"
class Player {
public:
Player(IPlayer& controller);
void Setup(std::string const& data);
void InitPods(Vec2 const& origin,... | 26.714286 | 98 | 0.729947 | psettle |
fc5b366afc9e009472550f1b93cdc755688b5653 | 4,973 | hxx | C++ | src/core/func.hxx | LittleGreyCells/escheme-interpreter | 4843c2615f7f576c52c1d56ba3b6b94795d8f584 | [
"MIT"
] | null | null | null | src/core/func.hxx | LittleGreyCells/escheme-interpreter | 4843c2615f7f576c52c1d56ba3b6b94795d8f584 | [
"MIT"
] | null | null | null | src/core/func.hxx | LittleGreyCells/escheme-interpreter | 4843c2615f7f576c52c1d56ba3b6b94795d8f584 | [
"MIT"
] | null | null | null | #ifndef func_hxx
#define func_hxx
#include "sexpr.hxx"
namespace escheme
{
bool booleanp( const SEXPR n );
bool notp( const SEXPR n );
bool boundp( const SEXPR n );
bool eof_objectp( const SEXPR n );
bool zerop( const SEXPR n );
bool positivep( const SEXPR n );
bool negativep( const SEXPR n );
bool oddp( const SEXPR... | 19.57874 | 34 | 0.658355 | LittleGreyCells |
fc5f896f6381797404c1d869e34e855e70edbcc8 | 1,569 | hpp | C++ | swizzle/engine_src/gfx/gfxvk/VkContext.hpp | deathcleaver/swizzle | 1a1cc114841ea7de486cf94c6cafd9108963b4da | [
"MIT"
] | 2 | 2020-02-10T07:58:21.000Z | 2022-03-15T19:13:28.000Z | swizzle/engine_src/gfx/gfxvk/VkContext.hpp | deathcleaver/swizzle | 1a1cc114841ea7de486cf94c6cafd9108963b4da | [
"MIT"
] | null | null | null | swizzle/engine_src/gfx/gfxvk/VkContext.hpp | deathcleaver/swizzle | 1a1cc114841ea7de486cf94c6cafd9108963b4da | [
"MIT"
] | null | null | null | #ifndef VK_CONTEXT_HPP
#define VK_CONTEXT_HPP
/* Include files */
#include <common/Common.hpp>
#include <swizzle/gfx/Context.hpp>
#include "VulkanInstance.hpp"
#include "backend/VkContainer.hpp"
/* Defines */
/* Typedefs/enums */
/* Forward Declared Structs/Classes */
/* Struct Declaration */
/* Class Declarati... | 26.59322 | 135 | 0.715743 | deathcleaver |
fc60517761f49dadac2db1afb60374050fd4fb74 | 348 | cpp | C++ | OC_data/COCStr.cpp | coderand/oclf | 9da0ffcf9a664bf8ab719090b5b93e34cfe0cec2 | [
"MIT"
] | 1 | 2018-02-02T06:31:53.000Z | 2018-02-02T06:31:53.000Z | OC_data/COCStr.cpp | coderand/oclf | 9da0ffcf9a664bf8ab719090b5b93e34cfe0cec2 | [
"MIT"
] | null | null | null | OC_data/COCStr.cpp | coderand/oclf | 9da0ffcf9a664bf8ab719090b5b93e34cfe0cec2 | [
"MIT"
] | null | null | null | // This file is distributed under a MIT license. See LICENSE.txt for details.
//
// class COCStr
//
#include "common.h"
bool COCStr::Cmp
(
const char *pStr
)
{
return !strncmp( m_String, pStr, m_nLength );
}
void COCStr::CopyTo
(
char *pStr
)
{
memcpy( pStr, m_String, m_nLength );
... | 14.5 | 77 | 0.603448 | coderand |
fc6083aa4de81d28eeacb9897540bb045264c7e6 | 3,266 | cpp | C++ | VS/CPP/hli-stl-main/hli-stl-main.cpp | HJLebbink/high-level-intrinsics-lib | 2bc028ea2a316081d1324e54cbf879e3ed84fc05 | [
"MIT"
] | null | null | null | VS/CPP/hli-stl-main/hli-stl-main.cpp | HJLebbink/high-level-intrinsics-lib | 2bc028ea2a316081d1324e54cbf879e3ed84fc05 | [
"MIT"
] | null | null | null | VS/CPP/hli-stl-main/hli-stl-main.cpp | HJLebbink/high-level-intrinsics-lib | 2bc028ea2a316081d1324e54cbf879e3ed84fc05 | [
"MIT"
] | 1 | 2020-11-06T12:59:42.000Z | 2020-11-06T12:59:42.000Z | #ifdef _MSC_VER
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
#if !defined(NOMINMAX)
#define NOMINMAX 1
#endif
#if !defined(_CRT_SECURE_NO_WARNINGS)
#define _CRT_SECURE_NO_WARNINGS 1
#endif
#endif
#include <iostream> // for cout
#include <stdlib.h> // for printf
#include ... | 31.403846 | 92 | 0.716779 | HJLebbink |
fc6731ebd1b2cadb29fa5efcf9f158964a322dca | 1,061 | hpp | C++ | bark/world/evaluation/ltl/label_functions/rel_speed_label_function.hpp | GAIL-4-BARK/bark | 1cfda9ba6e9ec5318fbf01af6b67c242081b516e | [
"MIT"
] | null | null | null | bark/world/evaluation/ltl/label_functions/rel_speed_label_function.hpp | GAIL-4-BARK/bark | 1cfda9ba6e9ec5318fbf01af6b67c242081b516e | [
"MIT"
] | null | null | null | bark/world/evaluation/ltl/label_functions/rel_speed_label_function.hpp | GAIL-4-BARK/bark | 1cfda9ba6e9ec5318fbf01af6b67c242081b516e | [
"MIT"
] | null | null | null | // Copyright (c) 2019 fortiss GmbH
//
// This work is licensed under the terms of the MIT license.
// For a copy, see <https://opensource.org/licenses/MIT>.
#ifndef BARK_WORLD_EVALUATION_LTL_LABELS_REL_SPEED_LABEL_FUNCTION_HPP_
#define BARK_WORLD_EVALUATION_LTL_LABELS_REL_SPEED_LABEL_FUNCTION_HPP_
#include <string>
... | 30.314286 | 83 | 0.788878 | GAIL-4-BARK |
fc6ea1a81ca7eb45138d0809d1c02269cdced865 | 3,750 | cpp | C++ | infra/ScheduledTaskQueue.cpp | danielcompton/smyte-db | 34129e0184408086cde6fe9694d9a7d7ca9c2016 | [
"Apache-2.0"
] | 47 | 2016-12-18T21:50:28.000Z | 2022-02-25T06:00:19.000Z | infra/ScheduledTaskQueue.cpp | danielcompton/smyte-db | 34129e0184408086cde6fe9694d9a7d7ca9c2016 | [
"Apache-2.0"
] | 4 | 2017-08-14T20:39:53.000Z | 2020-11-28T20:14:53.000Z | infra/ScheduledTaskQueue.cpp | danielcompton/smyte-db | 34129e0184408086cde6fe9694d9a7d7ca9c2016 | [
"Apache-2.0"
] | 20 | 2017-01-02T13:39:09.000Z | 2021-12-04T00:42:17.000Z | #include "infra/ScheduledTaskQueue.h"
#include <pthread.h>
#include <algorithm>
#include <chrono>
#include <memory>
#include <string>
#include <thread>
#include <vector>
#include "glog/logging.h"
#include "rocksdb/iterator.h"
#include "rocksdb/options.h"
#include "rocksdb/status.h"
#include "rocksdb/write_batch.h"
... | 36.057692 | 118 | 0.701067 | danielcompton |
fc6efff6f8c4fbd1d6f7fe6fb3ea571875354e91 | 2,374 | cpp | C++ | BackendCommon/IProfilerServer.cpp | RaptDept/slimtune | a9a248a342a51d95b7c833bce5bb91bf3db987f3 | [
"MIT"
] | 26 | 2015-07-01T03:26:50.000Z | 2018-02-06T06:00:38.000Z | BackendCommon/IProfilerServer.cpp | RaptDept/slimtune | a9a248a342a51d95b7c833bce5bb91bf3db987f3 | [
"MIT"
] | null | null | null | BackendCommon/IProfilerServer.cpp | RaptDept/slimtune | a9a248a342a51d95b7c833bce5bb91bf3db987f3 | [
"MIT"
] | 7 | 2018-06-27T13:17:56.000Z | 2020-05-02T16:59:24.000Z | /*
* Copyright (c) 2007-2009 SlimDX Group
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publis... | 27.929412 | 111 | 0.726622 | RaptDept |
fc7273b2d3d76b4247d6a97a7a0cacbf277e923b | 1,265 | cpp | C++ | graph-source-code/350-E/10332016.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/350-E/10332016.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | graph-source-code/350-E/10332016.cpp | AmrARaouf/algorithm-detection | 59f3028d2298804870b32729415d71eec6116557 | [
"MIT"
] | null | null | null | //Language: GNU C++
#include<bits/stdc++.h>
using namespace std;
int a[1010];
bool lab[1010];
vector<pair<int,int> > ans;
bool use[1010][1010];
int p[1010];
int f(int x){
return x==p[x]?x:p[x]=f(p[x]);
}
int main(){
int n,m,K;
scanf("%d%d%d",&n,&m,&K);
if(K==n){
puts("-1");
... | 20.403226 | 54 | 0.361265 | AmrARaouf |
fc74122ce43a5f8ca0f655d209a32ecd6182480b | 573 | cpp | C++ | dev/DynamicDependency/API/appmodel_packageinfo.cpp | ChrisGuzak/WindowsAppSDK | 3f19ef0f438524af3c87fdad5f4fea555530c285 | [
"CC-BY-4.0",
"MIT"
] | 2,002 | 2020-05-19T15:16:02.000Z | 2021-06-24T13:28:05.000Z | dev/DynamicDependency/API/appmodel_packageinfo.cpp | ChrisGuzak/WindowsAppSDK | 3f19ef0f438524af3c87fdad5f4fea555530c285 | [
"CC-BY-4.0",
"MIT"
] | 1,065 | 2021-06-24T16:08:11.000Z | 2022-03-31T23:12:32.000Z | dev/DynamicDependency/API/appmodel_packageinfo.cpp | ChrisGuzak/WindowsAppSDK | 3f19ef0f438524af3c87fdad5f4fea555530c285 | [
"CC-BY-4.0",
"MIT"
] | 106 | 2020-05-19T15:20:00.000Z | 2021-06-24T15:03:57.000Z | // Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See LICENSE in the project root for license information.
#include "pch.h"
#include "appmodel_packageinfo.h"
#include "MddDetourPackageGraph.h"
LONG appmodel::GetPackageInfo2(
PACKAGE_INFO_REFERENCE packageIn... | 30.157895 | 109 | 0.745201 | ChrisGuzak |
fc7b100dd6b1016efebe4eb3fae602a9becd3af2 | 437 | cpp | C++ | ViAn/GUI/DrawingItems/penitem.cpp | NFCSKL/NFC-ViAn | ce04b78b4c9695374d71198f57d4236a5cad1525 | [
"MIT"
] | 1 | 2019-12-08T03:53:03.000Z | 2019-12-08T03:53:03.000Z | ViAn/GUI/DrawingItems/penitem.cpp | NFCSKL/NFC-ViAn | ce04b78b4c9695374d71198f57d4236a5cad1525 | [
"MIT"
] | 182 | 2018-02-08T11:03:26.000Z | 2019-06-27T15:27:47.000Z | ViAn/GUI/DrawingItems/penitem.cpp | NFCSKL/NFC-ViAn | ce04b78b4c9695374d71198f57d4236a5cad1525 | [
"MIT"
] | null | null | null | #include "penitem.h"
PenItem::PenItem(Pen* pen) : ShapeItem(PEN_ITEM) {
m_pen = pen;
setFlags(flags() | Qt::ItemIsDragEnabled);
setText(0, pen->get_name());
const QIcon pen_icon(":/Icons/pen.png");
setIcon(0, pen_icon);
map = QPixmap(16,16);
update_shape_color();
update_show_icon(m_pen... | 19.863636 | 50 | 0.636156 | NFCSKL |
fc7ce3da20e68bae2165bcaa8637d86f2f731cee | 2,389 | cpp | C++ | src/util/lp/lp_primal_core_solver_instances.cpp | leodemoura/lean_clone | cc077554b584d39bab55c360bc12a6fe7957afe6 | [
"Apache-2.0"
] | 130 | 2016-12-02T22:46:10.000Z | 2022-03-22T01:09:48.000Z | src/util/lp/lp_primal_core_solver_instances.cpp | soonhokong/lean | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | [
"Apache-2.0"
] | 8 | 2017-05-03T01:21:08.000Z | 2020-02-25T11:38:05.000Z | src/util/lp/lp_primal_core_solver_instances.cpp | soonhokong/lean | 38607e3eb57f57f77c0ac114ad169e9e4262e24f | [
"Apache-2.0"
] | 28 | 2016-12-02T22:46:20.000Z | 2022-03-18T21:28:20.000Z | /*
Copyright (c) 2013 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Lev Nachmanson
*/
#include <utility>
#include <memory>
#include <string>
#include <vector>
#include <functional>
#include "util/lp/lar_solver.h"
#include "util/lp/lp_prima... | 103.869565 | 637 | 0.747175 | leodemoura |
fc7d1bbe8f2f2f97aee831d16ee95390c3b0c333 | 2,893 | hpp | C++ | headers/enduro2d/utils/module.hpp | NechukhrinN/enduro2d | 774f120395885a6f0f21418c4de024e7668ee436 | [
"MIT"
] | 92 | 2018-08-07T14:45:33.000Z | 2021-11-14T20:37:23.000Z | headers/enduro2d/utils/module.hpp | NechukhrinN/enduro2d | 774f120395885a6f0f21418c4de024e7668ee436 | [
"MIT"
] | 43 | 2018-09-30T20:48:03.000Z | 2020-04-20T20:05:26.000Z | headers/enduro2d/utils/module.hpp | NechukhrinN/enduro2d | 774f120395885a6f0f21418c4de024e7668ee436 | [
"MIT"
] | 13 | 2018-08-08T13:45:28.000Z | 2020-10-02T11:55:58.000Z | /*******************************************************************************
* This file is part of the "Enduro2D"
* For conditions of distribution and use, see copyright notice in LICENSE.md
* Copyright (C) 2018-2020, by Matvey Cherevko (blackmatov@gmail.com)
***************************************************... | 29.222222 | 86 | 0.557553 | NechukhrinN |
fc7df3b3c2d60a8de39966901a3a2e4242e97de2 | 370 | cpp | C++ | tools/json-ast-exporter/src/main.cpp | TheoKant/cclyzer-souffle | dfcd01daa592a2356e36aaeaa9c933305c253cba | [
"MIT"
] | 63 | 2016-02-06T21:06:40.000Z | 2021-11-16T19:58:27.000Z | tools/json-ast-exporter/src/main.cpp | TheoKant/cclyzer-souffle | dfcd01daa592a2356e36aaeaa9c933305c253cba | [
"MIT"
] | 11 | 2019-05-23T20:55:12.000Z | 2021-12-08T22:18:01.000Z | tools/json-ast-exporter/src/main.cpp | TheoKant/cclyzer-souffle | dfcd01daa592a2356e36aaeaa9c933305c253cba | [
"MIT"
] | 14 | 2016-02-21T17:12:36.000Z | 2021-09-26T02:48:41.000Z | #include "ast_export.hpp"
#include "Options.hpp"
int main(int argc, char *argv[])
{
using namespace cclyzer::ast_exporter;
try
{
// Parse command line
Options options(argc, argv);
// Export AST in JSON form
jsonexport::export_ast(options);
}
catch (int errorcode) ... | 16.086957 | 42 | 0.583784 | TheoKant |
fc801c3c14d26b8f1dce97f95d00cb2213709e8d | 1,878 | cpp | C++ | ProcessingQueues/src/base/Data.cpp | seancfoley/HPQueues | e1e75d0afc8470e93d2c172c8f687bdc13f85d38 | [
"Apache-2.0"
] | 7 | 2016-09-29T02:17:02.000Z | 2021-02-19T13:55:56.000Z | ProcessingQueues/src/base/Data.cpp | seancfoley/HPQueues | e1e75d0afc8470e93d2c172c8f687bdc13f85d38 | [
"Apache-2.0"
] | null | null | null | ProcessingQueues/src/base/Data.cpp | seancfoley/HPQueues | e1e75d0afc8470e93d2c172c8f687bdc13f85d38 | [
"Apache-2.0"
] | 1 | 2018-05-23T08:53:52.000Z | 2018-05-23T08:53:52.000Z | /*
* Data.cpp
*
* Created on: Jun 9, 2010
* Author: sfoley
*/
#include <sstream>
#include <ios>
#include "Data.h"
namespace hpqueue {
const std::string Data::emptyString;
const char Data::emptyChars[] = {'\0'};
template<>
const INT_8 vector_wrapper<INT_8>::emptyValue[] = { 0 };
template <>
std::string ... | 24.076923 | 90 | 0.731629 | seancfoley |