text
stringlengths
3.08k
22k
#include <stdint.h> #include "apic.h" #include "console.h" #include "cpu.h" #include "debug.h" #include "device_manager.h" #include "gdt.h" #include "interrupts.h" #include "io.h" #include "log.h" #include "scheduler.h" #include "syscall.h" static const uint16_t PIC1 = 0x20; static const uint16_t PIC2 = 0xa0; extern...
/* * Copyright 2010 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "GrRenderTargetOpList.h" #include "GrAuditTrail.h" #include "GrCaps.h" #include "GrGpu.h" #include "GrGpuCommandBuffer.h" #include "GrRenderTarget.h" #include "GrRend...
#include <assert.h> #include "TwoLightsWithStruct.h" #include <CG/cgGL.h> #include <vector> #include <GL/glut.h> #include <CgLog.h> #include <Constants.h> using namespace std; void TwoLightsWithStruct::_SetBrassMaterial() { } void TwoLightsWithStruct::_SetRedPlasticMaterial() { } void TwoLightsWithS...
#include <cstdio> #include <cctype> #include <set> #include <map> #include <algorithm> #define V_MAX 200000 #define E_MAX 400000 #define lld "%llu" typedef unsigned long long lnt; typedef bool bnt; typedef void vnt; struct buf { operator int() { register int c = getchar(), x = 0; for (;!isdigit(c); c = getchar())...
/* Copyright (c) 2005-2021 Intel Corporation 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 la...
#include "fun_helpers.h" #include <coffee/core/CApplication> #include <coffee/core/CDebug> #include <coffee/core/CArgParser> cstring git_program = "git"; cstring cmake_program = "cmake"; DataSet create_item(cstring file) { /* Clear all structures */ DataSet repo = {}; BuildEnvironment& repo_data = repo....
#include "stdafx.h" #define DCS #include "dcs.h" void calc_addr(int address) { int start; int mask,bits; /* Thanks to <NAME>, The method to calculate the error correction info on the address bars is now known. As a result it is now possible to calculate what should be in the long and sh...
/* * Copyright (c) 2015, 2016, 2017, 2018, 2019, 2020, Intel Corporation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * * Redistributions of source code must retain the above copyright * notice,...
/**************************************************************************** * * Copyright (c) 2021 PX4 Development Team. 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. Redistri...
/* Copyright 2002-2006 <NAME>, All Rights Reserved */ #include "d.hpp" #include "mkdparse.hpp" extern D_ParserTables parser_tables_dparser_gram; #define SIZEOF_MY_PARSE_NODE 100 /* permit test cases up to this size */ static int save_parse_tree = 1; static int partial_parses = 0; static int fixup = 1; static int ...
#pragma once #include <condition_variable> #include <exception> #include <memory> #include <mutex> #include <optional> #include <thread> #include <utility> #include <variant> namespace ecole::utility { /** * Asynchronous cooperative interruptable code execution. * * Asynchronously execute a piece of code in an in...
/* Handles socket events from the vibhub server */ #include "ApiClient.h" #include "Configuration.h" #include "StatusLED.h" #include "UserSettings.h" #include "FirmwareUpdate.h" #include <ArduinoJson.h> #include "VhWifi.h" ApiClient::ApiClient(void) : _socket(), _connected(false), _running(fals...
/* --------------------------------------------------------------------------- ** This software is in the public domain, furnished "as is", without technical ** support, and with no warranty, express or implied, as to its usefulness for ** any purpose. ** ** v4l2compress.cpp ** ** Read YUV from a V4L2 capture -> compr...
/* ------------------------------------------------------------------------- This is the function file for the class exact inference. ------------------------------------------------------------------------- */ #include <iostream> #include <vector> #include <string> #include <assert.h> #include <mkl.h> #include <omp.h>...
#include <windows.h> #include <stdio.h> #include <string> #include <vector> #include <map> #include <algorithm> #include <sstream> #include <iomanip> typedef struct { UINT format; char *name; } FORMATDATA; FORMATDATA formatlist[] = { {CF_TEXT, "ANSI text"}, {CF_BITMAP, "Handle to a bitmap (GDI object)"}, {CF_MET...
// An example of face services based on OpenCV camera streams. // // Author: <NAME> (<EMAIL>) // // Copyright (c) 2021 Sensory, Inc. // // 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 with...
/* * This source file is part of an OSTIS project. For the latest info, see http://ostis.net * Distributed under the MIT License * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT) */ #include "gwf_translator.h" #include "tinyxml/tinyxml2.h" #include "base64/base64.h" #include "util...
#include <stdio.h> #include <string.h> #include <ctype.h> #include <raimd/md_dict.h> #include <raimd/enum_def.h> using namespace rai; using namespace md; void EnumDef::clear_enum( void ) noexcept { while ( ! this->acro.is_empty() ) delete this->acro.pop(); while ( ! this->map.is_empty() ) delete this->map...
// Copyright (c) 2013-2015 <NAME> // License: Academic Free License ("AFL") v. 3.0 // AFL License page: http://opensource.org/licenses/AFL-3.0 #include <cmath> #include <chrono> #include <SFML/Graphics.hpp> using namespace std; using namespace sf; // This is a modern C++11 `typedef` replacement: // we just defined a...
#include "TerminalDialog.h" #include "QUtauStrCore.h" using namespace Utau; TerminalDialog::TerminalDialog(QString dir,QWidget *parent) : BaseDialog(parent), m_workingDir(dir), m_batchFile(FILE_NAME_TEMP_BATCH) { init(); } TerminalDialog::TerminalDialog(QString dir, QString temp,QWidget *parent) : BaseDi...
/* * Copyright (c) 2020 International Business Machines * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause * * Authors: <NAME> (<EMAIL>, <EMAIL>) * */ // vim: set expandtab softtabstop=4 tabstop:4 shiftwidth:4: // A test for "test_util/spdk.hh" // // write a bunch of data into a device // re...
/* Copyright (c) 2015, Simone 'evilsocket' Margaritelli Copyright (c) 2015, Jorrit 'Chainfire' Jongma Copyright (c) 2019, <NAME>, Embedded Software Solutions See LICENSE file for details Modifications: -- Adapted this code from Android to Linux -- Linking and loading for Linux differs from Andro...
/* * LEGAL NOTICE * This computer software was prepared by Battelle Memorial Institute, * hereinafter the Contractor, under Contract No. DE-AC05-76RL0 1830 * with the Department of Energy (DOE). NEITHER THE GOVERNMENT NOR THE * CONTRACTOR MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY * LIABILITY FOR THE USE OF...
/* -*-c++-*- */ /* osgEarth - Dynamic map generation toolkit for OpenSceneGraph * Copyright 2008-2010 Pelican Mapping * http://osgearth.org * * osgEarth 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 Foundat...
// // YDMmapLogger.cpp // YDKitDemo // // Created by wangyuandong on 2021/9/22. // #include "YDMmapLogger.h" #include <fcntl.h> #include <sys/errno.h> #include <sys/mman.h> #include <sys/stat.h> #include <string.h> #include <sys/mount.h> /** 获取磁盘信息需要的文件目录 在PC端或iOS模拟器的架构中,获取磁盘信息,需要的文件目录是 "/" 在移动端iOS系统中,获取磁盘信息的...
#include <fmt/color.h> #include <fmt/format.h> #include <fmt/ranges.h> #include <glog/logging.h> #include <mynteyed/camera.h> #include <mynteyed/utils.h> #include <boost/algorithm/string.hpp> #include <boost/filesystem.hpp> #include <cxxopts.hpp> #include <iostream> #include <opencv2/core.hpp> #include <opencv2/highgui...
#include "CalibEngine.h" #include "Logger.h" #include "CvUtil.h" #include <experimental/filesystem> namespace fs = std::experimental::filesystem; static const string DETECTED_CHESSBOARD_PATH = "./outimages/calib/chessboard"; CalibEngine::CalibEngine() { } CalibEngine::CalibEngine(const CalibEngine& orig) { } Calib...
// $Header: /nfs/slac/g/glast/ground/cvs/CalXtalResponse/src/CalCalib/IntNonlinMgr.cxx,v 1.11 2008/01/22 20:14:47 fewtrell Exp $ /** @file @author Z.Fewtrell */ // LOCAL #include "IntNonlinMgr.h" // GLAST #include "CalibData/DacCol.h" // EXTLIB // STD #include <algorithm> using namespace CalUtil; using namespac...
// // Copyright (C) 2015 The Android Open Source Project // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by app...
////////////////////////////////////////////////////// // // server.cpp // ////////////////////////////////////////////////////// /* LICENSE: BEGIN =============================================================================== @author <NAME> @email <EMAIL> @source https://github.com/shan-anand @brief HTTP library imp...
/* Copyright(c) 2010-2017 Intel Corporation. Copyright(c) 2016-2018 Viosoft Corporation. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the ...
/* The MIT License (MIT) Copyright (c) 2016 <NAME> <<EMAIL>> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy,...
#include "Precomp.h" #include "MeshRender.h" #include "UObject/UMesh.h" #include "UObject/UTexture.h" #include "UObject/UActor.h" #include "UObject/ULevel.h" #include "RenderDevice/RenderDevice.h" #include "Engine.h" #include "UTRenderer.h" #include "Window/Window.h" void MeshRender::DrawMesh(FSceneNode* frame, UActo...
// Copyright 2021 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 "components/translate/core/language_detection/ngram_hash.h" #include <string> #include "components/translate/core/language_detection/ngram_hash_...
//===-- RegisterContextPOSIX_arm.cpp --------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===---------------------------------------------------------...
/* * Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/> * Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/> * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software ...
/* This file is part of cpp-ethereum. cpp-ethereum is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. cpp-ethereum is di...
#include <specific/standard.h> #include <keycode/keycode.h> #include "window.h" #include "callbacks.h" void window::dispatch_key(int key, bool pressed, win_key_info ki) { //PRINT(DBG_RED, "[%s] %i (%i | %i | %i | %i | %i | %i)", pressed ? "WM_KEYDOWN" : "WM_KEYUP", key, ki.repeat_count, ki.scan_code, ki.extended, k...
#include "coordinates.h" #include <math.h> using namespace std; namespace geom = boost::geometry; TileCoordinates_::TileCoordinates_() { this->x = 0; this->y = 0; } TileCoordinates_::TileCoordinates_(TileCoordinate x, TileCoordinate y) { this->x = x; this->y = y; } double deg2rad(double deg) { return (M_PI/180....
// keplers_goat_herd.cpp -- <NAME>, 2021. // Solve Kepler's equation with a variety of numerical techniques for an array of mean anomalies // // Timing is performed using the `chrono' package. #include <math.h> #include <stdlib.h> #include <stdio.h> #include <string.h> #include <assert.h> #include <complex> #include <...
#include "fuzz.h" #define MODULE_NAME "Type2 Read/Write" enum { SUB_TYPE_PRESENCE_CHECK, SUB_TYPE_READ, SUB_TYPE_WRITE, SUB_TYPE_SECTOR_SELECT, SUB_TYPE_SET_TAG_READONLY, SUB_TYPE_WRITE_NDEF, SUB_TYPE_READ_NDEF, SUB_TYPE_DETECT_NDEF, SUB_TYPE_LOCATE_TLV, SUB_TYPE_FORMAT_NDEF, SUB_...
#include <iostream> #include <cstring> #include "GraphicsManager.hpp" #include "SceneManager.hpp" #include "IApplication.hpp" #include "IPhysicsManager.hpp" #include "ForwardGeometryPass.hpp" #include "ShadowMapPass.hpp" #include "BRDFIntegrator.hpp" using namespace My; using namespace std; int GraphicsManager::Initi...
#include "subroutines.hpp" #include "../input.hpp" #include "../components/player.hpp" #include "../blib/bmath.hpp" #include <vector> #ifdef CLIENT #include "../samples.hpp" #endif static const float basegravity = 720; static const float max_gravity = 2000; static const float maxspeed = 300; stat...
#include <Cabana_Core.hpp> #include <Cabana_AoSoA.hpp> #include <Cabana_Sort.hpp> // is this needed if we already have core? #include <cstdlib> #include <iostream> #include "types.h" #include "helpers.h" #include "fields.h" #include "accumulator.h" #include "interpolator.h" #include "uncenter_p.h" #include "push.h...
#include "proto/options.pb.h" #include "sif/costconstants.h" #include "test.h" #include <iostream> #include <string> #include <valhalla/baldr/rapidjson_utils.h> #include <vector> #include "loki/worker.h" #include "midgard/logging.h" #include "odin/worker.h" #include "thor/worker.h" #include "sif/costfactory.h" #incl...
#include "askpassphrasedialog.h" #include "ui_askpassphrasedialog.h" #include "guiconstants.h" #include "walletmodel.h" #include <QMessageBox> #include <QPushButton> #include <QKeyEvent> #include <QBitmap> #include <QDebug> extern bool fWalletUnlockStakingOnly; AskPassphraseDialog::AskPassphraseDialog(Mode mode, QW...
#include "soar_predefine.h" #include "soar_error_code.h" #include "soar_services_info.h" #include "soar_frame_command.h" #include "soar_zerg_frame.h" #include "soar_zerg_sndrcv_zulu.h" /****************************************************************************************** class Zulu_SendRecv_Package **************...
#include <pybind11/pybind11.h> #include <pybind11/numpy.h> #include <iostream> #include <set> #include <string> #include <assert.h> #include "segAlgorithm.h" #include "gaussianFilter.h" namespace py = pybind11; class GraphSeg { public: GraphSeg(py::array_t<double, py::array::c_style | py::array::forcecast> inImg); ...
//****************************************************************************** // Diffuse.cpp Copyright(c) 2003 <NAME>, All Rights Reserved. //****************************************************************************** // Permission to use this code if and only if the first eight lines are first. // This code is o...
//####### Test module for Quantum Synchrotron tables ########################### //Define Module name #define BOOST_TEST_MODULE "phys/quantum_sync/tables" //Include Boost unit tests library & library for floating point comparison #include <boost/test/unit_test.hpp> #include <boost/test/tools/floating_point_compariso...
#ifdef HAVE_CONFIG_H #include <config.h> #endif #include <fstream> #include <unistd.h> #include <sys/types.h> #include <pwd.h> #include <grp.h> #include <signal.h> #include <errno.h> #include <glibmm/fileutils.h> #include <glibmm/miscutils.h> #include <arc/ArcConfig.h> #include <arc/IniConfig.h> #include <arc/ArcLoca...
#include <bits/stdc++.h> using namespace std; namespace polygon { typedef double ftype; double DEG_to_RAD(double d) { return d * M_PI / 180.0; } double RAD_to_DEG(double r) { return r * 180.0 / M_PI; } struct point2d { ftype x, y; point2d() {} point2d(ftype x, ftype y) : x(x), y(y) {} point2d& opera...
// Copyright 2017 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
#include "Globals.h" #include "Application.h" #include "TextureImporter.h" #include "Glew/include/glew.h" #include "Devil/include/il.h" #include "Devil/include/ilu.h" #include "Devil/include/ilut.h" #include "ImGui/imgui.h" #pragma comment (lib, "Devil/libx86/DevIL.lib" ) #pragma comment (lib, "Devil/libx86/ILU.lib" )...
#include "demo.hpp" #define __FPS__ 12 const static mat4 I = mat4(1); class KnotSpirit: public Spirit { private: Mesh *__knot; mat4 __base; float __rotate_speed; float __min_scale, __max_scale; float __scale_speed; float __scale; public: KnotSpirit(Mesh *knot, const vec3 &position, float size): __knot(knot),...
// Copyright 2013 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. // Test application that simulates a cast sender - Data can be either generated // or read from a file. #include <cmath> #include "base/at_exit.h" #incl...
/*------------------------------------------------------------------------------ CGMF-1.1 Copyright TRIAD/LANL/DOE - see file LICENSE For any questions about CGMF, please contact us at <EMAIL> -------------------------------------------------------------------------------*/ /*! @file cgmfEvents_capi.cpp \brie...
/** * Sketch WiFiWeatherAndClockAuto.cpp * Author 2019-02-15 <NAME> * Purpose Connects via WLAN to openWeatherMap.org and fetches the weather data * in JSON format, parses the strings with the JSON parser and displays * the data on the integrated OLED display of the...
// Ŭnicode please #include <cstdlib> #include <GLFW/glfw3.h> #include <glm/glm.hpp> #include <glm/ext.hpp> #include "sys_font.h" #include "primitive_mesh.h" const int kWidth = 300; const int kHeight = 300; using namespace glm; using namespace haruna; using namespace haruna::gl; glm::mat4 g_proj_mat; glm::mat4 g_vie...
#include <iostream> #include <fstream> #include <string> #include <opencv2/core/core.hpp> #include <opencv2/core/mat.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <opencv2/highgui/highgui.hpp> #include <math.h> int shift(cv::Mat frame1, int height, int width, cv::Mat frame2) //--------------------------------...
#include "MyEditor.h" #include "MyEditorCommon.h" #include "MyEditorHandlerLin.h" #include "MyEditorCallbacks.h" #include "keywords.h" #include "ScintillaSend.h" #include <gtk/gtk.h> #include <gdk/gdkkeysyms.h> #include "bookcoloured.xpm" #include <Scintilla.h> #include <SciLexer.h> #define PLAT_GTK 1 #include <Sci...
#include <stdio.h> #include <iostream> #include <boost/shared_ptr.hpp> #include <sys/time.h> #include <lcm/lcm-cpp.hpp> #include "lcmtypes/bot_core.hpp" #include "lcmtypes/drc/atlas_state_t.hpp" #include "lcmtypes/drc/atlas_command_t.hpp" #include "lcmtypes/drc/robot_state_t.hpp" #include "lcmtypes/drc/utime_two_t.hp...
/* -*- Mode:C++; c-basic-offset:8; tab-width:8; indent-tabs-mode:t -*- */ /* * Copyright (c) 1990-1997 Regents of the University of California. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are m...
// Copyright (c) <year> Your name #include "engine/easy.h" #include "engine/bitstream.h" #include <nmmintrin.h> using namespace arctic; // NOLINT using namespace arctic::easy; // NOLINT Si32 g_ser = 0; double g_prev_time; double g_cur_time; Font g_font; double g_displayed_dt = 1.0/60.0; double ...
#include "promethee_fast.h" #include "../normalize.h" #include <iostream> #include "../inputreader.h" #include "../outputwriter.h" #include "../plibtiff.h" #include "../parse_directory.h" #include "../parse_args.h" void PrometheeFast::init(vector<string> args, int divideBy){ this->divideBy = divideBy; // Get ty...
#include "dialog.h" #include "ui_dialog.h" #include "mainwindow.h" /*! * \brief Dialog::Dialog Constructor */ Dialog::Dialog(QWidget *parent) : QDialog(parent), ui(new Ui::Dialog) { ui->setupUi(this); scene = new QGraphicsScene(this); ui->graphicsView->setScene(scene); ui->graphicsView->scene...
//---------------------------------- // (c) Reliable Software 1997 - 2007 //---------------------------------- #include "precompiled.h" #include "Diff.h" #include "DiffRecord.h" #include "CluSum.h" #include "LineCounter.h" #include "ListingWin.h" #include <Ctrl/ProgressMeter.h> #include <File/MemFile.h> #include <Ex/...
//===--- Triple.cpp - Target triple helper class --------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
/* * Copyright (c) 2019 Opticks Team. All Rights Reserved. * * This file is part of Opticks * (see https://bitbucket.org/simoncblyth/opticks). * * 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 ...
/* #define IRQ_RISING_EDGE PORT_PCR_IRQC(9) #define ENABLE_PIN PORT_PCR_MUX(1) #define PULL_UP PORT_PCR_PE_MASK | PORT_PCR_PS_MASK #define PIN_D2 (1<<4) #define PIN_D3 (1<<12) DigitalOut d3(D3); void sw2_release(void) { d3 = 1; d3 = 0; FPTA->PDOR|=(PIN_D3)...
/* -*-c++-*- * Copyright (C) 2008 <NAME> <<EMAIL>> * * This library is open source and may be redistributed and/or modified under * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or * (at your option) any later version. The full license is in LICENSE file * included with this distributi...
#include "DFA.h" #include <string> using namespace std; using namespace boost; //update test DFA::DFA(Cudd* m){ mgr = m; //ctor } DFA::~DFA() { //dtor delete mgr;// = NULL; } void DFA::initialize(string filename, string partfile){ //ctor read_from_file(filename); if(DFAflag == true) { c...
/**************************************************************************** * Copyright (c) 2019, CEA * 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 retai...
// Author: <NAME> (skydes) #include "colmap/base/reconstruction.h" #include "colmap/base/image_reader.h" #include "colmap/base/camera_models.h" #include "colmap/util/misc.h" #include "colmap/feature/sift.h" #include "colmap/feature/matching.h" #include "colmap/controllers/incremental_mapper.h" #include "colmap/exe/fea...
// Copyright (c) 2010 <NAME> // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "assert.h" #include "chainparams.h" #include "main.h" #include "util.h" #include <boos...
// // Created by Administrator on 2020/10/14 0014. // #include <opencv2/imgcodecs.hpp> #include "openpose.h" #include "opencv2/imgproc.hpp" #include "GraphParam.h" #include "log.h" #include "ext.h" #define getPosePairs(type, op)\ switch (type){ \ case OPENPOSE_TYPE_MPI: { \ const static int PO...
// http://poj.org/problem?id=3532 /* 通らないのでもう寝ます。 結果:G++ Runtime Error、C++ Wrong Answer Runtime Errorだから、多分0の割り算がまだ出ている。 以下のケースで、できるだけ潰したと思うのですが、これ以上原因がもう思いつきませんでした。 Sample Input 1 4 6 1 2 1 1 3 1 1 4 1 2 3 1 2 4 1 4 3 1 Sample Output 1 0.50 Sample Input 2 4 4 1 3 1 1 3 1 3 4 1 1...
///////////////////////////////////////////////// // Includes #include "sch.h" ///////////////////////////////////////////////// // Schedule-Task TSchTask::TSchTask(const int& _TaskId, const TStrV& _DimObjNmV, const TSecTm& _StartTm, const TSecTm& _EndTm): TaskId(_TaskId), DimObjNmV(_DimObjNmV), StartTm(_StartTm), ...
// // Copyright (c) 2017 Regents of the SIGNET lab, University of Padova. // 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 copyrigh...
#include "cgstd.h" #include "cgdebug.h" #include <typeinfo> static const char *ccSym( int cc ){ switch( cc ){ case CG_EQ:return "EQ"; case CG_NE:return "NE"; case CG_LT:return "LT"; case CG_GT:return "GT"; case CG_LE:return "LE"; case CG_GE:return "GE"; case CG_LTU:return "LTU"; case CG_GTU:return "GTU"; ...
/** \file \author <NAME> */ #include "PipeBuilderWidget.h" #include <cnoid/Button> #include <cnoid/EigenTypes> #include <cnoid/EigenUtil> #include <cnoid/MainWindow> #include <cnoid/SpinBox> #include <cnoid/stdx/filesystem> #include <cnoid/YAMLWriter> #include <QColorDialog> #include <QGridLayout> #include <QLab...
/****************************************************************************** Copyright (c) 2000 Microsoft Corporation Module Name: ProtocolWrap.cpp Abstract: This file contains the implementation of the CPCHWrapProtocolInfo class, that is used to fix problems in the MS-ITS protocol. Revisi...
/* Copyright (c) 2018 <NAME> <<EMAIL>> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribut...
/* THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS IN USING, DISPLAYING, A...
// Assignment 02 - Blackjack // Command line game that plays a simplified version of blackjack where we don’t worry about aces and face cards #include <ctime> #include <cstdlib> #include <iostream> using namespace std; int get_random_seed(); int get_random_number(); int get_user_cards(); int get_new_card(); int ch...
#include "../include/save_file.hpp" #include "../include/configurations.hpp" #include <iostream> #include <cstdio> #include <string> #include <stdexcept> #include <cmath> #include <limits> namespace detail { enum class type_tag : int { boolean = 1, double_number = 3, string = 4, ta...
// Copyright 2014 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com #include "fpdfsdk/pwl/cpwl_font_map.h" #include <utility> #include "core/fpd...
// BSD 3-Clause License // Copyright (c) 2017, <NAME> // All rights reserved. // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source code must retain the above copyright notice, this // list o...
#include "PCH.hpp" #include "Renderer.hpp" #include "Geometry/Primitive.hpp" #include "Distribution/Function.hpp" #include "Material/Material.hpp" #include <lkCommon/Utils/Logger.hpp> #include <lkCommon/Utils/Pixel.hpp> #include <lkCommon/Math/Utilities.hpp> #include <lkCommon/Math/Random.hpp> #include "SurfaceDistr...
/****************************************************************************/ // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo // Copyright (C) 2001-2020 German Aerospace Center (DLR) and others. // This program and the accompanying materials are made available under the // terms of the Ecli...
/* OneLoneCoder.com - Sprite Editor "Stop Crying about Paint ya big baby" - @Javidx9 License ~~~~~~~ Copyright (C) 2018 Javidx9 This program comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to redistribute it under certain conditions; See license for details. Original works located at: h...
#include "../../lib/prelude.h" #include "Company.h" #include "../../lib/string/String.h" #include "../../lib/types.h" #include "../utils/format_money.h" #include "../cli/CliQuestioner.h" using nhflib::Vector; using nhflib::String; using exchange::Order; const String &company::Company::get_name() const noexcept { ret...
#include "Model.hpp" Model::Model(const char *file, unsigned int instancing, std::vector<glm::mat4> instanceMatrix) { std::string text{get_file_contents(file)}; JSON = json::parse(text); Model::file = file; data = getData(); Model::instancing = instancing; Model::instanceMatrix ...
// // Created by <NAME> on 10/3/20. // #include "ObjectDetector.h" #include <opencv2/core.hpp> #include <opencv2/ml.hpp> #include <opencv2/xfeatures2d.hpp> #include <boost/filesystem.hpp> #include "opencv2/viz.hpp" #include <opencv2/opencv.hpp> #include <opencv2/core/cvstd.hpp> using namespace cv; using namespace cv:...
#include <iostream> #include <unistd.h> #include "../common_src/Socket.h" #include "../common_src/GameListItem.h" #include "../common_src/MapListItem.h" #include "./communication/message.h" #include "../common_src/LobbyStatusData.h" #include "../common_src/ClientMessage.h" #include "./games/client_game_status.h" #def...
/********************************************************************** Outputs.cpp COPYRIGHT (c) 2013-2016 <NAME> Part of DCC++ BASE STATION for the Arduino **********************************************************************/ /********************************************************************** DCC++ BASE STA...
/* * Copyright (c) 2019 Codethink Ltd. * * Permission is hereby granted, free of charge, to any person * obtaining a copy of this software and associated documentation * files (the "Software"), to deal in the Software without * restriction, including without limitation the rights to use, copy, * modify, merge, p...
#include <cmath> #include <cstdio> #include <map> #include <set> #include <vector> #include <iostream> #include <algorithm> #include <sstream> #include <cassert> using namespace std; string trim(string s) { string t = ""; int end = (int)s.size() - 1; for (; end >= 0; end--) { if (s[end] != ' ') ...
//============================================================================ // Instituto Superior Tecnico // Analise e Sintese de Algoritmos // 2 Projecto // // Date: : Abril, 2014 // Author : <NAME>, 69769 // Author : <NAME>, 70993 // Version : 1.0.7.0 // Description : //==========================...
// // DataExporter.cpp // // Created by <NAME> on 16-06-27. // Copyright © 2016 <NAME>. All rights reserved. // #include "point_cloud_export.h" #include <stdio.h> #include <string> #include "opencv2/core/core.hpp" #include <fstream> #include <iomanip> #include <iostream> #include <algorithm> namespace { // Deter...