hexsha stringlengths 40 40 | size int64 7 1.05M | ext stringclasses 13
values | lang stringclasses 1
value | max_stars_repo_path stringlengths 4 269 | max_stars_repo_name stringlengths 5 109 | max_stars_repo_head_hexsha stringlengths 40 40 | max_stars_repo_licenses listlengths 1 9 | max_stars_count int64 1 191k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 4 269 | max_issues_repo_name stringlengths 5 116 | max_issues_repo_head_hexsha stringlengths 40 40 | max_issues_repo_licenses listlengths 1 9 | max_issues_count int64 1 48.5k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 4 269 | max_forks_repo_name stringlengths 5 116 | max_forks_repo_head_hexsha stringlengths 40 40 | max_forks_repo_licenses listlengths 1 9 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 7 1.05M | avg_line_length float64 1.21 330k | max_line_length int64 6 990k | alphanum_fraction float64 0.01 0.99 | author_id stringlengths 2 40 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3788372b6c8beae2f46454b97a4d243b5e547177 | 1,861 | hpp | C++ | parser/operators.hpp | CobaltXII/cxcc | 2e8f34e851b3cbe6699e443fd3950d630ff170b7 | [
"MIT"
] | 3 | 2019-05-27T04:50:51.000Z | 2019-06-18T16:27:58.000Z | parser/operators.hpp | CobaltXII/cxcc | 2e8f34e851b3cbe6699e443fd3950d630ff170b7 | [
"MIT"
] | null | null | null | parser/operators.hpp | CobaltXII/cxcc | 2e8f34e851b3cbe6699e443fd3950d630ff170b7 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
// All binary operators.
enum binary_operator_t {
bi_addition,
bi_subtraction,
bi_multiplication,
bi_division,
bi_modulo,
bi_assignment,
bi_addition_assignment,
bi_subtraction_assignment,
bi_multiplication_assignment,
bi_division_assignment,
bi_modulo_assignment,
bi_logical_a... | 20.910112 | 40 | 0.779688 | CobaltXII |
37926c6e01702a320a788f39146488ba5b6a0b58 | 469 | hpp | C++ | include/gkom/ShaderProgram.hpp | akowalew/mill-opengl | 91ef11e6cdbfe691e0073d9883e42c0a29d29b45 | [
"MIT"
] | null | null | null | include/gkom/ShaderProgram.hpp | akowalew/mill-opengl | 91ef11e6cdbfe691e0073d9883e42c0a29d29b45 | [
"MIT"
] | null | null | null | include/gkom/ShaderProgram.hpp | akowalew/mill-opengl | 91ef11e6cdbfe691e0073d9883e42c0a29d29b45 | [
"MIT"
] | null | null | null | #pragma once
#include <string_view>
namespace gkom {
//! Forward declarations
class Shader;
class Uniform;
class ShaderProgram
{
public:
explicit ShaderProgram(unsigned int handle) noexcept;
void attach(Shader shader);
void detach(Shader shader);
void link();
bool isLinked() const noexcept;
void use();
... | 12.675676 | 54 | 0.729211 | akowalew |
379d999398968fe22b83e1234e3e731b4bd13ff4 | 3,755 | cc | C++ | src/runtime/directx/directx_buffer.cc | wenxcs/tvm | bcbf4f9b1ddc4326364a3aa2fc82aaf4df8d53e8 | [
"Apache-2.0"
] | null | null | null | src/runtime/directx/directx_buffer.cc | wenxcs/tvm | bcbf4f9b1ddc4326364a3aa2fc82aaf4df8d53e8 | [
"Apache-2.0"
] | null | null | null | src/runtime/directx/directx_buffer.cc | wenxcs/tvm | bcbf4f9b1ddc4326364a3aa2fc82aaf4df8d53e8 | [
"Apache-2.0"
] | null | null | null | #include "directx_header.h"
using namespace tvm::runtime::dx;
DirectBuffer::DirectBuffer(DirectXDevice* _dev, UINT64 size, DLDataType type) : _dxdev(_dev) {
_res = _dev->device_allocate(size);
D3D12_RESOURCE_DESC desc = _res->GetDesc();
this->size = desc.Width;
this->type = type;
}
DirectBuffer::DirectBuffer... | 30.282258 | 109 | 0.691877 | wenxcs |
37a80ab55c5fa7ba4985d1ab17263121be860830 | 1,377 | cpp | C++ | tests/SignalConverterTests.cpp | sbash64/phase-vocoder | ac9c11cd4d38c6827bfde815e559d3f1114e1cf4 | [
"MIT"
] | null | null | null | tests/SignalConverterTests.cpp | sbash64/phase-vocoder | ac9c11cd4d38c6827bfde815e559d3f1114e1cf4 | [
"MIT"
] | null | null | null | tests/SignalConverterTests.cpp | sbash64/phase-vocoder | ac9c11cd4d38c6827bfde815e559d3f1114e1cf4 | [
"MIT"
] | null | null | null | #include "assert-utility.hpp"
#include <sbash64/phase-vocoder/SignalConverter.hpp>
#include <gtest/gtest.h>
namespace sbash64::phase_vocoder {
namespace {
class SignalConverterTests : public ::testing::Test {
protected:
void assertExpanded(const std::vector<double> &x, index_type P,
const std::vector<dou... | 24.157895 | 80 | 0.594771 | sbash64 |
37ad33aeccebf9570081da11802638ed6c0bc2fe | 609 | cpp | C++ | engine/src/core/mesh.cpp | AnisB/Donut | 335638df9eca74440ca0d9dc3928ae9b419b7307 | [
"MIT"
] | 3 | 2015-09-28T23:21:02.000Z | 2017-06-20T16:17:32.000Z | engine/src/core/mesh.cpp | AnisB/Donut | 335638df9eca74440ca0d9dc3928ae9b419b7307 | [
"MIT"
] | null | null | null | engine/src/core/mesh.cpp | AnisB/Donut | 335638df9eca74440ca0d9dc3928ae9b419b7307 | [
"MIT"
] | 2 | 2015-11-25T07:34:35.000Z | 2017-01-03T00:14:38.000Z | // Library includes
#include "core/Mesh.h"
#include "resource/resource_manager.h"
// External includes
#include <string.h>
namespace donut
{
TMesh::TMesh(MATERIAL_GUID material_guid, GEOMETRY_GUID _geometry)
: TDrawable()
, m_material(material_guid)
, m_geometry(_geometry)
{
}
TMesh::~TMesh()
{
}
... | 19.03125 | 70 | 0.720854 | AnisB |
37ae65938574133f0b9790b155f54b47609aee78 | 1,004 | cpp | C++ | geometry/point.11.cpp | ivan100sic/competelib-snippets | e40170a63b37d92c91e2dfef08b2794e67ccb0b2 | [
"Unlicense"
] | 3 | 2022-01-17T01:56:05.000Z | 2022-02-23T07:30:02.000Z | geometry/point.11.cpp | ivan100sic/competelib-snippets | e40170a63b37d92c91e2dfef08b2794e67ccb0b2 | [
"Unlicense"
] | null | null | null | geometry/point.11.cpp | ivan100sic/competelib-snippets | e40170a63b37d92c91e2dfef08b2794e67ccb0b2 | [
"Unlicense"
] | null | null | null | // Planar point
using ll = long long;
/*snippet-begin*/
template<class P, class T = ll>
T det(const P& a, const P& b, const P& c) {
return (a-b).template vp<T>(a-c);
}
template<class T>
T sgn(T x) {
return x < 0 ? -1 : !!x;
}
template<class T>
struct point {
T x, y;
point operator- (const point& b) ... | 27.888889 | 85 | 0.553785 | ivan100sic |
37b0e336737df256bc44e98d0a264c23822a78a2 | 485 | cpp | C++ | mj344/IOManager/Outputs/Host.cpp | Shakarang/mbed-mj344_a1 | d8217db644c08f3417fe5f4f3b51f59df9439408 | [
"MIT"
] | null | null | null | mj344/IOManager/Outputs/Host.cpp | Shakarang/mbed-mj344_a1 | d8217db644c08f3417fe5f4f3b51f59df9439408 | [
"MIT"
] | null | null | null | mj344/IOManager/Outputs/Host.cpp | Shakarang/mbed-mj344_a1 | d8217db644c08f3417fe5f4f3b51f59df9439408 | [
"MIT"
] | null | null | null | /**
* @Author: Maxime Junger <mj344>
* @Date: 2017-02-03T21:46:16+00:00
* @Email: mj344@kent.ac.uk
* @Last modified by: mj344
* @Last modified time: 2017-02-08T18:26:07+00:00
*/
#include <time.h>
#include "Host.hh"
Host::Host() {
this->host = new Serial(USBTX, USBRX);
}
Host::~Host() {
if (this->host != NULL)... | 19.4 | 62 | 0.602062 | Shakarang |
37b5a3a5158024aace1be6ee2386633d7ea6992f | 4,308 | cpp | C++ | WOAP Host/Source/woap_gain_fader_view.cpp | ZonRobin/WOAP | f1bfb8dbe84e57826834ad3ca81f548b20b1afc6 | [
"MIT"
] | null | null | null | WOAP Host/Source/woap_gain_fader_view.cpp | ZonRobin/WOAP | f1bfb8dbe84e57826834ad3ca81f548b20b1afc6 | [
"MIT"
] | null | null | null | WOAP Host/Source/woap_gain_fader_view.cpp | ZonRobin/WOAP | f1bfb8dbe84e57826834ad3ca81f548b20b1afc6 | [
"MIT"
] | null | null | null | #include "woap_gain_fader_view.h"
#include "woap_gain_fader.h"
#include "woap_track.h"
#include "woap_track_level_indicator_view.h"
#include "woap_parameter_float.h"
#include "woap_vertical_db_scale.h"
#include "woap_track_send_node.h"
using namespace WOAP;
using namespace WOAP::GUI;
GainFaderView::GainFaderView(Trac... | 24.338983 | 108 | 0.7565 | ZonRobin |
37b9fd0a59f9806b2227df06ef6c6415ba53b56f | 1,212 | cpp | C++ | examples/images/ImageOpenCVModel.cpp | teyenliu/nodeeditor | a1bf22f924f4911b8dd3f84ff88678f91cdd2c7e | [
"BSD-3-Clause"
] | null | null | null | examples/images/ImageOpenCVModel.cpp | teyenliu/nodeeditor | a1bf22f924f4911b8dd3f84ff88678f91cdd2c7e | [
"BSD-3-Clause"
] | null | null | null | examples/images/ImageOpenCVModel.cpp | teyenliu/nodeeditor | a1bf22f924f4911b8dd3f84ff88678f91cdd2c7e | [
"BSD-3-Clause"
] | null | null | null | #include "ImageOpenCVModel.hpp"
#include <QtCore/QEvent>
#include <QtCore/QDir>
#include <QDebug>
#include <QtWidgets/QFileDialog>
#include <nodes/DataModelRegistry>
#include "PixmapData.hpp"
ImageOpenCVModel::
ImageOpenCVModel()
{
}
bool
ImageOpenCVModel::
eventFilter(QObject *object, QEvent *event)
{
if (obj... | 17.070423 | 75 | 0.643564 | teyenliu |
37bf813d9aa9a21833b19ba4e9f78654eb01aa91 | 31,278 | cpp | C++ | Math3D.cpp | joeriedel/Tread3.0A2 | 337c4aa74d554e21b50d6bd4406ce0f67aa39144 | [
"MIT"
] | 1 | 2020-07-19T10:19:18.000Z | 2020-07-19T10:19:18.000Z | Math3D.cpp | joeriedel/Tread3.0A2 | 337c4aa74d554e21b50d6bd4406ce0f67aa39144 | [
"MIT"
] | null | null | null | Math3D.cpp | joeriedel/Tread3.0A2 | 337c4aa74d554e21b50d6bd4406ce0f67aa39144 | [
"MIT"
] | null | null | null | ///////////////////////////////////////////////////////////////////////////////
// Math3D.cpp
///////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2008, Joe Riedel
// All rights reserved.
// Original Author: Andrew Meggs
//
// Redistribution and use in source and binary forms... | 39.442623 | 154 | 0.494437 | joeriedel |
37c6f073046f522293840ddcc5e4216519ae3012 | 4,715 | cpp | C++ | test/source/game_state_unit_tests.cpp | ahelwer/pason2012 | 9e7d76589c3a9c81adc9b37e8770239b346801c0 | [
"MIT"
] | 1 | 2020-09-15T05:48:22.000Z | 2020-09-15T05:48:22.000Z | test/source/game_state_unit_tests.cpp | ahelwer/pason2012 | 9e7d76589c3a9c81adc9b37e8770239b346801c0 | [
"MIT"
] | 4 | 2019-07-03T17:06:25.000Z | 2019-07-03T17:06:45.000Z | test/source/game_state_unit_tests.cpp | ahelwer/pason2012 | 9e7d76589c3a9c81adc9b37e8770239b346801c0 | [
"MIT"
] | null | null | null | #include <test/game_state_unit_tests.hpp>
#include <model/tetromino.hpp>
#include <util/constants.hpp>
#include <util/vector.hpp>
#include <iostream>
CPPUNIT_TEST_SUITE_REGISTRATION(GameStateUnitTests);
void GameStateUnitTests::setUp() {
m_pState = new GameState();
}
void GameStateUnitTests::tearDown() {
if... | 32.517241 | 66 | 0.68526 | ahelwer |
37c78d02abb275b9a1ce9a4790d8e4b2f8db64df | 1,999 | hh | C++ | Framework/AbsModuleMemento.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | Framework/AbsModuleMemento.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | Framework/AbsModuleMemento.hh | brownd1978/FastSim | 05f590d72d8e7f71856fd833114a38b84fc7fd48 | [
"Apache-2.0"
] | null | null | null | //--------------------------------------------------------------------------
// File and Version Information:
// $Id: AbsModuleMemento.hh 509 2010-01-14 15:18:55Z stroili $
//
// Description:
// Class AbsModuleMemento. Abstract base class for Memento classes
// Do not use this for Template class (foo<T>). us... | 23.517647 | 77 | 0.533267 | brownd1978 |
37c9772c6ca09ef7c9f20fb3a952c0c76bb4f79e | 928 | cpp | C++ | src/classes/socket/ClientTCPSocket.cpp | thibautcornolti/plazza | 253b0dd9f76179aa2ef7e98050fcb7c2bc6c4b25 | [
"MIT"
] | null | null | null | src/classes/socket/ClientTCPSocket.cpp | thibautcornolti/plazza | 253b0dd9f76179aa2ef7e98050fcb7c2bc6c4b25 | [
"MIT"
] | null | null | null | src/classes/socket/ClientTCPSocket.cpp | thibautcornolti/plazza | 253b0dd9f76179aa2ef7e98050fcb7c2bc6c4b25 | [
"MIT"
] | null | null | null | /*
** EPITECH PROJECT, 2018
** cpp_plazza
** File description:
** ClientTCPSocket
*/
#include "ClientTCPSocket.hpp"
ClientTCPSocket::ClientTCPSocket() : TCPSocket()
{
}
ClientTCPSocket::ClientTCPSocket(const std::string &host, int port)
: TCPSocket()
{
ClientTCPSocket::connect(host, port);
}
ClientTCPSocket::Clie... | 19.744681 | 68 | 0.700431 | thibautcornolti |
37ca07a23fb9693304bb70cde961086de5536e1d | 1,505 | cpp | C++ | source/plugin/squarexorx4/squarexor.cpp | lostjared/acidcamGL | dbd06c24bfc4a0b1afc137e906f1a9a9cb98a14b | [
"BSD-2-Clause"
] | 12 | 2020-06-29T03:58:26.000Z | 2022-01-15T17:03:16.000Z | source/plugin/squarexorx4/squarexor.cpp | lostjared/acidcamGL | dbd06c24bfc4a0b1afc137e906f1a9a9cb98a14b | [
"BSD-2-Clause"
] | 1 | 2020-11-05T01:51:58.000Z | 2020-12-14T18:20:54.000Z | source/plugin/squarexorx4/squarexor.cpp | lostjared/acidcamGL | dbd06c24bfc4a0b1afc137e906f1a9a9cb98a14b | [
"BSD-2-Clause"
] | 3 | 2020-02-27T18:27:45.000Z | 2021-08-18T01:24:52.000Z | #include"ac.h"
#include<cstdlib>
#include<ctime>
extern "C" void filter(cv::Mat &frame) {
static double alpha = 1.0;
for(int z = 0; z < frame.rows-4; z += 3) {
for(int i = 0; i < frame.cols-4; i += 3) {
if(i+1 < frame.cols && z+1 < frame.rows) {
cv::Ve... | 32.021277 | 116 | 0.322259 | lostjared |
37caa01c67b60d9dc807fc724d2a41b71d96f253 | 811 | cpp | C++ | SmallPetsHealthcare/AmbentController.cpp | mihotoyama/doingio-small-pets-healthcare | 94f88e8ce10265a022cbc2c75554b9819f335cc6 | [
"Apache-2.0"
] | 6 | 2020-09-26T02:31:46.000Z | 2022-03-17T07:20:08.000Z | SmallPetsHealthcare/AmbentController.cpp | mihotoyama/doingio-small-pets-healthcare | 94f88e8ce10265a022cbc2c75554b9819f335cc6 | [
"Apache-2.0"
] | 1 | 2020-10-06T07:20:34.000Z | 2020-10-06T07:20:34.000Z | SmallPetsHealthcare/AmbentController.cpp | mihotoyama/doingio-small-pets-healthcare | 94f88e8ce10265a022cbc2c75554b9819f335cc6 | [
"Apache-2.0"
] | 3 | 2020-10-02T16:04:24.000Z | 2021-12-11T00:16:53.000Z | #include "AmbentController.h"
void AmbentController::setup(DayDataModel *_dayDataRef, int channelid, char *writekey, WiFiClient *wclient)
{
dayDataRef = _dayDataRef;
if(channelid >= 0)
{
Serial.print("ambient setup");
const char* cwriteKey = writekey;
int b = ambient.begin(channelid, cwriteKey, wclie... | 25.34375 | 107 | 0.694205 | mihotoyama |
56cbd8c0aee4ca2b1a04dbfd6b30f6eda17af25b | 323 | cpp | C++ | WBF/src/WBF_DATA/ModuleElement.cpp | heesok2/OpenGL | 6ba159a77428635bf73eab9a0080203b248b015c | [
"MIT"
] | null | null | null | WBF/src/WBF_DATA/ModuleElement.cpp | heesok2/OpenGL | 6ba159a77428635bf73eab9a0080203b248b015c | [
"MIT"
] | null | null | null | WBF/src/WBF_DATA/ModuleElement.cpp | heesok2/OpenGL | 6ba159a77428635bf73eab9a0080203b248b015c | [
"MIT"
] | 1 | 2019-11-25T02:03:08.000Z | 2019-11-25T02:03:08.000Z | #include "stdafx.h"
#include "ModuleElement.h"
#include "EntityDefine.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
CModuleElement::CModuleElement(CPackage * pPackage)
: CModuleData<CEntityElement>(pPackage, E_TYPE_ELEMENT)
{
}
CModuleElement::~CModuleElement()
{... | 17 | 56 | 0.770898 | heesok2 |
56d6349b11bb21c869c0258aa3f8e3bc3572c2bf | 1,486 | hpp | C++ | src/feata-gui/gui/wgt/basewidgetgeomsel.hpp | master-clown/ofeata | 306cbc3a402551fb62b3925d23a2d4f63f60d525 | [
"MIT"
] | 1 | 2021-08-30T13:51:42.000Z | 2021-08-30T13:51:42.000Z | src/feata-gui/gui/wgt/basewidgetgeomsel.hpp | master-clown/ofeata | 306cbc3a402551fb62b3925d23a2d4f63f60d525 | [
"MIT"
] | null | null | null | src/feata-gui/gui/wgt/basewidgetgeomsel.hpp | master-clown/ofeata | 306cbc3a402551fb62b3925d23a2d4f63f60d525 | [
"MIT"
] | 1 | 2021-08-30T13:51:35.000Z | 2021-08-30T13:51:35.000Z | #pragma once
#include "gui/wgt/basewidget.hpp"
#include "geom/geom_ent_type.hpp"
namespace gui::wgt
{
class BaseWidgetGeomSel
: public BaseWidget
{
public:
BaseWidgetGeomSel(QWidget* parent = nullptr);
virtual void SetGeomSelType(const geom::GeomEntityType geom_... | 26.070175 | 101 | 0.653432 | master-clown |
56d93b499e9c428f2504811b1da595c4bb1f885b | 2,910 | cpp | C++ | Real-Time Corruptor/BizHawk_RTC/lynx/rom.cpp | redscientistlabs/Bizhawk50X-Vanguard | 96e0f5f87671a1230784c8faf935fe70baadfe48 | [
"MIT"
] | 1,414 | 2015-06-28T09:57:51.000Z | 2021-10-14T03:51:10.000Z | Real-Time Corruptor/BizHawk_RTC/lynx/rom.cpp | redscientistlabs/Bizhawk50X-Vanguard | 96e0f5f87671a1230784c8faf935fe70baadfe48 | [
"MIT"
] | 2,369 | 2015-06-25T01:45:44.000Z | 2021-10-16T08:44:18.000Z | Real-Time Corruptor/BizHawk_RTC/lynx/rom.cpp | redscientistlabs/Bizhawk50X-Vanguard | 96e0f5f87671a1230784c8faf935fe70baadfe48 | [
"MIT"
] | 430 | 2015-06-29T04:28:58.000Z | 2021-10-05T18:24:17.000Z | //
// Copyright (c) 2004 K. Wilkins
//
// This software is provided 'as-is', without any express or implied warranty.
// In no event will the authors be held liable for any damages arising from
// the use of this software.
//
// Permission is granted to anyone to use this software for any purpose,
// including commerci... | 43.432836 | 78 | 0.390378 | redscientistlabs |
56daed38cdd38fa0f2c902776411b848bdc1e0fc | 4,254 | cpp | C++ | SelectionDialog.cpp | Landgraf132/ScreenTranslator | fa894604666baaa5426057015cc181be93a62785 | [
"MIT"
] | null | null | null | SelectionDialog.cpp | Landgraf132/ScreenTranslator | fa894604666baaa5426057015cc181be93a62785 | [
"MIT"
] | null | null | null | SelectionDialog.cpp | Landgraf132/ScreenTranslator | fa894604666baaa5426057015cc181be93a62785 | [
"MIT"
] | null | null | null | #include "SelectionDialog.h"
#include "ui_SelectionDialog.h"
#include "LanguageHelper.h"
#include "StAssert.h"
#include <QMouseEvent>
#include <QPainter>
#include <QDebug>
#include <QMenu>
SelectionDialog::SelectionDialog (const LanguageHelper &dictionary, QWidget *parent) :
QDialog (parent),
ui (new Ui::Selectio... | 34.585366 | 93 | 0.649741 | Landgraf132 |
56e1376d70867d0a2d08e92bea404630f986a9f5 | 4,894 | cpp | C++ | src/Drawing.cpp | karjonas/ld35 | e6ea8334199bd636bde16412a642ba2f94756211 | [
"MIT"
] | 2 | 2021-09-03T12:33:58.000Z | 2021-12-26T12:44:20.000Z | src/Drawing.cpp | karjonas/ld35 | e6ea8334199bd636bde16412a642ba2f94756211 | [
"MIT"
] | null | null | null | src/Drawing.cpp | karjonas/ld35 | e6ea8334199bd636bde16412a642ba2f94756211 | [
"MIT"
] | null | null | null | #include "Drawing.h"
#include "GlobalState.h"
#include "allegro5/allegro.h"
#include <allegro5/allegro_primitives.h>
#include <allegro5/allegro_font.h>
#include <vector>
#include <algorithm>
struct ShapePoints
{
std::vector<Point> points;
ALLEGRO_COLOR color;
int mid_x;
};
struct LineColor
{
LineCol... | 29.305389 | 125 | 0.62076 | karjonas |
56e26e15b2781256469ba26b3a0551893914d35c | 975 | hpp | C++ | include/gkom/ShaderLoader.hpp | akowalew/mill-opengl | 91ef11e6cdbfe691e0073d9883e42c0a29d29b45 | [
"MIT"
] | null | null | null | include/gkom/ShaderLoader.hpp | akowalew/mill-opengl | 91ef11e6cdbfe691e0073d9883e42c0a29d29b45 | [
"MIT"
] | null | null | null | include/gkom/ShaderLoader.hpp | akowalew/mill-opengl | 91ef11e6cdbfe691e0073d9883e42c0a29d29b45 | [
"MIT"
] | null | null | null | #pragma once
#include <string>
#include <unordered_map>
#include <vector>
#include <string_view>
namespace gkom {
//! Forward declarations
class GraphicsManager;
class Logger;
class ShaderLoader
{
public:
ShaderLoader(GraphicsManager& graphicsManager);
unsigned int loadShaderProgram(std::string_view vertexShader... | 21.195652 | 66 | 0.754872 | akowalew |
56e466326b75fbd4a90de96bbf77cb6ac88668c7 | 2,125 | cpp | C++ | test/basic4.cpp | armos-db/libpaxos-cpp | 31e8a3f9664e3e6563d26dbc1323457f596b8eef | [
"BSD-3-Clause"
] | 54 | 2015-02-09T11:46:30.000Z | 2021-08-13T14:08:52.000Z | test/basic4.cpp | armos-db/libpaxos-cpp | 31e8a3f9664e3e6563d26dbc1323457f596b8eef | [
"BSD-3-Clause"
] | null | null | null | test/basic4.cpp | armos-db/libpaxos-cpp | 31e8a3f9664e3e6563d26dbc1323457f596b8eef | [
"BSD-3-Clause"
] | 17 | 2015-01-13T03:18:49.000Z | 2022-03-23T02:20:57.000Z | /*!
Tests whether the quorum will properly handle a dead node and it coming alive in a later stadium,
including a proper catch up.
*/
#include <boost/date_time/posix_time/posix_time_duration.hpp>
#include <paxos++/client.hpp>
#include <paxos++/server.hpp>
#include <paxos++/configuration.hpp>
#include <... | 31.25 | 100 | 0.585412 | armos-db |
56e6c51577d68c2427821b8aa06715c7acfb538f | 18,164 | cpp | C++ | Backups/DxGuiFramework - 17.2.01/DGGraphics.cpp | Maultasche/SeniorProject | 1bdb3c5e5d2298906f361af6fdda79438a56cb7c | [
"MIT"
] | null | null | null | Backups/DxGuiFramework - 17.2.01/DGGraphics.cpp | Maultasche/SeniorProject | 1bdb3c5e5d2298906f361af6fdda79438a56cb7c | [
"MIT"
] | null | null | null | Backups/DxGuiFramework - 17.2.01/DGGraphics.cpp | Maultasche/SeniorProject | 1bdb3c5e5d2298906f361af6fdda79438a56cb7c | [
"MIT"
] | null | null | null | /*------------------------------------------------------------------------
File Name: DGGraphics.h
Description: This file contains the DGGraphics class implementation,
which manages the DirectDraw surfaces and controls and what is drawn
to the screen.
Version:
1.0.0 10.02.2000 Created the file
---... | 37.451546 | 88 | 0.609998 | Maultasche |
56ec4a59ede740735759a7b7a5e5195c78e13b84 | 1,960 | cpp | C++ | ToyRenderer/src/Audio/AudioEngine.cpp | IRCSS/ToyRenderer | 39b919a99cae47f9da34229b427958ea720d98d0 | [
"MIT"
] | 40 | 2020-03-19T20:05:22.000Z | 2022-03-27T07:52:38.000Z | ToyRenderer/src/Audio/AudioEngine.cpp | IRCSS/ToyRenderer | 39b919a99cae47f9da34229b427958ea720d98d0 | [
"MIT"
] | null | null | null | ToyRenderer/src/Audio/AudioEngine.cpp | IRCSS/ToyRenderer | 39b919a99cae47f9da34229b427958ea720d98d0 | [
"MIT"
] | 5 | 2021-09-25T01:32:25.000Z | 2021-11-18T13:42:18.000Z | #include "AudioEngine.h"
#include "vendor/soloud/soloud.h"
#include "Audio/AudioClip.h"
#include "vendor/soloud/soloud_wav.h"
#include "Components/Transform.h"
#include "log/Log.h"
namespace ToyRenderer {
AudioEngine* AudioEngine::m_pSingelton = nullptr;
AudioEngine::AudioEngine() : m_soLoudBackend(nullptr)
... | 29.253731 | 181 | 0.729082 | IRCSS |
56f65353c1b604263049631bc31f9b911eef7970 | 1,608 | cpp | C++ | tests/api/evaluator/debug.cpp | SalusaSecondus/homomorphic-implementors-toolkit | b7775b77cb0ff4ff42a1b47bf958bb0e3c75fb9b | [
"Apache-2.0"
] | 38 | 2020-12-02T12:43:16.000Z | 2022-03-15T19:27:39.000Z | tests/api/evaluator/debug.cpp | SalusaSecondus/homomorphic-implementors-toolkit | b7775b77cb0ff4ff42a1b47bf958bb0e3c75fb9b | [
"Apache-2.0"
] | 15 | 2020-12-03T05:04:12.000Z | 2021-08-20T21:26:27.000Z | tests/api/evaluator/debug.cpp | SalusaSecondus/homomorphic-implementors-toolkit | b7775b77cb0ff4ff42a1b47bf958bb0e3c75fb9b | [
"Apache-2.0"
] | 6 | 2021-01-06T18:37:00.000Z | 2021-09-20T06:43:13.000Z | // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
#include <iostream>
#include "../../testutil.h"
#include "gtest/gtest.h"
#include "hit/hit.h"
using namespace std;
using namespace hit;
// Test variables.
const int RANGE = 16;
const int NUM_OF_SLOTS = 4096;... | 39.219512 | 119 | 0.758085 | SalusaSecondus |
56fcf68c14a83e2d81bcf4fc60c0157e0e6f41ff | 2,910 | cpp | C++ | liblumi/sources/Bmp.cpp | Rertsyd/LumiRT | d562fd786f769b385bc051e2ea8bcd26162a9dc6 | [
"MIT"
] | null | null | null | liblumi/sources/Bmp.cpp | Rertsyd/LumiRT | d562fd786f769b385bc051e2ea8bcd26162a9dc6 | [
"MIT"
] | null | null | null | liblumi/sources/Bmp.cpp | Rertsyd/LumiRT | d562fd786f769b385bc051e2ea8bcd26162a9dc6 | [
"MIT"
] | null | null | null | /* ************************************************************************** */
/* ,, */
/* `7MMF' db `7MM"""Mq. MMP""MM""YMM */
/* MM MM `MM.P' MM `7 ... | 35.060241 | 83 | 0.521993 | Rertsyd |
56fcfdbb0ae5310cd0986c36752dd5a390749e89 | 619 | cpp | C++ | MeetingCodes/Meeting3/Main.cpp | SubhoB/spectre-cpp-basics | 0f581b879e83e88d1491b31e22aa447419d471a3 | [
"MIT"
] | 15 | 2020-06-01T19:48:57.000Z | 2021-11-01T07:33:42.000Z | MeetingCodes/Meeting3/Main.cpp | SubhoB/spectre-cpp-basics | 0f581b879e83e88d1491b31e22aa447419d471a3 | [
"MIT"
] | 1 | 2020-06-02T02:43:41.000Z | 2020-06-02T03:55:50.000Z | MeetingCodes/Meeting3/Main.cpp | SubhoB/spectre-cpp-basics | 0f581b879e83e88d1491b31e22aa447419d471a3 | [
"MIT"
] | 6 | 2020-06-23T22:36:56.000Z | 2021-06-14T14:46:49.000Z | #include <iomanip>
#include <iostream>
#include "Rectangle.hpp"
int main() {
const Rectangle rect{4.0, 3.0};
Rectangle rect2{5.0, 6.0};
double x{4.0};
std::cout << std::setprecision(15) << std::fixed;
std::cout << "Width of rect: " << rect.width() << "\n";
std::cout << "Width of height: " << rect.heigh... | 26.913043 | 72 | 0.576737 | SubhoB |
71045a5127c78b16379afa0ea5c27e8be27cafa8 | 4,913 | cpp | C++ | Source/WinWakerLib/codec.cpp | bingart/WinWaker | dc3f6c067a5f215c17aa2e0c3386f92f158ec941 | [
"Apache-2.0"
] | null | null | null | Source/WinWakerLib/codec.cpp | bingart/WinWaker | dc3f6c067a5f215c17aa2e0c3386f92f158ec941 | [
"Apache-2.0"
] | null | null | null | Source/WinWakerLib/codec.cpp | bingart/WinWaker | dc3f6c067a5f215c17aa2e0c3386f92f158ec941 | [
"Apache-2.0"
] | null | null | null |
#include <windows.h>
#include <io.h>
#include <string>
#include "scrambler.h"
#include "base64.h"
#include "codec.h"
#include "easylog.hpp"
#include "libstr.h"
#include "key.h"
#define MAX_CODEC_LENGTH 20480000
#define MOD 13
BOOL Encode(const char* exe_file_path, const char* txt_file_path)
{
FILE* in = NULL;
FILE... | 19.34252 | 79 | 0.594342 | bingart |
7104938da106909fca42fe6914e1336cb08b4fb8 | 2,416 | cpp | C++ | solutions/course-schedule-ii/solution.cpp | locker/leetcode | bf34a697de47aaf32823224d054f9a45613ce180 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | solutions/course-schedule-ii/solution.cpp | locker/leetcode | bf34a697de47aaf32823224d054f9a45613ce180 | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | solutions/course-schedule-ii/solution.cpp | locker/leetcode | bf34a697de47aaf32823224d054f9a45613ce180 | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-08-30T06:53:23.000Z | 2019-08-30T06:53:23.000Z | #include <iostream>
#include <queue>
#include <utility>
#include <vector>
using namespace std;
template<typename T>
ostream& operator<<(ostream& out, const vector<T>& v)
{
out << '[';
for (auto it = v.begin(); it != v.end(); ++it) {
if (it != v.begin())
out << ',';
out << *it;
}
out << ']';
return out;
}
... | 24.16 | 77 | 0.577815 | locker |
710508bb4cb3f037bb877de0dfb45bf0e516d871 | 439 | cc | C++ | fft/utils/Signals.cc | ddamiani/fft-tests | 5f119271c12b4a8ae1caf3edb7c727d59d4f2170 | [
"BSD-3-Clause"
] | null | null | null | fft/utils/Signals.cc | ddamiani/fft-tests | 5f119271c12b4a8ae1caf3edb7c727d59d4f2170 | [
"BSD-3-Clause"
] | null | null | null | fft/utils/Signals.cc | ddamiani/fft-tests | 5f119271c12b4a8ae1caf3edb7c727d59d4f2170 | [
"BSD-3-Clause"
] | null | null | null | #include "Signals.hh"
#define _USE_MATH_DEFINES
#include <cmath>
void fft::math::signal(double& re, double& im, double frac) {
double theta = frac * M_PI; re = 1.0 * std::cos(10.0 * theta) +0.5 * std::cos(25.0 * theta); ... | 54.875 | 308 | 0.412301 | ddamiani |
71051b2400d6e0116bd99945bfa47dd6f5794812 | 2,391 | cpp | C++ | Source/Pineapple/Engine/Graphics/TextureAtlas.cpp | JoshYaxley/Pineapple | 490b0ccdfa26e2bb6fd9ec290b43b355462dd9ec | [
"Zlib"
] | 11 | 2017-04-15T14:44:19.000Z | 2022-02-04T13:16:04.000Z | Source/Pineapple/Engine/Graphics/TextureAtlas.cpp | JoshYaxley/Pineapple | 490b0ccdfa26e2bb6fd9ec290b43b355462dd9ec | [
"Zlib"
] | 25 | 2017-04-19T12:48:42.000Z | 2020-05-09T05:28:29.000Z | Source/Pineapple/Engine/Graphics/TextureAtlas.cpp | JoshYaxley/Pineapple | 490b0ccdfa26e2bb6fd9ec290b43b355462dd9ec | [
"Zlib"
] | 1 | 2019-04-21T21:14:04.000Z | 2019-04-21T21:14:04.000Z | /*------------------------------------------------------------------------------
Pineapple Game Engine - Copyright (c) 2011-2017 Adam Yaxley
This software is licensed under the Zlib license (see license.txt for details)
------------------------------------------------------------------------------*/
#include <Pine... | 24.397959 | 106 | 0.60435 | JoshYaxley |
7106db184bf174c54734760b9d196b1e6e9221ef | 1,121 | cpp | C++ | C-PhotoDeal_level2_APP/C-PhotoDeal_level2/main.cpp | numberwolf/iOSDealFace | 5a109690d143ac125a4b679a8ea6ef28a9f147e3 | [
"Apache-2.0"
] | 8 | 2016-03-12T08:39:56.000Z | 2021-07-12T01:48:20.000Z | C-PhotoDeal_level2_APP/C-PhotoDeal_level2/main.cpp | numberwolf/iOSDealFace | 5a109690d143ac125a4b679a8ea6ef28a9f147e3 | [
"Apache-2.0"
] | null | null | null | C-PhotoDeal_level2_APP/C-PhotoDeal_level2/main.cpp | numberwolf/iOSDealFace | 5a109690d143ac125a4b679a8ea6ef28a9f147e3 | [
"Apache-2.0"
] | 2 | 2016-03-15T09:48:38.000Z | 2017-02-04T23:53:32.000Z | //
// main.cpp
// C-PhotoDeal_level2
//
// Created by numberwolf on 2016/10/12.
// Copyright © 2016年 numberwolf. All rights reserved.
//
#include <iostream>
#include "canny_door.hpp"
#include "numberPhoto.hpp"
#include "tess_ocr.hpp"
using namespace cv;
using namespace std;
int main(int argc, const char * argv[]... | 28.74359 | 116 | 0.676182 | numberwolf |
7108d320e449735ac0586fe26b0123887828fa19 | 3,425 | cpp | C++ | test/variant.cpp | jmairboeck/PTL | fed731de5cf73219fad1f2006e2978d981c02535 | [
"BSL-1.0"
] | null | null | null | test/variant.cpp | jmairboeck/PTL | fed731de5cf73219fad1f2006e2978d981c02535 | [
"BSL-1.0"
] | null | null | null | test/variant.cpp | jmairboeck/PTL | fed731de5cf73219fad1f2006e2978d981c02535 | [
"BSL-1.0"
] | null | null | null |
// Copyright Michael Florian Hava.
// 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 <boost/test/unit_test.hpp>
#include "ptl/variant.hpp"
#include "moveable.hpp"
BOOST_AUTO_TEST... | 25.94697 | 82 | 0.675912 | jmairboeck |
711340b5d95cde832fd8f7900d9a3eb017149ef3 | 845 | cpp | C++ | samples/snippets/cpp/VS_Snippets_CLR/File GetAttributes/CPP/file getattributes.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 421 | 2018-04-01T01:57:50.000Z | 2022-03-28T15:24:42.000Z | samples/snippets/cpp/VS_Snippets_CLR/File GetAttributes/CPP/file getattributes.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 5,797 | 2018-04-02T21:12:23.000Z | 2022-03-31T23:54:38.000Z | samples/snippets/cpp/VS_Snippets_CLR/File GetAttributes/CPP/file getattributes.cpp | hamarb123/dotnet-api-docs | 6aeb55784944a2f1f5e773b657791cbd73a92dd4 | [
"CC-BY-4.0",
"MIT"
] | 1,482 | 2018-03-31T11:26:20.000Z | 2022-03-30T22:36:45.000Z |
// <Snippet1>
using namespace System;
using namespace System::IO;
using namespace System::Text;
int main()
{
String^ path = "c:\\temp\\MyTest.txt";
// Create the file if it does not exist.
if ( !File::Exists( path ) )
{
File::Create( path );
}
if ( (File::GetAttributes( pat... | 25.606061 | 118 | 0.583432 | hamarb123 |
7115ab51860209c3f30e6ca6e06bb72e15cfe21a | 712 | hpp | C++ | include/complex.hpp | BURNINGTIGER/Complex | c87aa365aa123a89608aa176342dc4ee9db019fb | [
"MIT"
] | null | null | null | include/complex.hpp | BURNINGTIGER/Complex | c87aa365aa123a89608aa176342dc4ee9db019fb | [
"MIT"
] | null | null | null | include/complex.hpp | BURNINGTIGER/Complex | c87aa365aa123a89608aa176342dc4ee9db019fb | [
"MIT"
] | null | null | null | #include <iostream>
#include <conio.h>
#include <locale>
using namespace std;
class Complex
{
double rel, img;
public:
Complex();
Complex(double real, double imag);
Complex add(const Complex) const;
Complex sub(const Complex) const;
Complex mult(const int) const;
Complex divd(const int) const;
Complex(cons... | 21.575758 | 49 | 0.710674 | BURNINGTIGER |
7122261a541cb87857a672832aedfaf08f6dd602 | 13,620 | hpp | C++ | src/mlpack/methods/ann/cnn.hpp | vj-ug/Contribution-to-mlpack | 0ddb5ed463861f459ff2829712bdc59ba9d810b0 | [
"BSD-3-Clause"
] | null | null | null | src/mlpack/methods/ann/cnn.hpp | vj-ug/Contribution-to-mlpack | 0ddb5ed463861f459ff2829712bdc59ba9d810b0 | [
"BSD-3-Clause"
] | null | null | null | src/mlpack/methods/ann/cnn.hpp | vj-ug/Contribution-to-mlpack | 0ddb5ed463861f459ff2829712bdc59ba9d810b0 | [
"BSD-3-Clause"
] | null | null | null | /**
* @file cnn.hpp
* @author Shangtong Zhang
* @author Marcus Edel
*
* Definition of the CNN class, which implements convolutional neural networks.
*/
#ifndef __MLPACK_METHODS_ANN_CNN_HPP
#define __MLPACK_METHODS_ANN_CNN_HPP
#include <mlpack/core.hpp>
#include <mlpack/methods/ann/network_traits.hpp>
#include <... | 33.058252 | 80 | 0.624156 | vj-ug |
7123259643cb93a1b3dda4dd1b15381b22bc0887 | 1,765 | cc | C++ | cpp/server/debug_server.cc | propaganda-gold/deeprev | 0c6ccf83131a879ed858acdb0675e75ebf2f2d3d | [
"BSD-3-Clause"
] | null | null | null | cpp/server/debug_server.cc | propaganda-gold/deeprev | 0c6ccf83131a879ed858acdb0675e75ebf2f2d3d | [
"BSD-3-Clause"
] | 2 | 2021-05-11T16:29:38.000Z | 2022-01-22T12:28:49.000Z | cpp/server/debug_server.cc | propaganda-gold/deeprev | 0c6ccf83131a879ed858acdb0675e75ebf2f2d3d | [
"BSD-3-Clause"
] | null | null | null | #include "absl/flags/flag.h"
#include "absl/flags/parse.h"
#include "api/router.h"
#include "data/connection.h"
#include "data/globals.h"
#include "data/vectorbook.pb.h"
#include "handlers/api.h"
#include "handlers/delegating_handler.h"
#include "handlers/requests.h"
#include "network/init.h"
#include "server/http_serv... | 28.934426 | 74 | 0.717847 | propaganda-gold |
712631463cd05be873393e3f95c1e72b548a884f | 2,759 | cpp | C++ | OpenTESArena/src/Media/Font.cpp | Digital-Monk/OpenTESArena | 95f0bdaa642ff090b94081795a53b00f10dc4b03 | [
"MIT"
] | null | null | null | OpenTESArena/src/Media/Font.cpp | Digital-Monk/OpenTESArena | 95f0bdaa642ff090b94081795a53b00f10dc4b03 | [
"MIT"
] | null | null | null | OpenTESArena/src/Media/Font.cpp | Digital-Monk/OpenTESArena | 95f0bdaa642ff090b94081795a53b00f10dc4b03 | [
"MIT"
] | null | null | null | #include <unordered_map>
#include "SDL.h"
#include "Font.h"
#include "FontName.h"
#include "../Assets/FontFile.h"
#include "../Rendering/Renderer.h"
#include "../Rendering/Surface.h"
#include "components/debug/Debug.h"
namespace
{
const std::unordered_map<FontName, std::string> FontFilenames =
{
... | 25.546296 | 82 | 0.654223 | Digital-Monk |
7128adf5c1f9d10dd50b9ce20fc49699b7eb1eb1 | 513 | cpp | C++ | compendium/test_bundles/ManagedServiceAndFactoryBundle/src/ManagedServiceFactoryServiceImpl.cpp | rohinikumar4073/CppMicroServices | f8ce77814c65eb8273823c7ca5df256ec9768956 | [
"Apache-2.0"
] | 1 | 2020-12-08T16:21:45.000Z | 2020-12-08T16:21:45.000Z | compendium/test_bundles/ManagedServiceAndFactoryBundle/src/ManagedServiceFactoryServiceImpl.cpp | iHouLei/CppMicroServices | aa9cc47dde75ba9ead18df399ce08269c15e3aa1 | [
"Apache-2.0"
] | null | null | null | compendium/test_bundles/ManagedServiceAndFactoryBundle/src/ManagedServiceFactoryServiceImpl.cpp | iHouLei/CppMicroServices | aa9cc47dde75ba9ead18df399ce08269c15e3aa1 | [
"Apache-2.0"
] | null | null | null | #include "ManagedServiceFactoryServiceImpl.hpp"
namespace cppmicroservices {
namespace service {
namespace cm {
namespace test {
TestManagedServiceFactoryServiceImpl::TestManagedServiceFactoryServiceImpl(int initialValue)
: value{initialValue} {}
TestManagedServiceFactoryServiceImpl::~TestManagedServiceFactorySe... | 24.428571 | 92 | 0.805068 | rohinikumar4073 |
71297894429bf2299c8e6b641c7a3a9cf26b29c1 | 981 | cpp | C++ | cloud_processing/cpp/ground_removal.cpp | MinesNicaicai/large-scale-pointcloud-matching | cfe140f2be1110ed75b6edd27538021e513a31c9 | [
"MIT"
] | 1 | 2020-11-21T16:39:51.000Z | 2020-11-21T16:39:51.000Z | cloud_processing/cpp/ground_removal.cpp | MinesNicaicai/large-scale-pointcloud-matching | cfe140f2be1110ed75b6edd27538021e513a31c9 | [
"MIT"
] | null | null | null | cloud_processing/cpp/ground_removal.cpp | MinesNicaicai/large-scale-pointcloud-matching | cfe140f2be1110ed75b6edd27538021e513a31c9 | [
"MIT"
] | 1 | 2020-12-13T14:51:44.000Z | 2020-12-13T14:51:44.000Z |
#include <pcl/point_types.h>
#include <pcl/io/pcd_io.h>
#include <string>
using PointT = pcl::PointXYZ;
int main(int argc, char **argv)
{
if (argc != 2) {
std::cout << "usage: ./ground_removal pcd-file\n";
return 0;
}
// Read in the cloud data
pcl::PCDReader reader;
pcl::PointCl... | 25.815789 | 87 | 0.623853 | MinesNicaicai |
712ab680f4ba1b33a33efb844bc787502179d0a0 | 363 | hpp | C++ | libmsr145/headers/libmsr145_structs.hpp | StefanRvO/libmsr145 | f9e49c1b116cdb8bb991084e9de11d5df8cd3b37 | [
"Beerware"
] | null | null | null | libmsr145/headers/libmsr145_structs.hpp | StefanRvO/libmsr145 | f9e49c1b116cdb8bb991084e9de11d5df8cd3b37 | [
"Beerware"
] | null | null | null | libmsr145/headers/libmsr145_structs.hpp | StefanRvO/libmsr145 | f9e49c1b116cdb8bb991084e9de11d5df8cd3b37 | [
"Beerware"
] | null | null | null | #pragma once
#include <cstdint>
#include "libmsr145_enums.hpp"
struct rec_entry
{
uint16_t address;
struct tm time;
uint16_t length;
bool isRecording;
};
struct sample
{
sampletype type;
int16_t value;
uint64_t timestamp; //this is the time since the start of the recording in 1/512 seconds
... | 19.105263 | 92 | 0.707989 | StefanRvO |
71311f1d13a7e8e83939ef6b87d92c0f10fbb72c | 224 | cpp | C++ | 2521/1683225_AC_0MS_68K.cpp | vandreas19/POJ_sol | 4895764ab800e8c2c4b2334a562dec2f07fa243e | [
"MIT"
] | 18 | 2017-08-14T07:34:42.000Z | 2022-01-29T14:20:29.000Z | 2521/1683225_AC_0MS_68K.cpp | pinepara/poj_solutions | 4895764ab800e8c2c4b2334a562dec2f07fa243e | [
"MIT"
] | null | null | null | 2521/1683225_AC_0MS_68K.cpp | pinepara/poj_solutions | 4895764ab800e8c2c4b2334a562dec2f07fa243e | [
"MIT"
] | 14 | 2016-12-21T23:37:22.000Z | 2021-07-24T09:38:57.000Z | #include<iostream.h>
void main()
{
int iCost,iSell,iFake,iBack;
while(1)
{
cin>>iCost>>iSell>>iFake>>iBack;
if(iCost==0 && iSell==0 && iFake==0 && iBack==0)
break;
cout<<iCost-iSell+iFake<<endl;
}
} | 17.230769 | 51 | 0.580357 | vandreas19 |
71376ccf83770aa04107f163ca946c1244c462a5 | 2,147 | cpp | C++ | progpar/test/progpar-test.cpp | dmitigr/cefeika | 6189843d4244f7334558708e57e952584561b1e0 | [
"Zlib"
] | 19 | 2019-07-21T15:38:12.000Z | 2022-01-06T05:24:48.000Z | progpar/test/progpar-test.cpp | dmitigr/cefeika | 6189843d4244f7334558708e57e952584561b1e0 | [
"Zlib"
] | 6 | 2019-12-07T22:12:37.000Z | 2022-01-10T22:31:48.000Z | progpar/test/progpar-test.cpp | dmitigr/cefeika | 6189843d4244f7334558708e57e952584561b1e0 | [
"Zlib"
] | 1 | 2019-08-15T14:49:00.000Z | 2019-08-15T14:49:00.000Z | // -*- C++ -*-
// Copyright (C) 2021 Dmitry Igrishin
//
// This software is provided 'as-is', without any express or implied
// warranty. In no event will the authors be held liable for any damages
// arising from the use of this software.
//
// Permission is granted to anyone to use this software for any purpose,
// i... | 32.044776 | 77 | 0.616209 | dmitigr |
7143ac46680ebf63717201570aae8b1099c84a9e | 6,537 | cpp | C++ | gddm/netlib_server.cpp | asm128/nwol | a28d6df356bec817393adcd2e6573a65841832e2 | [
"MIT"
] | 3 | 2017-06-05T13:49:43.000Z | 2017-06-19T22:31:58.000Z | gddm/netlib_server.cpp | asm128/nwol | a28d6df356bec817393adcd2e6573a65841832e2 | [
"MIT"
] | 1 | 2017-06-19T12:36:46.000Z | 2017-06-30T22:34:06.000Z | gddm/netlib_server.cpp | asm128/nwol | a28d6df356bec817393adcd2e6573a65841832e2 | [
"MIT"
] | null | null | null | #include "netlib_server.h"
#include "nwol_sleep.h"
#include "gref_definition.h"
#include <time.h>
#if defined(__WINDOWS__)
#include <process.h>
#include <WinSock2.h>
#endif
void gdnet::disconnectClient (SServer& serverInstance, int32_t clientId) {
::nwol::CMutexGuard lockClients ... | 50.284615 | 221 | 0.659936 | asm128 |
714a23b2269a75ab0a6137842ce74562b0f9f337 | 1,895 | cpp | C++ | Beeftext/Snippet/ShortcutSnippetFragment.cpp | sharpsteve/Beeftext | 9f4c7abfe6f33914cd49956f9c576ab5b10ff660 | [
"MIT"
] | 546 | 2017-12-19T15:44:56.000Z | 2022-03-29T20:38:01.000Z | Beeftext/Snippet/ShortcutSnippetFragment.cpp | sharpsteve/Beeftext | 9f4c7abfe6f33914cd49956f9c576ab5b10ff660 | [
"MIT"
] | 455 | 2017-12-30T07:47:49.000Z | 2022-03-24T15:53:14.000Z | Beeftext/Snippet/ShortcutSnippetFragment.cpp | sharpsteve/Beeftext | 9f4c7abfe6f33914cd49956f9c576ab5b10ff660 | [
"MIT"
] | 45 | 2018-03-04T15:07:22.000Z | 2022-03-16T22:13:58.000Z | /// \file
/// \author
///
/// \brief Implementation of shortcut snippet fragment class.
///
/// Copyright (c) . All rights reserved.
/// Licensed under the MIT License. See LICENSE file in the project root for full license information.
#include "stdafx.h"
#include "ShortcutSnippetFragment.h"
#include "Beeftext... | 37.9 | 120 | 0.355145 | sharpsteve |
7150dc8663ec4dddc2f9528a8cdb214f9023ad50 | 1,264 | cpp | C++ | leetcode/128_Longest_Consecutive_Sequence.cpp | wllvcxz/leetcode | 82358a0946084ba935ca1870b5e3f7c29c03fac3 | [
"MIT"
] | null | null | null | leetcode/128_Longest_Consecutive_Sequence.cpp | wllvcxz/leetcode | 82358a0946084ba935ca1870b5e3f7c29c03fac3 | [
"MIT"
] | null | null | null | leetcode/128_Longest_Consecutive_Sequence.cpp | wllvcxz/leetcode | 82358a0946084ba935ca1870b5e3f7c29c03fac3 | [
"MIT"
] | null | null | null | #include <unordered_map>
#include <vector>
using namespace std;
class Solution {
public:
int longestConsecutive(const vector<int> &nums) {
unordered_map<int, bool> used;
used.find(123);
for(auto i : nums)
used[i] = false;
int maxlen = 0;
for(auto i: nums){
... | 25.28 | 62 | 0.412184 | wllvcxz |
715ef9818033fa5e738ed84fdd366620ae9afdc4 | 657 | cpp | C++ | src/servo/ServoPublisher.cpp | CatixBot/KinematicsNode | 451d109a472807029de8dc7392dd851f3039c3db | [
"MIT"
] | null | null | null | src/servo/ServoPublisher.cpp | CatixBot/KinematicsNode | 451d109a472807029de8dc7392dd851f3039c3db | [
"MIT"
] | null | null | null | src/servo/ServoPublisher.cpp | CatixBot/KinematicsNode | 451d109a472807029de8dc7392dd851f3039c3db | [
"MIT"
] | null | null | null | #include "servo/ServoPublisher.h"
#include <catix_messages/ServoState.h>
servo::ServoPublisher::ServoPublisher(size_t servoIndex, ros::NodeHandle& node)
: servoIndex(servoIndex)
, publisherServoState(node.advertise<catix_messages::ServoState>("Catix/Servo", 1))
{
}
bool servo::ServoPublisher::setAngle(double... | 31.285714 | 87 | 0.757991 | CatixBot |
716a4f48a8db46c8577cc5bb2b5ef1ef5f698de7 | 28,586 | cpp | C++ | src/ofxRemoteUI.cpp | bensnell/ofxRemoteUI | 748c2da201d7568370610212efef4e4ea9710265 | [
"MIT"
] | 74 | 2015-01-06T05:08:42.000Z | 2022-01-09T03:29:14.000Z | src/ofxRemoteUI.cpp | bensnell/ofxRemoteUI | 748c2da201d7568370610212efef4e4ea9710265 | [
"MIT"
] | 15 | 2015-01-22T20:37:32.000Z | 2020-02-06T12:25:58.000Z | src/ofxRemoteUI.cpp | bensnell/ofxRemoteUI | 748c2da201d7568370610212efef4e4ea9710265 | [
"MIT"
] | 12 | 2015-02-22T16:52:14.000Z | 2020-06-30T04:19:10.000Z | //
// ofxRemoteUI.cpp
// emptyExample
//
// Created by Oriol Ferrer Mesià on 09/01/13.
//
//
#include "ofxRemoteUI.h"
#include <iostream>
#include <stdlib.h>
#include "uriencode.h"
#include <sstream>
#ifdef _WIN32
#include <windows.h>
#include <iphlpapi.h>
#include <WinSock2.h>
#pragma comment(lib, "iphlpapi.lib")... | 29.050813 | 167 | 0.669489 | bensnell |
716d6ff89efec8bad608f89174518f0b59c56ae0 | 2,783 | cpp | C++ | src/Components/ConcaveCollider.cpp | charlieSewell/YOKAI | 4fb39975e58e9a49bc984bc6e844721a7ad9462e | [
"MIT"
] | null | null | null | src/Components/ConcaveCollider.cpp | charlieSewell/YOKAI | 4fb39975e58e9a49bc984bc6e844721a7ad9462e | [
"MIT"
] | null | null | null | src/Components/ConcaveCollider.cpp | charlieSewell/YOKAI | 4fb39975e58e9a49bc984bc6e844721a7ad9462e | [
"MIT"
] | null | null | null | #include "ConcaveCollider.hpp"
ConcaveCollider::ConcaveCollider(GameObject* parent) : Component(parent){}
void ConcaveCollider::Start()
{
if(m_parent->GetComponent<Transform>() == nullptr)
{
m_parent->AddComponent<Transform>();
}
modelID = m_parent->GetComponent<DrawableEntity>()->GetModelID()... | 33.939024 | 161 | 0.775782 | charlieSewell |
716f342aa6b588f4e376ac4f8618ba577645342c | 1,928 | cpp | C++ | C++/Timer.cpp | juliafeingold/My-Cpp-programs | cbc7095082da25ce2a4f66d711d77af8d794206c | [
"Apache-2.0"
] | null | null | null | C++/Timer.cpp | juliafeingold/My-Cpp-programs | cbc7095082da25ce2a4f66d711d77af8d794206c | [
"Apache-2.0"
] | null | null | null | C++/Timer.cpp | juliafeingold/My-Cpp-programs | cbc7095082da25ce2a4f66d711d77af8d794206c | [
"Apache-2.0"
] | null | null | null |
#include <iostream>
using namespace std;
class Timer
{
protected:
int setting;
int current;
public:
Timer(int s){
setting = s;
current = s;
}
virtual void OneTick(){
current--;
}
virtual bool Done() const{
return (current == 0);
}
virtual void Reset(){
current = setting;
}
virtual void Go()
{
... | 14.176471 | 53 | 0.560685 | juliafeingold |
716fcb49daa264f7a86e37db02e53c3b1ac79a24 | 670 | cpp | C++ | src/hatchetfish_stopwatch.cpp | microwerx/hatchetfish | 923b951fc0ef578773fe88edaad9754d8a43ff77 | [
"MIT"
] | null | null | null | src/hatchetfish_stopwatch.cpp | microwerx/hatchetfish | 923b951fc0ef578773fe88edaad9754d8a43ff77 | [
"MIT"
] | null | null | null | src/hatchetfish_stopwatch.cpp | microwerx/hatchetfish | 923b951fc0ef578773fe88edaad9754d8a43ff77 | [
"MIT"
] | null | null | null | #include <hatchetfish_stopwatch.hpp>
namespace Hf {
StopWatch::StopWatch() {
start_timepoint = std::chrono::system_clock::now();
}
StopWatch::~StopWatch() {}
void StopWatch::Start() {
start_timepoint = std::chrono::system_clock::now();
}
void StopWatch::Stop() {
end_timepoint = std::chrono... | 23.928571 | 66 | 0.676119 | microwerx |
7172b98808cb8022c7da883aeb8c5bd3eadaa54b | 739 | cpp | C++ | atcoder/abc/abc162/b.cpp | yu3mars/proconVSCodeGcc | fcf36165bb14fb6f555664355e05dd08d12e426b | [
"MIT"
] | null | null | null | atcoder/abc/abc162/b.cpp | yu3mars/proconVSCodeGcc | fcf36165bb14fb6f555664355e05dd08d12e426b | [
"MIT"
] | null | null | null | atcoder/abc/abc162/b.cpp | yu3mars/proconVSCodeGcc | fcf36165bb14fb6f555664355e05dd08d12e426b | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
#define REP(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)
#define all(x) (x).begin(),(x).end()
#define m0(x) memset(x,0,sizeof(x))
int dx4[4] = {1,0,-1,0}, dy4[4] = {0,1... | 18.02439 | 58 | 0.516915 | yu3mars |
71794cdb6a0874ede23cb71158bf445c76abbe89 | 1,476 | cpp | C++ | audio/linux/AudioEngine-linux.cpp | yangosoft/cocos2d-x-arm-opengles | af33a880b3f375ea31f0eacf4ffab769424ceba6 | [
"MIT"
] | 1 | 2020-12-26T19:47:41.000Z | 2020-12-26T19:47:41.000Z | audio/linux/AudioEngine-linux.cpp | yangosoft/cocos2d-x-arm-opengles | af33a880b3f375ea31f0eacf4ffab769424ceba6 | [
"MIT"
] | 1 | 2018-05-09T08:39:17.000Z | 2018-06-13T05:44:43.000Z | audio/linux/AudioEngine-linux.cpp | yangosoft/cocos2d-x-arm-opengles | af33a880b3f375ea31f0eacf4ffab769424ceba6 | [
"MIT"
] | null | null | null | /**
* @author cesarpachon
*/
#include <cstring>
#include "audio/linux/AudioEngine-linux.h"
#include "cocos2d.h"
using namespace cocos2d;
using namespace cocos2d::experimental;
AudioEngineImpl * g_AudioEngineImpl = nullptr;
typedef int FMOD_RESULT;
AudioEngineImpl::AudioEngineImpl(){
};
AudioEngineImpl::~Audi... | 15.216495 | 117 | 0.72019 | yangosoft |
717a9cc799efd9644639ab0d1289a8b34e6f68e8 | 332 | cpp | C++ | code/uva/Q494.cpp | as535364/Judge-WriteupCode | e3e439a8c01d473e84422558593f7c992d0e9f8d | [
"MIT"
] | null | null | null | code/uva/Q494.cpp | as535364/Judge-WriteupCode | e3e439a8c01d473e84422558593f7c992d0e9f8d | [
"MIT"
] | null | null | null | code/uva/Q494.cpp | as535364/Judge-WriteupCode | e3e439a8c01d473e84422558593f7c992d0e9f8d | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
using namespace std;
int main() {
string s;
while(getline (cin,s) ){
bool flag = 0;
int ans = 0;
for(int i=0;i<s.size();i++){
if( ('A'<=s[i]&&s[i]<='Z')||('a'<=s[i]&&s[i]<='z') )
flag = 1;
else if(flag==1){
ans++;
flag = 0;
}
}
cout<<ans<<'\n';
}
... | 15.809524 | 55 | 0.478916 | as535364 |
717e672f38fe33083e75f97b54301e9deae62407 | 1,057 | cpp | C++ | src/engine/Log.cpp | KrokodileGlue/blueshock | 0e082556015562ec8fd847b9fb2f0ec62bdd9bd9 | [
"MIT"
] | null | null | null | src/engine/Log.cpp | KrokodileGlue/blueshock | 0e082556015562ec8fd847b9fb2f0ec62bdd9bd9 | [
"MIT"
] | 1 | 2019-06-09T14:16:34.000Z | 2019-06-18T20:10:42.000Z | src/engine/Log.cpp | KrokodileGlue/blueshock | 0e082556015562ec8fd847b9fb2f0ec62bdd9bd9 | [
"MIT"
] | null | null | null | #include "Log.h"
#include <algorithm>
#include <fstream>
#include <chrono>
#include <ctime>
std::ostringstream oss;
std::ostringstream null_stream;
LogLevel max_log_level = LogLevel::DEBUG3;
std::ostringstream& log(LogLevel level)
{
if (level > max_log_level) {
null_stream.str(""), null_stream.clear();
return ... | 22.020833 | 85 | 0.676443 | KrokodileGlue |
7180d4551c55f2a4edf3579c055c57094047cc56 | 34,226 | cpp | C++ | external/GTEngine/Source/Imagics/GteMarchingCubesTable.cpp | yushuiqiang/geometry3cpp | 2727986b89da2d40ffbd0dddb6947183c8bf68b0 | [
"BSL-1.0"
] | 1 | 2021-02-18T10:25:42.000Z | 2021-02-18T10:25:42.000Z | external/GTEngine/Source/Imagics/GteMarchingCubesTable.cpp | yushuiqiang/geometry3cpp | 2727986b89da2d40ffbd0dddb6947183c8bf68b0 | [
"BSL-1.0"
] | null | null | null | external/GTEngine/Source/Imagics/GteMarchingCubesTable.cpp | yushuiqiang/geometry3cpp | 2727986b89da2d40ffbd0dddb6947183c8bf68b0 | [
"BSL-1.0"
] | null | null | null | // David Eberly, Geometric Tools, Redmond WA 98052
// Copyright (c) 1998-2018
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
// File Version: 3.0.0 (2016/06/19)
#include <GTEnginePCH.h>
#includ... | 125.369963 | 134 | 0.315754 | yushuiqiang |
7184fc1cd21606c535d6a2867dd72c3ebf651762 | 229 | hpp | C++ | src/lib/utils/null_streambuf.hpp | nilsthamm/hyrise | 75a701f281bb7dc1636832012c43005ec3c66384 | [
"MIT"
] | 2 | 2019-01-22T19:44:32.000Z | 2019-01-22T19:52:33.000Z | src/lib/utils/null_streambuf.hpp | nilsthamm/hyrise | 75a701f281bb7dc1636832012c43005ec3c66384 | [
"MIT"
] | 69 | 2019-05-24T10:01:32.000Z | 2019-12-13T19:09:05.000Z | src/lib/utils/null_streambuf.hpp | nilsthamm/hyrise | 75a701f281bb7dc1636832012c43005ec3c66384 | [
"MIT"
] | null | null | null | #pragma once
#include <iosfwd>
namespace opossum {
// Create no-op stream that just swallows everything streamed into it
// See https://stackoverflow.com/a/11826666
std::ostream& get_null_streambuf();
} // namespace opossum
| 19.083333 | 69 | 0.751092 | nilsthamm |
71852aa19c76eef464ec2e50994909b5d2afb0ff | 6,257 | cpp | C++ | WildMagic4/LibFoundation/ComputationalGeometry/Wm4Query.cpp | rms80/libgeometry | e60ec7d34968573a9cda3f3bf56d2d4717385dc9 | [
"BSL-1.0"
] | 23 | 2015-08-13T07:36:00.000Z | 2022-01-24T19:00:04.000Z | WildMagic4/LibFoundation/ComputationalGeometry/Wm4Query.cpp | rms80/libgeometry | e60ec7d34968573a9cda3f3bf56d2d4717385dc9 | [
"BSL-1.0"
] | null | null | null | WildMagic4/LibFoundation/ComputationalGeometry/Wm4Query.cpp | rms80/libgeometry | e60ec7d34968573a9cda3f3bf56d2d4717385dc9 | [
"BSL-1.0"
] | 6 | 2015-07-06T21:37:31.000Z | 2020-07-01T04:07:50.000Z | // Geometric Tools, LLC
// Copyright (c) 1998-2010
// Distributed under the Boost Software License, Version 1.0.
// http://www.boost.org/LICENSE_1_0.txt
// http://www.geometrictools.com/License/Boost/LICENSE_1_0.txt
//
// File Version: 4.10.0 (2009/11/18)
#include "Wm4FoundationPCH.h"
#include "Wm4Query.h"
u... | 26.400844 | 79 | 0.282564 | rms80 |
718d9f01288ac2f7d4dbbb76e6f7c3fad456603b | 7,808 | cpp | C++ | dlc/src/v20210125/model/TableInfo.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 43 | 2019-08-14T08:14:12.000Z | 2022-03-30T12:35:09.000Z | dlc/src/v20210125/model/TableInfo.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 12 | 2019-07-15T10:44:59.000Z | 2021-11-02T12:35:00.000Z | dlc/src/v20210125/model/TableInfo.cpp | suluner/tencentcloud-sdk-cpp | a56c73cc3f488c4d1e10755704107bb15c5e000d | [
"Apache-2.0"
] | 28 | 2019-07-12T09:06:22.000Z | 2022-03-30T08:04:18.000Z | /*
* Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
... | 29.243446 | 136 | 0.653304 | suluner |
718f2915857eb78572ee3087ff8964cb0a6cb89e | 3,848 | cpp | C++ | PressureEngineCore/Src/Graphics/Skybox/SkyboxRenderer.cpp | Playturbo/PressureEngine | 6b023165fcaecb267e13cf5532ea26a8da3f1450 | [
"MIT"
] | 1 | 2017-09-13T13:29:27.000Z | 2017-09-13T13:29:27.000Z | PressureEngineCore/Src/Graphics/Skybox/SkyboxRenderer.cpp | Playturbo/PressureEngine | 6b023165fcaecb267e13cf5532ea26a8da3f1450 | [
"MIT"
] | null | null | null | PressureEngineCore/Src/Graphics/Skybox/SkyboxRenderer.cpp | Playturbo/PressureEngine | 6b023165fcaecb267e13cf5532ea26a8da3f1450 | [
"MIT"
] | 1 | 2019-01-18T07:16:59.000Z | 2019-01-18T07:16:59.000Z | #include "SkyboxRenderer.h"
#include "../Textures/TextureManager.h"
namespace Pressure {
const std::vector<float> SkyboxRenderer::VERTICES = {
-PRESSURE_SKYBOX_SIZE, PRESSURE_SKYBOX_SIZE, -PRESSURE_SKYBOX_SIZE,
-PRESSURE_SKYBOX_SIZE, -PRESSURE_SKYBOX_SIZE, -PRESSURE_SKYBOX_SIZE,
PRESSURE_SKYBOX_SIZE, -PRESSURE... | 48.1 | 77 | 0.836798 | Playturbo |
719f720be5fbe75c0f3c5fe4a2b09b9b8d09eaac | 20,394 | cpp | C++ | src/funcs_cpp/BACKUP/BKU_lib_integrals_electron.cpp | Jussmith01/HFSCFCISProgram | 957d92229905c06fb97fba4ca3c2765ae8f700bb | [
"MIT"
] | null | null | null | src/funcs_cpp/BACKUP/BKU_lib_integrals_electron.cpp | Jussmith01/HFSCFCISProgram | 957d92229905c06fb97fba4ca3c2765ae8f700bb | [
"MIT"
] | null | null | null | src/funcs_cpp/BACKUP/BKU_lib_integrals_electron.cpp | Jussmith01/HFSCFCISProgram | 957d92229905c06fb97fba4ca3c2765ae8f700bb | [
"MIT"
] | null | null | null | #define _USE_MATH_DEFINES
#include <stdio.h>
#include <stdlib.h>
#include <sstream>
#include <string.h>
#include <string>
#include <cmath>
#include <math.h>
#include <fstream>
#include <time.h>
#include <iostream>
#include "../utils_cpp/lib_includes.h"
#include "../classes/classes.h"
#include "../scf_main/scf_classes.... | 43.484009 | 409 | 0.500539 | Jussmith01 |
71a8e84d1bee23bd95dc69a14bc2afb34cdc7ffb | 4,306 | cpp | C++ | quad.cpp | mihalyvaghy/whiteboard | 252d938157ff29740c2a9ba68904df9a0c8d28f0 | [
"MIT"
] | null | null | null | quad.cpp | mihalyvaghy/whiteboard | 252d938157ff29740c2a9ba68904df9a0c8d28f0 | [
"MIT"
] | null | null | null | quad.cpp | mihalyvaghy/whiteboard | 252d938157ff29740c2a9ba68904df9a0c8d28f0 | [
"MIT"
] | null | null | null | #include <string>
#include "quad.hpp"
double QuadTree::Node::diffThreshold = 45.0;
std::map<char, Color> QuadTree::Node::colorMap = QuadTree::Node::initializeColorMap();
std::map<char, Color> QuadTree::Node::initializeColorMap() {
std::map<char, Color> res;
res['k'] = Color::BLACK;
res['b'] = Color::BLUE;
res['g... | 24.327684 | 118 | 0.602183 | mihalyvaghy |
71a975ed8787b8ddd826d80a98ed774f88982031 | 1,074 | cpp | C++ | solutions/c++/problems/[0265_Hard] Paint House II.cpp | RageBill/leetcode | a11d411f4e38b5c3f05ca506a193f50b25294497 | [
"MIT"
] | 6 | 2021-02-20T14:00:22.000Z | 2022-03-31T15:26:44.000Z | solutions/c++/problems/[0265_Hard] Paint House II.cpp | RageBill/leetcode | a11d411f4e38b5c3f05ca506a193f50b25294497 | [
"MIT"
] | null | null | null | solutions/c++/problems/[0265_Hard] Paint House II.cpp | RageBill/leetcode | a11d411f4e38b5c3f05ca506a193f50b25294497 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
class Solution {
public:
vector<int> getCurrCost(vector<int> prev, vector<int> curr) {
int n = prev.size();
int min = 999;
int min2 = 1000;
for (int num: prev) {
if (num < min) {
min2 = min;
m... | 27.538462 | 72 | 0.443203 | RageBill |
71ac1784b47660a2bd641055f45236018d8dda94 | 7,291 | cpp | C++ | BeaconCompilerBackend.cpp | beacon1096/Project-Guider | 3dcb16da2e091878e340a33230e66ddd4b4c2be1 | [
"Apache-2.0"
] | null | null | null | BeaconCompilerBackend.cpp | beacon1096/Project-Guider | 3dcb16da2e091878e340a33230e66ddd4b4c2be1 | [
"Apache-2.0"
] | null | null | null | BeaconCompilerBackend.cpp | beacon1096/Project-Guider | 3dcb16da2e091878e340a33230e66ddd4b4c2be1 | [
"Apache-2.0"
] | null | null | null | #include "BeaconCompilerBackend.h"
BeaconCompilerBackend::BeaconCompilerBackend(QObject *parent) : QObject(parent)
{
QSettings settings;
if(!settings.value("gccPath").toString().isEmpty()){
gcc.setProgram(settings.value("gccPath").toString());
gpp.setProgram(settings.value("gppPath").toString()... | 43.921687 | 255 | 0.654368 | beacon1096 |
71b84c3a2426d6a1ffa72dbf69768504bf6bacf9 | 214 | cpp | C++ | SourceCode/main.cpp | Remsya/M2Process | b2ad03ed91cc32305a114de187ac6dbc463baae7 | [
"MIT"
] | null | null | null | SourceCode/main.cpp | Remsya/M2Process | b2ad03ed91cc32305a114de187ac6dbc463baae7 | [
"MIT"
] | null | null | null | SourceCode/main.cpp | Remsya/M2Process | b2ad03ed91cc32305a114de187ac6dbc463baae7 | [
"MIT"
] | null | null | null | //
// main.cpp
// CauchyProcess, 1-dimension only
//
// Created by Rémi Carnec on 13/05/2020.
// Copyright © 2020 Rémi Carnec. All rights reserved.
//
int main(int argc, const char * argv[]){
return 0;
}
| 16.461538 | 54 | 0.640187 | Remsya |
71bc1fa5fd7927bc8e6cc6d9877f27f0c54aaae1 | 516 | hpp | C++ | source/Graphics/GLCheck.hpp | Dante12129/Pancake | 35282814e2f3b2d5e155a539ca5ddee32e240d3e | [
"Zlib"
] | null | null | null | source/Graphics/GLCheck.hpp | Dante12129/Pancake | 35282814e2f3b2d5e155a539ca5ddee32e240d3e | [
"Zlib"
] | null | null | null | source/Graphics/GLCheck.hpp | Dante12129/Pancake | 35282814e2f3b2d5e155a539ca5ddee32e240d3e | [
"Zlib"
] | null | null | null | //File adapted from SFML source code, https://github.com/LaurentGomila/SFML
#ifndef GLCHECK_HPP
#define GLCHECK_HPP
#include <string>
namespace pcke
{
#ifdef PCKE_DEBUG
// In debug mode, perform a test on every OpenGL call
#define glCheck(x) x; pcke::glCheckError(__FILE__, __LINE__);
#else
... | 19.846154 | 75 | 0.676357 | Dante12129 |
71ce8ea516e381387939e641d93df8d5fe46cc76 | 422 | cpp | C++ | src/admin/migrate.cpp | victorvw/eos-wps | e115197eb78b6f6a851f253f68784324383fae14 | [
"MIT"
] | 4 | 2020-03-26T11:12:07.000Z | 2020-04-19T02:07:31.000Z | src/admin/migrate.cpp | victorvw/eos-wps | e115197eb78b6f6a851f253f68784324383fae14 | [
"MIT"
] | 13 | 2019-12-12T21:33:49.000Z | 2019-12-22T17:23:54.000Z | src/admin/migrate.cpp | victorvw/eos-wps | e115197eb78b6f6a851f253f68784324383fae14 | [
"MIT"
] | 4 | 2019-11-11T14:13:25.000Z | 2020-03-15T17:44:38.000Z | void wps::migrate( const name type )
{
require_auth( get_self() );
if (type == "del.comment"_n) {
for ( auto row : _proposals ) {
comments_table _comments( get_self(), row.proposal_name.value );
auto comment_itr = _comments.begin();
while ( comment_itr != _comments.e... | 30.142857 | 76 | 0.545024 | victorvw |
71d211f8f05affbfcb9d38d47caad40b91c5ae15 | 16,601 | hpp | C++ | SDK/ARKSurvivalEvolved_Dino_Character_BP_DivingFlyer_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_Dino_Character_BP_DivingFlyer_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_Dino_Character_BP_DivingFlyer_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 3 | 2020-07-22T17:42:07.000Z | 2021-06-19T17:16:13.000Z | #pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_Dino_Character_BP_DivingFlyer_classes.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Parameters
//----------------------------------------... | 52.369085 | 173 | 0.630805 | 2bite |
71d9e0440a273165a085872bb963684a3c3363db | 1,496 | cpp | C++ | core/net/ntp.cpp | JartC0ding/horizon | 2b9a75b45ac768a8da0f7a98f164a37690dc583f | [
"MIT"
] | 4 | 2022-01-06T09:19:46.000Z | 2022-03-27T18:08:36.000Z | core/net/ntp.cpp | JartC0ding/horizon | 2b9a75b45ac768a8da0f7a98f164a37690dc583f | [
"MIT"
] | null | null | null | core/net/ntp.cpp | JartC0ding/horizon | 2b9a75b45ac768a8da0f7a98f164a37690dc583f | [
"MIT"
] | 1 | 2022-03-22T19:10:05.000Z | 2022-03-22T19:10:05.000Z | #include <net/ntp.h>
#include <utils/abort.h>
#include <utils/log.h>
#include <utils/string.h>
#include <timer/timer.h>
#include <utils/unix_time.h>
using namespace net;
network_time_protocol::network_time_protocol(udp_socket* socket) {
this->socket = socket;
}
void network_time_protocol::on_udp_message(udp_socket... | 25.793103 | 118 | 0.720588 | JartC0ding |
71e387d3770567a10d0f161f181cf185497fa96b | 6,358 | cpp | C++ | template_mp/src/utils/RCBot2/bot_accessclient.cpp | moeabm/VS2013 | dd29099567b286acac7bb542a06f085df78ea480 | [
"Unlicense"
] | null | null | null | template_mp/src/utils/RCBot2/bot_accessclient.cpp | moeabm/VS2013 | dd29099567b286acac7bb542a06f085df78ea480 | [
"Unlicense"
] | null | null | null | template_mp/src/utils/RCBot2/bot_accessclient.cpp | moeabm/VS2013 | dd29099567b286acac7bb542a06f085df78ea480 | [
"Unlicense"
] | null | null | null | /*
* This file is part of RCBot.
*
* RCBot by Paul Murphy adapted from Botman's HPB Bot 2 template.
*
* RCBot 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 Licen... | 25.031496 | 155 | 0.651777 | moeabm |
71e4828fe3a91bf35c9f4748b2daa081a9dfb241 | 6,718 | cpp | C++ | lighthub/modules/in_ccs811_hdc1080.cpp | anklimov/lighthub | 99e9c1a27aca52bf38efec000547720fb8f82860 | [
"Apache-2.0"
] | 83 | 2017-11-05T14:05:16.000Z | 2022-02-21T16:34:53.000Z | lighthub/modules/in_ccs811_hdc1080.cpp | anklimov/lighthub | 99e9c1a27aca52bf38efec000547720fb8f82860 | [
"Apache-2.0"
] | 27 | 2018-03-12T21:49:33.000Z | 2022-01-20T19:06:05.000Z | lighthub/modules/in_ccs811_hdc1080.cpp | anklimov/lighthub | 99e9c1a27aca52bf38efec000547720fb8f82860 | [
"Apache-2.0"
] | 20 | 2017-11-20T08:27:17.000Z | 2022-03-28T02:26:17.000Z | #include "modules/in_ccs811_hdc1080.h"
#include "Arduino.h"
#include "options.h"
#include "Streaming.h"
#include "item.h"
#include "main.h"
#if defined(M5STACK)
#include <M5Stack.h>
#endif
#ifndef CSSHDC_DISABLE
static ClosedCube_HDC1080 hdc1080;
static CCS811 ccs811(CCS811_ADDR);
long ccs811Baseline;
static bool H... | 26.448819 | 91 | 0.686365 | anklimov |
71e90916fb1a1ee401320c25368a423298bb280a | 5,873 | cpp | C++ | src/display/VRDisplayNode.cpp | elainejiang8/MinVR | d3905b0a7b6b3e324e6ab3773ef29f651b8ad9d7 | [
"BSD-3-Clause"
] | null | null | null | src/display/VRDisplayNode.cpp | elainejiang8/MinVR | d3905b0a7b6b3e324e6ab3773ef29f651b8ad9d7 | [
"BSD-3-Clause"
] | null | null | null | src/display/VRDisplayNode.cpp | elainejiang8/MinVR | d3905b0a7b6b3e324e6ab3773ef29f651b8ad9d7 | [
"BSD-3-Clause"
] | null | null | null | /*
* Copyright Regents of the University of Minnesota, 2016. This software is released under the following license: http://opensource.org/licenses/
* Source code originally developed at the University of Minnesota Interactive Visualization Lab (http://ivlab.cs.umn.edu).
*
* Code author(s):
* Dan Orban (dtorban)... | 30.273196 | 146 | 0.612294 | elainejiang8 |
71eae2207b9960d1915ef7957da7c589d508f102 | 1,882 | cpp | C++ | problems/codejam/2021/2/matrygons/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | 7 | 2020-10-15T22:37:10.000Z | 2022-02-26T17:23:49.000Z | problems/codejam/2021/2/matrygons/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | null | null | null | problems/codejam/2021/2/matrygons/code.cpp | brunodccarvalho/competitive | 4177c439174fbe749293b9da3445ce7303bd23c2 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
// *****
vector<int> primes, lp, nxt;
auto get_divisors(const unordered_map<int, int>& factors) {
vector<int> divs = {1};
for (const auto& [p, e] : factors) {
int D = divs.size();
divs.resize(D * (e + 1));
for (int n = 1; n <= e; n++) {
... | 21.386364 | 81 | 0.425611 | brunodccarvalho |
71ec616984ec83f8c0d5bc35f4c489b5450206c5 | 690 | hpp | C++ | include/strf/fps.hpp | AnttiVainio/STRF | 8c397a1efad0e35f76de0242c4fb82f48b48e824 | [
"MIT"
] | null | null | null | include/strf/fps.hpp | AnttiVainio/STRF | 8c397a1efad0e35f76de0242c4fb82f48b48e824 | [
"MIT"
] | null | null | null | include/strf/fps.hpp | AnttiVainio/STRF | 8c397a1efad0e35f76de0242c4fb82f48b48e824 | [
"MIT"
] | null | null | null | /** fps.hpp **/
#ifndef STRF_FPS_HPP
#define STRF_FPS_HPP
#include <strf/global.hpp>
#include <deque>
namespace strf {
#ifndef STRF_INIT_HPP
DLL_EXPORT void DLL_CALL set_fps_draw_size(cfloat value = 40.0);
#endif
class DLL_EXPORT fps {
private:
fps(const fps &fps); //Copy constructor
fps &operator=(con... | 17.692308 | 65 | 0.688406 | AnttiVainio |
71ecf89145d9edcafadc572248fecacead660f35 | 1,049 | hpp | C++ | include/SDPVer.hpp | Cyberunner23/libSDP | 0c4cffc951980c618c6f0e04bb8c3b184f246226 | [
"Apache-2.0"
] | 3 | 2015-03-07T09:51:56.000Z | 2017-05-13T20:17:15.000Z | include/SDPVer.hpp | Cyberunner23/libSDP | 0c4cffc951980c618c6f0e04bb8c3b184f246226 | [
"Apache-2.0"
] | null | null | null | include/SDPVer.hpp | Cyberunner23/libSDP | 0c4cffc951980c618c6f0e04bb8c3b184f246226 | [
"Apache-2.0"
] | null | null | null | /*
Copyright 2015 Alex Frappier Lachapelle
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... | 21.854167 | 75 | 0.666349 | Cyberunner23 |
71ecfa1dd87de1a6f3903e8a1189a73efa335ea3 | 4,231 | hh | C++ | src/patient/patient.hh | Apperta-IXN-for-the-NHS/GOSH-FHIRworks2020-datamaskgen | b8c075b01640f99730fcd39ad87c3009a510fa01 | [
"Apache-2.0"
] | 2 | 2020-03-10T04:35:17.000Z | 2020-03-30T12:26:51.000Z | src/patient/patient.hh | Apperta-IXN-for-the-NHS/GOSH-FHIRworks2020-datamaskgen | b8c075b01640f99730fcd39ad87c3009a510fa01 | [
"Apache-2.0"
] | 4 | 2020-03-09T01:11:30.000Z | 2020-03-10T03:12:43.000Z | src/patient/patient.hh | Apperta-IXN-for-the-NHS/GOSH-FHIRworks2020-datamaskgen | b8c075b01640f99730fcd39ad87c3009a510fa01 | [
"Apache-2.0"
] | 1 | 2020-05-29T14:38:49.000Z | 2020-05-29T14:38:49.000Z | //
// Created by Patrick Wu on 02/03/2020.
//
#ifndef GOSH_FHIRWORKS2020_DATAMASKGEN_PATIENT_HH
#define GOSH_FHIRWORKS2020_DATAMASKGEN_PATIENT_HH
#include <string>
#include <ctime>
#include <vector>
#include <sstream>
#include "name.hh"
#include "address.hh"
#include "language.hh"
#include "telecom.hh"
#include "ide... | 35.855932 | 177 | 0.559679 | Apperta-IXN-for-the-NHS |
71ee75f97a2554d9a1cb1c7024b7d96104074b96 | 5,839 | cpp | C++ | src/input.cpp | adhithyaarun/Plane-Game-3D | aa9c2ec75baa662f3d75d27bd5a5301a4fb99f21 | [
"MIT"
] | null | null | null | src/input.cpp | adhithyaarun/Plane-Game-3D | aa9c2ec75baa662f3d75d27bd5a5301a4fb99f21 | [
"MIT"
] | null | null | null | src/input.cpp | adhithyaarun/Plane-Game-3D | aa9c2ec75baa662f3d75d27bd5a5301a4fb99f21 | [
"MIT"
] | null | null | null | #include <iostream>
#include <cmath>
#include <fstream>
#include <vector>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#define GLM_FORCE_RADIANS
#include <glm/glm.hpp>
#include <glm/gtx/transform.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include "main.h"
bool cannon_keyboard_input = true;
bool drag_pan = fa... | 28.34466 | 104 | 0.520466 | adhithyaarun |
71f4f5f29690ea96f7894af73f012517a50d9a85 | 618 | hpp | C++ | src/main_finding_players.hpp | MlsDmitry/RakNet-samples | 05873aecb5c8dac0c0f822845c764bd5f8dc6a6d | [
"MIT"
] | null | null | null | src/main_finding_players.hpp | MlsDmitry/RakNet-samples | 05873aecb5c8dac0c0f822845c764bd5f8dc6a6d | [
"MIT"
] | null | null | null | src/main_finding_players.hpp | MlsDmitry/RakNet-samples | 05873aecb5c8dac0c0f822845c764bd5f8dc6a6d | [
"MIT"
] | null | null | null | #pragma once
#include "RakPeerInterface.h"
#include "RakNetTypes.h"
#include "RakNetDefines.h"
#include "RakNetStatistics.h"
#include "BitStream.h"
#include "StringCompressor.h"
#include "GetTime.h"
#include "MessageIdentifiers.h"
#include "NetworkIDManager.h"
#include "RakSleep.h"
// std::mutex mtx;
// RakNet::RakP... | 23.769231 | 72 | 0.779935 | MlsDmitry |
71f57908aac86476880e84d5d9092902524641f9 | 222 | hpp | C++ | reflex/test/implementation/members/Get.hpp | paulwratt/cin-5.34.00 | 036a8202f11a4a0e29ccb10d3c02f304584cda95 | [
"MIT"
] | 10 | 2018-03-26T07:41:44.000Z | 2021-11-06T08:33:24.000Z | reflex/test/implementation/members/Get.hpp | paulwratt/cin-5.34.00 | 036a8202f11a4a0e29ccb10d3c02f304584cda95 | [
"MIT"
] | null | null | null | reflex/test/implementation/members/Get.hpp | paulwratt/cin-5.34.00 | 036a8202f11a4a0e29ccb10d3c02f304584cda95 | [
"MIT"
] | 1 | 2020-11-17T03:17:00.000Z | 2020-11-17T03:17:00.000Z | // Tests for Get
template <typename U>
struct St {
struct A {
int a;
static int s;
};
typedef A T;
};
#ifndef __GCCXML__
template <typename U>
int St<U>::A::s = 43;
#endif
template class St<int>;
| 11.1 | 23 | 0.594595 | paulwratt |
71f8202f267e4ebfd95289c46523925636024e83 | 976 | cc | C++ | src/hlib/libcpp/conv.cc | hascal/llvm | f9893068ec2cff12889d2a8c3f935bccda8769e3 | [
"MIT"
] | null | null | null | src/hlib/libcpp/conv.cc | hascal/llvm | f9893068ec2cff12889d2a8c3f935bccda8769e3 | [
"MIT"
] | null | null | null | src/hlib/libcpp/conv.cc | hascal/llvm | f9893068ec2cff12889d2a8c3f935bccda8769e3 | [
"MIT"
] | null | null | null |
int to_int(string s){
return std::stoi(s);
}
int to_int(float s){
return (int)s;
}
int to_int(bool s){
return (int)s;
}
int to_int(int s){
return s;
}
int to_int(char s){
return (int)s-48; // ASCII chars starts with 48
}
string to_string(int s){
string res = std::to_string(s);
return res;
}
string to_stri... | 12.2 | 48 | 0.643443 | hascal |
71fb19f6b6f42cb73cd54f5f176f7b060237af0f | 3,097 | cpp | C++ | dal gita/src/Prostopadloscian.cpp | Szymon253191/Zadanie_Dron_Podwodny | c5c88f2c67bd90eb6c216dc068b1bf60483cd766 | [
"MIT"
] | null | null | null | dal gita/src/Prostopadloscian.cpp | Szymon253191/Zadanie_Dron_Podwodny | c5c88f2c67bd90eb6c216dc068b1bf60483cd766 | [
"MIT"
] | null | null | null | dal gita/src/Prostopadloscian.cpp | Szymon253191/Zadanie_Dron_Podwodny | c5c88f2c67bd90eb6c216dc068b1bf60483cd766 | [
"MIT"
] | null | null | null | #include "Prostopadloscian.hh"
Prostopadloscian::Prostopadloscian()
{
dl_bokow = Wektor<double,3> W;
}
Prostopadloscian::Prostopadloscian(double A,double B, double H,drawNS::Draw3DAPI *api)
{
dl_bokow[0] = A;
dl_bokow[1] = B;
dl_bokow[2] = H;
(*this).gplt = api;
}
void Prostopadloscian::ustal_wier... | 38.234568 | 111 | 0.587665 | Szymon253191 |
9f98b748adce7385c99149eecc6cdfc737fa0f0e | 5,773 | cpp | C++ | game_vision/src/main.cpp | SHEUN1/gameVision | 089f2fa1144e37a141dbb2e05d36c3131b92af0a | [
"MIT"
] | 20 | 2017-08-20T07:32:03.000Z | 2022-02-26T16:33:36.000Z | game_vision/src/main.cpp | SHEUN1/gameVision | 089f2fa1144e37a141dbb2e05d36c3131b92af0a | [
"MIT"
] | null | null | null | game_vision/src/main.cpp | SHEUN1/gameVision | 089f2fa1144e37a141dbb2e05d36c3131b92af0a | [
"MIT"
] | 2 | 2018-07-03T06:47:39.000Z | 2020-03-12T16:52:17.000Z | //============================================================================
// Name : main.cpp
// Author : Olu Adebari
// Description : Process the captured video game frame, analyse and then send data over to Python caller program
//=======================================================================... | 40.370629 | 286 | 0.778971 | SHEUN1 |
9f9fd055d24b87d0050cf7e7b729e23a7930dd62 | 2,455 | cc | C++ | course/test/src/CellMap_TEST.cc | LucasJSch/terrarium_simulator | 93dbd4a340d38ec54de6dc4876feceeb1f4a0094 | [
"Apache-2.0"
] | null | null | null | course/test/src/CellMap_TEST.cc | LucasJSch/terrarium_simulator | 93dbd4a340d38ec54de6dc4876feceeb1f4a0094 | [
"Apache-2.0"
] | 1 | 2020-11-12T15:40:37.000Z | 2020-11-12T15:40:37.000Z | course/test/src/CellMap_TEST.cc | LucasJSch/terrarium_simulator | 93dbd4a340d38ec54de6dc4876feceeb1f4a0094 | [
"Apache-2.0"
] | null | null | null | #include "cellmap.h"
#include "ant.h"
#include "cell.h"
#include <cmath>
#include <sstream>
#include <string>
#include "gtest/gtest.h"
namespace ekumen {
namespace simulation {
namespace test {
namespace {
using insect_ptr = std::shared_ptr<Insect>;
GTEST_TEST(CellMapTest, ReturnsExceptionOnConstructorWithNonPosi... | 25.572917 | 75 | 0.716904 | LucasJSch |
9fb3cd137b0eef10c67b094162cdf360e302bb59 | 734 | cpp | C++ | leetcode/491. Increasing Subsequences/s3.cpp | zhuohuwu0603/leetcode_cpp_lzl124631x | 6a579328810ef4651de00fde0505934d3028d9c7 | [
"Fair"
] | 787 | 2017-05-12T05:19:57.000Z | 2022-03-30T12:19:52.000Z | leetcode/491. Increasing Subsequences/s3.cpp | aerlokesh494/LeetCode | 0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f | [
"Fair"
] | 8 | 2020-03-16T05:55:38.000Z | 2022-03-09T17:19:17.000Z | leetcode/491. Increasing Subsequences/s3.cpp | aerlokesh494/LeetCode | 0f2cbb28d5a9825b51a8d3b3a0ae0c30d7ff155f | [
"Fair"
] | 247 | 2017-04-30T15:07:50.000Z | 2022-03-30T09:58:57.000Z | // OJ: https://leetcode.com/problems/permutations-ii
// Author: github.com/lzl124631x
// Time: O(2^N)
// Space: O(N)
class Solution {
private:
vector<vector<int>> ans;
void dfs(vector<int> &nums, int start, vector<int> &seq) {
if (start == nums.size()) return;
unordered_set<int> visited;
for (int i = st... | 27.185185 | 71 | 0.581744 | zhuohuwu0603 |
9fb3de83b9f2ec610527cc45678c9ba4d9787ecf | 706 | cpp | C++ | TVTest_0.7.23_Src/Options.cpp | mark10als/TVTest_0.7.23_fix_Sources | 313c295ab67a39bb285303ad814ee4f5aa15d921 | [
"libpng-2.0"
] | null | null | null | TVTest_0.7.23_Src/Options.cpp | mark10als/TVTest_0.7.23_fix_Sources | 313c295ab67a39bb285303ad814ee4f5aa15d921 | [
"libpng-2.0"
] | null | null | null | TVTest_0.7.23_Src/Options.cpp | mark10als/TVTest_0.7.23_fix_Sources | 313c295ab67a39bb285303ad814ee4f5aa15d921 | [
"libpng-2.0"
] | null | null | null | #include "stdafx.h"
#include "TVTest.h"
#include "Options.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
COptionFrame *COptions::m_pFrame=NULL;
DWORD COptions::m_GeneralUpdateFlags=0;
COptions::COptions()
: m_UpdateFlags(0)
{
}
COptions::COptions(LPCTSTR pszSe... | 12.836364 | 48 | 0.746459 | mark10als |
9fb59be37087068fc162869dc19b2c2d61e62b97 | 15,865 | cpp | C++ | src/Scene/COctree.cpp | przemyslaw-szymanski/vke | 1d8fb139e0e995e330db6b8873dfc49463ec312c | [
"MIT"
] | 1 | 2018-01-06T04:44:36.000Z | 2018-01-06T04:44:36.000Z | src/Scene/COctree.cpp | przemyslaw-szymanski/vke | 1d8fb139e0e995e330db6b8873dfc49463ec312c | [
"MIT"
] | null | null | null | src/Scene/COctree.cpp | przemyslaw-szymanski/vke | 1d8fb139e0e995e330db6b8873dfc49463ec312c | [
"MIT"
] | null | null | null | #include "Scene/COctree.h"
#include "Scene/CScene.h"
namespace VKE
{
namespace Scene
{
SOctreeNode::~SOctreeNode()
{
//m_vObjectAABBs.Destroy();
//m_vpObjectBits.Destroy();
}
//void SOctreeNode::CalcAABB( const COctree* pOctree, Math::CAABB* pOut ) const... | 40.368957 | 123 | 0.515916 | przemyslaw-szymanski |
9fb8e9c3e7e26bc435816a07831bb06ad39a7486 | 3,187 | cpp | C++ | src/matching.cpp | gnardari/urquhart | ce92836bd3eeecca6e4b21c5efb13ff43953b800 | [
"MIT"
] | 2 | 2021-05-15T03:04:17.000Z | 2021-09-16T12:21:58.000Z | src/matching.cpp | gnardari/urquhart | ce92836bd3eeecca6e4b21c5efb13ff43953b800 | [
"MIT"
] | null | null | null | src/matching.cpp | gnardari/urquhart | ce92836bd3eeecca6e4b21c5efb13ff43953b800 | [
"MIT"
] | null | null | null | #include <matching.hpp>
namespace matching {
void polygonMatching(
urquhart::Observation& ref, std::vector<size_t> refIds,
urquhart::Observation& targ, std::vector<size_t> targIds, double thresh,
std::vector<std::pair<size_t, size_t>>& polygonMatches){
std::set<size_t> matched;
for(auto rIdx : ... | 37.940476 | 106 | 0.600565 | gnardari |
9fb99605718228a2f381abae032b9fe97bb084fc | 1,681 | hpp | C++ | engine/include/engine/rendering/ForwardRenderingSystem.hpp | sienkiewiczkm/framework | 9940403404aa5c67186fe09b0910de3a6c8e9762 | [
"MIT"
] | null | null | null | engine/include/engine/rendering/ForwardRenderingSystem.hpp | sienkiewiczkm/framework | 9940403404aa5c67186fe09b0910de3a6c8e9762 | [
"MIT"
] | 9 | 2016-12-09T13:02:18.000Z | 2019-09-13T09:29:18.000Z | engine/include/engine/rendering/ForwardRenderingSystem.hpp | sienkiewiczkm/framework | 9940403404aa5c67186fe09b0910de3a6c8e9762 | [
"MIT"
] | null | null | null | #pragma once
#include "entityx/entityx.h"
#include "fw/UniversalPhongEffect.hpp"
#include "fw/resources/Cubemap.hpp"
#include "fw/Mesh.hpp"
#include "fw/Vertices.hpp"
#include "fw/rendering/Framebuffer.hpp"
namespace ee
{
class ForwardRenderingSystem:
public entityx::System<ForwardRenderingSystem>
{
public:
... | 25.469697 | 80 | 0.703153 | sienkiewiczkm |
9fbbf1637bd30d8d8df212435ccbb1ad65d29c8f | 4,205 | hpp | C++ | include/simple/template_is_prime.hpp | kahido/template-metaprogramming-journey | ad214c14039e40f56e32e72fb83dcff01601b267 | [
"Unlicense"
] | null | null | null | include/simple/template_is_prime.hpp | kahido/template-metaprogramming-journey | ad214c14039e40f56e32e72fb83dcff01601b267 | [
"Unlicense"
] | null | null | null | include/simple/template_is_prime.hpp | kahido/template-metaprogramming-journey | ad214c14039e40f56e32e72fb83dcff01601b267 | [
"Unlicense"
] | null | null | null | /*
* @brief Template Metaprogramming 06
*
* Source: https://youtu.be/XNJlyCAr7tA
*
*/
#pragma once
// simple primality test
// this algorithm is inefficient
bool is_prime_loop(unsigned p)
{
bool ret = true;
if (p < 4)// p = 0, 1, 2, 3
{
ret = (p > 1);// p = 2 or 3, then we return true
} ... | 22.72973 | 88 | 0.51629 | kahido |
9fbefa6eb15cb74f1d464592a697063b1e3c6f65 | 1,599 | cpp | C++ | Native/Src/detail/ChannelFactory.cpp | chengwei45254/IPC | 86df124c5f2a0447d6ec56af7a506dc41bbf5546 | [
"MIT"
] | 167 | 2017-04-26T00:17:34.000Z | 2019-05-06T09:50:30.000Z | Native/Src/detail/ChannelFactory.cpp | chengwei45254/IPC | 86df124c5f2a0447d6ec56af7a506dc41bbf5546 | [
"MIT"
] | 22 | 2017-04-26T20:24:40.000Z | 2019-03-23T20:03:42.000Z | Native/Src/detail/ChannelFactory.cpp | chengwei45254/IPC | 86df124c5f2a0447d6ec56af7a506dc41bbf5546 | [
"MIT"
] | 42 | 2017-04-27T01:51:39.000Z | 2019-04-12T21:23:17.000Z | #include "stdafx.h"
#include "IPC/detail/ChannelFactory.h"
namespace IPC
{
namespace detail
{
std::shared_ptr<SharedMemory> ChannelFactory<void>::InstanceBase::GetMemory(
create_only_t, bool input, const char* name, const ChannelSettingsBase& settings)
{
retu... | 31.352941 | 94 | 0.537211 | chengwei45254 |
9fc125b0e726e5ae456466ee8cd318a8ab4fad2f | 1,763 | cpp | C++ | math_pazzle/1.cpp | taku-xhift/labo | 89dc28fdb602c7992c6f31920714225f83a11218 | [
"MIT"
] | null | null | null | math_pazzle/1.cpp | taku-xhift/labo | 89dc28fdb602c7992c6f31920714225f83a11218 | [
"MIT"
] | null | null | null | math_pazzle/1.cpp | taku-xhift/labo | 89dc28fdb602c7992c6f31920714225f83a11218 | [
"MIT"
] | null | null | null |
#include <iostream>
#include <string>
#include <sstream>
#include <bitset>
// #include <maniplator>
bool IsReversible(const std::string& str) {
std::size_t count = str.length()/2;
if (count == 0) {
return true;
}
auto begin = str.cbegin();
auto rbegin = str.crbegin();
for (std::size_t i = 0; i < count; ++i... | 16.951923 | 56 | 0.559841 | taku-xhift |
9fc2753bed0ed37270c307c5ecca0c4bd43cd435 | 407 | hh | C++ | octo/types/OctoString.hh | KevinTheBarbarian/octo | 98047dbe7fd7ba5bf6a5f6c1b1a5a8d03fdf8f5f | [
"MIT"
] | null | null | null | octo/types/OctoString.hh | KevinTheBarbarian/octo | 98047dbe7fd7ba5bf6a5f6c1b1a5a8d03fdf8f5f | [
"MIT"
] | null | null | null | octo/types/OctoString.hh | KevinTheBarbarian/octo | 98047dbe7fd7ba5bf6a5f6c1b1a5a8d03fdf8f5f | [
"MIT"
] | null | null | null |
#ifndef __OCTO_STRING_HH__
#define __OCTO_STRING_HH__
#include "OctoObject.hh"
namespace types {
class OctoString : public OctoObject {
public:
virtual void assign(const char* data, size_t size) = 0;
// Compare to a null terminated string.
virtual bool equalTo(const char* data) const... | 19.380952 | 63 | 0.665848 | KevinTheBarbarian |
9fd30f542f14d939964a19a9b22a5dde0219cdf3 | 10,427 | cpp | C++ | src/WeatherData.cpp | FMeinicke/Weather-App | 8168c07592938539c1c00f8fd15e1297c32d2f0d | [
"MIT"
] | 10 | 2020-03-12T12:45:50.000Z | 2020-06-28T06:10:04.000Z | src/WeatherData.cpp | FMeinicke/Weather-App | 8168c07592938539c1c00f8fd15e1297c32d2f0d | [
"MIT"
] | null | null | null | src/WeatherData.cpp | FMeinicke/Weather-App | 8168c07592938539c1c00f8fd15e1297c32d2f0d | [
"MIT"
] | 2 | 2021-08-24T12:37:33.000Z | 2021-09-05T14:59:58.000Z | /**
** This file is part of the "Mobile Weather" project.
** Copyright (c) 2020 Florian Meinicke <florian.meinicke@t-online.de>.
**
** Permission is hereby granted, free of charge, to any person obtaining a copy
** of this software and associated documentation files (the "Software"), to deal
** in the Softw... | 34.299342 | 83 | 0.482018 | FMeinicke |
9fdef1ca39b0c61b56e5e893bbf52a6927962a12 | 267 | cc | C++ | find_first_of/find_first_of_main.cc | ULL-ESIT-IB-2020-2021/ib-practica09-funciones-LZ01014 | c3351a8e1e62d01dad072c21f57654c102efc114 | [
"MIT"
] | null | null | null | find_first_of/find_first_of_main.cc | ULL-ESIT-IB-2020-2021/ib-practica09-funciones-LZ01014 | c3351a8e1e62d01dad072c21f57654c102efc114 | [
"MIT"
] | null | null | null | find_first_of/find_first_of_main.cc | ULL-ESIT-IB-2020-2021/ib-practica09-funciones-LZ01014 | c3351a8e1e62d01dad072c21f57654c102efc114 | [
"MIT"
] | null | null | null | #include <iostream>
#include <string>
#include <cstring>
#include "find_first_of.h"
int main(int argc, char *argv[]){
std::string word =argv[1];
std::string character_to_find = argv[2];
std::cout << PositionOfCharacter(word, character_to_find) << std::endl;
} | 24.272727 | 73 | 0.70412 | ULL-ESIT-IB-2020-2021 |
9fe74f0633e78896deed5dd2fcaad8450039d33a | 311 | cpp | C++ | 283.cpp | zfang399/LeetCode-Problems | 4cb25718a3d1361569f5ee6fde7b4a9a4fde2186 | [
"MIT"
] | 8 | 2018-10-31T11:00:19.000Z | 2020-07-31T05:25:06.000Z | 283.cpp | zfang399/LeetCode-Problems | 4cb25718a3d1361569f5ee6fde7b4a9a4fde2186 | [
"MIT"
] | null | null | null | 283.cpp | zfang399/LeetCode-Problems | 4cb25718a3d1361569f5ee6fde7b4a9a4fde2186 | [
"MIT"
] | 2 | 2018-05-31T11:29:22.000Z | 2019-09-11T06:34:40.000Z | class Solution {
public:
void moveZeroes(vector<int>& nums) {
int now = 0;
for(int i = 0; i < nums.size(); i++){
if(nums[i]){
nums[now] = nums[i];
now++;
}
}
for(int i = now; i < nums.size(); i++) nums[i] = 0;
}
};
| 22.214286 | 59 | 0.382637 | zfang399 |
9fefee80d0f02d86c8d2a971b451ae3feb5d166f | 458 | cpp | C++ | Dynamic Programing/21min_operations.cpp | waytoashutosh/CPP_Algo_Implementation | b7f8d859eeff06740dd8b343951308d8937ea6fb | [
"MIT"
] | null | null | null | Dynamic Programing/21min_operations.cpp | waytoashutosh/CPP_Algo_Implementation | b7f8d859eeff06740dd8b343951308d8937ea6fb | [
"MIT"
] | null | null | null | Dynamic Programing/21min_operations.cpp | waytoashutosh/CPP_Algo_Implementation | b7f8d859eeff06740dd8b343951308d8937ea6fb | [
"MIT"
] | null | null | null | #include <iostream>
using namespace std;
unsigned long long int n;
unsigned long long int solve(unsigned long long int i)
{
if(i>=n)
{
return 0;
}
unsigned long long int x=0,y=0;
if(i+1<=n)
x = 1+solve(i+1);
if((unsigned long long int)(i*2)<=n)
y = 1+solve(i*2);
... | 13.470588 | 54 | 0.50655 | waytoashutosh |
9ff5cfc1bc1a8e25d4d66f43c60fb532d0188333 | 1,589 | cpp | C++ | Examenes/Febrero2016/UnidadCuriosaDeMonitorizacion.cpp | manumonforte/AdvancedAlgorithm | fe82ef552147a041e7ad717f85999eb677f5340a | [
"MIT"
] | 4 | 2019-01-30T21:35:40.000Z | 2019-06-25T03:19:44.000Z | Examenes/Febrero2016/UnidadCuriosaDeMonitorizacion.cpp | manumonforte/AdvancedAlgorithm | fe82ef552147a041e7ad717f85999eb677f5340a | [
"MIT"
] | null | null | null | Examenes/Febrero2016/UnidadCuriosaDeMonitorizacion.cpp | manumonforte/AdvancedAlgorithm | fe82ef552147a041e7ad717f85999eb677f5340a | [
"MIT"
] | 3 | 2019-06-06T17:01:28.000Z | 2021-06-27T10:55:34.000Z | //Manuel Monforte
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
#include "PriorityQueue.h"
/*
Coste de la solucion--> Aplicamos PriorityQueue
-->Se aplican operaciones top y pop que tiene complejidad logN
-->Se aplican K veces cada una de ella
-->Total: O(2K*logN)
*/
struct tUsuar... | 20.113924 | 92 | 0.651353 | manumonforte |
9ff8346f48ef2d620986d0cf1fe99a9efcf36bb7 | 1,492 | cpp | C++ | 15. Maximum Sub Array - GFG/15.-maximum-sub-array.cpp | champmaniac/LeetCode | 65810e0123e0ceaefb76d0a223436d1525dac0d4 | [
"MIT"
] | 1 | 2022-02-27T09:01:07.000Z | 2022-02-27T09:01:07.000Z | 15. Maximum Sub Array - GFG/15.-maximum-sub-array.cpp | champmaniac/LeetCode | 65810e0123e0ceaefb76d0a223436d1525dac0d4 | [
"MIT"
] | null | null | null | 15. Maximum Sub Array - GFG/15.-maximum-sub-array.cpp | champmaniac/LeetCode | 65810e0123e0ceaefb76d0a223436d1525dac0d4 | [
"MIT"
] | null | null | null | // { Driver Code Starts
#include <bits/stdc++.h>
using namespace std;
// } Driver Code Ends
//User function template for C++
class Solution{
public:
bool checkPositive(int arr[], int n){
for(int i=0;i<n;i++){
if(arr[i]>0) return (true);
}
return (false);
}
vector<int> fin... | 19.128205 | 43 | 0.419571 | champmaniac |
9ffd4514974b80bf43987e06a64668aca487fc26 | 2,440 | cpp | C++ | cpc/exercise2-17_allowance.cpp | aoibird/pc | b72c0b10117f95d45e2e7423614343b5936b260a | [
"MIT"
] | null | null | null | cpc/exercise2-17_allowance.cpp | aoibird/pc | b72c0b10117f95d45e2e7423614343b5936b260a | [
"MIT"
] | null | null | null | cpc/exercise2-17_allowance.cpp | aoibird/pc | b72c0b10117f95d45e2e7423614343b5936b260a | [
"MIT"
] | null | null | null | // POJ 3040
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <algorithm>
#include <vector>
#include <set>
#include <map>
using namespace std;
typedef long long ll;
typedef pair<int,int> PII;
const int INF = 2000000000;
const int MAXN = 20+10;
PII D... | 25.154639 | 76 | 0.445492 | aoibird |
b004658140899e7ae44fd85eefc013fb862fe3d9 | 1,673 | cpp | C++ | src/CipherTable.cpp | fcifuentesq/bg-mixnet | dea0e6ff1ad321f0e919298cbdc3fe9a666fae43 | [
"Apache-2.0"
] | 7 | 2018-03-25T23:45:36.000Z | 2020-02-13T13:55:41.000Z | src/CipherTable.cpp | fcifuentesq/bg-mixnet | dea0e6ff1ad321f0e919298cbdc3fe9a666fae43 | [
"Apache-2.0"
] | 1 | 2022-01-21T00:44:07.000Z | 2022-01-21T00:44:07.000Z | src/CipherTable.cpp | fcifuentesq/bg-mixnet | dea0e6ff1ad321f0e919298cbdc3fe9a666fae43 | [
"Apache-2.0"
] | 4 | 2018-03-27T19:36:00.000Z | 2022-01-10T22:24:06.000Z | #include "CipherTable.h"
#include "Functions.h"
CipherTable::CipherTable() : m_(0), n_(0), owner_(true) {}
CipherTable::CipherTable(string& ciphers, long m, ElGammal* elgammal) : m_(m), owner_(true) {
Functions::parse_ciphers(ciphers, m, C_, elgammal);
if (m == 0) {
n_ = 0;
} else {
n_ = C_.at(0)->size();
}... | 18.797753 | 95 | 0.632397 | fcifuentesq |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.