text
stringlengths
54
60.6k
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: contimp.hxx,v $ * * $Revision: 1.6 $ * * last change: $Author: hr $ $Date: 2007-06-27 16:56:01 $ * * The Contents of this file are made a...
<commit_before>/************************************************************************* * * $RCSfile: treeopt.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: hr $ $Date: 2004-02-03 19:00:55 $ * * The Contents of this file are made available subject to the terms of * either of the following licens...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: zoomitem.cxx,v $ * * $Revision: 1.9 $ * * last change: $Author: obo $ $Date: 2006-10-12 12:56:38 $ * * The Contents of this file are made...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: edfmt.cxx,v $ * * $Revision: 1.9 $ * * last change: $Author: kz $ $Date: 2008-03-05 16:58:36 $ * * The Contents of this file are made ava...
<commit_before>/// \file ThisMfcApp.cpp /// \brief App object of MFC version of Password Safe //----------------------------------------------------------------------------- #include "PasswordSafe.h" #include <io.h> #include <fcntl.h> #include <sys/stat.h> #include <errno.h> #include "ThisMfcApp.h" #include "Util.h"...
<commit_before>/** * @file * @author Jason Lingle * @brief Implementation of src/core/init_state.hxx */ #include <iostream> #include <typeinfo> #include <ctime> #include <new> #include <GL/gl.h> #include <SDL.h> #include <tcl.h> #include "init_state.hxx" #include "src/globals.hxx" #include "src/graphics/imgload...
<commit_before>#include <sys/systm.h> #include "remap.hpp" #include "RemapUtil.hpp" #include "Client.hpp" #include "Config.hpp" #include "IOLockWrapper.hpp" #include "KeyCode.hpp" #include "ListHookedKeyboard.hpp" namespace org_pqrs_KeyRemap4MacBook { namespace GeneratedCode { #include "config/output/include.remapc...
<commit_before>#include "utils.h" #include <assert.h> #include <netdb.h> #include <arpa/inet.h> #include "http_url_parser.h" http_url_parser::http_url_parser(const char *url) : mURL(strdup(url)), mPort(80), mHost(0), mPath(0), mScheme(0), mHaveScheme(false) { parser(); } http_url_p...
<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 Francois Beaune, The appleseedhq Organi...
<commit_before>// @(#)root/rint:$Name: $:$Id: TRint.cxx,v 1.1.1.1 2000/05/16 17:00:46 rdm Exp $ // Author: Rene Brun 17/02/95 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. ...
<commit_before><commit_msg>Add ninja dependency reference to gen written files.<commit_after><|endoftext|>
<commit_before>#include "catch.hpp" #include "expected.hpp" #include <string> using std::string; tl::expected<int, string> getInt3(int val) { return val; } tl::expected<int, string> getInt2(int val) { return val; } tl::expected<int, string> getInt1() { return getInt2(5).and_then(getInt3); } TEST_CASE("Issue 1", "...
<commit_before>/* * Copyright 2007-2020 CM4all GmbH * All rights reserved. * * author: Max Kellermann <mk@cm4all.com> * * 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...
<commit_before>#include <iostream> #include <cstdlib> #include <cmath> #include <cstdio> #include "consts.h" #include "circuits/circuit.h" #include "matrix/newtonraphson.h" using namespace std; static const int MAX_ATTEMPTS = 500; static const int MAX_LOOPS = 1000; static const double TOLERANCE = 1e-4; void random...
<commit_before>// RUN: rm -rf %t // Test that only forward declarations are emitted for types dfined in modules. // Modules: // RUN: %clang_cc1 -x objective-c++ -std=c++11 -debug-info-kind=limited \ // RUN: -dwarf-ext-refs -fmodules \ // RUN: -fmodule-format=obj -fimplicit-mod...
<commit_before>//===- llvm/Transforms/DecomposeMultiDimRefs.cpp - Lower array refs to 1D -===// // // 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>/** * \file * \brief mutexTestCases object definition * * \author Copyright (C) 2014 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info * * \par License * 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 * distri...
<commit_before>// RUN: %clang_cc1 -fsyntax-only -std=c++0x -Wc++98-compat -verify %s template<typename ...T> // expected-warning {{variadic templates are incompatible with C++98}} class Variadic1 {}; template<template<typename> class ...T> // expected-warning {{variadic templates are incompatible with C++98}} class...
<commit_before>/* * Software License Agreement (BSD License) * * Copyright (c) 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: * * * Redistributions of...
<commit_before>#define BOOST_TEST_MODULE TEST_IO #include <iostream> #include <fstream> #include <stdexcept> #include <boost/test/unit_test.hpp> #include <dynet/dynet.h> #include <dynet/expr.h> #include <dynet/rnn.h> #include <dynet/lstm.h> #include <dynet/gru.h> #include <dynet/io.h> #include "test.h" using names...
<commit_before>/* * BayesianClassifier.cpp * * Created on: Mar 20, 2009 * Author: Simon Lavigne-Giroux */ #include "BayesianClassifier.h" #include <fstream> // The threshold to get to select whether an output is valid #define outputProbabilityTreshold 0.003 // There is a minimum denominator value to remove...
<commit_before><commit_msg>Fix to way we identify the active window. This deals with XFCE which doesn't set the property correctly. Bug=31971 Test=Run Chrome under the XFCE WM and ensure that inactive windows titles are light blue<commit_after><|endoftext|>
<commit_before>//===----------------------------------------------------------------------===// // // Peloton // // catalog_test.cpp // // Identification: test/catalog/catalog_test.cpp // // Copyright (c) 2015-16, Carnegie Mellon University Database Group // //===--------------------------------...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2016 The Qt Company Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the examples of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:BSD$ ** Commercial License Usage ** Licensees holding vali...
<commit_before>#include <FImage.h> using namespace FImage; int main(int argc, char **argv) { int W = 128, H = 128; Image<uint16_t> in(W, H); for (int y = 0; y < H; y++) { for (int x = 0; x < W; x++) { in(x, y) = rand() & 0xff; } } Var x("x"), y("y"); Image<uint...
<commit_before>// Copyright (c) 2015 The Brick Authors. #include "brick/platform_util.h" #include <unistd.h> #include <signal.h> #include <sys/stat.h> #include <glib.h> #include <string> #include "include/wrapper/cef_helpers.h" #include "brick/helper.h" namespace { // The KDE session version environment variabl...
<commit_before>/* * Copyright 2017 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. Al...
<commit_before>// This file is part of CAF, the C++ Actor Framework. See the file LICENSE in // the main distribution directory for license terms and copyright or visit // https://github.com/actor-framework/actor-framework/blob/master/LICENSE. #pragma once #include "caf/detail/type_traits.hpp" #include "caf/fwd.hpp" ...
<commit_before>#include "dbg_pathconvert.h" #include "dbg_path.h" #include "dbg_impl.h" #include "dbg_unicode.h" #include <algorithm> #include <assert.h> namespace vscode { pathconvert::pathconvert(debugger_impl* dbg) : debugger_(dbg) , sourcemaps_() { } void pathconvert::add_sourcemap(const fs::path& srv, ...
<commit_before>#include "gtest/gtest.h" #include "joedb/compiler/nested_namespace.h" ///////////////////////////////////////////////////////////////////////////// TEST(nested_namespace, splitting) ///////////////////////////////////////////////////////////////////////////// { auto n = joedb::split_namespace("split::...
<commit_before>/*************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (directui@nokia.com) ** ** This file is part of mcompositor. ** ** If you have questions regarding the...
<commit_before>/* Copyright (C) 2009, Mikkel Krautz <mikkel@krautz.dk> 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 no...
<commit_before>/** * Copyright (c) 2011-2015 libbitcoin developers (see AUTHORS) * Copyright (c) 2016-2018 metaverse core developers (see MVS-AUTHORS) * * This file is part of metaverse. * * metaverse is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public Li...
<commit_before>//#include "rhodes/JNIRhodes.h" #include <rhodes.h> #include <android/log.h> #include <common/RhodesApp.h> #include <logging/RhoLogConf.h> #include <stdlib.h> #define IP_PORTION_COUNT 32 RHO_GLOBAL void rho_platform_image_load_grayscale(const char* url, void** image_pixels, int* pwidth, int* pheigh...
<commit_before>//===----------------------------------------------------------------------===// // // Peloton // // logging_test.cpp // // Identification: test/logging/logging_test.cpp // // Copyright (c) 2015-16, Carnegie Mellon University Database Group // //===--------------------------------...
<commit_before>/* This file is part of Bohrium and copyright (c) 2012 the Bohrium team <http://www.bh107.org>. Bohrium 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 3 of the License, or (a...
<commit_before>//===----------------------------------------------------------------------===// // // Peloton // // group_by_sql_test.cpp // // Identification: test/sql/group_by_sql_test.cpp // // Copyright (c) 2015-17, Carnegie Mellon University Database Group // //===--------------------------...
<commit_before>#include "p2pclient.h" #include "utils.h" #include "crypto/sha2.h" #include <thread> #include <string.h> #include <unistd.h> #include <sys/time.h> #ifdef WIN32 #include <winsock2.h> #include <ws2tcpip.h> #else // WIN32 #include <netinet/tcp.h> #include <netdb.h> #include <fcntl.h> #endif // !WIN32...
<commit_before>/** @file @brief Implementation @date 2014 @author Sensics, Inc. <http://sensics.com/osvr> */ // Copyright 2014 Sensics, 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 ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: canvasfont.hxx,v $ * * $Revision: 1.5 $ * * last change: $Author: rt $ $Date: 2005-09-07 23:19:11 $ * * The Contents of this file are mad...
<commit_before>#define BOOST_TEST_DYN_LINK #define BOOST_TEST_MODULE SubmodularFlow #include <boost/test/unit_test.hpp> #include <iostream> #include "submodular-flow.hpp" BOOST_AUTO_TEST_SUITE(basicSubmodularFlow) BOOST_AUTO_TEST_CASE(sanityCheck) { BOOST_CHECK_EQUAL(2+2, 4); } BOOST_AUTO_TEST_SUITE_END() <comm...
<commit_before>/*** * testSDLScreenManager * * Testing SDLScreenManager class, which deals with SDL output and RdScreen management * * This test is NOT AUTOMATIC, not suitable for running it with a CI server * ***/ #include "ScreenManager.hpp" #include "SDLScreenManager.hpp" #include "RdScreen.hpp" #include "Mo...
<commit_before>/* Copyright (c) 2008, Arvid Norberg All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of condi...
<commit_before>#include "GenericVariableBlock.h" // Moose Includes #include "MeshBlock.h" #include "Moose.h" #include "Parser.h" // libMesh includes #include "mesh.h" #include "exodusII_io.h" #include "boundary_info.h" #include "getpot.h" #include "mesh_refinement.h" #include "linear_partitioner.h" MeshBlock::MeshBl...
<commit_before>/* * Copyright 2019 Google 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 applicable la...
<commit_before>/* * Copyright (c) 2011 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>/********************************************************************** * File: params.cpp * Description: Initialization and setting of Tesseract parameters. * Author: Ray Smith * Created: Fri Feb 22 16:22:34 GMT 1991 * * (C) Copyright 1991, Hewlett-Packard Ltd. ** Licensed under t...
<commit_before>//========= Copyright 1996-2005, Valve Corporation, All rights reserved. ============// // // Purpose: // // $NoKeywords: $ //=============================================================================// #include "cbase.h" #include "vgui_bitmapimage.h" #include <vgui_controls/Controls.h> #include <vg...
<commit_before>// Copyright 2015 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 "flutter/lib/ui/painting/gradient.h" #include "lib/tonic/converter/dart_converter.h" #include "lib/tonic/dart_args.h" #include "l...
<commit_before>/* This file is part of the CVD Library. Copyright (C) 2005 The Authors 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 L...
<commit_before>/* zesto-prefetch.cpp - Zesto cache prefetcher class * * Copyright 2009 by Gabriel H. Loh and the Georgia Tech Research Corporation * Atlanta, GA 30332-0415 * All Rights Reserved. * * THIS IS A LEGAL DOCUMENT BY DOWNLOADING ZESTO, YOU ARE AGREEING TO THESE * TERMS AND CONDITIONS. * * THIS S...
<commit_before>//! //! @author Yue Wang //! @date 18 Sep 2014 //! //! ex2.4.1.a //! parse //! S -> '+' S S | '-' S S | 'a' //! #include <iostream> #include <string> #include <functional> namespace dragon{ namespace ch2{ /** * @brief parse_241a * @param first * @param last * @return true if lega...
<commit_before>/* * (C) 2009 Jack Lloyd * * Distributed under the terms of the Botan license */ #include <vector> #include <string> #include <fstream> #include <iostream> #include <cstdlib> #include <botan/bigint.h> #include <botan/exceptn.h> #include <botan/numthry.h> using namespace Botan; #include "common.h" #inc...
<commit_before>#ifndef INC_BENCODE_HPP #define INC_BENCODE_HPP #include <cassert> #include <cstring> #include <iterator> #include <iostream> #include <map> #include <sstream> #include <stdexcept> #include <string> #include <vector> // Try to use N4082's any and string_view classes, or fall back to Boost's. #ifdef __h...
<commit_before>#include "PhysicsSystem.hpp" #include "Globals.hpp" #include "GameEngine\GameEngine.h" namespace ASSB { void PhysicsSystem::Update(GameEngine &g, std::unordered_map<ASSB::Globals::ObjectID, RigidBodyComponent> &map) { UNUSED(g); UNUSED(map); //!TODO:Convert to not using full N^2 items in map...
<commit_before>#pragma once #include <unordered_map> #include <memory> #include <type_traits> #include <tuple> namespace kgr { template<typename... Types> struct Dependency { using DependenciesTypes = std::tuple<Types...>; }; using NoDependencies = Dependency<>; template<typename T> struct Service; namespace det...
<commit_before><commit_msg>revisited the appendEntries API<commit_after><|endoftext|>
<commit_before>//////////////////////////////////////////////////////////////////////////////// /// @brief ArangoDB server /// /// @file /// /// DISCLAIMER /// /// Copyright 2014 ArangoDB GmbH, Cologne, Germany /// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2....
<commit_before>/* * This program 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 of the License, or * (at your option) any later version. * * This program is distributed in the hope...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: mediamisc.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: rt $ $Date: 2005-09-07 19:38:16 $ * * The Contents of this file are made...
<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 "app/gfx/native_widget_types.h" #include "base/file_path.h" #include "base/string_util.h" #include "base/sys_info.h" #inc...
<commit_before>#include "sinXScrollDemo.h" #include "vrambatcher.h" #include <cmath> #include <nds/arm9/input.h> #define MIN_AMPLITUDE 0 #define MAX_AMPLITUDE 256 #define MAX_SPEED 0.2 #define MIN_SPEED 0 #define MAX_LINESPEED 0.2 #define MIN_LINESPEED 0 #define M_PI 3.14159265358979323846 SinXScrollDemo::SinXS...
<commit_before>// Copyright 2014 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 require...
<commit_before>//---------------------------- dof_tools_common.cc --------------------------- // $Id$ // Version: $Name$ // // Copyright (C) 2003, 2004, 2005 by the deal.II authors // // This file is subject to QPL and may not be distributed // without copyright and license information. Please refer ...
<commit_before>#ifdef DE #include"global.h" #include"grid3D.h" #ifdef PARALLEL_OMP #include"parallel_omp.h" #endif bool Grid3D::Select_Internal_Energy_From_DE( Real E, Real U_total, Real U_advected ){ Real eta = DE_LIMIT; if( U_total / E > eta ) return 0; else return 1; } void Grid3D::Sync_Energies_3D_...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the QtQml module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usag...
<commit_before>/**************************************************************************** * * Copyright (c) 2017 PX4 Development Team. 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>#include "sprite.h" #include "../asset_manager.h" #include <SDL.h> #include <fstream> #include <iostream> #include <sstream> #include <vector> extern SDL_Renderer *renderer; Sprite::Sprite(const std::string &path) { load(path); direction_ = SPRITE_RIGHT; visualDirection_ = SPRITE_RIGHT; } bo...
<commit_before>// -*-c++-*- /* * $Id$ * * DirectX file converter for OpenSceneGraph. * Copyright (c)2002 Ulrich Hertlein <u.hertlein@sandbox.de> * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Soft...
<commit_before>/* Copyright (c) 2012 Carsten Burstedde, Donna Calhoun 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 ...
<commit_before>/* * Copyright 2015 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 requ...
<commit_before>/* * This File is part of Davix, The IO library for HTTP based protocols * Copyright (C) 2013 Adrien Devresse <adrien.devresse@cern.ch>, CERN * * 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...
<commit_before>/* * * Copyright (c) 2021 Project CHIP 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 * * ...
<commit_before>/* * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org * Copyright (c) 2009-2010, Willow Garage, Inc. * Copyright (c) 2012-, Open Perception, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: b3dtuple.hxx,v $ * * $Revision: 1.13 $ * * last change: $Author: obo $ $Date: 2007-07-18 11:04:50 $ * * The Contents of this file are mad...
<commit_before>/* Flexisip, a flexible SIP proxy server with media capabilities. Copyright (C) 2010-2015 Belledonne Communications SARL, 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 as published by the Free S...
<commit_before>/* Copyright 2013 Brain Research Institute, Melbourne, Australia Written by David Raffelt, 31/01/2013 This file is part of MRtrix. MRtrix 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 Softwa...
<commit_before>#include <zlib.h> #include <inttypes.h> #include <memory> #include "htslib/kseq.h" #include "htslib/kstring.h" #include "dlib/logging_util.h" KSEQ_INIT(gzFile, gzread) int usage(char **argv, int rc) { fprintf(stderr, "Usage: %s -l<blen> infq1 infq2 outfq1 outfq2 outfq3\n For converting non-duplex ...
<commit_before>/********************************************************************************** * Copyright (C) 2011 by Hugo Stefan Kaus Puhlmann * * Permission is hereby granted, free of charge, to any person obtaining a copy * * of this software and associated documentation file...
<commit_before>#define SPICA_TRIMESH_EXPORT #include "trimesh.h" #include <cstdio> #include <cstring> #include <iostream> #include <fstream> #include <sstream> #include <algorithm> #include "../utils/common.h" namespace spica { Trimesh::Trimesh() : _vertices() , _colors() ...
<commit_before>////////////////////////////////////////////////////////////////////////// // // SneezyMUD - All rights reserved, SneezyMUD Coding Team // ////////////////////////////////////////////////////////////////////////// #include "stdsneezy.h" #include "statistics.h" #include "database.h" extern FILE *obj_f;...
<commit_before>// Copyright 2014 Google Inc. All rights reserved. // // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file or at // https://developers.google.com/open-source/licenses/bsd #include "base/file_util.h" #include "base/strings/string_number_conversions.h" #in...
<commit_before>// Copyright Daniel Wallin & Arvid Norberg 2009. Use, modification and distribution is // subject to 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) #include <boost/python.hpp> #include <libtorrent/create_torrent.hpp> #i...
<commit_before>// Copyright Daniel Wallin 2006. Use, modification and distribution is // subject to 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) #include <boost/python.hpp> #include <boost/python/tuple.hpp> #include <libtorrent/torr...
<commit_before>// // Copyright (C) 2013 Mateusz Łoskot <mateusz@loskot.net> // Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). // // This file is part of Qt Creator Boost.Build plugin project. // // This is free software; you can redistribute and/or modify it under // the terms of the GNU Lesser General Publ...
<commit_before>#include <iostream> #include <fstream> #include "WARCReader.h" #include "WARCRecord.h" #include "CSVWriter.h" #include "tclap/CmdLine.h" void writeCSVHeader(CSV::Writer&); void processWARC(std::istream&, CSV::Writer&, int); constexpr int noVerbosity = 0; constexpr int lowVerbosity = 1; constexpr int me...
<commit_before>/* * Copyright 2012 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "GrProcessor.h" #include "GrContext.h" #include "GrCoordTransform.h" #include "GrGeometryProcessor.h" #include "GrInvariantOutput.h" #include "GrMemory...
<commit_before>// File: btBoostDynamics.hpp #ifndef _btBoostDynamics_hpp #define _btBoostDynamics_hpp #include <boost/python.hpp> #include "btBoostLinearMathScalar.hpp" #include "btBoostLinearMathVector3.hpp" #include "btBoostLinearMathQuadWord.hpp" #include "btBoostLinearMathQuaternion.hpp" #include "btBoostLinearMat...
<commit_before>/* Copyright (c) 2007, Arvid Norberg All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of condi...
<commit_before>#include "Jzon.h" #include <string> #include <iostream> #include <sstream> #include <vector> #define SUCCESS 0 #define ERROR 1 #define THREADS 1 int checkParameters(Jzon::Object params) { // Search for parameter 'filename' try { params.Get("filename").ToString(); } catch (...
<commit_before>#pragma once //=====================================================================// /*! @file @brief RX600, RX200 グループ・CMT I/O 制御 @n Copyright 2013, 2017 Kunihito Hiramatsu @author 平松邦仁 (hira@rvf-rc45.net) */ //=====================================================================// #include "comm...
<commit_before>#pragma once //=====================================================================// /*! @file @brief RX マイコン、デバイス固有ヘッダー @author 平松邦仁 (hira@rvf-rc45.net) @copyright Copyright (C) 2018, 2021 Kunihito Hiramatsu @n Released under the MIT license @n https://github.com/hirakuni45/RX/blo...
<commit_before>/* Please refer to license.txt */ #pragma once #define ENGINE_VERSION 0.0.0.1 //All operating specific code. //Check http://sourceforge.net/apps/mediawiki/predef/index.php?title=Operating_Systems //to keep this section of code up to date. #define OS_WINDOWS 0 #define OS_APPLE 1 #define OS_LINUX 2 #d...
<commit_before>#include <iostream> #include "immintrin.h" union vec4 { __m256d raw; double val[4]; }; int main() { __m256d v1 = _mm256_set_pd(1.0, 2.0, 3.0, 4.0); __m256d v2 = _mm256_set_pd(2.0, 3.0, 4.0, 5.0); vec4 res = {_mm256_mul_pd(v1, v2)}; for (double val : res.val) { std::cou...
<commit_before>/* Copyright (C) 2003 MySQL AB This program 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 of the License, or (at your option) any later version. This program is d...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice 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 ...
<commit_before>/* Copyright 2020 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>// This is free and unencumbered software released into the public domain. // For more information, please refer to <http://unlicense.org/> #include "models/sagtension/cable_elongation_model.h" #include "gtest/gtest.h" #include "factory.h" #include "models/base/helper.h" class CableElongationModelTes...
<commit_before>/**************************************************************** * Servo * * read joystick data, normalize, write to servo * * * * known issues: if it won't work, open s...
<commit_before>/* * This program 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 3 of the License, or * (at your option) any later version. * * Written (W) 2012-2013 Heiko Strathmann */ ...