text
stringlengths
3.08k
12.5k
#include <iostream> #include <allegro5/allegro.h> const float FPS = 60; const int SCREEN_W = 640; const int SCREEN_H = 480; const int BOUNCER_SIZE = 32; //enum cria constantes 0, 1, 2, 3... com nomes; serao usadas para acessar as posicoes do vetor de status enum MYKEYS { KEY_UP, KEY_DOWN, KEY_LEFT, KEY_RIGHT }; i...
/* * The MIT License (MIT) * * Copyright (c) 20014 <NAME> <<EMAIL>> * * mapframe.cpp * This file is part of the QSimpleSpatial. * * 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 restr...
#include "simulation/bvh.h" #include "simulation/ogh.h" #include "simulation/game.h" #include "simulation/field.h" #include "simulation/curve.h" #include "simulation/geometry.h" #include "mechanics/drive.h" #include "linear_algebra/math.h" #include "misc/io.h" #include "misc/timer.h" #include "misc/graph.h" #includ...
#include "open_cdm_adapter.h" #include <gst/gst.h> #include <gst/base/gstbytereader.h> #include <b_secbuf.h> #include <gst_brcm_svp_meta.h> #include <assert.h> #include "Trace.h" struct RPCSecureBufferInformation { uint32_t type; size_t size; void* token; void* token_enc; }; static const uint8_t na...
#include <iostream> #include <iomanip> #include <string> #include <fstream> #include "../shared/sml_shared.h" using std::cin; using std::cout; using std::endl; using std::setw; using std::left; using std::right; using std::ifstream; using std::setfill; #define CODE 0x1 #define DATA 0x2 #define STRI 0x4 void define_...
/********************************************************************* * stareMapping.cc * * * * Created on: 2019-07-31 * * * * Author: <NAME> * * ********************************************************************/ #include "...
// // Created by Arnold on 30.01.2018. // #include "maze.h" #include <chrono> #include <queue> #include <array> #include <algorithm> void maze2::RandomizeMaze(maze2::Maze &m) { struct StackItem { StackItem(maze2::pos_t pos) : pos_{pos} { std::random_shuffle(dir_.begin(), dir_.end()); }...
/* * CcGPUCtrl - ConsCAD utility library (Reduced, Limited functions Library) * * Copyright (c) 2019 <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 r...
#include <bits/stdc++.h> using namespace std; struct LinkCut { struct node{ int p = 0, ch[2] = {0, 0}, pp = 0, sz = 0, val = 0, dp = 0; bool flip = 0; }; vector<node> T; LinkCut(int n): T(n+1){ } int dir(int x, int y){ //which ch[?] y is of x return T[...
/* Rev:$Revision: 1.1 $ */ /****************************************************************************** * Copyright 1998-2008 NetBurner, Inc. ALL RIGHTS RESERVED * Permission is hereby granted to purchasers of NetBurner Hardware * to use or modify this computer program for any use as long as the * resulta...
#include "fractal.h" #include <SFML/Graphics.hpp> #include <opencv2/opencv.hpp> #include <string> #include <vector> #define FRACTAL_WIDTH 1920 #define FRACTAL_HEIGHT 1080 struct Bounds { fractal_dtype r_min; fractal_dtype r_max; fractal_dtype i_min; fractal_dtype i_max; int iterations; }; void d...
#include "TCPServer.hpp" #include "handlers/Handler.hpp" TCPServer::TCPServer() { epoll_fd_ = -1; signal_fd_ = -1; tcp_fd_ = -1; running_ = false; } TCPServer::~TCPServer() { if (epoll_fd_ != -1) close(epoll_fd_); if (signal_fd_ != -1) close(signal_fd_); if (tcp_fd_ != -1) close(tcp_fd_); } void ...
// Copyright (C) 1997-2018 by <NAME> <<EMAIL>> // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include <gtest/gtest.h> #include <standards/triangular.hpp> void test(standards::triangular const& lat) { EXPECT...
/* * Copyright (c) <NAME> 2013. * The following source file belongs to the open-source project Pikifen. * Please read the included README and LICENSE files for more information. * Pikmin is copyright (c) Nintendo. * * === FILE DESCRIPTION === * Bridge class and bridge related functions. */ #include "bridge.h" ...
#include <cstdio> #include <iostream> #include <cmath> #include <algorithm> #include <cstring> #include <map> #include <set> #include <vector> #include <utility> #include <queue> #include <stack> #define sd(x) scanf("%lld",&x) #define sd2(x,y) scanf("%lld%lld",&x,&y) #define sd3(x,y,z) scanf("%lld%lld%lld",&x,&y,&z) ...
#include "ProfTreeModel.h" #include "ProfTreeItem.h" #include "io/ProfFile.h" ProfTreeModel::ProfTreeModel(const std::shared_ptr<ProfFile>& ctx) : mContext(ctx) { setupData(); } ProfTreeModel::~ProfTreeModel() { } QVariant ProfTreeModel::data(const QModelIndex& index, int role) const { if (!index.isValid()) ret...
/***************************************************************************** Copyright (C) 2011 <NAME> 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 li...
#include "tpl_websocket.h" #include "tpl_command.h" #include "tpl_system.h" #ifdef IS_ESP32CAM #include "tpl_esp_camera.h" #endif WebSocketsServer webSocket = WebSocketsServer(81); void (*tpl_process_func)(DynamicJsonDocument * json) = NULL; void webSocketEvent(uint8_t num, WStype_t type, uint8_t *payload, ...
// // spedprique.cxx // Priority queue functions for ppd edge // // Copyright (c) 2000 <NAME> // // This software is released under the MIT License. // http://opensource.org/licenses/mit-license.php // #include "StdAfx.h" #if defined(_DEBUG) && defined(_WINDOWS) #define new DEBUG_NEW #undef THIS_FILE static char THIS...
#include <opencv2/opencv.hpp> #include <fstream> #include <iostream> #include <string> #include <sstream> using namespace std; using namespace cv; #include "mousedraw.h" #define resulttxt "D:/project/HOG/t10k-images-bmp/t10k-images/result.txt" void buildImg() { BoxExtractor box; Mat res =...
#include "psrdada_cpp/multilog.hpp" #include "psrdada_cpp/raw_bytes.hpp" #include "psrdada_cpp/dada_output_stream.hpp" #include "psrdada_cpp/dada_sync_source.hpp" #include "psrdada_cpp/cli_utils.hpp" #include "boost/program_options.hpp" #include <sys/types.h> #include <iostream> #include <string> #include <sstream> #...
#include "IOMTConsoleApp.h" #include <ctime> using namespace std; IOMTConsoleApp::IOMTConsoleApp(SHORT screenWith, SHORT screenHeight, const SHORT numOfSBO) : mScreenWidth(screenWith) , mScreenHeight(screenHeight) , mInOldMode(0) , mhIn(0) , mNumOfSBO(numOfSBO) , mhOuts(nullptr) , mpScree...
#include "fo_buffer.h" #include "fo_sniffer.h" #include "rtc.h" #include "fo_data.h" /****************************************************************************** * Add packet to buffer ******************************************************************************/ RetResult FoBuffer::add_packet(FoDecodedPacket *pac...
#include "MotorController.h" //#define ROLL_PITCH_SEPARATE_PID #include "MonitorMsg.h" float ROLL_KD = 0.03f; float ROLL_KP = 0.15f; float ROLL_KI = 0.00005f; #define PITCH_KD ROLL_KD #define PITCH_KP ROLL_KP #define PITCH_KI ROLL_KI /* static const float ROLL_KD = 0.03f; static const float ROLL_KP = 0.15f; sta...
/** control_sil_node.cpp * @author <NAME> * * @email <EMAIL> * * @desc The source code file for Control SIL's ROS node. * */ #include "control_sil/control_sil_node.h" using namespace fusionad::control::sil_test; SIL_control_node::SIL_control_node() { initial_position.position.x = 0; initial_position.p...
#include "odesim.h" int DynamicSys::getN_P()const { return N_P; } DynamicSys::DynamicSys() { variables = nullptr; Pnums = nullptr; p_constant = nullptr; p_constant_part = nullptr; N_P = 0; }; DynamicSys::DynamicSys(shared_ptr<Variables> vars) { Pnums = make_shared<vector <Expression...
#include "disassembler.h" #include "cpu.h" #include <QDebug> #define INS_STR_BUFF_LEN 80 char *str_replace(char *orig, char const *rep, char const *with) { char *result; // the return string char *ins; // the next insert point char *tmp; // varies int len_rep; // length of rep (the strin...
// Copyright 2016 The Fuchsia Authors // // 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...
/**************************************************************************** * * Copyright (c) 2019 Auterion AG. 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 o...
/* * d.cpp * Copyright (C) 2021 <NAME> <<EMAIL>> * * 「Two roads diverged in a wood,and I— * I took the one less traveled by, * And that has made all the difference.」 * * Distributed under terms of the GNU AGPLv3+ license. */ #include <cstdio> #include <cstdlib> #include <cstring> #include <vector> #include <...
/* Copyright (c) <2014> <<NAME>, Vienna University of Technology> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the limitations in the disclaimer below) provided that the following conditions are met: * Redistributions of ...
/* Four_Digital_Display.cpp This is a Suli-compatible Library. 2014 Copyright (c) Seeed Technology Inc. All right reserved. Author:Loovee 2014-4-9 This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as publ...
/* SPDX-FileCopyrightText: 2016 <NAME> <<EMAIL>> SPDX-License-Identifier: MIT */ #include "categoryaggregationmodel.h" #include <model/timeaggregationmodel.h> #include <core/sample.h> #include <QDebug> #include <QSet> #include <algorithm> #include <string.h> using namespace KUserFeedback::Console; Categor...
#include "../../hypro/datastructures/HybridAutomaton/State.h" #include "../../hypro/algorithms/reachability/FirstSegment.h" #include "../../hypro/datastructures/HybridAutomaton/Location.h" #include "../../hypro/representations/GeometricObjectBase.h" #include "../../hypro/util/tuple_expansion/nth_element.h" #include ".....
// // Created by monty on 23/11/15. // #include <GLES2/gl2.h> #include <android/log.h> #include "glm/glm.hpp" #include "glm/gtc/matrix_transform.hpp" #include <string> #include "GLES2Lesson.h" #include "NdkGlue.h" GLint GLES2Lesson::vertexAttributePosition = 0; GLint GLES2Lesson::modelMatrixAttributePosition = 0; G...
#pragma once #include "defs.hpp" #include "utils.hpp" #include <unordered_map> #include <cassert> enum class Time : U8 { sunrise, noon, sunset, night, /* end */ size }; enum class Biome : U8 { grass, sandy, snowy, burnt, /* end */ siz...
#include "Classes.h" #include <iostream> #include <string> #include <cassert> #include <sstream> #include <stdlib.h> #include "CommonHeaders.h" int FromAlgToMyNet(ObjectManager &manager, GRAPH &MyNet) { try { LINK tl; NODE nd; OD ww; for (auto l = manager.getNet()->beginOnlyLink(); l != NULL; l = manager.g...
//------------- p_RSA.cpp ---------------------------------------------------- //---------------------------------------------------------------------------- #include "precHeader.h" //---------------------------------------------------------------------------- //---------------------------------------------------------...
/// \file Main.cpp /// \brief Main. #ifdef _MSC_VER //Windows Visual Studio #include <conio.h> #endif #include "Includes.h" #include "uintx_t.h" #include "Cayley32.h" //function prototypes void init_genrand64(uint64_t seed); ///< Initialize Mersenne Twister. uint64_t genrand64_int64(void); ///< Mersenne Twister....
#include "seal/seal.h" #include "seal/util/ntt.h" #include <algorithm> #include <chrono> #include <cstddef> #include <fstream> #include <iomanip> #include <iostream> #include <limits> #include <memory> #include <mutex> #include <numeric> #include <random> #include <sstream> #include <string> #include <thread> #include ...
#include "libpstack/proc.h" #include "libpstack/ps_callback.h" #include <sys/ptrace.h> #include <sys/types.h> #include <dirent.h> #include <err.h> #include <fcntl.h> #include <unistd.h> #include <wait.h> #include <climits> #include <iostream> #include <utility> std::string procname(pid_t pid, const std::string &bas...
/** * * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you ...
#include "pprof.h" #include <stdlib.h> #include <cstdlib> #include <thread> #include "debug/resolver.h" #include "estl/chunk_buf.h" #include "gperf_profiler.h" #include "pprof/gperf_profiler.h" #include "tools/alloc_ext/je_malloc_extension.h" #include "tools/alloc_ext/tc_malloc_extension.h" #include "tools/fsops.h" #in...
/* ************************************************************ // Kohonen's Self-Organizing Neural Network // // <NAME> // August 4, 1995 // // Modifications to be called by R // <NAME> // March 3, 2013 // ************************************************************/ // INCLUDE HEAD FILES #include "sofm.hh" // sette...
/* * Copyright 2018 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "GrCCConicShader.h" #include "glsl/GrGLSLFragmentShaderBuilder.h" #include "glsl/GrGLSLVertexGeoBuilder.h" void GrCCConicShader::emitSetupCode(GrGLSLVertexGeoBuilde...
/* * Copyright (c) 2014, Shogun Toolbox Foundation * 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 o...
/* * logreader.cc * * Created on: 2012/10/27 * Author: ueno */ #ifndef __STDC_CONSTANT_MACROS #define __STDC_CONSTANT_MACROS #endif #ifndef __STDC_LIMIT_MACROS #define __STDC_LIMIT_MACROS #endif #ifndef __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS #endif // C includes #include <stdio.h> #include <stdl...
/* * Copyright 2007-2021 CM4all GmbH * All rights reserved. * * author: <NAME> <<EMAIL>> * * 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 ...
//===- Delta.cpp - Delta Debugging Algorithm Implementation ---------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===---------------------------...
#include "Game.h" #include <iostream> using namespace irrklang; void Game::init() { bPlay = true; glClearColor(0.f, 0.f, 0.f, 1.0f); engine = createIrrKlangDevice(); gState.init(); menu.init(); loopMusic("music/Menu.wav"); godMode = false; first = true; win = false; } bool Game::...
/******************************************************************************\ | OpenGL 4 Example Code. | | Accompanies written series "Anton's OpenGL 4 Tutorials" | | Email: anton at antongerdelan dot net ...
#include <ArduinoJson.h> #include <MQTT.h> #include <WiFi.h> #include <WiFiUdp.h> #include "storage.h" #include "netman.h" #include "ledcontroller.h" #define MQTTPORT 1883 #define MSGTOPIC "_msg" #define BRIGHTNESSTOPIC "_brightness" #define BGBRIGHTNESSTOPIC "_bgbrightness" #define MODETOPIC "_mode" #define TEXTCOL...
// PHZ // 2018-9-30 #include "MediaSession.h" #include "RtpConnection.h" #include <cstring> #include <ctime> #include <map> #include <forward_list> #include "net/Logger.h" #include "net/NetInterface.h" #include "net/SocketUtil.h" using namespace xop; using namespace std; std::atomic_uint MediaSession::_lastMediaSes...
#include <algorithm> #include "parsing/parserCommon.h" #include "types/allVals.h" using namespace std; using namespace lib; using namespace nlohmann; shared_ptr<SetDomain> parseDomainSet(json& setDomainExpr, ParsedModel& parsedModel) { SizeAttr sizeAttr = parseSizeAttr(setDoma...
/************************************************************************* * Title: I2C master library using hardware TWI interface * Author: <NAME> <<EMAIL>> http://jump.to/fleury * File: $Id: twimaster.c,v 1.3 2005/07/02 11:14:21 Peter Exp $ * Software: AVR-GCC 3.4.3 / avr-libc 1.2.3 * Target: any AV...
// Copyright 2008 the V8 project authors. All rights reserved. // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of ...
#include "global.h" #include "CommandLineActions.h" #include "RageFile.h" #include "RageUtil.h" #include "IniFile.h" #include "XmlFile.h" #include "XmlFileUtil.h" #include "LuaManager.h" #include "ProductInfo.h" #include "DateTime.h" #include "arch/Dialog/Dialog.h" #include "RageFileManager.h" #include "SpecialFiles.h"...
/** * Copyright (c) 2018 Horizon Robotics. All rights reserved. * @brief Method interface of xsoul framework * @author shuhuan.sun * @email <EMAIL> * @version 0.0.0.1 * @date 2018.11.21 */ #include <chrono> #include <iostream> #include <memory> #include <string> #include <thread> #include "hobo...
// // Created by CainHuang on 2020-01-02. // #include <memory.h> #include "NdkAudioWriter.h" NdkAudioWriter::NdkAudioWriter(int bitrate, int sampleRate, int channelCount) { mBitrate = bitrate; mSampleRate = sampleRate; mChannelCount = channelCount; mOutputPath = nullptr; mBufferSize = AUDIO_BUFFER...
/** @file A brief file description @section license License Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you und...
/* * Project: FullereneViewer * Version: 1.0 * Copyright: (C) 2011-15 Dr.Sc.KAWAMOTO,Takuji (Ext) */ #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/stat.h> #include <stdio.h> #include "Version.h" #include "Config.h" #include "PddGfLines.h" #include "CarbonAllotrope.h" #include "Fullerene....
#include <vlog/utils.h> #include <string> #include <launcher/vloglayer.h> #include <cts/parser/SPARQLLexer.hpp> #include <cts/semana/SemanticAnalysis.hpp> #include <cts/plangen/PlanGen.hpp> #include <cts/codegen/CodeGen.hpp> #include <rts/runtime/Runtime.hpp> #include <rts/runtime/QueryDict.hpp> #include <rts/operator...
#include <iostream> #include <fstream> #include "forest.h" #include "pairforest.h" #include "tree.h" #include "data.h" #include "utilities.h" #include "hyperparameters.h" #include <libconfig.h++> #include <cstdlib> #include <libxml/tree.h> #include <libxml/parser.h> using namespace std; using namespace libconfig; //na...
#include <string.h> #include <stdio.h> #include <stdlib.h> #include <pthread.h> #include "math.h" #include "ps3RawDefines.h" #include "RTMA_config.h" #include "jsfunc.h" #include "ParamLoader.h" #ifdef USERTMA #include "RTMAThread.h" #endif static PS3_RAW_CONFIG config; static int lastValues[MAX_CONTROLLERS][PS3_N_SEN...
/****************************************************************************** * The MIT License (MIT) * * Copyright (c) 2019-2021 <NAME> * * 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 Soft...
/* * File: SPOJ - FACT2 * Algorithm: Integer factorization * Created Date: Thursday July 30th 2020 * Author: <NAME> */ #include <bits/stdc++.h> #include <limits.h> using namespace std; #define int64 __int128 #define lb unsigned __int128 #include<boost/multiprecision/cpp_int.hpp> namespace mp=boost::multiprecis...
#pragma once #include <vector> // internal storage uses vector #include <algorithm> // std::max during norm calculation #include <type_traits> // std::is_arithmetic<T> is used to ensure matrix elements are of a numeric type #include <iostream> // printing to console #include <iomanip> // print formatting // Config ...
#include <unordered_map> #include <sys/time.h> #include "netqre.h" using namespace std; extern int loop_num; extern double avg_per_packet_time; extern long max_time; extern int to_start; extern int finish_count; extern pthread_mutex_t start_mutex; extern pthread_mutex_t finish_mutex; extern pthread_cond_t start_cv;...
/* The MIT License (MIT) Copyright (c) 2017 <NAME>, <NAME>, <NAME>, <NAME> 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, co...
// Copyright (c) 2018 Baidu.com, Inc. All Rights Reserved // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by ...
#include <avr/io.h> #include <avr/cpufunc.h> #include <util/delay.h> #include <stdint.h> #include <stdio.h> #include "compile_time.h" #include "custom_serial.h" #include "servo.h" #include "range_finder.h" #include "my_arduino.h" #include "timer.h" void init (void) { serial_ascii_inout_init(); set_pin_mode(P...
#include <algorithm> #include <array> #include <deque> #include <iostream> #include <stdlib.h> #include <time.h> #include <vector> using std::cin; using std::cout; using std::endl; #define _K(x) (x * 1024) constexpr int MemorySize = _K(32); constexpr int PageSize = _K(1); constexpr int PageFrameCount = 29; int addr...
/* * Copyright 2013 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "GrGLProgramDesc.h" #include "GrGLProcessor.h" #include "GrProcessor.h" #include "GrGLGpu.h" #include "GrPipeline.h" #include "SkChecksum.h" #include "gl/builders/GrG...
// // Created by gritzko on 7/26/20. // #include "../ron.hpp" #include "test.hpp" using namespace std; using namespace ron; TEST(RONv, Atoms) { Float f{3.1415}; Integer i{INT64_MAX}; auto n = Uuid::Name(TEST); VarIntStream s{}; s.Create(); ASSERT_OK(s.FeedWordFlipped((Word&)f)); ASSERT_OK(...
#include "UI/ArrayView.h" using namespace std; ArrayView::ArrayView (string name, unsigned left, unsigned top, unsigned xcells, unsigned ycells, unsigned wcell, unsigned nrow, unsigned ncol) : UIObject (name, left, top, xcells * (wcell + 1) + 1, ycells * 2 + 1, true), cellwidth (wcell), xcells (xcells), ycells ...
/** @file @brief Collection of method definitions for image manipulation using CGAL library. */ #include "imagemanipulation.h" Gray_level_image binary2Gray(const std::string filename, Real iso_value) { using std::cout; using std::endl; std::string buff; int id,xsize,ysize,zsize,voxelsize; Real vox...
// "$Id: PackedGroup.cxx 5826 2007-05-14 13:31:59Z spitzak $" // // Copyright 1998-2006 by <NAME> and others. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Library General Public // License as published by the Free Software Foundation; either // version 2 of...
/**_________________________________________________________________ class: BeamSpotWrite2DB.cc package: RecoVertex/BeamSpotProducer author: <NAME>, Fermilab (<EMAIL>) ________________________________________________________________**/ // C++ standard #include <string> // CMS #include "DataFormats/Be...
// Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required...
/* * This is a custom MPI Bcast implementation program that is implemented to broadcast an array of double * with 100,000 elements. The custom built routine is then compared with the default MPI Bcast routine to * test the scalability and performance evaluation. * * @author <NAME> * @version 1.8 03/25/2019 * ...
/* -------------------------------------------------------------------------- * * OpenMM * * -------------------------------------------------------------------------- * * This is part of the OpenMM molecular simulation toolkit originating from * ...
// // "$Id: color_chooser.cxx 5519 2006-10-11 03:12:15Z mike $" // // Color chooser test program for the Fast Light Tool Kit (FLTK). // // Copyright 1998-2005 by <NAME> and others. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Library General Public ...
/* * Copyright (C) 2018 <NAME> * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file for details. */ #include "debugger.h" #include "imgui.h" #include "imgui-helpers.h" // static const char Debugger::s_map_window_name[] = "Map"; Debugger::MapWindow::MapWin...
//////////////////////////////////////////////////////////////////////////////// /// DISCLAIMER /// /// Copyright 2019 ArangoDB GmbH, Cologne, Germany /// /// 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...
#include <algorithm> #include <istream> #include <ranges> #include <vector> #include <cassert> #include "util.h" namespace { auto shift_in(auto value, auto new_bits, auto num_bits) { const auto mask = (1<<num_bits)-1; return (value << num_bits) | (new_bits & mask); } class BitReader { public: explicit...
/** * \file WznmComplBscui.cpp * Wznm operation processor - complement basic user interface (implementation) * \copyright (C) 2016-2020 MPSI Technologies GmbH * \author <NAME> (auto-generation) * \date created: 28 Nov 2020 */ // IP header --- ABOVE #ifdef WZNMCMBD #include <Wznmcmbd.h> #else #include <Wznmopd...
/* * File: main.cpp * Author: Vp */ #include <cstdlib> #include <iostream> #include <vector> #include <GL/gl.h> #include <GL/glu.h> #include <GL/glut.h> #include "env.hpp" //-----------------// //Globális változók// //-----------------// //Vonal vector std::vector<Skoord*> vonal; //Táro...
/* the vast starry sky, bright for those who chase the light. */ #include<bits/stdc++.h> using namespace std; typedef long long ll; typedef pair<int,int> pii; #define mk make_pair const int inf=(int)1e9; const ll INF=(ll)5e18; const int MOD=998244353; int add(int x,int y){x+=y; return x>=MOD ? x-MOD : x;} int sub(int x...
/* Copyright 2020 <NAME> (aka DevilishSpirits) * * 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 l...
#include <cstdio> #include <cstring> #include <queue> #include <vector> #include <iostream> #include <algorithm> using namespace std; typedef pair<int,int> pii; const int maxn = 100005; const int maxm = 1005; const int sigma_size = 2; const int inf = 0x3f3f3f3f; struct Aho_Corasick { int sz, g[maxn][sigma_size]...
// This source file is part of the polarphp.org open source project // // Copyright (c) 2017 - 2018 polarphp software foundation // Copyright (c) 2017 - 2018 zzu_softboy <<EMAIL>> // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://polarphp.org/LICENSE.txt for license information // S...
// // This source file is part of appleseed. // Visit http://appleseedhq.net/ for additional information and resources. // // This software is released under the MIT license. // // Copyright (c) 2012-2013 <NAME>, Jupiter Jazz Limited // Copyright (c) 2014-2017 <NAME>, The appleseedhq Organization // // Permission is h...
/* Copyright (c) 2019-2021, Lawrence Livermore National Security, LLC; See the top-level NOTICE for additional details. All rights reserved. SPDX-License-Identifier: BSD-3-Clause */ #include "test.hpp" #include "units/units.hpp" #include <iostream> #include <type_traits> using namespace units; TEST(MeasurementStrings...
/** ****************************************************************************** * @file : cartridge_hal.cpp * @brief : Implementation of VCS game cartridge hardware abstraction ****************************************************************************** */ //------------------------...
//=== HexagonMCELFStreamer.cpp - Hexagon subclass of MCELFStreamer -------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===--------------------------------------------------------...
// //////////////////////////////////////////////////////// // # Title // An enormous factorial // // # URL // https://projecteuler.net/problem=288 // http://euler.stephan-brumme.com/288/ // // # Problem // For any prime `p` the number `N(p,q)` is defined by `N(p,q) = sum_{n=0 ... q}{T_n * p^n}` // with `T_n` generated...
/** \class HLTSinglet * * See header file for documentation * * * \author <NAME> * */ #include "FWCore/ParameterSet/interface/ParameterSet.h" #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "DataFormats/Common/interface/Handle.h" #include "DataFormats/Common/interface/Ref.h" #include "DataF...
// Copyright 2020 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/ui/views/autofill/autofill_popup_view_utils.h" #include "base/stl_util.h" #include "testing/gtest/include/gtest/gtest.h" TEST(A...
#pragma once #include "ogm/bytecode/BytecodeTable.hpp" #include "ogm/interpreter/Variable.hpp" #include <vector> #include <string> #include <fstream> #include <queue> #include <functional> // forward declarations namespace ogm { namespace bytecode { struct DisassembledBytecodeInstruction; } } namespace ogm { n...
#include <iostream> #include <fstream> #include <vector> struct field_elt { char c='#'; bool seen=false; unsigned short steps=0; }; struct field { private: static const long base=512, field_size = 2*base +1; field_elt f[field_size][field_size]; unsigned x_min=base,x_max=base+1,y_min=base,y_ma...