text
stringlengths
54
60.6k
<commit_before>// Copyright 2010-2014 RethinkDB, all rights reserved. #include "rdb_protocol/artificial_table/cfeed_backend.hpp" #include "concurrency/cross_thread_signal.hpp" /* We destroy the machinery if there have been no changefeeds for this many seconds */ static const int machinery_expiration_secs = 60; void ...
<commit_before><commit_msg>Perception: Fix build error (#1000)<commit_after><|endoftext|>
<commit_before>#include "udp_server.h" #include <thread> #include <netinet/ip.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <sys/socket.h> #include <time.h> #include <boost/bind.hpp> namespace Akumuli { UdpServer::UdpServer(std::shared_ptr<IngestionPipeline> pipeline, int nworkers, int por...
<commit_before>// Copyright 2019 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law ...
<commit_before>#include "sockets.h" #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <netdb.h> #include <errno.h> class Plaintext : public Socket { public: unsigned int apiVersion() { return 3000; } void connectServer(const std::string& server, const std::string& port, const std::st...
<commit_before>#pragma once // Instead of working with the 1 to 1 correspondence p <-> (j,r,s,k), // it is convenient to collect tuples with the same index j. This // gives a 1-to-many correspondence // // j <-> { list of IndexTuple(p,r,s,k) } // // IndexTuple is simply a named version of the 4-tuple (p,r,s,k). A // ...
<commit_before>#include "SwitchState.h" #include "TransitionState.h" #include "ViewState.h" #include "Log.h" State* SwitchState::action(){ if ( !browser() ){ return new ViewState(this); } const char* filename = browser()->get_next_file(); if ( !filename ){ Log::message(Log::Warning, "Kernel: Queue is empty\n...
<commit_before>/************************************************************************* * * $RCSfile: langbox.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: pb $ $Date: 2000-11-24 10:22:55 $ * * The Contents of this file are made available subject to the terms of * either of the following licens...
<commit_before>#include "utils/PVLog.hpp" //#include "utils/conversions.h" #include <cmath> #include <cstring> namespace PV { template <class T> Buffer<T>::Buffer(int width, int height, int features) { resize(width, height, features); } template <class T> Buffer<T>::Buffer() { resize(1, 1, 1); } template <cl...
<commit_before><commit_msg>fixed header info<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: rotmodit.cxx,v $ * * $Revision: 1.5 $ * * last change: $Author: hr $ $Date: 2006-06-19 16:14:45 $ * * The Contents of this file are made ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: svdoimp.cxx,v $ * * $Revision: 1.7 $ * * last change: $Author: hr $ $Date: 2007-06-27 19:06:36 $ * * The Contents of this file are made a...
<commit_before><commit_msg>Revert "optimise SdrObjList::SetObjectOrdNum"<commit_after><|endoftext|>
<commit_before><commit_msg>Remove repeated check<commit_after><|endoftext|>
<commit_before><commit_msg>coverity#1266473 Dereference null return value<commit_after><|endoftext|>
<commit_before><commit_msg>sw: Prefix _SaveTable member variables.<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: dbinsdlg.hxx,v $ * * $Revision: 1.9 $ * * last change: $Author: rt $ $Date: 2005-09-09 09:09:01 $ * * The Contents of this file are made ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: inputwin.hxx,v $ * * $Revision: 1.7 $ * * last change: $Author: vg $ $Date: 2007-10-22 15:19:26 $ * * The Contents of this file are made ...
<commit_before><commit_msg>fdo#50386 Page count field makes scrolling impossible<commit_after><|endoftext|>
<commit_before>#include "tasks-utils.h" WARNINGS_DISABLE #include <QDir> #include <QRegExp> #include <QString> #include <QStringList> WARNINGS_ENABLE #include <TSettings.h> #include "tasks-defs.h" QString makeTarsnapCommand(QString cmd) { TSettings settings; QString tarsnapDir = settings.value("tarsnap/pa...
<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. // For 64-bit file access (off_t = off64_t, lseek64, etc). #define _FILE_OFFSET_BITS 64 #include "net/base/file_stream.h" #include <s...
<commit_before>#include "googletest/googletest/include/gtest/gtest.h" #include "json/json_spirit_reader_template.h" #include "json/json_spirit_writer_template.h" #include "json/json_spirit_utils.h" #include "base58.h" #include "util.h" using namespace json_spirit; extern Array read_json(const std::string& filename);...
<commit_before>// Copyright (c) 2021 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <consensus/validation.h> #include <miner.h> #include <test/fuzz/FuzzedDataProvider.h> #include <test/fuzz/...
<commit_before>#ifndef CMDSTAN_ARGUMENTS_ARG_OUTPUT_PRECISION_HPP #define CMDSTAN_ARGUMENTS_ARG_OUTPUT_PRECISION_HPP #include <cmdstan/arguments/singleton_argument.hpp> namespace cmdstan { class arg_output_precision : public int_argument { public: arg_output_precision() : int_argument() { _name = "precision";...
<commit_before>// Copyright (c) 2011-2013 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #define BOOST_TEST_MODULE Bitcoin Test Suite #include "test_bitcoin.h" #include "main.h" #include "random.h"...
<commit_before>// Copyright (c) 2011-2013 The Bitcoin Core developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #define BOOST_TEST_MODULE Bitcoin Test Suite #include "main.h" #include "random.h" #include "txdb.h" #inc...
<commit_before>// Copyright (c) 2017 ASMlover. 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 o...
<commit_before>// Copyright (c) Paul Hodge. See LICENSE file for license terms. #include <circa.h> namespace circa { namespace names_tests { void test_find_named() { Branch branch; Term* a = create_int(branch, 1, "a"); test_assert(find_named(branch, "a") == a); test_assert(find_named(branch, "b") ==...
<commit_before>/* Copyright © 2015 Alexey Kudrin. All rights reserved. Licensed under the Apache License, Version 2.0 */ #include <QString> #include <QTextCodec> #include <QTextStream> #include <time.h> #include "src/getFiles.h" #include "src/crc16.h" #include "src/calcMd5.h" #include "consoleMode.h" na...
<commit_before>#ifndef CONTAINERS_BUFFER_GROUP_HPP_ #define CONTAINERS_BUFFER_GROUP_HPP_ #include <stdlib.h> #include <vector> #include "utils.hpp" class const_buffer_group_t { public: struct buffer_t { ssize_t size; const void *data; }; const_buffer_group_t() { } void add_buffer(si...
<commit_before>/* * (C) 2017 Jack Lloyd * * Botan is released under the Simplified BSD License (see license.txt) */ #include "test_runner.h" #include "tests.h" #include <botan/version.h> #include <botan/rotate.h> #include <botan/loadstor.h> namespace Botan_Tests { Test_Runner::Test_Runner(std::ostream& out) : m_out...
<commit_before> /* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkBitmapProcShader.h" #include "SkColorPriv.h" #include "SkFlattenableBuffers.h" #include "SkPixelRef.h" bool SkBitmapProcShader::CanDo(const SkBitma...
<commit_before> /* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkBitmapProcShader.h" #include "SkColorPriv.h" #include "SkPixelRef.h" bool SkBitmapProcShader::CanDo(const SkBitmap& bm, TileMode tx, TileMode ty) {...
<commit_before>// Copyright (c) 2017 offa // // 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, pu...
<commit_before>/*ckwg +5 * Copyright 2012-2013 by Kitware, Inc. All Rights Reserved. Please refer to * KITWARE_LICENSE.TXT for licensing information, or contact General Counsel, * Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065. */ #include "helpers/pipeline_builder.h" #include "helpers/tool_main.h" #inc...
<commit_before>/*ckwg +5 * Copyright 2011 by Kitware, Inc. All Rights Reserved. Please refer to * KITWARE_LICENSE.TXT for licensing information, or contact General Counsel, * Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065. */ #include <vistk/pipeline_util/load_pipe.h> #include <vistk/pipeline/modules.h...
<commit_before>#include "compiler/build_tables/build_parse_table.h" #include <algorithm> #include <map> #include <set> #include <string> #include <unordered_map> #include <utility> #include "compiler/parse_table.h" #include "compiler/build_tables/parse_conflict_manager.h" #include "compiler/build_tables/remove_duplicat...
<commit_before>/* * SessionClang.cpp * * Copyright (C) 2009-12 by RStudio, Inc. * * Unless you have received this program directly from RStudio pursuant * to the terms of a commercial license agreement with RStudio, then * this program is licensed to you under the terms of version 3 of the * GNU Affero General ...
<commit_before> #include "contactsmodel.h" #include <kabc/addressee.h> #include <kabc/contactgroup.h> #include <kdebug.h> using namespace Akonadi; class ContactsModelPrivate { public: ContactsModelPrivate(ContactsModel *model) : q_ptr(model) { } Q_DECLARE_PUBLIC(ContactsModel); ContactsModel *q_ptr;...
<commit_before>/** * \file traceroute_results.cc * \author Andrea Barberio <insomniac@slackware.it> * \copyright 2-clause BSD * \date October 2015 * \brief Traceroute results class for dublin-traceroute * * This file contains the Traceroute results class for dublin-traceroute. * * This class is a containe...
<commit_before><commit_msg>remove testing FIXME<commit_after><|endoftext|>
<commit_before>#include <QString> #include <QtTest> #include <QCoreApplication> #include <QMap> #include <algorithm> #include <utility> #include <map> #include <unordered_map> #include "qfasthash_p.h" #include <stdint.h> #ifdef USE_BOOST #include <boost/unordered_map.hpp> #endif #ifdef TEST_KEY_STRING namespace std{ ...
<commit_before>#include "FactorizationElf.h" #include "FactorizationScheduler.h" #include "main/ProblemStatement.h" #include <memory> #include <mpi.h> #include <stdexcept> #include <vector> using namespace std; using namespace std::chrono; FactorizationScheduler::FactorizationScheduler() : Scheduler() { } Facto...
<commit_before>/* * The Apache Software License, Version 1.1 * * Copyright (c) 1999-2000 The Apache Software Foundation. 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. Redi...
<commit_before>#include "util/bitmap.h" #include "util/trans-bitmap.h" #include "util/font.h" #include "lineedit.h" #include "keys.h" #include "globals.h" #include "util/debug.h" #include <iostream> using namespace Gui; static std::ostream & debug( int level ){ Global::debug(level) << "[line edit] "; ...
<commit_before>#include "process.h" #include <sys/sysctl.h> typedef struct kinfo_proc kinfo_proc; static int GetBSDProcessList (kinfo_proc **procList, size_t *procCount) { int err; kinfo_proc * result; bool done; static const int name[] = { CTL_KERN, KERN_PROC...
<commit_before>// // This file is part of the Marble Virtual Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2014 Adam Dabrowski <adabrowski@piap.pl> <adamdbrw@gmail.com> // #...
<commit_before>#include "SciDataManager.h" #include <iostream> #include <fstream> void SciDataManager::writeToFile(std::string const & FileName) { std::ofstream File(FileName, std::ios::out | std::ios::binary); if (File.is_open()) { u32 Dims = GridDimensions ? 3 : 0; File.write((char *) & Dims, ...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2017. All rights reserved */ #ifndef _Stroika_Foundation_Streams_ExternallyOwnedMemoryInputStream_inl_ #define _Stroika_Foundation_Streams_ExternallyOwnedMemoryInputStream_inl_ 1 #include "../Debug/AssertExternallySynchronizedLock.h" #include "../Travers...
<commit_before>/* * The Apache Software License, Version 1.1 * * Copyright (c) 1999-2000 The Apache Software Foundation. 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. Redi...
<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/memory/scoped_vector.h" #include "base/bind.h" #include "base/callback.h" #include "base/memory/scoped_ptr.h" #include ...
<commit_before>// // libavg - Media Playback Engine. // Copyright (C) 2003-2008 Ulrich von Zadow // // 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 of the Li...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: metafunctions.hxx,v $ * * $Revision: 1.8 $ * * last change: $Author: rt $ $Date: 2007-07-05 08:54:06 $ * * The Contents of this file are ...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2016. All rights reserved */ #include "../../../StroikaPreComp.h" #include "Reader.h" //// SEEE http://www.zlib.net/zlib_how.html /// THIS SHOWS PRETTY SIMPLE EXAMPLE OF HOW TO DO COMPRESS/DECOMPRESS AND WE CAN USE THAT to amke new stream object...
<commit_before>AliAnalysisTaskMuonHadronCorrelations *AddAnalysisTaskMuonHadronCorrelations(const char *centMethod = "V0M") { AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager(); if (!mgr) { printf("Error in adding AnalysisTaskMuonHadronCorrelations: no Analysis Manager found!\n"); return ...
<commit_before>/** * @file pooling_layer.hpp * @author Marcus Edel * * Definition of the PoolingLayer class, which attaches various pooling * functions to the embedding layer. */ #ifndef __MLPACK_METHODS_ANN_LAYER_POOLING_LAYER_HPP #define __MLPACK_METHODS_ANN_LAYER_POOLING_LAYER_HPP #include <mlpack/core.hpp> #...
<commit_before>// Jubatus: Online machine learning framework for distributed environment // Copyright (C) 2011 Preferred Infrastructure and Nippon Telegraph and Telephone Corporation. // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // Lic...
<commit_before>#ifdef WIN32 #define _CRT_SECURE_NO_WARNINGS #endif #include <math.h> #include <stdio.h> #include <string.h> #include "fmod.hpp" #include <random> #include <ctime> #define FMOD_GAIN_USEPROCESSCALLBACK /* FMOD plugins have 2 methods of processing data. 1. via a 'read' callback...
<commit_before>The Node struct is defined as follows: struct Node { int data; Node* left; Node* right; } */ #include <limits.h> bool checkBST(Node* root) { return is_BST(root, INT_MIN, INT_MAX); } bool is_BST(Node* node, int min, int max) { if (node == NULL) return true; if (node...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkImageCheckerboard.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. ...
<commit_before>/** * Appcelerator Titanium Mobile * Copyright (c) 2011 by Appcelerator, Inc. All Rights Reserved. * Licensed under the terms of the Apache Public License * Please see the LICENSE included with this distribution for details. */ #include <v8.h> #include <string.h> #include "V8Runtime.h" #include "An...
<commit_before>/* Copyright 2017 R. Thomas * Copyright 2017 Quarkslab * * 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 re...
<commit_before>#include <algorithm> #include <limits> #include <cstdlib> #include <fstream> #include <iostream> #include <string> #include <sstream> #include <map> #include <vector> #include <queue> class Token { public: int source; double cost; Token(): source(-1), cost(std::numeric_limit...
<commit_before><commit_msg>All things done well<commit_after><|endoftext|>
<commit_before><commit_msg>Some minor cleaning up [ci skip].<commit_after><|endoftext|>
<commit_before>/** * @file device_properties.hxx * @author Cameron Shinn (ctshinn@ucdavis.edu) * @brief * @version 0.1 * @date 2020-11-09 * * @copyright Copyright (c) 2020 * */ #pragma once #include <type_traits> namespace gunrock { namespace cuda { /** * @brief Struct holding kernel parameters will be pas...
<commit_before>// Copyright (c) 2009-2017 The Regents of the University of Michigan // This file is part of the HOOMD-blue project, released under the BSD 3-Clause License. // Maintainer: joaander /*! \file NeighborListGPU.cc \brief Implementation of the NeighborListGPU class */ #include "NeighborListGPU.h" #in...
<commit_before>#include <stan/agrad/rev/functions/pow.hpp> #include <test/unit/agrad/util.hpp> #include <gtest/gtest.h> TEST(AgradRev,pow_var_var) { AVAR a(3.0); AVAR b(4.0); AVAR f = pow(a,b); EXPECT_FLOAT_EQ(81.0,f.val()); AVEC x = createAVEC(a,b); VEC g; f.grad(x,g); EXPECT_FLOAT_EQ(4.0 * pow(3.0,4...
<commit_before>#define WIN32_LEAN_AND_MEAN #include <windows.h> #include <uv.h> #include <string> #include <sstream> #include <map> #include <memory> #include <utility> #include <vector> #include "../worker_platform.h" #include "../worker_thread.h" #include "../../message.h" #include "../../log.h" #include "../../loc...
<commit_before>#ifndef STAN_MATH_PRIM_MAT_ERR_IS_LOWER_TRIANGULAR_HPP #define STAN_MATH_PRIM_MAT_ERR_IS_LOWER_TRIANGULAR_HPP #include <Eigen/Dense> #include <math.h> namespace stan { namespace math { double notNan(double x) { return std::isnan(x) ? 1.0 : x; } /** * Return <code>true</code> is matrix is lower trian...
<commit_before>/*========================================================================= Program: ORFEO Toolbox Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. This software is distr...
<commit_before>#include "aerial_autonomy/controller_connectors/qrotor_backstepping_controller_connector.h" #include "aerial_autonomy/tests/test_utils.h" #include <quad_simulator_parser/quad_simulator.h> #include <gtest/gtest.h> using namespace quad_simulator; using namespace test_utils; class QrotorBacksteppingCon...
<commit_before><commit_msg>planning: fix compile warning. (#2171)<commit_after><|endoftext|>
<commit_before>#include "TeamCommReceiver.h" #include "TeamCommSender.h" #include <Tools/Debug/DebugRequest.h> #include <Messages/Representations.pb.h> #include <google/protobuf/io/zero_copy_stream_impl.h> using namespace std; TeamCommReceiver::TeamCommReceiver() : droppedMessages(0) { DEBUG_REQUEST_REGISTER("Tea...
<commit_before>/************************************************************************* * * $RCSfile: localedata.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: er $ $Date: 2001-11-12 16:23:40 $ * * The Contents of this file are made available subject to the terms of * either of the following lic...
<commit_before>/// /// @file S2_easy.cpp /// @brief Calculate the contribution of the clustered easy leaves /// and the sparse easy leaves in the Deleglise-Rivat /// algorithm. /// /// Copyright (C) 2014 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is distributed under the BSD License. See the ...
<commit_before>/************************************************************************** The MIT License (MIT) Copyright (c) 2015 Dmitry Sovetov https://github.com/dmsovetov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "...
<commit_before>#ifndef BULL_ANGLE_HPP #define BULL_ANGLE_HPP #include <Bull/Math/Constants.hpp> namespace Bull { /*! \class Angle * * \brief Implement an universal Angle to handle both degree and radian angles * * \tparam T The type of the Angle value * */ template <typename T> ...
<commit_before>#include <string> #include <fstream> #include <sstream> #include <vector> #include <limits> #include "person.hpp" /*char russian_letters[6]; size_t russianLetterI(const char letter, const bool is_capital) { int first_letter_code = static_cast<int>(is_capital ? russian_letters[0] : russian_letters[1]); ...
<commit_before> #pragma once /** * OptimalMatching.hpp * Purpose: Find the optimal matching over MxN bipartite pairings. * * This class uses Munkres' adaptation of the paper-based Hungarian algorithm * to find the optimal matching over an MxN matrix of costs. * * @author Kevin A. Naud * @version 1.1 */ #include <algo...
<commit_before> #pragma once #include <string> #include <vector> #include <boost/lexical_cast.hpp> #include "utils.hpp" namespace cinatra { class Request { public: Request() :method_(method_t::UNKNOWN) { } Request(const std::string& url, const std::vector<char>& body, const std::string& method, con...
<commit_before> // // Copyright (c) 2005, 2006, 2007, 2008, 2009, 2010, 2011 CNRS // Authors: Florent Lamiraux // // This file is part of hpp-core // hpp-core 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 Found...
<commit_before>/** ** \file libport/contract.hh ** \brief Replacement for cassert. **/ #ifndef LIBPORT_CONTRACT_HH # define LIBPORT_CONTRACT_HH #include "libport/compiler.hh" ATTRIBUTE_NORETURN void __Terminate (const char*, int, const char*); # define die(reason) __Terminate (__FILE__, __LINE__, reason...
<commit_before>//---------------------------------------------------------------------------- /// \file scope_exit.hpp /// \author Serge Aleynikov //---------------------------------------------------------------------------- /// \brief Provides a convenient class that executes a lambda on scope exit //--------------...
<commit_before>// Wheels - various C++ utilities // // Written in 2013 by Martinho Fernandes <martinho.fernandes@gmail.com> // // To the extent possible under law, the author(s) have dedicated all copyright and related // and neighboring rights to this software to the public domain worldwide. This software is // distri...
<commit_before>/* Copyright 2018 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>// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s struct notlit { // expected-note {{not literal because}} notlit() {} }; struct notlit2 { notlit2() {} }; // valid declarations constexpr int i1 = 0; constexpr int f1() { return 0; } struct s1 { constexpr static int mi1 = 0; const static int...
<commit_before>// Copyright (c) 2015 GitHub, Inc. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include <utility> #include "atom/utility/atom_content_utility_client.h" #include "base/command_line.h" #include "base/files/file_path.h" #include "base/memory/ref_cou...
<commit_before>/* ***************************************************************** * * Copyright 2015 Samsung Electronics 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 th...
<commit_before> #include <sstream> #include "FemusDefault.hpp" #include "FemusInit.hpp" #include "MultiLevelMesh.hpp" #include "MultiLevelProblem.hpp" #include "LinearImplicitSystem.hpp" #include "NumericVector.hpp" #include "WriterEnum.hpp" #include "VTKWriter.hpp" using namespace femus; // So far, we need to be c...
<commit_before>#define WEIGHTED 1 #include <cmath> #include "ligra.h" #include "index_map.h" #include "bucket.h" constexpr uintE TOP_BIT = ((uintE)INT_E_MAX) + 1; constexpr uintE VAL_MASK = INT_E_MAX; struct Visit_F { array_imap<uintE> dists; Visit_F(array_imap<uintE>& _dists) : dists(_dists) { } inline Maybe<...
<commit_before>/** A general multiagent pathfinding application. * * @file multiAgent.cpp * @package hog2 * * This file is part of HOG2. * * HOG2 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>#include "range_rule.hpp" RangeRule::RangeRule(const bool withSpecials) : m_exclude(false), m_dist(33, 127) { char *bareRule; uint16_t length = 0; if (withSpecials) { bareRule = " -~"; length = 4; } else { bareRule = "a-zA-Z0-9"; length = 10; } generateRuleArray(bareRule, length); delet...
<commit_before>// Copyright 2013 Sean McKenna // // 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 ...
<commit_before>/* The MIT License Copyright (c) 2014 Adrian Tan <atks@umich.edu> 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 us...
<commit_before>/* * Copyright (c) 2015, Georgia Tech Research Corporation * All rights reserved. * * Author(s): Michael Koval <mkoval@cs.cmu.edu> * * Georgia Tech Graphics Lab and Humanoid Robotics Lab * * Directed by Prof. C. Karen Liu and Prof. Mike Stilman * <karenliu@cc.gatech.edu> <mstilman@cc.gatech.edu>...
<commit_before>#include "stdafx.h" #ifdef _MSC_VER bool SaveFile(const char *fileName, const uint8_t* buf, int size) { bool result = false; FILE *f = nullptr; if (fopen_s(&f, fileName, "wb")) { return false; } if (!fwrite(buf, size, 1, f)) { goto DONE; } result = !fclose(f); f = nullptr; ...
<commit_before>/********** 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. (See <http://www.gnu.org/copyleft/lesser.htm...
<commit_before>#ifndef BALLSWINDOW_HPP #define BALLSWINDOW_HPP #include "ui_BallsWindow.h" #include <QtGlobal> #include "config/ProjectConfig.hpp" #include "model/Meshes.hpp" #include "model/Uniforms.hpp" #include "shader/ShaderUniform.hpp" class QsciLexerGLSL; class QErrorMessage; class QFileDialog; class QSetting...