text
stringlengths
54
60.6k
<commit_before>/* ****************************************************************************** * * * This program and the accompanying materials are made available under the * terms of the Apache License, Version 2.0 which is available at * https://www.apache.org/licenses/LICENSE-2.0. * * See the NOTICE file ...
<commit_before>/////////////////////////////////////////////////////////////////////////////// // // File NektarUnivTypeDefs.hpp // // For more information, please see: http://www.nektar.info // // The MIT License // // Copyright (c) 2006 Scientific Computing and Imaging Institute, // University of Utah (USA) and Depar...
<commit_before>// Copyright (c) 2017 ASMlover. 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 o...
<commit_before>/* * #%L * %% * Copyright (C) 2011 - 2014 BMW Car IT GmbH * %% * 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>/**************************************************************************** ** Copyright (c) 2000-2003 Wayne Roth ** Copyright (c) 2004-2007 Stefan Sander ** Copyright (c) 2007 Michal Policht ** Copyright (c) 2008 Brandon Fosdick ** Copyright (c) 2009-2010 Liam Staskawicz ** Copyright (c) 2011 Debao Zh...
<commit_before>/* * Copyright (C) 2014 Pavel Kirienko <pavel.kirienko@gmail.com> */ #pragma once #include <cstdlib> #include <cassert> #include <stdexcept> namespace uavcan { template <typename T> class LazyConstructor { unsigned char data_[sizeof(T)] __attribute__((aligned(16))); // TODO: compiler-independe...
<commit_before>#ifndef SDR_H_ #define SDR_H_ #include <vector> #include <array> #include <bitset> #include <iostream> #include <utility> #include <algorithm> #include <iostream> #include <cmath> #include <unordered_set> #include <future> #include <thread> namespace sdr { typedef std::size_t position_t; typedef std...
<commit_before>// Copyright (c) 2016 Dr. Colin Hirsch and Daniel Frey // Please see LICENSE for license or visit https://github.com/ColinH/PEGTL/ #include <cstdio> #include <clocale> #include "test.hh" namespace pegtl { struct file_content : seq< pegtl_string_t( "dummy content" ), eol, discard > {}; struct fil...
<commit_before> #include <SpikeHwIndication.h> #include <SpikeHwRequest.h> #include "dmaManager.h" #include "spikehw.h" int verbose = 0; class SpikeHwIndication : public SpikeHwIndicationWrapper { sem_t sem; public: uint32_t buf[16]; void irqChanged( const uint8_t irqLevel, const uint8_t intrSources ) { ...
<commit_before>/* * Tests for the next hop computation (LFDB). * * Copyright (C) 2018 Vincenzo Maffione * Author: Vincenzo Maffione <v.maffione@gmail.com> * * This file is part of rlite. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Publ...
<commit_before>/** * This file is part of the CernVM File System. */ #include "processor.h" #include <tbb/parallel_invoke.h> #include "io_dispatcher.h" #include "file.h" #include "chunk.h" using namespace upload; tbb::task* ChunkProcessingTask::execute() { // Thread Safety: // * Only one ChunkProcessingTas...
<commit_before>/* * Copyright (c) 2014 Samsung Electronics Co., Ltd. * * 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>/* OpenSceneGraph example, osgtexture3D. * * 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, modi...
<commit_before>/* Copyright (c) 2016 Neil Moore, Jason Stavrinaky, Micheal McGee, Robert Medina * * 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> // // 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-2013 Francois Beaune, Jupiter Jazz Limited // Copyright (c) 2014-2015 Francois Beaune, The appleseedhq O...
<commit_before>// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include <vespa/eval/eval/simple_value.h> #include <vespa/eval/eval/test/tensor_model.hpp> #include <vespa/eval/eval/value_codec.h> #include <vespa/eval/tensor/cell_values.h> #include <vespa/...
<commit_before>/* * MIT License * * Copyright (c) 2016 xiongziliang <771730766@qq.com> * * This file is part of ZLMediaKit(https://github.com/xiongziliang/ZLMediaKit). * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "So...
<commit_before><commit_msg>Remove depracated limitation code in Modelica generator<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * $RCSfile: dbtreeview.cxx,v $ * * $Revision: 1.17 $ * * last change: $Author: oj $ $Date: 2002-05-02 07:14:29 $ * * The Contents of this file are made available subject to the terms of * either of the following li...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: QTableConnection.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: kz $ $Date: 2007-05-10 10:37:32 $ * * The Contents of this file a...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: setup_help.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: rt $ $Date: 2005-09-08 17:54:33 $ * * The Contents of this file are mad...
<commit_before>//-------------------------------------------------------------------------------------------------- /** * @file moduleBuildScript.cpp * * Implementation of the build script generator for pre-built kernel modules. * * <hr> * * Copyright (C) Sierra Wireless Inc. */ //------------------------------...
<commit_before>#include <cstdio> #include <string> #include "catch.hh" #include "lib/File.h" #include "test_crc_support.h" void test_computing(const CRC &crc, CRCType checksum) { Progress progress; std::string content = "123456789"; auto inFile = File::fromFileName( "test-in.txt", File::Mo...
<commit_before>/* * Copyright (c) 2013 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 <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>#ifdef LINUX #include "Os.h" #include <vector> #include <string> #include <set> #include <map> #include <algorithm> #include <cstdio> #include <sys/time.h> #include <X11/Xlib.h> #include <GL/glx.h> using namespace std; Display *display = NULL; int screen = 0; XIM xim = NULL; struct OsWindowData {...
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org // // Copyright 2017 Oslo and Akershus University College of Applied Sciences // and Alfred Bratterud // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the Lice...
<commit_before><commit_msg>Revert "fix setting of paper tray from print dialog (fdo#43932)"<commit_after><|endoftext|>
<commit_before><commit_msg>assert on attempt to print after cancel<commit_after><|endoftext|>
<commit_before>/********************************************************************************* * * Inviwo - Interactive Visualization Workshop * * Copyright (c) 2018-2020 Inviwo Foundation * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permit...
<commit_before>// // Copyright 2014, 2015 Razer Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by...
<commit_before> // LogMainView.cpp : CLogMainView 类的实现 // #include "stdafx.h" // SHARED_HANDLERS 可以在实现预览、缩略图和搜索筛选器句柄的 // ATL 项目中进行定义,并允许与该项目共享文档代码。 #ifndef SHARED_HANDLERS #include "LogCC.h" #endif #include "LogCCDoc.h" #include "LogMainView.h" #include "ILogQuery.h" #include "LogQueryResult.h" #include "LogItem.h" ...
<commit_before>//@author A0097630B #include "stdafx.h" #include "query_executor.h" #include "../exceptions/context_index_out_of_range_exception.h" #include "../result.h" #include "query_executor_builder_visitor.h" namespace You { namespace Controller { namespace Internal { using You::NLP::TaskField; using You::NLP::T...
<commit_before>#ifndef VIENNAGRID_STORAGE_ID_HPP #define VIENNAGRID_STORAGE_ID_HPP #include <boost/iterator/iterator_concepts.hpp> #include <boost/type_traits/detail/is_function_ptr_helper.hpp> namespace viennagrid { namespace storage { template<typename id_type> struct id_tag; ...
<commit_before>#include<string> #include<vector> #include "vmf/metadatastream.hpp" #include "../com_intel_vmf_MetadataSet.h" using namespace vmf; static void throwJavaException(JNIEnv *env, const std::exception *e, const char *method) { std::string what = "unknown exception"; jclass je = 0; if (e) { ...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit (ITK) Module: itkMutualInformationMetricTest.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 2001 Insight Consortium All rights reserv...
<commit_before>#include "BtuLinear.h" BtuLinear::BtuLinear(): m_depthPid(DEP_K_C, DEP_TAU_I, DEP_TAU_D, PID_FREQ, DEPTH_MIN, DEPTH_MAX, VEL_MIN, VEL_MAX, 0), m_posAPid(SP_K_C, SP_TAU_I, SP_TAU_D, PID_FREQ, POS_MIN, POS_MAX, VEL_MIN, VEL_MAX, 0), m_posBPid(SP_K_C, SP_TAU_I, SP_TAU_D, PID_FREQ, POS_MIN, POS_...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: itkJoinSeriesImageFilterTest.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Insight Software Consortium. All rights reserve...
<commit_before>/* * This is part of the FL library, a C++ Bayesian filtering library * (https://github.com/filtering-library) * * Copyright (c) 2014 Jan Issac (jan.issac@gmail.com) * Copyright (c) 2014 Manuel Wuthrich (manuel.wuthrich@gmail.com) * * Max-Planck Institute for Intelligent Systems, AMD Lab * Univer...
<commit_before>// // (c) Copyright 2017 DESY,ESS // // This file is part of h5pp. // // 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 o...
<commit_before>#include "ofApp.h" //------------------------------------------------------------------------------ void ofApp::setup() { ofSetFrameRate(30); ofEnableAlphaBlending(); } //------------------------------------------------------------------------------ void ofApp::draw() { ofBackground(0);...
<commit_before>#ifndef SFML_INPUT_HANDLER_HPP #define SFML_INPUT_HANDLER_HPP #include <unordered_map> #include <SFML/Window.hpp> #include "hash_pair.hpp" class InputHandler { public: struct MousePosition { MousePosition(): x(0),y(0){} int x; int y; }; InputHandler(){} ~InputHandler(){} void update() { ...
<commit_before>#define RLUA_REPLACE #include "../rlua.h" #if defined(_WIN32) #include <binding/lua_unicode.cpp> #include <Windows.h> #include <tlhelp32.h> #else #include <bee/lua/binding.h> #endif #include <bee/filesystem.h> #include <bee/platform.h> #include <signal.h> namespace rdebug_utility { static int fs_abs...
<commit_before>/* * Copyright 2014-2020 Real Logic Limited. * * 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 * * https://www.apache.org/licenses/LICENSE-2.0 * * Unless required by app...
<commit_before>// This file is part of the dune-gdt project: // https://github.com/dune-community/dune-gdt // Copyright 2010-2018 dune-gdt developers and contributors. All rights reserved. // License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) // or GPL-2.0+ (http://open...
<commit_before>//============================================================================================================= /** * @file mnertclientsquidcontroldgl.cpp * @author Limin Sun <liminsun@nmr.mgh.harvard.edu>; * Matti Hamalainen <msh@nmr.mgh.harvard.edu> * @version 1.0 * @date May, 2013...
<commit_before><commit_msg>add languages/program_on_cpp/In_Depth_C++_11/chapter5-thread/async.cpp<commit_after><|endoftext|>
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/memory/lib/phy/adr32s.H $ ...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/utils/imageProcs/p9_infrastruct_help.H $ ...
<commit_before>/* * Copyright (C) 2017 Fondazione Istituto Italiano di Tecnologia * Authors: Silvio Traversaro * CopyPolicy: Released under the terms of the LGPLv2.1 or later, see LGPL.TXT * */ #include <iDynTree/InverseKinematics.h> #include <iDynTree/KinDynComputations.h> #include <iDynTree/Core/TestUtils.h> #...
<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 "chrome/browser/ui/views/tab_contents/chrome_web_contents_view_delegate_views.h" #include "chrome/browser/defaults.h" #includ...
<commit_before>#include "Engine.h" #include "Game.h" #include "ObjectDummy.h" #include "BodyRigid.h" #include "BodyDummy.h" #ifdef MEMORY_INFO #define new new(__FILE__, __LINE__) #endif // MEMORY_INFO using namespace MathLib; /* */ #define ACTOR_BASE_IFPS (1.0f / 60.0f) #define ACTOR_BASE_CLAMP ...
<commit_before>#include "qjsonobjectconverter_p.h" #include "qjsonserializerexception.h" #include "qjsonserializer_p.h" #include <QtCore/QPointer> #include <QtCore/QSharedPointer> #include <QtCore/QRegularExpression> #include <QtCore/QDebug> const QRegularExpression QJsonObjectConverter::sharedTypeRegex(QStringLitera...
<commit_before>#ifndef DUNE_STUFF_COMMON_PARAMETER_TREE_HH #define DUNE_STUFF_COMMON_PARAMETER_TREE_HH #ifdef HAVE_CMAKE_CONFIG #include "cmake_config.h" #else #include "config.h" #endif // ifdef HAVE_CMAKE_CONFIG #include <cstring> #include <sstream> #include <vector> #include <boost/algorithm/string/join.hpp> ...
<commit_before>/* rsspp - Copyright (C) 2008-2009 Andreas Krennmair <ak@newsbeuter.org> * Licensed under the MIT/X Consortium License. See file LICENSE * for more information. */ #include <config.h> #include <rsspp.h> #include <rsspp_internal.h> #include <libxml/parser.h> #include <libxml/tree.h> #include <curl/cur...
<commit_before>// Copyright (c) 2015 Sebastian Geisler // Distributed under the MIT software license, see the accompanying // file LICENSE or http://www.opensource.org/licenses/mit-license.php. #include <stdexcept> #include <memory.h> #include "ByteArray.h" #include "Crypto.h" #include "Conversions.h" ByteArray::By...
<commit_before>/* * Copyright (c) 2017 Immo Software * * Redistribution and use in source and binary forms, with or without modification, * are permitted provided that the following conditions are met: * * o Redistributions of source code must retain the above copyright notice, this list * of conditions and th...
<commit_before>// This program is free software licenced under MIT Licence. You can // find a copy of this licence in LICENCE.txt in the top directory of // source code. // // Self #include "GreedyRoundStrategy.h" // Project #include "globals.h" #include "World.h" #include "Region.h" #include "SuperRegion.h" #include...
<commit_before>#include "Symbol.h" #include "Shadow.h" #include "config.h" #include "FileIO.h" #include <ee/Sprite.h> #include <sprite2/RenderParams.h> #include <gum/FilepathHelper.h> namespace eshadow { Symbol::Symbol() { m_shadow = new Shadow(SOFT_SHADOW_RADIUS); } Symbol::~Symbol() { if (m_shadow) { m_shado...
<commit_before>#include "cppbencode.h" #include <sstream> #include <stdio.h> void verify(const ben::Value &value, const char *s) { std::ostringstream ss; value.write(ss); assert(ss.str() == s); std::istringstream parser(ss.str()); ben::Value value2; value2.load_all(parser); assert(value == value2); } void v...
<commit_before>/// /// @file help.cpp /// @brief help() and version() functions of the primesieve /// console application. /// /// Copyright (C) 2014 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level directory. /// #include...
<commit_before>/* * This class implmentats callbacks function that are called by ATS * AUTHORS: * Vmon: May 2013, moving Bill's code to C++ */ #include <stdio.h> #include <ts/ts.h> #include <regex.h> #include <string.h> #include <string> #include <vector> #include <list> #include <zmq.hpp> using namespace std;...
<commit_before>/* * Copyright (C) 2020 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>/* * 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>/** * This code is released under the * Apache License Version 2.0 http://www.apache.org/licenses/. * */ #include <unistd.h> #include "synthetic.h" #include "timer.h" #include "intersection.h" // https://code.google.com/p/likwid/wiki/LikwidPerfCtr#Using_the_marker_API #ifdef LIKWID_MARKERS // see...
<commit_before>/////////////////////////////////////////////////////////////////////////////// // // For more information, please see: http://www.nektar.info // // The MIT License // // Copyright (c) 2006 Division of Applied Mathematics, Brown University (USA), // Department of Aeronautics, Imperial College London (UK)...
<commit_before>#ifndef _SDD_MANAGER_HH_ #define _SDD_MANAGER_HH_ #include <stdexcept> // runtime_error #include "sdd/internal_manager.hh" #include "sdd/values_manager.hh" namespace sdd { /*------------------------------------------------------------------------------------------------*/ /// @brief This class repre...
<commit_before>/** * @file hoeffding_tree_main.cpp * @author Ryan Curtin * * A command-line executable that can build a streaming decision tree. */ #include <mlpack/core.hpp> #include <mlpack/methods/hoeffding_trees/hoeffding_tree.hpp> #include <mlpack/methods/hoeffding_trees/binary_numeric_split.hpp> #include <ml...
<commit_before>/** * @file hoeffding_tree_main.cpp * @author Ryan Curtin * * A command-line executable that can build a streaming decision tree. */ #include <mlpack/core.hpp> #include <mlpack/methods/hoeffding_trees/hoeffding_tree.hpp> #include <mlpack/methods/hoeffding_trees/binary_numeric_split.hpp> #include <ml...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: OptionList.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 2001 Insight Consortium All rights reserved. Redistribution and us...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2015 The Qt Company Ltd. ** Contact: http://www.qt.io/licensing ** ** This file is part of Qt Creator. ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses may use this file in **...
<commit_before>/** @file unix.c @brief ENet Unix system specific functions */ #ifndef WIN32 #include <sys/types.h> #include <sys/socket.h> #include <sys/ioctl.h> #include <sys/time.h> #include <arpa/inet.h> #include <netdb.h> #include <unistd.h> #include <string.h> #include <errno.h> #include <time.h> #define ENE...
<commit_before>#include <iostream> #include <GitVersion.h> #include "emmintrin.h" #include "include/perf.h" #include <sys/stat.h> #include <string> #include <unistd.h> #include <utils/BMPImage.h> #include <encoder/Encoder.h> #include <decoder/Decoder.h> using namespace std; inline bool exists_image(const std::string&...
<commit_before>#include <iostream> #include <boost/asio.hpp> #include <google/protobuf/descriptor.h> #include <google/protobuf/service.h> #include "vtrc-common/vtrc-thread-pool.h" #include "vtrc-client-base/vtrc-client.h" #include "protocol/vtrc-rpc-lowlevel.pb.h" #include <boost/random.hpp> #include <boost/random/ra...
<commit_before>// Copyright (c) 2016 Mirants Lu. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "voyager/core/timerlist.h" #include "voyager/util/logging.h" #include "voyager/util/timeops.h" namespace voyager { class Timer { pri...
<commit_before> #include <QtWidgets/QLineEdit> #include <QtWidgets/QFileDialog> #include <QtWidgets/QVBoxLayout> #include <QtWidgets/QHBoxLayout> #include <time.h> #include "dwr.h" #include "widgets.h" CheckBox::CheckBox(const char flag, const QString &text, QWidget *parent) : QCheckBox(text, parent) { th...
<commit_before>#include <Eigen/Core> #include <cmath> #include <iostream> #include "drake/core/Gradient.h" #include "drake/util/drakeGeometryUtil.h" #include "drake/util/eigen_matrix_compare.h" #include "drake/util/testUtil.h" #include "gtest/gtest.h" using Eigen::Isometry3d; using Eigen::Vector3d; using Eigen::Vector...
<commit_before>//* This file is part of the MOOSE framework //* https://www.mooseframework.org //* //* All rights reserved, see COPYRIGHT for full restrictions //* https://github.com/idaholab/moose/blob/master/COPYRIGHT //* //* Licensed under LGPL 2.1, please see LICENSE for details //* https://www.gnu.org/licenses/lgp...
<commit_before>#include <iostream> #include <boost/asio.hpp> #include <google/protobuf/descriptor.h> #include <google/protobuf/service.h> #include "vtrc-common/vtrc-pool-pair.h" #include "vtrc-common/vtrc-connection-iface.h" #include "vtrc-common/vtrc-call-context.h" #include "vtrc-common/vtrc-exception.h" #include "...
<commit_before>/* Copyright (c) 2017-2020 Hans-Kristian Arntzen * * 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, c...
<commit_before>#include <iostream> using std::cin; using std::cout; using std::endl; int main(int argc, char*argv[]){ return 0; }<commit_msg>ejercicio1 sin poder jugar 2 veces<commit_after>#include <iostream> #include <ctime> #include <cstdlib> using std::cin; using std::cout; using std::endl; void Arreglar_Score...
<commit_before>#include "KickEvaluator.hpp" #include <Geometry2d/Util.hpp> #include <algorithm> #include <array> #include <math.h> #include <cmath> #include <tuple> REGISTER_CONFIGURABLE(KickEvaluator) // 1 / sqrt(2*pi) #define M_1_SQRT_2_PI 0.3989422 using namespace std; using namespace Geometry2d; ConfigDouble* ...
<commit_before>#include <Common/HighQueuePch.h> #include "Producer.h" #include <HighQueue/details/HQReservePosition.h> using namespace HighQueue; Producer::Producer(ConnectionPtr & connection, bool solo) : solo_(solo) , connection_(connection) , header_(connection_->getHeader()) , entryCount_(header_->entryCount_) , w...
<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 "base/command_line.h" #include "base/memory/scoped_ptr.h" #include "base/message_loop.h" #include "chrome/browser/automation/u...
<commit_before>#include <legui/HorizontalSplitter.h> namespace legui { void HorizontalSplitter::setBoundingBox(const sf::FloatRect &box) { } void HorizontalSplitter::updateSize() { } }; <commit_msg>Implemented the HorizontalSplitter.<commit_after>#include <legui/HorizontalSplitter...
<commit_before>#include <cctag/visualDebug.hpp> #include <cctag/fileDebug.hpp> #include <boost/filesystem.hpp> #include <opencv2/opencv.hpp> namespace bfs = boost::filesystem; namespace cctag { CCTagVisualDebug::CCTagVisualDebug() { } CCTagVisualDebug::~CCTagVisualDebug() { } void CCTagVisualDebug::initializeFold...
<commit_before>#include <fcntl.h> #include <stdio.h> #include <sys/stat.h> #include <unistd.h> #include <sys/socket.h> #include <sys/un.h> #include <errno.h> #define MAX_BUF 1024 #include <sstream> #include <iostream> #include <boost/property_tree/json_parser.hpp> int main() { int fd = socket( AF_LOCAL, SOCK...
<commit_before>/* This file is part of Magnum. Copyright © 2010, 2011, 2012, 2013 Vladimír Vondruš <mosra@centrum.cz> 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 r...
<commit_before>//===- llvm/ADT/SmallVector.cpp - 'Normally small' vectors ----------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. // ==========================================================================...
<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>//---------------------------------------------------------------------------// // \file Chimera_MCSA.cpp // \author Stuart R. Slattery // \brief Monte Carlo Synthetic Acceleration solver definition. //---------------------------------------------------------------------------// #include "Chimera_MCSA.h...
<commit_before>#include <iostream> #include <fstream> #include <string> #include <vector> #include<BALL/FORMAT/readFile.h> using namespace std; namespace BALL { char* ReadFile::getToken_(Position& pos, char delimiter) const { int len = 0; char* p = new char[200]; if(pos >= strlen(line_)) { Log.error(...
<commit_before>/** mock_exchange.cc -*- C++ -*- Rémi Attab, 18 Feb 2013 Copyright (c) 2013 Datacratic. All rights reserved. Implementation of the mock exchange. */ #include "mock_exchange.h" #include "rtbkit/core/post_auction/post_auction_loop.h" #include "soa/service/ht...
<commit_before>// ------------------------------------------------------------------------------------------------ #include "Core.hpp" #include "Base/Shared.hpp" #include "Base/Color3.hpp" #include "Base/Vector2.hpp" #include "Base/Vector3.hpp" #include "Entity/Player.hpp" #include "Library/Numeric/LongInt.hpp" // ---...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: viewobjectcontactofsdrmediaobj.hxx,v $ * * $Revision: 1.5 $ * * last change: $Author: ihi $ $Date: 2006-11-14 13:05:53 $ * * The Contents...
<commit_before>#include "global.h" #include "txn_table.h" #include "tpcc_query.h" #include "tpcc.h" #include "ycsb_query.h" #include "ycsb.h" #include "query.h" #include "txn.h" #include "mem_alloc.h" #include "row.h" #include "plock.h" #include "txn_pool.h" #define MODIFY_START(i) {\ pthread_mutex_lock(&pool[i].m...
<commit_before>#include <babylon/cameras/free_camera.h> #include <babylon/engines/scene.h> #include <babylon/interfaces/irenderable_scene.h> #include <babylon/lights/hemispheric_light.h> #include <babylon/meshes/mesh.h> #include <babylon/postprocesses/black_and_white_post_process.h> #include <babylon/postprocesses/blur...
<commit_before>//A ROOT macro that prepares Tree for TMVA training //---------------------------------------------- //Author: Maxwell Cui //Date: Aug 19, 2017 //---------------------------------------------- #include<iostream> #include<cstdlib> #include<string> #include<fstream> void create(TFile* inputTree, TString ...
<commit_before>#ifndef __PreassembledMass_INL #define __PreassembledMass_INL #include "PreassembledMass.h" #include <sofa/core/objectmodel/BaseNode.h> #include <Compliant/assembly/AssemblyVisitor.h> namespace sofa { namespace component { namespace mass { /// removing no longer necessary mapped masses class Remov...
<commit_before>#ifndef __AIRINV_AIRINV_TYPES_HPP #define __AIRINV_AIRINV_TYPES_HPP // ////////////////////////////////////////////////////////////////////// // Import section // ////////////////////////////////////////////////////////////////////// // STL #include <map> // Boost #include <boost/shared_ptr.hpp> // StdA...