text
stringlengths
54
60.6k
<commit_before>#include "BinaryTree.hpp" #include <fstream> #include <catch.hpp> SCENARIO("default constructor") { Tree<int> node; REQUIRE(node.root_() == nullptr); } SCENARIO("insert") { Tree<int> tree; int newEl; tree.fIn("Tree.txt"); std::ifstream("newEl.txt") >> newEl; tree.insert(newEl); ...
<commit_before>/* This file is part of the Vc library. Copyright (C) 2009 Matthias Kretz <kretz@kde.org> Vc 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 Lic...
<commit_before>#include "pch.h" #include "LibFractal.h" TEST(TestCaseName, CallExportedFunction) { EXPECT_EQ(1, 1); EXPECT_TRUE(true); EXPECT_EQ(2, functionToTest(1)); } TEST(BasicTests, RunBenchMark) { EXPECT_EQ(0, runBenchmark(0, NULL)); }<commit_msg>test tweaks<commit_after>#include "pch.h" #include "LibF...
<commit_before>#include "quadrature/angular/angular_quadrature_scalar.h" #include "quadrature/angular/angular_quadrature_types.h" #include "test_helpers/gmock_wrapper.h" namespace { using namespace bart; template <typename DimensionWrapper> class AngularQuadratureScalarTests : public ::testing::Test { protected: ...
<commit_before>/* vim: set ts=2 expandtab: */ /** * @file test.cpp * @brief * * @author Josh King (jheretic), jking@chambana.net * * @internal * Created 11/17/2013 06:01:11 PM * Compiler gcc/g++ * Organization The Open Technology Institute * Copyright Copyright (c) 2013, J...
<commit_before>// The MIT License (MIT) // // Copyright (c) 2016 Northeastern University // // 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 limitatio...
<commit_before>/* * Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may ob...
<commit_before>#include "Arith256.h" #include "Runtime.h" #include "Type.h" #include <llvm/IR/Function.h> namespace dev { namespace eth { namespace jit { Arith256::Arith256(llvm::IRBuilder<>& _builder) : CompilerHelper(_builder) { using namespace llvm; m_result = m_builder.CreateAlloca(Type::Word, nullptr, "arit...
<commit_before> #include "GasMeter.h" #include <llvm/IR/GlobalVariable.h> #include <llvm/IR/Function.h> #include <llvm/IR/IntrinsicInst.h> #include <libevmface/Instruction.h> #include <libevm/FeeStructure.h> #include "Type.h" #include "Ext.h" #include "Runtime.h" namespace dev { namespace eth { namespace jit { nam...
<commit_before>/* * Copyright (c) 2001-2007 Peter Simons <simons@cryp.to> * * This software is provided 'as-is', without any express or * implied warranty. In no event will the authors be held liable * for any damages arising from the use of this software. * * Copying and distribution of this file, with or witho...
<commit_before>#include <stdio.h> #include <iostream> #include <unistd.h> #include <fcntl.h> #include <cassert> #include "kms++.h" #include "helpers.h" using namespace std; namespace kms { static const map<int, string> connector_names = { { DRM_MODE_CONNECTOR_Unknown, "Unknown" }, { DRM_MODE_CONNECTOR_VGA, "VGA"...
<commit_before> #include "troymotor.h" const int emptyQueue =-32767; TroyMotor::TroyMotor(int pin1,int pin2){ init(pin1,pin2); } void TroyMotor::init(int pin1,int pin2){ _status=0; _currentStep=0; _goToStep=0; _position=false; _counter=0; _isReset=true; _direction=1; _pin=pin1; pinMode(pin1,OUTPU...
<commit_before>/******************************* Copyright (c) 2016-2017 Grégoire Angerand 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 righ...
<commit_before>// Copyright (c) 2013-2014, Robert Escriva // 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, // ...
<commit_before>/* Copyright (C) 2008-2015 The Communi Project You may use this file under the terms of BSD license as follows: 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 mus...
<commit_before>/**************************************************************************** * Copyright (c) 2012-2018 by the DataTransferKit authors * * All rights reserved. * * ...
<commit_before> #include <test.hpp> TEST_CASE("read string field") { SECTION("empty") { const std::string buffer = load_data("string/data-empty"); protozero::pbf_reader item(buffer); REQUIRE(item.next()); REQUIRE(item.get_string() == ""); REQUIRE(!item.next()); } ...
<commit_before>// This file is part of Eigen, a lightweight C++ template library // for linear algebra. Eigen itself is part of the KDE project. // // Copyright (C) 2008 Gael Guennebaud <g.gael@free.fr> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General P...
<commit_before>#include "geometry/RipsExpander.hh" #include "tests/Base.hh" #include "filtrations/Data.hh" #include "topology/Simplex.hh" #include "topology/SimplicialComplex.hh" #include <iterator> #include <set> #include <vector> #include <cmath> using namespace aleph::geometry; using namespace aleph::topology;...
<commit_before>/* * * copyright (c) 2010 ZAO Inventos (inventos.ru) * copyright (c) 2010 jk@inventos.ru * copyright (c) 2010 kuzalex@inventos.ru * copyright (c) 2010 artint@inventos.ru * * This file is part of mp4frag. * * mp4grag is free software; you can redistribute it and/or * modify it under the terms o...
<commit_before>#include "multisource.h" #include "simple_label.h" #include <sys/types.h> #include <sys/socket.h> #include <errno.h> #include <stdio.h> int really_read(int sock, void* in, size_t count) { char* buf = (char*)in; size_t done = 0; int r = 0; while (done < count) { if ((r = read(sock,buf,...
<commit_before><commit_msg>Revert r18683: "Add more CHECKs to ClientSocketPoolBase." Looks like it might have broken block-test.html somehow.<commit_after><|endoftext|>
<commit_before>// Copyright eeGeo Ltd (2012-2015), All Rights Reserved #include "MyPinCreationConfirmationViewModel.h" namespace ExampleApp { namespace MyPinCreation { namespace View { MyPinCreationConfirmationViewModel::MyPinCreationConfirmationViewModel(Eegeo::Helpers::TIdentity ...
<commit_before>#include <iostream> #include <fstream> #include <string> #include <Eigen/Core> #include <sophus/se3.h> #include <sophus/so3.h> #include <gtsam/slam/dataset.h> #include <gtsam/slam/BetweenFactor.h> #include <gtsam/slam/PriorFactor.h> #include <gtsam/nonlinear/GaussNewtonOptimizer.h> #include <gtsam/nonl...
<commit_before>#include <iostream> // for standard output using namespace std; #include <eigen3/Eigen/Dense> // linear algebra library using namespace Eigen; #include "constants.h" #include "qp-math.h" #include "nv-math.h" #include "nv-control.h" //--------------------------------------------------------------------...
<commit_before> #include "server/zone/managers/creature/SpawnObserver.h" #include "server/zone/objects/creature/ai/AiAgent.h" void SpawnObserverImplementation::despawnSpawns() { for (int i = 0; i < spawnedCreatures.size(); ++i) { ManagedReference<CreatureObject*> obj = spawnedCreatures.get(i); if (obj != NULL &&...
<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 Francois Beaune // // Permission is hereby granted, free of charge, to any person obtaining a copy // of...
<commit_before>// Copyright (c) 2011 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 <windows.h> #include <shlwapi.h> #include "base/command_line.h" #include "base/debug/trace_event.h" #include "base/environmen...
<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. // // This code glues the RLZ library DLL with Chrome. It allows Chrome to work // with or without the DLL being present. If the DL...
<commit_before>/* This file is part of the clang-lazy static checker. Copyright (C) 2015 Klarälvdalens Datakonsult AB, a KDAB Group company, info@kdab.com Author: Sérgio Martins <sergio.martins@kdab.com> Copyright (C) 2015 Sergio Martins <smartins@kde.org> This program is free software; you can redistribu...
<commit_before>/************************************************************************* * * $RCSfile: fwkutil.hxx,v $ * * $Revision: 1.8 $ * * last change: $Author: jl $ $Date: 2004-05-18 12:50:34 $ * * The Contents of this file are made available subject to the terms of * either of the following licens...
<commit_before>// // Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved. // #ifndef VERSIONS_HPP_ #define VERSIONS_HPP_ #include "utils/macros.hpp" #ifndef AMD_PLATFORM_NAME #define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing" #endif // AMD_PLATFORM_NAME #ifndef AMD_PLATFORM_BUILD_NUMBE...
<commit_before>// // Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved. // #ifndef VERSIONS_HPP_ #define VERSIONS_HPP_ #include "utils/macros.hpp" #ifndef AMD_PLATFORM_NAME #define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing" #endif // AMD_PLATFORM_NAME #ifndef AMD_PLATFORM_BUILD_NUMBE...
<commit_before>// // Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved. // #ifndef VERSIONS_HPP_ #define VERSIONS_HPP_ #include "utils/macros.hpp" #ifndef AMD_PLATFORM_NAME #define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing" #endif // AMD_PLATFORM_NAME #ifndef AMD_PLATFORM_BUILD_NUMBE...
<commit_before>// // Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved. // #ifndef VERSIONS_HPP_ #define VERSIONS_HPP_ #include "utils/macros.hpp" #ifndef AMD_PLATFORM_NAME #define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing" #endif // AMD_PLATFORM_NAME #ifndef AMD_PLATFORM_BUILD_NUMBE...
<commit_before>// // Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved. // #ifndef VERSIONS_HPP_ #define VERSIONS_HPP_ #include "utils/macros.hpp" #ifndef AMD_PLATFORM_NAME # define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing" #endif // AMD_PLATFORM_NAME #ifndef AMD_PLATFORM_BUILD_NUMBE...
<commit_before>// // Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved. // #ifndef VERSIONS_HPP_ #define VERSIONS_HPP_ #include "utils/macros.hpp" #ifndef AMD_PLATFORM_NAME # define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing" #endif // AMD_PLATFORM_NAME #ifndef AMD_PLATFORM_BUILD_NUMBE...
<commit_before>// // Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved. // #ifndef VERSIONS_HPP_ #define VERSIONS_HPP_ #include "utils/macros.hpp" #ifndef AMD_PLATFORM_NAME # define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing" #endif // AMD_PLATFORM_NAME #ifndef AMD_PLATFORM_BUILD_NUMBE...
<commit_before>// // Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved. // #ifndef VERSIONS_HPP_ #define VERSIONS_HPP_ #include "utils/macros.hpp" #ifndef AMD_PLATFORM_NAME # define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing" #endif // AMD_PLATFORM_NAME #ifndef AMD_PLATFORM_BUILD_NUMBE...
<commit_before>// // Object.cpp // Test02 // // Created by Golden Compass on 9/17/14. // Copyright (c) 2014 Golden Compass. All rights reserved. // #include "Object.h" Sphere::Sphere(vec3 _center, float _radius) { center = _center; radius = _radius; } //bool Sphere::isIntersectByRay(const vec3& ray) //{ /...
<commit_before>// // Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved. // #ifndef VERSIONS_HPP_ #define VERSIONS_HPP_ #include "utils/macros.hpp" #ifndef AMD_PLATFORM_NAME # define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing" #endif // AMD_PLATFORM_NAME #ifndef AMD_PLATFORM_BUILD_NUMBE...
<commit_before>// // Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved. // #ifndef VERSIONS_HPP_ #define VERSIONS_HPP_ #include "utils/macros.hpp" #ifndef AMD_PLATFORM_NAME # define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing" #endif // AMD_PLATFORM_NAME #ifndef AMD_PLATFORM_BUILD_NUMBE...
<commit_before>// // Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved. // #ifndef VERSIONS_HPP_ #define VERSIONS_HPP_ #include "utils/macros.hpp" #ifndef AMD_PLATFORM_NAME # define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing" #endif // AMD_PLATFORM_NAME #ifndef AMD_PLATFORM_BUILD_NUMBE...
<commit_before>// // Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved. // #ifndef VERSIONS_HPP_ #define VERSIONS_HPP_ #include "utils/macros.hpp" #ifndef AMD_PLATFORM_NAME # define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing" #endif // AMD_PLATFORM_NAME #ifndef AMD_PLATFORM_BUILD_NUMBE...
<commit_before>#include <future> #include <string> #include <vector> #include "firebase/firestore.h" #include "firebase_test_framework.h" #include "firestore_integration_test.h" #include "gmock/gmock.h" #include "gtest/gtest.h" #include "util/bundle_builder.h" #include "util/event_accumulator.h" #include "util/future_...
<commit_before>#include <gmock/gmock.h> #include <string> #include <utility> #include <vector> #include "action/action_service_impl.h" #include "action/mocks/action_mock.h" namespace { using testing::_; using testing::NiceMock; using testing::Return; using MockAction = NiceMock<dronecode_sdk::testing::MockAction>; ...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-...
<commit_before>#include "BtuLinear.h" BtuLinear::BtuLinear(): m_depthPid(DEP_KC, DEP_KI, DEP_KD, PID_FREQ, DEPTH_MIN, DEPTH_MAX, VEL_MIN, VEL_MAX, 0), m_actA(PIN_ACTA_PWM, PIN_ACTA_DIR, PIN_ACTA_POT, PID_FREQ), m_actB(PIN_ACTB_PWM, PIN_ACTB_DIR, PIN_ACTB_POT, PID_FREQ), m_pressureSensor(PIN_IMU_SDA, PIN_I...
<commit_before>/************************************************************************* * * $RCSfile: cmtree.cxx,v $ * * $Revision: 1.16 $ * * last change: $Author: jb $ $Date: 2000-12-06 17:57:12 $ * * The Contents of this file are made available subject to the terms of * either of the following licens...
<commit_before>// Copyright 2008, 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: // // * Redistributions of source code must retain the above copyright // notice, this list ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: mediatypedetectionhelper.cxx,v $ * * $Revision: 1.7 $ * * last change: $Author: rt $ $Date: 2005-09-09 01:44:52 $ * * The Contents of thi...
<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>/* * Main Menu-bar */ #include <stdint.h> #include <stdio.h> #include <vector> #include <SDL2/SDL.h> #include "imgui.h" extern "C" { #include "util.h" #include "snepulator.h" #include "config.h" #include "gamepad.h" #include "video/tms9928a.h" #include "video/sms_vdp.h" #include "cpu/z80.h" #in...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a ...
<commit_before>#ifndef VECTOR_H #define VECTOR_H #include "types.hpp" template<typename T> class vector { public: typedef T value_type; typedef value_type* pointer_type; typedef uint64_t size_type; typedef value_type* iterator; typedef c...
<commit_before>/************************************************************************* * * $RCSfile: canvastools.hxx,v $ * * $Revision: 1.5 $ * * last change: $Author: obo $ $Date: 2005-04-18 09:15:25 $ * * The Contents of this file are made available subject to the terms of * either of the following l...
<commit_before>/************************************************************************* * * $RCSfile: graphicnameaccess.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: obo $ $Date: 2004-07-06 16:58:28 $ * * The Contents of this file are made available subject to the terms of * either of the follo...
<commit_before>/* Copyright (c) 2010-2012 Delft University of Technology. * * This software is protected by national and international copyright. * Any unauthorized use, reproduction or modification is unlawful and * will be prosecuted. Commercial and non-private application of the * software in any...
<commit_before>//* This file is part of the MOOSE framework //* https://www.mooseframework.org //* //* All rights reserved, see COPYRIGHT for full restrictions //* https://github.com/idaholab/moose/blob/master/COPYRIGHT //* //* Licensed under LGPL 2.1, please see LICENSE for details //* https://www.gnu.org/licenses/lgp...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/p10/procedures/hwp/initfiles/p10_nmmu_scom.C ...
<commit_before>// Copyright 2014 Cloudera 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 or ...
<commit_before>/************************************************************************* * * $RCSfile: scdll.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: nn $ $Date: 2000-10-19 18:32:58 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses...
<commit_before>/* * Copyright (C) 2004, 2005, 2006 Apple Computer, 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 ...
<commit_before>#include "dsa/network.h" #include "dsa/requester.h" #include "dsa/responder.h" #include "dsa/stream.h" #include <chrono> #include <ctime> #include <iostream> #include "core/client.h" #include "module/logger.h" #include "network/tcp/tcp_server.h" #include "util/date_time.h" #include <atomic> #include <...
<commit_before>// Copyright (c) 2016 IBM Corporation. #include "string-extern.h" #include "std/core.h" #include "std/listdef.h" #include "strutils.h" #include <regex> using namespace tosca; StringTerm& AfterFirst(Context& ctx, StringTerm& string, StringTerm& sep) { const tosca::string& ustring = string.Unbox();...
<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>// kmreadermainwin // (c) 2002 Don Sanders <sanders@kde.org> // License: GPL // // A toplevel KMainWindow derived class for displaying // single messages or single message parts. // // Could be extended to include support for normal main window // widgets like a toolbar. #ifdef HAVE_CONFIG_H #include <c...
<commit_before>/*************************************************************************** knarticlewindow.cpp - description ------------------- copyright : (C) 2000 by Christian Thurner email : cthurner@freepage.de **********...
<commit_before>/* KNode, the KDE newsreader Copyright (c) 1999-2005 the KNode authors. See file AUTHORS for details 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 vers...
<commit_before>/* This file is part of KOrganizer. Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org> 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 o...
<commit_before>// Copyright 2019 DeepMind Technologies Ltd. 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>//===- CXComment.cpp - libclang APIs for manipulating CXComments ----------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>/// @file /// @author uentity /// @date 22.09.2017 /// @brief BS tree Python bindings /// @copyright /// 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 https://mozilla.org/MPL/2.0/...
<commit_before>// Begin CVS Header // $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/UI/CQMathMatrixWidget.cpp,v $ // $Revision: 1.1 $ // $Name: $ // $Author: ssahle $ // $Date: 2007/02/09 16:49:41 $ // End CVS Header // Copyright (C) 2007 by Pedro Mendes, Virginia Tech Intellectual // Properties...
<commit_before>// Copyright (c)2008-2011, Preferred Infrastructure 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 source code must retain the above c...
<commit_before>/* ============================================================================== Copyright (c) 2016, Daniel Walz 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...
<commit_before>/******************************************************************************\ * File: menu.cpp * Purpose: Implementation of wxExMenu class * Author: Anton van Wezenbeek * RCS-ID: $Id$ * * Copyright (c) 1998-2009 Anton van Wezenbeek * All rights are reserved. Reproduction i...
<commit_before>#ifndef MODEL_HPP #define MODEL_HPP #include <vector> #include <iostream> #include <utility> #include <cmath> #include "../inc/quat.hpp" #include "../inc/dual.hpp" namespace Model { template<typename R = float> std::ostream& operator<<(std::ostream& lhs, quat<R> const& rhs) { quat<R> singlet...
<commit_before>// // Copyright (C) 2004-2006 SIPfoundry Inc. // Licensed by SIPfoundry under the LGPL license. // // Copyright (C) 2006 ProfitFuel Inc. All rights reserved. // Licensed to SIPfoundry under a Contributor Agreement. // // Copyright (C) 2006 SIPez LLC. // Licensed to SIPfoundry under a Contributor Agre...
<commit_before>#include "hill_climbing.h" #include <iostream> #include <cmath> //for fabs() using namespace std; namespace mo { Hill_climbing::Hill_climbing(const double& h0, const double& eps, const double& delta) : h0_{h0}, eps_{eps}, delta_{delta} { } void Hill_climbing::compute(){ } double Hill_climbing...
<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/download/download_shelf.h" #include "app/l10n_util.h" #include "base/file_util.h" #include "chrome/browser/do...
<commit_before>#include "sudokuJudger.h" #include "sudokuGenerator.h" #include "sudokuPrinter.h" #include <stdlib.h> #include <iostream> using namespace std; int main() { int input[9][9]; int i, j; bool signal = false; SudokuGenerator sudokuGenerator; while (!signal) { signal = sudokuGener...
<commit_before>// Copyright (c) 2011 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 "base/base_paths.h" #include "base/file_path.h" #include "base/file_util.h" #include "base/path_service.h" #include "base/stri...
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "base/message_loop.h" #include "base/process_util.h" #include "base/test/multiprocess_test.h" #include "base/test/test_timeout...
<commit_before>// Copyright (c) 2020 by Robert Bosch GmbH, Apex.AI 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/LICEN...
<commit_before>//===--- Errors.cpp - Demangling library error handling ---------*- C++ -*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2022 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swi...
<commit_before>//===-- ASTMerge.cpp - AST Merging Frontent Action --------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>a544d9a8-2e4f-11e5-97c6-28cfe91dbc4b<commit_msg>a54cd580-2e4f-11e5-853d-28cfe91dbc4b<commit_after>a54cd580-2e4f-11e5-853d-28cfe91dbc4b<|endoftext|>
<commit_before>//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // author: Axel Naumann <axel@cern.ch> // // This file is dual-licensed: you can choose to license it under the University // of Illinois Open Source License or the GNU Lesser G...
<commit_before>#ifndef DENSE_ONE_TO_ONE_HOUGH_HH #define DENSE_ONE_TO_ONE_HOUGH_HH #include "openacc.h" #include "vpp/algorithms/Line_tracker_4_sfm/miscellanous/operations.hh" #include <opencv2/highgui.hpp> #include <opencv2/videoio.hpp> #include <vpp/vpp.hh> #include <Eigen/Core> #include <vpp/utils/opencv_bridge.hh...
<commit_before>/****************************************************************************** * This file is part of the Gluon Development Platform * Copyright (c) 2010 Arjen Hiemstra <ahiemstra@heimr.nl> * Copyright (c) 2011 Giulio Camuffo <giuliocamuffo@gmail.com> * * This library is free software; you can redi...
<commit_before>/** * \file */ #pragma once #include <rleahylib/rleahylib.hpp> #include <traits.hpp> #include <cstddef> #include <new> #include <type_traits> #include <utility> namespace MCPP { /** * \cond */ namespace VariantImpl { template <typename...> class MaxAlignOfImpl { }; ...
<commit_before>#pragma once #include "depthai-shared/common/ProcessorType.hpp" #include "depthai-shared/common/optional.hpp" #include "depthai-shared/properties/Properties.hpp" namespace dai { /** * Specify ScriptProperties options such as script uri, script name, ... */ struct ScriptProperties : PropertiesSeriali...
<commit_before>/** * \file * \brief SdMmcCardSpiBased class header * * \author Copyright (C) 2018-2019 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 * dis...
<commit_before>// // a21 — Arduino Toolkit. // Copyright (C) 2016-2017, Aleh Dzenisiuk. http://github.com/aleh/a21 // #pragma once #include <Arduino.h> #include <a21/pcd8544fonts.hpp> #include <a21/spi.hpp> namespace a21 { /** * Basic wrapper for a PCD8544 LCD display (such as the one that was used on Nokia 51...
<commit_before>#ifndef Compile_Assert_hh_ #define Compile_Assert_hh_ #include <stdlib.h> #include <iostream> /** \file CompileAssert.hh \author Kevin Wierman \date April 12th, 2014 \brief Defines static and runtime assertions. These are to be used as follows: ~~~~~~~~ Compile_RUNTIME_ASSERT(true, Th...
<commit_before>// -*-c++-*- #include <osgProducer/Viewer> #include <osgDB/ReadFile> #include <osg/Geode> #include <osg/Geometry> #include <osg/StateSet> #include <osg/Material> #include <osg/Texture2D> #include <osg/TextureRectangle> #include <osg/TexMat> #include <osg/CullFace> #include <osg/ImageStream> #include ...
<commit_before>/* * SpawnAreaImplementation.cpp * * Created on: 11/12/2011 * Author: victor */ #include "server/zone/objects/area/SpawnArea.h" #include "server/zone/Zone.h" #include "server/zone/managers/creature/CreatureManager.h" #include "server/zone/managers/creature/CreatureTemplateManager.h" #include ...
<commit_before>#include "Scene.h" Scene::Scene(void) { view_matrix = glm::lookAt(glm::vec3(0.f, 0.f, 0.f), glm::vec3(0.f, 0.f, -1.f), glm::vec3(0.f, 1.f, 0.f)); memset(&KeyStates, 0, sizeof(KeyStates)); // Init Player player = new Player(this, 0.0f, 0.0f); bool game = true; int score = 0; // Init Objects Ad...
<commit_before>//ArmCollisionDetector2018 //Created by Etienne C.-C. // coucaste@informatik.hu-berlin.de #include "ArmCollisionDetector2018.h" #include <PlatformInterface/Platform.h> #include "Tools/Math/Polygon.h" using namespace naoth; ArmCollisionDetector2018::ArmCollisionDetector2018() { //Debug Requests DEB...