text
stringlengths
54
60.6k
<commit_before>#include <algorithm> #include "command.hh" #include "common-args.hh" #include "eval.hh" #include "globals.hh" #include "legacy.hh" #include "shared.hh" #include "store-api.hh" #include "progress-bar.hh" #include "download.hh" #include "finally.hh" #include <sys/types.h> #include <sys/socket.h> #include...
<commit_before>/* Kopete Latex Plugin Copyright (c) 2004 by Duncan Mac-Vicar Prett <[email protected]> Copyright (c) 2004-2005 by Olivier Goffart <ogoffart@kde. org> Kopete (c) 2001-2004 by the Kopete developers <[email protected]> **********************************************************...
<commit_before>#include "taichi/backends/vulkan/aot_module_builder_impl.h" #include <fstream> #include <type_traits> #include "taichi/codegen/spirv/spirv_codegen.h" namespace taichi { namespace lang { namespace vulkan { AotModuleBuilderImpl::AotModuleBuilderImpl( const std::vector<CompiledSNodeStructs> &compile...
<commit_before>/* Copyright 2017 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 2019 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>#ifndef AMGCL_AMGCL_HPP #define AMGCL_AMGCL_HPP /* The MIT License Copyright (c) 2012-2013 Denis Demidov <[email protected]> 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 ...
<commit_before>#ifndef AMGCL_IO_MM_HPP #define AMGCL_IO_MM_HPP /* The MIT License Copyright (c) 2012-2017 Denis Demidov <[email protected]> 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...
<commit_before>/** * \file * \brief SoftwareTimerControlBlock class header * * \author Copyright (C) 2014-2016 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info * * \par License * This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was no...
<commit_before>#include <memory> #include <algorithm> #include <utility> #include "main.h" using ObjClass = uint32_t; static inline ObjClass getObjClass(unsigned char ei_class, unsigned char ei_data, unsigned char ei_osabi) { return (ei_data << 16) | (ei_class << 8) | ei_osabi; } static inline ObjClass getObjClass...
<commit_before>#include <vector> #include <string> #include <iostream> #include <queso/Environment.h> #include <queso/GslVector.h> #include <queso/GslMatrix.h> #include <queso/VectorSpace.h> int main(int argc, char **argv) { MPI_Init(&argc, &argv); QUESO::EnvOptionsValues options; options.m_numSubEnvironments =...
<commit_before>/** * Copyright (c) 2016-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. ...
<commit_before><commit_msg>add test for calculate CRC-7/ROHC<commit_after><|endoftext|>
<commit_before>// // Copyright 2013 Jeff Bush // // 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 ...
<commit_before>/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the imp...
<commit_before>/********************************************************************** * Felix Winterstein, Imperial College London * * File: main.cpp * * Revision 1.01 * Additional Comments: distributed under a BSD license, see LICENSE.txt * **********************************************************************/ #inc...
<commit_before>#ifdef NMC_HAVE_MPI #include "../gtest.h" #include <cstring> #include <vector> #include <communication/mpi_global_policy.hpp> #include <communication/mpi.hpp> #include <util/rangeutil.hpp> using namespace nest::mc; using namespace nest::mc::communication; struct big_thing { big_thing() {} bi...
<commit_before>#ifndef __PROCESS_COLLECT_HPP__ #define __PROCESS_COLLECT_HPP__ #include <assert.h> #include <set> #include <process/defer.hpp> #include <process/future.hpp> #include <process/process.hpp> namespace process { // Transforms a set of futures of type T into a set of T's. template <typename T> Future<st...
<commit_before>#ifndef BFC_AST_SEQ_HPP #define BFC_AST_SEQ_HPP #include "ast/base.hpp" #include "ast/visitor.hpp" #include <deque> namespace bfc { namespace ast { class seq : public base { using container = std::deque<node>; public: using size_type = typename container::size_type; using iterator = typename ...
<commit_before>/* * Author: Dino Wernli */ #include "scene_parser.h" #include <glog/logging.h> #include "parser/mesh_parser.h" #include "proto/scene/scene_data.pb.h" #include "proto/util/color_data.pb.h" #include "scene/camera.h" #include "scene/element.h" #include "scene/geometry/circle_plane.h" #include "scene/g...
<commit_before>/* * Copyright (C) 2004-2013 ZNC, see the NOTICE file for details. * * 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 * ...
<commit_before>/* * <one line to give the program's name and a brief idea of what it does.> * Copyright (C) 2014 Salvo Tomaselli <[email protected]> * * 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 Softwar...
<commit_before>#include "Table.h" // int insertInstruction(int state, int symbol, int newState, int newSymbol, // char instruction); // void removeInstruction(int id); // machineAction_t getAction(int state, int symbol); // TODO: implement Table methods int Table::insertInstruct...
<commit_before>/* Copyright (c) 2014 D. Niklaus. All right reserved. 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 your option) any later...
<commit_before>#include <cfloat> #include <cstdlib> #include <cmath> #include <cstdio> #include <cstring> #include <sys/time.h> #include <string> #include <algorithm> #include "Utils.hpp" using namespace std; namespace SpMP { static const double DEFAULT_CPU_FREQ = 3.33e9; double get_cpu_freq() { static double fr...
<commit_before>#ifndef __PK_HPP__ #define __PK_HPP__ #include <utility> #include <vector> #include <queue> #include <iostream> #include <fstream> #include <unordered_set> #include "model.hpp" class Evaluator { Evaluator(); virtual void evaluate(const Model&); }; class EvaluatorBinary : public Evaluator { ...
<commit_before>#include <random> #include <celero/Celero.h> /// /// This demo was created to understand the cost with various falvors of "setters" where /// a function in a class or struct is provided solely to set the value of an internal member. /// There was some guidance being provided on the internet that if you...
<commit_before>/*------------------------------------------------------------------------------ Copyright (c) 2004 Media Development Loan Fund This file is part of the LiveSupport project. http://livesupport.campware.org/ To report bugs, send an e-mail to [email protected] LiveSupport is free s...
<commit_before>// ========================================================================== // // This file is part of Sara, a basic set of libraries in C++ for computer // vision. // // Copyright (C) 2019 David Ok <[email protected]> // // This Source Code Form is subject to the terms of the Mozilla Public // Licen...
<commit_before>/* * SessionProjectSharing.hpp * * Copyright (C) 2009-15 by RStudio, Inc. * * Unless you have received this program directly from RStudio pursuant * to the terms of a commercial license agreement with RStudio, then * this program is licensed to you under the terms of version 3 of the * GNU Affero...
<commit_before>#include "Parse.hpp" #include <iostream> #include <stdexcept> #include <cctype> namespace parse { namespace tree { void Abstraction::applyVisitor(TermVisitor& termVisitor) const { termVisitor.acceptTerm(*this); } void Application::applyVisitor(TermVisitor& termVisitor) const { termVisitor.ac...
<commit_before>// // Originally written by BjÃrn Fahller ([email protected]) // Modified by Jeff Bush // // No rights claimed. The sources are released to the public domain // // For license information, please refer to <http://unlicense.org> // #include <setjmp.h> #include <stdlib.h> #include <iostream> #include <ostr...
<commit_before>#include <avr/pgmspace.h> #include <stdlib.h> char *to_print; char *pgmStrToRAM(PROGMEM char *theString) { free(to_print); to_print=(char *) malloc(strlen_P(theString) + 1); strcpy_P(to_print, theString); return (to_print); }<commit_msg>Add include to support SAMD core<commit_after>#include <avr/pgm...
<commit_before>#pragma once //#define DEFAULT_LOGGER "blockchain" #include <bts/blockchain/chain_database.hpp> #include <bts/blockchain/checkpoints.hpp> #include <bts/blockchain/config.hpp> #include <bts/blockchain/genesis_config.hpp> #include <bts/blockchain/genesis_json.hpp> #include <bts/blockchain/market_records.h...
<commit_before>// Copyright (c) 2012-2013, Zeex // 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 ...
<commit_before>// Copyright (c) 2011 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 "crypto/signature_verifier_win.h" #include "crypto/rsa_private_key.h" #include "omaha/base/debug.h" #include "omaha/base/logg...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit (ITK) Module: Language: C++ Date: Version: Copyright (c) 2000 National Library of Medicine All rights reserved. See COPYRIGHT.txt for copyright details. =====...
<commit_before>// @(#)root/mathmore:$Id$ // Author: L. Moneta Wed Dec 20 14:36:31 2006 /********************************************************************** * * * Copyright (c) 2006 LCG ROOT Math Team, CERN/PH-SFT * * ...
<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 "jingle/glue/thread_wrapper.h" #include "base/bind.h" #include "base/bind_helpers.h" #include "base/lazy_instance.h" #include...
<commit_before>#include "stdafx.h" #include "directory_description.h" #include "directory_comparer.h" #include "list_directory.h" #include "directory_mismatch.h" void test() { list_directory lister; directory_description* a(lister.read("C:\\Projects\\kitschensync - Kopie")); directory_description...
<commit_before> #include <cstring> #include <stdexcept> #include <sys/mman.h> #include <xf86drm.h> #include <xf86drmMode.h> #include <fcntl.h> #include <unistd.h> #include <drm_fourcc.h> #include <drm.h> #include <drm_mode.h> #include <kms++/kms++.h> #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) using nam...
<commit_before>#include "pen.h" #include "renderer.h" #include "timer.h" #include "file_system.h" #include "pen_string.h" #include "loader.h" #include "dev_ui.h" #include "camera.h" #include "debug_render.h" #include "pmfx.h" #include "pen_json.h" #include "hash.h" #include "str_utilities.h" #include "input.h" #include...
<commit_before>/* Copyright 2007-2015 QReal Research Group * * 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 ap...
<commit_before>/* Copyright (C) 2005 by Andrew Mann Based in part on work by Matt Reda 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 the License,...
<commit_before>// // Landscape.cpp // // Created by Soso Limited on 5/26/15. // // #include "Landscape.h" #include "cinder/Log.h" #include "Constants.h" #include "LandscapeGeometry.h" #include "cinder/Json.h" #include "cinder/Xml.h" #include "cinder/gl/GlslProg.h" #include "cinder/app/App.h" #include "cinder/Easin...
<commit_before>/* Luwra * Minimal-overhead Lua wrapper for C++ * * Copyright (C) 2015, Ole Krüger <[email protected]> */ #ifndef LUWRA_FUNCTIONS_H_ #define LUWRA_FUNCTIONS_H_ #include "common.hpp" #include "types.hpp" #include "stack.hpp" LUWRA_NS_BEGIN namespace internal { template <typename T> struct FunctionWra...
<commit_before>//===-- GameModel.cpp - Model for Game State ----------------------- c++ --===// // // UWH Timer // // This file is distributed under the BSD 3-Clause License. // See LICENSE.TXT for details. // //===--------------------------------------------...
<commit_before>/* * Copyright (c) 2019, Arm Limited and affiliates. * 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.org...
<commit_before>/* * Software License Agreement (BSD License) * * Copyright (c) 2011, Alexandru-Eugen Ichim * Willow Garage, Inc * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditi...
<commit_before>// Copyright (c) 2009-2018 The Regents of the University of Michigan // This file is part of the HOOMD-blue project, released under the BSD 3-Clause License. // Maintainer: joaander #include "IntegrationMethodTwoStep.h" #include "hoomd/VectorMath.h" #include "QuaternionMath.h" #include "hoomd/HOOMDM...
<commit_before>/***************************************************************************** ****************************************************************************** bmpgrep Author: Gordon McCreight email: [email protected] date modified: 2009-04-25 version: 0.08 License: GPL 2 Copyright: 2009 by Gordon M...
<commit_before>#include <sstream> #include "StorageFlattening.h" #include "IRMutator.h" #include "IROperator.h" #include "Scope.h" #include "Bounds.h" #include "Parameter.h" namespace Halide { namespace Internal { using std::ostringstream; using std::string; using std::vector; using std::map; using std::pair; using ...
<commit_before>/* * Project: FullereneViewer * Version: 1.0 * Copyright: (C) 2011-14 Dr.Sc.KAWAMOTO,Takuji (Ext) * Create: 2011/12/26 18:06:18 JST */ #include <assert.h> #include "SymmetryAxisNormal.h" #include "CarbonAllotrope.h" #include "OpenGLUtil.h" SymmetryAxisNormal::SymmetryAxisNormal(CarbonAllotrope* ca...
<commit_before><commit_msg>Eliminate the 8-sockets-per-proxy field trial. Reduce the percentage of clients in the max-sockets tests from 20-25% to 1%.<commit_after><|endoftext|>
<commit_before><commit_msg>#include what you use: <Security/Security.h> for SecKeychainAddCallback and friends following r43492.<commit_after><|endoftext|>
<commit_before><commit_msg>Reset the clear browser data checkbox prefs when the user clicks "Reset to defaults".<commit_after><|endoftext|>
<commit_before>//////////////////////////////////////////////////////////////////////////////// // // File: InputFld.cpp // // For more information, please see: http://www.nektar.info/ // // The MIT License // // Copyright (c) 2006 Division of Applied Mathematics, Brown University (USA), // Department of Aeronauti...
<commit_before><commit_msg>When zooming, webkit reports width and height as if the zoom wasn't there (by dividing the pixel size by the zoom factor). If we want actual pixel sizes that the content will best fit, we need to undo that.<commit_after><|endoftext|>
<commit_before>#include "qnitelinearticker.h" #include <algorithm> #include <QDebug> // defines #define DEFAULT_NUM_STEPS 10 #define DEFAULT_LOOSENESS true namespace { double nice(double x, bool round) { int exp; double f; double nicef; exp = floor(log10(x)); f = x / pow(10., exp); if...
<commit_before>/***************************************************************************************** * * * OpenSpace * * ...
<commit_before>/****************************************************************************** * Copyright 2017 The Apollo 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 ...
<commit_before>/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not d...
<commit_before>/* * Copyright 2007-2017 Content Management AG * All rights reserved. * * author: Max Kellermann <[email protected]> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * - Redistributions of source...
<commit_before>///////////////////////////////////////////////////////////////////////// // $Id: memory.cc,v 1.40 2005/04/10 19:42:48 sshwarts Exp $ ///////////////////////////////////////////////////////////////////////// // // Copyright (C) 2001 MandrakeSoft S.A. // // MandrakeSoft S.A. // 43, rue d'Aboukir /...
<commit_before>/* * Copyright (C) 2016 Hong Jen Yee (PCMan) <[email protected]> * * 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 your ...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkPLYReader.cxx 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>/*========================================================================= Program: Visualization Toolkit Module: vtkUGFacetReader.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 1993-2001 Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. Redistr...
<commit_before>/* * Copyright (C) 2022 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 ...
<commit_before>#ifndef INCLUDE_AL_BUFFER_HPP #define INCLUDE_AL_BUFFER_HPP /* * AlloSphere Research Group / Media Arts & Technology, UCSB, 2009 */ /* Copyright (C) 2006-2008. The Regents of the University of California (REGENTS). All Rights Reserved. Permission to use, copy, modify, distribute, and distribute...
<commit_before>/* Copyright 2021 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>#ifndef COMPASS_CT_MSVC_IMPL_H_ #include "detail/ct/detect_compiler.hpp" #ifdef COMPASS_CT_COMP_MSVC #define COMPASS_CT_MSVC_IMPL_H_ #include "intrin.h" #include <array> #include <bitset> #include <cstdint> #include "detail/tags.hpp" #include "detail/definitions.hpp" namespace compass { namesp...
<commit_before>// // fiber_group.hpp // fibio // // Created by Chen Xu on 14-3-20. // Copyright (c) 2014 0d0a.com. All rights reserved. // #ifndef fibio_fiber_group_hpp #define fibio_fiber_group_hpp #include <list> #include <algorithm> #include <fibio/fibers/fiber.hpp> #include <fibio/fibers/shared_mutex.hpp> na...
<commit_before> #include "Gameboy.hpp" #include "OpenGLWindow.hpp" #include "DbWindow.hpp" #include "registerAddr.hpp" #include "Cpu.hpp" #include "Gpu.hpp" #include "Memory.hpp" #include "Timer.hpp" #include "Audio.hpp" void setLowBit(Memory *memory, uint16_t addr, uint8_t bit) { memory->write_byte(addr, (uint8_t)...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2011 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>#ifndef PROTO_RPC_MESSAGE_CODING #define PROTO_RPC_MESSAGE_CODING #include <iostream> #include <utility> // for pair #include <boost/asio/read_until.hpp> // for is_match_condition #include <boost/asio/streambuf.hpp> #include <google/protobuf/io/coded_stream.h> #include <google/protobuf/io/zero_copy_st...
<commit_before>/* Copyright 2017 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>#pragma once #include "rapidcheck/detail/ApplyTuple.h" #include "rapidcheck/seq/Create.h" namespace rc { namespace seq { namespace detail { template <typename T> class DropSeq { public: DropSeq(std::size_t n, Seq<T> seq) : m_drop(n) , m_seq(std::move(seq)) {} Maybe<T> operator()() { ...
<commit_before>/** * @file llleap_test.cpp * @author Nat Goodspeed * @date 2012-02-21 * @brief Test for llleap. * * $LicenseInfo:firstyear=2012&license=viewerlgpl$ * Copyright (c) 2012, Linden Research, Inc. * $/LicenseInfo$ */ // Precompiled header #include "linden_common.h" // associated header #inclu...
<commit_before>#include <tiramisu/tiramisu.h> #include "configure.h" using namespace tiramisu; int main(int argc, char **argv) { init("conv_tiramisu"); // ------------------------------------------------------- // Layer I // ------------------------------------------------------- var x("x", 0, N)...
<commit_before>#include <nds.h> #include <stdio.h> #include "panel.h" #include "ball.h" #include "stats.h" #include "game.h" #define ERR_INIT_SBOX_FAILED 1 #define COLOR_BLACK 0 int main(void) { panel player1; panel player2; ball gameBall; scoreBox sBox; if(!initScoreBox(&sBox)) exit...
<commit_before>//#define BOOST_ASIO_SEPARATE_COMPILATION #include <boost/thread.hpp> #include <boost/bind.hpp> #include <boost/asio.hpp> #include <iostream> using namespace std; using namespace boost::asio; io_service service; ip::tcp::socket sock(service); char buff_read[1024], buff_write[1024] = "ok"; void o...
<commit_before>/** * Usage: ./Bat [options] * * Options: * -h, --help Displays this help. * -v, --version Displays version information. * -t, --title <title> Sets the window title on start. * -s, --size <WxH> Sets the BAT w...
<commit_before>//----------------------------------------------------------------------------- // Copyright (c) 2015, Jeff Hutchinson // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // // * Re...
<commit_before>#include <iostream> #include <fstream> #include <string> #include <cstdlib> #include <cstdio> int getparam (std::string input) { if(input.size() <= 3) { return -1;} int result = 0; for (int i = 3; i < input.size(); i++) { if ( input[i] < '0' || input[i] > '9') { return -2; } result = resul...
<commit_before>// // Created by everettjf // Copyright © 2017 everettjf. All rights reserved. // #include "tablecontentview.h" #include "../../utility/utility.h" #include <QHBoxLayout> #include <QDebug> TableContentView::TableContentView(QWidget *parent) : ContentViewInterface(parent) { controller = nullptr; ...
<commit_before>/*========================================================================= Library: CTK Copyright (c) Kitware 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 ...
<commit_before>#include "voxel_map.h" VoxelMap::VoxelMap() : _last_accessed_block(NULL) { for (unsigned int i = 0; i < VoxelBuffer::MAX_CHANNELS; ++i) { _default_voxel[i] = 0; } } VoxelMap::~VoxelMap() { } int VoxelMap::get_voxel(Vector3i pos, unsigned int c) { Vector3i bpos = voxel_to_block(pos); VoxelBlock ...
<commit_before>/* Copyright (c) 2014 Scott Kuhl. All rights reserved. * License: This code is licensed under a 3-clause BSD license. See * the file named "LICENSE" for a full copy of the license. */ /** @file * @author Scott Kuhl */ #include <stdlib.h> #include <stdio.h> #include <map> #include <string> #ifndef ...
<commit_before>/* Copyright (c) 2014 Scott Kuhl. All rights reserved. * License: This code is licensed under a 3-clause BSD license. See * the file named "LICENSE" for a full copy of the license. */ /** @file * @author Scott Kuhl */ #include <stdlib.h> #include <stdio.h> #include <map> #include <string> #ifndef ...
<commit_before>/*************************************************************************** * Copyright (C) 2006 by FThauer FHammer * * [email protected] * * * * This program is free software; you can redistribute it and/or modify * *...
<commit_before>// Copyright 2019 The IREE Authors // // Licensed 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 "iree/compiler/Translation/IREEVM.h" #include "iree/compiler/Bindings/Na...
<commit_before>#include "perspective_camera.h" PerspectiveCamera::PerspectiveCamera( void ) {} PerspectiveCamera::PerspectiveCamera( const float min_x, const float max_x, const float min_y, const fl...
<commit_before>// Copyright (c) 2008 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 "net/proxy/proxy_script_fetcher.h" #include "base/file_path.h" #include "base/compiler_specific.h" #include "base/path_servic...
<commit_before>#pragma once #include <tuple> #include <type_traits> namespace THI { template <std::size_t N = 0, typename Func, typename... Tp, typename std::enable_if_t<N == sizeof...(Tp)>* = nullptr> void forEach(const Func&, const std::tuple<Tp...>&) { } template <std::size_t N = 0, typename Func, type...
<commit_before>#include <stan/variational/advi.hpp> #include <gtest/gtest.h> #include <vector> #include <string> #include <boost/random/additive_combine.hpp> // L'Ecuyer RNG #include <test/test-models/good/variational/multivariate_no_constraint.hpp> typedef boost::ecuyer1988 rng_t; typedef multivariate_no_constraint...
<commit_before>#include <catch2/catch.hpp> #include "virtual_hid_device_utility.hpp" TEST_CASE("pqrs::karabiner::driverkit::virtual_hid_device_driver::hid_report::modifiers") { { namespace hid_report = pqrs::karabiner::driverkit::virtual_hid_device_driver::hid_report; hid_report::modifiers modifiers; m...
<commit_before>#include "MultipleKinectsPlatformServer.h" namespace MultipleKinectsPlatformServer{ Core::Core(/*Server Address*/string address,/*Server Port*/string httpPort,string udpPort){ try { /*Upgraded the Priority Class*/ DWORD dwPriClass; dwPriClass = GetPriorityClass(GetCurrentProcess()); cout...
<commit_before>// ------------------------------------------------------------------------- // @FileName : NFMemoryCounter.hpp // @Author : LvSheng.Huang // @Date : 2016-11-08 // @Module : NFMemoryCounter // // ---------------------------------------------...
<commit_before>#include "Bot.hh" Bot::Bot() : _action(NULL), _battle(NULL), _battleState(false), _state(0) { } Bot::~Bot() { } void Bot::_saveKeyState() { _keyState = 0; for (uint8_t i = KEY_LEFT; i <= KEY_BUTTON_AUTO_B; i++) if (sdlGetButton((EKey) i)) _keyState |= (1 << i); } void Bot::_loadKeyS...
<commit_before>#include <cmath> #include <Eigen/Core> #include <Eigen/Dense> #include <Eigen/LU> #include <angles/angles.h> #include <robot_kf/robot_kf.h> using namespace Eigen; namespace robot_kf { KalmanFilter::KalmanFilter(void) : x_(Vector3d::Zero()) , cov_x_(9999 * Matrix3d::Identity()) , A_(Matrix3...
<commit_before>/* ----------------------------------------------------------------------------- This source file is part of OGRE (Object-oriented Graphics Rendering Engine) For the latest info, see http://www.ogre3d.org/ Copyright (c) 2000-2006 Torus Knot Software Ltd Also see acknowledgements in Readme.html This pro...