text
stringlengths
54
60.6k
<commit_before>#include <config.h> #include <assert.h> #include <boost/assert.hpp> #include <boost/multi_array/multi_array_ref.hpp> #include <dune/common/exceptions.hh> #include <dune/fem/misc/mpimanager.hh> #include <dune/stuff/common/logging.hh> #include <dune/stuff/common/profiler.hh> #include <dune/stuff/common/ran...
<commit_before><commit_msg>check error<commit_after><|endoftext|>
<commit_before>/* <one line to give the program's name and a brief idea of what it does.> Copyright (C) <year> <name of author> 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, ei...
<commit_before>/* * Copyright (C) 2016 Jan Grulich * * 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 License, or (at your option) any later version. * ...
<commit_before><commit_msg>Improve auto detection correct category in serializationinfo.<commit_after><|endoftext|>
<commit_before>#ifndef _TRACER_H #define _TRACER_H #include <string> #include <map> #include <vector> #include <boost/interprocess/containers/container/flat_map.hpp> #include <boost/regex.hpp> using std::string; using std::map; using std::vector; #define TRACER_ENABLED 1 #define HEAP 1 #define STACK...
<commit_before><commit_msg>Added <chrono><commit_after><|endoftext|>
<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><commit_msg>DS21SM: increase TX rate<commit_after><|endoftext|>
<commit_before>/******************************************************************************* Licensed to the OpenCOR team under one or more contributor license agreements. See the NOTICE.txt file distributed with this work for additional information regarding copyright ownership. The OpenCOR team licenses this file...
<commit_before>#include <iostream> #include <vector> #include <fstream> #include <string> #include <algorithm> #include <cmath> #include <boost/lexical_cast.hpp> #include "Point.hpp" #include "Function.hpp" #include "SymbolicRegressionSolver.hpp" #include "Config.hpp" #define OPTIMISE_CONFIG int amountOfSimulations...
<commit_before>/******************************************************************************* Licensed to the OpenCOR team under one or more contributor license agreements. See the NOTICE.txt file distributed with this work for additional information regarding copyright ownership. The OpenCOR team licenses this file...
<commit_before>/* Resembla: Word-based Japanese similar sentence search library https://github.com/tuem/resembla Copyright 2017 Takashi Uemura 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 h...
<commit_before>/* Metaballs Demo Copyright (C) 1999 by Denis Dmitriev This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your opti...
<commit_before>#include "BigFix/DataRef.h" #include "BigFix/DateTime.h" #include "BigFix/Error.h" #include <gtest/gtest.h> using namespace BigFix; TEST( DateTimeTest, DefaultIsTheEpoch ) { DateTime time; EXPECT_EQ( 1970ul, time.Year() ); EXPECT_EQ( 1ul, time.Month() ); EXPECT_EQ( 1ul, time.Day() ); EXPECT_...
<commit_before><commit_msg>INTEGRATION: CWS vgbugs07 (1.39.50); FILE MERGED 2007/06/04 13:26:12 vg 1.39.50.1: #i76605# Remove -I .../inc/module hack introduced by hedaburemove01<commit_after><|endoftext|>
<commit_before>/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * BSD 3-Clause License /* * * * * * * * * * * * * * * * * * * * * * * * * * * * * Code by Cassius Fiorin - cafiorin@gmail.com http://pinballhomemade.blogspot.com.br * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ // TestPinb....
<commit_before><commit_msg>INTEGRATION: CWS swdrawpositioning (1.1.2); FILE ADDED 2004/06/01 12:01:09 od 1.1.2.3: #i26791# classes <SwAnchoredObject> and <SwAnchoredDrawObject> - method to set and convert positioning attributes. 2004/04/23 07:23:56 od 1.1.2.2: #i26791# - adjustments for the unification of the positio...
<commit_before>#ifndef URI_HH #define URI_HH #include <string> #include <utility> #include <vector> #include <stdexcept> #include <algorithm> #include <sstream> #include <boost/algorithm/string.hpp> /* TODO: * Normalization and Comparison * http://tools.ietf.org/html/rfc3986#section-6 */ struct uri { std::str...
<commit_before>/* Copyright (c) 2008-2019 the MRtrix3 contributors. * * 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 http://mozilla.org/MPL/2.0/. * * Covered Software is provided under this L...
<commit_before>#include <QLocalServer> #include <QLocalSocket> #include <QtCore/QEventLoop> #include <QtCore/QVariant> #include <QtTest/QtTest> #include "json/qjsondocument.h" #include "qjsonrpcservice.h" #include "qjsonrpcmessage.h" class TestQJsonRpcServiceProvider: public QObject { Q_OBJECT private Q_SLOTS:...
<commit_before>#include "rb_tree.h" #include <stack> void RB_Tree::Insert(TreeNode* z){ TreeNode* y = NULL; TreeNode* x = root; while(x!=NULL){ y=x; if(z->data<x->data) x=x->lchild; else if(z->data>x->data) x=x->rchild; } z->parent=y; if(...
<commit_before>#include <vector> #include <string> #include <sstream> #include <cstring> #include <boost/range/iterator_range.hpp> #include <boost/property_tree/ptree.hpp> #include <boost/property_tree/json_parser.hpp> #include <boost/python.hpp> #include <boost/python/extract.hpp> #include <boost/python/numeric.hpp...
<commit_before>#ifndef __INSTANCE_SELECTION_HPP__ #define __INSTANCE_SELECTION_HPP__ #define repeat(N) for(int i = 0; i < N; ++i) #define TEST_PRIVATE_ATTRIBUTES 0 // 1 => enable testing in private members of the classes #define N_THREADS 100 // Metaheuristics flags #define LOCAL_SEARCH 0 #define ITERATED_LOCAL_SEARC...
<commit_before>// Copyright 2020 Global Phasing Ltd. #include "common.h" #include "gemmi/elem.hpp" #include "gemmi/resinfo.hpp" #include "gemmi/it92.hpp" #include "gemmi/c4322.hpp" #include <pybind11/stl.h> #include <pybind11/numpy.h> namespace py = pybind11; using namespace gemmi; static std::vector<std::string> ex...
<commit_before> #include <togo/error/assert.hpp> #include <togo/log/log.hpp> #include <togo/memory/memory.hpp> #include <togo/collection/array.hpp> #include "../common/helpers.hpp" using namespace togo; #define ARRAY_ASSERTIONS(a, _size, _capacity) \ TOGO_ASSERTE(array::size(a) == _size); \ TOGO_ASSERTE(array::cap...
<commit_before>// Copyright(c) Andre Caron <andre.l.caron@gmail.com>, 2011 // // This document is covered by the an Open Source Initiative approved license. A // copy of the license should have been provided alongside this software package // (see "LICENSE.txt"). If not, terms of the license are available online at // ...
<commit_before>/*========================================================================= * * Copyright Insight Software Consortium * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at ...
<commit_before>/////////////////////////////////////////////////////////////////////////// // // SneezyMUD++ 4.5 - All rights reserved, SneezyMUD Coding Team // "fuel.cc" - Methods for TFuel class // // Last revision December 18, 1997. // //////////////////////////////////////////////////////////////////...
<commit_before>/* * Copyright 2017-present Facebook, 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>/** @file traffic_ctl @section license License 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 u...
<commit_before>#include "jsonRpcServer.h" #include "lightspeed/base/framework/app.h" #include "lightspeed/base/debug/dbglog.h" #include "lightspeed/utils/json/jsonfast.tcc" #include "lightspeed/base/debug/LogProvider.h" #include "../httpserver/serverStats.h" #include "../httpserver/httpServer.h" namespace jsonsrv { ...
<commit_before><commit_msg>Bugfix: GPGPU test: add missing forward declaration.<commit_after><|endoftext|>
<commit_before>#include "compiler/compiler.hpp" #include "compiler/grammar.hpp" #include "compiler/exceptions.hpp" #include "compiler/ast.hpp" #include "compiler/function_manager.hpp" #include "compiler/steps.hpp" #include "shared/opcodes.hpp" #include <boost/spirit/home/qi/parse.hpp> #include <vector> #include <uti...
<commit_before>/* * Copyright 2015 Cloudius Systems */ #pragma once #include "bytes_ostream.hh" namespace query { // // Query results are serialized to the following form: // // <result> ::= <partition>* // <partition> ::= <row-count> [ <partition-key> ] [ <static-row> ] <row>* // <static-row> ...
<commit_before>/* Copyright 2015 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 required by applica...
<commit_before><commit_msg>Fix #1447: remove invalid/empty file<commit_after><|endoftext|>
<commit_before>// Copyright 2014 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 "ui/ozone/platform/drm/gpu/hardware_display_plane_manager_atomic.h" #include "base/bind.h" #include "ui/ozone/platform/drm/gpu/cr...
<commit_before>// Copyright 2012 Google Inc. All Rights Reserved. // Author: jacobsa@google.com (Aaron Jacobs) // // 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....
<commit_before>// // Created by theppsh on 17-4-13. // #include <iostream> #include <iomanip> #include "src/aes.hpp" #include "src/triple_des.hpp" int main(int argc,char ** args){ /**aes 加密*/ /// 128位全0的秘钥 u_char key_block[]={0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0 }; u_char pla...
<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: // // 1. Redistributions of source code must retain the above copyright notice, // this list o...
<commit_before>// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr> // Copyright (C) 2006-2008 Benoit Jacob <jacob.benoit.1@gmail.com> // // This Source Code Form is subject to the terms of the Mozilla // Public Lice...
<commit_before>#ifndef DATASTRUCTURES_H #define DATASTRUCTURES_H #include <string> #include <vector> #include <map> #include <string> #include "api/BamMultiReader.h" #include "fastahack/Fasta.h" #include "ssw_cpp.h" struct regionDat{ int seqidIndex ; int start ; int end ; }; struct readPair{ in...
<commit_before><commit_msg>new filter for unfinished tiles<commit_after><|endoftext|>
<commit_before>#ifndef _SDD_DD_DEFINITION_HH_ #define _SDD_DD_DEFINITION_HH_ #include <initializer_list> #include <type_traits> // is_integral #include "sdd/dd/alpha.hh" #include "sdd/dd/definition_fwd.hh" #include "sdd/dd/node.hh" #include "sdd/dd/terminal.hh" #include "sdd/dd/top.hh" #include "sdd/mem/ptr.hh" #incl...
<commit_before>// Copyright 2006 The RE2 Authors. All Rights Reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Format a regular expression structure as a string. // Tested by parse_test.cc #include <string.h> #include <string> #include "util/util.h"...
<commit_before>/** * @file localStorageManager.cc * @author Krzysztof Trzepla * @copyright (C) 2014 ACK CYFRONET AGH * @copyright This software is released under the MIT license cited in 'LICENSE.txt' */ #include "localStorageManager.h" #include "config.h" #include "veilfs.h" #include "logging.h" #include "commun...
<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 "SkGLWidget.h" #if SK_SUPPORT_GPU SkGLWidget::SkGLWidget(SkDebugger* debugger) : QGLWidget() { this->setStyleSheet("QWidget {background-color: ...
<commit_before>#ifndef _cz_Request_hpp__ #define _cz_Request_hpp__ // Copyright (c) 2012, Andre Caron (andre.l.caron@gmail.com) // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Re...
<commit_before>/* * Phusion Passenger - https://www.phusionpassenger.com/ * Copyright (c) 2010-2017 Phusion Holding B.V. * * "Passenger", "Phusion Passenger" and "Union Station" are registered * trademarks of Phusion Holding B.V. * * Permission is hereby granted, free of charge, to any person obtaining a co...
<commit_before>#include <iostream> #include <string> using namespace std; int main() { long long a = 0; long long b = 0; long long r = 0; cin >> a >> b; long long ans = 0; while (b != 0) { ans += a / b; r = a % b; a = b; b = r; } cout << ans...
<commit_before>typedef Matrix<double, 5, 3> Matrix5x3; typedef Matrix<double, 5, 5> Matrix5x5; Matrix5x3 m = Matrix5x3::Random(); cout << "Here is the matrix m:" << endl << m << endl; Eigen::FullPivLU<Matrix5x3> lu(m); cout << "Here is, up to permutations, its LU decomposition matrix:" << endl << lu.matrixLU() << ...
<commit_before>#ifndef TEST_HELPER_H_ #define TEST_HELPER_H_ #include <internal/iterbase.hpp> #include <stdexcept> #include <type_traits> #include <utility> #include <vector> namespace itertest { // non-copyable. non-movable. non-default-constructible class SolidInt { private: const int i; public: ...
<commit_before>#include "webcam.hpp" using namespace cv; using namespace std; int main (int argc, char** argv) { CvCapture* capture = 0; int width, height, fps; capture = cvCaptureFromCAM(0); if (!capture) { printf("No camera detected!"); return -1; } ifstream configFile (".config"); if (configFile.is...
<commit_before>#include "gflags/gflags.h" DEFINE_string(race_id, "", ""); DEFINE_double(safe_angle, 60.0, ""); DEFINE_int32(handicap, 0, ""); DEFINE_bool(check_if_safe_ahead, true, ""); DEFINE_int32(answer_time, 7000, "Time limit for answer in ms"); DEFINE_bool(disable_attack, false, ""); DEFINE_bool(bump_with_turbo,...
<commit_before>#include "FileUtil.h" #include "Zeder.h" namespace Zeder { const std::string &Entry::getAttribute(const std::string &name) const { const auto match(attributes_.find(name)); if (match == attributes_.end()) LOG_ERROR("Couldn't find attribute '" + name + "'! in entry " + std::to_string(i...
<commit_before>#include "webcam.hpp" #include <chrono> using namespace cv; using namespace std; Mat ellipticKernel(int width, int height = -1) { if (height==-1) { return getStructuringElement(MORPH_ELLIPSE,Size(width,width), Point(width/2, width/2)); } else { return getStructuringElement(MORPH_ELLIPSE,Size(widt...
<commit_before>#include "webcam.hpp" using namespace cv; using namespace std; int main (int argc, char** argv) { int tracker1, tracker2, tracker3; namedWindow("s",1); createTrackbar("1","s",&tracker1,100); createTrackbar("2","s",&tracker2,100); createTrackbar("3","s",&tracker3,100); CvCapture* capture = 0; i...
<commit_before>#include "diana_runner.hpp" #include "sophos_runner.hpp" #include "utility.hpp" #include <sse/schemes/utils/utils.hpp> #include <sse/crypto/utils.hpp> #include <grpc++/create_channel.h> #include <grpc++/impl/codegen/service_type.h> #include <grpc++/server_builder.h> #include <condition_variable> #inc...
<commit_before>#include <cassert> #include <iostream> #include <list> #include <pqxx/pqxx> using namespace PGSTD; using namespace pqxx; namespace { void compare_results(string name, result lhs, result rhs) { if (lhs != rhs) throw logic_error("Executing " + name + " as prepared statement " "yields different ...
<commit_before>#include <cassert> #include <iostream> #include <list> #include <pqxx/pqxx> using namespace PGSTD; using namespace pqxx; // Test program for libpqxx. Test binary parameters to prepared statements. // // Usage: test092 int main() { try { const char databuf[] = "Test\0data"; const string da...
<commit_before>#include <string> // Include GLM #ifndef __GLM_GLM_HPP_INCLUDED #define __GLM_GLM_HPP_INCLUDED #include <glm/glm.hpp> #endif // Include matrix_transform.hpp . #ifndef __GLM_GTC_MATRIX_TRANSFORM_HPP_INCLUDED #define __GLM_GTC_MATRIX_TRANSFORM_HPP_INCLUDED #include <glm/gtc/matrix_transform.hpp> #endif ...
<commit_before>#include <iostream> #include <fstream> #include "../src/MPSegment.hpp" #include "../src/HMMSegment.hpp" #include "../src/MixSegment.hpp" using namespace CppJieba; void cut(const ISegment * seg, const char * const filePath) { ifstream ifile(filePath); vector<string> res; string line; whi...
<commit_before>// @(#)root/test:$Name: $:$Id: tcollex.cxx,v 1.2 2000/07/11 18:05:26 rdm Exp $ // Author: Fons Rademakers 19/08/96 #include <stdlib.h> #include <iostream.h> #include "TROOT.h" #include "TString.h" #include "TObjString.h" #include "TSortedList.h" #include "TObjArray.h" #include "TOrdCollection.h" #in...
<commit_before>#include <cassert> #include <iostream> #include <list> #include <pqxx/pqxx> #include <pqxx/compiler-internal.hxx> using namespace PGSTD; using namespace pqxx; namespace { #ifndef PQXX_HAVE_DISTANCE template<typename ITERATOR> size_t distance(ITERATOR begin, ITERATOR end) { size_t d = 0; while (be...
<commit_before>/** * @cond ___LICENSE___ * * Copyright (c) 2016 Koen Visscher, Paul Visscher and individual contributors. * * 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>#ifndef __MODEL_HPP_INCLUDED #define __MODEL_HPP_INCLUDED // Include GLEW #ifndef __GL_GLEW_H_INCLUDED #define __GL_GLEW_H_INCLUDED #include <GL/glew.h> #endif // Include GLFW #ifndef __GLFW3_H_INCLUDED #define __GLFW3_H_INCLUDED #include <glfw3.h> #endif // Include GLM #ifndef __GLM_GLM_HPP_INCLUDED ...
<commit_before>//====================================================================== //----------------------------------------------------------------------- /** * @file iutest_filepath.hpp * @brief iris unit test ファイルパスクラス ファイル * * @author t.shirayanagi * @par copyright * Copyright...
<commit_before>#include "cell.h" #include "liste.h" #include "tabListe.h" using namespace std; int main(int argc, char** argv) { Liste L1; Cell a1(1); Cell b1(2); L1.ajoutFin(a1); L1.ajoutFin(b1); L1.afficheL(); Liste L2; Cell a2(3); Cell b2(4); L2.ajoutFin(a2); L2.ajoutFin(b2); L2.afficheL(...
<commit_before>//======================================================================= // Copyright Baptiste Wicht 2011. // 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>#ifndef V_SMC_HELPER_PARALLEL_TBB_HPP #define V_SMC_HELPER_PARALLEL_TBB_HPP #include <cstddef> #include <Eigen/Dense> #include <tbb/tbb.h> #include <vSMC/internal/config.hpp> #include <vSMC/helper/sequential.hpp> #include <vSMC/helper/state_base.hpp> namespace vSMC { /// \brief Sampler::init_type clas...
<commit_before>#ifndef VSMC_HELPER_PARALLEL_OMP_HPP #define VSMC_HELPER_PARALLEL_OMP_HPP #include <vsmc/internal/common.hpp> #include <vsmc/helper/base.hpp> /// \defgroup OpenMP OpenMP /// \ingroup Helper /// \brief Parallelized samplers with OpenMP namespace vsmc { /// \brief Particle::value_type subtype /// \ingr...
<commit_before>/* * Copyright (C) 2015 ScyllaDB */ /* * This file is part of Scylla. * * Scylla is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your op...
<commit_before>/* * @file fsfloaterposestand.cpp * @brief It's a pose stand! * * ---------------------------------------------------------------------------- * "THE BEER-WARE LICENSE" (Revision 42): * Cinder Roxley wrote this file. As long as you retain this notice you can do * whatever you want with this stuff....
<commit_before>#include <QApplication> #include <QTreeView> #include <QAbstractItemModel> #include <QList> #include <assert.h> #include "ntreg.h" class RegistryItem { struct hive *hive; RegistryItem* parent; QString name; bool enumerated; QList<RegistryItem*> subkeys; public: RegistryItem( struct hive *h, Regist...
<commit_before>/* This file is part of KOrganizer. Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org> Copyright (c) 2005 Rafal Rzepecki <divide@users.sourceforge.net> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as publis...
<commit_before>/* * Copyright (C) 2014 Andrew Duggan * Copyright (C) 2014 Synaptics 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...
<commit_before>// Core SPC emulation: CPU, timers, SMP registers, memory // snes_spc 0.9.0. http://www.slack.net/~ant/ #include "SNES_SPC.h" #include <string.h> /* Copyright (C) 2004-2007 Shay Green. This module is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Pub...
<commit_before>#include<iostream> using namespace std; int main(){ int size,i,leftTop,rightTop,temp; cout<<"Enter size of array\n"; cin>>size; leftTop = 0; rightTop = size-1; cout<<"Enter elements of Array\n"; int A[size]; for(i=0;i<size;i++) cin>>A[i]; while(leftTop < rightTop){ while(A[leftTop]%2 == 0 && leftTo...
<commit_before>// $Id: file.cpp,v 1.6 1999/12/28 11:14:05 cisc Exp $ #include <stdio.h> #include "fmgen_types.h" #include "fmgen_headers.h" #include "fmgen_file.h" // --------------------------------------------------------------------------- // \z/ // --------------------------------------------------------...
<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/utf_string_conversions.h" #include "chrome/browser/content_settings/cookie_settings.h" #include "chrome/browser/prefs/pr...
<commit_before>#pragma once #ifndef CATCH_CONFIG_MAIN # define CATCH_CONFIG_MAIN #endif #include "catch.hpp" <commit_msg>Added TestServer helpers to common.hpp for unit tests<commit_after>#pragma once #ifndef CATCH_CONFIG_MAIN # define CATCH_CONFIG_MAIN #endif #include "catch.hpp" #include "internal/curl.hpp"...
<commit_before>#include "testing_suite.h" using namespace std; using namespace TOOLS; using namespace TOOLS::UNIT_TEST; /// @todo PREPARE_WITH DOES NOT WORK! Test::Test() : name(""), method(NULL), object(NULL) {} Test::Test(const string& name, tMethod meth, TestSuite* obj) : name(name), method(meth), object(obj) ...
<commit_before>#include <gmock/gmock.h> #include <gtest/gtest.h> #include <blackhole/attribute.hpp> #include <blackhole/extensions/facade.hpp> #include <blackhole/scope/manager.hpp> #include "mocks/logger.hpp" #define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) #if GCC_VERSION < 5000...
<commit_before>#include <gmock/gmock.h> #include <gtest/gtest.h> #include <blackhole/extensions/facade.hpp> #include <blackhole/logger.hpp> #include "mocks/logger.hpp" namespace blackhole { namespace testing { using ::testing::_; typedef mock::logger_t logger_type; TEST(Facade, PrimitiveLog) { const logger_ty...
<commit_before><commit_msg>Simplify visibility after clang format for vertices on Cube<commit_after><|endoftext|>
<commit_before>#ifndef MINIMAT_AST_MATRIX_HPP #define MINIMAT_AST_MATRIX_HPP #include <eigen3/Eigen/Dense> typedef Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor> Matrix; #endif<commit_msg>Get with the times; no one uses 'typedef' anymore<commit_after>#ifndef MINIMAT_AST_MATRIX_HPP #define MIN...
<commit_before>/* ********************************************************** * Copyright (c) 2012 Google, Inc. All rights reserved. * **********************************************************/ /* Dr. Memory: the memory debugger * * This library is free software; you can redistribute it and/or * modify it under ...
<commit_before>/* * Keyman is copyright (C) SIL International. MIT License. * * Keyman Core - Debugger API unit tests */ #include <cstdlib> #include <cstring> #include <iostream> #include <algorithm> #include <iterator> #include <string> #include "../../../src/kmx/kmx_xstring.h" #include "../test_assert.h" using ...
<commit_before>#pragma once #include "socket/udp.hpp" #include "socket/tcp.hpp" #include "blackhole/repository/factory/traits.hpp" #include "blackhole/sink/thread.hpp" namespace blackhole { namespace sink { namespace socket { struct config_t { std::string host; std::uint16_t port; }; } // namespace socke...
<commit_before>#include <gtest/gtest.h> #include <blackhole/record.hpp> namespace blackhole { namespace testing { TEST(Record, Severity) { attribute_pack pack{}; record_t record(42, "GET /porn.png HTTP/1.1", pack); EXPECT_EQ(42, record.severity()); } TEST(Record, Message) { attribute_pack pack{}; ...
<commit_before>// Copyright (c) 2007-2010 Paul Hodge. All rights reserved. #include "circa.h" namespace circa { namespace map_function { void evaluate(EvalContext* cxt, Term* caller) { Term* func = caller->input(0); Branch& inputs = as_branch(caller->input(1)); Branch& output = as_bra...
<commit_before>//===- FuzzerLoop.cpp - Fuzzer's main loop --------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>// -*- mode: c++; coding: utf-8 -*- #ifndef MWG_BIO_TAPE_H_stdio #define MWG_BIO_TAPE_H_stdio #include <cstdio> #include <cstring> #ifdef _MSC_VER # include <io.h> #else # include <sys/types.h> # include <sys/stat.h> # include <unistd.h> #endif #if defined(MSDOS)||defined(OS2)||defined(WIN32)||defined(...
<commit_before>#include "command.hh" #include "eval.hh" #include "eval-inline.hh" #include "derivations.hh" #include "common-args.hh" #include "json.hh" #include "get-drvs.hh" #include "attr-path.hh" #include <nlohmann/json.hpp> #include <sys/resource.h> using namespace nix; static std::string queryMetaStrings(EvalS...
<commit_before>#include "command.hh" #include "eval.hh" #include "eval-inline.hh" #include "derivations.hh" #include "common-args.hh" #include "json.hh" #include "get-drvs.hh" #include "attr-path.hh" #include <nlohmann/json.hpp> #include <sys/resource.h> using namespace nix; static std::string queryMetaStrings(EvalS...
<commit_before>//===-- iOperators.cpp - Implement binary Operators ------------*- C++ -*--===// // // 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>/****************************************************************************** * Copyright (C) 2018 Kitsune Ral <kitsune-ral@users.sf.net> * * 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 Fre...
<commit_before>#include "ofxLineStripObject.h" ofxLineStripObject::ofxLineStripObject(int iNumVerts) { lineWidth = 1.0; for(int i=0; i < iNumVerts; i++){ addVertex(0,0,0); } isVertexColoringEnabled = false; } ofxLineStripObject::ofxLineStripObject(){} void ofxLineStripObject::render() {...
<commit_before>/* * ofxShivaVG * A 2d rendering library for openFrameworks, based on the ShivaVG library * by Bjørn Gunnar Staal * * 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; e...