text
stringlengths
54
60.6k
<commit_before>// \brief Command-line utility to send email messages. #include <iostream> #include <cstdlib> #include "EmailSender.h" #include "StringUtil.h" #include "TextUtil.h" #include "util.h" namespace { __attribute__((noreturn)) void Usage() { std::cerr << "Usage: " << ::progname << " [--sender=sender] [...
<commit_before>/******************************************************************************* * ALMA - Atacama Large Millimiter Array * (c) European Southern Observatory, 2005 * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as ...
<commit_before>#ifndef _SWITCHBACK_HPP_ #define _SWITCHBACK_HPP_ #include <vector> #include <boost/array.hpp> #include <boost/none.hpp> #include <boost/optional.hpp> #include <boost/pool/pool_alloc.hpp> #include <boost/unordered_map.hpp> #include "search/BucketPriorityQueue.hpp" #include "util/PointerOps.hpp" tem...
<commit_before>// Copyright 2010-2014 RethinkDB, all rights reserved. #include "serializer/log/extent_manager.hpp" #include <queue> #include "arch/arch.hpp" #include "logger.hpp" #include "math.hpp" #include "perfmon/perfmon.hpp" #include "serializer/log/log_serializer.hpp" struct extent_info_t { public: enum st...
<commit_before>/* * Copyright (C) 2012 by Glenn Hickey (hickey@soe.ucsc.edu) * * Released under the MIT license, see LICENSE.txt */ #include <cstdlib> #include <iostream> #include <fstream> #include <cstdio> #include "halMafExport.h" #include "halMafBed.h" using namespace std; using namespace hal; static CLParse...
<commit_before>#include "yaml-cpp/yaml.h" // IWYU pragma: keep #include "gtest/gtest.h" namespace YAML { namespace { TEST(LoadNodeTest, Reassign) { Node node = Load("foo"); node = Node(); } TEST(LoadNodeTest, FallbackValues) { Node node = Load("foo: bar\nx: 2"); EXPECT_EQ("bar", node["foo"].as<std::string>(...
<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 "build/intsafe_workaround.h" #include <atlbase.h> #include <atlcom.h> #include <atlctl.h> #include <initguid.h> #include <she...
<commit_before>#include <gmock/gmock.h> #include "script/LuaTestSupportScript.hpp" #include "World.hpp" class MockWorld : public World { public: MockWorld() { World::_self = this; } }; class weather_bindings : public ::testing::Test { public: WeatherStruct weather; MockWorld world; }; TEST_F(we...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: XMLIndexMarkExport.hxx,v $ * * $Revision: 1.4 $ * * last change: $Author: rt $ $Date: 2005-09-09 15:06:39 $ * * The Contents of this file...
<commit_before>#include <iostream> #include <cmath> #include "std.h" #include "eval.h" std::chrono::milliseconds get_current_time() { return std::chrono::duration_cast<std::chrono::milliseconds>( std::chrono::system_clock::now().time_since_epoch()); } static bool is_int(std::shared_ptr<SchemeObject> p...
<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 cop...
<commit_before>// // Copyright (c) 2015 CNRS // // This file is part of Pinocchio // Pinocchio 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 (at your option) a...
<commit_before>#include "../common/init.h" #include "../common/timer.h" #include "util/font.h" #include "util/pointer.h" #include "util/stretch-bitmap.h" #include "util/input/input.h" #include "util/input/input-manager.h" #include "util/gui/animation.h" #include "util/gui/box.h" #include "util/gui/container.h" #inclu...
<commit_before>#ifndef INC_CALIBER_SRC_TEST_COMPILER_HPP #define INC_CALIBER_SRC_TEST_COMPILER_HPP #include <chrono> #include <mettle/driver/log/core.hpp> #include <mettle/suite/compiled_suite.hpp> #include "detail/optional.hpp" #include "tool.hpp" namespace caliber { class test_compiler { public: using timeout_...
<commit_before>#ifndef __Data_course__ #define __Data_course__ #include "data-general.hpp" #include "data-major.hpp" #include "data-department.hpp" using namespace std; class Course { protected: string ID; int number; string title; string description; char section; vector<Major> majors; vector<Department> d...
<commit_before>#ifndef ALEPH_MATH_STEP_FUNCTION_HH__ #define ALEPH_MATH_STEP_FUNCTION_HH__ #include <iterator> #include <limits> #include <ostream> #include <set> #include <stdexcept> #include <vector> #include <cmath> #include <cstdlib> namespace aleph { namespace math { namespace detail { template <class T> T n...
<commit_before><commit_msg>Output format change to allow longer durations. BUG=20289 TEST=run media_bench on sonyh2.ogv. formatting looks bad<commit_after><|endoftext|>
<commit_before>// log_exp.cpp: numerical test programs for fpbench tests for functions constructed with log and exp // // Copyright (C) 2017-2020 Stillwater Supercomputing, Inc. // // This file is part of the universal project, which is released under an MIT Open Source license. #include <iostream> #include <random> #...
<commit_before>/* * (C) 2016 Jack Lloyd * * Botan is released under the Simplified BSD License (see license.txt) */ #include "tests.h" #define BOTAN_NO_DEPRECATED_WARNINGS #if defined(BOTAN_HAS_PACKAGE_TRANSFORM) #include <botan/package.h> #endif namespace Botan_Tests { #if defined(BOTAN_HAS_PACKAGE_TRANSFORM) ...
<commit_before>/* * MusicBrainz -- The Internet music metadatabase * * Copyright (C) 2006 Lukas Lalinsky * * 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 o...
<commit_before>#include <iostream> #include <fstream> #include <stdint.h> #include <malloc.h> #include <assert.h> #include "src/validator/null.h" #include "gmp.h" #include "iml.h" using namespace std; namespace stoke { long mpz_to_long(mpz_t z) { long result = 0; mpz_export(&result, 0, -1, sizeof result, 0, 0...
<commit_before>/* * Copyright (C) 2018 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>/* Copyright(c) 2016-2019 Panos Karabelas 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, modify, merge, p...
<commit_before>/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even t...
<commit_before>#ifndef __MAPNIK_VECTOR_TILE_GEOMETRY_DECODER_H__ #define __MAPNIK_VECTOR_TILE_GEOMETRY_DECODER_H__ #include "vector_tile.pb.h" namespace mapnik { namespace vector_tile_impl { class Geometry { public: inline explicit Geometry(vector_tile::Tile_Feature const& f, double...
<commit_before>/*========================================================================= Library: TubeTK Copyright 2010 Kitware Inc. 28 Corporate Drive, Clifton Park, NY, 12065, USA. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in complian...
<commit_before>/* <x0/connection.cpp> * * This file is part of the x0 web server project and is released under LGPL-3. * * (c) 2009 Chrisitan Parpart <trapni@gentoo.org> */ #include <x0/connection.hpp> #include <x0/listener.hpp> #include <x0/request.hpp> #include <x0/response.hpp> #include <x0/server.hpp> #includ...
<commit_before>#include <iostream> #include <cstdio> #include <cstdlib> #include <direct.h> #include "MagicCube.h" using namespace std; MagicCube a, b; void simulation()//ģ { int t1, t2; while (cin >> t1 >> t2) { //b = a; a.rotate(t1, t2); //a.output_compare(b, 1); } a.output_detailed(); //a.output_compar...
<commit_before>/**************************************************************************** * * Copyright (c) 2018 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>/* 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>/* Copyright 2015 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>/* Copyright 2015 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>/* Copyright 2015 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>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: loginerr.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2005-09-08 16:27:38 $ * * The Contents of this file are made ...
<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: SpellAttrib.cxx,v $ * $Revision:...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: SlideSorterModel.cxx,v $ * * $Revision: 1.8 $ * * last change: $Author: kz $ $Date: 2006-12-12 18:36:57 $ * * The Contents of this file a...
<commit_before>// FRAGMENT(includes) #include <seqan/sequence.h> #include <seqan/basic.h> #include <iostream> using namespace seqan; // FRAGMENT(showAllLetterOfMyAlphabet) template <typename TAlphabet> void showAllLetterOfMyAlphabet(TAlphabet const &) { typedef typename Size<TAlphabet>::Type TSize; TSize alphSize = ...
<commit_before>#ifndef STAN_MATH_GPU_CHOLESKY_DECOMPOSE_HPP #define STAN_MATH_GPU_CHOLESKY_DECOMPOSE_HPP #ifdef STAN_OPENCL #include <stan/math/gpu/matrix_gpu.hpp> #include <stan/math/gpu/kernels/cholesky_decompose.hpp> #include <stan/math/gpu/multiply.hpp> #include <stan/math/gpu/multiply_transpose.hpp> #include <stan...
<commit_before>#include <iostream> #include <sstream> #include <realm.hpp> #include <realm/util/file.hpp> #include "../util/timer.hpp" #include "../util/random.hpp" #include "../util/benchmark_results.hpp" using namespace realm; using namespace realm::util; using namespace realm::test_util; /** This bechmark suit...
<commit_before>#ifndef STAN_MATH_REV_SCAL_FUNCTOR_REDUCE_SUM_HPP #define STAN_MATH_REV_SCAL_FUNCTOR_REDUCE_SUM_HPP #include <stan/math/prim/meta.hpp> #include <stan/math/rev/fun/typedefs.hpp> #include <tbb/task_arena.h> #include <tbb/parallel_reduce.h> #include <tbb/blocked_range.h> #include <iostream> #include <ite...
<commit_before>// This is free and unencumbered software released into the public domain. // For more information, please refer to <http://unlicense.org> #include <iostream> #include <chrono> #include "util.hpp" #include "gl-api.hpp" #include "teapot.h" using namespace tinygizmo; using namespace minalg; const lina...
<commit_before>// ================================================================================ // == This file is a part of Turbo Badger. (C) 2011-2014, Emil Segerås == // == See tb_core.h for more information. == // ==================================================...
<commit_before>/* worker.cpp Copyright (C) 2003-2005 Tommi Maekitalo This file is part of tntnet. Tntnet 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) an...
<commit_before>#include "shaderreflection.h" #include <Tempest/Except> #include <algorithm> #include "thirdparty/spirv_cross/spirv_common.hpp" using namespace Tempest; using namespace Tempest::Detail; void ShaderReflection::getVertexDecl(std::vector<Decl::ComponentType>& data, spirv_cross::Compiler& comp) { if(co...
<commit_before>#include <algorithm> #include <fstream> #include <iomanip> #include <iostream> #include <limits> #include <string> #include <sstream> #include <cmath> #include "filtrations/Data.hh" #include "geometry/RipsExpander.hh" #include "persistentHomology/ConnectedComponents.hh" #include "topology/CliqueGrap...
<commit_before>/** * Copyright (C) 2012 Benjamin Wild * * 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, modi...
<commit_before>// RUN: %clangxx_msan -m64 -O0 %s -o %t && %run %t >%t.out 2>&1 // RUN: %clangxx_msan -m64 -O1 %s -o %t && %run %t >%t.out 2>&1 // RUN: %clangxx_msan -m64 -O2 %s -o %t && %run %t >%t.out 2>&1 // RUN: %clangxx_msan -m64 -O3 %s -o %t && %run %t >%t.out 2>&1 // Test that (no_sanitize_memory) functions DO N...
<commit_before>// (C) Copyright Gennadiy Rozental 2003-2010. // 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) // See http://www.boost.org/libs/test for the library home page. // // File : $RCSfile$ ...
<commit_before><commit_msg>Improved documentation etc. of normalize method<commit_after><|endoftext|>
<commit_before>/* * Copyright (c) 2012-2013 Stanford University * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS I...
<commit_before><commit_msg>Build fix.<commit_after><|endoftext|>
<commit_before>// Expose declared constants to matlab for convenience. #include <mex.h> #include "mexximp_constants.h" #include "mexximp_util.h" void mexFunction(int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[]) { if (1 != nrhs || !mxIsChar(prhs[0])) { plhs[0] = mexximp::emptyDouble(); ...
<commit_before>// // ModifiedRenderingExample.cpp // ExampleApp // // Created by eeGeo on 03/05/2013. // Copyright (c) 2013 eeGeo. All rights reserved. // #include "ModifiedRenderingExample.h" #include "PooledResource.h" #include "IStreamingVolume.h" #include "DiffuseTexturedVertex.h" #include "MathsHelpers.h" us...
<commit_before>/* * Copyright (c) 2009, Peter Sommerlad and IFS Institute for Software at HSR Rapperswil, Switzerland * All rights reserved. * * This library/application is free software; you can redistribute and/or modify it under the terms of * the license that is included with this library/application in the fi...
<commit_before>/* ======================================================== * * * Members 1: Ramiz Alda (100398864) * * 2: Imina Edebiri (100486339) * ========================================================*/ /* Purpose: Determines the voltage output of an amplifer depending on the ...
<commit_before>#include "Date.h" #include "components/debug/Debug.h" const int Date::INITIAL_YEAR = 389; const int Date::MONTHS_PER_YEAR = 12; const int Date::DAYS_PER_MONTH = 30; const int Date::DAYS_PER_WEEK = 7; Date::Date(int year, int month, int day) { // Make sure each value is in a valid range. ...
<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/scoped_temp_dir.h" #include "base/file_util.h" #include "base/logging.h" ScopedTempDir::ScopedTempDir() { } ScopedTem...
<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>#ifndef NEW_AIO_H #define NEW_AIO_H /*Defines virtual AIO objects to be instantiated by concrete implementation in the src/ file. */ #include<string> #include<vector> #include<stdexcept> #include<stdint.h> #include<boost/shared_ptr.hpp> class Process; class Symbol; /* The AIO is based on event obje...
<commit_before>/* BZWorkbench * Copyright (c) 1993 - 2007 Tim Riker * * This package is free software; you can redistribute it and/or * modify it under the terms of the license found in the file * named COPYING that should have accompanied this file. * * THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRES...
<commit_before>#include "event_scheduler.hpp" #include <QApplication> #include <QDebug> EventScheduler::EventScheduler() : receiver_(0) , event_(0) { timer_.setSingleShot(true); } void EventScheduler::set_receiver(QObject *receiver) { receiver_ = receiver; } void EventScheduler::schedule_event(QEvent *event,...
<commit_before>/***************************************************************************** Copyright 2004-2008 Steve Ménard 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>#include "coins.h" using namespace eigengo::akka; std::vector<Coin> CoinCounter::countCpu(const cv::Mat &image) { using namespace cv; std::vector<Coin> coins; Mat dst; std::vector<Vec3f> circles; cvtColor(image, dst, COLOR_RGB2GRAY); GaussianBlur(dst, dst, Size(9, 9), 3, 3); threshold(dst,...
<commit_before><commit_msg>[assembler.gridwalker] added add() for codim 0 lambda<commit_after><|endoftext|>
<commit_before><commit_msg>[la.container.eigen] added copy constructors<commit_after><|endoftext|>
<commit_before><commit_msg>cppcheck: size() == 0 -> empty()<commit_after><|endoftext|>
<commit_before><commit_msg>Fix pingpong server OnMessage bug<commit_after><|endoftext|>
<commit_before>#ifndef GNR_DISPATCH_HPP # define GNR_DISPATCH_HPP # pragma once #include <type_traits> #include <utility> #include "invoke.hpp" namespace gnr { namespace detail { template <std::size_t I, typename ...T> using at_t = std::tuple_element_t<I, std::tuple<T...>>; template <typename R> using result_t =...
<commit_before><commit_msg>testFdo52989 kept failing for my Mac build at least<commit_after><|endoftext|>
<commit_before><commit_msg>sw: Fix cursor accessibility API (fdo#43390)<commit_after><|endoftext|>
<commit_before>#include "BTU/btu_PID_lite.cpp" #include "mbed.h" #define NUM_FLOATS 5 #define TIMESTEP 0.05 #define DEPTH_THRESHOLD 0.3 #define MIN_MISSION_DEPTH 0.2 #define MISSION_TIMEOUT 60.0 #define ERROR_THRESHOLD 0.075 #define SUCCESS_TIME 8.0 #define DEBRIEF_TIME_LIMIT 20.0 #define UNWOUND_POS 91.0 #include "...
<commit_before>//===----------------------------------------------------------------------===// // // PelotonDB // // expression_test.cpp // // Identification: tests/expression/expression_test.cpp // // Copyright (c) 2015, Carnegie Mellon University Database Group // //===-----------------------...
<commit_before>/************************************************************************* * * $RCSfile: uiconfigurationmanager.hxx,v $ * * $Revision: 1.5 $ * * last change: $Author: as $ $Date: 2004-12-07 13:18:15 $ * * The Contents of this file are made available subject to the terms of * either of the f...
<commit_before>#include <QtTest/QtTest> #include "../qtest-platform.h" #include "helpwidget.h" #include "mainwindow.h" class TestMainWindow : public QObject { Q_OBJECT private slots: void initTestCase(); void about_window(); void console_window(); void quit_simple(); void quit_tasks(); }; v...
<commit_before><commit_msg>fix recycling heap bug<commit_after><|endoftext|>
<commit_before><commit_msg>Added missed include in exceptions<commit_after><|endoftext|>
<commit_before><commit_msg>added two comments<commit_after><|endoftext|>
<commit_before>// This file is part of the dune-gdt project: // http://users.dune-project.org/projects/dune-gdt // Copyright holders: Felix Schindler // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifndef DUNE_GDT_SPACES_DISCONTINUOUSLAGRANGE_PDELAB_HH #define DUNE_GDT_SPACES_DISCONTI...
<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 "chrome/browser/bookmarks/bookmark_context_menu_controller.h" #include "base/compiler_specific.h" #include "chrome/app/chrome...
<commit_before>void P010_TDataProgressDialog() { gPluginMgr->AddHandler("TDataProgressDialog", "*", "TDataProgressDialog", "PeacGui", "TDataProgressDialog(TProof*,const char*,Int_t,Long64_t)"); } <commit_msg>Remove obsolete plugin definition libPeac was removed in version 5.34.01<commit_after><|endoftext|>
<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 "chrome/browser/password_manager/password_form_data.h" #include "chrome/browser/sync/sessions/session_state.h" #include "chrom...
<commit_before>namespace foo { int x; void bar(int z); } namespace bar { typedef int QType; void bar(QType z); } class ClsA { public: int a, b; ClsA(int A, int B) : a(A), b(B) {} }; namespace foo { class ClsB : public ClsA { public: ClsB() : ClsA(1, 2) {} int result() const; }; } int foo::C...
<commit_before>/* * */ #include <stdio.h> #include "sync.h" #include "topo.h" #include "mp.h" #include "measurement_framework.h" #include <pthread.h> #include <unistd.h> #include <vector> #include "model_defs.h" #ifdef PARLIB #include "mcs.h" #endif //#define SEND7 #ifdef BARRELFISH #include <barrelfish/barrelfi...
<commit_before><commit_msg>Fix DemoApplication memory leak<commit_after><|endoftext|>
<commit_before>/** * A camera component that generates view and projection matrices. * * License: Mozilla Public License Version 2.0 (https://www.mozilla.org/en-US/MPL/2.0/ OR See accompanying file LICENSE) * Authors: * - Dan Printzell */ #pragma once #include <hydra/ext/api.hpp> #include <hydra/world/world.hpp...
<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 "base/basictypes.h" #include "base/bind.h" #include "base/bind_helpers.h" #include "base/compiler_specific.h" #include "base/m...
<commit_before>// test: indent_only if (foo) return; if (foo + bar) return; if (foo) { #if DIRECTIVES_IGNORED DropEverything(); } if (a->ba( baz)) {} LOG(FOO) << "foo" << "bar"; while (foo + bar) { } // aligning to parens namespace mynamespace { } const Foo& foo = bar....
<commit_before>/********************************************************************************* * Copyright (c) 2013 David D. Marshall <ddmarsha@calpoly.edu> * * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies...
<commit_before>#define EIGEN_ENABLE_EVALUATORS #include "main.h" using internal::copy_using_evaluator; using namespace std; #define VERIFY_IS_APPROX_EVALUATOR(DEST,EXPR) VERIFY_IS_APPROX(copy_using_evaluator(DEST,(EXPR)), (EXPR).eval()); #define VERIFY_IS_APPROX_EVALUATOR2(DEST,EXPR,REF) VERIFY_IS_APPROX(copy_using_e...
<commit_before>/* This file is part of KAddressBook. Copyright (c) 2002 Mike Pilone <mpilone@slac.com> 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 Lice...
<commit_before>// BSD 2-Clause License, see github.com/ma16/rpio #include "../rpio.h" #include <Rpi/ArmTimer.h> #include <Rpi/Pin.h> #include <Rpi/Register.h> #include <Ui/strto.h> #include <chrono> #include <iomanip> #include <iostream> #include <vector> static uint32_t getPins(Ui::ArgL *argL) { auto arg = argL->p...
<commit_before><commit_msg>Sort the stack.<commit_after><|endoftext|>
<commit_before>/* * load-file.cc * * Utility helper function -- load scheme code from a file * Copyright (c) 2008 Linas Vepstas <linasvepstas@gmail.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License v3 as * published by the...
<commit_before>#include "agent.h" #include <string.h> #include "helper.h" using namespace v8; v8::Persistent<v8::Function> Agent::constructor; // lifecycle stuff void Agent::init(v8::Handle<v8::Object> exports) { // Prepare constructor template Local<FunctionTemplate> tpl = FunctionTemplate::New(New); tpl->Set...
<commit_before>/** * \file * \remark This file is part of VITA. * * \copyright Copyright (C) 2011-2013 EOS di Manlio Morini. * * \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 distributed with this file, * You can obtain one...
<commit_before>//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // version: $Id$ // author: Vassil Vassilev <vasil.georgiev.vasilev@cern.ch> //------------------------------------------------------------------------------ #include "cling/In...
<commit_before>//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // author: Vassil Vassilev <vasil.georgiev.vasilev@cern.ch> // // This file is dual-licensed: you can choose to license it under the University // of Illinois Open Source Licens...
<commit_before>#include "catch.hpp" #include "test/base_test_fixture.h" #include <cstdio> #include <cstdlib> namespace { struct mysql_fixture : public base_test_fixture { mysql_fixture() // connection string from command line or NANODBC_TEST_CONNSTR environment variable : base_test_fixture() {...
<commit_before>/* -*- c++ -*- callback.cpp This file is used by KMail's plugin interface. Copyright (c) 2004 Bo Thorsen <bo@sonofthor.dk> KMail 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 Founda...
<commit_before><commit_msg>Fix OOM with uninitialized variable case.<commit_after><|endoftext|>