text
stringlengths
54
60.6k
<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 "content/public/browser/browser_child_process_host_iterator.h" #include "base/logging.h" #include "content/browser/browser_ch...
<commit_before>/* * Copyright (C) 2008, 2009 Nokia Corporation. * * Contact: Marius Vollmer <[email protected]> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * version 2.1 as published by the Free Software Foundation....
<commit_before> /* $Id$ */ #include "TChain.h" #include "TTree.h" #include "AliAnalysisTaskME.h" #include "AliAnalysisManager.h" #include "AliAODEvent.h" #include "AliAODTrack.h" #include "AliAODVertex.h" #include "AliMultiEventInputHandler.h" #include "AliAODHandler.h" #include "AliAnalysisTaskCreateMixedDimuons.h...
<commit_before>////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2016, Esteban Tovagliari. 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>///******************************************************* ///Config Description //configIndex = 0 ---> Default cuts and PID //configIndex = 1 ---> Non-HFE, Op Angle < 0.1 //configIndex = 2 ---> ///******************************************************* AliAnalysisTaskEMCalHFEpA* ConfigEMCalHFEpA( ...
<commit_before>#include <string> #include <vector> #include <ros/ros.h> #include <moveit/move_group_interface/move_group.h> #include <moveit/robot_trajectory/robot_trajectory.h> #include <moveit/trajectory_processing/iterative_time_parameterization.h> #include <tf2_ros/transform_listener.h> #include <geometry_msgs/Po...
<commit_before>// Copyright 2020 The gVisor Authors. // // 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 applicab...
<commit_before>#include "SCAN.hpp" namespace DataSpec::DNAMP1 { static const std::vector<std::string> PaneNames = { "imagepane_pane0", "imagepane_pane1", "imagepane_pane2", "imagepane_pane3", "imagepane_pane01", "imagepane_pane12", "imagepane_pane23", "imagepane_pane012", "imagepane_pane123", "imagepane...
<commit_before>/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2008 Scientific Computing and Imaging Institute, University of Utah. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associa...
<commit_before> /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: filstr.hxx,v $ * $Revision: 1.1...
<commit_before><commit_msg>Update Value.cpp<commit_after><|endoftext|>
<commit_before>#include "transactiondesc.h" #include "guiutil.h" #include "bitcoinunits.h" #include "main.h" #include "wallet.h" #include "db.h" #include "ui_interface.h" #include "base58.h" #include <string> QString TransactionDesc::FormatTxStatus(const CWalletTx& wtx) { if (!wtx.IsFinal()) { if (wt...
<commit_before>#include "transactiondesc.h" #include "clientmodel.h" #include "guiutil.h" #include "bitcoinunits.h" #include "main.h" #include "wallet.h" #include "txdb.h" #include "ui_interface.h" #include "base58.h" #include "bitcoingui.h" #include "util.h" #include <QInputDialog> #include <QPushButton> #include <QM...
<commit_before>/* This is free and unencumbered software released into the public domain. */ #ifdef HAVE_CONFIG_H #include <config.h> #endif #include "nquads.h" #include "../quad.h" #include "../term.h" #include "../triple.h" #include <cassert> /* for assert() */ #include <cstdio> /* for FILE, std::f*() */ #includ...
<commit_before>// // Created by Ed Clark on 8/17/17. // #include <yadi/factory.hpp> namespace yadi { struct my_type {}; struct my_type_1 : public my_type {}; struct my_raw_ptr; template <> struct factory_traits<my_raw_ptr> { using ptr_type = my_raw_ptr *; }; struct my_raw_ptr : public factory<my_raw_ptr> {}; ...
<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 <string> #include "base/logging.h" #include "base/mime_util.h" #include "net/base/platform_mime_util.h" namespace net {...
<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 "net/flip/flip_network_transaction.h" #include "base/scoped_ptr.h" #include "base/compiler_specific.h" #include "base/field_t...
<commit_before>/* * opencog/atoms/reduct/MinusLink.cc * * Copyright (C) 2015, 2018 Linas Vepstas * All Rights Reserved * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License v3 as * published by the Free Software Foundation and incl...
<commit_before>#include <vector> #include <sys/mman.h> #include "it.x64.asm.h" static const struct rejit_threadset_t *NFA = NULL; // used for offset calculation static const struct rejit_thread_t *THREAD = NULL; struct re2jit::native { void *_code; void *_entry; size_t _size; native(re2::Pro...
<commit_before>#include <iostream> #include <vector> #include "PosixTimespec.hpp" struct TimespecTuple { timespec lhs; timespec rhs; timespec result; }; int main(int argc, char** argv) { std::cout.precision(10); timespec tp; TimespecTuple tt; // Let's do some conclusive addition tests ...
<commit_before>/************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2008 by Sun Microsystems, Inc. * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: document.hxx,v $ * $Revision: 1....
<commit_before>/************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite * * This file is part of OpenOffice.o...
<commit_before>#include <sys/socket.h> #include <sys/types.h> #include <sys/stat.h> #include <netdb.h> #include <string.h> #include <stdio.h> #include <time.h> #include <unistd.h> #include <termios.h> #include <fcntl.h> #include <errno.h> #include <iostream> using namespace std; #define BAUDRATE B9600 size_t sendcom...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/memory/p9_mss_eff_config_th...
<commit_before>/* * rngs * ECE 541 Project 2 * Kashev Dalmia - dalmia3 * David Huang - huang157 */ #include "stl_rng.h" namespace rng { StlRng::StlRng() { } void StlRng::seed(int seed_num) { gen = std::mt19937(seed_num); } double StlRng::operator()() { return dist(gen); ...
<commit_before>/** \file TextUtil.h * \brief Declarations of text related utility functions. * \author Dr. Johannes Ruscheinski * \author Jiangtao Hu */ /* * Copyright 2003-2009 Project iVia. * Copyright 2003-2009 The Regents of The University of California. * Copyright 2015 Universitätsbibliothek ...
<commit_before>/* * Copyright (c) 2007-2010 Digital Bazaar, Inc. All rights reserved. */ #define __STDC_CONSTANT_MACROS #include "monarch/net/SocketTools.h" #include "monarch/net/WindowsSupport.h" #include "monarch/rt/Thread.h" #include "monarch/rt/System.h" #include <limits.h> using namespace monarch::net; using...
<commit_before>#include <iostream> #include <Eigen/Core> #include "genrp/solvers/direct.h" #include "genrp/solvers/band.h" #define DO_TEST(NAME, VAR1, VAR2) \ { \ double base, comp, delta; \ base...
<commit_before>#include <fstream> #include <chdl/chdl.h> #include <chdl/cassign.h> #include <chdl/egress.h> #include "config.h" #include "interfaces.h" #include "harpinst.h" using namespace std; using namespace chdl; void Funcunit_lsu(func_splitter_t &out, reg_func_t &in); void MemSystem(mem_resp_t &out, mem_req_t...
<commit_before>/* * Copyright (c) 2010 Digital Bazaar, Inc. All rights reserved. */ #define __STDC_FORMAT_MACROS #include "monarch/data/json/JsonWriter.h" #include "monarch/io/ByteArrayInputStream.h" #include "monarch/io/File.h" #include "monarch/io/FileInputStream.h" #include "monarch/io/FileOutputStream.h" #includ...
<commit_before>// Copyright 2015-2018 Elviss Strazdins. All rights reserved. #include <fcntl.h> #include <unistd.h> #include <linux/input.h> #include "EventDevice.hpp" #include "InputSystemLinux.hpp" #include "input/KeyboardDevice.hpp" #include "input/GamepadDevice.hpp" #include "input/MouseDevice.hpp" #include "input...
<commit_before>#include "tame.hh" #include <iostream> #include <stdio.h> #include <stdlib.h> #include <unistd.h> parse_state_t *state; bool tamer_debug = false; outputter_t *outputter; std::ostream &warn = std::cerr; static void usage () { warn << "usage: tamer [-Lchnv] " << "[-o <outfile>] [<infile>]\n" << "\n...
<commit_before>#include <armadillo> #include <algorithm> #include <random> template<typename T, int x_size, int y_size> struct Array2D { std::array<T, x_size * y_size> data; T& operator() (int x, int y) { return data.at(y + y_size*x); } decltype(data.begin()) row(int x) { return data.begin()+x*y_size; ...
<commit_before>/************************************************************************** ** ** This file is part of Qt Creator ** ** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Nokia Corporation ([email protected]) ** ** Commercial Usage ** ** Licensees holding valid Qt Commercial...
<commit_before>#include <common/buffer.h> #include <common/endian.h> #include <event/action.h> #include <event/callback.h> #include <event/event_system.h> #include <io/pipe.h> #include <io/pipe_link.h> #include <io/pipe_null.h> #include <io/pipe_pair.h> #include <xcodec/xcodec.h> #include <xcodec/xcodec_decoder.h> #...
<commit_before>#include <gtest/gtest.h> #include <gmock/gmock.h> #include "util.hpp" #include "generated_raw/Arrays.ppr.hpp" using namespace testing; using namespace raw; TEST(generated_raw_arrays, Builtin) { data x( "\x01\x00\x00\x02", "\x01\x00\x02\x00" ); Builtin* next = prophy::swap...
<commit_before>/** * @file * @brief Implementation of detector * * @copyright MIT License */ #include <memory> #include <stdexcept> #include <string> #include <utility> #include <Math/Rotation3D.h> #include <Math/Translation3D.h> #include "Detector.hpp" #include "core/module/exceptions.h" using namespace allpi...
<commit_before>/* SfenParser.hpp * * Kubo Ryosuke */ #ifndef SUNFISH_CORE_RECORD_SFENPARSER_HPP__ #define SUNFISH_CORE_RECORD_SFENPARSER_HPP__ #include "core/move/Move.hpp" #include "core/position/Position.hpp" #include "core/record/Record.hpp" namespace sunfish { class SfenParser { public: static bool parseP...
<commit_before><commit_msg>oox: accelerate common case boolean reading.<commit_after><|endoftext|>
<commit_before>/* Imposto Real https://www.urionlinejudge.com.br/judge/pt/problems/view/2666 */ #include <bits/stdc++.h> using namespace std; typedef unsigned long long int uint64; uint64 menor_custo(int N, int C, vector<int> &impostos_devidos, vector< vector<int> > &adj); uint64 menor_custo(int i, int N, int C, ve...
<commit_before>#include <sys/time.h> #ifdef USE_SYSLOG #include <syslog.h> #endif #include <iostream> #include <sstream> #include <string> #ifdef USE_SYSLOG static int syslog_priority(const Log::Priority&); #endif static std::ostream& operator<< (std::ostream&, const Log::Priority&); static std::ostream& operator<< (...
<commit_before>//---------------------------------------------------------------------------- // // License: See top level LICENSE.txt file // // Author: David Burken // // Description: OSSIM Open JPEG plugin initialization // code. // //---------------------------------------------------------------------------- // ...
<commit_before>/****************************************************************************** * The MIT License (MIT) * * Copyright (c) 2016-2017 Baldur Karlsson * * 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 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>// RUN: %clang_cc1 -triple i386-apple-darwin10 -analyze -analyzer-checker=core -verify %s class A { public: virtual void f(){}; }; class B : public A{ public: int m; }; class C : public A{}; class BB: public B{}; // A lot of the tests below have the if statement in them, which forces the // ana...
<commit_before>/*! * Copyright 2015 by Contributors * \file sparse_page_source.cc */ #include <dmlc/base.h> #include <dmlc/timer.h> #include <xgboost/logging.h> #include <memory> #include <vector> #include <string> #include <locale> #if DMLC_ENABLE_STD_THREAD #include "./sparse_page_source.h" #include "../common/co...
<commit_before>/* * Software License Agreement (BSD License) * * Copyright (c) 2010-2011, Willow Garage, 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: * * * Redistributio...
<commit_before>#include "TestSupport.h" #include "EventedClient.h" #include "MessageChannel.h" #include "Utils/ScopeGuard.h" #include "Utils/IOUtils.h" #include <oxt/thread.hpp> #include <sys/types.h> #include <sys/socket.h> #include <sys/un.h> using namespace Passenger; using namespace std; using namespace boost; us...
<commit_before>#include "TestSupport.h" #include <ServerKit/HttpRequest.h> #include <MemoryKit/palloc.h> #include <agents/HelperAgent/RequestHandler/Request.h> #include <agents/HelperAgent/RequestHandler/AppResponse.h> #include <agents/HelperAgent/ResponseCache.h> using namespace Passenger; using namespace Passenger::...
<commit_before>/* * Copyright 2015 Aerospike, Inc. * * Portions may be licensed to Aerospike, Inc. under one or more * contributor license agreements. * * 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 o...
<commit_before>/************************************************************************* * * $RCSfile: menubtn.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: obo $ $Date: 2005-01-03 17:40:12 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>//============================================================================================================= /** * @file main.cpp * @author Christoph Dinh <[email protected]>; * Matti Hamalainen <[email protected]> * @version 1.0 * @date December, 2015 * * @section ...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation ([email protected]) ** ** This file is part of the Qt Mobility Components. ** ** $QT_BEGIN_LICENSE:LG...
<commit_before> #include "loop.h" #include "config.h" #include "output.h" #include "mode.h" #include "configmonitor.h" #include "edid.h" #include <QX11Info> #include <QtCore/QDebug> #include <QtCore/QDateTime> #include <X11/X.h> #include <X11/Xlib.h> #include <X11/extensions/Xrandr.h> using namespace KScreen; Loop...
<commit_before>/* Copyright (c) 2017-2019 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 "mbed.h" #include "crypto.h" #include "default_random_seed.h" #include "psa_prot_internal_storage.h" int mbed_default_seed_read(unsigned char *buf, size_t buf_len) { struct psa_its_info_t info = {0, 0}; size_t actual_size = buf_len; psa_its_get_info(MBED_RANDOM_SEED_ITS_UID, &info);...
<commit_before>#include <ppltasks.h> #include <pplawait.h> #include <stdio.h> using namespace Microsoft::Azure::Devices::Client; using namespace Platform; using namespace concurrency; // // String containing Hostname, Device Id & Device Key in the format: // "HostName=<host_name>;DeviceId=<device_id>;SharedAccessKey=...
<commit_before>#define HAS_VTK 1 #include "LaShellShellIntersectionMultiArray.h" #include <numeric> /* * Author: * Dr. Rashed Karim * Department of Biomedical Engineering, King's College London * Email: rashed 'dot' karim @kcl.ac.uk * Copyright (c) 2017 * * * Copies scalars with multiarray ...
<commit_before>#include "nxtKitInterpreterPlugin.h" #include <QtWidgets/QApplication> #include <twoDModel/engine/twoDModelEngineFacade.h> using namespace nxt; using namespace qReal; const Id robotDiagramType = Id("RobotsMetamodel", "RobotsDiagram", "RobotsDiagramNode"); const Id subprogramDiagramType = Id...
<commit_before>#include "anti_aliasing_fxaa.h" #include "pathos/shader/shader_program.h" #include "pathos/render/render_device.h" #include "pathos/render/scene_render_targets.h" #include "pathos/util/engine_util.h" namespace pathos { struct UBO_FXAA { static constexpr uint32 BINDING_SLOT = 1; vector4 fxaaConsol...
<commit_before>#pragma once #include <limits> #include <algorithm> #include <vector> #include <map> #include <functional> #include <unordered_map> #include <unordered_set> #include <string> #include "priority_queue.hpp" using std::max; using std::make_pair; using std::min; using std::abs; using std::hypot; using std:...
<commit_before>#include <QtGui/QOpenGLFramebufferObject> #include <QtQuick/QQuickWindow> #include "visualizationmanager.h" #include "coverage.h" #include "layersview.h" #include "layersrenderer.h" #include "rootdrawer.h" #include "uicontextmodel.h" #include <QtGui/QOpenGLFramebufferObject> #include <QtQuick/QQuickWin...
<commit_before>/* Copyright (C) 2001 by Christopher Nelson This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later v...
<commit_before>#include <sirius.h> using namespace sirius; void test_complex_exp() { int N = 100000000; mdarray<double_complex, 1> phase(N); phase.zero(); for (int i = 0; i < N; i++) { phase(i) = type_wrapper<double_complex>::random(); } Timer t("random_plus_exp"); #pragma om...
<commit_before>/* * Copyright (C) 2006, 2007 Apple Computer, Inc. * Copyright (c) 2006, 2007, 2008, 2009, 2012 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: * * * Redistr...
<commit_before>// Title : Implementation of Coroutine in Cpp // Author : [email protected] // Date : 11-21-2020 // License : MIT License /* Implementation of Coroutine in Cpp Compiler: // clang -std=c++17 -lstdc++ Usage: // class MyGen : public Gen<Output type of the generator> class On...
<commit_before>#include <gtest/gtest.h> #include <gmock/gmock.h> #include <QScopedPointer> #include <QDebug> #include <QByteArray> #include <string> #include <SimpleAmqpClient/SimpleAmqpClient.h> #include "CommunicationLayer/CommDeviceControl/UdpMessageForwarder.h" #include "InfrastructureLayer/Settings/MockSettings...
<commit_before>#include "coldstakingmodel.h" #include "addresstablemodel.h" #include "base58.h" #include "boost/thread/future.hpp" #include <boost/atomic/atomic.hpp> #include <boost/make_shared.hpp> #include <boost/shared_ptr.hpp> #include <QIcon> #include <QImage> #include <QMetaType> std::pair<QList<ColdStakingCach...
<commit_before>#include "camera_view_painter.h" #include <QPainter> #include <QPoint> #include <QPointF> #include <QtCore/qmath.h> #include "math/functions.h" #include <math/constants.h> #include <QPolygon> #include <QVector> #include "qt_util.h" #include <iostream> #include <QColor> #include <QRect> CameraViewPainter...
<commit_before>#include <algorithm> #include <cassert> #include <climits> #include <cstdlib> #include <sys/time.h> #include <iostream> #include <fstream> #include <cstdlib> #include <sstream> using namespace std; const int NX=256, NY=NX; int T_FINAL; const int X_MASK = NX-1, Y_MASK=NY-1; const int NT=32; const int ...
<commit_before>/***************************************************************************** * Media Library ***************************************************************************** * Copyright (C) 2015-2019 Hugo Beauzée-Luyssen, Videolabs, VideoLAN * * Authors: Hugo Beauzée-Luyssen <[email protected]> * * T...
<commit_before>/************************************************************************* * * $RCSfile: loc_dir.hxx,v $ * * $Revision: 1.1.1.1 $ * * last change: $Author: np $ $Date: 2002-03-08 14:45:15 $ * * The Contents of this file are made available subject to the terms of * either of the following li...
<commit_before>// Copyright (c) 2020 PaddlePaddle 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 // // ...
<commit_before>#include <stdio.h> #include <cstdint> #include <iostream> #include <gtest/gtest.h> #include <glog/logging.h> #include <tudocomp/util.hpp> #include <tudocomp_driver/Registry.hpp> #include <tudocomp/AlgorithmStringParser.hpp> #include "test/util.hpp" #include "test/driver_util.hpp" TEST(TudocompDriver,...
<commit_before>// Filename: httpDate.cxx // Created by: drose (28Jan03) // //////////////////////////////////////////////////////////////////// // // PANDA 3D SOFTWARE // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved // // All use of this software is subject to the terms of the Panda 3d // Software...
<commit_before>#include <stdio.h> #include <iostream> #include <fstream> #include <vector> #include <unordered_map> #include <ctime> int main(int argc, char* argv[]) { if (argc != 5) { std::cerr << "Path Finder only accepts 4 arguments\n"; exit(1); } // Load in all page titles into a vector std::cout << "\03...
<commit_before>/* * Copyright (C) 2011 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: * 1. Redistributions of source code must retain the above copyright * notice, this li...
<commit_before>#define WIN32_LEAN_AND_MEAN #include <SDKDDKVer.h> #include <windows.h> #include "HookAPI.h" #include <ws2tcpip.h> #include <atomic> #include <concurrent_queue.h> #pragma comment (lib, "Ws2_32.lib") #define BUFLEN 4096 // Socket used for TeamSpeak communication std::atomic<SOCKET> clien...
<commit_before>// Test.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <stdio.h> extern "C" { #include "PrtDist.h" #include "test.h" #include "Prt.h" } #include "DgmlGraphWriter.h" #include <string> /* Global variables */ PRT_PROCESS* ContainerProcess; struct ClusterConfig C...
<commit_before>// Copyright 2020 The ShaderTrap Project Authors // // 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 ...
<commit_before>// Copyright (c) 2012 Intel Corp // Copyright (c) 2012 The Chromium Authors // // 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 limi...
<commit_before>#include <errno.h> #include <libc.h> #include <spawn.h> #include <string.h> #include <thread> #include "event_consolidator.h" #include "kdebug_controller.h" #include "named_mach_port.h" #include "process_tracer.h" #include "tracer.h" #include "tracing_server.h" extern "C" int reexec_to_match_kernel(); ...
<commit_before>/* * Copyright (c) 2008-2017 SLIBIO. All Rights Reserved. * * This file is part of the SLib.io project. * * 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.or...
<commit_before>/* Première version du programme de controle des Yi */ #include <Arduino.h> #include <Wire.h> //const int shutter_pin = 2; //const int power_pin = 4; const int powerup_button_pin = 5; const int powerdown_button_pin = 6; const int tmlapse_start_pin = 7; const int tmlapse_stop_pin = 8; //const int shutte...
<commit_before>#include "scimed/wx.h" #include <wx/sizer.h> // todo: // add loading, zooming and panning in image // add loading/saving and specifying areas // add preview pane class wxImagePanel : public wxPanel { wxImage image; wxBitmap resized; int w, h; bool displayImage_; public: explicit wxImagePan...
<commit_before>#include <libmesh/equation_systems.h> #include <libmesh/replicated_mesh.h> #include <libmesh/mesh_generation.h> #include <libmesh/dof_map.h> #include <libmesh/system.h> #include <libmesh/mesh_function.h> #include <libmesh/numeric_vector.h> #include <libmesh/elem.h> #include "test_comm.h" #include "libme...
<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 <cstring> #include "CTranslator.h" #include "CTokenizer.h" #include "CRules.h" CTranslator::CTranslator(std::istream& ifsOrig, std::ostream& ofsDest) : m_isOrig ( ifsOrig ) , m_osDest ( ofsDest ) , m_tokenizer ( ifsOrig ) , m_bEOFReached ( false ) { } CTranslator::~CTr...
<commit_before>/* Copyright (c) 2022 PaddlePaddle 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 ap...
<commit_before>/* * Copyright 2015 - 2021 [email protected] * * 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/. */ #pragma once #include <ox/mc/read.hpp> #ifdef...
<commit_before>/* Copyright 2015 Google Inc. 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 applica...
<commit_before><commit_msg>Refactor the code of the answer to question 3.10<commit_after><|endoftext|>
<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>/**************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation ([email protected]) ** ** This file is part of the Qt Designer of the Qt Toolkit. ** ** $QT_BEGIN_LIC...
<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) 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 "chrome/browser/gtk/gtk_chrome_link_button.h" #include "base/logging.h" static const char* kLinkMarkup = "<u><span color=\"%...
<commit_before>/* * Copyright (c) 2014 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>// 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 "chrome/browser/views/about_network_dialog.h" #include "base/string_util.h" #include "base/thread.h" #include "chrome/browser...
<commit_before> #include <iostream> #include "timer.h" #include "matrix.h" #if defined(AMATRIX_COMPARE_WITH_EIGEN) #include "Eigen/Dense" #endif template <typename TMatrixType> Timer::duration_type MeasureAccessTime(TMatrixType& A) { int repeat_number = 1000000; Timer timer; for (int i_repeat = 0; i_repe...
<commit_before>//Copyright (c) 2019 Ultimaker B.V. //CuraEngine is released under the terms of the AGPLv3 or higher. #include <gtest/gtest.h> #include "../src/Application.h" //To set up a scene and load settings that the layer plan and merger need. #include "../src/FanSpeedLayerTime.h" //Required to construct a layer...