text
stringlengths
54
60.6k
<commit_before>#include "guis/GuiInputConfig.h" #include "Window.h" #include "Log.h" #include "components/TextComponent.h" #include "components/ImageComponent.h" #include "components/MenuComponent.h" #include "components/ButtonComponent.h" #include "Util.h" // static const int inputCount = 10; // static const char* in...
<commit_before>/* * Copyright (C) 2013 * Alessio Sclocco <a.sclocco@vu.nl> * * 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>#include "main.h" #include "neuralnet/voting/poll.h" #include "span.h" #include "ui_interface.h" #include "util.h" #include <boost/algorithm/string/join.hpp> using namespace NN; namespace { //! //! \brief Parse the weight type from a legacy poll contract. //! //! \param value A numeric value extracted...
<commit_before>#ifndef __DATA_HPP_INCLUDED #define __DATA_HPP_INCLUDED #include "Mesh.hpp" #include "Matrix.hpp" #include <map> class local_K_f { public: double val_K[576]; double val_f[24]; int ieq[24]; int nDOF; }; class Interfaces { public: int IdNeighSub; vector <int> dofs; }; class ...
<commit_before>#include <osg/Camera> #include <osg/io_utils> #include <osg/Notify> #include <osgDB/Registry> #include <osgDB/Input> #include <osgDB/Output> #include "Matrix.h" using namespace osg; using namespace osgDB; // forward declare functions to use later. bool Camera_readLocalData(Object& obj, Input& fr); bo...
<commit_before>#define BOOST_TEST_MODULE VectorArithmetics #include <boost/test/unit_test.hpp> #include "context_setup.hpp" BOOST_AUTO_TEST_CASE(assign_expression) { const size_t N = 1024; vex::vector<double> x(ctx, N); vex::vector<double> y(ctx, N); vex::vector<double> z(ctx, N); y = 42; z =...
<commit_before>/****************************************************************************** This source file is part of the tomviz project. Copyright Kitware, Inc. This source code is released under the New BSD License, (the "License"). Unless required by applicable law or agreed to in writing, software ...
<commit_before>// Copyright (c) 2014-2015 Ryan Leckey, All Rights Reserved. // Distributed under the MIT License // See accompanying file LICENSE #include <string> #include <sstream> #include "clang.hpp" #include "arrow/pass/declare.hpp" #include "arrow/log.hpp" using arrow::pass::Declare; using arrow::ptr; using ...
<commit_before> #include <cstdio> #include <fstream> #include <gtest/gtest.h> #include "lw/event.hpp" #include "lw/fs.hpp" #include "lw/memory.hpp" namespace lw { namespace tests { struct FileTests : public testing::Test { event::Loop loop; std::string file_name = "/tmp/liblw-filetests-testfile"; std::...
<commit_before>/* Gearman server and library * Copyright (C) 2008 Brian Aker, Eric Day * All rights reserved. * * Use and distribution licensed under the BSD license. See * the COPYING file in the parent directory for full text. */ #include <config.h> #include <libtest/test.hpp> using namespace libtest; #incl...
<commit_before>/* -*- mode: C++; tab-width: 4; indent-tabs-mode: t; c-basic-offset: 4 -*- */ // vim:sts=4:sw=4:ts=4:noet:sr:cino=>s,f0,{0,g0,(0,\:0,t0,+0,=s /* * Copyright (C) 2015 the FFLAS-FFPACK group * Written by Jean-Guillaume Dumas <Jean-Guillaume.Dumas@imag.fr> * * This file is Free Software and part of FFL...
<commit_before>#include <iostream> #include <gtest/gtest.h> #include "../pipeline.h" #include "../channel.h" #include "../scheduler.h" #include <thread> #include <asyncply/run.h> class ChannelTest : testing::Test { }; using cmd = cu::pipeline<int>; cmd::link generator() { return [](cmd::in&, cmd::out& yield) { f...
<commit_before>/* * CoreHandle.cpp * * Copyright (C) 2008 by Universitaet Stuttgart (VIS). * Alle Rechte vorbehalten. */ #include "stdafx.h" #include "Window.h" #include "HotKeyButtonParam.h" #include "MegaMolCore.h" #include "vislib/assert.h" #include "vislib/Log.h" #include "vislib/RawStorage.h" #...
<commit_before>/* * Licensed to Green Energy Corp (www.greenenergycorp.com) under one or more * contributor license agreements. See the NOTICE file distributed with this * work for additional information regarding copyright ownership. Green Enery * Corp licenses this file to you under the Apache License, Version 2...
<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: PresenterComponent.hxx,v $ * * ...
<commit_before>#include "exception.h" #include "utils.h" #include "glm.h" using CMT::GLM; #include "nonlinearities.h" using CMT::Nonlinearity; using CMT::LogisticFunction; #include "univariatedistributions.h" using CMT::UnivariateDistribution; using CMT::Bernoulli; #include <cmath> using std::log; using std::min; ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: md5.cxx,v $ * * $Revision: 1.7 $ * * last change: $Author: hr $ $Date: 2007-06-27 22:06:40 $ * * The Contents of this file are made avail...
<commit_before>#include "stats.h" #include "simulator.h" #include "hooks_manager.h" #include "utils.h" #include "itostr.h" #include <math.h> #include <stdio.h> #include <sstream> #include <unordered_set> #include <string> #include <cstring> #include <zlib.h> template <> UInt64 makeStatsValue<UInt64>(UInt64 t) { retur...
<commit_before>/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * ...
<commit_before>#include "tetrisboard.h" #include "square.h" #include "block.h" #include <vector> #include <queue> TetrisBoard::TetrisBoard(int nbrOfRows, int nbrOfColumns, BlockType current, BlockType next) : RawTetrisBoard(nbrOfRows, nbrOfColumns, current, next) { nbrOfUpdates_ = 0; setCurrentBlock(current); se...
<commit_before>/************************************************************************* Crazy Eddie's GUI System (http://www.cegui.org.uk) Copyright (C)2004 - 2005 Paul D Turner (paul@cegui.org.uk) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Less...
<commit_before>/************************************************************************* * * $RCSfile: DAVSession.hxx,v $ * * $Revision: 1.16 $ * * last change: $Author: vg $ $Date: 2003-10-06 18:52:36 $ * * The Contents of this file are made available subject to the terms of * either of the following li...
<commit_before> #include "serialport.h" #include <list> #include "win/disphelper.h" #include "win/stdafx.h" #include "win/enumser.h" #ifdef WIN32 #define MAX_BUFFER_SIZE 1000 // Declare type of pointer to CancelIoEx function typedef BOOL (WINAPI *CancelIoExType)(HANDLE hFile, LPOVERLAPPED lpOverlapped); std::list...
<commit_before>#include "lex.h" #include "cAstXml.h" cAstXml::cAstXml(std::string filename) : cVisitor() { output.open(filename, std::ofstream::out); if (!output.is_open()) fatal_error("Unable to open " + filename); output << "<?xml version=\"1.0\"?>\n"; time_t gm_time = time(NULL); struct tm *gmt...
<commit_before>#include <iostream> #include <ctype.h> #include <cmath> #include <algorithm> #include <boost/math/constants/constants.hpp> #include "Expressio.hpp" class Calculator { Expressio::Evaluator<double> evaluator; public: Calculator() { const double pi = boost::math::constants::pi<double>(); const do...
<commit_before>#include <vtkVersion.h> #include <vtkSmartPointer.h> #include <vtkCubeSource.h> #include <vtkPolyData.h> #include <vtkPoints.h> #include <vtkGlyph3D.h> #include <vtkCellArray.h> #include <vtkPolyDataMapper.h> #include <vtkActor.h> #include <vtkRenderWindow.h> #include <vtkRenderer.h> #include <vtkRenderW...
<commit_before>#include <Riostream.h> #include <TChain.h> #include <TFile.h> #include <TGraph.h> #include <TH1F.h> #include <TKey.h> #include <TList.h> #include <TMath.h> #include <TProfile.h> #include <TSystem.h> #include <AliAODEvent.h> #include <AliAODHandler.h> #include <AliAODInputHandler.h> #include <AliAODMCHead...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: requeststringresolver.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: kz $ $Date: 2006-12-13 15:09:46 $ * * The Contents of this f...
<commit_before>/* Dwarf Therapist Copyright (c) 2009 Trey Stout (chmod) 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, ...
<commit_before>/* * The StockMap class is a hash table of any number of Stock objects, * each with a different URI. * * author: Max Kellermann <mk@cm4all.com> */ #include "MapStock.hxx" #include "Stock.hxx" #include "Item.hxx" #include "pool.hxx" #include "util/djbhash.h" #include "util/DeleteDisposer.hxx" #incl...
<commit_before>// Copyright (c) 2015 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. #include "chain.h" #include "chainparams.h" #include "pow.h" #include "random.h" #include "util.h" #include "te...
<commit_before>#include "test.h" std::shared_ptr<tw::itask> generic_task() { auto task = tw::make_task(tw::root, []{}); return task; } TEST_CASE("sequenced") { tw::sequential seq; int value = 5; auto functor = [&value]{ value *= 2; }; seq.execute(functor, *generic_task().get()); REQUIRE(10...
<commit_before>/*****************************************************************************\ * ANALYSIS PERFORMANCE TOOLS * * libparaver-api * * Paraver Main Computing Library ...
<commit_before>#include "glm/gtc/matrix_transform.hpp" #include "Object.hh" GLnewin::Object::Object() : _mesh({-1.0f, -1.0f, 0.0f, 1.0f, -1.0f, 0.0f, 0.0f, 1.0f, 0.0f}), _rotPosScale(NULL) { _shader.setVertex(GLnewin::Shader::fileToString("vert.glsl")); _shader.setFragment(GLnewin::Shader::fileToString("frag.g...
<commit_before>/* * Software License Agreement (BSD License) * * Point Cloud Library (PCL) - www.pointclouds.org * Copyright (c) 2011, Willow Garage, Inc. * Copyright (c) 2012-, Open Perception, Inc. * * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modifi...
<commit_before>//======================================================================= // Copyright Baptiste Wicht 2013-2016. // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://www.opensource.org/licenses/MIT) //==================================================...
<commit_before>/** * Copyright (c) 2005 Till Adam <adam@kde.org> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; version 2 of the License * * This program is distributed in the hop...
<commit_before>#pragma once #include <experimental/optional> #include <functional> #include <memory> #include "base/not_null.hpp" #include "geometry/affine_map.hpp" #include "geometry/named_quantities.hpp" #include "geometry/orthogonal_map.hpp" #include "geometry/rotation.hpp" #include "ksp_plugin/celestial.hpp" #in...
<commit_before>#ifndef RADIUMENGINE_VIEWER_HPP #define RADIUMENGINE_VIEWER_HPP #include <GuiBase/RaGuiBase.hpp> #include <atomic> #include <memory> #include <Engine/RadiumEngine.hpp> #include <QOpenGLWidget> #include <QThread> #include <Core/Math/LinearAlgebra.hpp> #include <GuiBase/Viewer/Gizmo/GizmoM...
<commit_before>#include <HealthEcho/HealthEcho.h> #include <iostream> #include <nsh/nsh.h> #include <nsh/nsh_oam_echo.h> #include <Packet.h> #include <Interfaces/NetInterface.h> void HealthEcho::Receive(nshdev::PacketRef& packetRef, nshdev::NetInterface& receiveInterface) { const nsh_hdr* nsh = reinterpret_cast<co...
<commit_before>#include <iostream> #include <SFML/Graphics.hpp> #include <SFML/OpenGL.hpp> #include <DMUtils/maths.hpp> #include <DMUtils/sfml.hpp> #include <Lightsystem/SpotLight.hpp> namespace DMGDVT { namespace LS { SpotLight::SpotLight(bool iso) : SpotLight(sf::Vector2f(0,0),0,sf::Color(0,0,0,0)) { } ...
<commit_before><commit_msg>FEM: sort equation commands<commit_after><|endoftext|>
<commit_before>/* The MIT License (MIT) Copyright (c) 2013 Rajendra Kumar Uppal 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...
<commit_before>//===- IndexBody.cpp - Indexing statements --------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser Genera...
<commit_before>// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE // // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser Genera...
<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 "webkit/plugins/ppapi/ppb_pdf_impl.h" #include "app/resource_bundle.h" #include "base/metrics/histogram.h" #include "base/utf...
<commit_before>/*! * Copyright (c) 2015 by Contributors * \file im2rec.cc * \brief convert images into image recordio format * Image Record Format: zeropad[64bit] imid[64bit] img-binary-content * The 64bit zero pad was reserved for future purposes * * Image List Format: unique-image-index label[s] path-to-im...
<commit_before>/* Luwra * Minimal-overhead Lua wrapper for C++ * * Copyright (C) 2015, Ole Krüger <ole@vprsm.de> */ #ifndef LUWRA_USERTYPES_H_ #define LUWRA_USERTYPES_H_ #include "common.hpp" #include "types.hpp" #include "stack.hpp" #include "functions.hpp" #include <map> LUWRA_NS_BEGIN namespace internal { ...
<commit_before>/********************************************************************** * * GEOS - Geometry Engine Open Source * http://geos.osgeo.org * * Copyright (C) 2018 Paul Ramsey <pramsey@cleverlephant.ca> * * This is free software; you can redistribute and/or modify it under * the terms of the GNU Lesser...
<commit_before><commit_msg>latest<commit_after><|endoftext|>
<commit_before>#include "rampancy/Cortex.h" #include "llvm/LLVMContext.h" #include "llvm/Module.h" #include "llvm/PassManager.h" #include "llvm/CallGraphSCCPass.h" #include "llvm/Bitcode/ReaderWriter.h" #include "llvm/Assembly/PrintModulePass.h" #include "llvm/Analysis/DebugInfo.h" #include "llvm/Analysis/Verifier.h" #...
<commit_before>#include "Font.h" #include <fstream> #include <sstream> using namespace std; Font::Font() { m_pBitmap = nullptr; } Font::~Font() { if (m_pBitmap) { delete m_pBitmap; m_pBitmap = nullptr; } } bool Font::LoadFont(string fntFile, SDL_Renderer *renderer) { string line; string read, key, value;...
<commit_before>#include "MeshManager.h" MeshManager::MeshManager() : m_pGraphicsManager(nullptr), m_pTextureManager(nullptr), m_pMaterialManager(nullptr), m_pMemory(nullptr), m_pUniformBuffer(nullptr), m_pDescriptorSet(nullptr), m_InuseDynamicOffsetCount(0) { } MeshManager::~MeshManager() { } ...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2012 - 2014 Jolla Ltd. ** Contact: http://jolla.com/ ** ** This file is part of Qt Creator. ** ** GNU Lesser General Public License Usage ** Alternatively, this file may be used under the terms of the GNU Le...
<commit_before>// up_and_down.cc,v 1.4 2003/04/09 15:49:55 wolf Exp // (c) Wolfgang Bangerth // // Try something remarkably simple: take some arbitrary (discrete) // function and transfer it to a coarser grid. transfer it back to the // fine grid. store it and call it X. transfer down to the coarse grid // and back up ...
<commit_before>/** * @file * * @brief Write key sets using yaml-cpp * * @copyright BSD License (see LICENSE.md or https://www.libelektra.org) */ #include "write.hpp" #include "yaml.h" #include <kdbease.h> #include <kdblogger.h> #include <kdbplugin.h> #include <fstream> using namespace std; using namespace kdb...
<commit_before>#include <cstdio> #include <cstdlib> #include <cstring> #include "Graph.h" #include "Postgres.h" using namespace std; /** * A simple in-memory stored Graph, with the word indexer and the edge * matrix. */ class InMemoryGraph : public Graph { private: char** index2gloss; edge** edges; uint32_...
<commit_before>#include "Http.hpp" #include "Logger.hpp" #include "version.hpp" #include <boost/asio/system_timer.hpp> #include <boost/spirit/include/qi.hpp> #include <date/date.h> Http::Http(std::string token) : m_SslContext(asio::ssl::context::sslv23), m_Token(token), m_NetworkThreadRunning(true), m_NetworkThr...
<commit_before>/* vim: set ai et ts=4 sw=4: */ #include <HttpServer.h> #include <PersistentStorage.h> #include <PgsqlServer.h> #include <TcpServer.h> #include <atomic> #include <iostream> #include <map> #include <signal.h> #include <sstream> #include <string> #include <unistd.h> #include <utility> PersistentStorage s...
<commit_before>#include <iostream> #include "Util.h" #include "System.h" using namespace std; int main(int argc, char** argv) { System::get(new System()); if(System::ptr() && System::get().hasError()) { std::cout << System::get().getError() << std::endl; return 1; } return System::get(...
<commit_before>#include "PeLdr.h" #include "Debug.h" static INT ShowUsage() { printf("-- PE Loader Sample --\n\n"); printf("PeLdr [PE-File]\n"); printf("\n"); return 0; } int wmain(int argc, wchar_t *argv[]) { PE_LDR_PARAM peLdr; if(argc < 2) return ShowUsage(); PeLdrInit(&peLdr); PeLdrSetExecutablePath(...
<commit_before>// Copyright 2022 The SiliFuzz Authors. // // 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 appl...
<commit_before>/// /// @file EratMedium.cpp /// @brief Segmented sieve of Eratosthenes optimized for medium /// sieving primes. /// /// Copyright (C) 2017 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level directory. /// #in...
<commit_before>#ifndef NGRAM_HH #define NGRAM_HH #include <algorithm> #include <vector> #include <cassert> #include "Vocabulary.hh" // Binary search template <class Vector, class Value> inline int find(Vector &nodes, const Value &value, int first, int end) { int middle; int half; int len = end - first; wh...
<commit_before>// UCN Spin class // Author: Matthew Raso-Barnett 19/08/2010 #include <iostream> #include <cassert> #include <stdexcept> #include "Constants.h" #include "Units.h" #include "Spin.h" #include "TRandom.h" ///////////////////////////////////////////////////////////////////////////// // ...
<commit_before>#include "bitcoinamountfield.h" #include "qvaluecombobox.h" #include "bitcoinunits.h" #include "guiconstants.h" #include <QLabel> #include <QLineEdit> #include <QRegExpValidator> #include <QHBoxLayout> #include <QKeyEvent> #include <QDoubleSpinBox> #include <QComboBox> #include <QApplication> #include ...
<commit_before>// Copyright 2008 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law ...
<commit_before>#include "Tree.hpp" #include <stdexcept> #include <iostream> #include <omp.h> #include "pll_util.hpp" #include "epa_pll_util.hpp" #include "file_io.hpp" #include "Sequence.hpp" #include "optimize.hpp" #include "set_manipulators.hpp" #include "logging.hpp" using namespace std; Tree::Tree(const string ...
<commit_before>/************************************ * file enc : ASCII * author : wuyanyi09@gmail.com ************************************/ #ifndef CPPJIEBA_TRIE_H #define CPPJIEBA_TRIE_H #include <iostream> #include <fstream> #include <map> #include <cstring> #include <stdint.h> #include <cmath> #include <limit...
<commit_before>#ifndef CPPJIEBA_TRIE_HPP #define CPPJIEBA_TRIE_HPP #include "Limonp/StdExtension.hpp" #include <vector> #include <queue> namespace CppJieba { using namespace std; struct DictUnit { Unicode word; double weight; string tag; }; // for debugging inline os...
<commit_before>#include <vector> #include <string> #include "JsonBox.h" #include "area.hpp" #include "entity.hpp" #include "inventory.hpp" #include "creature.hpp" #include "dialogue.hpp" #include "entity_manager.hpp" Area::Area(std::string id, Dialogue dialogue, Inventory items, std::vector<Creature*> creatures) : ...
<commit_before>#include "RTIMULib.h" #include <fstream> #include <iostream> std::ostream &operator<<(std::ostream &stream, const RTVector3 &vector) { stream<<vector.x()<<" "<<vector.y()<<" "<<vector.z(); return stream; } std::ostream &operator<<(std::ostream &stream, const RTQuaternion &q) { stream<<q.sca...
<commit_before> #include <girepository.h> #include <glib.h> #include "boxed.h" #include "debug.h" #include "function.h" #include "gi.h" #include "gobject.h" #include "type.h" #include "util.h" #include "value.h" using v8::Array; using v8::External; using v8::Function; using v8::FunctionTemplate; using v8::Isolate; us...
<commit_before>// basic file operations #include <iostream> #include <fstream> #include <dai/alldai.h> // Include main libDAI header file #include <CImg.h> // This example needs CImg to be installed using namespace dai; using namespace std; Factor createFactorRecommendation( const Var &n1, const Var &n2, Rea...
<commit_before>#include <Accelerometer_GY_521_mock.h> int Accelerometer_GY_521_mock::_init_accelerometer_sensor(){ size_t len = 0; char *update_string = NULL; logger.log(LOG_DEBUG, "Opening the file for Accelerometer values"); //Opening the file ( save_file = fopen(SAVE_ACCELEROMETER_FILENAME, "r...
<commit_before>/* * Copyright (c) 2005, 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>#include <ir/index_manager/index/IndexReader.h> #include <ir/index_manager/index/TermReader.h> #include <ir/index_manager/index/Indexer.h> #include <ir/index_manager/index/MultiIndexBarrelReader.h> #include <util/ThreadModel.h> using namespace izenelib::ir::indexmanager; IndexReader::IndexRea...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: sequenceashashmap.hxx,v $ * * $Revision: 1.8 $ * * last change: $Author: ihi $ $Date: 2007-11-19 16:32:28 $ * * The Contents of this file...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkPlot.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This so...
<commit_before>// // Created by ARJ on 11/22/15. // #include "ufrp4.h" #include <iostream> #include <memory> using namespace ufrp; using namespace std; struct A { expr_ptr_for<VarExpr<int>>::type e; A() : e(makeexpr<VarExpr<int>>(6)) {} }; int main() { ConstExpr<int, 112> c; VarExpr<int> v2(2); VarExpr<int>...
<commit_before>/* * TODO: Implemenet O(|V|^2) version of inserts for Floyd Warshall. */ #include <string.h> //< memset, memcpy unsigned int transitive_closure(bool *adjacency_matrix, const unsigned int n, bool *current) { const unsigned int SIZE = n*n; //< Size of matrix //bool *current = new bool[SIZE]; //< Tem...
<commit_before>// * BeginRiceCopyright ***************************************************** // // Copyright ((c)) 2002-2014, Rice University // 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>// // Author: NagaChaitanya Vellanki // #include <GLFW/glfw3.h> #include <iostream> #include <string> static float LINE_LENGTH = 6.0f; static void key_callback(GLFWwindow* window, int key, int scancode, int action, int mods) { if (key == GLFW_KEY_ESCAPE && action == GLFW_PRESS) { glfwSetWindowSho...
<commit_before><commit_msg>unused include<commit_after><|endoftext|>
<commit_before>/**************************************************************************** * Copyright (C) 2012-2016 by Savoir-faire Linux * * Author : Emmanuel Lepage Vallee <emmanuel.lepage@savoirfairelinux.com> * * ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: BIndexes.cxx,v $ * * $Revision: 1.21 $ * * last change: $Author: hr $ $Date: 2006-06-20 01:09:21 $ * * The Contents of this file are made...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: KConnection.cxx,v $ * * $Revision: 1.7 $ * * last change: $Author: obo $ $Date: 2006-09-17 02:51:42 $ * * The Contents of this file are m...
<commit_before>#pragma once #include "syslog.h" #include <string> #include "blackhole/error.hpp" #include "blackhole/repository/factory/traits.hpp" namespace blackhole { namespace sink { enum class priority_t : unsigned { emerg = LOG_EMERG, alert = LOG_ALERT, crit = LOG_CRIT, err = LOG_...
<commit_before>/* * Copyright 2010-2012 Anders Wallin (anders.e.e.wallin "at" gmail.com) * * This file is part of OpenVoronoi. * * OpenVoronoi 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>/* * Implementation of a ACME client. * * author: Max Kellermann <mk@cm4all.com> */ #ifndef BENG_PROXY_GLUE_HTTP_CLIENT_HXX #define BENG_PROXY_GLUE_HTTP_CLIENT_HXX #include "http_headers.hxx" #include "net/AddressInfo.hxx" #include "strmap.hxx" #include <http/method.h> #include <http/status.h> #i...
<commit_before>/****************************************************************************** ** ** Copyright (C) 2009-2011 Kyle Lutz <kyle.r.lutz@gmail.com> ** All rights reserved. ** ** This file is a part of the chemkit project. For more information ** see <http://www.chemkit.org>. ** ** Redistribution and use in s...
<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 require...
<commit_before>/* * Launch WAS child processes. * * author: Max Kellermann <mk@cm4all.com> */ #include "was_launch.hxx" #include "system/fd_util.h" #include "system/fd-util.h" #include "system/sigutil.h" #include "spawn/Spawn.hxx" #include "spawn/Prepared.hxx" #include "spawn/ChildOptions.hxx" #include "gerrno.h" ...
<commit_before>/* * Web Application Socket client. * * author: Max Kellermann <mk@cm4all.com> */ #include "was_server.hxx" #include "was_quark.h" #include "was_control.hxx" #include "was_output.hxx" #include "was_input.hxx" #include "http_response.hxx" #include "async.hxx" #include "direct.hxx" #include "istream/i...
<commit_before>/* _______ __ __ __ ______ __ __ _______ __ __ * / _____/\ / /\ / /\ / /\ / ____/\ / /\ / /\ / ___ /\ / |\/ /\ * / /\____\// / // / // / // /\___\// /_// / // /\_/ / // , |/ / / * / / /__ / / // / // / // / / / ___ / // ___ / // /| ' / / * / /_// /\ / /_// / ...
<commit_before>#include "ExecStats.h" #include <iostream> #include <iomanip> #include <cassert> namespace dev { namespace eth { namespace jit { void ExecStats::stateChanged(ExecState _state) { assert(m_state != ExecState::Finished); auto now = clock::now(); if (_state != ExecState::Started) { assert(time[(int)...
<commit_before> #include <cmath> #include <QColor> #include <QVector2D> #include <QVector4D> #include <QOpenGLShaderProgram> #include <QOpenGLShader> #include "OpenGLFunctions.h" #include "MathMacros.h" #include "Plane3.h" #include "AdaptiveGrid.h" const char * AdaptiveGrid::s_vsSource = R"( #vers...
<commit_before>#include "DRAMAnalyzer.h" #include "DRAMAnalyzerSettings.h" #include <AnalyzerChannelData.h> #include <iostream> DRAMAnalyzer::DRAMAnalyzer() : Analyzer(), mSettings( new DRAMAnalyzerSettings() ), mSimulationInitilized( false ) { SetAnalyzerSettings( mSettings.get() ); } DRAMAnalyzer:...
<commit_before>//===--- Pseudorandom.cpp - Pseudorandom Utility Functions ---===// // // This file is part of the Election Method Mathematics // Application (EMMA) project. // // Copyright (c) 2015 - 2016 Frank D. Martinez and the EMMA project authors // Licensed under the GNU Affero General Public License, version 3.0...