text
stringlengths
54
60.6k
<commit_before>/******************************************************************************* * * MIT License * * Copyright (c) 2017 Advanced Micro Devices, Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software...
<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 "chrome/browser/content_settings/content_settings_notification_provider.h" #include "base/string_util.h" #include "chrome/br...
<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 "base/file_util.h" #include "base/path_service.h" #include "base/ref_counted.h" #include "chrome/browser/download/download_man...
<commit_before>/* Resembla https://github.com/tuem/resembla Copyright 2017 Takashi Uemura 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 req...
<commit_before>/* Flexisip, a flexible SIP proxy server with media capabilities. Copyright (C) 2012 Belledonne Communications SARL. 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...
<commit_before>/******************************************************************************* * ALMA - Atacama Large Millimiter Array * (c) European Southern Observatory, 2011 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as pu...
<commit_before>#include <iostream> #include <unistd.h> #include <sys/types.h> #include <sys/wait.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <cstring> using namespace std; //___ERROR LIST___ //test exit after commands //test semi-colons before/after commands //Prompt multi-prints when space...
<commit_before>// BriocheBot // The MIT License(MIT) // // Copyright(c) 2015 Abricot Soinou <abricot.soinou@gmail.com> // // 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...
<commit_before>#define FUSE_USE_VERSION 26 #include "FBGraph.h" #include "FBQuery.h" #include "Util.h" #include <boost/filesystem.hpp> #include <fuse.h> #include "json_spirit.h" #include <cerrno> #include <ctime> #include <cstring> #include <iostream> #include <memory> #include <set> #include <string> #include <syst...
<commit_before>// -*-c++-*- /* * $Id$ * * DirectX file converter for OpenSceneGraph. * Copyright (c)2002 Ulrich Hertlein <u.hertlein@sandbox.de> * * 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 Soft...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). ** Contact: Qt Software Information (qt-info@nokia.com) ** ** This file is part of the plugins of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** No Comme...
<commit_before>// set a very long point contact so that the field is almost the same as a // coaxial detector. We then compare the field in the middle part of z with the // analytic result of a true coaxial detector field { // calculate potential for point contact 2D GeFiCa::PointContactRZ *ppc = new GeFiCa::Poin...
<commit_before>/* Copyright (c) 2003, Arvid Norberg 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 condi...
<commit_before>#include <common/buffer.h> #include <event/action.h> #include <event/callback.h> #include <event/event_system.h> #include <io/channel.h> #include <io/pipe.h> #include <io/splice.h> /* * A Splice passes data unidirectionall between StreamChannels across a Pipe. */ Splice::Splice(StreamChannel *sourc...
<commit_before>#include <stdio.h> #include <fcntl.h> #include <errno.h> #include <termios.h> #include <sys/ioctl.h> #include <QtCore/QSocketNotifier> #include <QtCore/QTimer> #include <QtCore/QThread> #include <QtCore/QWaitCondition> #include "virtualserialdevice.h" namespace SymbianUtils { class VirtualSerialDeviceP...
<commit_before>/*========================================================================= * * Copyright Insight Software Consortium * * 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 ...
<commit_before>/* * Copyright (C) 2005-2019 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may ob...
<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>/*=================================================================== 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>/*========================================================================= Program: ORFEO Toolbox Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. This software is distributed WITHOUT AN...
<commit_before>#include "time.h" #include <strstream> #include <RegisterWindow.h> #include <FL/fl_file_chooser.H> RegisterWindow::RegisterWindow() { m_FixedImageViewer = ImageViewerType::New() ; m_MovingImageViewer = ImageViewerType::New() ; m_RegisteredImageViewer = ImageViewerType::New() ; m_MixedChannelVie...
<commit_before>/****************************************************************************** font.cpp SDL-based Font Rendering API Copyright (c) 2013 Jeffrey Carpenter ******************************************************************************/ #include "font.h" Font::Font ( void ) { #ifdef DEBUG_F...
<commit_before>/* * GPIO handler for Dragonboard * Author: Kenny Yokoyama & Mike Lara */ #include <fcntl.h> #include <stdio.h> #include <string.h> #include <unistd.h> #include "ros/ros.h" #include "std_msgs/Int32.h" #define GPIO_EXPORT_PATH "/sys/class/gpio/export" #define GPIO_UNEXPORT_PATH "/sys/class/gpio/u...
<commit_before>//! @file //! @copyright See <a href="LICENSE.txt">LICENSE.txt</a>. #pragma once #include "coordinates.hpp" #include "reg.hpp" #include "utility/reference.hpp" #include <array> #include <iostream> #include <memory> #include <optional> #include <string> #include <unordered_map> #include <unordered_set...
<commit_before>/* * yosys -- Yosys Open SYnthesis Suite * * Copyright (C) 2012 Clifford Wolf <clifford@clifford.at> * * 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 permission no...
<commit_before>AliAnalysisTask *AddTask_slehner_ElectronEfficiency(Bool_t hasITS = kTRUE, Int_t trackCut=1, Int_t evCut=1, TString directoryBaseName = "slehner",...
<commit_before>#if !defined(__CINT__) || defined(__MAKECINT__) #include <TMath.h> #include <TROOT.h> #include <Riostream.h> #include <TCanvas.h> #include <TString.h> #include <TFile.h> #include <TList.h> #include <TH1F.h> #include <TH1D.h> #include <TF2.h> #include <TFitResult.h> #...
<commit_before>#include <limits> #include <boost/math/special_functions/fpclassify.hpp> #include <stan/agrad/rev/functions/abs.hpp> #include <test/unit/agrad/util.hpp> #include <gtest/gtest.h> TEST(AgradRev,abs_var) { AVAR a = 0.68; AVAR f = abs(a); EXPECT_FLOAT_EQ(0.68, f.val()); AVEC x = createAVEC(a); VE...
<commit_before>#include "RhoFile.h" #include "common/StringConverter.h" namespace rho{ namespace common{ class CFileInputStream : public InputStream { CRhoFile& m_oFile; public: CFileInputStream(CRhoFile& oFile) : m_oFile(oFile){} virtual int available(){ return m_oFile.size(); } virtual int read()...
<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 2010-2012 PathScale, 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: * * 1. Redistributions of source code must retain the above copyright notice, * thi...
<commit_before>/* * Copyright (c) 2012 The WebRTC 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 in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS....
<commit_before>#include "PFCRFFMaterial.h" template<> InputParameters validParams<PFCRFFMaterial>() { InputParameters params = validParams<Material>(); params.addRequiredParam<unsigned int>("num_L", "specifies the number of complex L variables will be solved for"); return params; } PFCRFFMaterial::PFCRFFMateria...
<commit_before>/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2018 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted p...
<commit_before>// FIXME: https://code.google.com/p/address-sanitizer/issues/detail?id=316 // XFAIL: android // // RUN: %clangxx_asan -fsanitize-coverage=func %s -o %t // RUN: rm -rf %T/coverage-maybe-open-file // RUN: mkdir -p %T/coverage-maybe-open-file && cd %T/coverage-maybe-open-file // RUN: %env_asan_opts=coverage...
<commit_before>// RUN: %clang_cl_asan -O0 %s -Fe%t // RUN: not %run %t 2>&1 | FileCheck %s #include <stdio.h> char bigchunk[1 << 30]; int main() { printf("Hello, world!\n"); scanf("%s", bigchunk); // CHECK-NOT: Hello, world! // CHECK: Shadow memory range interleaves with an existing memory mapping. // CHECK: ASa...
<commit_before>#include <boost/shared_ptr.hpp> #include <boost/concept_check.hpp> #include <iostream> #include <iomanip> #include <TClass.h> #include <TDataMember.h> #include <TDataType.h> #include <TFile.h> #include <TKey.h> #include <TMemberInspector.h> #include <TStreamerElement.h> #include <TVirtualStreamerInfo.h>...
<commit_before>#include "ics3/ics3.hpp" #include "core.hpp" #include "ics3/angle.hpp" #include "ics3/eeprom.hpp" #include "ics3/parameter.hpp" #include "ics3/id.hpp" ics::ICS3::ICS3(const char* path, ICSBaudrate baudrate) throw(std::invalid_argument, std::runtime_error) : core(Core::getReference(path, static_cast<s...
<commit_before>// Copyright 2019, Institute for Artificial Intelligence - University of Bremen // Author: Andrei Haidu (http://haidu.eu) #include "Events/SLSlicingEventHandler.h" #include "SLEntitiesManager.h" #include "Tags.h" #if SL_WITH_SLICING #include "SlicingBladeComponent.h" #endif // SL_WITH_SLICING // UUtils...
<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><commit_msg>Include <stdlib.h> for the declarations of memcpy, malloc, free. This is needed for the "chromium-rel-linux-jaunty" builder.<commit_after><|endoftext|>
<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 (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 "net/curvecp/messenger.h" #include "base/logging.h" #include "base/message_loop.h" #include "net/base/io_buffer.h" #include "...
<commit_before><commit_msg>Make SpdySession::GetSSLInfo work when the SpdySession is constructed using SpdySession::InitializeWithSocket. The is_secure_ member needs to be set to true.<commit_after><|endoftext|>
<commit_before>#include "Vajra/Engine/Components/DerivedComponents/Camera/Camera.h" #include "Vajra/Engine/Components/DerivedComponents/Transform/Transform.h" #include "Vajra/Engine/Core/Engine.h" #include "Vajra/Engine/GameObject/GameObject.h" #include "Vajra/Engine/Lighting/ShadowMap.h" #include "Vajra/Engine/RenderS...
<commit_before>#include <znc/main.h> #include <znc/User.h> #include <znc/IRCNetwork.h> #include <znc/Modules.h> #include <znc/Nick.h> #include <znc/Chan.h> #include <znc/IRCSock.h> #include <znc/version.h> #include <limits> #include "twitchtmi.h" #include "jload.h" #if (VERSION_MAJOR < 1) || (VERSION_MAJOR == 1 && V...
<commit_before>// Copyright (c) 2013 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 "ui/message_center/views/message_popup_collection.h" #include <set> #include "base/bind.h" #include "base/timer.h" #include ...
<commit_before>#define WIN32_LEAN_AND_MEAN #include <windows.h> #include <uv.h> #include <string> #include <sstream> #include <map> #include <memory> #include <utility> #include <vector> #include "../worker_platform.h" #include "../worker_thread.h" #include "../../message.h" #include "../../log.h" #include "../../loc...
<commit_before>/****************************************************************/ /* MOOSE - Multiphysics Object Oriented Simulation Environment */ /* */ /* All contents are licensed under LGPL V2.1 */ /* See LICENSE for full r...
<commit_before>/******************************************************************************\ * File: util.cpp * Purpose: Implementation of wxextension utility methods * Author: Anton van Wezenbeek * RCS-ID: $Id$ * * Copyright (c) 2009 Anton van Wezenbeek * All rights are reserved. Reprod...
<commit_before>TEveWindowSlot *s = 0; void test_windows() { TEveManager::Create(); TEveUtil::Macro("pointset_test.C"); TEveWindowSlot *slot = 0; TEveWindowFrame *evef = 0; TEveViewer *v = 0; TGCompositeFrame *cf = 0; // ---------------------------------------------------------------- slo...
<commit_before>#ifndef STAN_MATH_PRIM_SCAL_FUN_GRAD_REG_INC_GAMMA_HPP #define STAN_MATH_PRIM_SCAL_FUN_GRAD_REG_INC_GAMMA_HPP #include <stan/math/prim/scal/err/domain_error.hpp> #include <stan/math/prim/scal/err/check_not_nan.hpp> #include <stan/math/prim/scal/fun/gamma_p.hpp> #include <stan/math/prim/scal/fun/gamma_q....
<commit_before>#include <stdio.h> #include <stdlib.h> #include <ctype.h> #include <ncurses.h> #define N 0x10 struct TCoordenada{ double x; double y; }; struct TAnillo{ double x; double y; }; void rellena_con_mierda_la_piii_serpiente(struct TAnillo coordenada[N]){ for (int i=0; i<N; i++){ ...
<commit_before>#include "encoder.hh" #include "../format/format-stream.hh" namespace mimosa { namespace json { Encoder::Encoder(stream::Stream::Ptr output) : output_(output) { } bool Encoder::startObject() { if (!state_.empty() && state_.back() == kObjectKey) throw Synt...
<commit_before>#ifndef BITS_HPP #define BITS_HPP #include <cstdint> #ifdef _MSC_VER # include <intrin.h> #endif #if defined(__GNUC__) static int popcnt(std::uint8_t n) { return __builtin_popcount(n); } static int popcnt(std::uint16_t n) { return __builtin_popcount(n); } static int popcnt(std::uint32_t n) { ...
<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>#include "base/logging.h" #include "input/input_state.h" #include "ui/screen.h" #include "ui/ui.h" ScreenManager::ScreenManager() { nextScreen_ = 0; uiContext_ = 0; dialogFinished_ = 0; } ScreenManager::~ScreenManager() { shutdown(); } void ScreenManager::switchScreen(Screen *screen...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: unopropertyarrayhelper.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: ihi $ $Date: 2008-01-14 12:56:18 $ * * The Contents of this...
<commit_before>// This file is a part of the OpenSurgSim project. // Copyright 2013, SimQuest Solutions 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.or...
<commit_before>/* * A simple pelvis motion control block for use with bipeds. Uses PD control to regulate the pelvis * to a fixed height above the feet and drives the yaw to match the average foot yaw. * */ #include "controlUtil.h" struct PelvisMotionControlData { RigidBodyManipulator* r; doubl...
<commit_before>#include <plugin.hpp> #include <output.hpp> #include <core.hpp> #include <linux/input.h> #include <linux/input-event-codes.h> static bool begins_with(std::string word, std::string prefix) { if (word.length() < prefix.length()) return false; return word.substr(0, prefix.length()) == pref...
<commit_before>#include <plugin.hpp> #include <output.hpp> #include <opengl.hpp> #include <debug.hpp> #include <animation.hpp> #include <render-manager.hpp> static const char* vertex_shader = R"( #version 100 attribute mediump vec2 position; void main() { gl_Position = vec4(position.xy, 0.0, 1.0); } )"; static...
<commit_before>/*******************************************************************************/ /* Bela Csound Rendering functions */ /* */ /**********************************************************...
<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>/*========================================================================= Program: ORFEO Toolbox Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. This software is distr...
<commit_before>#pragma once #include "toast/environment.hpp" #include "toast/filesystem.hpp" #include <string> // The Toast Shared Memory Internals #define TOAST_PRIVATE_MEMPOOL_SIZE 256 // Private Memory Pool Init/Error Flags #define PMP_VERIFY 0x7A #define PMP_VALID 0x7B #define PMP_LOAD_COMPLETE 0x7C #define...
<commit_before>/** * For conditions of distribution and use, see copyright notice in license.txt * * @file VoiceToolWidget.cpp * @brief Widget for voice communication control * */ #include "StableHeaders.h" #include "DebugOperatorNew.h" #include "VoiceToolWidget.h" #include "CommunicationsServi...
<commit_before>#include "Arduino.h" #include <EBot.h> #ifdef WOKE IRrecv irrecv(receiverpin); decode_results results; #endif EBot::EBot() { } EBot::~EBot() { } void EBot::begin() { pinMode(IN1, OUTPUT); pinMode(IN2, OUTPUT); pinMode(IN3, OUTPUT); pinMode(IN4, OUTPUT); pinMode(ENA, OUTPUT); pinMode(ENB, ...
<commit_before>// This file is distributed under the MIT license. // See the LICENSE file for details. #include <visionaray/math/forward.h> #include <visionaray/array.h> #include <visionaray/material.h> #include <visionaray/get_surface.h> using namespace visionaray; // Material type to check template <typename T> u...
<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) 2017 Bastien Penavayre * Filip Roséen <filip.roseen@gmail.com> * http://b.atch.se/posts/constexpr-meta-container * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated do...
<commit_before>#ifndef PYTHONIC_INCLUDE_BUILTIN_PYTHRAN_IS_NONE_HPP #define PYTHONIC_INCLUDE_BUILTIN_PYTHRAN_IS_NONE_HPP #include "pythonic/include/utils/functor.hpp" #include "pythonic/include/types/NoneType.hpp" PYTHONIC_NS_BEGIN namespace types { struct false_type; struct true_type { operator bool() con...
<commit_before>#include <unistd.h> #include <string> #include <sstream> #include <SDL2/SDL.h> #include <SDL2/SDL_ttf.h> #include <SDL2/SDL_mixer.h> #include "Config.h" #include "Device.h" #include "Game.h" #include "Exceptions.h" using namespace std; Game::Game() { // may throw exceptions this->initSDL_Video(...
<commit_before>#include "extensions/common/wasm/wasm.h" #include "common/common/thread.h" #include "common/common/thread_synchronizer.h" #include "test/mocks/server/mocks.h" #include "test/mocks/upstream/mocks.h" #include "test/test_common/environment.h" #include "test/test_common/thread_factory_for_test.h" #include ...
<commit_before>/* * Copyright (c) 2015 Cryptonomex, Inc., and contributors. * * The MIT License * * 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...
<commit_before>#include <cstdio> #include <cstdlib> #include <unistd.h> #include <string> #include <string.h> #include <csignal> #include <netinet/in.h> #include <sys/socket.h> #include <sys/types.h> #include <sys/wait.h> #include <dirent.h> #include <fcntl.h> #include <errno.h> #include <functional> #include <unorder...
<commit_before>#pragma once #include <iterator> // ====================================================================== namespace acmacs { template <typename Parent, typename Reference> class iterator { public: using reference = Reference; using pointer = typename std::add_pointer<Ref...
<commit_before>#include "cinder/app/AppBasic.h" #include "cinder/Rand.h" #include "NVPTextBox.h" #include "NVPFont.h" #include "cinder/params/Params.h" #include "cinder/Timeline.h" #include "cinder/gl/TextureFont.h" #include "cinder/gl/gl.h" #include "cinder/gl/Texture.h" #include "cinder/Text.h" using namespace ci;...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: SlsSlideFunction.cxx,v $ * * $Revision: 1.5 $ * * last change: $Author: obo $ $Date: 2006-09-16 19:07:40 $ * * The Contents of this file ...
<commit_before>#include "Version.h" #include "SourceControl.h" #include "System/Config.h" #include "System/Events/EventLoop.h" #include "System/IO/IOProcessor.h" #include "System/Service.h" #include "System/FileSystem.h" #include "System/CrashReporter.h" #include "Framework/Storage/BloomFilter.h" #include "Application/...
<commit_before>#include <iostream> #include <cstdint> #include <random> #include <chrono> #include <vector> #include <boost/dynamic_bitset.hpp> /** * Lessons learned so far: * - SIMD registers are used as soon as we compile with -03 * - If we want to get the real speed up (and use all SIMD registers by unfolding bo...
<commit_before>/* * Copyright (c) 2017 The WebRTC 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 in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS....
<commit_before>#include <sys/time.h> #include <ctime> #include <cerrno> #include "../utils/utils.hpp" double walltime() { struct timeval tv; if (gettimeofday(&tv, NULL) == -1) fatalx(errno, "gettimeofday failed"); return (double) tv.tv_sec + (double) tv.tv_usec / 1000000.0; } double cputime() { return clock(...
<commit_before>/*********************************************************************************************************************** ** ** Copyright (c) 2011, 2015 ETH Zurich ** All rights reserved. ** ** Redistribution and use in source and binary forms, with or without modification, are permitted provided that the...
<commit_before>// Copyright (c) 2009 - Decho Corp. #include "mordor/pch.h" #include "broker.h" #include "mordor/streams/pipe.h" #include "mordor/streams/socket.h" #include "mordor/streams/ssl.h" #include "proxy.h" namespace Mordor { namespace HTTP { RequestBroker::ptr defaultRequestBroker(IOManager *ioManager, ...
<commit_before>// $Id$ #include "ConfusionNet.h" #include <sstream> #include "FactorCollection.h" #include "Util.h" #include "TranslationOptionCollectionConfusionNet.h" #include "StaticData.h" #include "Sentence.h" #include "UserMessage.h" #include "moses/FF/InputFeature.h" #include "util/exception.hh" namespace Mos...
<commit_before>/* Copyright (c) 2010 Timothy Lovorn 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, mer...
<commit_before>#include <bitbots_ros_control/wolfgang_hardware_interface.h> namespace bitbots_ros_control { /** * This class provides a combination of multiple hardware interfaces to construct a complete Wolfgang robot. * It is similar to a CombinedRobotHw class as specified in ros_control, but it is changed a bit ...
<commit_before>#include <dirent.h> #include "../InternalTypes.h" void DirectoryType::__constructor__() { auto file_path = Program::argument<TextInstance>(); auto self = Program::create<DirectoryInstance>(); self->file_path = file_path->text(); Program::push(self); } void DirectoryType::contents() { auto self ...
<commit_before>// Copyright eeGeo Ltd (2012-2015), All Rights Reserved #include "PoiRingController.h" #include "InteriorsFloorModel.h" #include "InteriorsModel.h" #include "InteriorId.h" #include "TtyHandler.h" #include "CameraHelpers.h" #include "RenderCamera.h" #include "IRayPicker.h" #include "PoiRingView.h" #inclu...
<commit_before>#include "Pipe.h" const int Pipe::pipe_size_middle = (PIPE_SIZE / 2); const int Pipe::pipe_size_middle_start = Pipe::pipe_size_middle - 1; Pipe::Pipe(SDL_Surface *sprite_param, SDL_Surface *alt_sprite_param, bool top_param, bool right_param, bool down_param, bool left_param) { init(sprite_param, al...
<commit_before>/*========================================================================= Program: Visualization Library Module: Plane.cc Language: C++ Date: $Date$ Version: $Revision$ Description: --------------------------------------------------------------------------- This file is part of...
<commit_before>#include "RDom.h" #include "Util.h" #include "IROperator.h" #include "IRPrinter.h" namespace Halide { using namespace Internal; using std::string; using std::vector; RVar::operator Expr() const { if (!min().defined() || !extent().defined()) { user_error << "Use of undefined RDom dimension...
<commit_before>/* Copyright 2014-2015 Adam Grandquist 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 ...
<commit_before>/* dlvhex -- Answer-Set Programming with external interfaces. * Copyright (C) 2005, 2006, 2007 Roman Schindlauer * Copyright (C) 2006, 2007, 2008, 2009, 2010 Thomas Krennwallner * Copyright (C) 2009, 2010 Peter Schüller * Copyright (C) 2011, 2012, 2013 Christoph Redl * * This file is part of dlvhe...
<commit_before>//2014.04.01 - 2014.04.02 - 2014.04.03 Gustaf - CTG. /* OBJECTIVE : === PLAN === - Function to identify the start and end positions of the target inside the source string. ok- Convert to a function and Test functionality. - Return a list with the positions. For each target string, just the init...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the Qt Mobility Components. ** ** $QT_BEGIN_LICENSE:LG...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/memory/lib/phy/dp16.H $ ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: StockChartTypeTemplate.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2005-09-08 01:25:05 $ * * The Contents of this ...
<commit_before>// Copyright 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/browser/android/signin/signin_manager_android.h" #include "base/android/jni_android.h" #include "base/android/jni_string....