text
stringlengths
3.08k
12.5k
#include <iostream> #include <cstring> #define MAX 110 using namespace std; char fibonacci[110][30]; char* add(char s1[], char s2[]) { char *a = new char[110]; char *b = new char[110]; if(strlen(s1) >= strlen(s2)) { strcpy(a,s1); strcpy(b,s2); } else ...
#include <gltbx/quadrics.h> #include <scitbx/array_family/boost_python/shared_wrapper.h> #include <boost/python/module.hpp> #include <boost/python/class.hpp> #include <boost/python/tuple.hpp> #include <boost/python/def.hpp> #include <boost/python/make_constructor.hpp> #include <boost/python/return_internal_reference.h...
/* 424. Longest Repeating Character Replacement Given a string that consists of only uppercase English letters, you can replace any letter in the string with another letter at most k times. Find the length of a longest substring containing all repeating letters you can get after performing the above operations. No...
#include "text.h" #include <stdexcept> #define STB_TRUETYPE_IMPLEMENTATION #define STB_IMAGE_WRITE_IMPLEMENTATION #define STB_RECT_PACK_IMPLEMENTATION #include "stb_image_write.h" #include "stb_truetype.h" #include "stb_rect_pack.h" Font::Font(std::filesystem::path p) { buffer = FS::readFileAsBytes(p); // Reads the ...
using namespace std; #include "SqlTokenizer.h" #include "InvalidSymbolException.h" #include "Token.h" #include <iostream> #include <sstream> #include <algorithm> vector<Token> SqlTokenizer::split() { iterator = query.begin(); string text; while( iterator != query.end()) { bool isNumber = false; bool isLiter...
// // Created by dimitrije on 2/25/19. // #include <PDBVector.h> #include <ComputePlan.h> #include <GenericWork.h> #include <PDBCatalogClient.h> #include <physicalAlgorithms/PDBStraightPipeAlgorithm.h> #include <processors/NullProcessor.h> #include "physicalAlgorithms/PDBStraightPipeAlgorithm.h" #include "ExJob.h" p...
//********************************************************* // Travel_Report.cpp - travel summary report //********************************************************* #include "PlanSum.hpp" //--------------------------------------------------------- // Travel_Report //---------------------------------------------------...
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */ #ident "$Id$" /*====== This file is part of PerconaFT. Copyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved. PerconaFT is free software: you can redistribute it and/or modify it under the terms of the GNU General Public...
#include "mas/mas_node.hpp" Controller::Controller() : tfListener(tfBuffer) { getParamOrError("id", id); getParamOrError("/num_robots", num_robots); getParamOrError("/ns_prefix", ns_prefix); getParamOrError("/gain", gain); getParamOrError("/gain_yaw", gain_yaw); getParamOrError("/threshold_yaw"...
#include "core.h" #include "wbactionsendevent.h" #include "configmanager.h" #include "wbeventmanager.h" #include "Components/wbcompvariablemap.h" #include "Components/wbcomplabel.h" WBActionSendEvent::WBActionSendEvent() : m_EventName() , m_QueueEvent( false ) , m_LogEvent( false ) , m_DispatchDelay( 0.0f )...
//#include "util.h" #include "itensor/all.h" #include "mllib/mnist.h" using namespace itensor; using namespace mllib; using std::vector; using std::abs; using std::min; using std::string; struct TImg { long l = 1000; int y = -1; Real dC = 0.; Vector img; TImg(long l_, int y_, Vector img_) ...
// Based on code from: // https://devblogs.nvidia.com/parallelforall/egl-eye-opengl-visualization-without-x-server/ // https://github.com/facebookresearch/House3D/blob/master/renderer/gl/glContext.cc // https://github.com/facebookresearch/habitat-sim #include <fcntl.h> #include <unistd.h> #include <Corrade/configure....
/* * Copyright (c) 2016 The ZLMediaKit project authors. All Rights Reserved. * * This file is part of ZLMediaKit(https://github.com/xia-chu/ZLMediaKit). * * Use of this source code is governed by MIT license that can be found in the * LICENSE file in the root of the source tree. All contributing project authors ...
#include "easylogging++.h" using namespace std; #include <comdef.h> #include <Wbemidl.h> #include "version.h" #pragma comment(lib, "wbemuuid.lib") int squery[44] = {83,69,76,69,67,84,32,83,101,114,105,97,108,78,117,109,98,101,114,32,70,82, 79,77,32,87,105,110,51,50,95,80,104,121,115,105,99,97,108,77,101,100,105,97}; ...
const static char expectedChunkID[] = "RIFF"; const static char expectedFormatDescriptor[] = "WAVE"; const static char expectedSubChunk1ID[] = "fmt "; const static char expectedSubChunk2ID[] = "data"; //-------------------------------------------------------------------------------------------------...
/* Copyright 2019-2021 Canaan 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 t...
#include "CondTools/Ecal/interface/EcalLaser_weekly_Handler.h" #include "OnlineDB/EcalCondDB/interface/EcalLogicID.h" #include "OnlineDB/EcalCondDB/interface/LMFSextuple.h" #include "FWCore/ParameterSet/interface/ParameterSetfwd.h" #include "CondCore/CondDB/interface/Time.h" #include "DataFormats/Provenance/interface/T...
/* Copyright (c) 2003-2005 MySQL AB 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; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHO...
#include "stdafx.h" #include "AnimationSequence.h" AnimationSequence::AnimationSequence(const vector<KeyFrame> &_keyFrames, const string &name, float priority, bool looping, ...
/** @file UIcmdWithAKeyAValueAndUnit.cpp @author <NAME> @date 2020/02/14 **/ #include "UIcmdWithAKeyAValueAndUnit.hpp" #include <G4Tokenizer.hh> #include <G4UnitsTable.hh> #include <G4UIcommandStatus.hh> #include <sstream> #include <vector> UIcmdWithAKeyAValueAndUnit::UIcmdWithAKeyAValueAndUnit (con...
#include <cmath> #include "AMReX_GeometryShop.H" #include "AMReX_WrappedGShop.H" #include "AMReX_BoxIterator.H" #include "AMReX_ParmParse.H" #include "AMReX_RealVect.H" #include "AMReX_SphereIF.H" #include "AMReX_BoxArray.H" #include "AMReX_FabArray.H" #include "AMReX_EBGraph.H" namespace amrex { //////////// int c...
#include "dmzJsModuleUiV8QtBasic.h" #include <dmzJsModuleV8.h> #include <dmzJsV8UtilConvert.h> #include <dmzV8QtUtil.h> #include "dmzV8QtObject.h" #include <QtGui/QMessageBox> dmz::V8Value dmz::JsModuleUiV8QtBasic::_create_message_box (const v8::Arguments &Args) { v8::HandleScope scope; V8Value result = v8::Un...
// AirMap Platform SDK // Copyright © 2018 AirMap, 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 requir...
/*ckwg +29 * Copyright 2014-2017 by Kitware, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this li...
//////////////////////////////////////////////////////////////////////////////////////////////////// ////// Blank Panel 2 HP module ///////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////// #include "Ohmer....
#include <algorithm> #include <cassert> #include <cstdio> #include <iostream> #include <sstream> #include <string> #include <vector> #include <cstring> using namespace std; vector<int> I, R; int n; const int MASK = (1<<17)-1; int dp[51][1<<17]; const int INF = 1234567890; int go(int p, int mask) { ...
// Copyright (c) 2009 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. // This file implements BSD-style setproctitle() for Linux. // It is written such that it can easily be compiled outside Chromium. // // The Linux ker...
#include "mesh.h" #include <algorithm> #include <unordered_map> #define TINYOBJLOADER_IMPLEMENTATION #include <tiny_obj_loader.h> namespace std { template<> struct hash<Vertex> { size_t operator()(Vertex const& v) const { size_t hash = 0; hash_combine(hash, v.pos); hash_combine(hash, v.no...
// Copyright (c) 2020 Graphcore Ltd. All rights reserved. #include <cstdlib> #include <vector> #include "utils.h" #include <popops/Reduce.hpp> #include <popops/codelets.hpp> enum Progs { WRITE_INPUTS, CUSTOM_PROG, REDUCTION_PROG, READ_RESULTS, NUM_PROGRAMS }; std::vector<poplar::program::Program> buildGr...
#include <iostream> #include <iomanip> #include <cstdlib> #include <ctime> #include <pthread.h> #include <sys/times.h> #include <sys/time.h> #include <sys/resource.h> #include <unistd.h> //#include <sys/_structs.h> using namespace std; #define NUM_THREADS 10 #define DIGITS 4 void *thread_function(void *); int main(...
//#include"EasySelectServer.hpp" //#include"EasyEpollServer.hpp" #include"EasyIOCPServer.hpp" #include"CELLMsgStream.hpp" #include"CELLConfig.hpp" class MyServer : public EasyIOCPServer { public: MyServer() { _bSendBack = CELLConfig::Instance().hasKey("-sendback"); _bSendFull = CELLConfig::Instance().hasKey("-se...
// // vector.cpp // // Copyright (C) <NAME> // // This code remains the property of the copyright holder. // The code contained herein is licensed for use without limitation // #include <iostream> #include <sstream> #include <leap/lml/vector.h> #include <leap/lml/io.h> #include <leap/util.h> using namespace std; usin...
#include "usbd_midi_if.h" #include "stm32f0xx_hal.h" #include "ringbuf.h" // Baisc MIDI RX/TX functions static uint16_t midiRx(uint8_t *msg, uint16_t length); static uint16_t midiTx(uint8_t *msg, uint16_t length); inline void parseMidiPacket(uint8_t *pkt); void parseMidiPacket(usbMidiEvent_t *pkt); // callback varia...
#include <SFML/Graphics.hpp> #include <SFML/System.hpp> #include <SFML/Audio.hpp> #include <SFML/Window.hpp> #include <iostream> const int NUMBEROFSAMPLES = 10000; const int NOS = 10000; const int RATE = 24100 / 26; std::unique_ptr<std::vector<sf::Int16>> pointertovector{ std::make_unique <std::vector<sf::Int16>>() }...
/*------------------------------------------------------------------------ * (The MIT License) * * Copyright (c) 2008-2011 Rhomobile, 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 ...
/******************************************************************* ** THIS FILE IS PART OF THE SPF (SPIN-PHONON-FERMION) ** ** COMPUTER PROGRAM ** ** ** ** SPF VERSION 6.4 ...
#include "XeShape.h" #include "XeScene.h" #include "XeEffect.h" struct XeShape_Coord { float x, y, z; float u, v; float r, g, b, a; }; XeShape_Coord xeshape_coord[4]; int xeshape_textureid; int xeshape_fade_frameindex; int xeshape_fade_framelength; int xeshape_fade_originalsize; int xeshape_fade_verse; void XeSha...
/* Copyrighted(c) 2020, <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 of conditions and the following di...
#include "framework/data.h" #include "framework/logger.h" #include "framework/musicloader_interface.h" #include "framework/sound.h" #include "library/sp.h" #include <algorithm> #include <memory> #include <vector> namespace { using namespace OpenApoc; const std::vector<unsigned int> offsets = { 0, 8413184...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <iostream> using namespace std; #define TOTALNUM 200 void HeapAdjust(int array[],int i,int nLength) { int nChild; int nTemp; for(;2*i+1<nLength;i=nChild) { nChild=2*i+1; if(nChild<nLength-1&&array[nChild+1]<array[nChild...
// csastil_externalguards.cpp -*-C++-*- #include <clang/Basic/IdentifierTable.h> #include <clang/Basic/SourceLocation.h> #include <clang/Lex/Token.h> #include <csabase_analyser.h> #include <csabase_binder.h> #include <csabase_debug.h> #include <csabase_diagnostic_builder.h> #inc...
/* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2.0, as published by the Free Software Foundation. This program is also distributed with certai...
/* Tests to develop solvers */ #include <iostream> // TODO: expicit includes #include "solver.h" #include "rocket_landing_planner.h" #include "least_square_problem.h" #include "utils.h" void test_matrix_almost_equation(const MatrixXd &m1, const MatrixXd &m2) { constexpr double EPSILON = 1e-4; assert(m1.ro...
// Thanks to https://stackoverflow.com/questions/24326432/convenient-way-to-show-opencl-error-codes const char *getErrorString(cl_int error) { switch(error){ // run-time and JIT compiler errors case 0: return "CL_SUCCESS"; case -1: return "CL_DEVICE_NOT_FOUND"; case -2: return "CL_DEVICE_NOT_AVAILABLE";...
/* Copyright Singapore-MIT Alliance for Research and Technology */ #include "MapDecompositionWithInformationFlow.hpp" using namespace std; using namespace sim_mob_partitioning; void MapDecompositionWithInformationFlow::do_map_partitioning(Configurations& config) { generate_required_parameters_with_infor(config); d...
#include "stdafx.h" #include "pol.h" #include "stdlib.h" char *replace(char *str, char *symbols, int *numbers) //удаление из строки пробелов и // замена цифрами символов { unsigned int i, j, k; char *str1 = new char[MAX_LENGTH]; char *str2 = new char[MAX_LENGTH]; int ind = 0; bool symb; char t[2...
/* Copyright 2012-2014 <NAME> Copyright 2019-2020 TarCV 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 c...
///////////////////////////////////////////////////////////////////////////////////////////// // Copyright 2017 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 // // ...
#include <stdio.h> #include <stdlib.h> #include <assert.h> #include <sstream> #include <glog/logging.h> #include "server/messages.h" #include "server/worker.h" #include "tools/cycle_timer.h" #include <thread> #include <string> #include "tools/work_queue.h" // TODO Maybe 23 threads is more appropriate #define NUM_THR...
#include "circleball.hh" #include "../../Agent/agent.hh" #include "../../Config/config.hh" #include "../../Drawing/drawing.hh" #include "../../MotionModule/HeadModule/headmodule.hh" #include "../../MotionModule/WalkModule/walkmodule.hh" #include "../../State/state.hh" #include "../../StateObject/AgentFrameState/agentf...
#include "SI70xx.hpp" /* Commands */ #define CMD_MEASURE_HUMIDITY_HOLD 0xE5 #define CMD_MEASURE_HUMIDITY_NO_HOLD 0xF5 #define CMD_MEASURE_TEMPERATURE_HOLD 0xE3 #define CMD_MEASURE_TEMPERATURE_NO_HOLD 0xF3 #define CMD_MEASURE_THERMISTOR_HOLD 0xEE #define CMD_READ_PREVIOUS_TEMPERATURE 0xE0 #define CMD_...
/* MIT License Copyright (c) 2021 sethome 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, distri...
// Copyright 2020 <NAME> // This file is part of CIDE, licensed under the new BSD license. // See the COPYING file in the project root for the license text. #include "cide/code_info_goto_referenced_cursor.h" #include "cide/clang_utils.h" #include "cide/main_window.h" #include "cide/clang_parser.h" #include "cide/qt_t...
// Copyright (C) Ipion Software GmbH 1999-2000. All rights reserved. //IVP_EXPORT_PUBLIC class IVP_Real_Object; class IVP_Core; #include <ivp_great_matrix.hxx> #ifndef IVP_CONSTRAINT_INCLUDED #include <ivp_constraint.hxx> #endif #define IVP_CONSTRAINT_CAR_MAX_WHEELS 12 class IVP_Constraint_Solver_C...
#include "rs-io/path.hpp" #include "rs-format/unicode.hpp" #include "rs-tl/guard.hpp" #include "rs-unit-test.hpp" #include <algorithm> #include <iterator> #include <string> #include <vector> using namespace RS::IO; using namespace RS::TL; using namespace RS::UnitTest; namespace { template <typename T, typename R...
#include "array_model.h" z3::expr array_model::join_array_state( std::vector<z3::expr>& conds, std::vector<unsigned>& prevs, unsigned src ) { assert( conds.size() > 0 && prevs.size() == conds.siz...
// // This script converts the CIFAR dataset to the leveldb format used // by caffe to perform classification. // Usage: // convert_cifar_data input_folder output_db_file // The CIFAR dataset could be downloaded at // http://www.cs.toronto.edu/~kriz/cifar.html #include <fstream> // NOLINT(readability/streams) #...
/* * 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 appl...
/** * Processor.cpp : Implements the class Processor * * Version : 1.0 * Author : <NAME>, CS19B074 * * **/ #include "Processor.h" #include <fstream> #include <iomanip> #include <iostream> using namespace std; //global variables for the processor int to...
/* USER CODE BEGIN Header */ /** ****************************************************************************** * @file : main.c * @brief : Main program body ****************************************************************************** * @attention * * <h2><center>&copy; Copyright (c) ...
/* * MIT License * * 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,...
#include "ofApp.h" //-------------------------------------------------------------- void ofApp::setup(){ ofSetWindowTitle("LightEchoes Frame Player"); ofSetFrameRate(60); ofSetLogLevel(OF_LOG_VERBOSE); ofBackground(0); ofSetEscapeQuitsApp(false); ofSetLogLevel("ofThread", OF_LOG_ERROR); of...
//////////////////////////////////////////////////////////////////////////////// // // This file is part of the romato library. // // Copyright 2013-2022 <NAME> // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the "Software"), // ...
#include "../../include/gpd/grasp_image_15_channels.h" const int GraspImage15Channels::NUM_CHANNELS = 15; GraspImage15Channels::GraspImage15Channels(int image_size, bool is_plotting, Eigen::Matrix3Xd* points, Eigen::Matrix3Xd* normals, Eigen::Matrix3Xd* shadow) : GraspImage(image_size, NUM_CHANNELS, is_plotting...
#include <stdio.h> #include <string.h> #include <algorithm> #include <map> #include <queue> using namespace std; int n, m; const int dx[] = {0, 0, 1, -1}; const int dy[] = {1, -1, 0, 0}; struct state { char g[17][17]; int x, y, log; bool operator<(const state &a) const { if (x != a.x) return x < a.x; if (y != a....
#include <iostream> #include <vector> #include <filesystem> #define GLFW_INCLUDE_VULKAN #include <GLFW/glfw3.h> #include <glm/mat4x4.hpp> #include <glm/vec4.hpp> #include <vulkan/vulkan.h> #include <vw/config.h> #include <vw/instance.h> #include <vw/list_device.h> #include <vw/is_capable.h> #include <vw/context.h> #inc...
// // Created by <NAME> on 11/15/2020. // #include <iostream> #include <cstdio> #include <vector> #include <chrono> #include <clocale> #include <omp.h> #include <unordered_map> #include <fstream> //#include "../include/efanna2e/index_nsg.h" using idi = unsigned; void load_true_NN( const char *filename, ...
#include <iostream> #include <fstream> #include <string> #include <vector> #include "lib/io.h" #include <sstream> #include <cmath> #include <algorithm> #include <cassert> using namespace std; const string POINT_DELIMITER=","; const string FOLD_DELIMITER="="; const short UP = 0; const short LEFT = 1; class Point { ...
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- * vim: set ts=8 sts=2 et sw=2 tw=80: * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ ...
/* * Copyright 2019 Carnegie Technologies * * 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...
/*Header-MicMac-eLiSe-25/06/2007 MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation eLiSe : ELements of an Image Software Environnement www.micmac.ign.fr Copyright : Institut Geographique National Author : <NAME> Contributors : <NAME>, <NAME>. [1] <NAME>, <NAM...
/* * Copyright (c) 2012-2013, <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, copy, modify, merge, publis...
//============================================================================ // Name : BuildTree.cpp // Author : <NAME> (<EMAIL>) // Copyright : MIT // Description : Constructs a time-delay embedding of the data, equipped with // a model of the dynamics using an approximation of the // ...
#include "free_list.hh" #include <fmt/core.h> #include <gtest/gtest.h> #include <vector> #include "buffer_pool_manager.hh" #include "logger.hh" using namespace trees::disk; using namespace trees::logger; class FreeListTest : public ::testing::Test { protected: auto SetUp() -> void override { set_global_opti...
// Copyright 1998-2017 Epic Games, Inc. All Rights Reserved. /*============================================================================= DrawFrsutumComponent.cpp: UDrawFrsutumComponent implementation. =============================================================================*/ #include "Components/DrawFrustum...
/*----------------------------------------------------------------------------*/ /* Copyright (c) 2017-2018 FIRST. All Rights Reserved. */ /* Open Source Software - may be modified and shared by FRC teams. The code */ /* must be accompanied by the FIRST BSD license file in the root directory o...
#include "graph_generator.hpp" #include <atomic> #include <functional> #include <list> #include <optional> #include <random> #include <thread> namespace { using VertexId = uni_course_cpp::VertexId; using Graph = uni_course_cpp::Graph; constexpr double GREEN_EDGE_PROBA = 0.1; constexpr double RED_EDGE_PROBA = 0.33; co...
#include "InteractionContext.h" #include "graphics/XChart.h" #include "graphics/util/json_util.h" #include "utils/xtime.h" using namespace xg; interaction::InteractionContext::InteractionContext(XChart *chart) { this->chart_ = chart; chart_->AddMonitor(ACTION_CHART_AFTER_INIT, XG_MEMBER_CALLBACK(interaction::...
#include <iostream> #include <bg2e/bg2e.hpp> class MyEventHandler : public bg2e::wnd::EventHandler { public: void init() { _sceneRoot = new bg2e::scene::Node("Scene root"); bg2e::base::MeshData meshData; bg2e::utils::generateCube(2.0f, meshData); auto plist = new bg2e::...
/* The MIT License Copyright (c) 2014 <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, mo...
/* ---------------------------------------------------------------------- LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator http://lammps.sandia.gov, Sandia National Laboratories <NAME>, <EMAIL> Copyright (2003) Sandia Corporation. Under the terms of Contract DE-AC04-94AL85000 with San...
// license:BSD-3-Clause // copyright-holders:<NAME>, <NAME> //============================================================ // // sdlos_*.c - OS specific low level code // // SDLMAME by <NAME> and <NAME> // //============================================================ #include <stdlib.h> #include <unistd.h> #include...
#include <iostream> #include <cstdlib> using namespace std; class Edge { public: int u; int v; int w; Edge() { u = 0; v = 0; w = 0; } Edge(int u, int v, int w) { this->u = u - 1; this->v = v - 1; this->w = w - 1; } void print() { ...
/* Copyright 2014 <NAME>, SAP AG 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 writing, software ...
#include "lib3d\lib3D.h" #include "Renderer\Renderer.h" // System includes #include <stdlib.h> #include <stdio.h> #include <string.h> #include <iostream> #include <GL\glew.h> #include <GL\glut.h> #define WINDOW_TITLE_PREFIX "Ananke" #define PI 3.14159265358979323846f using namespace std; int CurrentWidth = 1920, ...
/* * File: snapshot.cc * Author: ts337 * * Created on 17 June 2011, 12:43 */ #include "coela_core/src/image_utils.h" #include "coela_core/src/pixel_array_routines.h" #include "coela_core/src/ds9_region.h" #include "coela_luckypipe/src/ccd_dataset_info.h" #include "coela_luckypipe/src/camera_config_info.h" #in...
// // Framework for a raytracer // File: sphere.cpp // // Created for the Computer Science course "Introduction Computer Graphics" // taught at the University of Groningen by <NAME>. // // Authors: // <NAME> // <NAME> // <NAME> // <NAME> // // This framework is inspired by and uses code of the raytrac...
#include "system.h" const char* cook_word [] = { "raw", "cooked", "burnt" }; /* * EAT ROUTINES */ bool eats_corpses( char_data* ch ) { if( ch->species != NULL ) return is_set( ch->species->act_flags, ACT_CARNIVORE ); return( ch->shdata->race == RACE_TROLL ); } bool vegetarian( char_data* ch ) { i...
#include <libopencm3/stm32/rcc.h> #include <libopencm3/stm32/gpio.h> #include <libopencm3/cm3/nvic.h> #include <libopencm3/stm32/spi.h> #include <FreeRTOS.h> #include <queue.h> #include <task.h> #include "spi.hpp" static SPI* spi1 = nullptr; static SPI* spi2 = nullptr; SPI::SPI(uint32_t spi_, SPI_TYPE type_) : txq...
#pragma once #include "generator/collector_interface.hpp" #include "platform/platform.hpp" #include "coding/write_to_sink.hpp" #include "base/geo_object_id.hpp" #include <cstdint> #include <functional> #include <ostream> #include <string> #include <type_traits> #include <unordered_map> #include <utility> struct O...
/****************************************************************************** Module: Optex.cpp Notices: Copyright (c) 2000 <NAME> ******************************************************************************/ #include "..\CmnHdr.h" /* See Appendix A. */ #include "Optex.h" ////////////////////////...
//---------------------------------------------------------------------- #include <fstream> #include "burst.h" #include "mpistream.h" #include "communicator.h" #include "confmaker.h" //---------------------------------------------------------------------- Burst burst; //-------------------------------------------------...
/* * Copyright (C) 2016-2021 Grok Image Compression Inc. * * This source code is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License, version 3, * as published by the Free Software Foundation. * * This source code is distributed in th...
#include <iostream> #include <math.h> #include <fstream> #include "ram_shield_fifo.h" RamShield_fifo::RamShield_fifo(stats stat, size_t block_size): RamShield(stat, block_size) { } RamShield_fifo::~RamShield_fifo() {} size_t RamShield_fifo::proc(const request* r, bool warmup) { if (!warmup) {stat.accesses++;} co...
// Copyright (c) 2018 <NAME> // // I am making my contributions/submissions to this project solely in my // personal capacity and am not conveying any rights to any intellectual // property of any third parties. #include <pch.h> #include <jet/collocated_vector_grid2.h> #include <jet/parallel.h> #include <jet/serial.h>...
/* * Copyright (C) 2015 Computer Architecture and Parallel Systems Laboratory (CAPSL) * * Original author: <NAME> * E-Mail: <EMAIL> * * License * * Redistribution of this code is allowed only after an explicit permission is * given by the original author or CAPSL and this license should be included in * all f...
/*Header-MicMac-eLiSe-25/06/2007 MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation eLiSe : ELements of an Image Software Environnement www.micmac.ign.fr Copyright : Institut Geographique National Author : <NAME> Contributors : <NAME>, <NAME>. [1] <NAME>, <NAM...
/** * Copyright (C) 2015-2017 Virgil Security Inc. * * Lead Maintainer: Virgil Security Inc. <<EMAIL>> * * 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...
/* DescriptionRenderer.cpp DescriptionRenderer class implementation file Created by <NAME> on 7/4/12. Copyright (c) 2012, 2019 <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 with...
#include "../include/pibt.hpp" const std::string PIBT::SOLVER_NAME = "PIBT"; PIBT::PIBT(Problem* _P) : Solver(_P), occupied_now(Agents(G->getNodesSize(), nullptr)), occupied_next(Agents(G->getNodesSize(), nullptr)) { solver_name = PIBT::SOLVER_NAME; } void PIBT::run() { // compare priority of age...