text
stringlengths
54
60.6k
<commit_before>/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2013, Willow Garage, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the f...
<commit_before>#ifndef STAN_MATH_PRIM_META_REF_TYPE_HPP #define STAN_MATH_PRIM_META_REF_TYPE_HPP #include <stan/math/prim/meta/is_eigen.hpp> #include <stan/math/prim/meta/is_arena_matrix.hpp> #include <stan/math/prim/meta/is_vector.hpp> #include <stan/math/prim/meta/plain_type.hpp> #include <stan/math/prim/fun/Eigen.h...
<commit_before>#ifndef STAN_MATH_PRIM_META_REF_TYPE_HPP #define STAN_MATH_PRIM_META_REF_TYPE_HPP #include <stan/math/prim/fun/Eigen.hpp> #include <stan/math/prim/meta/is_eigen.hpp> #include <stan/math/prim/meta/is_eigen_map_base.hpp> #include <stan/math/prim/meta/is_arena_matrix.hpp> #include <stan/math/prim/meta/is_v...
<commit_before>// Copyright 2021 The IREE Authors // // Licensed under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception #include "iree/tools/iree_translate_lib.h" #include <functional> #include <memory...
<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>#ifndef JARNGREIPR_MODEL_CARBON_ALPHA_HPP #define JARNGREIPR_MODEL_CARBON_ALPHA_HPP #include <jarngreipr/model/Bead.hpp> #include <mjolnir/util/throw_exception.hpp> #include <algorithm> #include <stdexcept> #include <string> namespace jarngreipr { /*! @brief carbon alpha 1 beads per amino acid model */...
<commit_before>// The libMesh Finite Element Library. // Copyright (C) 2002-2022 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner // 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; eit...
<commit_before>#include "encoder.h" vsize_t* Encoder::encode(size_t value, size_t width=1) { vsize_t result = this->size_tToByteArray(value); vsize_t* val; if width < 4: val.= new vsize_t(4-width); for (size_t i = 0; i < val.size(); ++i) { (*val)[i] = result[i+4-width]; } else { val = new vsize_t(width ...
<commit_before>/* movementtools.cpp * Various movement tools source file */ #include "movementtools.h" // Constructor MovementTools::MovementTools(boost::shared_ptr<AL::ALBroker> broker, const std::string &name) : AL::ALModule(broker, name) { // Set description, and bind each function setModuleDescription("S...
<commit_before>#include <math.h> #include "engine.h" #include "entity.h" #include "geometry.h" #include "engine_event.h" #include "misc.h" #include "wall.h" #include "player.h" #include <SFML/Window/VideoMode.hpp> #include <SFML/Window/Window.hpp> #include <SFML/Graphics/Text.hpp> #include <stdio.h> #include "commands...
<commit_before> #include "sajson.h" using namespace sajson; extern "C" { struct str { const char* data; size_t length; }; parser* sj_parser(size_t length, const char* data) { mutable_string_view ms(string(data, length)); size_t* structure = new size_t[length]; return new parser(ms, structure); }...
<commit_before>#/*########################################################################## # # The fisx library for X-Ray Fluorescence # # Copyright (c) 2014 V. Armando Sole # # This file is part of the fisx X-ray developed by V.A. Sole # # Permission is hereby granted, free of charge, to any person obtaining a copy ...
<commit_before>// // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2013 Project Chrono // All rights reserved. // // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file at the top level of the distribution // and at http://projectchrono.org/license-chrono....
<commit_before>#ifndef TURBO_MEMORY_TAGGED_PTR_HPP #define TURBO_MEMORY_TAGGED_PTR_HPP #include <cstdint> #include <atomic> #include <limits> #include <stdexcept> #include <string> #include <turbo/toolset/extension.hpp> namespace turbo { namespace memory { class unaligned_ptr_error : public std::invalid_argument { p...
<commit_before>/************************************************************************* * * $RCSfile: util.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: rt $ $Date: 2004-10-22 14:04:39 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses ...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p9/procedures/hwp/memory/lib/dimm/rcd_load.H ...
<commit_before>/**************************************************************************** This file is part of the GLC-lib library. Copyright (C) 2005-2006 Laurent Ribon (laumaya@users.sourceforge.net) Version 0.9.7, packaged on September, 2007. http://glc-lib.sourceforge.net GLC-lib is free software; you ca...
<commit_before>/* * CrissCross * A multi-purpose cross-platform library. * * A product of Uplink Laboratories. * * (c) 2006-2021 Steven Noonan. * Licensed under the New BSD License. * */ #include <crisscross/universal_include.h> #include <crisscross/debug.h> #include <crisscross/filewriter.h> #inclu...
<commit_before>#include "manip.h" #include <cmath> #include "gd.h" #include "../image/image.h" #include <iostream> namespace manip { namespace { // 大津の手法による閾値の計算 int otsu_threshold(const double average, const int histgram[256]) { double max = 0.; int max_no = 0;...
<commit_before>/* * Copyright (C) 2020-present ScyllaDB */ /* * This file is part of Scylla. * * Scylla is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at...
<commit_before>#include "gm.h" #include "SkBitmap.h" #include "SkShader.h" #include "SkXfermode.h" namespace skiagm { static void make_bitmaps(int w, int h, SkBitmap* src, SkBitmap* dst) { src->setConfig(SkBitmap::kARGB_8888_Config, w, h); src->allocPixels(); src->eraseColor(0); SkCanvas c(*src);...
<commit_before><commit_msg>Estimate the renderer working set on Linux. This is less expensive and works in the Chromium SUID sandbox because it does not require access to /proc. Also cache the renderer memory usage value - in some workloads we ask for the memory usage too frequently.<commit_after><|endoftext|>
<commit_before>#include "ignsystem.h" #include <QDebug> ignsystem::ignsystem(QObject *parent) : QObject(parent), jsonParse(0), proc(0) { } QString ignsystem::cliOut(const QString& cli){ QProcess os; os.setProcessChannelMode(QProcess::MergedChannels); os.start(cli); int pid = os.pid();...
<commit_before>#ifdef _WIN32 #include "pcmaker/stdafx.h" #endif #include <sys/types.h> #include <sys/stat.h> #include <string.h> #include <fstream.h> #include <stdio.h> #include <stdlib.h> #ifdef _WIN32 #include "pcmaker/pcmaker.h" #include "pcmaker/pcmakerDlg.h" #endif #define MAX_DEPENDS 2000 struct DEPENDS_STRUCT ...
<commit_before>#include "ros/ros.h" #include <boost/bind.hpp> #include <boost/ref.hpp> #include "robotiq_s_model_control/s_model_ethercat_client.h" #include <robotiq_s_model_control/SModel_robot_input.h> #include "robotiq_ethercat/ethercat_manager.h" /* Note that this code currently works only to control ONE SMod...
<commit_before>/* * Copyright (C) 2011, Paul Tagliamonte <tag@pault.ag> * * 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 * ...
<commit_before>/*******************************************************************//* * Implementation of the Texture class. * * @author Brandon To * @version 1.0 * @since 2015-02-05 * @modified 2015-02-18 *********************************************************************/ #include "Texture...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2009 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>/* Copyright 2012, 2013 Rogier van Dalen. This file is part of Rogier van Dalen's Mathematical tools library for C++. This library is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 ...
<commit_before>// // Copyright 2013 Pixar // // Licensed under the Apache License, Version 2.0 (the "Apache License") // with the following modification; you may not use this file except in // compliance with the Apache License and the following modification to it: // Section 6. Trademarks. is deleted and rep...
<commit_before>/* * Copyright 2004 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. Al...
<commit_before>#include "Utility.h" double EPSILON = 10e-15; // probabilities smaller than this are treated as zero /*! * @function generate Truncated poisson distribution * @abstract bla bla * @discussion Use HMBalloonRect to get information about the size of a help balloon * before the Help Manager disp...
<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: textparagraphpropertiescontext.cx...
<commit_before>/* * Copyright (c) 2013-2014, Alberto Corona <alberto@0x1a.us> * 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 c...
<commit_before>/****************************************************************/ /* DO NOT MODIFY OR REMOVE THIS HEADER */ /* FALCON - Fracturing And Liquid CONvection */ /* */ /* (c) pending 2012 Battelle En...
<commit_before>#define MS_CLASS "TCPServer" #include "handles/TCPServer.h" #include "Utils.h" #include "DepLibUV.h" #include "MediaSoupError.h" #include "Logger.h" /* Static methods for UV callbacks. */ static inline void on_connection(uv_stream_t* handle, int status) { static_cast<TCPServer*>(handle->data)->onUvCo...
<commit_before>// For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" #ifdef __BORLANDC__ #pragma hdrstop #endif #ifndef WX_PRECOMP #include "wx/wx.h" #endif #include "osgsimpleviewerWX.h" #include <osgGA/TrackballManipulator> #include <osgDB/ReadFile> #include <wx/image.h> #include <w...
<commit_before>#include "graphicboard.h" #include "gamesprite.h" #include "gamefont.h" #include "tetrisboard.h" #include <mw/sprite.h> #include <mw/font.h> #include <mw/text.h> #include <mw/color.h> #include <SDL_opengl.h> #include <sstream> GraphicBoard::GraphicBoard(const TetrisBoard& tetrisBoard) : tetrisBoard_(t...
<commit_before>#include "FffProcessor.h" namespace cura { FffProcessor FffProcessor::instance; // definition must be in cpp FffProcessor::FffProcessor() : polygon_generator(this) , gcode_writer(this) , meshgroup_number(0) { } int FffProcessor::getMeshgroupNr() { return meshgroup_number; } std::string FffPro...
<commit_before>/* * Copyright (C) 2008-2013 J-P Nurmi <jpnurmi@gmail.com> * * 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 of the License, or (at your * option) any late...
<commit_before>#include "matrix.h" #include "checks.h" template <std::size_t TSize1, std::size_t TSize2> std::size_t TestZeroMatrixAssign() { AMatrix::Matrix<double, AMatrix::dynamic, AMatrix::dynamic> a_matrix(TSize1, TSize2); a_matrix = AMatrix::ZeroMatrix<double>(TSize1, TSize2); for (std::size_t i = 0...
<commit_before>/************************************************************************* * * $RCSfile: PageListWatcher.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: obo $ $Date: 2004-01-20 10:25:01 $ * * The Contents of this file are made available subject to the terms of * either of the followi...
<commit_before> #include "storage/Devices/BlkDeviceImpl.h" #include "storage/Devices/Filesystem.h" #include "storage/Utils/XmlFile.h" #include "storage/Utils/HumanString.h" #include "storage/Utils/StorageTmpl.h" #include "storage/SystemInfo/SystemInfo.h" #include "storage/Utils/StorageDefines.h" #include "storage/Util...
<commit_before>/* * Copyright 2006-2008 The FLWOR Foundation. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by...
<commit_before>// Copyright 2019 Google 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 law or...
<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 "remoting/host/event_executor.h" #include <windows.h> #include "base/bind.h" #include "base/compiler_specific.h" #include "b...
<commit_before>// RUN: %clang_cc1 -fsyntax-only -verify %s // RUN: cp %s %t // RUN: %clang_cc1 -fsyntax-only -fixit -x c++ %t || true // RUN: %clang_cc1 -fsyntax-only -pedantic -Werror -x c++ %t namespace std { template<typename T> class basic_string { // expected-note 2{{'basic_string' declared here}} public: ...
<commit_before>// RUN: %clang_cc1 -fsyntax-only -verify %s // RUN: %clang_cc1 -fsyntax-only -fixit -o - | %clang_cc1 -fsyntax-only -pedantic -Werror -x c++ - namespace std { template<typename T> class basic_string { int find(const char *substr); static const int npos = -1; }; typedef basic_string<char> ...
<commit_before>/* * SessionConsoleProcess.cpp * * Copyright (C) 2009-11 by RStudio, Inc. * * This program is licensed to you under the terms of version 3 of the * GNU Affero General Public License. This program is distributed WITHOUT * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT, * MERC...
<commit_before>/****************************************************************************** * ____ _ _____ * * / ___| / \ | ___| C++ * * | | / _ \ | |_ Actor ...
<commit_before>// Copyright (C) 2014 by Pedro Mendes, Virginia Tech Intellectual // Properties, Inc., University of Heidelberg, and The University // of Manchester. // All rights reserved. #include <math.h> #include "copasi/utilities/CUnit.h" #include "copasi/report/CKeyFactory.h" #include "copasi/report/CCopasiR...
<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/fast_value.h> #include <vespa/eval/eval/value_codec.h> #include <vespa/eval/instruction/generic_join.h> #include <vespa/eva...
<commit_before>// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. #include "dense_cell_range_function.h" #include <vespa/eval/eval/value.h> namespace vespalib::eval { using namespace tensor_function; namespace { template <typename CT> void my_cell_range...
<commit_before>/* Siconos-sample , Copyright INRIA 2005-2011. * Siconos is a program dedicated to modeling, simulation and control * of non smooth dynamical systems. * Siconos is a free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free...
<commit_before>#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file #include "Catch.hpp"<commit_msg>another case sensitivity fix<commit_after>#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file #include "catch.hpp"<|endoftext|>
<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 { // Login Login::Login() { m_ownerId = _T(""); } Login::~Login() { } // Login o֐ void Login::Read() ...
<commit_before>//Includes all the headers necessary to use the most common public pieces of the ROS system. #include <ros/ros.h> //Include some useful constants for image encoding. Refer to: http://www.ros.org/doc/api/sensor_msgs/html/namespacesensor__msgs_1_1image__encodings.html for more info. #include <geometry_msgs...
<commit_before>/*============================================================================= Copyright (c) 2012-2013 Richard Otis Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ===============================...
<commit_before>#include "task_synthetic_shapes.h" #include "libnanocv/loss.h" #include "libnanocv/util/math.hpp" #include "libnanocv/util/random.hpp" namespace ncv { synthetic_shapes_task_t::synthetic_shapes_task_t(const string_t& configuration) : task_t(configuration), ...
<commit_before>#include <QFileInfo> #include <QRegularExpression> #include "OutputParser.h" #include "ParseState.h" #include "TestModel.h" using namespace QtcGtest::Internal; namespace { const QRegularExpression gtestStartPattern ( QLatin1String ("^(.*)\\[==========\\] Running \\d+ tests? from \\d+ test cases...
<commit_before>#include "oh/Platform.hpp" #include "oh/SpaceConnection.hpp" #include "oh/HostedObject.hpp" #include "oh/SpaceTimeOffsetManager.hpp" #include "MonoDefs.hpp" #include "MonoDomain.hpp" #include "MonoContext.hpp" #include "MonoObject.hpp" #include "MonoDelegate.hpp" #include "MonoArray.hpp" #include "MonoEx...
<commit_before>#include "../../render_objects/renderables.hpp" #include "fmt/format.h" #include "vulkan_render_engine.hpp" namespace nova::renderer { void vulkan_render_engine::create_builtin_uniform_buffers() { // TODO: move this to the settings const uint32_t static_object_estimate = 5000; ...
<commit_before>// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2006-2008 Benoit Jacob <jacob.benoit.1@gmail.com> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published...
<commit_before>/* * Java Genetic Algorithm Library (@__identifier__@). * Copyright (c) @__year__@ Franz Wilhelmstötter * * 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://...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: postuhdl.cxx,v $ * * $Revision: 1.8 $ * * last change: $Author: hr $ $Date: 2007-06-27 15:42:29 $ * * The Contents of this file are made ...
<commit_before>/* ** Copyright (C) 2012 Aldebaran Robotics */ #pragma once #ifndef _QIMESSAGING_EXECUTIONCONTEXT_HPP_ #define _QIMESSAGING_EXECUTIONCONTEXT_HPP_ #include <boost/shared_ptr.hpp> #include <boost/function.hpp> #include <qi/types.hpp> #include <qimessaging/api.hpp> namespace qi { class EventLoopPrivat...
<commit_before>/* * File: PGR_renderer.cpp * Author: Martin Simon <xsimon14@stud.fit.vutbr.cz> * Lukas Brzobohaty <xbrzob06@stud.fit.vutbr.cz> * * Created on 2013-10-13, 18:20 */ #include "pgr.h" #include "PGR_renderer.h" #include "model.h" //#include "sphere.h" #include <glm/gtc/matrix_transfo...
<commit_before>/* * This file is part of the AzerothCore Project. See AUTHORS file for Copyright information * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU Affero General Public License as published by the * Free Software Foundation; either version 3 of the...
<commit_before>// // board_test.cpp // game_of_life // // Created by Chris Powell on 8/28/13. // Copyright (c) 2013 Prylis Inc. All rights reserved. // #include <iostream> #include "gtest/gtest.h" #include "../include/board.h" namespace { // The fixture for testing class Foo. class BoardTest : public ::t...
<commit_before>/////////////////////////////////////////////////////////////////////////////// // // File DriverSteadyState.cpp // // For more information, please see: http://www.nektar.info // // The MIT License // // Copyright (c) 2006 Division of Applied Mathematics, Brown University (USA), // Department of Aeronaut...
<commit_before>/**************************************************************************** This file is part of the QtMediaHub project on http://www.gitorious.org. Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).* All rights reserved. Contact: Nokia Corporation (qt-info@nokia.com)** You may use ...
<commit_before>/**************************************************************************** This file is part of the QtMediaHub project on http://www.gitorious.org. Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).* All rights reserved. Contact: Nokia Corporation (qt-info@nokia.com)** You may use ...
<commit_before>#include "stdafx.h" #include "uart.h" #include "Globals.h" #include "World.h" #include "Train.h" #include "Logs.h" uart_input::uart_input() { conf = Global::uart_conf; if (sp_get_port_by_name(conf.port.c_str(), &port) != SP_OK) throw std::runtime_error("uart: cannot find specified port"...
<commit_before>/* +---------------------------------------------------------------------------+ | Mobile Robot Programming Toolkit (MRPT) | | http://www.mrpt.org/ | | ...
<commit_before>#include <algorithm> #include <iostream> #include <limits> #include <map> #include <regex> #include <string> #include <vector> #include "persistenceDiagrams/IO.hh" #include "persistenceDiagrams/PersistenceDiagram.hh" #include "persistenceDiagrams/PersistenceIndicatorFunction.hh" #include "utilities/Fil...
<commit_before>// // libavg - Media Playback Engine. // Copyright (C) 2003-2011 Ulrich von Zadow // // 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 of the Li...
<commit_before>#include "json.hpp" namespace LB { namespace json { struct value::base { virtual ~base() noexcept = default; friend bool operator==(base const &a, base const &b) noexcept { return a.equals(b); } friend bool operator<(base const &a, base const &b) noexcept { return a.less...
<commit_before>#include "tpunit++.hpp" #include "mock4cpp.h" #include <string> struct BasicVerification: tpunit::TestFixture { BasicVerification() : tpunit::TestFixture( // TEST(BasicVerification::verify_should_not_throw_exception_if_method_was_called), // TEST(BasicVerification::verify_should_throw_M...
<commit_before> #include "lexer.h" #include <regex> #include <cstring> #include <vector> #include <iostream> #include <cassert> #include <stdio.h> #include "file_mapped_io.h" internal_ bool hasFileExtension(const char* filename, const char* extension); internal_ bool isMeaninglessChar(LexingIterator& lexer); Token...
<commit_before>// Copyright (c) 2017, Franz Hollerer. All rights reserved. // This code is licensed under the MIT License (MIT). // See LICENSE file for full details. #include <mutex> #include <hodea/core/cstdint.hpp> #include <hodea/device/hal/device_setup.hpp> #include <hodea/rte/htsc.hpp> #include <hodea/device/hal...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: filedlgimpl.hxx,v $ * * $Revision: 1.10 $ * * last change: $Author: hr $ $Date: 2006-06-19 22:21:39 $ * * The Contents of this file are m...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: textview.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: vg $ $Date: 2007-04-11 19:40:09 $ * * The Contents of this file are made ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: cuicharmap.cxx,v $ * * $Revision: 1.9 $ * * last change: $Author: hr $ $Date: 2007-06-27 16:57:15 $ * * The Contents of this file are mad...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: cuiimapwnd.cxx,v $ * * $Revision: 1.9 $ * * last change: $Author: hr $ $Date: 2007-06-26 13:49:48 $ * * The Contents of this file are mad...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: accdoc.hxx,v $ * * $Revision: 1.18 $ * * last change: $Author: rt $ $Date: 2005-09-09 02:46:39 $ * * The Contents of this file are made a...
<commit_before> #include "adaptive_time_solver.h" #include "diff_system.h" #include "euler_solver.h" #include "numeric_vector.h" AdaptiveTimeSolver::AdaptiveTimeSolver (sys_type& s) : UnsteadySolver(s), core_time_solver(NULL), target_tolerance(1.e-3), upper_tolerance(0.0), max_deltat(0.), min_deltat(0.)...
<commit_before>/** The goal of this tutorial is to implement in Tiramisu a code that is equivalent to the following for (int i = 0; i < 10; i++) for (int j = 0; j < 20; j++) output[i, j] = A[i, j] + i + 2; */ #include <tiramisu/tiramisu.h> #define NN 10 #define MM 20 using namespace tiramisu; int m...
<commit_before>/// @file /// @author Kresimir Spes /// @author Boris Mikic /// @author Ivan Vucica /// @version 2.43 /// /// @section LICENSE /// /// This program is free software; you can redistribute it and/or modify it under /// the terms of the BSD license: http://www.opensource.org/licenses/bsd-license.php #...
<commit_before>//stl list //载入头文件 #include <iostream> #include <list> using namespace std; typedef struct { char name[21]; int id; } note ; bool myFun(const int& value) { return (value < 2); } int main(int argc, char const *argv[]) { //建立 list<int> L0; // 空链表 list<int> L1(9); // 建一个含一个元素的链表 list<int>...
<commit_before>#include "loweventer.hpp" #include "bison/lowparser.hpp" #include "../../ast.hpp" #include "../../ast/mgd/mgdFunc.hpp" #include "../../builtin/primitive.hpp" namespace wrd { using std::string; WRD_DEF_ME(loweventer) namespace { string merge(const narr& dotname) { string...
<commit_before>/*! * Copyright 2015 by Contributors * \file rank.cc * \brief Definition of rank loss. * \author Tianqi Chen, Kailong Chen */ #include <dmlc/omp.h> #include <xgboost/logging.h> #include <xgboost/objective.h> #include <vector> #include <algorithm> #include <utility> #include "../common/math.h" #inclu...
<commit_before>// Copyright (c) 2012 Plenluno All rights reserved. #include "libj/js_object.h" #include "libj/detail/js_object.h" namespace libj { JsObject::Ptr JsObject::create() { return Ptr(new detail::JsObject<JsObject>()); } } // namespace libj <commit_msg>replace "" with <><commit_after>// Copyright (c) ...
<commit_before>// Copyright 2009, Squish Tech, LLC. #include "libxmljs.h" #include "xml_syntax_error.h" #include "xml_document.h" #include "xml_node.h" #include "xml_parser.h" #include "html_parser.h" namespace libxmljs { v8::Persistent<v8::FunctionTemplate> memory_usage; namespace { void on_libxml_destruct(xml...
<commit_before>#include <cstdio> #include <cstring> #include <climits> #include <algorithm> #include <vector> #include <mpi.h> using namespace std; #define MAXN 100 #define MAXM 10000 int p,rank; int n,m; struct edge{ int u,v,w; bool operator < (edge e) const{ return w < e.w; } }e[MAXM]; bool in_tree[MAXM];...
<commit_before>/* * Distributed under the OSI-approved Apache License, Version 2.0. See * accompanying file Copyright.txt for details. * * CompressMGARDPlus.cpp : * * Created on: Feb 23, 2022 * Author: Jason Wang jason.ruonan.wang@gmail.com */ #include "CompressMGARDPlus.h" #include "CompressMGARD.h" #i...
<commit_before>#include <ncurses.h> #include <utility> #include "board.hpp" #include "print.hpp" #include "reversi.hpp" namespace roadagain { Reversi::Reversi() : black_(DEFAULT_STONE / 2), white_(DEFAULT_STONE / 2), now_(BLACK), next_(WHITE) { } Reversi::~Reversi() { } void Reversi::start() { print(START_...
<commit_before>// Copyright 2004-present Facebook. All Rights Reserved. #include <gtest/gtest.h> #include <folly/Conv.h> #include <folly/Format.h> #include <folly/io/async/ScopedEventBaseThread.h> #include <folly/portability/GFlags.h> #include "RSocketTests.h" #include "rsocket/test/handlers/HelloServiceHandler.h" ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: ww8par2.hxx,v $ * * $Revision: 1.46 $ * * last change: $Author: hr $ $Date: 2007-09-27 10:05:12 $ * * The Contents of this file are made ...
<commit_before>// AboutBox.cpp // Copyright (c) 2009, Dan Heeks // This program is released under the BSD license. See the file COPYING for details. #include "stdafx.h" #include "AboutBox.h" #include "HeeksFrame.h" BEGIN_EVENT_TABLE( CAboutBox, wxDialog ) EVT_BUTTON( wxID_OK, CAboutBox::OnButtonOK ) END_EVENT_TABLE()...
<commit_before>/************************************************************************* * * $RCSfile: xmltext.cxx,v $ * * $Revision: 1.10 $ * * last change: $Author: rt $ $Date: 2004-07-13 09:09:01 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...