text
stringlengths
54
60.6k
<commit_before>// // This file is part of the Marble Virtual Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2013 Adrian Draghici <draghici.adrian.b@gmail.com> // // Self #incl...
<commit_before>/************************************************************************** ** ** This file is part of Qt Creator ** ** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** Commercial Usage ** ** Licensees holding valid Qt Commercial...
<commit_before><commit_msg>Call NN model and apply forces to tires (Polaris SPHnn)<commit_after><|endoftext|>
<commit_before>// RUN: %llvmgxx %s -fasm-blocks -S -o - | FileCheck %s // Complicated expression as jump target // XFAIL: * // XTARGET: x86,i386,i686 void Method3() { // CHECK: Method3 // CHECK-NOT: alignstack asm("foo:"); // CHECK: return } void Method4() { // CHECK: Method4 // CHECK: alignstack asm { bar:...
<commit_before>// Copyright (c) 2013, Matthew Harvey. All rights reserved. #ifndef GUARD_top_panel_hpp #define GUARD_top_panel_hpp #include "account.hpp" #include <wx/panel.h> #include <wx/sizer.h> #include <vector> namespace phatbooks { // Begin forward declarations class OrdinaryJournal; class PhatbooksDatabaseC...
<commit_before> #include <assert.h> #include <thread> #include <boost/atomic.hpp> #include "LinkedList.hpp" void test0() { LinkedList<int> l; assert(l.empty()); l._checkSanity(); auto item = l.push_back(); item->value = 42; item = NULL; l._checkSanity(); assert(!l.empty()); assert(l.size() == 1); auto ret...
<commit_before>/*========================================================================= Program: Advanced Normalization Tools Copyright (c) ConsortiumOfANTS. All rights reserved. See accompanying COPYING.txt or https://github.com/stnava/ANTs/blob/master/ANTSCopyright.txt for details. This software i...
<commit_before>#include "tileManager.h" #include "scene/scene.h" #include "tile/mapTile.h" #include "view/view.h" #include <chrono> #include <algorithm> TileManager::TileManager() { // Instantiate workers for (size_t i = 0; i < MAX_WORKERS; i++) { m_workers.push_back(std::unique_ptr<TileWorker>(new Ti...
<commit_before>// (C) Copyright Gennadiy Rozental 2011. // 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) // See http://www.boost.org/libs/test for the library home page. // // File : $RCSfile$ // // ...
<commit_before>#include "errors.hpp" #include "arch/arch.hpp" #include <sys/types.h> #include <sys/stat.h> #include <unistd.h> #include <boost/scoped_array.hpp> /* head functions */ template<class metablock_t> metablock_manager_t<metablock_t>::metablock_manager_t::head_t::head_t(metablock_manager_t *manager) : mb...
<commit_before>/* * This file is part of the AzerothCore Project. See AUTHORS file for Copyright information * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU Affero General Public License as published by the * Free Software Foundation; either version 3 of the...
<commit_before>#include <vector> #include <string> #include "boost/program_options.hpp" #include "boost/lexical_cast.hpp" #include "vtrc-client-base/vtrc-client.h" #include "vtrc-common/vtrc-pool-pair.h" #include "vtrc-common/vtrc-exception.h" #include "vtrc-condition-variable.h" #include "vtrc-mutex.h" #include "v...
<commit_before>/** \file RoboteqDevice.cpp * \version 080411 * \date 2011 * * \brief class for RoboteqDevice servo driver * (C) Roboteq Inc., 2012 */ #include <iostream> #include <stdio.h> #include <string.h> #include <fcntl.h> #include <errno.h> #include <termios.h> #include <time.h> #include <sstream> #incl...
<commit_before>/* * nextpnr -- Next Generation Place and Route * * Copyright (C) 2018-19 David Shah <david@symbioticeda.com> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this perm...
<commit_before>/**************************************************************************** * * (c) 2009-2020 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org> * * QGroundControl is licensed according to the terms in the file * COPYING.md in the root of the source code directory. * ************************...
<commit_before>#include "../include/PulseaudioDevice.h" using namespace std; PulseaudioDevice::PulseaudioDevice(const AudioHeader &header) : AudioDevice(header) { pa_sample_spec ss; ss.format = PA_SAMPLE_S16NE;//PA_SAMPLE_U8; ss.channels = 1; ss.rate = 44100;//header.get_rate(); device = pa_simple_new(...
<commit_before>/// /// @file popcnt.hpp /// @brief Functions to count the number of 1 bits inside /// an array or a 64-bit word. /// /// Copyright (C) 2019 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level directory. /// #ifnd...
<commit_before>/* Copyright 2015 Ahnaf Siddiqui 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 i...
<commit_before>// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. #include "pal_config.h" #include "pal_console.h" #include "pal_utilities.h" #include <assert.h> #include <errno.h> #include <pthread.h> #include <signal...
<commit_before>// Copyright 2019 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // SemaphoreVk.cpp: Defines the class interface for SemaphoreVk, implementing // SemaphoreImpl. #include "libANGLE/renderer/vulkan/...
<commit_before>/************************************************************************* * * $RCSfile: ignoreBaFa_ja_JP.cxx,v $ * * $Revision: 1.7 $ * * last change: $Author: rt $ $Date: 2003-05-21 08:05:43 $ * * The Contents of this file are made available subject to the terms of * either of the followi...
<commit_before>/*========================================================================= Library : Image Registration Toolkit (IRTK) Module : $Id$ Copyright : Imperial College, Department of Computing Visual Information Processing (VIP), 2008 onwards Date : $Date$ Version : $Revis...
<commit_before>// // OCCAM // // Copyright (c) 2011-2016, SRI International // // 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 cop...
<commit_before>inline cov_mat_kth::cov_mat_kth( const std::string in_path, const std::string in_actionNames, const int in_scale_factor, const int in_shift, const int in_scene, //only for kth const int in_segment_length ) :path(in_path), actionNames(in_actionNames), scale_factor(in_scale_fact...
<commit_before>inline cov_mat_kth::cov_mat_kth( const std::string in_path, const std::string in_actionNames, const int in_scale_factor, const int in_shift, const int in_scene, //only for kth const int in_segment_length ) :path(in_path), actionNames(in_actionNames), scale_factor(in_scale_fact...
<commit_before>#pragma once #ifndef OPENGM_PLANAR_MAXCUT_HXX #define OPENGM_PLANAR_MAXCUT_HXX #include "planar_maxcut_graph.hxx" namespace opengm { /// OpenGM wrappers around third party algorithms namespace external { /// \cond HIDDEN_SYMBOLS /// \brief MAXCUT for planar graphs class PlanarMaxCut { public: ...
<commit_before>/******************************************************************************* * thrill/api/read_lines.hpp * * Part of Project Thrill. * * Copyright (C) 2015 Alexander Noe <aleexnoe@gmail.com> * Copyright (C) 2015 Timo Bingmann <tb@panthema.net> * * This file has no license. Only Chuck Norris c...
<commit_before>/* * SessionConnections.cpp * * Copyright (C) 2009-12 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 Ge...
<commit_before>//===- EHPersonalities.cpp - Compute EH-related information ---------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/* Copyright (c) 2015 Diego Ongaro * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTH...
<commit_before>#include <math.h> #include "YRTGroup.h" #include "YRTScene.h" #include "YRTSphere.h" #include "YRTTriangle.h" #include "YRTUtils.h" #pragma hdrstop TYRTScene::~TYRTScene(void) { delete _shape; } TYRTShape* TYRTScene::GenerateExample_01Triangles(int width, int height) { TYRTGroup *result = new...
<commit_before>#include "collection.h" #include "jsonlistmodel.h" namespace com { namespace cutehacks { namespace gel { Collection::Collection(QObject *parent) : QSortFilterProxyModel(parent) { connect(this, SIGNAL(rowsRemoved(QModelIndex,int,int)), this, SLOT(emitCountChanged())); connect(this, S...
<commit_before>#ifndef STAN_MATH_PRIM_PROB_CATEGORICAL_LOGIT_GLM_LPMF_HPP #define STAN_MATH_PRIM_PROB_CATEGORICAL_LOGIT_GLM_LPMF_HPP #include <stan/math/prim/meta.hpp> #include <stan/math/prim/err.hpp> #include <stan/math/prim/fun/exp.hpp> #include <stan/math/prim/fun/log.hpp> #include <stan/math/prim/fun/size.hpp> #i...
<commit_before>/* Copyright (c) 2009 - http://ruinwesen.com/ */ #include "Encoders.hh" #include "MidiTools.h" #include "Midi.h" #include "GUI.h" /* handlers */ /** * \addtogroup GUI * * @{ * * \addtogroup gui_encoders Encoder classes * * @{ * * \file * Encoder classes **/ class Encoder; /** * Handle a ...
<commit_before>#include "brawlmd5.h" #include "brawlextract.h" #include "brawlsdiff.h" #include "find_children.h" using namespace System; using namespace System::Collections::Generic; using namespace System::ComponentModel; using namespace System::IO; using namespace System::Reflection; using namespace System::Text::R...
<commit_before>/** * @file turbulence.cpp * * @date Jan 7, 2015 * @author Tack */ #include <boost/lexical_cast.hpp> #include "turbulence.h" #include "plugin_factory.h" #include "logger_factory.h" #include "level.h" #include "forecast_time.h" #include "regular_grid.h" #include "util.h" using namespace std; using...
<commit_before>// ////////////////////////////////////////////////////////////////////// // Import section // ////////////////////////////////////////////////////////////////////// // STL #include <cassert> #include <sstream> #include <cmath> // StdAir #include <stdair/basic/BasConst_General.hpp> #include <stdair/basic...
<commit_before>#include "rosplan_planning_system/PlanDispatcher.h" #include <map> namespace KCL_rosplan { int PlanDispatcher::getCurrentAction() { return current_action; } void PlanDispatcher::reset() { dispatch_paused = false; current_action = 0; action_received.clear(); action_completed.clear(); rep...
<commit_before>/* * SRT - Secure, Reliable, Transport * Copyright (c) 2018 Haivision Systems Inc. * * 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/. * */ #ifnd...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2006 Artem Pavlenko, Jean-Francois Doyon * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU L...
<commit_before>//////////////////////////////////////////////////////////////////////// // multifstream.cpp // #include "cxxtools/multifstream.h" multifstreambuf::multifstreambuf(const char* pattern, int flags) : current(0) { glob(pattern, flags, 0, &mglob); if (mglob.gl_pathv[current]) file.open(mglob.gl_p...
<commit_before>/******************************************************************************* * Copyright (c) 2014, 2015 IBM Corporation and others * * 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>#include "framework/configfile.h" #include "framework/data.h" #include "framework/framework.h" #include "framework/trace.h" #include "game/state/battle/battlemapsector.h" #include "game/state/battle/battlemaptileset.h" #include "game/state/battle/battleunitimagepack.h" #include "game/state/gamestate.h" #...
<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>#pragma once /* ** Copyright (C) 2012 Aldebaran Robotics ** See COPYING for the license */ #ifndef _QIMESSAGING_URL_HPP_ #define _QIMESSAGING_URL_HPP_ #include <string> #include <vector> #include <qimessaging/api.hpp> namespace qi { class UrlPrivate; /** qi::Url is an address represented by a ...
<commit_before>/* * Part of Appstream, a library for accessing AppStream on-disk database * Copyright 2014 Sune Vuorela <sune@vuorela.dk> * * Based upon database-read.hpp * Copyright (C) 2012-2014 Matthias Klumpp <matthias@tenstral.net> * * This library is free software; you can redistribute it and/or * modify...
<commit_before>// RUN: %clang -no-canonical-prefixes %s -### -o %t.o 2>&1 \ // RUN: -target armv6m-none-eabi \ // RUN: -T semihosted.lds \ // RUN: -L some/directory/user/asked/for \ // RUN: --sysroot=%S/Inputs/baremetal_arm \ // RUN: | FileCheck --check-prefix=CHECK-V6M-C %s // CHECK-V6M-C: "[[PREFIX_...
<commit_before>// // Copyright (c) 2015, Deutsches Forschungszentrum für Künstliche Intelligenz GmbH. // 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 mus...
<commit_before>//===-- OProfileJITEventListener.cpp - Tell OProfile about JITted code ----===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/****************************************************************************** * Copyright 2014 Micah C Chambers (micahc.vt@gmail.com) * * 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 th...
<commit_before>//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // version: $Id$ // author: Vassil Vassilev <vasil.georgiev.vasilev@cern.ch> //------------------------------------------------------------------------------ #include "ValuePri...
<commit_before>#include "nw_screen_api.h" #include "base/lazy_instance.h" #include "base/values.h" #include "content/nw/src/api/nw_screen.h" #include "extensions/browser/extensions_browser_client.h" #include "ui/gfx/display_observer.h" #include "ui/gfx/screen.h" // For desktop capture APIs #include "base/base64.h" #i...
<commit_before>#pragma once #include <rai/lib/numbers.hpp> #include <deque> #include <mutex> #include <thread> namespace rai { class node; class vote_generator { public: vote_generator (rai::node &, std::chrono::milliseconds); void add (rai::block_hash const &); void stop (); private: void run (); void send (s...
<commit_before>/** * @file dropconnect_layer.hpp * @author Palash Ahuja * * Definition of the DropConnectLayer class, which implements a regularizer * that randomly sets connections to zero. Preventing units from co-adapting. */ #ifndef __MLPACK_METHODS_ANN_LAYER_DROPCONNECT_LAYER_HPP #define __MLPACK_METHODS_AN...
<commit_before>/* Begin CVS Header $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/Attic/main.cpp,v $ $Revision: 1.4 $ $Name: $ $Author: shoops $ $Date: 2006/04/27 01:34:21 $ End CVS Header */ // Copyright 2005 by Pedro Mendes, Virginia Tech Intellectual // Properties, Inc. and EML Resear...
<commit_before> /* * Copyright (c) 2012 Karl N. Redgate * * 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, m...
<commit_before>#include <gtest/gtest.h> #include <entt/core/hashed_string.hpp> #include <entt/meta/context.hpp> #include <entt/meta/factory.hpp> struct base {}; struct clazz: base { clazz() = default; clazz(int) : clazz{} {} clazz(char, int) : clazz{} {} int func(int v) { re...
<commit_before>/* -*- mode:C++; indent-tabs-mode:nil; -*- */ /* MyThOS: The Many-Threads Operating System * * 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, includi...
<commit_before>#include "app_fontrenderer.h" #include <stdexcept> #ifndef NDEBUG #include <stdio.h> #endif #include "common.h" #include "snippets.h" FontRenderWorker::Job::Job(size_t index, size_t & count_rendered) : index(index), count_rendered(count_rendered) { } FontRenderWorker::FontRenderWorke...
<commit_before>/*********************************************************************** filename: SamplesFrameworkBase.cpp created: 24/9/2004 author: Paul D Turner *************************************************************************/ /***********************************************************...
<commit_before>/* docker-script: run script files inside Docker containers Copyright (c) 2017, Adam Rehn 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 withou...
<commit_before>#ifndef __PROCESS_PROTOBUF_HPP__ #define __PROCESS_PROTOBUF_HPP__ #include <glog/logging.h> #include <google/protobuf/message.h> #include <google/protobuf/repeated_field.h> #include <vector> #include <tr1/unordered_map> #include <process/process.hpp> // Provides a "protocol buffer process", which ...
<commit_before>// Copyright (c) 2010 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 "base/message_loop.h" #include "base/scoped_ptr.h" #include "base/utf_string_conversions.h" #include "testing/gtest/include/gt...
<commit_before>/* * Copyright (C) 2004-2021 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>/************************************************************************* * * $RCSfile: TaskPaneTreeNode.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: kz $ $Date: 2005-03-18 16:49:46 $ * * The Contents of this file are made available subject to the terms of * either of the followi...
<commit_before>/* * Copyright (c) 2011, Soar Qin<soarchin@gmail.com> * 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...
<commit_before>// // MIT License // // Copyright (c) 2017-2018 Thibault Martinez and Simon Ninon // // 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 l...
<commit_before>/******************************************************************************* Copyright The University of Auckland 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....
<commit_before>#include <RcppArmadillo.h> #include "bootstrappers.h" #include "inference.h" #include "gmwm_logic.h" // Used for scales_cpp #include "wave_variance.h" #include "analytical_matrix_derivatives.h" #include "model_selection.h" #include "ts_model_cpp.h" //#include "automatic_models.h" using namespace Rc...
<commit_before> #include <opencv\cv.h> #include <opencv\highgui.h> #include <opencv2\flann\lsh_table.h> #include <limits> using namespace std; using namespace cv; //our sensitivity value to be used in the threshold() function const static int SENSITIVITY_VALUE = 20; //size of blur used to smooth the image to remove p...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/initfiles/p9_cxa_scom.C $ ...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/initfiles/p9c_mi_scom.C $ ...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/memory/lib/fir/unmask.C $ ...
<commit_before>/************************************************************************** ** ** This file is part of Qt Creator ** ** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** Commercial Usage ** ** Licensees holding valid Qt Commercial...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/nest/p9_fbc_smp_utils.H $ ...
<commit_before>// // This file is part of the Marble Desktop Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2010 Dennis Nienhüser <earthwings@gentoo.org> // #include "GosmoreR...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2012 Research In Motion ** Contact: http://www.qt-project.org/ ** ** This file is part of the QtSensors module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** GNU Lesser General Public License Usage ** T...
<commit_before>/*------------------------------------------------------------------------- * * combocid.c * Combo command ID support routines * * Before version 8.3, HeapTupleHeaderData had separate fields for cmin * and cmax. To reduce the header size, cmin and cmax are now overlayed * in the same field in t...
<commit_before>// -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*- #include "RateThreadOutput.hpp" void rd::RateThreadOutput::init(yarp::os::ResourceFinder &rf) { rateMs = DEFAULT_RATE_MS; printf("--------------------------------------------------------------\n"); if (rf.check("help"...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/utils/imageProcs/p9_scan_compression.H $ ...
<commit_before>/* DaiMysha GameDeV Tools * Light System * * * * * * This is meant to be used with the SFML graphic library */ #ifndef HEADER_DMGDVT_LIGHTSYSTEM #define HEADER_DMGDVT_LIGHTSYSTEM #include <list> #include <SFML/Graphics.hpp> #include "Light.hpp" namespace DMGDVT { namespace LS { class LightSys...
<commit_before>/************************************************************************* Name: Isabell Jansson, Jonathan Bosson, Ronja Grosz File name: Viewport.cpp Viewport is used as a OpenGL controller. Viewport is responsible for managing all openGL related activities. **************************************...
<commit_before>// Copyright (c) 2012, Steinwurf ApS // 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, thi...
<commit_before>#include <mandelbrot.h> #include <static_image.h> #include <math.h> #include <string.h> #include <stdio.h> #include <sys/time.h> int main(int argc, char **argv) { Image<int> output(100, 30); const char *code = " .:-~*={}&%#@"; const int iters = strlen(code) - 1; struct timeval t1, t2; ...
<commit_before>#include "nan.h" #include "buffer_offset_index.h" #include "point.h" using namespace v8; static Nan::Persistent<String> row_string; static Nan::Persistent<String> column_string; static Nan::Maybe<Point> PointFromJS(Nan::MaybeLocal<Object> maybe_object) { Local<Object> object; if (!maybe_object.ToL...
<commit_before>/**************************************************************************** * * Copyright (c) 2018 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: *...
<commit_before>// Copyright (c) 2008, Google 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, thi...
<commit_before>#ifndef COMPASS_RT_X86_GNU_CPUID_H_ #include "detail/ct/detect_compiler.hpp" #ifdef COMPASS_CT_COMP_GCC #define COMPASS_RT_X86_GNU_CPUID_H_ #include "detail/tags.hpp" #include "detail/definitions.hpp" #include "detail/rt/x86/cpuid_common.hpp" #include <array> #include <cstdint> namespace compass {...
<commit_before>/* * Copyright 1999-2004 The Apache Software Foundation. * * 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>/* * Copyright 1999-2004 The Apache Software Foundation. * * 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>/*========================================================================= Program: Medical Imaging & Interaction Toolkit Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. See MITKC...
<commit_before>#pragma once #include <memory> #include <vector> #include <boost/thread/tss.hpp> #include <boost/thread/shared_mutex.hpp> #include "blackhole/attribute.hpp" #include "blackhole/config.hpp" #include "blackhole/detail/config/atomic.hpp" #include "blackhole/detail/config/noncopyable.hpp" #include "blackh...
<commit_before>#pragma once #include <memory> #include <vector> #include <boost/thread/tss.hpp> #include "blackhole/attribute.hpp" #include "blackhole/detail/config/atomic.hpp" #include "blackhole/detail/config/noncopyable.hpp" #include "blackhole/detail/config/nullptr.hpp" #include "error/handler.hpp" #include "fil...
<commit_before>/* board_wire.cpp - Arduino-XC HAL API implementation of Wire/I2C peripheral Copyright (c) 2016 Ravendyne Inc. 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...
<commit_before>// The local APIC manages internal (non-I/O) interrupts. // See Chapter 8 & Appendix C of Intel processor manual volume 3. #include "types.h" #include "amd64.h" #include "kernel.hh" #include "traps.h" #include "bits.hh" #include "cpu.hh" #include "apic.hh" #include "kstream.hh" static console_stream ve...
<commit_before>#include "warnings-disable.h" WARNINGS_DISABLE #include <QtTest/QtTest> #include <QSettings> #include "ui_setupdialog.h" WARNINGS_ENABLE #include "../qtest-platform.h" #include "utils.h" #include <TSettings.h> #include "setupdialog.h" //! Compares all the keys in two QSettings files. static bool ...
<commit_before> #include "btree/modify_oper.hpp" #include "utils.hpp" #include <boost/shared_ptr.hpp> #include "buffer_cache/buf_lock.hpp" #include "buffer_cache/co_functions.hpp" #include "btree/leaf_node.hpp" #include "btree/internal_node.hpp" #include "buffer_cache/co_functions.hpp" #include "slice.hpp" // TODO: ...
<commit_before>/** * Copyright 2014 Open Connectome Project (http://openconnecto.me) * Written by Da Zheng (zhengda1936@gmail.com) * * This file is part of FlashGraph. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may...
<commit_before>// Copyright 2010-2014 RethinkDB, all rights reserved. #include "btree/operations.hpp" #include "btree/internal_node.hpp" #include "btree/leaf_node.hpp" #include "btree/node.hpp" #include "btree/slice.hpp" #include "buffer_cache/alt/alt.hpp" #include "concurrency/promise.hpp" #include "rdb_protocol/prof...
<commit_before>/* bzflag * Copyright (c) 1993-2010 Tim Riker * * This package is free software; you can redistribute it and/or * modify it under the terms of the license found in the file * named COPYING that should have accompanied this file. * * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR * IMPLIED...