text
stringlengths
54
60.6k
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkExtractGrid.h Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. Th...
<commit_before>struct e { int sz; long long ans; e combine(e l, e r) { if (l.sz == 0) return r; if (r.sz == 0) return l; e res; res.sz = l.sz + r.sz; res.ans = l.ans + r.ans; return res; } e operator+(e r) { return combine(*this, r); } ...
<commit_before>#ifndef VIENNAGRID_ALGORITHM_QUANTITY_TRANSFER_HPP #define VIENNAGRID_ALGORITHM_QUANTITY_TRANSFER_HPP /* ======================================================================= Copyright (c) 2011-2014, Institute for Microelectronics, Institute for Analysis and Scientific C...
<commit_before>#include "zcm.h" #include "transport_zmq_ipc.h" #include "threadsafe_queue.hpp" #include <unistd.h> #include <cassert> #include <cstring> #include <unordered_map> #include <condition_variable> #include <iostream> #include <thread> using namespace std; // A C++ class that manages a zcm_msg_t struct Msg...
<commit_before>/************************************************************************* * * $RCSfile: SlsCacheConfiguration.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2005-11-11 10:47:58 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser Gener...
<commit_before>/************************************************************************* * * $RCSfile: SlsCacheConfiguration.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: rt $ $Date: 2005-10-24 07:40:37 $ * * The Contents of this file are made available subject to the terms of * either of the fo...
<commit_before># Items marked with "*" need compiler extensions to handle # Experimental -- run with # ./motto.byte --disable_inlining --disable_var_erasure --no_type_check \ # -o test examples/hadoop_more1.cp type k_v : record key : integer {hadoop_vint = true} value : integer {hadoop_vint = true} ...
<commit_before>// Copyright Joshua Boyce 2010-2012. // 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) // This file is part of HadesMem. // <http://www.raptorfactor.com/> <raptorfactor@raptorfactor.com> #inc...
<commit_before> #ifndef __SERIALIZER_LOG_LBA_DISK_FORMAT__ #define __SERIALIZER_LOG_LBA_DISK_FORMAT__ #include "serializer/serializer.hpp" // An off64_t with the highest bit saying that a block is deleted. // Deleted blocks still have an offset, since there's a zero block // sitting in place for them. The remain...
<commit_before>/*************************************************************************** * Copyright (C) 2004 by Stanislav Karchebny * * Stanislav.Karchebny@kdemail.net * * ...
<commit_before>#pragma once #include <memory> #include <tudocomp/compressors/esp/TypedBlock.hpp> namespace tdc {namespace esp { class DebugContextBase { struct Data { std::ostream* m_out; bool print_enabled = true; bool print_early = true; std::vector<std::...
<commit_before>// An "Antiafk" program that prevents the character from timing out in-game. // For World of Warcraft version 3.3.5 123450 #include <iostream> #include <thread> #include <distant/virtual_memory.hpp> #include <distant/privileges.hpp> int main() { using distant::process_rights; using distant::page_prot...
<commit_before>/* Copyright libCellML Contributors 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 ...
<commit_before>#include "pkgcache.h" /* * call-seq: gen_caches() -> bool * * Call the main cache generator. * * Debian::AptPkg::PkgCache.gen_caches # => false * **/ static VALUE gen_caches(VALUE self) { pkgCacheFile CacheFile; int res = CacheFile.BuildCaches(NULL, true); return INT2BOOL(res); } /...
<commit_before>/* v.0.12 4 August 2015 * Kevin CAIN, www.insightdigital.org * Adapted from the openMVG libraries, * Copyright (c) 2012, 2013 Pierre MOULON. * * 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...
<commit_before>/* This test is part of pocl. * Author: Kalle Raiskila, 2014 * * Test the OpenCL-C 'shuffle' command by looping * over all permutations of data and mask vector * lengths. Only one data type at a time is tested, * the type to test is passed as command line argument * (this allows for more interacti...
<commit_before>#ifndef STAN_SERVICES_UTIL_MCMC_WRITER_HPP #define STAN_SERVICES_UTIL_MCMC_WRITER_HPP #include <stan/mcmc/base_mcmc.hpp> #include <stan/mcmc/sample.hpp> #include <stan/model/prob_grad.hpp> #include <sstream> #include <iomanip> #include <string> #include <vector> namespace stan { namespace services { ...
<commit_before>// (C) Copyright Ben Bear, Herve Bronnimann 2007. // Use, modification and distribution are subject to 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) /* Revision history: Nov 13, 2007: Incorporation of boost-de...
<commit_before>#include <x0/StackTrace.h> #include <boost/lexical_cast.hpp> #include <execinfo.h> #include <cxxabi.h> #include <dlfcn.h> #include <strings.h> namespace x0 { StackTrace::StackTrace(int numSkipFrames, int numMaxFrames) { skip_ = 1 + numSkipFrames; //buffer_.resize(numSkipFrames + numMaxFrames); addre...
<commit_before>#include "gpu_optimizer.h" #include <iostream> #include <thread> #include <atomic> #include <chrono> #include <system_error> #include "gpu_problem.h" #include "gpu_analysis.h" #include "gpu_optdata.h" #include "gpu_optimize.h" //#define FIXED_BATCH_SIZE 48*1024 struct worker { std::thread thread; ...
<commit_before>#include "yugong.hpp" #include "yugong-debug.hpp" #include <cinttypes> #include <cstdint> #include <cstring> #define YG_CHECK_UNW(rv, pred) if (!(pred)) {\ yg_error("libunwind error %d: %s\n", rv, _yg_unw_strerror(rv));\ } namespace yg { const char *_yg_unw_strerror(int rv) { #if defined(__APP...
<commit_before>#include "AnimationComponent.h" #include "GameManager.h" #include "ResourceManager.h" bool Arthas::AnimationCompnent::init() { if (!Arthas::Component::init()) { return false; } m_Type = CT_ANIMATION; return true; } void Arthas::AnimationCompnent::update(float dTime) { } void Arthas::Animat...
<commit_before>//===-- EmulateInstructionARM.cpp -------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>#include "SearchManagerPreProcessor.h" #include "Sorter.h" #include "NumericPropertyTableBuilder.h" #include "RTypeStringPropTableBuilder.h" #include <common/RTypeStringPropTable.h> #include <common/PropSharedLockSet.h> #include "DocumentIterator.h" #include <ranking-manager/RankQueryProperty.h> #include...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * 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 ...
<commit_before>/*! \file Texture.cpp * \author Jared Hoberock * \brief Implementation of Texture class. */ #include "Texture.h" #ifdef WIN32 #define OPENEXR_DLL #endif // WIN32 #include <halfLimits.h> #include <ImfRgbaFile.h> #include <ImfRgba.h> #include <ImfStringAttribute.h> #include <ImfHeader.h> #include ...
<commit_before>// 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. #include "media/base/media.h" #include <string> #include <dlfcn.h> #include "base/file_path.h" #include "base/logging.h" #include "b...
<commit_before>/* Qt4xHb - Bindings libraries for Harbour/xHarbour and Qt Framework 4 Copyright (C) 2018 Marcos Antonio Gambeta <marcosgambeta AT outlook DOT com> */ /* DO NOT EDIT THIS FILE - the content was created using a source code generator */ #include "QSvgRendererSlots.h" static QSvgRe...
<commit_before>//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // version: $Id$ // author: Vassil Vassilev <vvasielv@cern.ch> //------------------------------------------------------------------------------ #include "cling/Interpreter/Tran...
<commit_before>#include "buzz_controller_spiri.h" /****************************************/ /****************************************/ static int BuzzTakeOff(buzzvm_t vm) { /* Get pointer to the controller */ buzzvm_pushs(vm, buzzvm_string_register(vm, "controller")); buzzvm_gload(vm); /* Call function *...
<commit_before> /* tests/test-givaropoly.C * Copyright (C) 2014 Gavin Harrison, * * Written by Gavin Harrison <gmh33@drexel.edu>, * * ========LICENCE======== * This file is part of the library LinBox. * * LinBox is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser Gen...
<commit_before>#include "d3d_common.h" namespace D3D { void GenerateQuad(Geom::RectFloat position, Geom::RectFloat texCoords, Geom::SizeFloat adjustment, Geom::SizeInt targetSize, Filter::RotationAngle angle, D3D::Vertex2D& a, D3D::Vertex2D& b, D3D::Vertex2D& c, D3D::Vertex2D& d) { switch (angle) { case Filter...
<commit_before>#include "tiling_render_policy_mt.hpp" #include "../platform/platform.hpp" #include "../yg/internal/opengl.hpp" #include "window_handle.hpp" #include "tile_renderer.hpp" #include "coverage_generator.hpp" TilingRenderPolicyMT::TilingRenderPolicyMT(VideoTimer * videoTimer, ...
<commit_before>/* * Score a grammar in striped format * ./score_grammar <alignment> < filtered.grammar > scored.grammar */ #include <iostream> #include <string> #include <map> #include <vector> #include <utility> #include <cstdlib> #include <fstream> #include <tr1/unordered_map> #include "sentence_pair.h" #include ...
<commit_before>#include "array.h" #include "test.h" namespace array { TEST(array_1d) { auto A = make_dense_array<int>(10); for_all_indices(A.shape(), [&](int x) { A(x) = x; }); auto B = make_dense_array<int>(10); B = A; for_all_indices(B.shape(), [&](int x) { ASSERT_EQ(B(x), x); }); } TEST(arr...
<commit_before>/* vim: set sw=4 sts=4 et foldmethod=syntax : */ #include <max_clique/dbmcsa_max_clique.hh> #include <max_clique/colourise.hh> #include <max_clique/print_incumbent.hh> #include <graph/degree_sort.hh> #include <graph/min_width_sort.hh> #include <algorithm> using namespace parasols; namespace { tem...
<commit_before>#include "scriptcompilerwidget.h" #include "ui_scriptcompilerwidget.h" #include <qfilesystemmodel.h> #include "scriptcompiler.h" ScriptCompilerWidget::ScriptCompilerWidget(QWidget* parent) : QDockWidget(parent), m_ui(new Ui::ScriptCompilerWidget) { m_ui->setupUi(this); m_model = new QFil...
<commit_before> // // 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) 2010 Francois Beaune // // Permission is hereby granted, free of charge, to any person obtaining a copy // of...
<commit_before>/*! \copyright (c) RDO-Team, 2011 \file main.cpp \authors Урусов Андрей (rdo@rk9.bmstu.ru) \authors Клеванец Игорь (impus@hotbox.ru) \date 2.10.2011 \brief Тест законов распределения \indent 4T */ // ---------------------------------------------------------------------...
<commit_before>#include "nodes/node.hh" #include "nodes/node_system.hh" #include <vector> #include <tuple> namespace doanimate { class Manager { nodes::NodeSystem* system; std::vector<size_t> inputs; std::vector<size_t> outputs; public: float frames_per_second; size_t width; size_t height; size_t a...
<commit_before>/// HEADER #include "pointcloud_to_pointmatrix.h" /// PROJECT #include <csapex/model/connector_in.h> #include <csapex/model/connector_out.h> #include <utils_param/parameter_factory.h> #include <csapex_vision/cv_mat_message.h> /// SYSTEM #include <csapex/utility/register_apex_plugin.h> #include <pcl/poi...
<commit_before>/************************************************************************* * * $RCSfile: XMLTableShapeImportHelper.hxx,v $ * * $Revision: 1.8 $ * * last change: $Author: sab $ $Date: 2002-05-28 06:55:01 $ * * The Contents of this file are made available subject to the terms of * either of t...
<commit_before>#include <SDL2/Sdl2Backend.h> #include <SDL2/Sdl2Window.h> #include <iostream> #include <cmath> #include <direct.h> #include "../Include/Boost.h" #include "Application.h" #include "IBackend.h" #include "Modeler3D.h" #include "Types.h" #include "Math/ModelerMath.h" using namespace Core; using namespace...
<commit_before>// // Created by Evan Almonte on 10/29/2015. // #include <iostream> #include <cstdlib> #include <ctime> #include "Deck.hpp" using std::cout; int main ( ) { srand (static_cast<unsigned int>(time (NULL))); Deck original; cout << "---------Before Shuffle---------\n"; cout << original; original.shuff...
<commit_before>// ------------------------------------------------------------------------ // Pion is a development platform for building Reactors that process Events // ------------------------------------------------------------------------ // Copyright (C) 2007-2008 Atomic Labs, Inc. (http://www.atomiclabs.com) // ...
<commit_before>/*------------------------------------------------------------------------ * (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 * i...
<commit_before>/***************************************************************************** * This file is part of the Gluon Development Platform * Copyright (c) 2011 Laszlo Papp <djszapi@archlinux.us> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Genera...
<commit_before>// This Source Code Form is licensed MPL-2.0: http://mozilla.org/MPL/2.0 #include <websocketpp/config/asio_no_tls.hpp> #include <websocketpp/server.hpp> typedef websocketpp::server<websocketpp::config::asio> server; #include <jsonipc/jsonipc.hh> #include <bse/platform.hh> #include <bse/regex.hh> #incl...
<commit_before>#include <string> #include "acmacs-base/argv.hh" #include "acmacs-base/enumerate.hh" #include "acmacs-chart-2/chart.hh" #include "acmacs-chart-2/factory-import.hh" #include "hidb-5/hidb.hh" // ---------------------------------------------------------------------- using namespace acmacs::argv; struct ...
<commit_before>/* * database_impl.cpp * * Created on: Jul 13, 2015 * Author: zmij */ #include <tip/db/pg/detail/database_impl.hpp> #include <tip/db/pg/detail/connection_pool.hpp> #include <tip/db/pg/error.hpp> #include <stdexcept> #ifdef WITH_TIP_LOG #include <tip/version.hpp> #endif #include <tip/db/pg/lo...
<commit_before>/* * Copyright 2017 WebAssembly Community Group participants * * 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 * * Unl...
<commit_before>// License: Apache 2.0. See LICENSE file in root directory. // Copyright(c) 2016 Intel Corporation. All Rights Reserved. #include "windows/v10/disk_read.h" #include "windows/v10/file_types.h" #include "windows/v10/conversions.h" #include "include/file.h" #include "rs/utils/log_utils.h" namespace { ...
<commit_before>/*=================================================================== APM_PLANNER Open Source Ground Control Station (c) 2013 APM_PLANNER PROJECT <http://www.diydrones.com> This file is part of the APM_PLANNER project APM_PLANNER is free software: you can redistribute it and/or modify it under...
<commit_before> /* riscv_register.cpp - RISCV register info class * @author Alexandr Misevich * Copyright 2018 MIPT-MIPS */ #include "riscv_register.h" std::array<std::string_view, RISCVRegister::MAX_REG> RISCVRegister::regTable = {{ // NOLINTNEXTLINE(cppcoreguidelines-macro-usage) #define REGISTER(X) # X #inc...
<commit_before>#include <common/buffer.h> #include <event/action.h> #include <event/callback.h> #include <event/event_callback.h> #include <event/event_main.h> #include <event/event_system.h> #include <http/http_server_pipe.h> #include <io/net/tcp_server.h> #include <io/pipe/pipe.h> #include <io/pipe/pipe_producer....
<commit_before>/* AFE Firmware for smart home devices LICENSE: https://github.com/tschaban/AFE-Firmware/blob/master/LICENSE DOC: http://smart-house.adrian.czabanowski.com/afe-firmware-pl/ */ #include "AFE-Web-Server.h" AFEWebServer::AFEWebServer() {} void AFEWebServer::begin() { httpUpdater.setup(&server); s...
<commit_before><commit_msg>Remove unusued function (#1508)<commit_after><|endoftext|>
<commit_before> #include "IntegratorGKMultiPoint_TEST.h" #include "../MathLib/MathConstants.h" #include "../MathLib/MathUtils.h" namespace gk_test_aux { static const char QUADFAIL[] = "***Warning*** - Quadrature Approx Failed!!"; static const char QUADSUCC[] = "Quadrature Approx Succeded!!"; static...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/usr/hwpf/plat/fapiPlatHwpInvoker.C $ ...
<commit_before>/* Copyright 2018 The TensorFlow 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 by appl...
<commit_before>/** * @file * @author Jason Lingle * @brief Implementation of src/weapon/monophasic_energy_pulse.hxx */ /* * monophasic_energy_pulse.cxx * * Created on: 12.02.2011 * Author: jason */ #include <cmath> #include <cstdlib> #include <iostream> #include "monophasic_energy_pulse.hxx" #include ...
<commit_before>/* Copyright 2015 The TensorFlow 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 by appl...
<commit_before>/* Copyright 2016 The TensorFlow 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 by appl...
<commit_before>/* Copyright 2015 The TensorFlow 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 by appl...
<commit_before>// RUN: %clang_cc1 -std=c++0x -fsyntax-only -verify %s template<typename... Types> struct Tuple; // FIXME: Many more bullets to go // In a template-argument-list (14.3); the pattern is a template-argument. template<typename ...Types> struct tuple_of_refs { typedef Tuple<Types& ...> types; }; Tuple<...
<commit_before>void AliAnalysisTaskMEVertexingHFTest() { // // Test macro for the AliAnalysisTaskME for heavy-flavour event mixing // r.romita@gsi.de // Bool_t useParFiles=kFALSE; gROOT->LoadMacro("$ALICE_ROOT/PWG3/vertexingHF/LoadLibraries.C"); LoadLibraries(useParFiles); // Local file...
<commit_before>#include "Halide.h" #include <stdio.h> using namespace Halide; int main(int argc, char **argv) { Target target = get_jit_target_from_environment(); if (!target.has_gpu_feature() && !target.has_feature(Target::OpenGLCompute)) { printf("No gpu target enabled. Skipping test.\n"); r...
<commit_before>#include <sstream> #include <plorth/plorth-context.hpp> #include "./utils.hpp" namespace plorth { Context::Context(const Ref<Runtime>& runtime) : m_runtime(runtime) {} void Context::SetError(Error::ErrorCode code, const std::string& message) { m_error = new (m_runtime) Error(code, messa...
<commit_before>/* * Copyright (c) 2015, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. * ...
<commit_before>#pragma once #include <Communicator.hpp> #include <Addressing.hpp> #include <Collective.hpp> #include <ParallelLoop.hpp> #include <GlobalAllocator.hpp> #include <Delegate.hpp> #include <AsyncDelegate.hpp> #include <Array.hpp> #include <algorithm> #include "common.h" // #define USE_MPI3_COLLECTIVES #u...
<commit_before>// -*- c++ -*- /* * Copyright 2002, The libsigc++ Development Team * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at y...
<commit_before>/* * Copyright (c) 2002-2005 The Regents of The University of Michigan * 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 c...
<commit_before>#include <gmi_mesh.h> #include <apfMDS.h> #include <apfMesh2.h> #include <apf.h> #include <PCU.h> int main(int argc, char** argv) { assert(argc==3); MPI_Init(&argc,&argv); PCU_Comm_Init(); gmi_register_mesh(); apf::Mesh2* m = apf::loadMdsMesh(argv[1],argv[2]); m->verify(); m->destroyNative...
<commit_before>#ifndef _GRL_REALTIME_HPP_ #define _GRL_REALTIME_HPP_ #ifdef __APPLE__ #include <mach/mach.h> #include <mach/mach_time.h> #include <mach/mach_init.h> #include <mach/thread_policy.h> #include <mach/sched.h> #include <pthread.h> #include <unistd.h> #include <err.h> #include <sys/param.h> static inline u...
<commit_before>#include <boost/asio.hpp> #include <boost/bind.hpp> #include <boost/lambda/lambda.hpp> #include <boost/lambda/construct.hpp> #include <libport/thread.hh> namespace libport { namespace netdetail { #ifndef LIBPORT_NO_SSL struct SSLSettings { boost::asio::ssl::context_base::method context; boost::asi...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2006 Artem Pavlenko * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public...
<commit_before>#pragma once #include <chrono> #include <memory> #include <string> #include <vector> #include <mutex> #include <condition_variable> #include <map> #include <thread> #include <algorithm> #include "exception.hpp" #include "services/builder.hpp" #include "services/inotify.hpp" #include "services/logger.hp...
<commit_before>#include <iostream> #include <set> #include <utils/function.h> #include <algebra/sparse_matrix.h> #include <numerics/iteratsolv.h> #include <numerics/bezier.h> #include <Ldomain/ldomain_jl_basis.h> #include <Ldomain/ldomain_jl_evaluate.h> #include <Ldomain/ldomain_jl_expansion.h> #define _WAVELETTL_GAL...
<commit_before>#pragma once #include <algorithm> #include <condition_variable> #include <fastdelegate/fastdelegate.hpp> #include <mutex> #include "common.hpp" #include "components/builder.hpp" #include "components/config.hpp" #include "components/logger.hpp" #include "utils/inotify.hpp" #include "utils/string.hpp" #i...
<commit_before>// Copyright 2015 Open Source Robotics Foundation, 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 re...
<commit_before>//======================================================================= // Copyright (c) 2014 Baptiste Wicht // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //========================================================...
<commit_before>#include "application.h" #include "Adafruit_LEDBackpack.h" #include <math.h> #define TEMP_SENSOR 0x27 #define FAN_PIN A0 #define HEAT_PIN A1 #define POT_PIN A2 #define PIR_PIN A3 #define DESIRED_TEMP_FLASH_ADDRESS 0x80400 Adafruit_8x8matrix matrix1; Adafruit_8x8matrix matrix2; Adafruit_8...
<commit_before> #ifndef AT_GLOBALS_HPP #define AT_GLOBALS_HPP #include <math.h> enum { AT_X = 0, AT_Y = 1, AT_Z = 2, AT_W = 3, AT_H = 0, AT_P = 1, AT_R = 2, AT_RED = 0, AT_GREEN = 1, AT_BLUE = 2, AT_ALPHA = 3 }; #define AT_PI (3.14159265358979) #define AT_DEFAULT_TOL...
<commit_before>// Copyright 2012 Google 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 require...
<commit_before>#include <sirius.h> using namespace sirius; void test_redistr(std::vector<int> mpi_grid_dims, int M, int N) { if (mpi_grid_dims.size() != 2) { TERMINATE("2d MPI grid is expected"); } MPI_Win win; BLACS_grid blacs_grid(mpi_comm_world(), mpi_grid_dims[0], mpi_grid_dims[1]); ...
<commit_before>// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "ash/accelerators/accelerator_filter.h" #include "ash/accelerators/accelerator_controller.h" #include "ash/shell.h" #include ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: it_tplparam.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: hr $ $Date: 2006-06-19 11:53:27 $ * * The Contents of this file are ma...
<commit_before>/** @file @brief Implementation @date 2014 @author Ryan Pavlik <ryan@sensics.com>; <http://sensics.com> */ // Copyright 2014 Sensics, Inc. // // All rights reserved. // // (Final version intended to be licensed under // the Apache License, Version 2.0) // Internal Includes #in...
<commit_before>#include <crypto/crypto_encryption.h> #include <event/event_callback.h> #include <event/event_main.h> #include <event/event_system.h> #include <io/net/tcp_server.h> #include <io/pipe/pipe.h> #include <io/pipe/pipe_producer.h> #include <io/pipe/splice.h> #include <io/socket/simple_server.h> #include ...
<commit_before>//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===-------------------------...
<commit_before>#include <btBulletDynamicsCommon.h> #include "../Physics/GlmConversion.hpp" #include "RigidBody.hpp" namespace Component { RigidBody::~RigidBody() { Destroy(); } Json::Value RigidBody::Save() const { Json::Value component; component["mass"] = mass; component[...
<commit_before>#include <gloperate-qtwidgets/PluginWidget.h> #include "ui_PluginWidget.h" #include <gloperate/plugin/PluginManager.h> #include <gloperate/plugin/Plugin.h> #include <gloperate-qt/qt-includes-begin.h> #include <QAbstractButton> #include <QDragEnterEvent> #include <QDropEvent> #include <QMimeData> #inclu...
<commit_before>////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2012, John Haddon. All rights reserved. // Copyright (c) 2012-2013, Image Engine Design Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification...
<commit_before>#include "imageview.h" #include "experimentcontext.h" #include "resultspanel.h" #include "../ori/OriWidgets.h" #include "appconfig.h" #include <QBoxLayout> #include <QLabel> #include <QVariant> #include <QDebug> #include <QDateTime> #include <QPushButton> #define WORST_PREDICTED_IMAGE_W 160 #define WOR...
<commit_before>/* Copyright (c) 2010, The Mineserver Project 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, th...
<commit_before>/* * gameMgr.cpp * * Created on: Mar 11, 2017 * Author: sushil */ #include <gameMgr.h> #include <engine.h> #include <OgreMeshManager.h> GameMgr::GameMgr(Engine *engine): Mgr(engine), entitySceneNodes(){ floor = Ogre::Plane(Ogre::Vector3::UNIT_Y, 0); ceiling = new Ogre::MovablePlane("cei...
<commit_before>/* * Copyright (c) 2019, ARM Limited, All Rights Reserved * SPDX-License-Identifier: Apache-2.0 * * 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.or...
<commit_before>/* * Copyright (c) 2003-2009 Rony Shapiro <ronys@users.sourceforge.net>. * All rights reserved. Use of the code is allowed under the * Artistic License 2.0 terms, as specified in the LICENSE file * distributed with this code, or available from * http://www.opensource.org/licenses/artistic-license-2....
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: SwAppletImpl.cxx,v $ * * $Revision: 1.13 $ * * last change: $Author: hr $ $Date: 2006-08-14 17:01:53 $ * * The Contents of this file are ...
<commit_before>#ifndef MJOLNIR_PARTICLE #define MJOLNIR_PARTICLE namespace mjolnir { template<typename realT, typename coordT> struct Particle { typedef realT real_type; typedef coordT coordinate_type; realT mass; coordT position; coordT velocity; coordT force; }; template<typename realT, t...