text
stringlengths
54
60.6k
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: xiformula.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: vg $ $Date: 2007-02-27 12:26:44 $ * * The Contents of this file are made...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: scfobj.cxx,v $ * * $Revision: 1.12 $ * * last change: $Author: ihi $ $Date: 2006-11-14 15:48:43 $ * * The Contents of this file are made ...
<commit_before>#pragma once #include <vector> #include <hash_map> #include <string> #include <functional> #include <thread> #include <mutex> #include <ctime> #include <chrono> namespace timer { /// /// Timer id /// typedef unsigned long long timer_id; /// /// Timer /// static const timer_id invalid_timer = ...
<commit_before>#include <boost/test/unit_test.hpp> #include <cinatra/response.hpp> #include <iostream> using namespace cinatra; namespace cinatra { class Connection { public: static void basic_test() { std::stringstream ss; Response res; res.write("basic test"); ss << &res.buffer_; BOOST_CHECK(ss.str() == ...
<commit_before>////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2007-2008, Image Engine Design Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // ...
<commit_before> #include "AuthenticatedStream.hpp" #include "../Log.hpp" AuthenticatedStream::AuthenticatedStream(const std::string& socksHost, ushort socksPort, const std::string& remoteHost, us...
<commit_before><commit_msg>unnecessary check before delete<commit_after><|endoftext|>
<commit_before><commit_msg>coverity#1210170 Uninitialized scalar field<commit_after><|endoftext|>
<commit_before>/* * Copyright 2008-2009 NVIDIA Corporation * * 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 require...
<commit_before>////////////////////////////////////////////////////////////////////////// // // SneezyMUD - All rights reserved, SneezyMUD Coding Team // ////////////////////////////////////////////////////////////////////////// #include "stdsneezy.h" #include "combat.h" bool TBeing::canSpin(TBeing *victim, silentTy...
<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>// ======================================================================== // // Copyright 2015-2019 Ingo Wald // // // // Licensed under the Apache License, Version 2.0 (the "License"); ...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2019. All rights reserved */ #ifndef _Stroika_Foundation_Debug_AssertExternallySynchronizedLock_inl_ #define _Stroika_Foundation_Debug_AssertExternallySynchronizedLock_inl_ 1 /* ***************************************************************************...
<commit_before>/************************************************************************* * * $RCSfile: xlroot.cxx,v $ * * $Revision: 1.9 $ * * last change: $Author: hr $ $Date: 2003-11-05 13:36:39 $ * * The Contents of this file are made available subject to the terms of * either of the following license...
<commit_before>#include <iostream> #include <cstdlib> #include <ctime> using namespace std; int main() { int i = 0, n = 0, j = 0, k = 0, tmp = 0; char ch; srand(time(NULL)); // initalizes seed value cout<<"How many numbers would you like to have on your list?"<<endl; cin>>n; int *list = new int [n]; cout<<"Pl...
<commit_before>/************************************************************************* * * $RCSfile: csvcontrol.cxx,v $ * * $Revision: 1.7 $ * * last change: $Author: hjs $ $Date: 2004-06-28 18:00:33 $ * * The Contents of this file are made available subject to the terms of * either of the following li...
<commit_before> //@HEADER // ************************************************************************ // // HPCG: Simple Conjugate Gradient Benchmark Code // Questions? Contact Michael A. Heroux ([email protected]) // // ************************************************************************ //@HEADER ...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/chips/ocmb/explorer/procedures/hwp/memory/lib/i2c/e...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * Version: MPL 1.1 / GPLv3+ / LGPLv3+ * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (the "License"); you may not use this file except in compliance with * the License or as spec...
<commit_before>#include <sstream> #include "Tools/Exception/exception.hpp" #include "Codec_polar.hpp" using namespace aff3ct; using namespace aff3ct::module; template <typename B, typename Q> Codec_polar<B,Q> ::Codec_polar(const factory::Frozenbits_generator::parameters &fb_params, const factory::Enco...
<commit_before>#include "stxxl/bits/common/debug.h" __STXXL_BEGIN_NAMESPACE debugmon * debugmon::instance = NULL; #ifndef STXXL_DEBUGMON void debugmon::block_allocated(char * /*ptr*/, char * /*end*/, size_t /*size*/) { } void debugmon::block_deallocated(char * /*ptr*/) { } void debugmon::io_started(char * /*ptr*/) ...
<commit_before><commit_msg>scope header file paths<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: lotimpop.cxx,v $ * * $Revision: 1.10 $ * * last change: $Author: rt $ $Date: 2005-09-08 19:41:41 $ * * The Contents of this file are made...
<commit_before>#include <babylon/materials/node/blocks/dual/light_block.h> #include <babylon/babylon_stl_util.h> #include <babylon/core/json_util.h> #include <babylon/materials/material_helper.h> #include <babylon/materials/node/blocks/input/input_block.h> #include <babylon/materials/node/node_material.h> #include <ba...
<commit_before>/************************************************************************* * * $RCSfile: scuiimoptdlg.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2004-08-23 09:31:26 $ * * The Contents of this file are made available subject to the terms of * either of the following l...
<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: AccessibleCell.hxx,v $ * $Revisi...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation ([email protected]) ** ** This file is part of the Qt Mobility Components. ** ** $QT_BEGIN_LICENSE:BS...
<commit_before>/** @file * @author Edouard DUPIN * * @copyright 2016, Edouard DUPIN, all right reserved * * @license MPL v2.0 (see license file) */ #include <etk/etk.hpp> #include <test-debug/debug.hpp> //! [eproperty_sample_all] //! [eproperty_sample_declare_interface] #include <eproperty/Interface.hpp> //! ...
<commit_before>/* Copyright 2005-2007 Adobe Systems Incorporated Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt or a copy at http://stlab.adobe.com/licenses.html) */ #include "platform_display_text.hpp" #include <GG/adobe/dictionary.hpp> #include <GG/adobe/string.hpp> #include ...
<commit_before>/* * Qumulus UML editor * Author: Frank Erens * */ #include "Enumeration.h" QUML_BEGIN_NAMESPACE_UK Enumeration::Enumeration() {} Enumeration::Enumeration(QString name, Namespace* p = 0) : DataType(name, p) { } void Enumeration::addLiteral(EnumerationLiteral* l) { mOwnedLiterals.app...
<commit_before>#include <QNetworkRequest> #include <QNetworkReply> #include <QDir> #include <QFile> #include "program-updater.h" #include "functions.h" #include "json.h" ProgramUpdater::ProgramUpdater() : ProgramUpdater("https://api.github.com/repos/Bionus/imgbrd-grabber") { } ProgramUpdater::ProgramUpdater(QString...
<commit_before>#include "view/RemoteSkidmarkView.h" #include <OgreRoot.h> #include <OgreBillboardSet.h> #include <OgreBillboard.h> #include <sstream> #include <string> namespace Rally { namespace View { RemoteSkidmarkView::RemoteSkidmarkView() {} RemoteSkidmarkView::~RemoteSkidmarkView() {} void RemoteSkidmar...
<commit_before>/* * Copyright 1999-2004 The Apache Software Foundation. * * 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><commit_msg>Extra line.<commit_after><|endoftext|>
<commit_before>// ClockTool.cc // Copyright (c) 2003 - 2006 Henrik Kinnunen (fluxgen at fluxbox dot org) // and Simon Bowden (rathnor at users.sourceforge.net) // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the...
<commit_before>// // Created by a1 on 16-11-2. // #include "encode.h" static string encode_key_internal(const string& key, const string& field, uint16_t version); static string encode_meta_val_internal(const char type, uint64_t length, uint16_t version, char del); static uint64_t encodeScore(const double score); stri...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: TestPanel.cxx,v $ * * $Revision: 1.6 $ * * last change: $Author: obo $ $Date: 2006-09-16 19:15:40 $ * * The Contents of this file are mad...
<commit_before><commit_msg>Add test for re-grouping of formulas in DeleteRow().<commit_after><|endoftext|>
<commit_before>// Copyright © 2014 German Neuroinformatics Node (G-Node) // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted under the terms of the BSD License. See // LICENSE file in the root of the Project. // // Author: Christian Kellner ...
<commit_before>#include "variable_tests.h" #include <gtest/gtest.h> // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - TEST(VariableTests, constructor) { cyclopts::Variable::Bound lbound(cyclopts::Variable::NEG_INF); cyclopts::Variable::Bound ubound(cyclopts::Variable::FINITE); cyc...
<commit_before>#define _BSD_SOURCE #include <stdio.h> #include <stdlib.h> #include <string.h> #include <fcntl.h> #include <sys/types.h> #include <sys/ptrace.h> #include <unistd.h> #include "ptbox.h" pt_debugger::pt_debugger() : on_return_callback(NULL) {} bool has_null(char *buf, unsigned long size) { for (unsign...
<commit_before>/** * The MIT License (MIT) * * Copyright (c) 2017 Ruben Van Boxem * * 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 th...
<commit_before>/* * Copyright (C) 2007, 2008, 2009, 2010, Gostai S.A.S. * * This software is provided "as is" without warranty of any kind, * either expressed or implied, including but not limited to the * implied warranties of fitness for a particular purpose. * * See the LICENSE file for more information. */ ...
<commit_before>#ifndef SDK_REMOTE_TESTS_TESTS_HH # define SDK_REMOTE_TESTS_TESTS_HH # include <libport/debug.hh> # include <libport/semaphore.hh> # include <libport/program-name.hh> # include <libport/unistd.h> # include <urbi/uclient.hh> # include <urbi/usyncclient.hh> /* Liburbi test suite = Architecture = Each f...
<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 "chrome/browser/history/query_parser.h" #include <algorithm> #include "base/i18n/break_iterator.h" #include "base/logging.h"...
<commit_before>#include <czmq.h> #include <g2log.hpp> #include <algorithm> #include "FileRecv.h" FileRecv::FileRecv(): mQueueLength(10), mTimeoutMs(30000), //5 minutes mOffset(0), mChunk(nullptr) { mCtx = zctx_new(); CHECK(mCtx); mDealer = zsocket_new(mCtx, ZMQ_DEALER); CHECK(mDealer); mCredit = mQueu...
<commit_before><commit_msg>Revert changes to ie_importer.cc from r25498. The builder doesn't like something; investigating.<commit_after><|endoftext|>
<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 "chrome/browser/signin/token_service.h" #include "base/basictypes.h" #include "base/command_line.h" #include "base/string_uti...
<commit_before>#ifndef __ENVIRE_CORE_GRAPHVIZ__ #define __ENVIRE_CORE_GRAPHVIZ__ #include <fstream> // std::ofstream #include <envire_core/TransformTree.hpp> #include <boost/graph/graphviz.hpp> namespace envire { namespace core { /**@class Transform Writer * Frame Graph Viz property writer for boost graphs...
<commit_before>/* GG is a GUI for SDL and OpenGL. Copyright (C) 2003-2008 T. Zachary Laine 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 ...
<commit_before>/*************************************************************************** * Copyright (c) 2007 Werner Mayer <wmayer[at]users.sourceforge.net> * * * * This file is part of the FreeCAD CAx development system. ...
<commit_before>//===--- MiscTidyModule.cpp - clang-tidy ----------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===------------...
<commit_before>/************************************************************************* * * $RCSfile: sdclient.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: ka $ $Date: 2001-10-22 13:36:50 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>// Scintilla source code edit control /** @file LexForth.cxx ** Lexer for FORTH **/ // Copyright 1998-2003 by Neil Hodgson <[email protected]> // The License.txt file describes the conditions under which this software may be distributed. #include <stdlib.h> #include <string.h> #include <ctype.h> #in...
<commit_before>#include "espresso_core.h" int main(int argc, char** argv) { handle_cmd_args(argc, argv); // TODO: open filesystem data for when you need it // filepath is argv[FILESYSTEM] char storage_file[] = ".data_storage"; char *file = (char *)malloc(strlen (argv[FILESYSTEM]) + ...
<commit_before>/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2015 Scientific Computing and Imaging Institute, University of Utah. License for the specific language governing rights and limitations under Permission is hereby granted, free of charge, to any...
<commit_before>#include "NodeSSPI.h" using namespace v8; using namespace std; sspi_module_rec sspiModuleInfo = { 0, }; std::map<std::string, credHandleRec> credMap; void sspi_module_cleanup() { if (sspiModuleInfo.securityDLL != NULL) { if (sspiModuleInfo.functable != NULL) { sspiModuleInfo.functable->FreeCont...
<commit_before>#include "ObjPlane.h" /* ==================== Plane::Plane Takes in the input stream and creates a Plane object from the parsed input ==================== */ Plane::Plane(ifstream &f) { string textureName; while(!f.eof()) { string line; getline(f,line); queue<string> lineContents; explode(l...
<commit_before>// // PTSolver.cpp // PowerTools++ // // Created by Hassan on 30/01/2015. // Copyright (c) 2015 NICTA. All rights reserved. // #include "PowerTools++/PTSolver.h" #ifdef USE_BONMIN #include <coin/BonBonminSetup.hpp> #include <coin/BonCbc.hpp> #endif namespace { void gurobiNotAvailable() { ...
<commit_before>#ifndef _SDD_DD_PROTO_NODE_HH_ #define _SDD_DD_PROTO_NODE_HH_ #include <algorithm> // equal, for_each #include <functional> // hash #include <iosfwd> #include <vector> #include "sdd/dd/definition.hh" #include "sdd/dd/stack.hh" #include "sdd/util/hash.hh" namespace sdd { /*---------------------------...
<commit_before>// This file is part of Tasks. // // Tasks 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) any later version. // // Tasks is dist...
<commit_before> // Resource.cpp #include "Resource.h" int Resource::nextID_ = 0; // Database table for resources Table *Resource::resource_table = new Table("Resources"); Table *Resource::resource_type_table = new Table("Resource Types"); Resource::Resource() { ID_ = nextID_++; MLOG(LEV_DEBUG4) << "Resource ID...
<commit_before>/****************************************************************************** SDLInput.cpp Input Events Handling Copyright (c) 2013 Jeffrey Carpenter ******************************************************************************/ #include "SDLInput.h" SDLInput::SDLInput ( void ) { #ifde...
<commit_before>//************************************************************/ // // Ratio Implementation // // Implements the SPXRatio class, which validates the ratio // type string, and then grabs the required TGraphs and // performs the necessary divisions, returning a fully // configured and ready-to-draw TGrap...
<commit_before>// // Settings.cpp // RunParticles // // Created by Doug Letterman on 11/1/14. // // #include "Settings.h" #include <fnmatch.h> TrackStyleRule::TrackStyleRule() : pattern("*"), color(QColor(255,0,0)), width(1.0) { } QVariant TrackStyleRule::toVariant() const { QList<QVariant> ...
<commit_before>#ifndef STLTOOLS_H #define STLTOOLS_H #include <utility> #include <vector> #include <algorithm> namespace RAILS { static bool eigenvalue_sorter(std::pair<int, double> const &a, std::pair<int, double> const &b) { return std::abs(a.second) > std::abs(b.second); } template<class DenseMatrix> int fin...
<commit_before>#include "BinEP.h" #include "check_params.h" #include <epbin.h> #include <drag2d.h> namespace edb { std::string BinEP::Command() const { return "epbin"; } std::string BinEP::Description() const { return "pack ejoy2d's .lua and images to binary"; } std::string BinEP::Usage() const { return Command...
<commit_before>// WinClient.cc for Fluxbox - an X11 Window manager // Copyright (c) 2003 Henrik Kinnunen (fluxgen(at)users.sourceforge.net) // // 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 Softwa...
<commit_before>/* Transport PK Copyright 2010-201x held jointly by LANS/LANL, LBNL, and PNNL. Amanzi is released under the three-clause BSD License. The terms of use and "as is" disclaimer for this license are provided in the top-level COPYRIGHT file. Authors: Neil Carlson Ethan Coon ...
<commit_before>#include<KrUIManager.h> LRESULT CALLBACK WndProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam) { return ui.HandleMessage(hwnd,Message,wParam,lParam); } static KrUIManager* KrUIManager::GetpKrUIManager() { if(m_pKrUIManager==NULL) m_pKrUIManager=new KrUIManager(); return m_pK...
<commit_before>//===- Symbols.cpp --------------------------------------------------------===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------...
<commit_before>/* ------------------------------------------------------------------ This file is part of the Open Ephys GUI Copyright (C) 2013 Open Ephys ------------------------------------------------------------------ This program is free software: you can redistribute it and/or modify it...
<commit_before>#ifndef ANY_HPP # define ANY_HPP # pragma once #include <cassert> #include <cstdint> #include <stdexcept> #include <typeinfo> #include <type_traits> #include <utility> namespace generic { class any { public: template <typename T> using remove_cvr = ::std::remove_cv< typename ::std::remov...
<commit_before>/* * File: ast.cpp * Author: ghernan * * Abstract Syntax Tree classes * * Created on November 30, 2016, 7:56 PM */ #include "OS_support.h" #include "ast.h" using namespace std; //Empty children list constant const AstNodeList AstNode::ms_noChildren; // Constructor functions. // /////////...
<commit_before>#include "GameProcess.h" #include "Object.h" #include "Engine.h" #include "World.h" #include "App.h" #include "ToolsCamera.h" #include "ControlsApp.h" #include "MathLib.h" using namespace MathLib; CGameProcess::CGameProcess(void) { } CGameProcess::~CGameProcess(void) { } int CGameProcess::Init() {...
<commit_before>/* This file is part of the KDE project Copyright (C) 2004 Mark Bucciarelli <[email protected]> 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 ve...
<commit_before>/** -*- c++ -*- * progressdialog.cpp * * Copyright (c) 2004 Till Adam <[email protected]>, * David Faure <[email protected]> * * 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 So...
<commit_before>/*************************************************************************** filter_ldif.cxx - description ------------------- begin : Fri Dec 1, 2000 copyright : (C) 2000 by Oliver Strutynski email ...
<commit_before>/* This file is part of KOrganizer. Copyright © 2007 Loïc Corbasson <[email protected]> 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 ...
<commit_before>/* * Copyright (C) 2004, Mart Kelder ([email protected]) * * 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 License, or * (at your option) any later ...
<commit_before>/* * CvTypesIo.hpp * * Created on: May 20, 2013 * Author: link */ #ifndef CVTYPESIO_HPP_ #define CVTYPESIO_HPP_ #include <opencv2/core/core.hpp> void operator>>(const cv::FileNode &node, cv::Size &size); void operator>>(const cv::FileNode &node, cv::TermCriteria &termCrit); templat...
<commit_before>/* * safe_queue.hpp * * Created on: 2014-11-11 * Author: joseph */ #ifndef SAFE_QUEUE_HPP_ #define SAFE_QUEUE_HPP_ #include <queue> #include <boost/thread/condition_variable.hpp> //#include <pthread.h> //#include <semaphore.h> template <typename T > class SafeQueue { private: std::queue<...
<commit_before>#ifndef ALX_EVENT_HPP #define ALX_EVENT_HPP #include <cassert> #include "Joystick.hpp" #include "Display.hpp" #include "Timer.hpp" namespace alx { /** An allegro event. */ class Event { public: /** default constructor. */ Event() { } /** constructor from e...
<commit_before>/*========================================================================= Program: Visualization Library Module: Mat4x4.hh Language: C++ Date: $Date$ Version: $Revision$ This file is part of the Visualization Library. No part of this file or its contents may be copied, reproduc...
<commit_before>// // Copyright (C) 2013 // Alessio Sclocco <[email protected]> // // 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 3 of the License, or // (at your option) any lat...
<commit_before>/// /// @file imath.hpp /// @brief Integer math functions used in primesum. /// /// Copyright (C) 2017 Kim Walisch, <[email protected]> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level directory. /// #ifndef IMATH_HPP #define IMATH_HPP #include <isq...
<commit_before><commit_msg>LOJ 3057<commit_after><|endoftext|>
<commit_before><commit_msg>Skip 16+ and 18+ images<commit_after><|endoftext|>
<commit_before>// PThreads #include <pthread.h> // Intel intrinsics #include <immintrin.h> // STL #include <functional> #include <iostream> // xsync #include "lock.hpp" namespace xsync { /* * Provides an RAII style wrapper for transactional execution. */ template <typename LockType> class XScope { public: X...
<commit_before>#include <iostream> template <typename T> class stack { public: stack(); stack(stack const &); ~stack(); size_t count() const; auto push(T const &) -> void; T pop(); auto operator=(stack const & right)->stack &; private: T *array_; size_t array_si...
<commit_before>#include <iostream> template <typename T> class stack { public: stack(); //noexcept stack(stack const &); //strong ~stack(); //noexcept size_t count() const; //noexcept auto push(T const &) -> void; //strong void pop(); //basic const T& top() const; ...
<commit_before>// // Class for performing common math operations (e.g., dot, cross products) // #ifndef __vlMath_hh #define __vlMath_hh #include <math.h> class vlMath { public: vlMath(); float Pi() {return 3.14159265358979;}; float Dot(float x[3], float y[3]) {return x[0]*y[0] + x[1]*y[1] + x[2]*y[2];}; ...
<commit_before>#include <ncurses.h> #include <locale> #include <chrono> #include <thread> #include <string> #include <vector> #include <regex> #include <iostream> #include <stdexcept> #include <nanojson.hpp> #include <cmdline.h> using namespace std::literals::string_literals; using std::string; using std::tuple; using ...
<commit_before><commit_msg>Add alignment requirement to char buffer<commit_after><|endoftext|>
<commit_before><commit_msg>Cartesian::to_string prints the scaled cartesian<commit_after><|endoftext|>
<commit_before>/* Copyright (c) 2019, NVIDIA CORPORATION. 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, th...
<commit_before><commit_msg>Don't light up form fields we aren't filling, and don't light up the submit button.<commit_after><|endoftext|>
<commit_before>/** * Copyright 2014 Truphone */ #include "XmppDisconnectCommand.h" #include <QString> #include <QObject> #include "Connection.h" #include "XmppResourceStore.h" namespace truphone { namespace test { namespace cascades { const QString XMPPDisconnectCommand::CMD_NAME = "xmppDisconnect"; XMPPD...
<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/file_path.h" #include "chrome/common/chrome_switches.h" #include "chrome/test/ui/npapi_test_helper.h" #include "chrome/t...
<commit_before>// This file is part of the hdf5_handler implementing for the CF-compliant // Copyright (c) 2011-2016 The HDF Group, Inc. and OPeNDAP, Inc. // // This 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 // Softwar...