blob_id stringlengths 40 40 | directory_id stringlengths 40 40 | path stringlengths 2 247 | content_id stringlengths 40 40 | detected_licenses listlengths 0 57 | license_type stringclasses 2
values | repo_name stringlengths 4 111 | snapshot_id stringlengths 40 40 | revision_id stringlengths 40 40 | branch_name stringlengths 4 58 | visit_date timestamp[ns]date 2015-07-25 18:16:41 2023-09-06 10:45:08 | revision_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | committer_date timestamp[ns]date 1970-01-14 14:03:36 2023-09-06 06:22:19 | github_id int64 3.89k 689M ⌀ | star_events_count int64 0 209k | fork_events_count int64 0 110k | gha_license_id stringclasses 25
values | gha_event_created_at timestamp[ns]date 2012-06-07 00:51:45 2023-09-14 21:58:52 ⌀ | gha_created_at timestamp[ns]date 2008-03-27 23:40:48 2023-08-24 19:49:39 ⌀ | gha_language stringclasses 159
values | src_encoding stringclasses 34
values | language stringclasses 1
value | is_vendor bool 1
class | is_generated bool 2
classes | length_bytes int64 7 10.5M | extension stringclasses 111
values | filename stringlengths 1 195 | text stringlengths 7 10.5M |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
e22a6da3857016ac5558a80c420bbe406ed51983 | 2351872312e3b5e38e4f625715ee5dfee4392302 | /$P@/SPA/UnitTesting/TestParent.h | 48987eeade11b6711b50ae7bbedc2f49acb86c45 | [] | no_license | allanckw/32Ol_32oII_intelli-spa | 737c4dae974cd08cf98ad414b4da847bdc19af62 | e6929f146275ae2127a58584c65de7a1d83ce8a5 | refs/heads/master | 2020-05-07T13:18:03.290332 | 2013-04-25T14:20:07 | 2013-04-25T14:20:07 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 384 | h | TestParent.h | #pragma once
// Note 1
#include <cppunit/extensions/HelperMacros.h>
class TestParent:
public CPPUNIT_NS::TestFixture // Note 2
{
CPPUNIT_TEST_SUITE(TestParent); // Note 3
CPPUNIT_TEST(testInsertAndRetrieveParent);
CPPUNIT_TEST_SUITE_END();
public:
void setUp();
void tearDown();
// method to test the assigning... |
5fae218db8f0e1f4acac42de28e340dbc83f9d08 | 8e62c3eb35302aaa79e4a602ddfbb93489e09660 | /mindspore/ccsrc/device/gpu/gpu_kernel_runtime.cc | dc4487ccee1501e021ec61079b766053a89f1ace | [
"Apache-2.0",
"IJG",
"Zlib",
"LGPL-2.1-only",
"MIT",
"BSD-3-Clause",
"BSD-3-Clause-Open-MPI",
"GPL-2.0-only",
"BSL-1.0",
"MPL-2.0",
"MPL-2.0-no-copyleft-exception",
"LicenseRef-scancode-proprietary-license",
"LicenseRef-scancode-public-domain",
"AGPL-3.0-only",
"LicenseRef-scancode-unkno... | permissive | ythlml/mindspore | a7faa28fa401372c73798c6b0ad186fa10386b09 | 028ae212624164044cfaa84f347fc502cb7fcb0f | refs/heads/master | 2022-09-09T20:28:34.554927 | 2020-05-24T06:19:23 | 2020-05-24T06:19:23 | 266,301,148 | 7 | 0 | Apache-2.0 | 2020-05-23T09:09:49 | 2020-05-23T09:09:48 | null | UTF-8 | C++ | false | false | 16,042 | cc | gpu_kernel_runtime.cc | /**
* Copyright 2019 Huawei Technologies Co., Ltd
*
* 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 appli... |
cd81dbc40a688a28e3becdddc7d17885347c0a16 | 91b268d73d27dd5b6b1329b1de57d4d65d6ca743 | /algorithms/longest_common_substring/main.cpp | 31a32bb731382cf043436d3087b97b839c3f9432 | [] | no_license | allisonkundrik/examples | e5b2772e07d0ea1251bbcae1905109873d4e80cc | f6fe125e6ab9118127ba771ecf16e740c8ca7ea1 | refs/heads/master | 2020-05-16T19:14:27.915885 | 2016-07-28T20:08:46 | 2016-07-28T20:08:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,075 | cpp | main.cpp | /*
* File: main.cpp
* Author: peter
*
* Created on March 9, 2014, 12:53 AM
* http://stackoverflow.com/questions/22276500/overlapping-of-keyword-and-comparison-word/22276831#22276831
*/
#include <string>
std::string longestCommonSubstr( std::string& s, std::string& in) {
size_t s_s = s.size();
size_t... |
40a7e55ae55c538e7918322e58f7d208cd91d05c | d1cf7ad235c3c4ce7e154fc3651bb94496276388 | /src/Input.h | fe8525f4742835f466f06a1e0d3386cef63a92dd | [] | no_license | ArcoMul/Rrenderer | fd5b9714eef0f52b46b690b78f40ad9e8491a0ee | d4239fe3f7a34e5c8e0682da3d949556c73e83c4 | refs/heads/master | 2020-06-03T21:00:50.182052 | 2015-02-04T21:45:30 | 2015-02-04T21:45:30 | 26,933,969 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 598 | h | Input.h | #pragma once
#include "Rrenderer.h"
#include "Vector3.h"
namespace Rr
{
class RRENDERER_API Input
{
public:
Input();
~Input();
bool isPressed(int key);
void setPressed(int key, bool pressed);
bool keysDown[100];
static const int KEY_W = 87;
static const int KEY_A = 65;
static const int KEY_S = 8... |
7985821457a03d472800b70d120ac9017a8a294b | 4e21668ee4107d7899fe4e0375272b803a8f5fc8 | /Upper/main.cpp | 012ca97ecc581341d8888d1247add316f83edbf5 | [] | no_license | SoapLi/57StepMotor-ctrl | 7544d600d68aeb49911c54b9295fe421f2605b3d | c3e9e1b9beb6dee7c5f19bd337c543b406a12940 | refs/heads/master | 2022-12-10T00:01:01.112388 | 2020-09-08T16:06:15 | 2020-09-08T16:06:15 | 293,859,878 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 827 | cpp | main.cpp | #include <QApplication>
#include "datamenu.h"
#include "GloableData/gloabledata.h"
#include <macro_define.h>
#include <QTextStream>
#include <QByteArray>
#include <QDebug>
#include <QString>
#include <QTableWidget>
#include "qtablewidget.h"
#include <QWidget>
//#include <QtGui/QApplication>
#include <QTableWidget>
#in... |
370fca9f54d10868862bc78561a540452ee09450 | a92b18defb50c5d1118a11bc364f17b148312028 | /src/prod/test/FabricTest/ITestStoreService.h | 1b008f0be86766af2c710f8d700b49253ac81883 | [
"MIT"
] | permissive | KDSBest/service-fabric | 34694e150fde662286e25f048fb763c97606382e | fe61c45b15a30fb089ad891c68c893b3a976e404 | refs/heads/master | 2023-01-28T23:19:25.040275 | 2020-11-30T11:11:58 | 2020-11-30T11:11:58 | 301,365,601 | 1 | 0 | MIT | 2020-11-30T11:11:59 | 2020-10-05T10:05:53 | null | UTF-8 | C++ | false | false | 5,510 | h | ITestStoreService.h | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#pragma once
using namespace ... |
e98b5c8611b0be328a088c8b2cc774f1f1f321cd | 052f25db8b52e1de600625905caae9dd79433841 | /client/global.h | 6b94a71cca10ccd2fd3fe75356b486e476e9884a | [] | no_license | laurentiudodoloi/rc-resources | a9e4232ea34ca42f324256a843b96623886d61ae | 719da517dcd9b21e4a36cd3696451320ddd2ab8c | refs/heads/master | 2022-03-27T03:24:11.664601 | 2020-01-18T07:40:29 | 2020-01-18T07:40:29 | 234,174,206 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 383 | h | global.h | #ifndef GLOBAL_H
#define GLOBAL_H
#include "file.h"
#include <string>
#include "mainwindow.h"
#include <list>
class Global
{
public:
static File currentFile;
static std::string tempText;
static MainWindow *window;
static std::list<std::string> fileList;
Global();
static bool isFileSelected();... |
6a44e5149a401ce37ee5bbc465b57e32c138cb1f | f95dd759587fe0fe53c4f1c29d8b2181e52c1ece | /src/ossimGui/GatherImageViewProjTransVisitor.cpp | 497cc6ed1de6477309e2550208cc64e26e2d3c16 | [
"MIT"
] | permissive | ossimlabs/ossim-gui | 2b547a604885f9b5af458d528a90055538430bec | 746840ec731aef50056a626ae1ffd8e5a280fede | refs/heads/dev | 2022-11-03T08:16:29.890146 | 2022-10-19T14:19:38 | 2022-10-19T14:19:38 | 42,268,337 | 4 | 1 | MIT | 2019-04-07T02:45:14 | 2015-09-10T20:14:20 | C++ | UTF-8 | C++ | false | false | 1,375 | cpp | GatherImageViewProjTransVisitor.cpp | #include <ossimGui/GatherImageViewProjTransVisitor.h>
#include <ossim/imaging/ossimImageRenderer.h>
#include <ossim/imaging/ossimImageHandler.h>
void ossimGui::GatherImageViewProjTransVisitor::visit(ossimObject* obj)
{
if(!hasVisited(obj))
{
ossimImageRenderer* renderer = dynamic_cast<ossimIma... |
5716b18e3798a25cebd2950c41554ca9fdae39fd | 9aad1dfbbfa5e9650987950a601ee511bfb8a0a2 | /FrameBuffer.h | 16c3f796db2e23ea3568872c8861f6c2b9206536 | [] | no_license | HummaWhite/SoftRaster | 0a7755b310cfb2f5744e137957399654bc888b38 | 04a478c9aa14b1d309c1f846c90ab31aa8fd936f | refs/heads/master | 2023-02-03T03:37:36.446985 | 2020-12-16T15:20:47 | 2020-12-16T15:20:47 | 280,191,203 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 565 | h | FrameBuffer.h | #ifndef FRAMEBUFFER_H
#define FRAMEBUFFER_H
#include "Buffer.h"
template<typename T>
struct FrameBuffer:
Buffer<T>
{
FrameBuffer() {}
FrameBuffer(int w, int h)
{
init(w, h);
}
~FrameBuffer() {}
void init(int w, int h)
{
Buffer<T>::init(w * h);
width = w, height = h;
}
void release()
{
Buffer<T>... |
78e24b3f50533400b080fbf98bc551f630408d0b | 4955e3dfffae9ce5d25bd4ea66fc3d822deb1ad6 | /src/luv_tty.cc | 2452fc3664a524c0b4bf72d8c37da8afbe462183 | [] | no_license | bmeck/candor.io | 412e79226b6f523b284ed2796bd4f4ccda595cdc | 91cbef1fb46ba8ba07b3d817c347f7b0935043af | refs/heads/master | 2023-07-11T19:44:27.882148 | 2012-03-29T07:12:28 | 2012-03-29T07:12:28 | 3,863,517 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,258 | cc | luv_tty.cc | #include "luv_stream.h" // uv_stream_prototype
#include "luv_tty.h"
#include "luv.h"
#include "candor.h"
#include "uv.h"
#include <assert.h> // assert
using namespace candor;
static Value* luv_create_tty(uint32_t argc, Value* argv[]) {
assert(argc > 0);
int fd = argv[0]->ToNumber()->IntegralValue();
UVData* d... |
b23a3d5fac118ef23513f49c12515ecf8d736735 | fead51e991d0dfa23d7a29cb0c5170e571407d4b | /src/test.cpp | e338d605c0dfb66342f7ff6ead7526d617c67442 | [] | no_license | froly/catch-skeleton | f94f72aebdfac7a2774957fc76fdcd24bc107f28 | d7e60fd08568bdac5a9d03f2e6c10ab860508a1c | refs/heads/master | 2021-03-08T19:35:52.122622 | 2016-05-24T23:28:30 | 2016-05-24T23:43:57 | 59,615,879 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 213 | cpp | test.cpp | #ifdef CATCH_TEST
#define CATCH_CONFIG_MAIN
#include <Catch/single_include/catch.hpp>
#endif
#include "test.hpp"
#ifdef CATCH_TEST
TEST_CASE("TEST") {
REQUIRE(1);
}
#else
int main() {
return 0;
}
#endif
|
aa9b64f13a28c40a8a415862e79f52371729c66d | 25a9b6ee2479520c19971a644dc471b66139a1d9 | /API/source/example.cpp | 619f7fa756c3912c842f06294b7fd84b66d229ef | [
"MIT"
] | permissive | GrzegorzSalzburg/DroneApi | 88e014eb71813cc23f2daedbea674f317e029edb | c05ebaabb760b5d099422cde54e743e08fa548f5 | refs/heads/master | 2022-11-09T19:16:07.931292 | 2020-06-15T12:25:04 | 2020-06-15T12:25:04 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,290 | cpp | example.cpp | #include <iostream>
#include <unistd.h>
#include "Dr3D_gnuplot_api.hh"
#include "Prostopadloscian.hh"
#include "Powierzchnia.hh"
#include "Dno.hh"
#include "Graniastoslup.hh"
#include "Dron.hh"
#include "Przeszkoda_Pret.hh"
#include "Przeszkod_Plaszczyzna.hh"
#include "Przeszkoda_Prostopadloscienna.hh"
using drawNS::AP... |
da3bdfa6a1609de6da62566e22f66d19261bb466 | 5673ea0c12cf8798a66e3fb9a798b260cea55c67 | /Code/ARIAELEC/mainwindow.h | d0dbb4d4fd95f2b247b54fc44ba868dc2f202932 | [] | no_license | mohammadVatandoost/Oscilloscope-Digital | 49127b62d77f90386f54ca06468fdb4653e9eb76 | aaa42847f329042861b49e679f7e4cd19c671c83 | refs/heads/master | 2021-08-15T22:42:28.834682 | 2017-11-18T13:28:14 | 2017-11-18T13:28:14 | 111,195,719 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,048 | h | mainwindow.h | #ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <qwidget.h>
#include "plot.h"
#include "plot2.h"
#include "knob.h"
#include "knob2.h"
#include "wheelbox.h"
#include "wheelbox2.h"
#include <qwt_scale_engine.h>
#include <qlabel.h>
#include <qlayout.h>
#include <QtMath>
#include <QtCore>
#inclu... |
f74594f964deba4d488dc955f6f73e6297037097 | 7f32c053f44b7968a833802a0df281f665e4add4 | /Header/CheckoutPtr.h | 85ad38f83762d2cd84e2919a8cbe8904533d1ad5 | [
"MIT"
] | permissive | fc3156/GitDemo | 37b9c5065e8ea6da89fcc124870b5e52c97c16fa | 713edc64111686ea6dc38fcdae0aadafce359a37 | refs/heads/master | 2020-05-31T05:30:30.725267 | 2019-10-15T06:17:55 | 2019-10-15T06:17:55 | 190,120,208 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 777 | h | CheckoutPtr.h | //
// Created by fc0310 on 2019/5/16.
//
#ifndef LEARNVSC_CHECKOUTPTR_H
#define LEARNVSC_CHECKOUTPTR_H
#include <queue>
#include <memory>
#include "Customer.h"
using PCustomer=std::unique_ptr<Customer>;
class Checkout{
private:
std::queue<PCustomer> customers;
public:
void add(PCustomer&& custo... |
f737570a94ea8722ebf74fcb6a85e6eac17e4218 | 52101a66ad4106b1644fa2c201ffd9a8862aebb4 | /Views/ConsoleInputOutput.h | fe18f0607f4402c99a1faaf5f3346bdd7d67ac0a | [] | no_license | celloist/Rogue | 168a7b403b8bb557013afa0e8a201d0f6ccc4d2d | a3c9fe797777ea0bce953dba6ff31e521735f4d8 | refs/heads/master | 2020-12-14T04:14:32.601862 | 2016-03-23T13:17:45 | 2016-03-23T13:17:45 | 42,726,158 | 0 | 0 | null | 2016-03-23T13:17:47 | 2015-09-18T14:09:57 | C++ | UTF-8 | C++ | false | false | 285 | h | ConsoleInputOutput.h | //
// Created by alhric on 30-Oct-15.
//
#ifndef ROGUE_CONSOLEINPUT_H
#define ROGUE_CONSOLEINPUT_H
#include <iostream>
using namespace std;
class ConsoleInputOutput {
public:
string askInput(string question);
void display(string output);
};
#endif //ROGUE_CONSOLEINPUT_H
|
dfc42bfb2743d3bb417e5647b63708022b48668d | 8dd8a28c60935d7e367b088955119b04efc7cbb4 | /rosmon_core/src/log_event.h | 403f258c110415f046062158ae4d81723d548f35 | [
"BSD-3-Clause"
] | permissive | rapyuta-robotics/rosmon | 62abd8abd4edffdb693143b099108509618ad2df | b724a3e2a8d8d5bdb5b4370448dff16d5a3fc461 | refs/heads/rr-devel | 2021-08-18T15:48:48.555016 | 2021-07-16T05:18:43 | 2021-07-19T08:20:23 | 151,363,103 | 2 | 1 | NOASSERTION | 2021-07-19T09:02:58 | 2018-10-03T05:02:22 | C++ | UTF-8 | C++ | false | false | 984 | h | log_event.h | // Log event with metadata
// Author: Max Schwarz <max.schwarz@ais.uni-bonn.de>
#ifndef ROSMON_LOG_EVENT_H
#define ROSMON_LOG_EVENT_H
#include <string>
namespace rosmon
{
struct LogEvent
{
public:
enum class Type
{
/**
* Raw messages from monitored nodes. These are self-coded using
* ANSI escape codes. */... |
d385f0f2856f4d078948294d4ff275dad6106d83 | 21eb94c2c7e8b601926d0f87925703e29ba61cea | /dmf_control_board_rpc/Arduino/dmf_control_board_rpc/FeedbackController.cpp | d1baa827536b174b380358eb347f4bbc364b9287 | [] | no_license | wheeler-microfluidics/dmf_control_board_rpc | 05b323423a9ae56c3c1eab6d6d765a9183c7ad7e | 73d5824e0a9b5a70ca99eaf5f5a8babc2aa087b1 | refs/heads/master | 2021-05-16T02:50:44.883759 | 2017-07-20T14:30:14 | 2017-07-20T14:30:14 | 19,990,949 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 16,991 | cpp | FeedbackController.cpp | #if defined(AVR) || defined(__SAM3X8E__)
#include "FeedbackController.h"
#include "AdvancedADC.h"
#include "DMFControlBoard.h"
uint8_t FeedbackController::series_resistor_indices_[NUMBER_OF_ADC_CHANNELS];
uint8_t FeedbackController::saturated_[NUMBER_OF_ADC_CHANNELS];
uint8_t FeedbackController::post_satura... |
3dea6e71afcb66c66721adcb74d72f9a9e67e418 | b367fe5f0c2c50846b002b59472c50453e1629bc | /xbox_leak_may_2020/xbox trunk/xbox/private/vc7addon/vs/src/vc/ide/pkgs/projbld/ui_dll/src/exehierarchy.cpp | f8df167f3631bed59ea889cda87a50f0fecf55a7 | [] | no_license | sgzwiz/xbox_leak_may_2020 | 11b441502a659c8da8a1aa199f89f6236dd59325 | fd00b4b3b2abb1ea6ef9ac64b755419741a3af00 | refs/heads/master | 2022-12-23T16:14:54.706755 | 2020-09-27T18:24:48 | 2020-09-27T18:24:48 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 22,354 | cpp | exehierarchy.cpp | //---------------------------------------------------------------------------
// Microsoft Visual InterDev
//
// Microsoft Confidential
// Copyright 1994 - 1997 Microsoft Corporation. All Rights Reserved.
//
// WebArchy.cpp : Implementation of CIswsApp and DLL registration.
//------------------------------------... |
20de72c0deb94561e5fbdd091a71efcf5ed8bfb8 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/CMake/CMake-gumtree/Kitware_CMake_repos_basic_block_block_15346.cpp | 858641b33a839f28e181d01c0e064c8cb0b57ec8 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 309 | cpp | Kitware_CMake_repos_basic_block_block_15346.cpp | {
if (value == NULL ||
!(value[0] >= '0' && value[0] <= '9') ||
value[1] != '\0') {
archive_set_error(&(a->archive),
ARCHIVE_ERRNO_MISC,
"Illegal value `%s'",
value);
return (ARCHIVE_FAILED);
}
zip->opt_compression_level = value[0] - '0';
return (ARCHIVE_OK);
} |
17697beece77d6f741914510174272cdd7773487 | f6f323c895e18433159627bd61efccf63a5fe12f | /vertex_cover_two.cpp | 7f6950a2d6fe8651194fbfd956a93c10e58d5c7c | [] | no_license | Adarsh-kumar/Competitive_coding_practice | 200d869d072b97daa5e900b0c35b91e1da128247 | 88bb368b107b35eb5e9c40a683a3e41fbe16b469 | refs/heads/master | 2020-03-30T14:03:30.177798 | 2018-10-02T18:09:40 | 2018-10-02T18:09:40 | 151,299,363 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 784 | cpp | vertex_cover_two.cpp | #include<bits/stdc++.h>
using namespace std;
vector<int> adj[100005];
int count1=0;
int count2=0;
int col[100005];
bool check_bipartite(int s)
{
queue<int> q;
q.push(s);
col[s]=1;
count1++;
while(!q.empty())
{
int u=q.front();
q.pop();
for(int v:adj[u])
{
if(col[v]==-1)
{
col[v]=1-col[u];
q.push(v);
if(col[v]==... |
1ab41f42a370ed6cb6b0602219de3d38bb0c453c | cff962dad386e37f98d59e586515a7bd4b3571f9 | /dist/alure/src/context.h | 58aed01dd9730d62cf31d54b59e8115a1c4cef04 | [
"MIT",
"Zlib"
] | permissive | snada/openal-alure-sandbox | d3cdf8a408f8f9bdda519887258fe80d42d19ced | de0870068e013bec1306af21927e39b9578af420 | refs/heads/master | 2021-08-24T01:56:01.281073 | 2017-12-07T14:58:44 | 2017-12-07T14:58:44 | 111,256,887 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 10,326 | h | context.h | #ifndef CONTEXT_H
#define CONTEXT_H
#include <condition_variable>
#include <unordered_map>
#include <stdexcept>
#include <thread>
#include <mutex>
#include <stack>
#include <queue>
#include <set>
#include "main.h"
#include "device.h"
#include "source.h"
#define F_PI (3.14159265358979323846f)
namespace alure {
en... |
1108ab8b58f08fe230598f0f74ebf3f6d76a7852 | b7373c9a097c409f8f9f60068cb1d47670c37be5 | /src/RtbDict.cpp | 7651c3c32da597b068bf782e8e228ceb8ab8cbe2 | [] | no_license | SericWong/adtrident | 6e2d71eade8ee0f928c623ff7e63ec0ad44220d0 | e9101b528ba0d4f29ee8fa53949514154184f3e6 | refs/heads/master | 2021-01-12T19:59:55.750156 | 2016-01-03T16:07:18 | 2016-01-03T16:07:18 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,416 | cpp | RtbDict.cpp | #include "RtbDict.h"
#define REG_DICT(dictname, dict) \
do { \
if (xbuiltin::Manager::instance().register_dict(dictname, (dict)) < 0) { \
WRITE_LOG(UL_LOG_FATAL, "register dict[%s] failed.", dictname); \
return -1; \
} \
} while (0)
#define REG_PLUGIN(dict, plugin) \
do { \
if ((dict)->reg... |
8d2a393c64116aa15365c9c26216836eba2738e0 | c76dc04ab30acb663990aeff842436f2d4d1fcb5 | /media/blink/video_frame_compositor.h | 02b6077f9605ff25029cfb08da5adefc8c3808e6 | [
"BSD-3-Clause"
] | permissive | tongxingwy/chromium-1 | 1352c851a18a26645d69741ed6fc540fabcc862e | 9e3ebd26fa69a2e2fdf5d5f53300bbf1e2f72b8c | refs/heads/master | 2021-01-21T03:09:12.806702 | 2015-04-30T17:32:56 | 2015-04-30T17:33:35 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 5,255 | h | video_frame_compositor.h | // Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MEDIA_BLINK_VIDEO_FRAME_COMPOSITOR_H_
#define MEDIA_BLINK_VIDEO_FRAME_COMPOSITOR_H_
#include "base/callback.h"
#include "base/memory/ref_counted.... |
b256f8ec0e32b740f97a81e3fb9d73460acc6e5b | 6ca74d0492333aa61d02056e476b0376249c734e | /Minimum Platforms/min_platforms.cpp | e2aae11e1696a94eb223529334992acbc2f8dc64 | [] | no_license | Jitendra2027/Geeksforgeeks-11-weeks-DSA-With-Cpp- | 829be56ea1a4a7c14520c9a9153b9b2df60ea077 | 62ef0fc658d56ab0be272788406f3786a1ffcb1a | refs/heads/main | 2023-07-27T13:12:24.833784 | 2021-09-07T13:11:14 | 2021-09-07T13:11:14 | 388,146,051 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 718 | cpp | min_platforms.cpp | #include<bits/stdc++.h>
using namespace std;
int min_platforms(int arr[],int dep[],int n)
{
sort(arr,arr+n);
sort(dep,dep+n);
int i=1,j=0;
int platform=1,result=1;
while(i<n && j<n)
{
if(arr[i]<=dep[j])
{
platform++;
i++;
}
else
{
... |
b29609438aed7013946be78b07deba07a924bef0 | 3be9bb691024e276bffa63d05653e512d666cfa9 | /Receiver/widget.cpp | 497b41cd3be99691a4159637786a5a7ebe080c7b | [] | no_license | ruanshihai/S3C6410-VMS | 83ba7356847fb1f921b02ef79c561a8ac774eea2 | c825f18b64f63e8a2432b5f96af251f462c3da9e | refs/heads/master | 2020-06-05T09:40:17.543941 | 2015-06-18T05:41:42 | 2015-06-18T05:41:42 | 37,639,528 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,407 | cpp | widget.cpp | #include <QMessageBox>
#include <stdio.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include <linux/fs.h>
#include <errno.h>
#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <linux/fb.h>
#include <linux/kd.h>
#inc... |
ff31b01c792940a9b13420ced0de0dff554501d7 | 5ea09a949bdcf7ef5c3ea504fb14751f57d3f328 | /Homework04/Circle.h | 5cc69e924f74bb195a78d6ce8c4bd4e6f9e5a7e6 | [] | no_license | staatsty/CSE_335 | 0e4600e7748b8a42c057fa2f64947bc4c080aaf7 | 53d32188869a3a58a4b259b974f217ac7df5f588 | refs/heads/master | 2020-04-01T05:48:08.654789 | 2018-10-13T22:45:26 | 2018-10-13T22:45:26 | 152,920,091 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 785 | h | Circle.h |
/*
* File: Circle.h
* Author: Tyler Staats
*
* Created on January 22, 2018, 3:15 PM
*/
#ifndef CIRCLE_H
#define CIRCLE_H
#include <string>
#include <iostream>
#include <iomanip>
using namespace std;
/*
* This class is called Circle
* This class is derived from the Shape base class... |
cd09b92772d8662ebc5b3760c7136f3f5af3e983 | 2aa20455bc11aa7a94da704ab3770a6231ddfc38 | /LintCode/searchRange.cpp | 0e993a8e1cf8e6f12eead86e15706eb4b1109c93 | [] | no_license | zhonghuawu/workspace | 852485eafe399f9fd2d88083c35312b309ad18a5 | a283b18bea3e63b5cb674acfbf2f30d0108f40d8 | refs/heads/master | 2020-12-29T02:42:31.283317 | 2015-03-10T20:09:04 | 2017-02-17T12:16:51 | 46,476,002 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 935 | cpp | searchRange.cpp | #include <iostream>
#include <vector>
using namespace std;
class TreeNode {
public :
int val;
TreeNode* left,* right;
TreeNode(int val) {
this->val = val;
this->left = this->right = NULL;
}
};
class Solution {
public :
vector<int> searchRange(TreeNode* root, int k1, int k2) {
vector<int> result;
search(roo... |
48987d31673615cfb99a0ed2361094f52b1fc7b8 | bbcda48854d6890ad029d5973e011d4784d248d2 | /trunk/win/BumpTop Settings/include/wxWidgets/wx/mac/classic/control.h | 6bfeae08432ed86f3ae8f68b1712b035ea6b7892 | [
"LGPL-2.0-or-later",
"WxWindows-exception-3.1",
"Apache-2.0",
"LicenseRef-scancode-public-domain"
] | permissive | dyzmapl/BumpTop | 9c396f876e6a9ace1099b3b32e45612a388943ff | 1329ea41411c7368516b942d19add694af3d602f | refs/heads/master | 2020-12-20T22:42:55.100473 | 2020-01-25T21:00:08 | 2020-01-25T21:00:08 | 236,229,087 | 0 | 0 | Apache-2.0 | 2020-01-25T20:58:59 | 2020-01-25T20:58:58 | null | UTF-8 | C++ | false | false | 3,976 | h | control.h | /////////////////////////////////////////////////////////////////////////////
// Name: control.h
// Purpose: wxControl class
// Author: Stefan Csomor
// Modified by:
// Created: 1998-01-01
// RCS-ID: $Id: control.h 36891 2006-01-16 14:59:55Z MR $
// Copyright: (c) Stefan Csomor
// Licence: ... |
1c2abb9d105ea101007937c7eda2b42efd355539 | 9b4c00dc79a073ea26a0221e1f24464e4eb70b5c | /20x4/TB CODE/SerLCD_testbed_v01/SerLCD_testbed_v01.ino | 44aec6644d97efc3a9f75ac0e695b8331e72a03d | [] | no_license | lewispg228/Serial_LCD_testbeds | 95f8a897dd75dfa6a26f7227ad4fffdecaa2e7f4 | 5b25c64f0f43cb0a214ecae06eb5e2fe04d3f234 | refs/heads/master | 2020-07-19T18:15:17.178728 | 2020-04-27T22:23:47 | 2020-04-27T22:23:47 | 73,756,164 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 15,857 | ino | SerLCD_testbed_v01.ino | /*
SerLCD testbed code.
Flying Jalapeno (VCC (aka LOGIC): 3.3V, V1:3.3V, V2: RAW (5-7V))
2 capsense pads: Pretest & Power, TEST
Select Mega2560 from the boards list
Test procedure:
* USER PRESS "PRETEST & POWER" BUTTON
* pretest for shorts to GND on VIN and 3.3V rails
* power up with V2 (jumpered to RAW... |
6a12bf72bfbf98744b3ba5554b3afe0b1aa2c228 | 091afb7001e86146209397ea362da70ffd63a916 | /inst/include/nt2/signal/include/functions/db2mag.hpp | 4b1cb850e2771e8bdc0b45e0f9afa1f8f9e14051 | [] | no_license | RcppCore/RcppNT2 | f156b58c08863243f259d1e609c9a7a8cf669990 | cd7e548daa2d679b6ccebe19744b9a36f1e9139c | refs/heads/master | 2021-01-10T16:15:16.861239 | 2016-02-02T22:18:25 | 2016-02-02T22:18:25 | 50,460,545 | 15 | 1 | null | 2019-11-15T22:08:50 | 2016-01-26T21:29:34 | C++ | UTF-8 | C++ | false | false | 217 | hpp | db2mag.hpp | #ifndef NT2_SIGNAL_INCLUDE_FUNCTIONS_DB2MAG_HPP_INCLUDED
#define NT2_SIGNAL_INCLUDE_FUNCTIONS_DB2MAG_HPP_INCLUDED
#include <nt2/signal/functions/db2mag.hpp>
#include <nt2/signal/functions/generic/db2mag.hpp>
#endif
|
9359653ff016118c0a68d0dc1221ba9af3a3341b | 28dba754ddf8211d754dd4a6b0704bbedb2bd373 | /CodeTemplate/Geometry/PointsAndPolygon.cpp | dfa24d633428163a4d22cbc07df9c6aabb80d1fb | [] | no_license | zjsxzy/algo | 599354679bd72ef20c724bb50b42fce65ceab76f | a84494969952f981bfdc38003f7269e5c80a142e | refs/heads/master | 2023-08-31T17:00:53.393421 | 2023-08-19T14:20:31 | 2023-08-19T14:20:31 | 10,140,040 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 17,443 | cpp | PointsAndPolygon.cpp | #define maxn 10010
#define M_PI 3.14159265358979323846 /* pi */
double my_sqrt(double d) {return sqrt(max(d, 0.0));}
double my_acos(double d) {return acos(d<-1?-1:d>1?1:d);}
#define sqr(v) ((v)*(v))
const double eps = 1E-6;
int sig(double d) {
return (d>eps) - (d<-eps);
}
struct Point {
double x, y;
Point(double x,... |
c201ba5c63def4ac06fb41e6fd6dc6a43b102e6e | cd922461c50f6c86dd660f2bca7ee68afb3ee1ea | /test/integ/ImmutableSubcomponentAnalyzerTest.cpp | b57d4d3ce3d4eadde7fd5f25bd205702e9468894 | [
"BSD-3-Clause",
"LicenseRef-scancode-unknown"
] | permissive | alanyee/redex | 0376b5091eee42d6817b9b28dc5c5bb5598889bb | 35d261274571b1515e0eaec278cb8ecd79006559 | refs/heads/master | 2020-04-10T23:06:09.842130 | 2018-03-07T23:03:41 | 2018-03-07T23:03:41 | 124,304,844 | 0 | 0 | BSD-3-Clause | 2018-03-07T22:59:47 | 2018-03-07T22:59:47 | null | UTF-8 | C++ | false | false | 3,305 | cpp | ImmutableSubcomponentAnalyzerTest.cpp | /**
* Copyright (c) 2016-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#include <... |
aac3af57cfa9e693b1244bbd69eac54fed4e02b2 | bc8a89a4911fc31c1ae50944889f5a81c0e4832f | /10222.cpp | a551c40d801502e50ba14a6a15362dd5c44e985d | [] | no_license | thierrychou/uva_online_judge | 44616c1368176b16871a3cecbaff8c220e53680e | 8a8a1493dec163c46a816785c66cfc65af6abc65 | refs/heads/master | 2023-03-28T12:12:10.499713 | 2021-03-21T12:23:33 | 2021-03-21T12:23:33 | 349,991,527 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,597 | cpp | 10222.cpp | #include <cstdio>
int main() {
char c;
char keymap[256];
keymap['\n'] = '\n';
keymap['\t'] = '\t';
keymap[' '] = ' ';
keymap['\''] = 'l';
keymap[','] = 'n';
keymap['.'] = 'm';
keymap['/'] = ',';
keymap[';'] = 'k';
keymap['['] = 'o';
keymap['\\'] = ';';
... |
5c1df618e5bcc76e031e0bcc8d43792f01f47998 | dbce306854ea709f7544be3ddf24c0cd83daab87 | /src/glpk/param.h | d50b64db3a3fc12c69486a881217adc47cd6a006 | [] | no_license | jackiepurdue/ilp-spr-distance | c2f1aae6411d080e0ea3f1fe8e92f03e13293166 | 724ec50b9e60626007e2d853a829be8078fb99b3 | refs/heads/master | 2020-09-08T21:55:55.295609 | 2019-11-12T15:35:39 | 2019-11-12T15:35:39 | 221,251,175 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 297 | h | param.h | #include <memory>
#ifndef CSPR_PARAM_H
#define CSPR_PARAM_H
class param {
public:
param(std::string tree1, std::string tree2, int param, bool verbose);
int solve(int param);
void formulate();
void delete_problem();
private:
struct impl;
std::shared_ptr<impl> _internals;
};
#endif
|
adce38f4232b1a6ec3a2b809081b6463c89e45bc | 9254fc558d175f76558be210c65a2e819753cb9e | /include/urbi/object/fwd.hh | 544a60db15026eb6cf1765e842009877a8c2aa01 | [] | permissive | urbiforge/urbi | ee36996e87c25dd0a75199d580ac13442ba3032c | d6c6091a28e79b935b4f6573225486238e3c7d47 | refs/heads/master | 2023-08-22T04:15:36.358115 | 2023-08-10T13:24:17 | 2023-08-10T13:24:17 | 56,369,573 | 18 | 5 | BSD-3-Clause | 2023-08-10T12:43:43 | 2016-04-16T06:38:50 | C++ | UTF-8 | C++ | false | false | 4,360 | hh | fwd.hh | /*
* Copyright (C) 2007-2012, Gostai S.A.S.
*
* This software is provided "as is" without warranty of any kind,
* either expressed or implied, including but not limited to the
* implied warranties of fitness for a particular purpose.
*
* See the LICENSE file for more information.
*/
/**
** \file object/fwd.hh... |
955450942654eadfa9a66a4d2846e7c4c11bb6a9 | 804c6a3aa11ed1b723d65e5f2ff24190554dbce4 | /rwindow.h | d92fd1ba05f041776048fd0c113829cd650cd5f2 | [] | no_license | Kretikus/qtrogue | fe38141350305c382fc339d40be1ed5e48516d20 | 718669bdb63f94bd8cdad30aeca4bfe5cc49cf80 | refs/heads/master | 2018-12-29T17:54:58.857605 | 2012-08-06T11:47:38 | 2012-08-06T11:47:38 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 277 | h | rwindow.h | #include "currentmap.h"
#include <QVector>
#include <QWidget>
class RWidget : public QWidget
{
Q_OBJECT
public:
RWidget(QWidget* parent);
protected:
void paintEvent(QPaintEvent * event);
void keyReleaseEvent(QKeyEvent *);
QString currentText_;
CurrentMap map_;
};
|
d11c87e3bca9fce42d4ad64782ee97af9be74a22 | 91c49abf81011a221703afee257b6d6d11f2fb4d | /ai/perceptron/include/perceptron.hpp | f3c05f76dcca20cd3cd6b49c4fbb378687e4bb85 | [] | no_license | milesand/UniversityCodes | 017660e742cd6cc03f19900545d5a97b48c92dc6 | 3cad638ae9f6bc72fe25281b8f3aff0ebbac4fdb | refs/heads/master | 2022-12-01T09:28:34.107805 | 2020-08-13T07:43:48 | 2020-08-13T07:43:48 | 287,214,623 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,791 | hpp | perceptron.hpp | #ifndef PERCEPTRON_H
#define PERCEPTRON_H
#include <cstddef>
#include <array>
// Perceptron with compile-time defined number of incoming connections.
template <std::size_t N>
class StaticPerceptron {
public:
// fields are public because the assignment requires these to be changed
// and just having them publi... |
db751022e1aa5d839f08d31da159fd5fbea2e74b | 8f021f68cd0949afa8d119582c0b419b014919d8 | /URIOJ/uri2534.cpp | 7e62f05c84e216b0e304198e7c620fdce16b73da | [] | no_license | Jonatankk/codigos | b9c8426c2f33b5142460a84337480b147169b3e6 | 233ae668bdf6cdd12dbc9ef243fb4ccdab49c933 | refs/heads/master | 2022-07-22T11:09:27.271029 | 2020-05-09T20:57:42 | 2020-05-09T20:57:42 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 382 | cpp | uri2534.cpp | /*
* Leonardo Deliyannis Constantin
* URI 2534 - Exame Geral
*/
#include <stdio.h>
#include <algorithm>
bool cmp(int a, int b){
return a > b;
}
int main(){
int N, Q, i, v[112];
while(scanf("%d %d", &N, &Q) != EOF){
for(i = 0; i < N; i++){
scanf("%d", v+i);
}
std::sort(v, v+N, cmp);
while(Q--){
sc... |
39a638b375c976f8e2c28e44471587d7ff253b27 | f3376c06cf12367f2cb50ae2b1d1b41cdaef9e3e | /MyProjectA/Source/MyProject/EmitPickup.cpp | 1aff2bc74985a6acc69a3b29a85d8ecbe0d4b82a | [] | no_license | bam1a/2097A2 | 256ce534d487c4ddceca2e45ffc158505dce8b73 | 4d19921bfc247acfa84234932161151cff464de5 | refs/heads/master | 2022-03-20T08:10:47.287234 | 2019-11-08T11:02:54 | 2019-11-08T11:02:54 | 149,250,282 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 530 | cpp | EmitPickup.cpp | // Fill out your copyright notice in the Description page of Project Settings.
#include "EmitPickup.h"
#include "MyProject.h"
#include "Net/UnrealNetwork.h"
AEmitPickup::AEmitPickup() {
// //Super::APickup();
pickupName = "default emit pickup";
pickupDisplayText = "default pickup display text";
}
void AEmitPickup:... |
9d7730c75a2bc550c27658e74b26cd5fc1dc5319 | 8481b904e1ed3b25f5daa982a3d0cafff5a8d201 | /C++/SJTU/sjtu 4012.cpp | b16c133fd3f9787ff9e44001c8084c7dcf6159f8 | [] | no_license | lwher/Algorithm-exercise | e4ac914b90b6e4098ab5236cc936a58f437c2e06 | 2d545af90f7051bf20db0a7a51b8cd0588902bfa | refs/heads/master | 2021-01-17T17:39:33.019131 | 2017-09-12T09:58:54 | 2017-09-12T09:58:54 | 70,559,619 | 1 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 578 | cpp | sjtu 4012.cpp | #include<iostream>
#include<map>
#include<queue>
#include<cmath>
#include<vector>
#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<algorithm>
using namespace std;
struct node{
int v;
node(int p=0){
v=p;
}
bool operator <(const node &b) const{
return v>b.v;
}
};
int n,ans;
priority_queue<node> q;
i... |
17505d1a474cb28711e271af8e6d4805c88de05e | 73e8f0b24c7a6c3bae304bc3aa71683ffe3964d7 | /Training/basic_data_types.cpp | ec309c22c5d1f5e7c2c29989e5ea171e0d87666d | [] | no_license | norioz/training | bf59a3af43ec7dfd60e9ba4c36500e2d26690db7 | bea3267e2ebfec4264f10a7e0b361e1d123aa64d | refs/heads/master | 2020-03-24T21:59:59.366596 | 2018-11-27T02:51:21 | 2018-11-27T02:51:21 | 143,061,491 | 0 | 1 | null | 2018-08-24T02:56:11 | 2018-07-31T20:03:46 | C++ | UTF-8 | C++ | false | false | 675 | cpp | basic_data_types.cpp | #define _CRT_SECURE_NO_WARNINGS
#include <cstdio>
#include "basic_data_types.h"
// Input
// Input consists of the following space-separated values: int, long, char,
// float, and double, respectively.
//
// Output Format
// Print each element on a new line in the same order it was received as input.
// Note that the... |
f9791a82d0289a228d06f7a473a24d5064352502 | 7121aaa6b2bfb0b9562c51d74a2d35805a25a4f5 | /embedded/embedded.h | f5ccada2f810f5d5f8483a364c0c599aab8be1e3 | [] | no_license | mongodb/mongo-snippets | 0648e6211769623f518630142ff123296a78dca1 | 86abccb35fa43fb093169021f600c488b25d050d | refs/heads/master | 2023-08-17T05:49:36.281014 | 2023-04-01T01:19:49 | 2023-04-01T01:19:49 | 147,843 | 192 | 57 | null | 2023-04-10T15:08:56 | 2009-03-10T22:09:11 | C++ | UTF-8 | C++ | false | false | 1,250 | h | embedded.h | /** embedded.h
embedded todos:
_ power management: there are some places in the code where it does not go completely idle, but rather
almost idle, when there are no db requests coming in. this is not good on battery device. this is
not too hard to change.
_ --dur should be on automatically... |
f664674748a0ecdb15c9711f842b647192ad7c78 | 6aa4ce39f7e5761f920872ab3dd5fa6cfb8e7c7f | /src/lcd/nextion_hmi/StateFiles.cpp | b8487aed903054444fbc15f3d8100ff4459caee7 | [] | no_license | eskeyaar/MKA-firmware | 2068feb3525873b22af2020300cfcbd1e588ca89 | c1d01a81c2ede9a72a0e1282a6c858e3aa0e5251 | refs/heads/master | 2022-04-15T19:22:58.187596 | 2020-03-18T10:42:25 | 2020-03-18T10:42:25 | null | 0 | 0 | null | null | null | null | ISO-8859-7 | C++ | false | false | 8,291 | cpp | StateFiles.cpp | /*
* StateFiles.cpp
*
* Created on: 7 θών. 2018 γ.
* Author: Azarov
*/
#include "../../../MK4duo.h"
#if ENABLED(NEXTION_HMI)
#include "StateFiles.h"
namespace {
///////////// Nextion components //////////
//Page
NexObject _page = NexObject(PAGE_FILES, 0, "files");
//Buttons
... |
4e9dab138ab57677c64a5d6b999bb0fbd90e8bf8 | 4032d24a4191f8ef2e7997f74e4d5c440f50dae2 | /nesterj/nes/mapper/085.cpp | 82be2eba439b68567c248d452bbe25ae61e6a890 | [] | no_license | PSP-Archive/NesterJ-Plus-RM | 606461ad32881734927426abeecdcfe61773595f | a651249d963f29360f09f5b7cd8b4923a0982cb2 | refs/heads/main | 2023-05-27T03:26:54.064093 | 2021-06-05T01:01:00 | 2021-06-05T01:01:00 | 373,992,047 | 3 | 2 | null | null | null | null | UTF-8 | C++ | false | false | 4,096 | cpp | 085.cpp |
/////////////////////////////////////////////////////////////////////
// Mapper 85
void NES_mapper85_Init()
{
g_NESmapper.Reset = NES_mapper85_Reset;
g_NESmapper.MemoryWrite = NES_mapper85_MemoryWrite;
g_NESmapper.HSync = NES_mapper85_HSync;
}
void NES_mapper85_Reset()
{
// Init ExSound
NES_APU_SelectExSound(2);... |
96a3dab4a82e72bf7eb22e4d5750c18a81a7dfc6 | 518c1ea218366df02c9d04c08a9944742a94339a | /codeforces/Codeforces Round #270/D.cpp | dc57222ac7127f008de0e253151627e16bc5dc74 | [] | no_license | jhonber/Programming-Contest | 5b670d0e96263926e5d467c7b7c2434328c53c83 | c2aa60acd3ac55f9e58a610ac037b31f52236ad4 | refs/heads/master | 2021-01-24T12:52:39.569485 | 2020-03-13T01:24:32 | 2020-03-13T01:24:32 | 16,530,134 | 6 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 3,264 | cpp | D.cpp | // http://codeforces.com/contest/472/problem/D
#include<bits/stdc++.h>
using namespace std;
#define __ ios_base::sync_with_stdio(0); cin.tie(0);
#define endl '\n'
#define foreach(it, x) for (__typeof (x).begin() it = (x).begin(); it != (x).end(); ++it)
#define all(x) x.begin(),x.end()
#define D(x) cout << #x " = " << ... |
9a1538d66327c8a05b77d037e14afa217bc28e4c | 40e704c0ca0691437cd92f13f13c5650d52ddeae | /ReadFile.cpp | ac36643618d749942f080c8563a660d82e583c3d | [] | no_license | bradpurvis/scaryrex | 2dfeebae933783f9fbec72a05d397e801a518cfa | 22e57c07c9c5db19824b6c4b6e0618be597e9360 | refs/heads/master | 2020-07-04T18:16:03.595108 | 2019-08-14T15:23:04 | 2019-08-14T15:23:04 | 202,370,224 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 579 | cpp | ReadFile.cpp | //Brad Purvis
//COP2000.053
//read file
#include "pch.h"
#include <iostream>
#include <string>
#include <fstream>
using namespace std;
int main()
{
string dayofweek;
ifstream myinputfile;
myinputfile.open("Weekdays.txt");
if (!myinputfile) //file did not open
{
cout << "File did not open" <<... |
0675ca369037f13166111ea801e5b03bfc30899b | 691792c9c88c9d2b0f6d1cafc07604f719f06693 | /5543.cpp | 672f5f4a3f6bfd3e409ac868a8908e0baa033cda | [] | no_license | Do-ho/BaekJoon_Online_Judge | 3d4221c1798bcccbfb5689f2cae22ecb1bcadc68 | 57488470b61951303253e864d6d262f13ef1ec18 | refs/heads/master | 2022-05-27T17:34:08.109927 | 2020-05-01T14:15:57 | 2020-05-01T14:15:57 | 260,465,662 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 351 | cpp | 5543.cpp | #include <iostream>
using namespace std;
int main() {
int menu[5], hamburger=2000, drink=2000;
for(int i=0; i<5; i++) {
cin >> menu[i];
if(i<3) {
if(hamburger>menu[i]) hamburger = menu[i];
}
else {
if(drink>menu[i]) drink = menu[i];
}
}
co... |
ccb79cbaa8dc201211e46993a42d9fe6156084c8 | 06c9bb3dbce266df4b17e7dfab6ad251ace8d06a | /cateditdialog.cpp | b841b97d18006068803821c8227ab8627fe63a53 | [] | no_license | demanxd/Dialogue_Compositor | 72c83485846cb7cf5d94ca230fd8b9fc591b3cd7 | 53a7953d9c0af33246c227c433ed31b584329c82 | refs/heads/master | 2023-01-04T11:39:27.800801 | 2020-10-25T20:51:42 | 2020-10-25T20:51:42 | 307,192,268 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,375 | cpp | cateditdialog.cpp | #include "delegate.h"
#include "cateditdialog.h"
#include "ui_cateditdialog.h"
CatEditDialog::CatEditDialog(QWidget *parent) {
QVBoxLayout *layout = new QVBoxLayout(this);
listView = new QListView(this);
Delegate *myDelegate = new Delegate(this);
myModel = new QStringListModel(this);
listView->setModel(myModel);
... |
8aced40d5a4931bc6a1f10381e907ae647ef7b80 | 4de159aea4b1eb5a527a3011275be57c4bb8d28f | /src/deps/newton/dgPhysics/dgCollisionUserMesh.cpp | 52fc1c4ea22ee7c7fafc152a0e9ea118cd3c4747 | [
"MIT",
"LicenseRef-scancode-free-unknown"
] | permissive | tanis2000/binocle-c | 27691ec089a4b75acc451ef6abc4767cb06a6fdd | cd3dbacdd5cb94bfce489b9ee2f07e218c645e29 | refs/heads/master | 2023-09-04T20:39:34.331172 | 2023-08-29T13:22:12 | 2023-08-29T13:22:12 | 192,515,187 | 132 | 8 | MIT | 2023-05-09T14:39:31 | 2019-06-18T10:07:33 | C | UTF-8 | C++ | false | false | 11,264 | cpp | dgCollisionUserMesh.cpp | /* Copyright (c) <2003-2019> <Julio Jerez, Newton Game Dynamics>
*
* 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 purpo... |
be77fbcc4d556453dfe00b031d3813ea86cfe1f6 | 76382e22455dc10da2c85068d93bcb139a062f26 | /src/net/NetSocket.h | 7cbbbd8d3c65b1f32f051cf641ee5342d06d6bac | [
"Apache-2.0"
] | permissive | levyhoo/netwb | 14522217f88d0e5fcbe044230f6a9a9be69529e5 | 2d00398ca5b8cd69e94e986822b98733b3780d57 | refs/heads/master | 2016-08-06T05:19:22.670597 | 2015-08-26T09:48:18 | 2015-08-26T09:48:18 | 40,540,732 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 6,615 | h | NetSocket.h | #ifndef _ISocket_2013_5_28_h__
#define _ISocket_2013_5_28_h__
#include <boost/asio.hpp>
#include <boost/asio/ssl.hpp>
#include "net/ProxyInfo.h"
#include <net/NetCommon.h>
namespace net
{
class DLL_EXPORT_NET NetSocket : public boost::enable_shared_from_this<NetSocket>
{
public:
static SocketPtr m... |
a142cd6ec18140589821f08b8cda665c9ae09ca4 | a07d4ef7d9edc7d1cc43dfd7b612f5f0161b7bd7 | /include/quickmsg/quickmsg_java.hpp | 816617ed0f1cca3d2779b221bc5c00bffcac07b1 | [] | no_license | jlowenz/quickmsg | 753d5dc219457885ffa403fa89a59894329e2f6e | ba1acaef6f0865655130bcf983c2cfdb4ba7fe46 | refs/heads/master | 2020-12-24T05:53:16.168451 | 2018-09-19T19:13:09 | 2018-09-19T19:13:09 | 32,294,359 | 4 | 7 | null | 2018-09-19T19:13:10 | 2015-03-16T01:34:10 | C++ | UTF-8 | C++ | false | false | 212 | hpp | quickmsg_java.hpp | #ifndef JAVA_QUICKMSG_HPP
#define JAVA_QUICKMSG_HPP
#include <jni.h>
struct java_cb_data
{
JNIEnv* env;
jobject obj;
bool init_thread;
java_cb_data() : env(NULL), init_thread(false) {}
};
#endif
|
9611fb7121342466317a6ed383fae49cd84e6d28 | 72135b4340c4ae0d922b3ddff5e0c0c32b39cb70 | /oceandemo/Camera.h | 7a9a118840502f53489dcd676de6fb088be6fd3d | [] | no_license | rioki/oceandemo | ab03bdff58ed0d69a75a33612ae07de9fd6978ef | 2cfa76b379f609a8c6f34980062658ba99f79714 | refs/heads/master | 2020-06-03T10:58:06.036550 | 2014-12-17T19:19:46 | 2014-12-17T19:19:46 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 762 | h | Camera.h |
#ifndef _OD_CAMERA_H_
#define _OD_CAMERA_H_
#include <rgm/rgm.h>
#include "Entity.h"
namespace od
{
class Shader;
class Camera : public Entity
{
public:
Camera();
~Camera();
void set_fov(float value);
float get_fov() const;
void set_aspect(float value);
... |
f20bffe5e75d14e93f30ebc4bf0fea09f1645fa9 | ab253052e141e9f6e5dcd6c031315bc311ed86dc | /ShaderBasics/Scene.h | 6e25c5da724269f913d802969ec9219d8c267159 | [] | no_license | 0xdeadcat-uni-stuff/cg_sem6_sha12_lab | 4f592da9e5316048fb34d6a53ee0602d70959969 | cc9209ae50b4406abca42c39cb490ef656724c97 | refs/heads/master | 2023-03-30T00:00:07.916699 | 2021-03-19T17:02:57 | 2021-03-19T17:02:57 | 348,511,465 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,807 | h | Scene.h | #pragma once
#include <gl/glew.h>
#include <ctime>
#include <chrono>
#include "FragmentShader.h"
#include "VertexShader.h"
#include "SphereGPUProgram.h"
template <class GProgram, class VGenerator>
class Scene
{
private:
std::chrono::system_clock::time_point t;
std::chrono::system_clock::time_point tBegin;
bool firs... |
a9fc024958121cf75e2087bc02b7b9f5ed7a296a | 165be8367f5753b03fae11430b1c3ebf48aa834a | /source/geometry/GeometryComputer.hpp | be1165a963e3465c8b576bc182f1a7874b5df37b | [
"Apache-2.0"
] | permissive | alibaba/MNN | f21b31e3c62d9ba1070c2e4e931fd9220611307c | c442ff39ec9a6a99c28bddd465d8074a7b5c1cca | refs/heads/master | 2023-09-01T18:26:42.533902 | 2023-08-22T11:16:44 | 2023-08-22T11:16:44 | 181,436,799 | 8,383 | 1,789 | null | 2023-09-07T02:01:43 | 2019-04-15T07:40:18 | C++ | UTF-8 | C++ | false | false | 3,393 | hpp | GeometryComputer.hpp | //
// GeometryComputer.hpp
// MNN
//
// Created by MNN on 2020/04/01.
// Copyright © 2018, Alibaba Group Holding Limited
//
#ifndef GeometryComputer_hpp
#define GeometryComputer_hpp
#include <map>
#include <vector>
#include "MNN_generated.h"
#include "core/Command.hpp"
#include "core/TensorUtils.hpp"
#include "cor... |
4ae6861e7375295aaba6e79c6bb09db9b76fa127 | 6b40e9dccf2edc767c44df3acd9b626fcd586b4d | /NT/printscan/print/drivers/usermode/unidrv2/vector/hpgl2col/render/realize.cpp | bb014cbf3a0d96494909a70dac2b24c5fe307d54 | [] | no_license | jjzhang166/WinNT5_src_20201004 | 712894fcf94fb82c49e5cd09d719da00740e0436 | b2db264153b80fbb91ef5fc9f57b387e223dbfc2 | refs/heads/Win2K3 | 2023-08-12T01:31:59.670176 | 2021-10-14T15:14:37 | 2021-10-14T15:14:37 | 586,134,273 | 1 | 0 | null | 2023-01-07T03:47:45 | 2023-01-07T03:47:44 | null | UTF-8 | C++ | false | false | 43,194 | cpp | realize.cpp | ///////////////////////////////////////////////////////////
//
//
// Copyright (c) 1999-2001 Microsoft Corporation
// All rights reserved.
//
// Module Name:
//
// realize.cpp
//
// Abstract:
//
// Implementation of Pen and Brush realization.
//
// Environment:
//
// Windows 2000 Unidrv d... |
660df015e9aa6425a629183e19dec7eda496f18a | 5ff0b928d9e93667c8f6c6c9796c3af015b87f81 | /Boss (Code)/Game/GameLuaBindings/KeyboardBind.h | b458e30e296bb145c20177d548d470cfc1e6bd4f | [] | no_license | DodgeeSoftware/Boss-Project-MinGW-w64 | 1820671b8ba07c101de678269dc718646b962730 | 6b3bdfc576e67f557657273d2464b68b1e9569b2 | refs/heads/master | 2022-03-29T12:42:44.349220 | 2019-11-17T21:11:40 | 2019-11-17T21:11:40 | 222,312,722 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 12,691 | h | KeyboardBind.h | #ifndef __KEYBOARDBIND_H
#define __KEYBOARDBIND_H
// C/C++ Includes
#include <string>
// Lua
extern "C"
{
#include "lua.h"
#include "lualib.h"
#include "lauxlib.h"
}
// LuaBridge
#include <LuaBridge/LuaBridge.h>
// GamePad
#include "Keyboard.h"
namespace LuaBinding
{
static void KeyboardBind(lua_St... |
dc862d215257ef2fce9f89378da17e45cdbd31dd | c464b71b7936f4e0ddf9246992134a864dd02d64 | /solidMechanicsTutorials/icoFsiElasticNonLinULSolidFoam/HronTurekFsi/fluid/0.2/solid/V0 | 96a1965260cd586bb965a2410181af79374deff0 | [] | no_license | simuBT/foamyLatte | c11e69cb2e890e32e43e506934ccc31b40c4dc20 | 8f5263edb1b2ae92656ffb38437cc032eb8e4a53 | refs/heads/master | 2021-01-18T05:28:49.236551 | 2013-10-11T04:38:23 | 2013-10-11T04:38:23 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,892 | V0 | /*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM Extend Project: Open source CFD |
| \\ / O peration | Version: 1.6-ext |
... | |
a84e68ba8e9057da440047e90ac041e4a466c381 | d15ae0d359bb794fc5718674caea50a7e8c4d753 | /Darts_501/Darts_501/Level.h | 787de18ac330c4fb233657be188bd75f9656ab45 | [] | no_license | Fibonacci1664/Darts_501 | c2e23b6239a133326ebe09b02a0ababa45e05f86 | e9921c247f8dcc0c2f6b513633f131836c36a1d1 | refs/heads/master | 2021-04-14T03:47:15.951369 | 2020-04-07T12:31:13 | 2020-04-07T12:31:13 | 248,964,425 | 0 | 0 | null | null | null | null | WINDOWS-1252 | C++ | false | false | 877 | h | Level.h | /*
* This is the 'Level' class and handles all things related to generating a window to display a checkout table: *
*
* Original @author D. Green.
*
* © D. Green. 2020.
*
*/
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////... |
c499d716ab17dcea15ff71723a3bd1ccfeacba0b | 5d1a033cf72f630688da2b8de788d1cebf6339e6 | /Source/WebKit/mui/Api/WebError.cpp | 679bda62970fa6b478d973331b0a20a622600362 | [
"BSD-2-Clause"
] | permissive | jaokim/odyssey | e2115123f75df185fcda87452f455f25907b0c79 | 5ee0f826dd3502f04e077b3df59e3d855c7afd0c | refs/heads/kas1e_branch | 2022-11-07T17:48:02.860664 | 2017-04-05T20:43:43 | 2017-04-05T20:43:43 | 55,713,581 | 2 | 1 | null | 2022-10-28T23:56:32 | 2016-04-07T17:17:09 | C++ | UTF-8 | C++ | false | false | 3,249 | cpp | WebError.cpp | /*
* Copyright (C) 2008 Pleyo. 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... |
44fbc1180ad93a232551fe988373d4a9deab9be5 | d144881a7a8f7cea08106436410901a89bb035f9 | /NCT/Source/Allocators/NctStaticAlloc.h | 6769fa535fae884368103f758ca15bbdb5588b7e | [] | no_license | XMatrixXiang/MiddleWare | 0cf429cf3c38de0c175cb9964f4b07cc2cfbe38c | 42ca224b1052090237fc56dae869cd44e7bd8926 | refs/heads/master | 2020-03-14T11:43:47.535221 | 2018-05-01T13:27:06 | 2018-05-01T13:27:06 | 131,596,432 | 0 | 0 | null | null | null | null | GB18030 | C++ | false | false | 5,355 | h | NctStaticAlloc.h |
/**************************************************************************
** Copyright (C) 2002-2018 北京捷安申谋军工科技有限公司, All Rights Reserved
**
** 文件名: NctStaticAlloc.h
** 创建者: 闫相伟
** 创建日期:2018年4月27日
** 详细信息:内存开辟
**
**
***************************************************************************/
#pragma once
#i... |
0b5d39fb8786e10f7c158f0dcd3e9eca327a5ea8 | a01645d71e953f515436ce842946778c284e5d3e | /Futhark/src/out/Camera.h | 7b59f8a18aefb070e706ce55b2af27a296c5acd3 | [] | no_license | t3chma/Futhark | 1102965897c78673b8df1eba5388b5f91651af3b | d9b1d343a9687b9a42492929899ae4f6f2e91fae | refs/heads/master | 2021-06-02T04:05:50.866706 | 2020-02-29T13:03:45 | 2020-02-29T13:03:45 | 115,884,276 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,387 | h | Camera.h | #pragma once
#include <glm/gtc/matrix_transform.hpp>
namespace fk {
/* This represents a virtual camera for use in 2D games.
[t3chma] */
class Camera {
public:
/* Sets the base screen dimensions.
(dimensions) The camera screen dimensions in pixels.
[t3chma] */
void setDimensions(glm::vec2 dimensions);
/* Used ... |
7414f76774ab99afff131b747822d7fe8a6a816c | 38175acbbd791d5062891023ddff69570bb9aabd | /snpduo.cpp | 5f0b12ab5e0a72c13abd9f8b58b8dfd716dc1445 | [] | no_license | wangdi2014/snpduo | 9ddeb1658da6560c2b28b6d4bb8a1971aa07522a | 8b05102900f3525786a106a417d7a3c56d0d87ee | refs/heads/master | 2021-05-26T16:38:55.525479 | 2013-07-17T15:22:13 | 2013-07-17T15:22:13 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,967 | cpp | snpduo.cpp | // stl
#include <cstdlib>
#include <ctime>
#include <fstream>
#include <iostream>
#include <string>
// imports
using std::cout;
using std::ofstream;
using std::string;
using std::time_t;
// Custom includes
#include "cargs.h"
#include "duo.h"
#include "helper.h"
#include "input.h"
#include "options.h"
#include "output... |
8525c9505b373b9f349d21bfa721f3807552b842 | ab1afbdd931b9fe8c66ba325fb40a9f555386d39 | /TAGEngine/TAGEngine/Game/MyInputHandler.cpp | 50cbd769ef1a41458ff91ede0273dcf654accb16 | [] | no_license | jimmybeer/TAGEngine | d1d2e5c501d6d5969344651e048848ea43f1486a | a2b6d5fa8c312fc3b14657f17c24e5ccd4b514ff | refs/heads/master | 2019-01-02T02:08:34.105999 | 2015-07-30T19:07:57 | 2015-07-30T19:07:57 | 37,448,600 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,166 | cpp | MyInputHandler.cpp | #include "MyInputHandler.hpp"
#include "CommandQueue.hpp"
#include "SceneNode.hpp"
#include "Aircraft.hpp"
#include "MyCategory.hpp"
#include <map>
#include <string>
#include <algorithm>
using namespace std::placeholders;
struct AircraftMover
{
AircraftMover(float vx, float vy)
: velocity(vx, vy... |
9baa5c390610eebfa4b99852cac58efca154dfb4 | 59ca9c7bad3bab085c4311c674ae38727b3cf7c2 | /mainwindow.cpp | df71d20baad0fd6abd4db61bb23a54d4fdd4fed3 | [] | no_license | SoraMause/MazeSolver | 0020b6f4f7074b00ae1c33a83064c2fef18c70a4 | c65c062928ba20cab2e6623bd8cf1edbb283d977 | refs/heads/master | 2020-05-09T22:31:42.475392 | 2019-04-24T02:36:27 | 2019-04-24T02:36:27 | 181,474,269 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,011 | cpp | mainwindow.cpp | #include "mainwindow.h"
#include "ui_mainwindow.h"
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
init();
}
MainWindow::~MainWindow()
{
delete simulator;
delete ui;
}
void MainWindow::init()
{
history_string.clear();
ui->maz... |
f3186051794b379ee95d3add8c226ac942daf3fd | 30bdd8ab897e056f0fb2f9937dcf2f608c1fd06a | /contest/1542579743.cpp | df569e192946aac02e1ef18d764fea84c9d2d573 | [] | no_license | thegamer1907/Code_Analysis | 0a2bb97a9fb5faf01d983c223d9715eb419b7519 | 48079e399321b585efc8a2c6a84c25e2e7a22a61 | refs/heads/master | 2020-05-27T01:20:55.921937 | 2019-11-20T11:15:11 | 2019-11-20T11:15:11 | 188,403,594 | 2 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 558 | cpp | 1542579743.cpp | #include<bits/stdc++.h>
using namespace std;
int main(){
char s[105][105];
char a[5];
int n;
scanf("%s",a);
scanf("%d",&n);
getchar();
int f1=1,f2=1;
for(int i=0;i<n;i++){
scanf("%s",s[i]);
}
for(int i=0;i<n;i++){
if(a[0]==s[i][1]){
for(int j=0;j<n;j++){
if(a[1]==s... |
d660fe7b8d8bedeb9ab66669b506e1688ccb3a45 | 0dd186625725d2aabd7f81296617409ba05d0873 | /1/grid.cpp | 9fb1fa2061f9fc496a1b6894af216baf404378d7 | [] | no_license | Sl07h/nstu_EMP | cd859c3ffbf722f2abafada1ab1bb5135df83b89 | 875c4e2050487a969fcfb557551e6848607ec995 | refs/heads/master | 2022-02-19T00:36:08.350338 | 2019-06-06T04:22:52 | 2019-06-06T04:22:52 | 176,553,018 | 1 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 9,882 | cpp | grid.cpp | #include "grid.h"
#include "fdm.h"
void GRID::inputGrid()
{
string filepath;
if (isGridUniform)
filepath = "input/uniform_grid.txt";
else
filepath = "input/nonuniform_grid.txt";
std::ifstream fin(filepath);
fin >> xLeft >> xRight >>
yLower >> yUpper;
fin >> width >> heigth >>
widthLeft >> widthRight... |
2ea257282e44fee7f48e2cec5a5707a862982441 | e30e9a05829baf54b28a4a953c98f6ea2ca5f3cf | /TopCoder/SRM 253 Div 2/250/sol.cpp | e39f52252a3a24b7c0069aee9d9e718a7b9f0a15 | [] | no_license | ailyanlu/ACM-13 | fdaf4fea13c3ef4afc39a522e12c5dee52a66a24 | 389ec1e7f9201639a22ce37ea8a44969424b6764 | refs/heads/master | 2018-02-24T00:33:02.205005 | 2013-01-09T18:03:08 | 2013-01-09T18:03:08 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 813 | cpp | sol.cpp | #include <iostream>
#include <string>
#include <vector>
#include <cmath>
#include <queue>
#include <stack>
#include <algorithm>
#include <map>
#include <set>
using namespace std;
class ObjectPacking{
public:
int smallBox(int objWidth, int objLength, vector <int> boxWidth, vector <int> boxLength){
int ... |
a2bbdc6f3267bf81ba4e07083cbcce009530fb24 | 0eff74b05b60098333ad66cf801bdd93becc9ea4 | /second/download/squid/gumtree/squid_repos_function_1796_last_repos.cpp | 48cee0d823f6bb6f9eb11c47146de80e805c2ac2 | [] | no_license | niuxu18/logTracker-old | 97543445ea7e414ed40bdc681239365d33418975 | f2b060f13a0295387fe02187543db124916eb446 | refs/heads/master | 2021-09-13T21:39:37.686481 | 2017-12-11T03:36:34 | 2017-12-11T03:36:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,281 | cpp | squid_repos_function_1796_last_repos.cpp | void operator()(StoreMeta const &x) {
switch (x.getType()) {
case STORE_META_KEY:
std::cout << "MD5: " << storeKeyText((const cache_key *)x.value) << std::endl;
break;
case STORE_META_STD:
std::cout << "STD, Size:" << ((struct MetaStd*)x.value)->swap_file_sz... |
c0e0d2f5b4f839821062016d0e8a54681583b7ad | 02298b46596d35c248cff9f6664ac311c9af833b | /Fimbul/Fimbul/Color.h | 0542df730f0dd7f9f6d0bc3eacce099efbed7380 | [] | no_license | TheAtomicGnome/Fimbul | 5d332311807b55623f97c250a0d3f7473774ab06 | 1753d1e836152c42c9fccbe29938fea0109bd6f3 | refs/heads/master | 2018-12-28T07:57:05.159700 | 2014-08-21T09:27:51 | 2014-08-21T09:27:51 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 560 | h | Color.h | #ifndef COLOR
#define COLOR
#include <SDL_opengl.h>
class Color
{
public:
Color()
{
r = 0xff;
g = 0xff;
b = 0xff;
a = 0xff;
}
~Color()
{
}
GLubyte r , g , b , a;
void setColor(GLubyte rr , GLubyte gg , GLubyte bb , GLubyte aa)
{
r = rr;
g = gg;
b = bb;
a = aa;
}
Color & operator=(const Colo... |
11551de6f826ba7147bcb807a01c03dc5eb5d68a | 912facd4f25962429117c7a3eba1e1f3ac7bf45d | /ECS_miniengine/Game.h | 1bf2b012d6bb94b88630de65117b3a008065b3ab | [] | no_license | Weaver-JS/Multithreads_ECS | 1aa1381a478021af4d4f47c602965b0e4209c617 | b843ba93ff9dc7890690a0f203ce3ff00c4ec1b2 | refs/heads/master | 2021-10-02T07:32:58.906866 | 2018-10-31T14:09:31 | 2018-10-31T14:09:31 | 153,389,272 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 595 | h | Game.h | #pragma once
#include "SDL.h"
#include "ECS.h"
#include "ECS_Components.h"
#include "ECS_Systems.h"
#include "InputHandler.h"
#include "ManagerConstants.h"
/*
Clase padre de todos los Juegos. Para crear una clase que herede
de juego y sobrescriba sus metodos virtuales.
*/
class Game
{
friend class GameManager;
prot... |
9041586dbcec6897360a88c622cac28845dd3109 | 907551ebcd410a08388df308ff811b6d1b75a8f9 | /Source/U03_EnemyAI/Player/CPlayerController.h | 572480e79f5b2b2de59db0ff11fc85ce4fea3115 | [] | no_license | header-file/U03_EnemyAI | f3a70401c29c2ac3c084b42f432bf419ec8b5a93 | 58812a4a3ed8edca383ff2ddad892e4d542fc74d | refs/heads/master | 2020-06-23T22:26:21.050530 | 2019-07-25T06:32:24 | 2019-07-25T06:32:24 | 198,771,770 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 447 | h | CPlayerController.h | // Fill out your copyright notice in the Description page of Project Settings.
#pragma once
#include "CoreMinimal.h"
#include "GameFramework/PlayerController.h"
#include "CPlayerController.generated.h"
/**
*
*/
UCLASS()
class U03_ENEMYAI_API ACPlayerController : public APlayerController
{
GENERATED_BODY()
publ... |
fed505fc29f98e262dafa5fe17016b07002aed9e | 2baf6f0d497c396c9071ecd28d43df9d9ed6a40c | /project/tests/battery_tests.cc | 8c8a3695df07ffeb72c71fdf7e13414e79c3c7f8 | [] | no_license | yilong233/CSCI-3081W-project | e986f284c82b7ffb3d8c0968cdfe3d5a48633ddd | ed6f861aeae32271b66a0bd87b048af720674a44 | refs/heads/main | 2023-06-10T07:31:59.565268 | 2021-07-01T10:25:35 | 2021-07-01T10:25:35 | 381,992,611 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,100 | cc | battery_tests.cc | #include "gtest/gtest.h"
#include <EntityProject/project_settings.h>
#include "../include/delivery_simulation.h"
#include "../include/battery.h"
#include <EntityProject/entity.h>
#include "json_helper.h"
#include <iostream>
namespace csci3081 {
using entity_project::IEntity;
class BatteryTest : public ::testing::T... |
0a0813615fecaa256cb1d23f088c16321e0ca70b | 8020ee737f9d88efac93bba3b9ff4e03bb96ff2a | /src/tetris.h | f15e221b6aed8e56d56d400f3f942e5ce4cc4db9 | [
"WTFPL"
] | permissive | osgcc/osgcc2-OMGWTFADD | f4169c06436ae0357e9143015ccf671041925154 | 2ec7d0de5deea28980c5d4e66501406e71f36205 | refs/heads/master | 2020-08-23T16:28:06.086903 | 2010-03-11T22:14:47 | 2010-03-11T22:14:47 | 823,620 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,750 | h | tetris.h |
#ifndef TETRIS_INCLUDED
#define TETRIS_INCLUDED
#include "game.h"
class Tetris : public Game
{
public:
// conventions:
void Update(game_info* gi, float deltatime);
void Draw(game_info* gi);
void DrawOrtho(game_info* gi);
void KeyDown(game_info* gi, Uint32 key);
void KeyUp(game_info* gi, Uint3... |
6c02a9cae7bfa77246580000fa221ab4ec664a97 | 9a34a22e3c8121ba5d57f3c981640221f0cf4050 | /Yocto Bootloader/variants/bobuino/pins_arduino.h | fcfd4ca2623cc5dd41587a5d38a6dabc5a2d692a | [] | no_license | HomoElectromagneticus/Yocto_808 | 53d858d9672625839739b4c1a9c8a5121c3c9b8d | e4cc0ba945dd6ff6b9236c745bc00b862862c523 | refs/heads/master | 2021-06-27T18:56:05.695924 | 2020-02-02T02:48:20 | 2020-02-02T02:48:20 | 101,703,098 | 13 | 5 | null | 2020-02-02T02:48:22 | 2017-08-29T01:09:57 | C++ | UTF-8 | C++ | false | false | 6,224 | h | pins_arduino.h | #ifndef Pins_Arduino_h
#define Pins_Arduino_h
#include <avr/pgmspace.h>
// ATMEL ATMEGA1284P on Bobuino
//
// +---\/---+
// (D 4) PB0 1 | | 40 PA0 (D 21) AI 7
// (D 5) PB1 2 | | 39 PA1 (D 20) AI 6
// INT2 (D 6) PB2 3 | | 38 PA2 (D 19) AI 5
// P... |
a875f1a3be75fed8da644c669412e66bb09c71fa | 95616c7f826bb2ce308f29a5084a8d960b8b4360 | /json.hh | 9acd6399a84139d62bf14b408b795d6c86c373c5 | [] | no_license | jinoos/qt-screenshot | c2f231b378abf805c3379f8da098d21e10f2a498 | 75991ec69372c821279748827043705052e86f75 | refs/heads/master | 2016-09-02T03:00:24.843685 | 2014-09-15T04:27:47 | 2014-09-15T04:27:47 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 158 | hh | json.hh | #ifndef JSON_HH
#define JSON_HH
#include "common.hh"
class json
{
public:
json();
static bool validateRequest(json_t *json);
};
#endif // JSON_HH
|
5dadd441e5e313801e6835204225d5eb7cc87d47 | ed0684c575102250ad9f9779096f8e0458f3149a | /COMSC-165/la09a.cpp | 7b8cf0d88df0a031a01ecd043d1b08167e105c81 | [] | no_license | tomyouyouzhu/DVC | e3688417cfad5c7beb1e2fee0af738eade87a327 | 73d8c2b1dfc85846f26de68e7304e8f9ba0aae6c | refs/heads/master | 2023-03-29T04:43:35.044129 | 2021-03-31T05:28:40 | 2021-03-31T05:28:40 | 353,236,361 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 221 | cpp | la09a.cpp | //Objective: la09a
//Name: Kunming Zhu
//Course: COMSC-165-3015
#include <iostream>
using namespace std;
int main()
{
int a;
int *b;
cout<<"Please enter an integer: ";
cin>>a;
b=&a;
cout<<"You entered: "<<*b;
} |
b3285f233f0bbba1fc4171c6870f821c7e605cfe | cf989c712ead02de3425383d0dd2c3cb5bb32985 | /acrobat_common/test/test_lie_group_conversions.cpp | 0cc499c6b90dedaaf388281f3d4b1f95deaa3ee2 | [] | no_license | martindeegan/acrobat | ec29d880c31a7ad168b013e3723c227d03adaf46 | 159be51d8df81cbf13325e30bb2170e05603807d | refs/heads/master | 2021-02-06T16:26:36.140048 | 2020-04-21T20:19:29 | 2020-04-21T20:19:29 | 243,931,006 | 6 | 0 | null | 2021-06-21T21:10:55 | 2020-02-29T08:20:43 | C++ | UTF-8 | C++ | false | false | 3,566 | cpp | test_lie_group_conversions.cpp | #include <geometry_msgs/msg/pose.hpp>
#include <geometry_msgs/msg/transform.hpp>
#include <gtest/gtest.h>
#include <acrobat_common/lie_groups/lie_group_conversions.hpp>
using acrobat::lie_group_conversions::convert;
using acrobat::lie_groups::SE3;
using acrobat::lie_groups::SO3;
using acrobat::lie_groups::Vector3;
n... |
a9bce021e735c50bf4c6d3b1afd6b838493b7b94 | b4dc3314ebc2e8d3ba67fd777802960b4aedd84c | /brix-tools/iab/mfc/LABUnitTest/TProjectMetaData.cpp | 5c559c9cf6e3e35546036187d4b3abc8427ac17b | [] | no_license | kamilWLca/brix | 4c3f504f647a74ba7f51b5ae083bca82f70b9340 | c3f2ad913a383bbb34ee64c0bf54980562661e2f | refs/heads/master | 2021-01-18T04:08:56.435574 | 2012-09-18T16:36:32 | 2012-09-18T16:36:32 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 695 | cpp | TProjectMetaData.cpp | #include "StdAfx.h"
#include "TProjectMetaData.h"
TProjectMetaData::TProjectMetaData(void)
{
}
TProjectMetaData::~TProjectMetaData(void)
{
}
void TProjectMetaData::setProjectName(CString csProjName)
{
ProjectMetaData::setProjectName(csProjName);
}
void TProjectMetaData::setProjectDir(CString csProjDir)
{
ProjectM... |
756a254b992c9db60e76414d27079564649bcb2d | 3e7a7a1e455677a921a0a979e2fd72fbd67c3ae4 | /Communicating with Email Server/Client.cpp | b1065adf462a6440f6f5f3dad3a252277d9042f4 | [] | no_license | ghostdevhv/Networks_Assignments | 9db795d5f3a19b6ece1f8b30166ef7687de8717d | 9517a92d224ce021c57e677fb82808aebb1e91d3 | refs/heads/master | 2022-02-25T19:39:28.212125 | 2019-10-19T06:20:41 | 2019-10-19T06:20:41 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 9,691 | cpp | Client.cpp | #include <bits/stdc++.h>
#include <unistd.h>
#include <sys/socket.h> // For the socket (), bind () etc. functions.
#include <netinet/in.h> // For IPv4 data struct..
#include <arpa/inet.h> // For inet_pton (), inet_ntop ().
#include <time.h>
using namespace std;
#define BUF_SIZE 1000
const std::string currentDateTime... |
a4d1c7962b3f4514e33fffde08dfe4097af4b0ae | 17c1d4c926b3bbb702a2a232e36bb9337ca7d02c | /NGIRL.cpp | 27df04de8d2babd4ed133ea59fbda1377feabb56 | [] | no_license | venkat-oss/SPOJ | 796c51696061240980935f6fbf2fdc2f9f1ba674 | 119d0dec0733ca300bb0072d69e9e5bbcbb80c72 | refs/heads/master | 2021-10-11T05:15:50.696357 | 2019-01-22T16:52:48 | 2019-01-22T16:52:48 | 169,182,392 | 2 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,155 | cpp | NGIRL.cpp | #include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cstring>
#include <numeric>
#include <algorithm>
#include <functional>
#include <vector>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <unordered_map>
#include <list>
#include <bitset>
#include <utility>
#incl... |
642f3fc8df8ec08dab34e20f09a643781433ff39 | 9a829a3c18fc5b58937694d3ce6967dbb78f22b5 | /include/pathviz/ImageWriter.h | 46b8093e7a528f0573b24d21fdb80456ff592cb8 | [] | no_license | arpg/PathViz | d2efdfbbc1aa1d18c6acf48ba3e23011b1e39edf | e2a5538d562dc09d9ed851c148f0bdd58b9bfc5d | refs/heads/master | 2020-04-06T05:12:17.190104 | 2018-04-25T20:15:59 | 2018-04-25T20:15:59 | 55,808,902 | 1 | 3 | null | 2016-08-31T17:11:58 | 2016-04-08T20:49:39 | C++ | UTF-8 | C++ | false | false | 587 | h | ImageWriter.h | #ifndef PATHVIZ_IMAGEWRITER_H
#define PATHVIZ_IMAGEWRITER_H
#include <string>
#include <pathviz/Types.h>
#include <pathviz/Image.h>
namespace pathviz
{
class ImageWriter
{
public: ImageWriter(const std::string& outDir);
public: ~ImageWriter();
public: void Write(uint camera, double timestamp, const Image& im... |
35418555f7572a5e1edab15c6120906272c95eea | 933012ded9ea472d9065306eaa889ead5a6888d6 | /src/Magma_Utils.cpp | 8936c2c991717c7c77ca7c6133c0945921fddf2d | [] | no_license | Vasia228/Cripto | f6001ae4d651b508ea419ea465fec6a048e8d812 | 841b870985a21eb7f928547bc56dc6236167f233 | refs/heads/master | 2020-05-01T05:11:37.153907 | 2019-03-29T04:19:31 | 2019-03-29T04:19:31 | 177,294,936 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 3,816 | cpp | Magma_Utils.cpp | #include "Magma_Utils.h"
const short int K_BLOCK_REPLACEMENT_MATRIX[8][16]= {{4, 10, 9, 2, 13, 8, 0, 14, 6, 11, 1, 12, 7, 15, 5, 3},
{14, 11, 4, 12, 6, 13, 15, 10, 2, 3, 8, 1, 0, 7, 5, 9},
{5, 8, 1, 13, 10, 3, 4, 2,... |
1a111892a5dc98b59d03a31f68f0e097f91d7859 | 3a8cf7254ce2f8f79ffa730d4c72049ba198ff01 | /C++/rk2/rk2.cpp | 58212df7f87e17b7b0a2d704417a6ae18c99e4a2 | [
"MIT"
] | permissive | martinvilu/Numerical-Analysis-Examples | 3624eb212f2916cf90a2c63f64649c260d4bb67a | 6314cf5571ab2984623785f8e28b0661f7af4090 | refs/heads/master | 2023-06-10T13:47:54.163012 | 2022-12-10T19:56:11 | 2022-12-10T19:56:11 | 58,951,629 | 0 | 0 | null | 2016-05-16T17:14:45 | 2016-05-16T17:14:45 | null | UTF-8 | C++ | false | false | 2,023 | cpp | rk2.cpp | #include <iostream>
#include <iomanip>
#include <cmath>
using namespace std;
// Def dy/dx
double A(double x, double y)
{
double dydx = pow(x, 2) + y;
return dydx;
}
double B(double x, double y)
{
double dydx = pow(x, 2) + y;
return dydx;
}
// Set precision and intedentation
void print_num(float x, ... |
5c59f2b9980bd24aa8c59d1907ed036a66863f68 | 47545ed10a76b098f3c178acce91b5820954a067 | /cf/knighttournament.cpp | 2fbce7329ac2132757ab9acce1a456c696fe545e | [] | no_license | Taekyukim02/usaco | 2e5d65673ef1d64e39cc71a71ebc53dfdedd0bf7 | d8eed9db51c22f2476ae77ab779869b411f60cb3 | refs/heads/master | 2023-06-27T23:50:09.457354 | 2021-07-28T19:16:01 | 2021-07-28T19:16:01 | 390,474,413 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,665 | cpp | knighttournament.cpp | #pragma comment(linker, "/stack:200000000")
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#include <iostream>
#define MAX_N 300005
using namespace std;
long long done[MAX_N];
bool finished[4*MAX_N];
int N, M;
// lazy-fill [q1, q2] range
void fill(int n... |
162086bde17a080416334181e54d1f8c2131f1cb | f5f5351cdb424d0da2014898f362712471a53ae1 | /TouchCY8C201A0.h | 5192bd626ed297a31e57f7feffe845e3369ba084 | [] | no_license | akafugu/TouchCY8C201A0 | 36b68b3d7868c88af695673251ce3ff49c8336f3 | d69c012c494b841a28cd29c66de342feffdc0f48 | refs/heads/master | 2020-06-08T10:47:05.293924 | 2013-03-14T05:18:34 | 2013-03-14T05:18:34 | 8,768,342 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 2,557 | h | TouchCY8C201A0.h | /*
* TouchCY8C201A0 - Library for CY8C201A0 CapSense Controller
* (C) 2013 Akafugu Corporation
*
* This program is free software; you can redistribute it and/or modify it under the
* terms of the GNU General Public License as published by the Free Software
* Foundation; either version 2 of the License, or (at you... |
190da26031f6d4d89fc673d66667d69242c8a6a7 | 052b8dcd50dd3d20ebbd3b2cca990df90fa45861 | /search_server.cpp | cbb53812803412886a09b80f1e854a053c775e80 | [] | no_license | AlexanderLekhan/RedFinal | c33e9b56ca10798b5bc0ca045f770cbb5e557ff9 | 764b87dd7783d63fd6879f7d667ff7587f13f587 | refs/heads/master | 2020-04-07T21:26:57.694811 | 2018-12-05T19:32:44 | 2018-12-05T19:32:44 | 158,725,127 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 4,327 | cpp | search_server.cpp | #include <algorithm>
#include <sstream>
#include <iostream>
#include <cassert>
#include "search_server.h"
#include "iterator_range.h"
#include "profile.h"
#include "parse.h"
using namespace std;
InvertedIndex::InvertedIndex(istream& document_input)
{
for (string current_document; getline(document_input, current_... |
845ca1a74770021bf8c1bb19c5a9fd6905536456 | 63af72f27f44ba5c2cfd5fa083e99a3806515163 | /CSES/stickLengths.cpp | 4b6c0618e1569c4d0c5b9b83c8c74bb6ae810c60 | [] | no_license | mhbtz1/USACO | b3777d761c677b6ab3bab7a09575d95a6a8ade59 | 596fd7066093f937e93d408fc8d0b65ba1a2730f | refs/heads/master | 2023-04-04T09:32:33.778783 | 2021-04-17T03:29:39 | 2021-04-17T03:29:39 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 657 | cpp | stickLengths.cpp | #include <iostream>
#include <map>
#include <vector>
#include <queue>
#include <tuple>
#include <utility>
using namespace std;
typedef pair<int,int> pii;
//greedy algorithm: problem reduces to finding the maximally occurring value in the array but since q is up to 10^9, using an array isnt possible
int main(){
int... |
29e4822a96d8c1fe4f83cd85d760177ca3ddd5b6 | d8d0ece686132fcec71b272a39cb6895b78f8c14 | /Libraries/ResourceManager/RHandle.cpp | 2ac032df1ce1a10a015746bcf45d8cdc36469606 | [] | no_license | Ryxali/SpaceSumo | bce49e1eaa47542d9099e936d94cd8ceb7b35ca5 | 81da176deb2d825ec052400237c310ddd5352d0c | refs/heads/master | 2016-09-05T16:46:55.690164 | 2014-03-21T14:04:34 | 2014-03-21T14:04:34 | null | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 703 | cpp | RHandle.cpp | #ifndef SPACESUMO_RESOURCEMANAGER_RHANDLE_INCLUDED
#include "RHandle.h"
#endif
#ifndef SPACESUMO_RESOURCEMANAGER_RESOURCEHANDLER_INCLUDED
#include "ResourceHandler.h"
#endif
#ifndef SPACESUMO_RESOURCEMANAGER_STEXTURE_INCLUDED
#include "STexture.h"
#endif
#ifndef SPACESUMO_RESOURCEMANAGER_SSOUNDBUFFER_INCLUDED
#include ... |
1bac97e060c07155d7e5d9ead8d006b77722ec35 | 5bd9fefbb0120b47771627f2dd0950bcf5160a42 | /TopAnalysis/interface/VBFAnalysisCategories.h | 5fbb9b62a346792b1a351ed1c36461db7328e5cb | [] | no_license | pfs/TopLJets2015 | b55c2fef81067ff8e935a5bc8b8b2d255f4ea9aa | e0711dcaf8625ebe96bacd0e6407c3c1c3f4b867 | refs/heads/master | 2023-02-18T04:51:02.485047 | 2021-03-30T07:34:55 | 2021-03-30T07:34:55 | 43,517,945 | 4 | 39 | null | 2021-02-22T09:39:44 | 2015-10-01T20:01:48 | C++ | UTF-8 | C++ | false | false | 1,910 | h | VBFAnalysisCategories.h | #ifndef vbfanalysiscategories_h
#define vbfanalysiscategories_h
#include <iostream>
using namespace std;
namespace vbf {
TString categoryNames[]={"LowVPtLowMJJ","LowVPtHighMJJ","HighVPtLowMJJ","HighVPtHighMJJ","HighVPt","LowVPt"};
struct Category{
float EE,MM,A,LowVPt,HighVPt,LowMJJ,HighMJJ,AllMJJ;
Category... |
78bf97899207822b1539566b9ba8dcbf861a504c | bb6806e0bd52cbf26fcea2d7090ba6521c9e31ee | /TM/main.cpp | f850351cb095678cca28648f98da428e9a3faff5 | [] | no_license | wuyexkx/cpp_exercises | 25b8a08ccdf7d8c0a1ca1da7867b16535c7733aa | cf08035f7acf21ccd34cca55fcf6d7b7ab4d436a | refs/heads/master | 2021-07-12T21:19:36.710739 | 2020-08-25T08:37:26 | 2020-08-25T08:37:26 | 196,787,290 | 4 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 678 | cpp | main.cpp | #include <iostream>
#include "TicketMachine.h"
using namespace std;
// 获取私有变量的手段
// 指针和引用都可以 通过公共函数 在类的外部 修改私有变量
int main()
{
TicketMachine TM;
cout << "\ninit balance = ";
TM.showBalance();
cout << "\ninert 10 = " ;
TM.insertMoney(10);
TM.showBalance();
cout << "\ndecrase 5 = ";
TM.... |
c2327eb9ca4962ea3674f01a714241b991350889 | 2173de375327ba2dae1a9a229aa1ea30013abb7c | /DFS/dfs.cpp | b76495d029614779f741256a08f902838db93dd3 | [] | no_license | Nikhil-Wagh/Competitive-Coding | 963b01bfcbd6ca4241b8c667ae0213defe2493c8 | e055e42c265ed41d39efc532736d531b668c535c | refs/heads/master | 2020-12-04T02:48:53.093532 | 2018-08-30T16:20:38 | 2018-08-30T16:20:38 | 65,979,469 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 696 | cpp | dfs.cpp | #include "bits/stdc++.h"
using namespace std;
typedef unsigned long long ull;
typedef long long int ll;
typedef vector<long long int> vi;
typedef pair<int, int> ii;
typedef vector<ii> vii;
vector<int > a[1000009];
int visit[1000009];
void dfs(int x)
{
//cout<<x<<endl;
visit[x]=1;
for(int i=0;i<a[x].size();i... |
7ca8482880d6c91c1d2a9f01784fb5d59dafbaec | ec8944284a5fa6f0bb02f76d2ca61fe829fdf8f6 | /ui_production_lot_information_win.h | fb88b627b86374c1421efc518fafa614f479ebe0 | [] | no_license | SC-ML-cmd/BackLight_QT_0305 | 3d76884ee167fae47a4a173ef47898776c5f09eb | 7c0f02565424c49be03c4067054bbe2bb35a0f70 | refs/heads/master | 2023-04-23T12:26:05.317672 | 2021-05-19T02:52:05 | 2021-05-19T02:52:05 | 344,696,437 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 7,160 | h | ui_production_lot_information_win.h | /********************************************************************************
** Form generated from reading UI file 'production_lot_information_win.ui'
**
** Created by: Qt User Interface Compiler version 5.12.0
**
** WARNING! All changes made in this file will be lost when recompiling UI file!
*******************... |
92e8fe568513c1b84faeb8aa9eb1d375571a1980 | ce5e253b71be0bb49d239114b0c02b94f715dfe8 | /ide/vs/JaSmartObject/temp_project/test_uuid.cpp | 3924006ef544e605a35ff9dba457d1b2579f8daf | [] | no_license | PrabhuSammandam/JaSmartObject | fcc2516a685fc985cc35e49b8c8661536197727c | c9e6df7ed9ef9c0c6ff5c8e4c7ded9e86cc0fe0d | refs/heads/master | 2021-01-22T01:47:53.503329 | 2018-12-21T14:37:17 | 2018-12-21T14:37:17 | 102,236,037 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 969 | cpp | test_uuid.cpp | #include <iostream>
#include "Uuid.h"
#include "OsalRandom.h"
using namespace std;
using namespace ja_iot::base;
using namespace ja_iot::osal;
void test_uuid()
{
uint8_t buf[16];
Uuid uuid1{};
OsalRandom::get_random_bytes(buf, 16);
uuid1.set_value(buf, 16);
Uuid uuid2{ uuid1 };// copy constructor
Uuid uuid3{... |
d5116ed92f5bd7b818850f50e0c5e18283293e28 | dbbdcc830eb1cc6d85c82dbf95b0a8ca0ff1fdd1 | /opengl/engine/FramebufferObject.hpp | ff02cf6ceee9f165146b01ebebf294352277d22b | [] | no_license | VladislavKhudziakov/obj_viewer | 042108453c7dc6b44d6ef25a72fb50c50b68f0ab | b7ed06259e3ce09b88025db64fa3c10854766156 | refs/heads/master | 2020-06-02T02:23:29.804323 | 2019-06-29T21:26:43 | 2019-06-29T21:26:43 | 191,004,420 | 1 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 607 | hpp | FramebufferObject.hpp | //
// FramebufferObject.hpp
// opengl
//
// Created by Vladislav Khudiakov on 6/29/19.
// Copyright © 2019 Vladislav Khudiakov. All rights reserved.
//
#ifndef FramebufferObject_hpp
#define FramebufferObject_hpp
#include <iostream>
#include "ITexture.hpp"
#include "RenderbufferObject.hpp"
namespace Engine
{
c... |
a2841d2a28af7e0bf8e77bc2326f59a78450aa63 | a92b18defb50c5d1118a11bc364f17b148312028 | /src/prod/src/data/tstore/MergeHelper.h | eae458e547464700196dda95628cbfe1eea1409b | [
"MIT"
] | permissive | KDSBest/service-fabric | 34694e150fde662286e25f048fb763c97606382e | fe61c45b15a30fb089ad891c68c893b3a976e404 | refs/heads/master | 2023-01-28T23:19:25.040275 | 2020-11-30T11:11:58 | 2020-11-30T11:11:58 | 301,365,601 | 1 | 0 | MIT | 2020-11-30T11:11:59 | 2020-10-05T10:05:53 | null | UTF-8 | C++ | false | false | 6,212 | h | MergeHelper.h | // ------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License (MIT). See License.txt in the repo root for license information.
// ------------------------------------------------------------
#pragma once
namespace Data
... |
d60dd616bc8dac4b1955b5f546a0b1e90026fbf9 | be06b975f3a4e122f01ec8a086dade18e8504c7e | /Code/scattering3DP.h | 91ce670d72920bb9c74ce679fee6479e51e79384 | [] | no_license | trannhan/Create-meta-materials | 272dcf8581e445a164ffdd2ae556f78dc16a7b80 | 0e534cd68326d296587181fd94368023f0c4c7e3 | refs/heads/master | 2021-01-10T01:56:28.360951 | 2016-02-19T04:12:47 | 2016-02-19T04:12:47 | 52,060,712 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 18,442 | h | scattering3DP.h | #include "common.h"
///////////////////////////////////////////////////////////////////
template < class RealVector, class ComplexVector, class Complex, class Real, class Long, class Integer >
class Scattering3DP
{
public:
Integer NumParticlePerSide;
Integer NumParticlePerPlane;
... |
ba98531371d6648f1ae1ba2393335ad2f31ddae5 | 8301c6345984b2f406b7dc8b68f7afb32c324201 | /cpp/asciimation/scroll_left.hpp | 8cac74217d6989f3140f99e81fa2d39625631647 | [] | no_license | mpresident14/Projects | a9babaaf5497fad52d94fb8bc730fd24df4890c9 | 4ffb64423e60535ca032db3d631669de4999a8d6 | refs/heads/master | 2023-01-23T06:51:53.134313 | 2023-01-10T06:06:12 | 2023-01-10T06:06:12 | 105,496,055 | 0 | 1 | null | null | null | null | UTF-8 | C++ | false | false | 248 | hpp | scroll_left.hpp | #ifndef SCROLL_LEFT_HPP
#define SCROLL_LEFT_HPP
#include "asciimation.hpp"
class ScrollLeft : public Asciimation {
public:
ScrollLeft(const char *filename);
void animate();
private:
void update();
size_t currentCol_;
};
#endif
|
f2dd1d9bfbfba87430173224824344586e8f51cf | 526ee75e53a91f391e479d29b7ca1159bb45f4d3 | /practice/pointers/pointers.cpp | ac7e72d2f64591e522c8c9b5e82be96ae7ac721b | [] | no_license | j0sht/csci160 | 44714c06781d59db446b93aff85cb9f1beada90e | bd57e63aba943040fd7cc0da82c2c7da0af80632 | refs/heads/master | 2021-03-27T11:08:16.401898 | 2017-12-08T19:46:59 | 2017-12-08T19:46:59 | 103,895,193 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 1,059 | cpp | pointers.cpp | #include <cstdio>
#include <cstdlib>
int main() {
// Write a complete program that:
// 1. Declares a float* variable to store an array address
float *fs;
// 2. Declares an int variable to store the size of the array
int size;
// 3. Asks the user what array size they want and reads
// t... |
80319e11b0c3242ca88bc875a9c8c6aa6dbaea3e | f79dec3c4033ca3cbb55d8a51a748cc7b8b6fbab | /net/tigervnc/patches/patch-unix_xserver_hw_vnc_InputXKB.cc | 8ea063590ba66e4492d687be8bd3666ef0674ef9 | [] | no_license | jsonn/pkgsrc | fb34c4a6a2d350e8e415f3c4955d4989fcd86881 | c1514b5f4a3726d90e30aa16b0c209adbc276d17 | refs/heads/trunk | 2021-01-24T09:10:01.038867 | 2017-07-07T15:49:43 | 2017-07-07T15:49:43 | 2,095,004 | 106 | 47 | null | 2016-09-19T09:26:01 | 2011-07-23T23:49:04 | Makefile | UTF-8 | C++ | false | false | 3,161 | cc | patch-unix_xserver_hw_vnc_InputXKB.cc | $NetBSD: patch-unix_xserver_hw_vnc_InputXKB.cc,v 1.2 2015/07/21 21:51:39 markd Exp $
--- unix/xserver/hw/vnc/InputXKB.c.orig 2015-07-11 13:00:36.000000000 +0000
+++ unix/xserver/hw/vnc/InputXKB.c
@@ -212,7 +212,7 @@ unsigned vncGetKeyboardState(void)
{
DeviceIntPtr master;
- master = GetMaster(vncKeyboardDev, KEY... |
4058f3d969eea0d7ac99585ec9b41ad02ea15792 | cf6e89cbb246fe4135f12a7ee8392008c3c03510 | /userInterFace.hpp | 01db84ac093dbccf195cd10bfa2e364eb72fab09 | [] | no_license | Behyna/UT-Trip | 58252ac5a0d3a97cdd0ef295dd8c80d8eef112a0 | bedbe1c819fdca42793f92e33bb6e2c592cf56ee | refs/heads/main | 2023-08-08T04:10:38.041765 | 2021-09-20T12:34:38 | 2021-09-20T12:34:38 | 408,417,216 | 0 | 0 | null | null | null | null | UTF-8 | C++ | false | false | 336 | hpp | userInterFace.hpp | #ifndef USERINTERFACE_HPP
#define USERINTERFACE_HPP "USERINTERFACE_HPP"
#include "utrip.hpp"
#include "user.hpp"
class UserInterface{
public:
UserInterface();
void readData(std::string hotelsDataAddress, std::string ratingsDataAddress);
void getCommands(std::string command);
private:
Utrip* utrip;
User* u... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.