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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
3532b78fbcfb49ae23f30a1b9b6963e8e940b051 | 737 | hh | C++ | CaloMC/inc/CaloWFExtractor.hh | knoepfel/Offline | bb0e52f2e6627abe223e8adaf6fe326cead595df | [
"Apache-2.0"
] | null | null | null | CaloMC/inc/CaloWFExtractor.hh | knoepfel/Offline | bb0e52f2e6627abe223e8adaf6fe326cead595df | [
"Apache-2.0"
] | null | null | null | CaloMC/inc/CaloWFExtractor.hh | knoepfel/Offline | bb0e52f2e6627abe223e8adaf6fe326cead595df | [
"Apache-2.0"
] | null | null | null | #ifndef CaloMC_CaloWFExtractor_hh
#define CaloMC_CaloWFExtractor_hh
//
// Utility to simulate waveform hit extraction in FPGA
//
#include <vector>
namespace mu2e {
class CaloWFExtractor
{
public:
CaloWFExtractor(unsigned bufferDigi, int minPeakADC,unsi... | 27.296296 | 123 | 0.576662 | knoepfel |
3538646ae76e0a69bdebac9c6fc2401efb8eba95 | 118 | cpp | C++ | sunspec-modbus/common.cpp | PortlandStatePowerLab/temp-susnspec-modbus | ace2d90b07e5f430739b2636fe64a78a4bf5d309 | [
"BSD-3-Clause"
] | null | null | null | sunspec-modbus/common.cpp | PortlandStatePowerLab/temp-susnspec-modbus | ace2d90b07e5f430739b2636fe64a78a4bf5d309 | [
"BSD-3-Clause"
] | null | null | null | sunspec-modbus/common.cpp | PortlandStatePowerLab/temp-susnspec-modbus | ace2d90b07e5f430739b2636fe64a78a4bf5d309 | [
"BSD-3-Clause"
] | null | null | null | #include "include/sunspec/common.hpp"
using namespace sunspec;
Common::Common(/* args */)
{
}
Common::~Common()
{
} | 10.727273 | 37 | 0.669492 | PortlandStatePowerLab |
35399ccb73eb723be030e9811f09b91fb26bb19f | 310 | cpp | C++ | Widget.cpp | cedoduarte/MovimientoParabolico | 825bd490e99eb2c8a2072bc8d1956eafc26a56fa | [
"MIT"
] | null | null | null | Widget.cpp | cedoduarte/MovimientoParabolico | 825bd490e99eb2c8a2072bc8d1956eafc26a56fa | [
"MIT"
] | null | null | null | Widget.cpp | cedoduarte/MovimientoParabolico | 825bd490e99eb2c8a2072bc8d1956eafc26a56fa | [
"MIT"
] | null | null | null | #include "Widget.h"
#include "ui_Widget.h"
#include "Escena.h"
Widget::Widget(QWidget *parent)
: QWidget(parent)
, ui(new Ui::Widget)
{
ui->setupUi(this);
mEscena = new Escena(this);
ui->graphicsView->setScene(mEscena);
mEscena->iniciaEscena();
}
Widget::~Widget()
{
delete ui;
}
| 16.315789 | 40 | 0.635484 | cedoduarte |
353b65bb932f1c7de186038dc4cce1c23e3b234b | 2,456 | hpp | C++ | libpdraw/src/pdraw_media.hpp | Akaaba/pdraw | 2411d6b846e83202984f422eeb79553304e7bd03 | [
"BSD-3-Clause"
] | 4 | 2018-05-15T01:26:21.000Z | 2020-01-27T03:15:34.000Z | libpdraw/src/pdraw_media.hpp | Akaaba/pdraw | 2411d6b846e83202984f422eeb79553304e7bd03 | [
"BSD-3-Clause"
] | 1 | 2018-10-18T15:53:02.000Z | 2018-10-18T15:53:02.000Z | libpdraw/src/pdraw_media.hpp | Akaaba/pdraw | 2411d6b846e83202984f422eeb79553304e7bd03 | [
"BSD-3-Clause"
] | 4 | 2017-05-16T11:46:12.000Z | 2019-01-09T09:13:01.000Z | /**
* Parrot Drones Awesome Video Viewer Library
* Media interface
*
* Copyright (c) 2016 Aurelien Barre
*
* 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... | 27.595506 | 79 | 0.746336 | Akaaba |
353f99ae03e56ef37978e1d9f6c142b0c27fe9ab | 1,862 | hpp | C++ | src/content_handlers/simulator_handler/inc/aduc/simulator_handler.hpp | bemol38/iot-hub-device-update | 2cd165ba05cf7a6eff34cbf6c26e4ae30cc9d5d9 | [
"MIT"
] | null | null | null | src/content_handlers/simulator_handler/inc/aduc/simulator_handler.hpp | bemol38/iot-hub-device-update | 2cd165ba05cf7a6eff34cbf6c26e4ae30cc9d5d9 | [
"MIT"
] | null | null | null | src/content_handlers/simulator_handler/inc/aduc/simulator_handler.hpp | bemol38/iot-hub-device-update | 2cd165ba05cf7a6eff34cbf6c26e4ae30cc9d5d9 | [
"MIT"
] | null | null | null | /**
* @file simulator_handler.hpp
* @brief Defines SimulatorHandlerImpl.
*
* @copyright Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*/
#ifndef ADUC_SIMULATOR_HANDLER_HPP
#define ADUC_SIMULATOR_HANDLER_HPP
#include "aduc/content_handler.hpp"
#include "aduc/logging.h"
EXTERN_C_BEGIN
/*... | 30.032258 | 82 | 0.77551 | bemol38 |
354c1589c2fd08cf037d595611ab9d222ac001aa | 220 | hpp | C++ | include/locker/fs.hpp | gmbeard/locker | 0d691f1d6716fa154820c52a97b78ac02a4d06c0 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | include/locker/fs.hpp | gmbeard/locker | 0d691f1d6716fa154820c52a97b78ac02a4d06c0 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | include/locker/fs.hpp | gmbeard/locker | 0d691f1d6716fa154820c52a97b78ac02a4d06c0 | [
"Apache-2.0",
"BSD-3-Clause"
] | null | null | null | #ifndef LOCKER_FS_HPP_INCLUDED
#define LOCKER_FS_HPP_INCLUDED
#include <string>
#include <tuple>
namespace locker
{
auto get_locker_home() noexcept -> std::pair<bool, std::string>;
}
#endif //LOCKER_FS_HPP_INCLUDED
| 14.666667 | 64 | 0.772727 | gmbeard |
355084b153344b80aeedc8a2f8176eb8ccf83b5c | 245 | cpp | C++ | src/bolusGUI/dlgtimedate.cpp | dreamshader/bolus | b63ae2e1821019f920cb8adeff373bafbb5e0008 | [
"Apache-2.0"
] | null | null | null | src/bolusGUI/dlgtimedate.cpp | dreamshader/bolus | b63ae2e1821019f920cb8adeff373bafbb5e0008 | [
"Apache-2.0"
] | null | null | null | src/bolusGUI/dlgtimedate.cpp | dreamshader/bolus | b63ae2e1821019f920cb8adeff373bafbb5e0008 | [
"Apache-2.0"
] | null | null | null | #include "dlgtimedate.h"
#include "ui_dlgtimedate.h"
dlgTimeDate::dlgTimeDate(QWidget *parent) :
QDialog(parent),
ui(new Ui::dlgTimeDate)
{
pParent = parent;
ui->setupUi(this);
}
dlgTimeDate::~dlgTimeDate()
{
delete ui;
}
| 14.411765 | 43 | 0.665306 | dreamshader |
355098ebb5367190cfe9d0af757e0a104ccb948f | 243 | cpp | C++ | src/main/cpp/subsystems/Arm.cpp | roboticsmgci/2022-robot | 42833feaac3f4a3a9b53d7182a9b8814c0e22912 | [
"BSD-3-Clause"
] | 2 | 2022-03-09T13:54:02.000Z | 2022-03-31T02:59:31.000Z | src/main/cpp/subsystems/Arm.cpp | roboticsmgci/2022-robot | 42833feaac3f4a3a9b53d7182a9b8814c0e22912 | [
"BSD-3-Clause"
] | null | null | null | src/main/cpp/subsystems/Arm.cpp | roboticsmgci/2022-robot | 42833feaac3f4a3a9b53d7182a9b8814c0e22912 | [
"BSD-3-Clause"
] | 8 | 2022-03-15T14:14:30.000Z | 2022-03-29T19:20:17.000Z | #include "subsystems/Arm.h"
#include <frc/smartdashboard/SmartDashboard.h>
Arm::Arm(){
m_arm.RestoreFactoryDefaults();
SetName("Arm");
}
void Arm::Rotate(double speed){
m_arm.Set(speed);
}
void Arm::Stop(){
m_arm.Set(0);
}
| 14.294118 | 46 | 0.658436 | roboticsmgci |
355a7f39b1f7c34c5851bc2266d4bfe5ee784855 | 1,414 | cpp | C++ | code/tile.cpp | DavDag/Tetris-Clone | 465342dd7bda0c44b3b71874a8ae7d13beb610e1 | [
"MIT"
] | 1 | 2019-08-07T09:13:16.000Z | 2019-08-07T09:13:16.000Z | code/tile.cpp | DavDag/Tetris-Clone | 465342dd7bda0c44b3b71874a8ae7d13beb610e1 | [
"MIT"
] | null | null | null | code/tile.cpp | DavDag/Tetris-Clone | 465342dd7bda0c44b3b71874a8ae7d13beb610e1 | [
"MIT"
] | null | null | null | #include "tile.hpp"
Tile::Tile(int x, int y, int w, int h):
sprite(),
x(x),
y(y),
marked(false),
color(Textures::EmptyBlock)
{
this->sprite.setTexture(*texturemanager.get(Textures::EmptyBlock));
this->sprite.scale(w / this->sprite.getGlobalBounds().width, h / this->sprite.getGlobalBounds().height);
... | 21.424242 | 109 | 0.559406 | DavDag |
355d51843955888b30547d1ee5590a784d442232 | 1,386 | cpp | C++ | Classes/Screens/MainMenu.cpp | Kirlos-Melad/Connect-Four | 42740dc78754548ca508be6386b897df9504a6e8 | [
"MIT"
] | null | null | null | Classes/Screens/MainMenu.cpp | Kirlos-Melad/Connect-Four | 42740dc78754548ca508be6386b897df9504a6e8 | [
"MIT"
] | null | null | null | Classes/Screens/MainMenu.cpp | Kirlos-Melad/Connect-Four | 42740dc78754548ca508be6386b897df9504a6e8 | [
"MIT"
] | null | null | null | //
// Created by kirlos on 2020-07-19.
//
#include "MainMenu.h"
MainMenu::MainMenu(float width, float height, sf::Font &font) : MenuScroller(width, height, font, MAX_NUMBER_OF_ITEMS){
menu[0].setFont(font);
menu[0].setFillColor(sf::Color::Blue);
menu[0].setString("Play");
menu[0].setPosition(sf::Vecto... | 33 | 119 | 0.665945 | Kirlos-Melad |
355e6e5ec122ddd0828094cfd45fa6db101f0374 | 8,042 | cc | C++ | components/C65/CRPTRNode.cc | virtimus/makaronLab | 10b9be7d7d65d3da6219f929ea7070dd5fed3a81 | [
"0BSD"
] | 2 | 2021-03-16T05:48:36.000Z | 2021-10-11T01:55:48.000Z | components/C65/CRPTRNode.cc | virtimus/makaronLab | 10b9be7d7d65d3da6219f929ea7070dd5fed3a81 | [
"0BSD"
] | null | null | null | components/C65/CRPTRNode.cc | virtimus/makaronLab | 10b9be7d7d65d3da6219f929ea7070dd5fed3a81 | [
"0BSD"
] | 1 | 2021-03-16T05:48:39.000Z | 2021-03-16T05:48:39.000Z |
#include <QCheckBox>
#include <QTableWidget>
#include <QGraphicsWidget>
#include <QGraphicsLayout>
#include <QGraphicsScene>
#include <QVBoxLayout>
#include <QGraphicsSceneMouseEvent>
#include "spaghetti/element.h"
#include "CRPTR.h"
#include "CRPTRNode.h"
namespace CRPTR {
class CRPTR;
class CRPTRNode;
enum clas... | 26.11039 | 168 | 0.666377 | virtimus |
355fc94e4c3dd4a41a6f4f74a315abb6aa511606 | 140 | hxx | C++ | src/Providers/UNIXProviders/ConfigurationComponent/UNIX_ConfigurationComponent_LINUX.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | 1 | 2020-10-12T09:00:09.000Z | 2020-10-12T09:00:09.000Z | src/Providers/UNIXProviders/ConfigurationComponent/UNIX_ConfigurationComponent_LINUX.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | src/Providers/UNIXProviders/ConfigurationComponent/UNIX_ConfigurationComponent_LINUX.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | #ifdef PEGASUS_OS_LINUX
#ifndef __UNIX_CONFIGURATIONCOMPONENT_PRIVATE_H
#define __UNIX_CONFIGURATIONCOMPONENT_PRIVATE_H
#endif
#endif
| 11.666667 | 47 | 0.864286 | brunolauze |
3562b31b74429cd50fb29b14f627f13dcbe1c43d | 951 | cpp | C++ | Codeforces #353 DIV2/D.cpp | kimixuchen/Codeforces | 1c259e867310d148d813c3ea7cc4f9cad3f21049 | [
"Apache-2.0"
] | null | null | null | Codeforces #353 DIV2/D.cpp | kimixuchen/Codeforces | 1c259e867310d148d813c3ea7cc4f9cad3f21049 | [
"Apache-2.0"
] | null | null | null | Codeforces #353 DIV2/D.cpp | kimixuchen/Codeforces | 1c259e867310d148d813c3ea7cc4f9cad3f21049 | [
"Apache-2.0"
] | null | null | null | /**
*Codeforces Round #353 DIV2 B
*18/05/16 07:44:53
*xuchen
* */
#include <stdio.h>
#include <iostream>
#include <cmath>
#include <cstring>
#include <map>
#include <set>
#include <stdlib.h>
#include <algorithm>
#include <queue>
using namespace std;
const int N = 100005;
set<int> valset;
map<int, int> L, R;
int ... | 19.02 | 48 | 0.446898 | kimixuchen |
3565d7db77ec5a5a25550ce7576f1730494d0e6e | 1,446 | hpp | C++ | src/internal/ConversionModel.hpp | escherstair/qTsConverter | ef5c047f088d466544828d3878e808737771ae11 | [
"MIT"
] | 23 | 2020-04-10T19:37:40.000Z | 2022-03-09T07:59:04.000Z | src/internal/ConversionModel.hpp | escherstair/qTsConverter | ef5c047f088d466544828d3878e808737771ae11 | [
"MIT"
] | 21 | 2020-06-09T09:08:08.000Z | 2022-01-07T11:45:45.000Z | src/internal/ConversionModel.hpp | escherstair/qTsConverter | ef5c047f088d466544828d3878e808737771ae11 | [
"MIT"
] | 12 | 2019-01-10T07:38:29.000Z | 2020-03-26T11:19:54.000Z | #pragma once
#include <QAbstractListModel>
class ConversionModel final : public QAbstractListModel
{
Q_OBJECT
Q_PROPERTY(QString sourceMsg READ sourceMsg NOTIFY sourceMsgChanged)
public:
ConversionModel() = delete;
explicit ConversionModel(QObject *parent = nullptr);
ConversionModel(const Conv... | 26.777778 | 72 | 0.716459 | escherstair |
8315eee6bdf842eba16b592ea4bdaeebf9dd2500 | 2,411 | cpp | C++ | ArrtSource/Rendering/ArrSettings.cpp | makototakemoto/azure-remote-rendering-asset-tool | 8aa05c0fc62c630e27b048c6e80e2ebecc81703b | [
"MIT"
] | null | null | null | ArrtSource/Rendering/ArrSettings.cpp | makototakemoto/azure-remote-rendering-asset-tool | 8aa05c0fc62c630e27b048c6e80e2ebecc81703b | [
"MIT"
] | null | null | null | ArrtSource/Rendering/ArrSettings.cpp | makototakemoto/azure-remote-rendering-asset-tool | 8aa05c0fc62c630e27b048c6e80e2ebecc81703b | [
"MIT"
] | null | null | null | #include "ArrSettings.h"
#include <QSettings>
void ArrSettings::SetVideoWidth(int width)
{
width = std::clamp(width, s_videoWidthMin, s_videoWidthMax);
if (m_videoWidth != width)
{
m_videoWidth = width;
Q_EMIT OptionsChanged();
}
}
void ArrSettings::SetVideoHeight(int height)
{
he... | 23.407767 | 81 | 0.66321 | makototakemoto |
831a7ea3291e33f19e983275f092015d8e42d978 | 7,697 | cc | C++ | src/simulation/curve.cc | kipje13/RLUtilities | eb887b312e33136b27a64516179ea812c366c2fa | [
"MIT"
] | null | null | null | src/simulation/curve.cc | kipje13/RLUtilities | eb887b312e33136b27a64516179ea812c366c2fa | [
"MIT"
] | null | null | null | src/simulation/curve.cc | kipje13/RLUtilities | eb887b312e33136b27a64516179ea812c366c2fa | [
"MIT"
] | null | null | null | #include "simulation/ogh.h"
#include "simulation/curve.h"
#include "mechanics/drive.h"
#include "misc/io.h"
float maximize_speed_with_throttle(float accel, float v0, float sf);
float maximize_speed_without_throttle(float accel, float v0, float sf);
void Curve::write_to_file(std::string prefix) {
write(... | 26.818815 | 84 | 0.561907 | kipje13 |
831ac6cfae5b232e050d907a7f6981e24e2e05ed | 104 | cc | C++ | foo/foo.cc | SoonyangZhang/ns3-static-library | 545f37fd0c2e6909a523e7fd4f2e0215ccc352b1 | [
"MIT"
] | null | null | null | foo/foo.cc | SoonyangZhang/ns3-static-library | 545f37fd0c2e6909a523e7fd4f2e0215ccc352b1 | [
"MIT"
] | null | null | null | foo/foo.cc | SoonyangZhang/ns3-static-library | 545f37fd0c2e6909a523e7fd4f2e0215ccc352b1 | [
"MIT"
] | null | null | null | #include "foo.h"
#include <iostream>
void Foo::Print(std::string content){
cb_->Print(content);
}
| 17.333333 | 38 | 0.663462 | SoonyangZhang |
83242477d7238846ffa398c4f799cd29ac61a3af | 40,144 | cpp | C++ | inetsrv/msmq/src/trigger/trigserv/monitor.cpp | npocmaka/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 17 | 2020-11-13T13:42:52.000Z | 2021-09-16T09:13:13.000Z | inetsrv/msmq/src/trigger/trigserv/monitor.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 2 | 2020-10-19T08:02:06.000Z | 2020-10-19T08:23:18.000Z | inetsrv/msmq/src/trigger/trigserv/monitor.cpp | sancho1952007/Windows-Server-2003 | 5c6fe3db626b63a384230a1aa6b92ac416b0765f | [
"Unlicense"
] | 14 | 2020-11-14T09:43:20.000Z | 2021-08-28T08:59:57.000Z | //*******************************************************************************
//
// Class Name : CTriggerMonitor
//
// Author : James Simpson (Microsoft Consulting Services)
//
// Description : This class represents a worker thread that performs
// trigger monitoring and processing. Eac... | 30.785276 | 247 | 0.620242 | npocmaka |
8325095eb50d42833b326ed5074e0ce3af0ed732 | 5,797 | hpp | C++ | include/hta/metric.hpp | metricq/hta | 36e822e965593858327c9e4cefd434977597941e | [
"BSD-3-Clause"
] | 2 | 2019-06-26T08:39:52.000Z | 2019-07-31T12:16:05.000Z | include/hta/metric.hpp | metricq/hta | 36e822e965593858327c9e4cefd434977597941e | [
"BSD-3-Clause"
] | 16 | 2018-10-11T15:45:34.000Z | 2021-09-30T12:33:18.000Z | include/hta/metric.hpp | metricq/hta | 36e822e965593858327c9e4cefd434977597941e | [
"BSD-3-Clause"
] | null | null | null | // Copyright (c) 2018, ZIH,
// Technische Universitaet Dresden,
// Federal Republic of Germany
//
// 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 mus... | 33.703488 | 99 | 0.656546 | metricq |
8326e6360a86c4f511e0aa48405d1956ee818a24 | 370 | cpp | C++ | test/test.cpp | xaxxon/v8toolk | 6cf23bfc0b7d20e4476aef5e0463b9316a818b90 | [
"MIT"
] | 41 | 2016-06-19T00:08:51.000Z | 2021-12-05T16:40:54.000Z | test/test.cpp | xaxxon/v8-class-wrapper | 6cf23bfc0b7d20e4476aef5e0463b9316a818b90 | [
"MIT"
] | 22 | 2016-07-03T21:23:27.000Z | 2019-12-26T15:16:36.000Z | test/test.cpp | xaxxon/v8-class-wrapper | 6cf23bfc0b7d20e4476aef5e0463b9316a818b90 | [
"MIT"
] | 7 | 2017-03-07T05:31:40.000Z | 2021-09-18T10:38:24.000Z | #include "testing.h"
#include "v8toolkit/javascript.h"
using namespace testing;
int main(int argc, char* argv[]) {
// std::cerr << fmt::format("platform::init") << std::endl;
v8toolkit::Platform::init(argc, argv, "../");
// std::cerr << fmt::format("platform::init done") << std::endl;
testing::InitGoog... | 28.461538 | 67 | 0.637838 | xaxxon |
8328acd8ac2648472608414f38fea4202e9411f0 | 798 | cpp | C++ | cpp/src/hackerrank/introduction/variable_sized_arrays.cpp | shunkakinoki/code | 4d67f7afb2f4c2afd39ddc7b4dd87a826ebc45a6 | [
"MIT"
] | null | null | null | cpp/src/hackerrank/introduction/variable_sized_arrays.cpp | shunkakinoki/code | 4d67f7afb2f4c2afd39ddc7b4dd87a826ebc45a6 | [
"MIT"
] | 3 | 2019-10-29T07:17:19.000Z | 2020-02-01T04:41:53.000Z | cpp/src/hackerrank/introduction/variable_sized_arrays.cpp | shunkakinoki/code | 4d67f7afb2f4c2afd39ddc7b4dd87a826ebc45a6 | [
"MIT"
] | null | null | null | // Copyright 2019 Shun Kakinoki.
// Reference: https://www.hackerrank.com/challenges/variable-sized-arrays/forum
#include <iostream>
using namespace std;
int main() {
int n, q;
cin >> n >> q;
// Create 2d Array
int** a = new int*[n];
// Fill 2d Array with 1d Subarrays
for (int i = 0; i < n; i++) {
... | 17.733333 | 79 | 0.535088 | shunkakinoki |
832eee47f1b14961adee8992e6733fb907abb64b | 2,521 | cpp | C++ | plugins/community/repos/Valley/src/Common/Oneshot.cpp | guillaume-plantevin/VeeSeeVSTRack | 76fafc8e721613669d6f5ae82a0f58ce923a91e1 | [
"Zlib",
"BSD-3-Clause"
] | 233 | 2018-07-02T16:49:36.000Z | 2022-02-27T21:45:39.000Z | plugins/community/repos/Valley/src/Common/Oneshot.cpp | guillaume-plantevin/VeeSeeVSTRack | 76fafc8e721613669d6f5ae82a0f58ce923a91e1 | [
"Zlib",
"BSD-3-Clause"
] | 24 | 2018-07-09T11:32:15.000Z | 2022-01-07T01:45:43.000Z | plugins/community/repos/Valley/src/Common/Oneshot.cpp | guillaume-plantevin/VeeSeeVSTRack | 76fafc8e721613669d6f5ae82a0f58ce923a91e1 | [
"Zlib",
"BSD-3-Clause"
] | 24 | 2018-07-14T21:55:30.000Z | 2021-05-04T04:20:34.000Z | //
// Oneshot.cpp
// Author: Dale Johnson
// Contact: valley.audio.soft@gmail.com
// Date: 5/12/2017
//
// Copyright 2017 Dale Johnson
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of sourc... | 30.373494 | 80 | 0.713209 | guillaume-plantevin |
8331c091e60fd4f2cd8014bbab2cf4a9c3b66c92 | 982 | hpp | C++ | core/include/cubos/core/ecs/null_storage.hpp | GameDevTecnico/cubos | 51f89c9f3afc8afe502d167dadecab7dfe5b1c7b | [
"MIT"
] | 2 | 2021-09-28T14:13:27.000Z | 2022-03-26T11:36:48.000Z | core/include/cubos/core/ecs/null_storage.hpp | GameDevTecnico/cubos | 51f89c9f3afc8afe502d167dadecab7dfe5b1c7b | [
"MIT"
] | 72 | 2021-09-29T08:55:26.000Z | 2022-03-29T21:21:00.000Z | core/include/cubos/core/ecs/null_storage.hpp | GameDevTecnico/cubos | 51f89c9f3afc8afe502d167dadecab7dfe5b1c7b | [
"MIT"
] | null | null | null | #ifndef CUBOS_CORE_ECS_NULL_STORAGE_HPP
#define CUBOS_CORE_ECS_NULL_STORAGE_HPP
#include <cubos/core/ecs/storage.hpp>
namespace cubos::core::ecs
{
/// @brief NullStorage is a Storage implementation that doesn't keep any data, made for components
/// that don't hold any data and just work as tags.
/// @tp... | 24.55 | 102 | 0.657841 | GameDevTecnico |
8333c2edf2802e96eea6b72e50754e66672de391 | 6,992 | cpp | C++ | firmware/Src/PHIL/DriveSystem.cpp | Northeastern-Micromouse/Master | 162d6153665da0cf58a572fc138abcd92579710d | [
"MIT"
] | null | null | null | firmware/Src/PHIL/DriveSystem.cpp | Northeastern-Micromouse/Master | 162d6153665da0cf58a572fc138abcd92579710d | [
"MIT"
] | null | null | null | firmware/Src/PHIL/DriveSystem.cpp | Northeastern-Micromouse/Master | 162d6153665da0cf58a572fc138abcd92579710d | [
"MIT"
] | null | null | null | #include "DriveSystem.h"
phil::DriveSystem::DriveSystem(
pal::Gpio* left_step,
pal::Gpio* left_dir,
pal::Gpio* right_step,
pal::Gpio* right_dir,
pal::Tim* us_tick,
float width,
float wheel_radius,
float radians_per_step):
WIDTH(width),
WHEEL_RADIUS(wheel_radius),
RADI... | 31.638009 | 79 | 0.620566 | Northeastern-Micromouse |
8336e89c3f1483f65210fdb034f3ae29349224b6 | 120 | cpp | C++ | app/src/main/cpp/demo.cpp | CameraKit/camerakit-android-jpegtools | 01a782f22bdb2fa9b2488731efc72693cd74f703 | [
"MIT"
] | 155 | 2018-01-22T19:14:47.000Z | 2022-03-22T03:47:48.000Z | app/src/main/cpp/demo.cpp | CameraKit/camerakit-android-jpegtools | 01a782f22bdb2fa9b2488731efc72693cd74f703 | [
"MIT"
] | 8 | 2018-03-22T23:40:28.000Z | 2021-05-31T17:43:23.000Z | app/src/main/cpp/demo.cpp | CameraKit/camerakit-android-jpegtools | 01a782f22bdb2fa9b2488731efc72693cd74f703 | [
"MIT"
] | 32 | 2018-01-29T05:05:32.000Z | 2022-03-22T03:47:50.000Z | #include <jni.h>
extern "C" JNIEXPORT void JNICALL
Java_com_jpegkit_app_MainActivity_init(JNIEnv *env, jobject obj) {
} | 24 | 66 | 0.791667 | CameraKit |
8338b8d9f0882b8dda0cf4e751c4f803e4450b2a | 1,820 | cpp | C++ | out/production/Hacktoberfest1/C++/mergeTwoSortedLL.cpp | bluey-crypto/Hacktoberfest | c826d5faf1d1c860dbffe665e6a7cf1e35ba76ba | [
"MIT"
] | 4 | 2019-10-12T13:54:20.000Z | 2021-07-06T22:41:12.000Z | out/production/Hacktoberfest1/C++/mergeTwoSortedLL.cpp | bluey-crypto/Hacktoberfest | c826d5faf1d1c860dbffe665e6a7cf1e35ba76ba | [
"MIT"
] | 1 | 2020-10-01T18:03:45.000Z | 2020-10-01T18:03:45.000Z | out/production/Hacktoberfest1/C++/mergeTwoSortedLL.cpp | bluey-crypto/Hacktoberfest | c826d5faf1d1c860dbffe665e6a7cf1e35ba76ba | [
"MIT"
] | 8 | 2019-10-14T17:20:09.000Z | 2020-10-03T17:27:49.000Z | #include<bits/stdc++.h>
using namespace std;
struct node {
int data;
node *next;
};
node *head1 = NULL, *head2 = NULL, *tail1 = NULL, *tail2 = NULL ;
node *temp1 = NULL, *temp2 = NULL, *temp = NULL;
void createNode1(int value){
node *temp = new node;
temp->data = value;
if(head1==NU... | 21.411765 | 66 | 0.453846 | bluey-crypto |
833c211d4e2ca4b9236fb5327ad551adbcae2eab | 2,511 | cpp | C++ | Application/decode.cpp | TheRising-cxf/Test | 2b827482688446988e8c67ac5a099498ae810097 | [
"MIT"
] | null | null | null | Application/decode.cpp | TheRising-cxf/Test | 2b827482688446988e8c67ac5a099498ae810097 | [
"MIT"
] | null | null | null | Application/decode.cpp | TheRising-cxf/Test | 2b827482688446988e8c67ac5a099498ae810097 | [
"MIT"
] | null | null | null | /**
* @file decode.cpp
* @author Haoxuan Zhang (zhanghx59@mail2.sysu.edu.cn)
* @brief
* @version 0.1
* @date 2019-12-19
*
* @copyright Copyright (c) 2019
*
*/
#include "decode.h"
#include "ifft2d.h"
Mat getDecodeImg(fftPair *encode, fftPair *origin, vector<vector<float> > &vec){
int width = encode->im... | 26.15625 | 90 | 0.526483 | TheRising-cxf |
833f3859eee6677a5ed2c79c24d3646f0f1adc37 | 1,703 | cc | C++ | datasource_c_api.cc | baiyicanggou/mapnik_mvt | 9bde52fa9958d81361c015c816858534ec0931bb | [
"Apache-2.0"
] | null | null | null | datasource_c_api.cc | baiyicanggou/mapnik_mvt | 9bde52fa9958d81361c015c816858534ec0931bb | [
"Apache-2.0"
] | null | null | null | datasource_c_api.cc | baiyicanggou/mapnik_mvt | 9bde52fa9958d81361c015c816858534ec0931bb | [
"Apache-2.0"
] | null | null | null | #include "datasource_c_api.h"
#include "datasource_impl.hh"
#include "cached_datasource.hh"
#include "datasource_impl.hh"
#include "feature_impl.hh"
#include "geometry_datasource.hh"
#include "make_geometry_datasource.hh"
#include "make_raster_datasource.hh"
#include "raster_datasource.hh"
#include "raster_impl.hh"
#... | 25.044118 | 79 | 0.728127 | baiyicanggou |
83417e651b53a07e58a78f4b6b462e643afc026d | 1,369 | cpp | C++ | test/mpi/mpi_common.cpp | ricosjp/monolish-debian-package | 4e8087804e8ab03484d44106599233ed5080ba54 | [
"Apache-2.0"
] | 172 | 2021-04-05T10:04:40.000Z | 2022-03-28T14:30:38.000Z | test/mpi/mpi_common.cpp | ricosjp/monolish | 12757f93883830a89820507d44e2eea20b5026e1 | [
"Apache-2.0"
] | 96 | 2021-04-06T01:53:44.000Z | 2022-03-09T07:27:09.000Z | test/mpi/mpi_common.cpp | termoshtt/monolish | 1cba60864002b55bc666da9baa0f8c2273578e01 | [
"Apache-2.0"
] | 8 | 2021-04-05T13:21:07.000Z | 2022-03-09T23:24:06.000Z | #include "monolish_mpi.hpp"
template <typename T> T test_sum(std::vector<T> &vec) {
monolish::mpi::comm &comm = monolish::mpi::comm::get_instance();
double sum = 0;
for (size_t i = 0; i < vec.size(); i++) {
sum += vec[i];
}
return comm.Allreduce(sum);
}
int main(int argc, char **argv) {
if (argc !... | 22.816667 | 66 | 0.578524 | ricosjp |
8343dbe73934f02650d375c56dab01cec36f0774 | 16,618 | cxx | C++ | ITS/AliITSPid.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 52 | 2016-12-11T13:04:01.000Z | 2022-03-11T11:49:35.000Z | ITS/AliITSPid.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 1,388 | 2016-11-01T10:27:36.000Z | 2022-03-30T15:26:09.000Z | ITS/AliITSPid.cxx | AllaMaevskaya/AliRoot | c53712645bf1c7d5f565b0d3228e3a6b9b09011a | [
"BSD-3-Clause"
] | 275 | 2016-06-21T20:24:05.000Z | 2022-03-31T13:06:19.000Z | //------------------------------------------------------------//
// Class for identification of pions,kaons and protons in ITS //
// Prior particles population (probabilities) are taken from //
// Hijing event generator. //
//-----------------------------------------------------------... | 32.267961 | 97 | 0.526959 | AllaMaevskaya |
83456e667f22f00544aeb38fae96b3e6470b1bbc | 536 | cpp | C++ | shopaholic.cpp | nemo201/Kattis | 887711eece263965a4529048011847f7a2749fec | [
"MIT"
] | null | null | null | shopaholic.cpp | nemo201/Kattis | 887711eece263965a4529048011847f7a2749fec | [
"MIT"
] | null | null | null | shopaholic.cpp | nemo201/Kattis | 887711eece263965a4529048011847f7a2749fec | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for(int i = a; i < (b); ++i)
#define trav(a, x) for(auto& a : x)
#define all(x) x.begin(), x.end()
#define sz(x) (int)(x).size()
typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
int main() {
vi shop;
int n;
cin >> n;
rep(i,... | 17.290323 | 49 | 0.567164 | nemo201 |
83457675501cf3d38ee6c07385cfd4151b290a63 | 11,970 | cpp | C++ | src/LaneDetection/image_signal_processing.cpp | sajid-mohamed/imacs | 25810df31eeeb59c65dea71eb9467bec8fb23dd7 | [
"Apache-2.0"
] | 1 | 2021-03-22T11:18:10.000Z | 2021-03-22T11:18:10.000Z | src/LaneDetection/image_signal_processing.cpp | sajid-mohamed/imacs | 25810df31eeeb59c65dea71eb9467bec8fb23dd7 | [
"Apache-2.0"
] | null | null | null | src/LaneDetection/image_signal_processing.cpp | sajid-mohamed/imacs | 25810df31eeeb59c65dea71eb9467bec8fb23dd7 | [
"Apache-2.0"
] | 1 | 2021-03-16T20:01:45.000Z | 2021-03-16T20:01:45.000Z | /** @file image_signal_processing.cpp
* @brief source file for ISP pipeline
*
* Name : image_signal_processing.cpp
*
* Authors : Sayandip De (sayandip.de@tue.nl)
* Sajid Mohamed (s.mohamed@tue.nl)
*
* Date : March 26, 2020
*
* Function : run different approx... | 38.365385 | 148 | 0.621136 | sajid-mohamed |
83458018ccf6f0cb28c4a6212476df7d9ffce49f | 839 | hpp | C++ | libs/fnd/type_traits/include/bksge/fnd/type_traits/add_rvalue_reference.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 4 | 2018-06-10T13:35:32.000Z | 2021-06-03T14:27:41.000Z | libs/fnd/type_traits/include/bksge/fnd/type_traits/add_rvalue_reference.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 566 | 2017-01-31T05:36:09.000Z | 2022-02-09T05:04:37.000Z | libs/fnd/type_traits/include/bksge/fnd/type_traits/add_rvalue_reference.hpp | myoukaku/bksge | 0f8b60e475a3f1709723906e4796b5e60decf06e | [
"MIT"
] | 1 | 2018-07-05T04:40:53.000Z | 2018-07-05T04:40:53.000Z | /**
* @file add_rvalue_reference.hpp
*
* @brief add_rvalue_reference の定義
*
* @author myoukaku
*/
#ifndef BKSGE_FND_TYPE_TRAITS_ADD_RVALUE_REFERENCE_HPP
#define BKSGE_FND_TYPE_TRAITS_ADD_RVALUE_REFERENCE_HPP
#include <type_traits>
namespace bksge
{
/**
* @brief 型に右辺値参照を追加する
*
* @tparam ... | 20.463415 | 71 | 0.719905 | myoukaku |
8347af25601a39e8c8006c5c730c755372e810d2 | 1,679 | cpp | C++ | SourceCode/ChainBlockerLibrary/Base64.cpp | jamesjohnmcguire/BuildingBlocks | be38f6afd9640e56bf5448d2e00870e0128dbad1 | [
"MIT"
] | null | null | null | SourceCode/ChainBlockerLibrary/Base64.cpp | jamesjohnmcguire/BuildingBlocks | be38f6afd9640e56bf5448d2e00870e0128dbad1 | [
"MIT"
] | null | null | null | SourceCode/ChainBlockerLibrary/Base64.cpp | jamesjohnmcguire/BuildingBlocks | be38f6afd9640e56bf5448d2e00870e0128dbad1 | [
"MIT"
] | null | null | null | #include "pch.h"
#include "Base64.h"
namespace ChainBlocker
{
std::vector<unsigned char> Base64::Decode(
std::string input, size_t inputLength, size_t* outputLength)
{
std::vector<unsigned char> output;
const unsigned char* inputBuffer =
reinterpret_cast<const unsigned char*>(input.c_str());
const size... | 21.253165 | 69 | 0.681358 | jamesjohnmcguire |
83496e37124bb04f9fe5fa9a6044fc384a12ea85 | 644 | cpp | C++ | include/hydro/compiler/hydro/ast/EmptyExpression.cpp | hydraate/hydro | 42037a8278dcfdca68fb5cceaf6988da861f0eff | [
"Apache-2.0"
] | null | null | null | include/hydro/compiler/hydro/ast/EmptyExpression.cpp | hydraate/hydro | 42037a8278dcfdca68fb5cceaf6988da861f0eff | [
"Apache-2.0"
] | null | null | null | include/hydro/compiler/hydro/ast/EmptyExpression.cpp | hydraate/hydro | 42037a8278dcfdca68fb5cceaf6988da861f0eff | [
"Apache-2.0"
] | null | null | null | //
// __ __ __
// / / / /__ __ ____/ /_____ ____
// / /_/ // / / // __ // ___// __ \
// / __ // /_/ // /_/ // / / /_/ /
// /_/ /_/ \__, / \__,_//_/ \____/
// /____/
//
// ... | 24.769231 | 67 | 0.448758 | hydraate |
834fc481fcc1666bca34655edf8786d76b67a8c0 | 5,233 | cc | C++ | tc/benchmarks/batchmatmul.cc | yaozhujia/TensorComprehensions | 220b5902645886fc2feac61770018419ca5411bc | [
"Apache-2.0"
] | 1,841 | 2018-02-14T01:35:40.000Z | 2022-03-21T04:45:27.000Z | tc/benchmarks/batchmatmul.cc | yaozhujia/TensorComprehensions | 220b5902645886fc2feac61770018419ca5411bc | [
"Apache-2.0"
] | 457 | 2018-02-14T09:28:12.000Z | 2021-01-11T03:49:11.000Z | tc/benchmarks/batchmatmul.cc | yaozhujia/TensorComprehensions | 220b5902645886fc2feac61770018419ca5411bc | [
"Apache-2.0"
] | 229 | 2018-02-14T01:43:23.000Z | 2022-02-21T23:53:32.000Z | /**
* Copyright (c) 2017-present, Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable ... | 31.524096 | 80 | 0.679534 | yaozhujia |
835093015bcabb2f9d4db41bc6c84e980d57812f | 51,830 | cpp | C++ | modules/jvm/src/generic/JVMForeignRuntime.cpp | AlexYaruki/nigiri | 13269e1f7a8f5aaec268fc1fb822aeb9e6f5e60e | [
"Apache-2.0"
] | null | null | null | modules/jvm/src/generic/JVMForeignRuntime.cpp | AlexYaruki/nigiri | 13269e1f7a8f5aaec268fc1fb822aeb9e6f5e60e | [
"Apache-2.0"
] | null | null | null | modules/jvm/src/generic/JVMForeignRuntime.cpp | AlexYaruki/nigiri | 13269e1f7a8f5aaec268fc1fb822aeb9e6f5e60e | [
"Apache-2.0"
] | null | null | null | #include <nigiri.h>
#include <vector>
#include <stdexcept>
#include <algorithm>
#include <cassert>
#include <bits/shared_ptr.h>
#include "JVMForeignRuntime.h"
#include "JVMPrimitives.h"
#include "JVMOpParams.h"
#include "JVMThread.h"
#include "JVMInternalWrappers.h"
namespace nigiri {
namespace internal {
... | 49.035005 | 239 | 0.556859 | AlexYaruki |
835eeb9c421c54a05d8e97186d80551cc25a01ad | 21,869 | cpp | C++ | implementations/Vulkan/texture.cpp | rsayers/abstract-gpu | 48176fcb88bde7d56de662c9e49d3d0e562819e1 | [
"MIT"
] | 41 | 2016-03-25T18:14:37.000Z | 2022-01-20T11:16:52.000Z | implementations/Vulkan/texture.cpp | rsayers/abstract-gpu | 48176fcb88bde7d56de662c9e49d3d0e562819e1 | [
"MIT"
] | 4 | 2016-05-05T22:08:01.000Z | 2021-12-10T13:06:55.000Z | implementations/Vulkan/texture.cpp | rsayers/abstract-gpu | 48176fcb88bde7d56de662c9e49d3d0e562819e1 | [
"MIT"
] | 9 | 2016-05-23T01:51:25.000Z | 2021-08-21T15:32:37.000Z | #include <algorithm>
#include "texture.hpp"
#include "texture_format.hpp"
#include "texture_view.hpp"
#include "buffer.hpp"
#include "constants.hpp"
namespace AgpuVulkan
{
inline enum VkImageType mapImageType(agpu_texture_type type)
{
switch (type)
{
case AGPU_TEXTURE_2D: return VK_IMAGE_TYPE_2D;
case... | 42.136802 | 190 | 0.728063 | rsayers |
835f55e717ee01d520b1b5fdafab84f9017a3aff | 953 | hpp | C++ | maxon_epos_driver/include/maxon_epos_driver/control/ControlModeBase.hpp | farshad-heravi/maxon_driver | 637688fd4cd1e6aabc4335bad53554f1bc3591bf | [
"MIT"
] | null | null | null | maxon_epos_driver/include/maxon_epos_driver/control/ControlModeBase.hpp | farshad-heravi/maxon_driver | 637688fd4cd1e6aabc4335bad53554f1bc3591bf | [
"MIT"
] | null | null | null | maxon_epos_driver/include/maxon_epos_driver/control/ControlModeBase.hpp | farshad-heravi/maxon_driver | 637688fd4cd1e6aabc4335bad53554f1bc3591bf | [
"MIT"
] | null | null | null | /**
* @file ModeBase
* @brief
* @author arwtyxouymz
* @date 2019-06-04 11:31:01
*/
#ifndef _ModeBase_HPP
#define _ModeBase_HPP
#include <string>
#include <vector>
#include <ros/ros.h>
#include "maxon_epos_driver/Device.hpp"
class ControlModeBase {
public:
std::string name;
virtual ~Con... | 23.825 | 135 | 0.655824 | farshad-heravi |
836029d5e6fe6b5f521d00fbbcd1dac74cc2a8c6 | 52,229 | cpp | C++ | src/JSystem/JUT/JUTFontData_Ascfont_fix12.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 33 | 2021-12-08T11:10:59.000Z | 2022-03-26T19:59:37.000Z | src/JSystem/JUT/JUTFontData_Ascfont_fix12.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 6 | 2021-12-22T17:54:31.000Z | 2022-01-07T21:43:18.000Z | src/JSystem/JUT/JUTFontData_Ascfont_fix12.cpp | projectPiki/pikmin2 | a431d992acde856d092889a515ecca0e07a3ea7c | [
"Unlicense"
] | 2 | 2022-01-04T06:00:49.000Z | 2022-01-26T07:27:28.000Z | #include "types.h"
#include "JSystem/JUT/ResFONT.h"
const int JUTResFONT_Ascfont_fix12[] ATTRIBUTE_ALIGN(32)
= { 0x464F4E54, 0x62666E31, 0x00004160, 0x00000004, 0x00000000, 0x00000000, 0x00000000, 0x00000000, 0x494E4631, 0x00000020, 0x0000000C,
0x0000000C, 0x000C0000, 0x00000000, 0x9FFFFFFF, 0x7FFFFFFF, 0x57... | 134.958656 | 139 | 0.802753 | projectPiki |
83657a83df638e52db271108ef1b9c692a20ca10 | 8,178 | cpp | C++ | 10-11/JackTokenizer.cpp | jomiller/nand2tetris | 4be20996e1b5185654ef4de5234a9543f957d6fc | [
"MIT"
] | 1 | 2020-10-13T07:06:37.000Z | 2020-10-13T07:06:37.000Z | 10-11/JackTokenizer.cpp | jomiller/nand2tetris | 4be20996e1b5185654ef4de5234a9543f957d6fc | [
"MIT"
] | null | null | null | 10-11/JackTokenizer.cpp | jomiller/nand2tetris | 4be20996e1b5185654ef4de5234a9543f957d6fc | [
"MIT"
] | null | null | null | /*
* This file is part of Nand2Tetris.
*
* Copyright © 2013-2020 Jonathan Miller
*
* 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... | 26.638436 | 120 | 0.534483 | jomiller |
83674a979c998d35be2cbf41aec0226e3adb034c | 4,397 | cpp | C++ | apps/PhotoconsistencyVisualOdometry/src/CRGBDGrabberRawlog.cpp | doctorwk007/photoconsistency-visual-odometry | 861706c27bba2993e775131b6622c66d3b663439 | [
"BSD-3-Clause"
] | 7 | 2017-01-09T16:58:50.000Z | 2021-08-23T15:44:51.000Z | apps/PhotoconsistencyVisualOdometry/src/CRGBDGrabberRawlog.cpp | doctorwk007/photoconsistency-visual-odometry | 861706c27bba2993e775131b6622c66d3b663439 | [
"BSD-3-Clause"
] | null | null | null | apps/PhotoconsistencyVisualOdometry/src/CRGBDGrabberRawlog.cpp | doctorwk007/photoconsistency-visual-odometry | 861706c27bba2993e775131b6622c66d3b663439 | [
"BSD-3-Clause"
] | 1 | 2019-11-23T09:40:49.000Z | 2019-11-23T09:40:49.000Z | /*
* Photoconsistency-Visual-Odometry
* Multiscale Photoconsistency Visual Odometry from RGBD Images
* Copyright (c) 2012, Miguel Algaba Borrego
*
* http://code.google.com/p/photoconsistency-visual-odometry/
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
... | 40.33945 | 126 | 0.650216 | doctorwk007 |
83698a1cd3160d74beed9123c0bd2a3d5964362e | 2,998 | cpp | C++ | lib/timers/backends/src/win32/backend.cpp | voivoid/CppMockIO | 510318d188662166370fb16ba83faa1817e445bb | [
"MIT"
] | null | null | null | lib/timers/backends/src/win32/backend.cpp | voivoid/CppMockIO | 510318d188662166370fb16ba83faa1817e445bb | [
"MIT"
] | null | null | null | lib/timers/backends/src/win32/backend.cpp | voivoid/CppMockIO | 510318d188662166370fb16ba83faa1817e445bb | [
"MIT"
] | null | null | null | #include "CppMockIO/timers/backend.h"
#include <mutex>
#include <stdexcept>
#include <cassert>
#define WIN32_LEAN_AND_MEAN
#include <sdkddkver.h>
#include <Windows.h>
namespace CppMockIO
{
namespace timers
{
namespace backend
{
namespace
{
void safe_run_action(const runnable& runnabl... | 24.983333 | 156 | 0.56938 | voivoid |
836c2a34119e0046901bd9d0f46ac6b369d56f94 | 5,996 | hxx | C++ | externals/src/moderngpu/loadstore.hxx | aka-chris/mini | 608751ff11f74e1ee59222399cbf6c9ee92208fb | [
"Apache-2.0"
] | 216 | 2021-07-21T02:24:54.000Z | 2021-07-30T03:33:10.000Z | externals/src/moderngpu/loadstore.hxx | aka-chris/mini | 608751ff11f74e1ee59222399cbf6c9ee92208fb | [
"Apache-2.0"
] | null | null | null | externals/src/moderngpu/loadstore.hxx | aka-chris/mini | 608751ff11f74e1ee59222399cbf6c9ee92208fb | [
"Apache-2.0"
] | 94 | 2021-07-21T02:24:56.000Z | 2021-07-24T23:50:38.000Z | // moderngpu copyright (c) 2016, Sean Baxter http://www.moderngpu.com
#pragma once
#include "types.hxx"
#include "intrinsics.hxx"
BEGIN_MGPU_NAMESPACE
////////////////////////////////////////////////////////////////////////////////
// reg<->shared
template<int nt, int vt, typename type_t, int shared_size>
MGPU_DEVI... | 31.724868 | 80 | 0.652435 | aka-chris |
8370f0a0dbd447696b93fc7dd2c55b6cb6698e6b | 2,259 | cpp | C++ | third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.cpp | 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 | third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.cpp | emilio/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | third_party/WebKit/Source/core/css/parser/CSSLazyParsingState.cpp | emilio/chromium.src | 1bd0cf3997f947746c0fc5406a2466e7b5f6159e | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | null | null | null | // Copyright 2016 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 "core/css/parser/CSSLazyParsingState.h"
#include "core/css/parser/CSSParserTokenRange.h"
#include "core/frame/UseCounter.h"
namespace blink {
C... | 39.631579 | 80 | 0.686144 | xzhan96 |
8374c392966aff5692a7065530eee27c8c4b8785 | 2,687 | cpp | C++ | SpaceshIT!/SpaceshIT!/Queue.cpp | ColdSpotYZ/SpaceshIT | 8fe2dcdd202536b5127e14a140c5f833720b1eeb | [
"MIT"
] | null | null | null | SpaceshIT!/SpaceshIT!/Queue.cpp | ColdSpotYZ/SpaceshIT | 8fe2dcdd202536b5127e14a140c5f833720b1eeb | [
"MIT"
] | null | null | null | SpaceshIT!/SpaceshIT!/Queue.cpp | ColdSpotYZ/SpaceshIT | 8fe2dcdd202536b5127e14a140c5f833720b1eeb | [
"MIT"
] | null | null | null | /*
Team member: Lim Kai Xian
Group: CookieZ
studentID: S10195450H
*/
#pragma once
#include "stdafx.h"
#include "Queue.h"
#include <string>
using namespace std;
Queue::Queue() { size = 0; current = 0; salt = rand() % 512;}
Queue::~Queue()
{
while (!isEmpty())
{
dequeue_back();
}
current = NULL;
size = NULL;
}... | 16.899371 | 98 | 0.639747 | ColdSpotYZ |
83778138193b88547af0fa4ece2272a9b3df8b2c | 2,290 | cpp | C++ | deps/reproc/reproc++/examples/cmake-help.cpp | Fookdies301/GrinPlusPlus | 981a99af0ae04633afbd02666894b5c199e06339 | [
"MIT"
] | 135 | 2018-12-17T15:38:16.000Z | 2022-03-01T05:38:29.000Z | deps/reproc/reproc++/examples/cmake-help.cpp | Fookdies301/GrinPlusPlus | 981a99af0ae04633afbd02666894b5c199e06339 | [
"MIT"
] | 185 | 2018-12-21T13:56:29.000Z | 2022-03-23T14:41:46.000Z | deps/reproc/reproc++/examples/cmake-help.cpp | Fookdies301/GrinPlusPlus | 981a99af0ae04633afbd02666894b5c199e06339 | [
"MIT"
] | 49 | 2018-12-23T12:05:51.000Z | 2022-03-26T14:24:49.000Z | #include <reproc++/reproc.hpp>
#include <reproc++/sink.hpp>
#include <array>
#include <iostream>
static int fail(std::error_code ec)
{
std::cerr << ec.message();
return 1;
}
// Uses reproc++ to print CMake's help page.
int main()
{
reproc::process process;
// The `process::start` method works with any conta... | 35.230769 | 80 | 0.69607 | Fookdies301 |
8378bd5c7770e1f67f5dc446fd971de0ecd8c729 | 6,625 | cpp | C++ | apps/heat/run.cpp | POETSII/jordmorr-tinsel | 39249538d532e4945d9916748346c261dc5ea75d | [
"BSD-2-Clause"
] | 31 | 2019-09-18T10:55:47.000Z | 2021-12-01T20:39:46.000Z | apps/heat/run.cpp | POETSII/jordmorr-tinsel | 39249538d532e4945d9916748346c261dc5ea75d | [
"BSD-2-Clause"
] | 26 | 2019-10-13T13:33:04.000Z | 2021-11-10T11:09:48.000Z | apps/heat/run.cpp | POETSII/jordmorr-tinsel | 39249538d532e4945d9916748346c261dc5ea75d | [
"BSD-2-Clause"
] | 1 | 2020-09-11T17:32:43.000Z | 2020-09-11T17:32:43.000Z | // SPDX-License-Identifier: BSD-2-Clause
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <assert.h>
#include <sys/time.h>
#include <HostLink.h>
#include "heat.h"
// Magnification factor when displaying heat map
const int MAG = 2;
// 256 x RGB colours representing heat intensities
int heat[] = {
... | 45.376712 | 77 | 0.618113 | POETSII |
837c8b732b65fa6297e16029f409247ebb602f1f | 178,287 | cc | C++ | keynote-protos/gen/TSCHArchives.Common.pb.cc | eth-siplab/SVG2Keynote-lib | b7e6dfe5084911dac1fa6261a14254bfbbd8065b | [
"MIT"
] | 4 | 2021-11-24T14:27:32.000Z | 2022-03-14T07:52:44.000Z | keynote-protos/gen/TSCHArchives.Common.pb.cc | eth-siplab/SVG2Keynote-lib | b7e6dfe5084911dac1fa6261a14254bfbbd8065b | [
"MIT"
] | null | null | null | keynote-protos/gen/TSCHArchives.Common.pb.cc | eth-siplab/SVG2Keynote-lib | b7e6dfe5084911dac1fa6261a14254bfbbd8065b | [
"MIT"
] | null | null | null | // Generated by the protocol buffer compiler. DO NOT EDIT!
// source: TSCHArchives.Common.proto
#include "TSCHArchives.Common.pb.h"
#include <algorithm>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/des... | 38.185265 | 194 | 0.74131 | eth-siplab |
837d9f6d44723ba8afe7f9b91c002461cc41994c | 367 | cpp | C++ | FSM/TrafficLight/TrafficLightSystem.cpp | Labae/CK_2-2-Game_AI | a8d953835883fd0cf7f92ba5d86fa93785f373bc | [
"MIT"
] | null | null | null | FSM/TrafficLight/TrafficLightSystem.cpp | Labae/CK_2-2-Game_AI | a8d953835883fd0cf7f92ba5d86fa93785f373bc | [
"MIT"
] | null | null | null | FSM/TrafficLight/TrafficLightSystem.cpp | Labae/CK_2-2-Game_AI | a8d953835883fd0cf7f92ba5d86fa93785f373bc | [
"MIT"
] | null | null | null | #include "TrafficLightSystem.h"
#include "RedState.h"
TrafficLightSystem::TrafficLightSystem()
{
_currentState = RedState::GetInstance();
}
void TrafficLightSystem::Update()
{
_currentState->Execute(this);
}
void TrafficLightSystem::ChangeState(TrafficLightState* newState)
{
_currentState->Exit(this);
_currentSt... | 18.35 | 65 | 0.773842 | Labae |
83848908769e44e2dd54352c19cf74b42dc858bd | 12,497 | cpp | C++ | uppdev/Decimal/decimal.cpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | 2 | 2016-04-07T07:54:26.000Z | 2020-04-14T12:37:34.000Z | uppdev/Decimal/decimal.cpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | null | null | null | uppdev/Decimal/decimal.cpp | dreamsxin/ultimatepp | 41d295d999f9ff1339b34b43c99ce279b9b3991c | [
"BSD-2-Clause"
] | null | null | null | #include "decimal.h"
decimal::decimal() {
ASSERT(_D_SIZE_>_D_PREC_);
parse_string=true;
memsetd(number, 0, _D_SIZE_);
sign=1;
trim_trailing_zeroes=true;
print_precision=DECIMAL_PRECISION;
rounding_mode=DEFAULT_ROUNDING;
parse_string=true;
}
void decimal::FromString(String s) {
int i=0, idx=-1, ... | 23.099815 | 171 | 0.58238 | dreamsxin |
83880c9a9e2fe889701fe33268bcd2629cf76c4e | 45,042 | cxx | C++ | Utilities/ImMapAttic/vtkFLTKOpenGLRenderWindow.cxx | NIRALUser/AtlasWerks | a074ca208ab41a6ed89c1f0b70004998f7397681 | [
"BSD-3-Clause"
] | 3 | 2016-04-26T05:06:06.000Z | 2020-08-01T09:46:54.000Z | Utilities/ImMapAttic/vtkFLTKOpenGLRenderWindow.cxx | scalphunters/AtlasWerks | 9d224bf8db628805368fcb7973ac578937b6b595 | [
"BSD-3-Clause"
] | 1 | 2018-11-27T21:53:48.000Z | 2019-05-13T15:21:31.000Z | Utilities/ImMapAttic/vtkFLTKOpenGLRenderWindow.cxx | scalphunters/AtlasWerks | 9d224bf8db628805368fcb7973ac578937b6b595 | [
"BSD-3-Clause"
] | 2 | 2019-01-24T02:07:17.000Z | 2019-12-11T17:27:42.000Z | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* $Id: vtkFLTKOpenGLRenderWindow.cxx,v 1.44 2005/04/27 02:47:07 xpxqx Exp $
*
* Copyright (c) 2002 - 2005 Sean McInerney
* All rights reserved.
*
* See Copyright.txt or http://vtkfltk.sourceforge.net/Copyright.html
* for details.
*
... | 25.960807 | 85 | 0.581946 | NIRALUser |
838d5e516f5c1b72570cf8634f230a938a2f0103 | 1,811 | cpp | C++ | src/editor/core/BFDataManager.cpp | RLefrancoise/BlackFox | 7814c58dca5c11cb9a80f42d4ed5f43ea7745875 | [
"MIT"
] | 3 | 2020-04-23T06:50:48.000Z | 2022-03-14T17:50:37.000Z | src/editor/core/BFDataManager.cpp | RLefrancoise/BlackFox | 7814c58dca5c11cb9a80f42d4ed5f43ea7745875 | [
"MIT"
] | 1 | 2019-11-29T14:21:11.000Z | 2019-11-29T19:35:53.000Z | src/editor/core/BFDataManager.cpp | RLefrancoise/BlackFox | 7814c58dca5c11cb9a80f42d4ed5f43ea7745875 | [
"MIT"
] | null | null | null | #include "BFDataManager.h"
#include <utility>
namespace BlackFox::Editor
{
BFDataManager::BFDataManager(IBFResourcesHolder::Ptr resourcesHolder)
: m_resourcesHolder(std::move(resourcesHolder))
{
}
BFDataManager::BFDataManager(BFDataManager&& dataManager) noexcept
: m_resourcesHolder(std::move(dataManager.m_re... | 24.808219 | 94 | 0.767532 | RLefrancoise |
838e8dec8f1d5233f656f598d5b753e55ab36237 | 2,757 | cpp | C++ | src/interpreter/ReplyTemplateInterpreter.cpp | open-intent-io/open-intent | 57d8c4fc89c038f51138d51e776880e728152194 | [
"MIT"
] | 47 | 2016-07-05T15:20:33.000Z | 2021-08-06T05:38:33.000Z | src/interpreter/ReplyTemplateInterpreter.cpp | open-intent-io/open-intent | 57d8c4fc89c038f51138d51e776880e728152194 | [
"MIT"
] | 30 | 2016-07-03T22:42:11.000Z | 2017-11-17T15:58:10.000Z | src/interpreter/ReplyTemplateInterpreter.cpp | open-intent-io/open-intent | 57d8c4fc89c038f51138d51e776880e728152194 | [
"MIT"
] | 8 | 2016-07-22T20:07:58.000Z | 2017-11-05T10:40:29.000Z | /*
|---------------------------------------------------------|
| ___ ___ _ _ |
| / _ \ _ __ ___ _ __ |_ _|_ __ | |_ ___ _ __ | |_ |
| | | | | '_ \ / _ \ '_ \ | || '_ \| __/ _ \ '_ \| __| |
| | |_| | |_) | __/ | | || || | | | || __/ | | | |_ |
| \___/| .__/ \... | 45.95 | 79 | 0.524846 | open-intent-io |
8b52c4f1949b2dd7ff759d0181339ab34a39ea60 | 3,514 | cpp | C++ | LabB/RensselaerArduinoSupportPackageLibrary/RASPlib/src/HCSR04wrapper.cpp | zachtyll/R7003E | f31f314e52b805cb0fa9a65fdc1ceb7548fc2ce8 | [
"MIT"
] | null | null | null | LabB/RensselaerArduinoSupportPackageLibrary/RASPlib/src/HCSR04wrapper.cpp | zachtyll/R7003E | f31f314e52b805cb0fa9a65fdc1ceb7548fc2ce8 | [
"MIT"
] | null | null | null | LabB/RensselaerArduinoSupportPackageLibrary/RASPlib/src/HCSR04wrapper.cpp | zachtyll/R7003E | f31f314e52b805cb0fa9a65fdc1ceb7548fc2ce8 | [
"MIT"
] | null | null | null | // HCSR04wrapper.cpp
#include "NewPing.h"
// setup for max of 3 sonar readings:
NewPing sonar1(0,0,0); // NewPing setup of pins and maximum distance.
NewPing sonar2(0,0,0); // NewPing setup of pins and maximum distance.
NewPing sonar3(0,0,0); // NewPing setup of pins and maximum distance.
extern "C" void HCSR04Sonar... | 54.90625 | 159 | 0.67786 | zachtyll |
8b55e101684c32b0bb4881f21702911da48a3b45 | 574 | cpp | C++ | PAT/A1067.cpp | iphelf/Programming-Practice | 2a95bb7153957b035427046b250bf7ffc6b00906 | [
"WTFPL"
] | null | null | null | PAT/A1067.cpp | iphelf/Programming-Practice | 2a95bb7153957b035427046b250bf7ffc6b00906 | [
"WTFPL"
] | null | null | null | PAT/A1067.cpp | iphelf/Programming-Practice | 2a95bb7153957b035427046b250bf7ffc6b00906 | [
"WTFPL"
] | null | null | null | #include<cstdio>
#include<algorithm>
using namespace std;
const int MAXN=1e5;
int N,a[MAXN];
int main(void) {
// freopen("in.txt","r",stdin);
scanf("%d",&N);
for(int i=0; i<N; i++)
scanf("%d",&a[i]);
int cnt=0;
for(int i=0; i<N; i++) {
if(a[i]==i) continue;
... | 15.513514 | 35 | 0.38676 | iphelf |
8b57247b3d5ba35d83fb2aeedeab57aa499de0af | 2,318 | cpp | C++ | src/main/cpp/base/HostInfo.cpp | lizhanhui/rocketmq-client-cpp | d2001836e40d4f1da29ae7b2848fdfe0077ed1bf | [
"Apache-2.0"
] | null | null | null | src/main/cpp/base/HostInfo.cpp | lizhanhui/rocketmq-client-cpp | d2001836e40d4f1da29ae7b2848fdfe0077ed1bf | [
"Apache-2.0"
] | null | null | null | src/main/cpp/base/HostInfo.cpp | lizhanhui/rocketmq-client-cpp | d2001836e40d4f1da29ae7b2848fdfe0077ed1bf | [
"Apache-2.0"
] | 1 | 2021-09-16T06:31:07.000Z | 2021-09-16T06:31:07.000Z | /*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may ... | 30.103896 | 98 | 0.715272 | lizhanhui |
8b583dfd582163e186490f7b4bedb6e34a10d010 | 1,935 | cc | C++ | android_webview/native/intercepted_request_data_impl.cc | iplo/Chain | 8bc8943d66285d5258fffc41bed7c840516c4422 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 231 | 2015-01-08T09:04:44.000Z | 2021-12-30T03:03:10.000Z | android_webview/native/intercepted_request_data_impl.cc | j4ckfrost/android_external_chromium_org | a1a3dad8b08d1fcf6b6b36c267158ed63217c780 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 1 | 2017-02-14T21:55:58.000Z | 2017-02-14T21:55:58.000Z | android_webview/native/intercepted_request_data_impl.cc | j4ckfrost/android_external_chromium_org | a1a3dad8b08d1fcf6b6b36c267158ed63217c780 | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] | 268 | 2015-01-21T05:53:28.000Z | 2022-03-25T22:09:01.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 "android_webview/native/intercepted_request_data_impl.h"
#include "android_webview/native/input_stream_impl.h"
#include "base/android/jni_an... | 32.25 | 76 | 0.767442 | iplo |
8b5d56fa1d1ffb753838142c830fcee19891e72b | 6,209 | cpp | C++ | EScript/Objects/Type.cpp | antifermion/EScript | eca6765c28e319eb77b4da81125bdbb2510c9add | [
"MIT"
] | 3 | 2017-06-01T15:58:43.000Z | 2019-08-07T05:36:44.000Z | EScript/Objects/Type.cpp | antifermion/EScript | eca6765c28e319eb77b4da81125bdbb2510c9add | [
"MIT"
] | 4 | 2015-01-23T18:17:50.000Z | 2019-02-10T11:48:55.000Z | EScript/Objects/Type.cpp | antifermion/EScript | eca6765c28e319eb77b4da81125bdbb2510c9add | [
"MIT"
] | 12 | 2015-01-04T16:07:45.000Z | 2020-10-06T15:42:46.000Z | // Type.cpp
// This file is part of the EScript programming language (https://github.com/EScript)
//
// Copyright (C) 2011-2013 Claudius Jähn <ClaudiusJ@live.de>
// Copyright (C) 2012 Benjamin Eikel <benjamin@eikel.org>
//
// Licensed under the MIT License. See LICENSE file for details.
// -----------------------------... | 27.968468 | 108 | 0.692543 | antifermion |
8b612dd0b54e11f296b684877d4b2728f2c7298e | 1,081 | cpp | C++ | geotrans3.7/CCS/src/dtcc/CoordinateSystemParameters/CoordinateSystemParameters.cpp | mjj203/tippecanoe | 140ae1da6438a23d82f41e9c7b7b129107bf6e2d | [
"BSD-2-Clause"
] | 1 | 2021-07-05T07:40:49.000Z | 2021-07-05T07:40:49.000Z | geotrans3.7/CCS/src/dtcc/CoordinateSystemParameters/CoordinateSystemParameters.cpp | mjj203/tippecanoe | 140ae1da6438a23d82f41e9c7b7b129107bf6e2d | [
"BSD-2-Clause"
] | 1 | 2015-01-13T10:08:35.000Z | 2015-01-13T10:08:35.000Z | geotrans3.7/CCS/src/dtcc/CoordinateSystemParameters/CoordinateSystemParameters.cpp | mjj203/tippecanoe | 140ae1da6438a23d82f41e9c7b7b129107bf6e2d | [
"BSD-2-Clause"
] | 2 | 2017-07-24T13:34:49.000Z | 2017-11-14T16:52:38.000Z | // CLASSIFICATION: UNCLASSIFIED
#include "CoordinateSystemParameters.h"
#include "CoordinateType.h"
using namespace MSP::CCS;
CoordinateSystemParameters::CoordinateSystemParameters() :
_coordinateType( CoordinateType::geodetic )
{
}
CoordinateSystemParameters::CoordinateSystemParameters( MSP::CCS::CoordinateType:... | 19.654545 | 107 | 0.794635 | mjj203 |
8b61628ab559bc8a80489b06dfbb9f4bebd11da6 | 65 | cpp | C++ | shared/src/shared/state/player_input.cpp | dumheter/wind_simulation | adf731847cb6145a85792a0ebceacc725a3acf9e | [
"MIT"
] | 1 | 2021-04-26T11:24:02.000Z | 2021-04-26T11:24:02.000Z | shared/src/shared/state/player_input.cpp | dumheter/wind_simulation | adf731847cb6145a85792a0ebceacc725a3acf9e | [
"MIT"
] | 1 | 2020-06-09T08:53:07.000Z | 2020-06-16T13:37:15.000Z | shared/src/shared/state/player_input.cpp | dumheter/wind_simulation | adf731847cb6145a85792a0ebceacc725a3acf9e | [
"MIT"
] | null | null | null | #include "player_input.hpp"
namespace wind {} // namespace wind
| 16.25 | 35 | 0.738462 | dumheter |
8b62211d5d084f24cfc854b4e2fb56e49c8acf61 | 282 | cpp | C++ | src/c++ primer 5th/ch13-content/ch_13.6.3_cont_test.cpp | aparesse/Eudemonia | cb2d9cde5e9ab60a8f62747a9c48d7a44eabe8d1 | [
"MIT"
] | null | null | null | src/c++ primer 5th/ch13-content/ch_13.6.3_cont_test.cpp | aparesse/Eudemonia | cb2d9cde5e9ab60a8f62747a9c48d7a44eabe8d1 | [
"MIT"
] | null | null | null | src/c++ primer 5th/ch13-content/ch_13.6.3_cont_test.cpp | aparesse/Eudemonia | cb2d9cde5e9ab60a8f62747a9c48d7a44eabe8d1 | [
"MIT"
] | null | null | null | #include "ch_13.6.3_cont.h"
#include <string>
using std::string;
int main()
{
StrVec vec; //空StrVec
string s = "some string or another";
vec.push_back(s); //调用push_back(const string&)
vec.push_back("done"); //调用push_back(string&&) 字面值是右值,此处是(从"done"创建的临时string)
return 0;
}
| 18.8 | 78 | 0.695035 | aparesse |
8b64f8b5c10ae0516dfa29dcad7ddd7f38a5510e | 3,225 | cxx | C++ | src/main.cxx | nshcat/fractal | 6be4c9684c25520b231375006a51428e37cf56bc | [
"MIT"
] | null | null | null | src/main.cxx | nshcat/fractal | 6be4c9684c25520b231375006a51428e37cf56bc | [
"MIT"
] | null | null | null | src/main.cxx | nshcat/fractal | 6be4c9684c25520b231375006a51428e37cf56bc | [
"MIT"
] | null | null | null | #include <cl.hxx>
#include <log.hxx>
#include <ut/integral.hxx>
#include <application.hxx>
using namespace ut::literals;
fractal::configuration g_config{ };
lg::severity_level g_logLevel{ };
bool g_verbose{ };
cl::handler g_handler{
cl::application_name("fractal"),
cl::help_argument{ },
cl::integer_argument<u... | 26.219512 | 95 | 0.693023 | nshcat |
8b6937d811b405de19f167bc80d4a06cf35db50b | 4,450 | cpp | C++ | src/concepts.cpp | SammyEnigma/blog | f0f3ef44ea4fd622befae81d2f4e5e6a607acfd1 | [
"0BSD"
] | 94 | 2019-02-17T09:25:28.000Z | 2022-03-31T03:25:14.000Z | src/concepts.cpp | SammyEnigma/blog | f0f3ef44ea4fd622befae81d2f4e5e6a607acfd1 | [
"0BSD"
] | 5 | 2020-09-05T09:38:59.000Z | 2021-11-29T15:38:57.000Z | src/concepts.cpp | SammyEnigma/blog | f0f3ef44ea4fd622befae81d2f4e5e6a607acfd1 | [
"0BSD"
] | 29 | 2019-02-17T09:25:36.000Z | 2022-03-17T08:53:38.000Z | #include <iostream>
#include <concepts>
#include <type_traits>
template<typename T> concept always_true = true;
template<typename T> concept always_true_2 = requires { requires true; };
template<typename T> requires always_true<T> void good(T) {} // ALWAYS compiles
template<typename T> requires always_true_2<T> void ... | 33.458647 | 111 | 0.679775 | SammyEnigma |
8b6f97c47533331472e402ceeb20e539641a54fa | 725 | hh | C++ | src/mem/ruby/profiler/XactVisualizer.hh | rtitos/gem5 | a9668f91d9f96aafc4a36453e3ba1242c60776a6 | [
"BSD-3-Clause"
] | null | null | null | src/mem/ruby/profiler/XactVisualizer.hh | rtitos/gem5 | a9668f91d9f96aafc4a36453e3ba1242c60776a6 | [
"BSD-3-Clause"
] | 1 | 2022-01-31T13:15:08.000Z | 2022-01-31T13:15:08.000Z | src/mem/ruby/profiler/XactVisualizer.hh | rtitos/gem5 | a9668f91d9f96aafc4a36453e3ba1242c60776a6 | [
"BSD-3-Clause"
] | null | null | null | /*
Copyright (C) 2016-2021 Rubén Titos <rtitos@um.es>
Universidad de Murcia
GPLv2, see file LICENSE.
*/
#ifndef __MEM_RUBY_HTM_XACTVISUALIZER_HH__
#define __MEM_RUBY_HTM_XACTVISUALIZER_HH__
#include <ostream>
#include <vector>
#include "mem/ruby/profiler/annotated_regions.h"
#include "mem/ruby/system/Se... | 16.860465 | 63 | 0.757241 | rtitos |
8b7096e9227912d4a345aceaf3dacf8ccc93c7a6 | 4,405 | cpp | C++ | tic-tac-toe (1).cpp | Weaam-Yehiaa/tic_tac_toe | d46b6171a4429d9fa200aca8da96db3ae68ae980 | [
"MIT"
] | null | null | null | tic-tac-toe (1).cpp | Weaam-Yehiaa/tic_tac_toe | d46b6171a4429d9fa200aca8da96db3ae68ae980 | [
"MIT"
] | null | null | null | tic-tac-toe (1).cpp | Weaam-Yehiaa/tic_tac_toe | d46b6171a4429d9fa200aca8da96db3ae68ae980 | [
"MIT"
] | null | null | null | #include <bits/stdc++.h>
using namespace std;
const int N = 3;
const char marks[2] = {'X', 'O'};
char grid[N][N];
vector<pair<int,int > > v;
//This function prints the grid of Tic-Tac-Toe Game as the game progresses
void print_grid() {
cout << "Player 1: " << marks[0] << " vs Player 2: " << marks[1] << "\n";
... | 27.879747 | 87 | 0.481725 | Weaam-Yehiaa |
8b75b54a1e0b4a61562fc217f92759f34e03bbe6 | 1,590 | cpp | C++ | P/1066-WA.cpp | langonginc/cfile | 46458897b8a4a8d58a2bc63ecb6ef84f76bdb61f | [
"MIT"
] | 1 | 2020-09-13T02:51:25.000Z | 2020-09-13T02:51:25.000Z | P/1066-WA.cpp | langonginc/cfile | 46458897b8a4a8d58a2bc63ecb6ef84f76bdb61f | [
"MIT"
] | null | null | null | P/1066-WA.cpp | langonginc/cfile | 46458897b8a4a8d58a2bc63ecb6ef84f76bdb61f | [
"MIT"
] | 1 | 2021-06-05T03:37:57.000Z | 2021-06-05T03:37:57.000Z | #include<iostream>
#include<cstdio>
#include<cstring>
using namespace std;
#define mms(tpp,xgg) memset(tpp,xgg,sizeof(tpp))
typedef long long ll;
const ll inf=30001;
// 1.计算质数
ll prime[inf],ta[inf],pc;
void pt()
{
for(ll i=2;i<inf;i++)
{
ta[i]=1;
}
for(ll i=2;i<inf;i++)
{
if(ta[i])
{
prime[... | 14.859813 | 56 | 0.445283 | langonginc |
8b78836e2b09e573c82493a200bb35bcd80286bd | 10,207 | cpp | C++ | src/lib/huffman_enc.cpp | Special-graphic-formats/himg | 62859ca604f33629239d0da5fbf2dceae9fc4b8b | [
"Unlicense"
] | 17 | 2015-09-08T09:08:02.000Z | 2019-05-11T06:08:18.000Z | src/lib/huffman_enc.cpp | Special-graphic-formats/himg | 62859ca604f33629239d0da5fbf2dceae9fc4b8b | [
"Unlicense"
] | 3 | 2015-09-14T09:00:49.000Z | 2021-12-16T11:47:01.000Z | src/lib/huffman_enc.cpp | Special-graphic-formats/himg | 62859ca604f33629239d0da5fbf2dceae9fc4b8b | [
"Unlicense"
] | 3 | 2015-06-13T22:04:31.000Z | 2019-12-29T11:22:49.000Z | //-----------------------------------------------------------------------------
// HIMG, by Marcus Geelnard, 2015
//
// This is free and unencumbered software released into the public domain.
//
// See LICENSE for details.
//-----------------------------------------------------------------------------
#include "huffma... | 27.887978 | 80 | 0.573332 | Special-graphic-formats |
8b7c2505e253e7c8be5fe3c50767d8c9eabad505 | 31,881 | cpp | C++ | studio/ResourcesDoc.cpp | mmcguill/disasm-legacy | 1bc3a459fd943ef03ad2bf38b3dac11dabaab8f1 | [
"MIT"
] | null | null | null | studio/ResourcesDoc.cpp | mmcguill/disasm-legacy | 1bc3a459fd943ef03ad2bf38b3dac11dabaab8f1 | [
"MIT"
] | null | null | null | studio/ResourcesDoc.cpp | mmcguill/disasm-legacy | 1bc3a459fd943ef03ad2bf38b3dac11dabaab8f1 | [
"MIT"
] | null | null | null | /////////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "Studio.h"
#include "ResourcesDoc.h"
#include ".\resourcesdoc.h"
/////////////////////////////////////////////////////////////////////////////
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
st... | 22.341275 | 98 | 0.458674 | mmcguill |
8b7c60ee28b53894d3d5a881de10a3594f676700 | 2,054 | cpp | C++ | beast_king/server_threaded.cpp | handicraftsman/beast_king | c429d1637ac21e6b2384f514669d9e73b68be1ae | [
"MIT"
] | 1 | 2019-02-19T05:38:43.000Z | 2019-02-19T05:38:43.000Z | beast_king/server_threaded.cpp | handicraftsman/beast_king | c429d1637ac21e6b2384f514669d9e73b68be1ae | [
"MIT"
] | null | null | null | beast_king/server_threaded.cpp | handicraftsman/beast_king | c429d1637ac21e6b2384f514669d9e73b68be1ae | [
"MIT"
] | 1 | 2020-03-04T05:08:03.000Z | 2020-03-04T05:08:03.000Z | #include "server_threaded.hpp"
#include "log.hpp"
#include <chrono>
#include <iostream>
#include <regex>
#include <stdexcept>
#include <string>
#include <thread>
using tcp = boost::asio::ip::tcp;
BeastKing::ServerThreaded::ServerThreaded(AppPtr app, const std::string& addr)
: BeastKing::Server(app, addr)
{}
BeastKi... | 25.358025 | 92 | 0.572541 | handicraftsman |
8b7e8ed58a6d1116de57374978914c72f171a5d9 | 2,629 | hh | C++ | src/Simulation.hh | arafin-lab/FaultSim-A-Memory-Reliability-Simulator | 4caee9ffd6d8fae2a0db34c743d94107e618723d | [
"BSD-3-Clause"
] | 2 | 2016-04-05T00:57:49.000Z | 2017-03-16T21:54:04.000Z | src/Simulation.hh | arafin-lab/FaultSim-A-Memory-Reliability-Simulator | 4caee9ffd6d8fae2a0db34c743d94107e618723d | [
"BSD-3-Clause"
] | 1 | 2020-04-19T21:40:12.000Z | 2020-04-19T21:41:06.000Z | src/Simulation.hh | arafin-lab/FaultSim-A-Memory-Reliability-Simulator | 4caee9ffd6d8fae2a0db34c743d94107e618723d | [
"BSD-3-Clause"
] | 9 | 2015-09-04T16:36:16.000Z | 2021-12-01T09:15:36.000Z | /*
Copyright (c) 2015, Advanced Micro Devices, Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and ... | 49.603774 | 755 | 0.79574 | arafin-lab |
8b817af602c7933198707586d5005581f5a6f022 | 3,533 | cpp | C++ | src/Odom.cpp | matheusbg8/aracati2017 | bb00a847e02087f012c9094126120ea5f0a9324c | [
"MIT"
] | 1 | 2022-03-24T04:46:50.000Z | 2022-03-24T04:46:50.000Z | src/Odom.cpp | matheusbg8/aracati2017 | bb00a847e02087f012c9094126120ea5f0a9324c | [
"MIT"
] | null | null | null | src/Odom.cpp | matheusbg8/aracati2017 | bb00a847e02087f012c9094126120ea5f0a9324c | [
"MIT"
] | 1 | 2022-01-01T04:28:31.000Z | 2022-01-01T04:28:31.000Z | #include "Odom.h"
void Odom::publishInitialPose(const ros::Time &time,
double x, double y, double yaw)
{
geometry_msgs::PoseWithCovarianceStamped msg;
msg.header.stamp = time;
msg.header.frame_id = worldFrameId;
msg.pose.pose.position.x = x;
msg.pose.pose.position.y = y;
... | 25.601449 | 112 | 0.638834 | matheusbg8 |
8b848057633509ceb19b8e8b0c955831243b8e61 | 4,455 | cpp | C++ | module_02/ex02/Fixed.cpp | laisarena/CPP_piscine | 47831fa443116d2b37e1081a3eddf8ca40fc954f | [
"MIT"
] | null | null | null | module_02/ex02/Fixed.cpp | laisarena/CPP_piscine | 47831fa443116d2b37e1081a3eddf8ca40fc954f | [
"MIT"
] | null | null | null | module_02/ex02/Fixed.cpp | laisarena/CPP_piscine | 47831fa443116d2b37e1081a3eddf8ca40fc954f | [
"MIT"
] | null | null | null | /* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Fixed.cpp :+: :+: :+: ... | 22.5 | 80 | 0.60853 | laisarena |
8b8596a1d5c2715ce3b0fb6ccb81447b0362935d | 5,034 | hpp | C++ | SDK/ARKSurvivalEvolved_DinoAttackStateFollowSpline_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 10 | 2020-02-17T19:08:46.000Z | 2021-07-31T11:07:19.000Z | SDK/ARKSurvivalEvolved_DinoAttackStateFollowSpline_parameters.hpp | 2bite/ARK-SDK | c38ca9925309516b2093ad8c3a70ed9489e1d573 | [
"MIT"
] | 9 | 2020-02-17T18:15:41.000Z | 2021-06-06T19:17:34.000Z | SDK/ARKSurvivalEvolved_DinoAttackStateFollowSpline_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_DinoAttackStateFollowSpline_classes.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Parameters
//------------------------------------------... | 47.046729 | 173 | 0.617004 | 2bite |
8b8c4a360560e547f838d7eb2d00d5fec99f42d4 | 6,760 | cpp | C++ | source/Irrlicht/rtc/mediahandlerelement.cpp | MagicAtom/irrlicht-ce | b94ea7f97d7d0d3000d5a8c9c7c712debef1e55d | [
"IJG"
] | null | null | null | source/Irrlicht/rtc/mediahandlerelement.cpp | MagicAtom/irrlicht-ce | b94ea7f97d7d0d3000d5a8c9c7c712debef1e55d | [
"IJG"
] | null | null | null | source/Irrlicht/rtc/mediahandlerelement.cpp | MagicAtom/irrlicht-ce | b94ea7f97d7d0d3000d5a8c9c7c712debef1e55d | [
"IJG"
] | null | null | null | /**
* Copyright (c) 2020 Filip Klembara (in2core)
*
* This library 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.1 of the License, or (at your option) any later version.
*
*... | 30.45045 | 100 | 0.735503 | MagicAtom |
8b8cadbface4d6ed93e5ac29f89a3ad868911280 | 2,771 | cc | C++ | tool/SecVerilog-1.0/SecVerilog/symbol_search.cc | gokulprasath7c/secure_i2c_using_ift | 124384983ba70e8164b7217db70c43dfdf302d4b | [
"MIT"
] | 1 | 2019-01-28T21:23:37.000Z | 2019-01-28T21:23:37.000Z | tool/SecVerilog-1.0/SecVerilog/symbol_search.cc | gokulprasath7c/secure_i2c_using_ift | 124384983ba70e8164b7217db70c43dfdf302d4b | [
"MIT"
] | null | null | null | tool/SecVerilog-1.0/SecVerilog/symbol_search.cc | gokulprasath7c/secure_i2c_using_ift | 124384983ba70e8164b7217db70c43dfdf302d4b | [
"MIT"
] | null | null | null | /*
* Copyright (c) 2003-2010 Stephen Williams (steve@icarus.com)
*
* This source code is free software; you can redistribute it
* and/or modify it in source code form under the terms of the GNU
* General Public License as published by the Free Software
* Foundation; either version 2 of the License, or... | 30.788889 | 79 | 0.600505 | gokulprasath7c |
8b8f7fbb4a0a214789c515488ab2a453f8c5f6f4 | 5,434 | cpp | C++ | test/lexer/number.cpp | p-ranav/jsonlint | 2d1428274f05fe3d443cf8642c39d65b6b7025ac | [
"MIT"
] | 28 | 2019-11-15T09:11:17.000Z | 2021-09-05T01:44:12.000Z | test/lexer/number.cpp | p-ranav/jsonlint | 2d1428274f05fe3d443cf8642c39d65b6b7025ac | [
"MIT"
] | 1 | 2019-11-27T14:33:32.000Z | 2019-11-27T14:33:32.000Z | test/lexer/number.cpp | p-ranav/jsonlint | 2d1428274f05fe3d443cf8642c39d65b6b7025ac | [
"MIT"
] | 1 | 2019-11-18T17:52:27.000Z | 2019-11-18T17:52:27.000Z | #include <catch2/catch.hpp>
#include <clocale>
#include <jsonlint/lexer.hpp>
using namespace jsonlint;
TEST_CASE("Integer '0'", "[lexer]") {
std::string filename = "";
std::string source = "0";
Lexer lexer{"", 0, "", 1, 1};
lexer.filename = filename;
lexer.source = source;
auto tokens = Tokenize(lexer);
... | 31.964706 | 48 | 0.622194 | p-ranav |
8b973a205c4634d3ce7ea4c375189c9bbe8e0733 | 15,254 | cpp | C++ | src/OE_Error.cpp | antsouchlos/OxygenEngine2 | 5a123a2dacbc3b66ba9e97b9e5db7d8c17490ddb | [
"MIT"
] | null | null | null | src/OE_Error.cpp | antsouchlos/OxygenEngine2 | 5a123a2dacbc3b66ba9e97b9e5db7d8c17490ddb | [
"MIT"
] | 22 | 2020-05-19T18:18:45.000Z | 2022-03-31T12:11:08.000Z | src/OE_Error.cpp | antsouchlos/OxygenEngine2 | 5a123a2dacbc3b66ba9e97b9e5db7d8c17490ddb | [
"MIT"
] | null | null | null | #include <OE_Error.h>
#include <OE_TaskManager.h>
#include <Events/OE_Event.h>
#include <types/OE_Libs.h>
using namespace std;
// This is where events' error handling is happening
int OE_Event::internal_call(){
/***************************/
///generic handling
if (!this->has_init_){
this->task_ ... | 40.569149 | 185 | 0.570932 | antsouchlos |
8ba3f9d3d85228fcbeadc4203f705466973a827a | 1,206 | cpp | C++ | ImageProcessing/Dispatcher/DispatchManager.cpp | theradeonxt/FastImageEditor | 6b1a18393402cf2aa44ff9a399d1bb819a7aa971 | [
"MIT"
] | 3 | 2016-11-07T16:20:28.000Z | 2016-11-08T21:18:25.000Z | ImageProcessing/Dispatcher/DispatchManager.cpp | theradeonxt/FastImageEditor | 6b1a18393402cf2aa44ff9a399d1bb819a7aa971 | [
"MIT"
] | 6 | 2015-10-11T20:38:10.000Z | 2016-11-27T19:24:43.000Z | ImageProcessing/Dispatcher/DispatchManager.cpp | theradeonxt/FastImageEditor | 6b1a18393402cf2aa44ff9a399d1bb819a7aa971 | [
"MIT"
] | null | null | null |
#include "DispatchManager.h"
#include "Common.h"
#include "ConfigManager.h"
#include "ModuleConfig.h"
DispatchManager& g_DispatchManager()
{
static DispatchManager* ans = new DispatchManager();
return *ans;
}
void DispatchManager::Register(std::string entryPointKey, std::function<int(void**)> entryPoint)
{
... | 25.125 | 96 | 0.708126 | theradeonxt |
8ba536f73324eda4aa4a0583e5ff469d54cf166b | 2,597 | cpp | C++ | .experimentals/src/amtrs/android/application.cpp | isaponsoft/libamtrs | 5adf821ee15592fc3280985658ca8a4b175ffcaa | [
"BSD-2-Clause-FreeBSD"
] | 1 | 2019-12-10T02:12:49.000Z | 2019-12-10T02:12:49.000Z | .experimentals/src/amtrs/android/application.cpp | isaponsoft/libamtrs | 5adf821ee15592fc3280985658ca8a4b175ffcaa | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | .experimentals/src/amtrs/android/application.cpp | isaponsoft/libamtrs | 5adf821ee15592fc3280985658ca8a4b175ffcaa | [
"BSD-2-Clause-FreeBSD"
] | null | null | null | /* Copyright (c) 2019, isaponsoft (Isao Shibuya) All rights reserved. *
* Use of this source code is governed by a BSD-style license that *
* can be found in the LICENSE file. */
#include <amtrs/application.hpp>
#include <amtrs/.driver/android-api-android_app.hpp>
#include <amtrs/... | 28.855556 | 115 | 0.723912 | isaponsoft |
8ba7c5c2e0f37c988226176c3c9ed02e3da25e26 | 127 | cpp | C++ | src/multiply.cpp | markuspg/minimal_cmake_cpp_lib_sample | 6258bc7f148f3e2b401e678b615196bfbe397d5f | [
"MIT"
] | null | null | null | src/multiply.cpp | markuspg/minimal_cmake_cpp_lib_sample | 6258bc7f148f3e2b401e678b615196bfbe397d5f | [
"MIT"
] | null | null | null | src/multiply.cpp | markuspg/minimal_cmake_cpp_lib_sample | 6258bc7f148f3e2b401e678b615196bfbe397d5f | [
"MIT"
] | null | null | null | #include "multiply.h"
uint32_t multiply(uint32_t multiplicant, uint32_t multiplier) {
return multiplicant * multiplier;
}
| 21.166667 | 63 | 0.771654 | markuspg |
8ba83653da54aac72acdfad36a5caca5b72ca812 | 924 | hpp | C++ | MEX/src/cpp/vision/min_max_filter.hpp | umariqb/3D_Pose_Estimation_CVPR2016 | 83f6bf36aa68366ea8fa078eea6d91427e28503b | [
"BSD-3-Clause"
] | 47 | 2016-07-25T00:48:59.000Z | 2021-02-17T09:19:03.000Z | MEX/src/cpp/vision/min_max_filter.hpp | umariqb/3D_Pose_Estimation_CVPR2016 | 83f6bf36aa68366ea8fa078eea6d91427e28503b | [
"BSD-3-Clause"
] | 5 | 2016-09-17T19:40:46.000Z | 2018-11-07T06:49:02.000Z | MEX/src/cpp/vision/min_max_filter.hpp | iqbalu/3D_Pose_Estimation_CVPR2016 | 83f6bf36aa68366ea8fa078eea6d91427e28503b | [
"BSD-3-Clause"
] | 35 | 2016-07-21T09:13:15.000Z | 2019-05-13T14:11:37.000Z | /*
* min_max_filter.hpp
*
* Created on: Oct 6, 2013
* Author: mdantone
*/
#ifndef MIN_MAX_FILTER_HPP_
#define MIN_MAX_FILTER_HPP_
#include "opencv2/core/core.hpp"
namespace vision {
class MinMaxFilter {
public:
static void maxfilt(cv::Mat &src, unsigned int width);
static void minfilt(cv::Mat &src,... | 23.692308 | 72 | 0.655844 | umariqb |
8baafec697dbe26c18f448d174f7e97d7ddba75a | 1,163 | cpp | C++ | 150.cpp | pengzhezhe/LeetCode | 305ec0c5b4cb5ea7cd244b3308132dee778138bc | [
"Apache-2.0"
] | null | null | null | 150.cpp | pengzhezhe/LeetCode | 305ec0c5b4cb5ea7cd244b3308132dee778138bc | [
"Apache-2.0"
] | null | null | null | 150.cpp | pengzhezhe/LeetCode | 305ec0c5b4cb5ea7cd244b3308132dee778138bc | [
"Apache-2.0"
] | null | null | null | //
// Created by pzz on 2021/10/30.
//
#include <iostream>
#include <algorithm>
#include <vector>
#include <stack>
using namespace std;
class Solution {
public:
int evalRPN(vector<string> &tokens) {
stack<int> stack;
for (const string &s: tokens) {
if (s == "+" || s == "-" || s == "*"... | 24.229167 | 98 | 0.363715 | pengzhezhe |
8bb2aa03ed6364ae984e2955f63ce226a55e0d21 | 1,246 | cpp | C++ | nd-coursework/books/cpp/FoundationsOfQtDev/Chapter02/listdialog.cpp | crdrisko/nd-grad | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | 1 | 2020-09-26T12:38:55.000Z | 2020-09-26T12:38:55.000Z | nd-coursework/books/cpp/FoundationsOfQtDev/Chapter02/listdialog.cpp | crdrisko/nd-research | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | null | null | null | nd-coursework/books/cpp/FoundationsOfQtDev/Chapter02/listdialog.cpp | crdrisko/nd-research | f1765e4f24d7a4b1b3a76c64eb8d88bcca0eaa44 | [
"MIT"
] | null | null | null | #include "listdialog.h"
#include "editdialog.h"
#include "ui_listdialog.h"
// Listing 2-3: Constructor of the ListDialog class
ListDialog::ListDialog(QWidget* parent) : QDialog(parent), ui(new Ui::ListDialog)
{
ui->setupUi(this);
connect(ui->addButton, SIGNAL(clicked()), this, SLOT(addItem()));
connect(u... | 27.688889 | 81 | 0.645265 | crdrisko |
8bb37a46d296ac3055a349429e346e10f3abc0d9 | 3,541 | cpp | C++ | src/main.cpp | kingsamchen/CPU_Utilization_Plot | d651df76b0e3b556dd2d9cf40304070310ef0578 | [
"MIT"
] | 1 | 2019-04-15T13:32:39.000Z | 2019-04-15T13:32:39.000Z | src/main.cpp | kingsamchen/CPU_Utilization_Plot | d651df76b0e3b556dd2d9cf40304070310ef0578 | [
"MIT"
] | null | null | null | src/main.cpp | kingsamchen/CPU_Utilization_Plot | d651df76b0e3b556dd2d9cf40304070310ef0578 | [
"MIT"
] | null | null | null | /*
@ Kingsley Chen
*/
#include <Windows.h>
#include <conio.h>
#include <process.h>
#include <cmath>
#include <cstdint>
#include <iostream>
#include "kbase\command_line.h"
#include "kbase\memory\scoped_handle.h"
#include "kbase\sys_info.h"
const unsigned long kDefaultTimeUnit = 1000;
const wchar_t kPlotSwitchName[... | 27.88189 | 85 | 0.635414 | kingsamchen |
8bb72ddf572bf5d942ac7462a4f4888f5d6b2a22 | 1,879 | cpp | C++ | OJ/LeetCode/leetcode/problems/283.cpp | ONGOING-Z/DataStructure | 9099393d1c7dfabc3e2939586ea6d1d254631eb2 | [
"MIT"
] | null | null | null | OJ/LeetCode/leetcode/problems/283.cpp | ONGOING-Z/DataStructure | 9099393d1c7dfabc3e2939586ea6d1d254631eb2 | [
"MIT"
] | 2 | 2021-10-31T10:05:45.000Z | 2022-02-12T15:17:53.000Z | OJ/LeetCode/leetcode/283.cpp | ONGOING-Z/Learn-Algorithm-and-DataStructure | 3a512bd83cc6ed5035ac4550da2f511298b947c0 | [
"MIT"
] | null | null | null | #include <stdio.h>
#include <vector>
#include <algorithm>
using namespace std;
/* Leetcode */
/* Type: array */
/* 题目信息 */
/*
*283. Move Zeroes
Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements.
Example:
Input: [0,1,0,3,12]
Output: [... | 21.11236 | 133 | 0.503459 | ONGOING-Z |
8bb828f009beb8a5ec87dd3ba0d320694f75d127 | 909 | cpp | C++ | NacloEngine/ResourceMesh.cpp | JoanValiente/NacloEngine | 44eb9901a9f5337d19f3fe3b5d061099ea4e7fa0 | [
"MIT"
] | 1 | 2019-09-09T10:04:14.000Z | 2019-09-09T10:04:14.000Z | NacloEngine/ResourceMesh.cpp | JoanValiente/NacloEngine | 44eb9901a9f5337d19f3fe3b5d061099ea4e7fa0 | [
"MIT"
] | null | null | null | NacloEngine/ResourceMesh.cpp | JoanValiente/NacloEngine | 44eb9901a9f5337d19f3fe3b5d061099ea4e7fa0 | [
"MIT"
] | null | null | null | #include "ResourceMesh.h"
#include "ModuleResources.h"
ResourceMesh::ResourceMesh(uint uid, Resource_Type type) : Resource(uid, type)
{
}
ResourceMesh::~ResourceMesh()
{
}
bool ResourceMesh::LoadInMemory()
{
bool ret = false;
glGenBuffers(1, (GLuint*) &(id_vertices));
glBindBuffer(GL_ARRAY_BUFFER, id_vertices);
... | 26.735294 | 92 | 0.770077 | JoanValiente |
8bbcd31e573b9c6f2f42655f7c6d407c646e2cb3 | 1,211 | cpp | C++ | src/vertex.cpp | JamesGriffin/3D-Rasterizer | 3a9840845bb92279d0c07fd5197dd9879e97f4ec | [
"MIT"
] | 13 | 2017-11-18T01:05:04.000Z | 2021-12-25T10:47:45.000Z | src/vertex.cpp | JamesGriffin/3D-Rasterizer | 3a9840845bb92279d0c07fd5197dd9879e97f4ec | [
"MIT"
] | 2 | 2018-07-19T14:09:46.000Z | 2021-01-15T10:35:43.000Z | src/vertex.cpp | JamesGriffin/3D-Rasterizer | 3a9840845bb92279d0c07fd5197dd9879e97f4ec | [
"MIT"
] | 5 | 2018-03-05T04:40:21.000Z | 2021-06-11T03:40:54.000Z | #include "vertex.h"
// Represents a vertex in 3D space
Vertex::Vertex (Vector4 position, Vector4 normal)
: m_position(position), m_normal(normal) {}
Vertex::Vertex(float x, float y, float z, float w) {
m_position = Vector4(x, y, z, w);
m_normal = Vector4(0, 0, 0, 0);
}
// Perspective divide by w component
V... | 17.3 | 66 | 0.606936 | JamesGriffin |
8bbf37cc4accb326337f2b3e630a01b6cc33fe16 | 680 | cpp | C++ | modules/imgproc/src/accum.dispatch.cpp | thisisgopalmandal/opencv | 4e2ef8c8f57644ccb8e762a37f70a61007c6be1c | [
"BSD-3-Clause"
] | 56,632 | 2016-07-04T16:36:08.000Z | 2022-03-31T18:38:14.000Z | modules/imgproc/src/accum.dispatch.cpp | thisisgopalmandal/opencv | 4e2ef8c8f57644ccb8e762a37f70a61007c6be1c | [
"BSD-3-Clause"
] | 13,593 | 2016-07-04T13:59:03.000Z | 2022-03-31T21:04:51.000Z | modules/imgproc/src/accum.dispatch.cpp | thisisgopalmandal/opencv | 4e2ef8c8f57644ccb8e762a37f70a61007c6be1c | [
"BSD-3-Clause"
] | 54,986 | 2016-07-04T14:24:38.000Z | 2022-03-31T22:51:18.000Z | // This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
#include "precomp.hpp"
#include "accum.simd.hpp"
#include "accum.simd_declarations.hpp" // defines CV_CPU_DISPATCH_MODES_AL... | 34 | 125 | 0.782353 | thisisgopalmandal |
8bbf6dcce3c8444f3985e023875c663d546c3fb1 | 1,437 | cpp | C++ | graphics/vsrtl_multiplexergraphic.cpp | mortbopet/vsrtl | 8fd0bce6f5fcf27b89b33cf995b0428b8436ccdf | [
"MIT"
] | 52 | 2019-03-18T02:23:19.000Z | 2022-03-10T00:45:54.000Z | graphics/vsrtl_multiplexergraphic.cpp | mortbopet/vsrtl | 8fd0bce6f5fcf27b89b33cf995b0428b8436ccdf | [
"MIT"
] | 48 | 2019-02-28T22:05:54.000Z | 2021-11-19T11:33:10.000Z | graphics/vsrtl_multiplexergraphic.cpp | mortbopet/vsrtl | 8fd0bce6f5fcf27b89b33cf995b0428b8436ccdf | [
"MIT"
] | 10 | 2019-03-18T02:23:23.000Z | 2022-03-11T19:46:42.000Z | #include "vsrtl_multiplexergraphic.h"
#include "vsrtl_portgraphic.h"
#include <QPainter>
namespace vsrtl {
MultiplexerGraphic::MultiplexerGraphic(SimComponent* c, ComponentGraphic* parent) : ComponentGraphic(c, parent) {
// Make changes in the select signal trigger a redraw of the multiplexer (and its input sign... | 33.418605 | 113 | 0.668754 | mortbopet |
8bc0c28346f9eef89dc210f5af99fe75b093b6e1 | 420 | hpp | C++ | sources/cards/lands/Swamp.hpp | angeluriot/Magic_royal | a337ce4ad6c3215bbdec8c376d6e88fe97f48f94 | [
"MIT"
] | 1 | 2022-02-02T21:41:59.000Z | 2022-02-02T21:41:59.000Z | sources/cards/lands/Swamp.hpp | angeluriot/Magic_royal | a337ce4ad6c3215bbdec8c376d6e88fe97f48f94 | [
"MIT"
] | null | null | null | sources/cards/lands/Swamp.hpp | angeluriot/Magic_royal | a337ce4ad6c3215bbdec8c376d6e88fe97f48f94 | [
"MIT"
] | 2 | 2022-02-01T12:59:57.000Z | 2022-03-05T12:50:27.000Z | #ifndef SWAMP_HPP
#define SWAMP_HPP
#include "cards/Land.hpp"
class Swamp : public Land
{
public:
Swamp();
Swamp(const Swamp& other) = default;
~Swamp();
Swamp& operator=(const Swamp& other) = default;
std::string get_full_type() const override;
Color get_color() const override;
std::string get_name() const... | 17.5 | 48 | 0.721429 | angeluriot |
8bc43125a215bc61387fbefc81c6dd3fcd991128 | 12,357 | cpp | C++ | CodeForces-Solution/1545E2.cpp | Tech-Intellegent/CodeForces-Solution | 2f291a38b80b8ff2a2595b2e526716468ff26bf8 | [
"MIT"
] | 1 | 2022-01-23T07:18:07.000Z | 2022-01-23T07:18:07.000Z | CodeForces-Solution/1545E2.cpp | Tech-Intellegent/CodeForces-Solution | 2f291a38b80b8ff2a2595b2e526716468ff26bf8 | [
"MIT"
] | null | null | null | CodeForces-Solution/1545E2.cpp | Tech-Intellegent/CodeForces-Solution | 2f291a38b80b8ff2a2595b2e526716468ff26bf8 | [
"MIT"
] | 1 | 2022-02-05T11:53:04.000Z | 2022-02-05T11:53:04.000Z | #include <bits/stdc++.h>
using namespace std;
using ll = long long;
using db = long double; // or double, if TL is tight
using str = string; // yay python!
using pi = pair<int,int>;
using pl = pair<ll,ll>;
using pd = pair<db,db>;
using vi = vector<int>;
using vb = vector<bool>;
using vl = vector<ll>;
using vd = vec... | 29.351544 | 95 | 0.590596 | Tech-Intellegent |
8bca5521c02bad6dc700113c1a52db3a22f1ba77 | 3,157 | cc | C++ | libs/xml/test-config.cc | sandtreader/obtools | 2382e2d90bb62c9665433d6d01bbd31b8ad66641 | [
"MIT"
] | null | null | null | libs/xml/test-config.cc | sandtreader/obtools | 2382e2d90bb62c9665433d6d01bbd31b8ad66641 | [
"MIT"
] | null | null | null | libs/xml/test-config.cc | sandtreader/obtools | 2382e2d90bb62c9665433d6d01bbd31b8ad66641 | [
"MIT"
] | null | null | null | //==========================================================================
// ObTools::XML: test-config.cc
//
// Test harness for ObTools XML configuration
//
// Copyright (c) 2017 Paul Clark. All rights reserved
// This code comes with NO WARRANTY and is subject to licence agreement
//==============================... | 23.043796 | 76 | 0.682293 | sandtreader |
8bcc1a15219788dde9f41068705f5027441c502b | 832 | hpp | C++ | src/rogue-card/scene/QuickActionBar.hpp | padawin/RogueCard | 7a5d04fa2d7be47c1542b6d4908e277ccbbd01fc | [
"MIT"
] | null | null | null | src/rogue-card/scene/QuickActionBar.hpp | padawin/RogueCard | 7a5d04fa2d7be47c1542b6d4908e277ccbbd01fc | [
"MIT"
] | null | null | null | src/rogue-card/scene/QuickActionBar.hpp | padawin/RogueCard | 7a5d04fa2d7be47c1542b6d4908e277ccbbd01fc | [
"MIT"
] | null | null | null | #ifndef __QUICK_ACTION_BAR__
#define __QUICK_ACTION_BAR__
#include <string.h>
#include "sdl2/Renderer.hpp"
#include "game/SceneState.hpp"
#include "rogue-card/coordinates.hpp"
#include "Player.hpp"
class QuickActionBarScene : public SceneState {
private:
std::shared_ptr<SDL2Renderer> m_renderer;
Player &m_player;
... | 23.111111 | 56 | 0.766827 | padawin |
8bd1cdb01ca9f674a6e03ec579f70decc0f0639f | 4,278 | cpp | C++ | lib/NetworkManager/NetworkManager.cpp | JDuchniewicz/BIBoP | 4a9b59f79ee1f2fd1fd503bb3d6f90a0ba423570 | [
"MIT"
] | null | null | null | lib/NetworkManager/NetworkManager.cpp | JDuchniewicz/BIBoP | 4a9b59f79ee1f2fd1fd503bb3d6f90a0ba423570 | [
"MIT"
] | null | null | null | lib/NetworkManager/NetworkManager.cpp | JDuchniewicz/BIBoP | 4a9b59f79ee1f2fd1fd503bb3d6f90a0ba423570 | [
"MIT"
] | null | null | null | #include "NetworkManager.h"
NetworkManager::NetworkManager(BearSSLClient& sslLambda, MqttClient& mqttClient, Config& config) : sslLambda(sslLambda), mqttClient(mqttClient), m_config(config)
{
}
NetworkManager::~NetworkManager()
{
}
int NetworkManager::init()
{
if (!ECCX08.begin())
{
print("Could no... | 23.766667 | 161 | 0.664095 | JDuchniewicz |
8bd3923a1f206f5181b38bedc643edd41003880e | 800 | cpp | C++ | leetcode/monthly-challenge/2021/06-june/Jump-Game-VI.cpp | leohr/competitive-programming | f97488e0cb777c1df78257ce2644ac4ff8191267 | [
"MIT"
] | 1 | 2020-10-08T19:28:40.000Z | 2020-10-08T19:28:40.000Z | leetcode/monthly-challenge/2021/06-june/Jump-Game-VI.cpp | leohr/competitive-programming | f97488e0cb777c1df78257ce2644ac4ff8191267 | [
"MIT"
] | null | null | null | leetcode/monthly-challenge/2021/06-june/Jump-Game-VI.cpp | leohr/competitive-programming | f97488e0cb777c1df78257ce2644ac4ff8191267 | [
"MIT"
] | 1 | 2020-10-24T02:32:27.000Z | 2020-10-24T02:32:27.000Z | class Solution {
public:
int maxResult(vector<int>& nums, int k) {
int n = nums.size();
priority_queue<pair<int, int>> q;
vector<int> ans(n, -1e9);
for (int i = 0; i < n; ++i) {
if (i == 0) {
ans[i] = nums[i];
q.push({ans[i], i});
... | 29.62963 | 46 | 0.32625 | leohr |
8bd8fe8f26629cd8be731da7672b210e93aa76c9 | 123 | cpp | C++ | 4rth_Sem_c++_backup/PRACTICE/Syllabus/reactive/a.cpp | SayanGhoshBDA/code-backup | 8b6135facc0e598e9686b2e8eb2d69dd68198b80 | [
"MIT"
] | 16 | 2018-11-26T08:39:42.000Z | 2019-05-08T10:09:52.000Z | 4rth_Sem_c++_backup/PRACTICE/Syllabus/reactive/a.cpp | SayanGhoshBDA/code-backup | 8b6135facc0e598e9686b2e8eb2d69dd68198b80 | [
"MIT"
] | 8 | 2020-05-04T06:29:26.000Z | 2022-02-12T05:33:16.000Z | 4rth_Sem_c++_backup/PRACTICE/Syllabus/reactive/a.cpp | SayanGhoshBDA/code-backup | 8b6135facc0e598e9686b2e8eb2d69dd68198b80 | [
"MIT"
] | 5 | 2020-02-11T16:02:21.000Z | 2021-02-05T07:48:30.000Z | #include<iostream>
using namespace std;
int main()
{
string s = "My name is Jimut";
system("s > file1");
return 0;
}
| 10.25 | 31 | 0.634146 | SayanGhoshBDA |
8bd927a52d16e30855525b6dc2926dbcca429807 | 4,721 | cpp | C++ | math/polynomial/old/NTT.cpp | searchstar2017/acmtool | 03392b8909a3d45f10c2711ca4ad9ba69f64a481 | [
"MIT"
] | null | null | null | math/polynomial/old/NTT.cpp | searchstar2017/acmtool | 03392b8909a3d45f10c2711ca4ad9ba69f64a481 | [
"MIT"
] | null | null | null | math/polynomial/old/NTT.cpp | searchstar2017/acmtool | 03392b8909a3d45f10c2711ca4ad9ba69f64a481 | [
"MIT"
] | null | null | null | //g = 3
//998244353, img = 86583718
//1004535809 = 479*2^21+1, img = 483363861
//469762049, img = 19610091
//tp == false means NTT^-1
void NTT(int a[], int n, bool tp) {
for (int i = 0, j = 0; i < n; ++i) {
if (i > j) swap(a[i], a[j]);
for (int k = n >> 1; (j ^= k) < k; k >>= 1);
}
for (int i = 2; i <= n; i <<= ... | 23.843434 | 84 | 0.446304 | searchstar2017 |
8be25858f3e7b9b7e9b266288f67868a4b5d33f4 | 122 | hxx | C++ | src/Providers/UNIXProviders/MoreRoleInfo/UNIX_MoreRoleInfo_FREEBSD.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | 1 | 2020-10-12T09:00:09.000Z | 2020-10-12T09:00:09.000Z | src/Providers/UNIXProviders/MoreRoleInfo/UNIX_MoreRoleInfo_FREEBSD.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | src/Providers/UNIXProviders/MoreRoleInfo/UNIX_MoreRoleInfo_FREEBSD.hxx | brunolauze/openpegasus-providers-old | b00f1aad575bae144b8538bf57ba5fd5582a4ec7 | [
"MIT"
] | null | null | null | #ifdef PEGASUS_OS_FREEBSD
#ifndef __UNIX_MOREROLEINFO_PRIVATE_H
#define __UNIX_MOREROLEINFO_PRIVATE_H
#endif
#endif
| 10.166667 | 37 | 0.844262 | brunolauze |
8be26060043e9e577dbd7dd61d6427a1eef90c5e | 2,555 | cpp | C++ | gametitle.cpp | Mokona/Caterbuino | d7c0382f6769472584d8c3afb2b673005efa4b32 | [
"MIT"
] | null | null | null | gametitle.cpp | Mokona/Caterbuino | d7c0382f6769472584d8c3afb2b673005efa4b32 | [
"MIT"
] | null | null | null | gametitle.cpp | Mokona/Caterbuino | d7c0382f6769472584d8c3afb2b673005efa4b32 | [
"MIT"
] | null | null | null | #include "gametitle.h"
#include "buttonwidget.h"
#include "data_title.h"
#include "gamecredits.h"
#include "gamerunning.h"
#include "gamebuino_fix.h"
#include <cassert>
namespace {
uint16_t gameStartSound[] = {
0x0005,
0x178, 0x17A, 0x27C, 0x17E, 0x180, 0x286, 0x188,
0x0000
};
c... | 22.025862 | 69 | 0.631703 | Mokona |