text
stringlengths
54
60.6k
<commit_before>/************************************************************************************ ** * @copyright (c) 2013-2100, ChengDu Duyer Technology Co., LTD. All Right Reserved. * *************************************************************************************/ /** * @file g_dfs_server.cpp * @versio...
<commit_before>/*! @file PDBReader.hpp @brief definition of a class that reads pdb atom. read pdb file and store the information as std::vector of shared_ptr of PDBAtom @author Toru Niina (niina.toru.68u@gmail.com) @date 2016-06-10 13:00 @copyright Toru Niina 2016 on MIT License */ #ifndef COFFEE_MILL_...
<commit_before>/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2008, Willow Garage, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the...
<commit_before>#include "core/Loader.hpp" namespace Kvant { static std::vector<std::string> process_material_texture(aiMaterial *mat, aiTextureType type, std::string typeName) { std::vector<std::string>...
<commit_before>/* * Copyright (C) 2011 Apple 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 list ...
<commit_before><commit_msg>IWorkController interface<commit_after><|endoftext|>
<commit_before><commit_msg>Improved zlib error message<commit_after><|endoftext|>
<commit_before>/* * Copyright (c) 2003-2011 Rony Shapiro <ronys@users.sourceforge.net>. * All rights reserved. Use of the code is allowed under the * Artistic License 2.0 terms, as specified in the LICENSE file * distributed with this code, or available from * http://www.opensource.org/licenses/artistic-license-2.0.php...
<commit_before>// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // All right reserved. // // Use of this source code is governed by a BSD-style license that can be found // in the LICENSE file at the ...
<commit_before>// -*-Mode: C++;-*- // $Id$ // * BeginRiceCopyright ***************************************************** // // Copyright ((c)) 2002-2007, Rice University // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the ...
<commit_before>/****************************************************************************** * SOFA, Simulation Open-Framework Architecture, development version * * (c) 2006-2017 INRIA, USTL, UJF, CNRS, MGH * * ...
<commit_before>/************************************************************************** ** ** This file is part of Qt Creator ** ** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** ** GNU Lesser General Public License Usage ** ** This file m...
<commit_before>/* */ #include "lineFollowing.h" using namespace std; using namespace cv; ControlMovements lineFollowingControl() { line_main(); return ControlMovements(); } void line_main() { // printf("Hello, this is Caleb\n"); VideoCapture cap("../../tests/videos/top_down_1.m4v"); if (!cap.isOpened()...
<commit_before>//******************************************************************* // Copyright (C) 2001 ImageLinks Inc. All rights reserved. // // License: See top level LICENSE.txt file. // // Author: Oscar Kramer (ossim port by D. Burken) // // Description: // // Contains definition of class ossimXmlAttribute. ...
<commit_before>/* * Copyright (C) 2017 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless ...
<commit_before>/* * File: ScanLineEdgelDetector.cpp * Author: claas * Author: Heinrich Mellmann * * Created on 14. march 2011, 14:22 */ #include "ScanLineEdgelDetector.h" // debug #include "Tools/Debug/DebugModify.h" #include "Tools/Debug/DebugRequest.h" #include "Tools/Debug/DebugImageDrawings.h" #include ...
<commit_before>/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not down...
<commit_before>/****************************************************************************** * Copyright 2017 The Apollo 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 ...
<commit_before>/****************************************************************************** * Copyright 2017 The Apollo 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 ...
<commit_before><commit_msg>created function to get only overloads<commit_after><|endoftext|>
<commit_before><commit_msg>Replace IMPL_STATIC_LINK[_TYPED] with more useful variants<commit_after><|endoftext|>
<commit_before>/**************************************************************************** ** ** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/ ** ** This file is part of the QtLocation module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** GNU Lesser Gene...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: itkAnalyzeImageIOTest.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Insight Software Consortium. All rights reserved. See ITKCopyright...
<commit_before>// this file defines the itkFEMTests for the test driver // and all it expects is that you have a function called RegisterTests #include <iostream> #include "itkTestMain.h" // Register all *.cxx files that do the testing with the REGISTER_TEST // macro. void RegisterTests() { //REGISTER_TEST(itkFEMEl...
<commit_before>/************************************************************************* * * $RCSfile: output.hxx,v $ * * $Revision: 1.12 $ * * last change: $Author: hr $ $Date: 2004-08-02 17:02:56 $ * * The Contents of this file are made available subject to the terms of * either of the following licens...
<commit_before>// Copyright © 2014 German Neuroinformatics Node (G-Node) // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted under the terms of the BSD License. See // LICENSE file in the root of the Project. // // Author: Christian Kellner ...
<commit_before>#ifndef STAN_MATH_REV_MAT_FUN_CHOLESKY_DECOMPOSE_HPP #define STAN_MATH_REV_MAT_FUN_CHOLESKY_DECOMPOSE_HPP #include <stan/math/prim/mat/fun/Eigen.hpp> #include <stan/math/prim/mat/fun/typedefs.hpp> #include <stan/math/prim/mat/fun/cholesky_decompose.hpp> #include <stan/math/rev/scal/fun/value_of_rec.hpp>...
<commit_before>/* Hume Library Version 0.4.3 */ #include "Logger.h" hm::Logger* hm::Logger::instance = NULL; namespace hm { Logger::Logger() : level(DEBUGMSG) { initSession(); } Logger::~Logger() { if(instance != NULL) { endSession(); delete instance; instance = NULL; } } Logger* Logger:...
<commit_before>/* Copyright � 2007-2009 Apple Inc. All Rights Reserved. Disclaimer: IMPORTANT: This Apple software is supplied to you by Apple Inc. ("Apple") in consideration of your agreement to the following terms, and your use, installation, modification or redistribution of this Apple software constit...
<commit_before>/** * Copyright 2018 Robot Garden, 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 appl...
<commit_before>// Copyright (c) 2013, German Neuroinformatics Node (G-Node) // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted under the terms of the BSD License. See // LICENSE file in the root of the Project. #include "TestBlock.hpp" #i...
<commit_before>// Qubit teleporation circuit simulator // Source: ./examples/circuits/noisy_teleport_qubit_circuit.cpp #include <iostream> #include "qpp.h" int main() { using namespace qpp; std::cout << ">> Qubit noisy teleportation quantum circuit simulation\n\n"; // quantum circuit with 3 qubits and 2 ...
<commit_before>#include "commands.h" #include "Workspace.h" #include <busyUtils/busyUtils.h> #include <iostream> using namespace busy; namespace commands { void cleanAll() { utils::rm("./build", true); utils::mkdir("./build"); //!TODO reset lastCompileTime auto dirs = utils::listDirs(".busy", true); for (au...
<commit_before>#include "Application.h" #include "MainMenuScene.h" #include "SceneManager.h" LRESULT WINAPI fakeWindowProc(HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam) { Application* app = reinterpret_cast<Application*>(GetWindowLongPtr(hWnd, GWLP_USERDATA)); if (app != nullptr) { return app-...
<commit_before>#include <fstream> #include <future> #include <set> #include <sstream> #include <stdexcept> #include <string> #include <vector> #include <set> #include <boost/algorithm/string/predicate.hpp> #include <cryptopp/adler32.h> #include <cryptopp/filters.h> #include <cryptopp/hex.h> #include <curlpp/cURLpp.h...
<commit_before>// C++ source file - (C) 2003 Robert Osfield, released under the OSGPL. // (C) 2005 Mike Weiblen http://mew.cx/ released under the OSGPL. // Simple example using GLUT to create an OpenGL window and OSG for rendering. // Derived from osgGLUTsimple.cpp and osgkeyboardmouse.cpp #include <osgGA/SimpleViewer...
<commit_before>#include "../SDP_Solver.hxx" #include <boost/filesystem.hpp> #include <boost/filesystem/fstream.hpp> // We use binary checkpointing because writing text does not write all // of the necessary digits. The GMP library sets it to one less than // required for round-tripping. template <typename T> void wr...
<commit_before>//===- TreeView.cpp - diagtool tool for printing warning flags ------------===// // // Part of the LLVM Project, 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 // //===------------...
<commit_before>//Foster.cpp //Implements definitions of Foster functionality. //"Bad becomes good" - Tory Foster //josh@mindaptiv.com //includes #include "pch.h" #include "Foster.h" #include <windows.foundation.h> #include <windows.system.h> #include <sysinfoapi.h> //If Visual Studio freaks out about this code someda...
<commit_before>//===- tools/dsymutil/CFBundle.cpp - CFBundle helper ------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>#include "Player.h" Player::~Player() { } void Player::Update(float deltaTime)//make this affected by delta time { // Calculate velocity based on pixels-per-frame pos_.x += velocity.x * deltaTime; pos_.y += velocity.y * deltaTime; // Add acceleration to velocity if (abs(velocity.x) < 100) { ve...
<commit_before>/*========================================================================= Program: Medical Imaging & Interaction Toolkit Module: $RCSfile$ Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All right...
<commit_before>#include <kv/Heine.hpp> #include <kv/qAiry.hpp> #include <cmath> typedef kv::interval<double> itv; typedef kv::complex< kv::interval<double> > cp; using namespace std; int main() { cout.precision(17); int n=50; itv x,q; q="0.7"; x=3.5; for(int i=1;i<=n;i++){ x=x-kv::Ramanujan_qAiry(itv(...
<commit_before>// ============================================================================= // PROJECT CHRONO - http://projectchrono.org // // Copyright (c) 2014 projectchrono.org // 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...
<commit_before>/* * #%L * %% * Copyright (C) 2017 BMW Car IT GmbH * %% * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unles...
<commit_before>/* Copyright (c) 2018, Ford Motor Company 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 condit...
<commit_before>/*++ Copyright (c) 2012 Microsoft Corporation Module Name: smt_strategic_solver.h Abstract: Create a strategic solver with tactic for all main logics used in SMT. Author: Leonardo (leonardo) 2012-02-19 Notes: --*/ #include"cmd_context.h" #include"combined_solver.h" #include"tactic...
<commit_before>#include "helpers.hpp" #include <chain.hpp> #include <vector> #include <list> #include <string> #include <vector> #include <iterator> #include <utility> #include "catch.hpp" using iter::chain; using itertest::SolidInt; using itertest::BasicIterable; using Vec = const std::vector<char>; TEST_CASE("cha...
<commit_before>#ifndef BST_HPP #define BST_HPP #include "BSTNode.hpp" #include "BSTIterator.hpp" #include <utility> // for std::pair template<typename Data> class BST { protected: /** Pointer to the root of this BST, or nullptr if the BST is empty */ BSTNode<Data>* root; /** Number of Data items stored in thi...
<commit_before>/* * NormalizedMutualInformation.cpp * * Created on: 30.04.2013 * Author: cls */ #include "NMIDistance.h" namespace NetworKit { NMIDistance::NMIDistance() { // TODO Auto-generated constructor stub } NMIDistance::~NMIDistance() { // TODO Auto-generated destructor stub } double NMIDistan...
<commit_before> // libPowerUP - Create games with SDL2 and OpenGL // Copyright(c) 2015, Erik Edlund <erik.edlund@32767.se> // 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. Redistr...
<commit_before> #include <chrono> #include <iostream> #include <fstream> #include "RMDP.hpp" using namespace std; using namespace craam; int main(int argc, char * argv []){ if(argc != 2){ cout << "Invalid execution parameters. Execute as: " << endl; cout << argv[0] << " mdp_file " << endl; ...
<commit_before>/***************************************************************************** * * X testing environment - Google Test environment feat. dummy x server * * Copyright (C) 2011 Canonical Ltd. * * This program is free software: you can redistribute it and/or modify it * under the terms of the GNU Gen...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: provider.cxx,v $ * * $Revision: 1.24 $ * * last change: $Author: obo $ $Date: 2008-03-25 15:21:52 $ * * The Contents of this file are mad...
<commit_before>#include "pink/src/worker_thread.h" #include "pink/include/pink_conn.h" #include "pink/src/pink_item.h" #include "pink/src/pink_epoll.h" #include "pink/src/csapp.h" namespace pink { WorkerThread::WorkerThread(ConnFactory *conn_factory, ServerThread* server_thread, int cron_...
<commit_before>/* * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org * 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 followi...
<commit_before>#include "AnimationBlender.h" #include <Animation/MappedPoseOutput.h> #include <Scene/SceneNode.h> namespace DEM::Anim { CAnimationBlender::CAnimationBlender() = default; CAnimationBlender::~CAnimationBlender() = default; void CAnimationBlender::Initialize(U8 SourceCount, U8 PortCount) { _Sources.clea...
<commit_before>#include <Arduino.h> #include "uplink.h" #include "main.h" #include "usonic.h" extern "C" { #include "pb.h" #include "pb_encode.h" #include "pb_decode.h" #include "status.pb.h" #include "sensor.pb.h" #include "odometry.h" #include "battery.h" } uint8_t uplink_send_buffer[BUF...
<commit_before>/************************************************************************* * * $RCSfile: toolboxdocumenthandler.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: obo $ $Date: 2004-07-06 16:55:36 $ * * The Contents of this file are made available subject to the terms of * either of the ...
<commit_before>//======================================================================= // Copyright (c) 2014-2015 Baptiste Wicht // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //===================================================...
<commit_before>// PythonStuff.cpp #include "stdafx.h" #include <wx/file.h> #include <wx/mimetype.h> #include "PythonStuff.h" #include "ProgramCanvas.h" #include "OutputCanvas.h" #include "Program.h" static bool write_python_file(const wxString& python_file_path) { wxFile ofs(python_file_path.c_str(), wxFi...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: ConnectionPageSetup.cxx,v $ * * $Revision: 1.9 $ * * last change: $Author: kz $ $Date: 2007-05-10 10:22:01 $ * * The Contents of this fil...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: documentcontroller.cxx,v $ * * $Revision: 1.5 $ * * last change: $Author: ihi $ $Date: 2007-04-16 16:28:39 $ * * The Contents of this fil...
<commit_before>#include <cstddef> #include <glog/logging.h> #include <gmock/gmock.h> #include <gtest/gtest.h> #include <dcel/dcel.hh> #include <dcel/Vertex.hh> #include <voronoi/geometry.hh> using voronoi::Point; using voronoi::FaceInfo; typedef dcel::DCEL<Point*, Point*, FaceInfo*> MyDCEL; static MyDCEL::Vertex* ...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/usr/diag/prdf/plat/mem/prdfMemTdCtlr_rt.C $ ...
<commit_before>/***************************************************************************** bamAncillary.cpp (c) 2009 - Aaron Quinlan Hall Laboratory Department of Biochemistry and Molecular Genetics University of Virginia aaronquinlan@gmail.com Licensed under the GNU General Public License 2.0 licens...
<commit_before>/*************************************************************** * * Copyright (C) 1990-2007, Condor Team, Computer Sciences Department, * University of Wisconsin-Madison, WI. * * Licensed under the Apache License, Version 2.0 (the "License"); you * may not use this file except in compliance with ...
<commit_before>#pragma once #include <metaSMT/frontend/Logic.hpp> using namespace metaSMT; using namespace metaSMT::solver; using namespace metaSMT::logic; namespace metaSMT { template<typename Context, typename Boolean> typename Context::result_type one_hot(Context &ctx, std::vector<Boolean> const &ps) { ...
<commit_before>#include "TocFunction.h" TocFunction::TocFunction(CodeBlock* body) : Function("toc", NULL, body, NULL) { } TocFunction::~TocFunction() { } TreeNode::ClassType TocFunction::classType() const { return TreeNode::TOC_FUNCTION; } llvm::Value* TocFunction::generateCode() { llvm::BasicBlock *mainBB ...
<commit_before> #include "nucleus/Config.h" #include "nucleus/Files/FilePath.h" #if OS(POSIX) #include <unistd.h> #endif namespace nu { #if OS(POSIX) FilePath getCurrentWorkingDirectory(Allocator* allocator) { char buf[PATH_MAX] = {0}; const char* result = ::getcwd(buf, PATH_MAX); return FilePath{String{result...
<commit_before>/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "Request.h" #include "SkPictureRecorder.h" #include "SkPixelSerializer.h" #include "SkPM4fPriv.h" #include "picture_utils.h" using namespace sk_gpu_t...
<commit_before>#ifndef _H_XML_NODE #define _H_XML_NODE #include <iostream> #include <list> #include <string> namespace Xml { class Element; /** * Defines the abstract class of a node for interface purpose */ class Node { public: /* * Gets all children nodes *...
<commit_before>/* Copyright 2013-present Barefoot Networks, 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 law o...
<commit_before>/* * CliqueConn.cpp * * Created on: Sep 8, 2011 * Author: gkenyon */ #include "CliqueConn.hpp" int pvpatch_update_clique(int nk, float* RESTRICT v, float a, float* RESTRICT w); int pvpatch_update_clique2(int nk, float* RESTRICT v, float a, float* RESTRICT w, float* RESTRICT m); namespace PV ...
<commit_before>#include <arpa/inet.h> // inet_ntoa #include <fstream> #include <iostream> #include <netdb.h> // gethostbyname #include <netinet/in.h> // htonl, htons, inet_ntoa #include <netinet/tcp.h> // SO_REUSEADDR #include <pthread.h> #include <sstream> #include <stdio.h> #include <stdlib.h> #include <...
<commit_before>/* -*- mode: C; c-basic-offset: 4; indent-tabs-mode: nil; -*- */ /* * Copyright (c) 2008 litl, LLC * * 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>// Copyright (c) 2015, Galaxy Authors. All Rights Reserved // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // Author: wangtaize@baidu.com #include "agent/cgroup.h" #include <sstream> #include <sys/types.h> #include <sys/stat.h> #include <stdio....
<commit_before>/* Copyright 2017 The TensorFlow Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appl...
<commit_before>/** * \file * \brief FifoQueuePriorityTestCase class implementation * * \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...
<commit_before> <commit_msg>Update Ngen.Content.Path.cpp<commit_after> #include <Ngen.hpp> namespace Ngen { namespace Content { _static tchar Path::PathSeperatorChar() { #if _tkn_Platform == _tknval_Platform_Windows return '/'; #else return '/'; #endif } } } clas...
<commit_before>/* This file is part of cpp-ethereum. cpp-ethereum 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. cpp-ethereum is dis...
<commit_before> #include "Runtime.h" #include <llvm/IR/GlobalVariable.h> #include <llvm/IR/Function.h> #include <libevm/VM.h> #include "Type.h" namespace dev { namespace eth { namespace jit { llvm::StructType* RuntimeData::getType() { static llvm::StructType* type = nullptr; if (!type) { llvm::Type* elems[] =...
<commit_before>#include <silicium/html/tree.hpp> #include <silicium/sink/iterator_sink.hpp> #include <boost/test/unit_test.hpp> BOOST_AUTO_TEST_CASE(html_tree) { using namespace Si::html; auto document = tag("html", tag("head", tag("title", text("Title") ) ) + tag("body", text("Hello, ...
<commit_before>/* Copyright (c) 2018 ANON authors, see AUTHORS file. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy...
<commit_before>/* This file is part of libkcal. Copyright (c) 2001,2004 Cornelius Schumacher <schumacher@kde.org> Copyright (C) 2004 Reinhold Kainhofer <reinhold@kainhofer.com> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public...
<commit_before>#pragma ident "$Id$" //============================================================================ // // This file is part of GPSTk, the GPS Toolkit. // // The GPSTk 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>#include "inc/cxx/json.hpp" #include "test/catch.hpp" #include "test/utils.hpp" #include <type_traits> using namespace std::string_literals; using namespace test::literals; TEST_CASE("can default construct cxx::json") { static_assert(std::is_nothrow_default_constructible_v<cxx::json>); cxx::json co...
<commit_before>/* * GAMS - General Algebraic Modeling System C++ API * * Copyright (c) 2017-2021 GAMS Software GmbH <support@gams.com> * Copyright (c) 2017-2021 GAMS Development Corp. <support@gams.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associ...
<commit_before>/* VideoCapture ------------- This example shows a minimal example on how to list the capture devices, list capabilities and output formats. */ #include <signal.h> #if defined(__APPLE__) || defined(__linux) # include <unistd.h> /* usleep */ #elif defined(_WIN32) # define WIN32_LEAN_AND_M...
<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>/* This file is part of cpp-ethereum. cpp-ethereum 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. cpp-ethereum is dis...
<commit_before>/* -*- Mode: C++; indent-tabs-mode: nil -*- */ #include <config.h> #include <cerrno> #include <cstring> #include <iostream> #include <memory> #include <sstream> #include <type_traits> #include <utility> #include <vector> #include <unistd.h> #include <schwa/config.h> #include <schwa/exception.h> #inclu...
<commit_before>#include<iostream> #include <cstdlib> #include <cstdio> #include <array> #include <boost/test/unit_test.hpp> using RawField = std::array<std::array<char, 32>, 32>; using RawStone = std::array<std::array<char, 8>, 8>; constexpr int ROTATE_90 = 1, ROTATE_180 = 2, ROTATE_270 = 4, ...
<commit_before>#include "highlighters.hh" #include "assert.hh" #include "window.hh" #include "highlighter_registry.hh" #include "highlighter_group.hh" #include "regex.hh" namespace Kakoune { using namespace std::placeholders; typedef boost::regex_iterator<BufferIterator> RegexIterator; template<typename T> void hi...
<commit_before>/*-------------traverse.cpp---------------------------------------------------// * * Purpose: This file tests multiple ways to traverse a tree * *-----------------------------------------------------------------------------*/ #include <iostream> #include <stack> #include <queue> struct node{ node *...
<commit_before>//======================================================================= // Copyright (c) 2014-2015 Baptiste Wicht // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //===================================================...
<commit_before> #include <ros/ros.h> #include <gtest/gtest.h> #include <control_toolbox/pid.h> using namespace control_toolbox; TEST(ParameterTest, zeroITermBadIBoundsTest) { RecordProperty("description","This test checks robustness against poorly-defined integral term bounds."); Pid pid(1.0, 0.0, 0.0, -1.0, 0...
<commit_before>/* Nazara Engine - Assimp Plugin Copyright (C) 2015 Jérôme "Lynix" Leclercq (lynix680@gmail.com) 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 with...
<commit_before>//======================================================================= // Copyright Baptiste Wicht 2013-2014. // 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>//===----------------------------------------------------------------------===// // // Peloton // // selectivity.cpp // // Identification: src/optimizer/stats/selectivity.cpp // // Copyright (c) 2015-16, Carnegie Mellon University Database Group // //===---------------------------...