text
stringlengths
54
60.6k
<commit_before>/** * @author pinkasfeld joseph * Copyright (c) Aldebaran Robotics 2010, 2011 All Rights Reserved. */ #include "allaser.h" #include <iostream> #include <alcommon/alproxy.h> #include <alproxies/almemoryproxy.h> #include <boost/shared_ptr.hpp> #include <alcommon/albroker.h> #include <alcommon/almodule...
<commit_before>/* implementations of byte-at-a-time virtual read/writes for long mode that never cause faults/exceptions and maybe do not affect TLB content */ #define NEED_CPU_REG_SHORTCUTS 1 #include "bochs.h" #include "cpu.h" #define LOG_THIS BX_CPU_THIS_PTR Bit8u BX_CPP_AttrRegparmN(2) BX_CPU_C::read_virtu...
<commit_before>/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "...
<commit_before>/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <cmath> #include <cstdio> #include <cstdlib> #include <random> #include <sys/time.h> #include <faiss/...
<commit_before>/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include <cmath> #include <cstdio> #include <cstdlib> #include <cassert> #include <cstring> #include <sys/types....
<commit_before>/* 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/. * * Copyright 2019 (c) fortiss (Author: Stefan Profanter) */ #include "custom_memory_manager.h"...
<commit_before>// // Created by Rui Wang on 16-4-30. // #include "gtest/gtest.h" #include "harness.h" #include <memory> #include <string> #include <unordered_map> #include <vector> #include <chrono> #include <iostream> #include <ctime> #include <cassert> #include <backend/planner/hybrid_scan_plan.h> #include <backend...
<commit_before>// Copyright 2015-2016 Ansersion // // 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 a...
<commit_before>#include "gtest/gtest.h" #include "Instruction.hpp" class LedController { public: void runProgram(const Instructions &) { } }; TEST(LedControllerTest, ShouldCreate) { LedController controller; controller.runProgram(Instructions{}); }<commit_msg>LedController can print led<commit_after>#incl...
<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 "webkit/glue/plugins/test/plugin_private_test.h" #include "base/basictypes.h" #include "base/string_util.h" #include "webkit/...
<commit_before>#include "ContextCairo.h" #include <cassert> #include <cmath> #include <iostream> using namespace canvas; using namespace std; static cairo_format_t getCairoFormat(InternalFormat format) { switch (format) { case R8: return CAIRO_FORMAT_A8; case RGB565: return CAIRO_FORMAT_RGB16_565; case RGBA8...
<commit_before>// (C) Copyright Kirill Lykov 2013. // // Contributed author Vadim Frolov // Distributed under the FreeBSD Software License (See accompanying file license.txt) #include <iostream> #include <fstream> #include <sstream> #include <string> #include <map> #include <boost/program_options.hpp> namespace po = ...
<commit_before>#include "prog_solver.h" #include "OsiSolverInterface.hpp" #include "prog_translator.h" #include "greedy_solver.h" #include "solver_factory.h" namespace cyclus { void Report(OsiSolverInterface* iface) { std::cout << iface->getNumCols() << " total variables, " << iface->getNumIntegers() ...
<commit_before>#include <iostream> #include <iomanip> #include "../Global.h" #include "../Options.h" #include "../Data.h" #include "../Scheme.h" #include "../Inputs/Input.h" #include "../Loggers/Logger.h" #include "../Loggers/Default.h" #include "../Location.h" #include "../Member.h" #include <cstring> bool mShowAll; b...
<commit_before>#include <string> #include <memory> #include <utility> #include <nan.h> #include <v8.h> #include "nan/all_callback.h" #include "nan/options.h" #include "hub.h" using v8::Local; using v8::Value; using v8::Object; using v8::String; using v8::Uint32; using v8::Boolean; using v8::Function; using v8::Functi...
<commit_before>#define SECURITY_WIN32 1 #include <node.h> #include <nan.h> #include <v8.h> #ifdef _WIN32 #include <Windows.h> #include <Sddl.h> #endif namespace { #ifdef _WIN32 std::string utf8_encode(const std::wstring &wstr) { if (wstr.empty()) return std::string(); int size_needed = WideCharT...
<commit_before>// extract.cpp : extract a posit from a float // // Copyright (C) 2017 Stillwater Supercomputing, Inc. // // This file is part of the universal numbers project, which is released under an MIT Open Source license. #include "stdafx.h" #include "../../posit/posit.hpp" #include "../../posit/posit_manipul...
<commit_before>/* * Copyright (c) 2012 Stanford University * * 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" AN...
<commit_before>/* -------------------------------------------------------------------------- */ /* Copyright 2002-2012, OpenNebula Project Leads (OpenNebula.org) */ /* */ /* Licensed under the Apache License, Version 2.0 (the "Licens...
<commit_before>#pragma once #ifdef AUTOCXXPY_INCLUDED_PYBIND11 #include <unordered_map> namespace c2py { using object_store = std::unordered_map<std::string, pybind11::object>; class cross_assign { public: void record_assign(pybind11::object& scope, const std::string& name_in_sco...
<commit_before>/* * W.J. van der Laan 2011-2012 */ #include "bitcoingui.h" #include "clientmodel.h" #include "walletmodel.h" #include "optionsmodel.h" #include "guiutil.h" #include "init.h" #include "ui_interface.h" #include "qtipcserver.h" #include <QApplication> #include <QMessageBox> #include <QTextCodec> #inclu...
<commit_before>/* * W.J. van der Laan 2011 */ #include "bitcoingui.h" #include "clientmodel.h" #include "walletmodel.h" #include "optionsmodel.h" #include "headers.h" #include "init.h" #include <QApplication> #include <QMessageBox> #include <QThread> #include <QTextCodec> #include <QLocale> #include <QTranslator> #...
<commit_before>// LoginMng.cpp : t@C // #include "stdafx.h" #include "MZ3.h" #include "LoginMng.h" #include "bf.h" #include "Winsock2.h" #include "util.h" /// IvVf[^ namespace option { #define CRYPT_KEY _T("Mixi_browser_for_W-ZERO3") // Login Login::Login() { m_ownerId = _T(""); } Login::~L...
<commit_before>// MachineState.cpp /* * Copyright (c) 2009, Dan Heeks * This program is released under the BSD license. See the file COPYING for * details. */ #include "stdafx.h" #include "MachineState.h" #include "CuttingTool.h" class CFixture; CMachineState::CMachineState() : m_fixture(NULL, CFixture::G54) { ...
<commit_before>/* grakopp/ast-io.hpp - Grako++ AST I/O header file Copyright (C) 2014 semantics Kommunikationsmanagement GmbH Written by Marcus Brinkmann <m.brinkmann@semantics.de> This file is part of Grako++. Grako++ is free software; you can redistribute it and/or modify it under the terms of the 2-cla...
<commit_before>//===- PostDominators.cpp - Post-Dominator Calculation --------------------===// // // The LLVM Compiler Infrastructure // // This file was developed by the LLVM research group and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // ...
<commit_before>/***************************************************************************** * Licensed to Qualys, Inc. (QUALYS) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * QUALYS licenses this fil...
<commit_before>/* Flexisip, a flexible SIP proxy server with media capabilities. Copyright (C) 2010 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>// Copyright (c) 2013 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. // // Unit tests for alert system // #include "alert.h" #include "chain.h" #include "chainparams.h" #include "clie...
<commit_before>#include <blackhole/log.hpp> #include "global.hpp" #include "mocks/logger.hpp" using namespace blackhole; TEST(Macro, OpensInvalidLogRecordAndNotPush) { log::record_t record; mock::verbose_log_t<level> log; EXPECT_CALL(log, open_record(level::debug)) .Times(1) .Will...
<commit_before>#include "robot_impl.h" #include <algorithm> #include <sstream> #include <Poco/Net/NetException.h> #include <cstring> #include <iostream> // `using std::string_literals::operator""s` produces a GCC warning that cannot // be disabled, so we have to use `using namespace ...`. // See https://gcc.gnu.org/...
<commit_before>/* * Copyright (C) LinBox * * ========LICENCE======== * This file is part of the library LinBox. * * LinBox is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 ...
<commit_before>//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // version: $Id$ // author: Vassil Vassilev <vvasielv@cern.ch> //------------------------------------------------------------------------------ #include "cling/Interpreter/Tran...
<commit_before>// Copyright 2011 Google Inc. All Rights Reserved. #include "compiler.h" #include "assembler.h" #include "class_linker.h" #include "dex_cache.h" #include "jni_compiler.h" extern bool oatCompileMethod(art::Method*, art::InstructionSet); namespace art { // TODO need to specify target const ClassLoader...
<commit_before>// // X Window System Implementation of EggAche Graphics Library // By BOT Man, 2016 // #include <exception> #include <thread> #include <X11/Xlib.h> #include "EggAche_Impl.h" namespace EggAche_Impl { class WindowImpl_XWindow : public WindowImpl { public: WindowImpl_XWindow (size_t width, size_t ...
<commit_before>#ifndef LIBTEN_HTTP_CLIENT_HH #define LIBTEN_HTTP_CLIENT_HH #include "ten/http/http_message.hh" #include "ten/shared_pool.hh" #include "ten/buffer.hh" #include "ten/net.hh" #include "ten/uri.hh" namespace ten { //! thrown on http network errors class http_error : public errorx { public: http_error...
<commit_before>/** * Copyright 2013 Truphone */ #include "ListCommand.h" #include <QString> #include <QList> #include <QObject> #include <bb/cascades/ListView> #include <bb/cascades/DataModel> #include "Connection.h" #include "Utils.h" using bb::cascades::ListView; using bb::cascades::DataModel; namespace trupho...
<commit_before>#include "imageviewer.h" #include "ui_imageviewer.h" ImageViewer::ImageViewer(QWidget *parent) : QMainWindow(parent), ui(new Ui::ImageViewer) { ui->setupUi(this); QImage image("/Users/Wojtek/Pictures/Three-eyed_crow.jpg"); ui->imageLabel->setPixmap(QPixmap::fromImage(image)); } Ima...
<commit_before>#ifndef LIBTEN_HTTP_SERVER_HH #define LIBTEN_HTTP_SERVER_HH #include <fnmatch.h> #include <boost/algorithm/string/predicate.hpp> #include <boost/algorithm/string/compare.hpp> #include <chrono> #include <functional> #include <netinet/tcp.h> #include "ten/buffer.hh" #include "ten/logging.hh" #include "te...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: types.hxx,v $ * * $Revision: 1.5 $ * * last change: $Author: ihi $ $Date: 2007-11-23 14:26:37 $ * * The Contents of this file are made av...
<commit_before>/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * 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 r...
<commit_before>//===-- X86Subtarget.cpp - X86 Subtarget Information ------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file was developed by Nate Begeman and is distributed under the // University of Illinois Open Source License. See LICENSE.TXT for details. // //===------...
<commit_before>/*************************************************************************** * Copyright (c) 2017, Sylvain Corlay and Johan Mabille * * * * Distributed under the terms of the BSD 3-Clause License. ...
<commit_before>/* This program shows how to process BLAS LEVEL2 spr for i = 0 .. N for j = 0 .. N C[i,j] = A[i,j] + alpha * X[i]*X[j] */ #include <tiramisu/tiramisu.h> #define NN 100 #define alpha 3 using namespace tiramisu; int main(int argc, char **argv) { tiramisu::init(...
<commit_before>/////////////////////////////////////////////////////////////////////// // File: renderer.cpp // Description: Rendering interface to inject into TessBaseAPI // // (C) Copyright 2011, Google Inc. // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except ...
<commit_before>/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2014 Norwegian University of Science and Technology * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, ...
<commit_before>/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2015 Couchbase, 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 <thread> #include <future> #include <boost/asio.hpp> #include <boost/bind.hpp> #include <boost/date_time/posix_time/posix_time.hpp> #include "ProcFd.h" #include "ProcNet.h" #include "InodeIpHelper.h" #include "ProcNetPublisher.h" #include "ProcReadTimer.h" using namespace std; using namespace ...
<commit_before>#ifndef __STORE_HPP__ #define __STORE_HPP__ #include "utils.hpp" #include "arch/arch.hpp" #include "data_provider.hpp" #include "concurrency/cond_var.hpp" #include "containers/iterators.hpp" #include "containers/unique_ptr.hpp" #include <boost/shared_ptr.hpp> #include <boost/variant.hpp> typedef uint32...
<commit_before>#include "RobotStateControl.h" #include "OrientationSensorsWrapper.hpp" #include "SDLogDriver.hpp" #include "DualEncoderDriver.hpp" #include "MotorDriver.h" #include "TireContactModule.hpp" #include "FrontLiftedDetection.hpp" #include "MainLogic.h" #include "ProximitySensors.hpp" #include "SerialCommand...
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org // // Copyright 2015-2016 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...
<commit_before>#if !defined(DOUBLETAKE_XRUN_H) #define DOUBLETAKE_XRUN_H /* * @file xrun.h * @brief The main engine for consistency management, etc. * @author Emery Berger <http://www.cs.umass.edu/~emery> * @author Tongping Liu <http://www.cs.umass.edu/~tonyliu> */ #include <signal.h> #include <stddef.h> #inc...
<commit_before>// Copyright (c) 2006-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 "webkit/tools/test_shell/webwidget_host.h" #include <cairo/cairo.h> #include <gtk/gtk.h> #include "base/logging.h" #inc...
<commit_before>// Copyright (c) 2006-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 "webkit/tools/test_shell/webwidget_host.h" #include <cairo/cairo.h> #include <gtk/gtk.h> #include "base/logging.h" #inc...
<commit_before>// Copyright 2010 Google // 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...
<commit_before><commit_msg>Blind fix attempt: include <osl/diagnose.h><commit_after><|endoftext|>
<commit_before>//! //! @author Yue Wang //! @date 18.11.2014 //! //! Disscussion on SO: //! http://stackoverflow.com/questions/26971625/whats-the-difference-between-functor-and-lambda-when-used-for-constructing-std //! //! Based on Listing 2.8, serveral differences. //! #include <thread> #include <algorithm> #includ...
<commit_before>/*Santiago Zubieta*/ #include <iostream> #include <numeric> #include <fstream> #include <climits> #include <cstring> #include <cstdio> #include <cmath> #include <queue> #include <list> #include <map> #include <set> #include <stack> #include <deque> #include <vector> #include <string> #include <cstdlib> #...
<commit_before>// Copyright GHI Electronics, LLC // // 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 l...
<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 WIT...
<commit_before>// Copyright (c) 2006-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 "chrome/app/breakpad_win.h" #include <windows.h> #include <tchar.h> #include <vector> #include "base/base_switches.h" #...
<commit_before>/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2008-2013 Imperial College London * Copyright 2008-2013 Daniel Rueckert, Julia Schnabel * Copyright 2013-2015 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compl...
<commit_before>/* --------------------------------------------------------------------------- ** This software is in the public domain, furnished "as is", without technical ** support, and with no warranty, express or implied, as to its usefulness for ** any purpose. ** ** v4l2compress_vp8.cpp ** ** Read YUYV from a V...
<commit_before>#include <eosio/trace_api/trace_api_plugin.hpp> #include <eosio/trace_api/abi_data_handler.hpp> #include <eosio/trace_api/request_handler.hpp> #include <eosio/trace_api/chain_extraction.hpp> #include <eosio/trace_api/store_provider.hpp> #include <eosio/trace_api/configuration_utils.hpp> #include <boos...
<commit_before>#include <string> #include <vector> #include <list> #include <map> #include <set> #include <deque> #include <stack> #include <bitset> #include <algorithm> #include <functional> #include <numeric> #include <utility> #include <sstream> #include <iostream> #include <iomanip> #include <cstdio> #include <cmat...
<commit_before>/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "...
<commit_before>#include "defines.h" #include "Dcx.h" mIRCLinker::mIRCLinker(void) : m_hFileMap(NULL), m_pData(NULL), m_mIRCHWND(NULL), m_dwVersion(0x0), m_iMapCnt(0), m_hSwitchbar(NULL), m_hToolbar(NULL), ...
<commit_before>#include <math.h> #include <stdio.h> #include "HalideRuntime.h" #include "HalideBuffer.h" #include <assert.h> #include "tiled_blur.h" using namespace Halide::Runtime; const int W = 80, H = 80; int my_halide_trace(void *user_context, const halide_trace_event_t *ev) { if (ev->event == halide_trace_...
<commit_before>//============================================================================= // // OpenMesh // Copyright (C) 2003 by Computer Graphics Group, RWTH Aache...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: OOXMLDocumentImpl.cxx,v $ * * $Revision: 1.11 $ * * last change: $Author: fridrich_strba $ $Date: 2007-05-22 19:40:47 $ * * The Contents ...
<commit_before>// Copyright (c) 2016, Baidu.com, Inc. All Rights Reserved // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "volum_group.h" #include "volum.h" #include "mounter.h" #include "protocol/galaxy.pb.h" #include "agent/volum/volum.h" #include "bo...
<commit_before>/* This file is part of the clang-lazy static checker. Copyright (C) 2015 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com Author: Sérgio Martins <sergio.martins@kdab.com> Copyright (C) 2015 Sergio Martins <smartins@kde.org> This program is free software; you can redistribu...
<commit_before>#include <iostream> #include <complex> #include <cmath> #include <thread> #include <vector> #include <gtest/gtest.h> #include "../sequence.h" #include "../parallel.h" #include "../run.h" class SequenceTest : testing::Test { }; TEST(SequenceTest, Test1) { struct control_flow { bool code; operator...
<commit_before>/* * This file is part of Poedit (http://poedit.net) * * Copyright (C) 2008-2014 Vaclav Slavik * * 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><commit_msg>Attempt to fix the official Google Chrome build on Linux. Review URL: http://codereview.chromium.org/155261<commit_after><|endoftext|>
<commit_before>#ifndef __CHILDPROCESSPLAYER_HPP__ #define __CHILDPROCESSPLAYER_HPP__ #include "Player.hpp" #include <Windows.h> #ifdef max #undef max #endif #ifdef min #undef min #endif // Template takes an unsigned int as a uniquification id for each spawned process. // // RECOMMENDED USAGE: // // STEP 1: // In T...
<commit_before>/*! * \file main.cc * \brief A simple application using the Sick LMS 1xx driver. * * Code by Jason C. Derenick and Christopher R. Mansley. * Contact jasonder(at)seas(dot)upenn(dot)edu * * The Sick LIDAR Matlab/C++ Toolbox * Copyright (c) 2009, Jason C. Derenick and Christopher R. Mansley * All r...
<commit_before>#include <boost/interprocess/ipc/message_queue.hpp> #include <iostream> #include <vector> #include <boost/archive/text_iarchive.hpp> #include "liblager_connect.h" #include <X11/Xlib.h> #include <X11/Intrinsic.h> #include <X11/extensions/XTest.h> #include <unistd.h> using namespace boost::interprocess; ...
<commit_before>// // Created by Harrand on 15/03/2021. // #include "test_framework.hpp" #include "phys/body.hpp" TZ_TEST_BEGIN(gravity) tz::phys::Body weight_1kg { tz::Vec3{}, tz::Vec3{}, tz::Vec3{}, 1.0f }; tz::phys::World world; world.add_body(weight_1kg); //...
<commit_before>#include "videosourcefactory.h" #ifdef USE_OPENCV #include "opencv_video_source.h" #endif #ifdef USE_EPIPHANSDK #include "epiphansdk_video_source.h" #endif #ifdef USE_LIBVLC #include "vlc_video_source.h" #endif namespace gg { VideoSourceFactory VideoSourceFactory::_factory_singleton; VideoSourceFactor...
<commit_before>#include "rubymotion.h" #include "motion-game.h" /// @class Point < Object /// A point represents a location in a two-dimensional coordinate system using /// +x+ and +y+ variables. /// /// When calling a method that expects a +Point+ object, a 2-element +Array+ /// can be passed instead, as a convenienc...
<commit_before>#include "include/udata.h" #include <cstdio> #include <cstring> #include <algorithm> namespace amici { UserData::UserData(int np, int nk, int nx) : np(np), nk(nk), nx(nx) {} UserData::UserData() : np(0), nk(0), nx(0) {} UserData::UserData(const UserData &other) : UserData(other.np, other.nk, other.nx...
<commit_before>/* vim: set sw=4 sts=4 et foldmethod=syntax : */ #include <solver/solver.hh> #include <graph/graph.hh> #include <graph/file_formats.hh> #include <graph/power.hh> #include <graph/complement.hh> #include <graph/is_clique.hh> #include <graph/is_club.hh> #include <graph/orders.hh> #include <max_clique/alg...
<commit_before>/* * Copyright (c) 2016 Regents of the University of California. 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 co...
<commit_before>#include <stdio.h> #include <stdarg.h> #include <iostream> #include <fstream> #include <string> #include "platform.h" void logMsg(const char* fmt, ...) { va_list args; va_start(args, fmt); vfprintf(stderr, fmt, args); va_end(args); } std::string stringFromResource(const char* _path) { ...
<commit_before>#include "../cutehmi.metadata.hpp" #include "../cutehmi.dirs.hpp" #include "cutehmi/daemon/logging.hpp" #include "cutehmi/daemon/Daemon.hpp" #include "cutehmi/daemon/EngineThread.hpp" #include "cutehmi/daemon/CoreData.hpp" #include "cutehmi/daemon/Exception.hpp" #include <cutehmi/CuteHMI.hpp> #include <...
<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 "chrome/installer/util/wmi.h" #include <windows.h> #include "base/basictypes.h" #include "base/win/scoped_bstr.h" #include "...
<commit_before><commit_msg>implemented double return values (d)<commit_after><|endoftext|>
<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 "chrome_frame/module_utils.h" #include <aclapi.h> #include <atlbase.h> #include <atlsecurity.h> #include <sddl.h> #include "...
<commit_before>/* This file is part of the PhantomJS project from Ofi Labs. Copyright (C) 2011 Ariya Hidayat <ariya.hidayat@gmail.com> Copyright (C) 2011 Ivan De Marino <ivan.de.marino@gmail.com> Redistribution and use in source and binary forms, with or without modification, are permitted provided that the...
<commit_before>/* * Copyright (c) 2009 Daniël de Kok * * 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 version. *...
<commit_before>#include <memory> #include <sstream> #include <queso/Environment.h> #ifdef QUESO_HAVE_LIBMESH #include <libmesh/libmesh.h> #include <libmesh/mesh.h> #include <libmesh/mesh_generation.h> #include <queso/FunctionOperatorBuilder.h> #include <queso/LibMeshFunction.h> #include <queso/LibMeshNegativeLaplacian...
<commit_before>/* * libMaia - maiaObject.cpp * Copyright (c) 2003 Frerich Raabe <raabe@kde.org> and * Ian Reinhart Geiser <geiseri@kde.org> * Copyright (c) 2007 Sebastian Wiedenroth <wiedi@frubar.net> * * Redistribution and use in source and binary forms, with or without * modification, are pe...
<commit_before>/* Copyright (c) 2012-2013 LevelDOWN contributors * See list at <https://github.com/rvagg/node-leveldown#contributing> * MIT +no-false-attribs License * <https://github.com/rvagg/node-leveldown/blob/master/LICENSE> */ #include <node.h> #include <node_buffer.h> #include "leveldb/db.h" #include "leve...
<commit_before>// // shell-sort.cpp // Copyright (c) 2017 Dylan Brown. All rights reserved. // // NOTES // Shell sort is a variation on insertion sort which reduces the required number // of swaps. The idea is to sort to interleaved subsequences with large gaps // between the elements. Theses gaps shrink in a predef...
<commit_before>#pragma once #include "c.hpp" #include "global.hpp" namespace WonderRabbitProject { namespace SQLite3 { inline void validate(RESULT_CODE r) { switch(r) { case RESULT_CODE::OK: case RESULT_CODE::ROW: case RESULT_CODE::DONE: return; d...
<commit_before>#ifndef CLOTHO_BIT_BLOCK_FITNESS_HPP_ #define CLOTHO_BIT_BLOCK_FITNESS_HPP_ #include <iostream> #include "clotho/fitness/bit_block_genotyper.hpp" #include "clotho/utility/bit_block_iterator.hpp" #include "clotho/fitness/no_fit.hpp" namespace clotho { namespace fitness { template < class HetFit, class...
<commit_before>/* vim: set sw=4 sts=4 et foldmethod=syntax : */ #include <boost/program_options.hpp> #include <graph/graph.hh> #include <graph/product.hh> #include <graph/file_formats.hh> #include <iostream> #include <exception> #include <cstdlib> #include <set> using namespace parasols; namespace po = boost::progr...
<commit_before>#include <enumerate.hpp> #include <range.hpp> #include <string> #include <iostream> #include <vector> using iter::enumerate; using iter::range; int main() { std::cout << "const std::string\n"; const std::string const_string("goodbye world"); for (auto e : enumerate(const_string)) { ...
<commit_before>/* * Distributed memory pool in shared memory. * * author: Max Kellermann <mk@cm4all.com> */ #ifndef SHM_DCHUNK_HXX #define SHM_DCHUNK_HXX #include "shm.hxx" #include <inline/compiler.h> #include <inline/list.h> #include <boost/interprocess/managed_external_buffer.hpp> #include <assert.h> #inclu...