text
stringlengths
54
60.6k
<commit_before>/* * Copyright (C) 2019 Red Hat, Inc. * * Licensed under the GNU Lesser General Public License Version 2.1 * * 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 ...
<commit_before><commit_msg>Removing wrong test.<commit_after><|endoftext|>
<commit_before><commit_msg>Added member variables selection<commit_after><|endoftext|>
<commit_before>#include <iostream> #include <vector> #include <set> #include <map> using namespace std; class RangeModule { typedef set<pair<int,int>> t_mpi; t_mpi ranges_; public: RangeModule() { } void addRange(int left, int right) { if (ranges_.empty()) { ranges...
<commit_before>// Copyright 2013 The Flutter 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 "impeller/entity/contents/filters/blend_filter_contents.h" #include <array> #include <memory> #include <optional> #include "impel...
<commit_before>//===- CallGraph.cpp - Build a Module's call graph --------------------------=// // // This file implements call graph construction (from a module), and will // eventually implement call graph serialization and deserialization for // annotation support. // // This call graph represents a dynamic method i...
<commit_before>/** * Copyright (c) 2015 committers of YAKINDU and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * ...
<commit_before>/////////////////////////////////////////////////////////////////////////////// // FILE: Standa.cpp // PROJECT: Micro-Manager // SUBSYSTEM: DeviceAdapters //----------------------------------------------------------------------------- // DESCRIPTION: Standa device adapters: 8SMC1-USB...
<commit_before>/* * IncrementalKMeans.cpp * * Created on: May 13, 2015 * Author: andresf */ #include <IncrementalKMeans.hpp> #include <opencv2/core/core.hpp> namespace vlr { static const int MAX_OUTLIERS = 10; IncrementalKMeans::IncrementalKMeans(vlr::Mat data, const cvflann::IndexParams& params) : m_d...
<commit_before>/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2012 Scientific Computing and Imaging Institute, University of Utah. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (...
<commit_before>/************************************************************************* > File Name: PlayerLoader.cpp > Project Name: Hearthstone++ > Author: Chan-Ho Chris Ohk > Purpose: Player loader that loads data from <playerName>.json. > Created Time: 2017/10/19 > Copyright (c) 2017, Chan-Ho Chris Ohk **********...
<commit_before>// // TapeUEF.cpp // Clock Signal // // Created by Thomas Harte on 18/01/2016. // Copyright 2016 Thomas Harte. All rights reserved. // #include "TapeUEF.hpp" #include <cstring> #include <cstdio> #include <cstdlib> #include <cmath> #include "../../../Outputs/Log.hpp" // MARK: - ZLib extensions sta...
<commit_before>// This file is a part of the OpenSurgSim project. // Copyright 2013, SimQuest Solutions 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.or...
<commit_before>/************************************************************************* * * $RCSfile: broadcast.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: obo $ $Date: 2005-04-13 09:59:39 $ * * The Contents of this file are made available subject to the terms of * either of the following lic...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2013. All rights reserved */ #ifndef _Stroika_Foundation_Containers_Private_PatchingDataStructures_STLContainerWrapper_inl_ #define _Stroika_Foundation_Containers_Private_PatchingDataStructures_STLContainerWrapper_inl_ 1 #include <algorithm> #inclu...
<commit_before>/*========================================================================= Program: BlueBerry Platform Language: C++ Date: $Date: 2009-10-23 02:59:36 +0200 (Fri, 23 Oct 2009) $ Version: $Revision$ Copyright (c) German Cancer Research Center, Division of Medical and Biological Informati...
<commit_before>#include "filehandler.h" /** * @brief FileHandler::FileHandler */ FileHandler::FileHandler() { this->m_pid = 0; // zero out counter ids this->m_fid = 0; this->m_did = 0; this->lastError = 0; } /** * @brief FileHandler::create_project * creates project and associated files. * @param...
<commit_before>// implementation for APPLY #include <utils/array1d.h> #include <list> #include <map> #include <adaptive/compression.h> using MathTL::Array1D; namespace WaveletTL { template <class PROBLEM> void APPLY(const PROBLEM& P, const InfiniteVector<double, typename PROBLEM::Index>& v, const do...
<commit_before>#ifndef UCI_H #define UCI_H #include <string> #include "Board.hpp" using namespace std; class UCI { private: Board currentBoard = Board("rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"); int currentColor = 1; public: bool quit = 0; bool waitForInput();...
<commit_before>/* Copyright (C) 2014-2019 Rodrigo Jose Hernandez Cordoba 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 la...
<commit_before>/* Copyright (c) 2013-2015 The Squash Authors * * 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...
<commit_before>//======================================================================= // Copyright Baptiste Wicht 2013-2014. // 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>/* * Copyright 2012 Coherent Theory LLC * * This program 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, or * (at your option) any later version. * * ...
<commit_before> #include <cstdio> #include <cstdlib> #include <algorithm> #include "GameState.h" #include "AI.h" class GameState; void solve(GameState gs) { return; } int abprune(GameState curGS, int depth, int a, int b, bool maxi) { if (depth == 0) { // || curGS.isEOG()) { //fprintf(stderr, "Entered...
<commit_before>/* * This file is open source software, licensed to you under the terms * of the Apache License, Version 2.0 (the "License"). See the NOTICE file * distributed with this work for additional information regarding copyright * ownership. You may not use this file except in compliance with the License....
<commit_before>/* SD - a slightly more friendly wrapper for sdfatlib This library aims to expose a subset of SD card functionality in the form of a higher level "wrapper" object. License: GNU General Public License V3 (Because sdfatlib is licensed with this.) (C) Copyright 2010 SparkFun Electronics ...
<commit_before>#include <gtest/gtest.h> #include "../src/awg.hpp" #include "../src/pulseTrain.hpp" TEST(AwgClass, ComPort) { awg testAwg; EXPECT_EQ(std::string("COM1"),testAwg.comPort()); testAwg.comPort(2); EXPECT_EQ(std::string("COM2"),testAwg.comPort()); testAwg.comPort("com1"); EXPECT_EQ(std::string("co...
<commit_before>/* mbed Microcontroller Library * Copyright (c) 2017 ARM Limited * * 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 * *...
<commit_before>#include "TURIPclientSPI.h" #include <SPI.h> cl_TURIPclientSPI TURIPclientSPI; cl_TURIPclientSPI::cl_TURIPclientSPI(){ // TURIPclient.addPeripheral(this); numOfSsPin = 0; } void cl_TURIPclientSPI::begin(){ #ifdef ESP8266 SPI.setFrequency(200000); SPI.setDataMode(SPI_MODE0); #else SPI.set...
<commit_before>// C++ program for implementation of Aho Corasick algorithm // for string matching #include <queue> #include <string> #include <cstring> #include <iostream> using namespace std; // Max number of states in the matching machine. // Should be equal to the sum of the length of all keywords. const int MAXS ...
<commit_before>#include "vtkGeoJSONFeature.h" vtkStandardNewMacro(vtkGeoJSONFeature); //---------------------------------------------------------------------------- vtkGeoJSONFeature::vtkGeoJSONFeature() { this->outputData = NULL; } //---------------------------------------------------------------------------- vtk...
<commit_before><commit_msg>Fix to devicepresenter.<commit_after><|endoftext|>
<commit_before><commit_msg>TODO-370: improved comments<commit_after><|endoftext|>
<commit_before><commit_msg>Arnaud: + moved some debug code under the "if (0) //DEBUG" idiom + uses the type "bool"<commit_after><|endoftext|>
<commit_before>/* * Medical Image Registration ToolKit (MIRTK) * * Copyright 2008-2015 Imperial College London * Copyright 2008-2013 Daniel Rueckert, Julia Schnabel * Copyright 2013-2015 Andreas Schuh * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compl...
<commit_before>VectorXf v; v.setLinSpaced(5,0.5f,1.5f).transpose(); cout << v << endl; <commit_msg>Remove confusing transpose() in setLinSpaced() docs.<commit_after>VectorXf v; v.setLinSpaced(5,0.5f,1.5f); cout << v << endl; <|endoftext|>
<commit_before>#include "TextManager.h" #define STB_TRUETYPE_IMPLEMENTATION #include "stb_truetype.h" typedef unsigned char BYTE; using namespace iceberg; TextManager::TextManager() { fontLoaded_ = false; currentFont_ = ""; const std::string vertexShader = "#version 330 core\n" "layout ...
<commit_before>// // Copyright (C) 2016 University of Amsterdam // // 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 version. /...
<commit_before>#include "pivision_grayscaleimage.h" #include "jobdispatcher.h" #include "pivision_events.h" #include "pivision_services.h" #include "pivision_grayscaleimagejob.h" #include "pivision_threadmodel.h" PiVisionGrayscaleImage::PiVisionGrayscaleImage() : numJobsOngoing(0u), NUM_JOBS_LIMIT(2u) { JobDispatche...
<commit_before>/* * Contact groups model item, represents a group in the contactlist tree * This file is based on TelepathyQtYell Models * * Copyright (C) 2010 Collabora Ltd. <info@collabora.com> * Copyright (C) 2011 Martin Klapetek <martin dot klapetek at gmail dot com> * * This library is free software; you ca...
<commit_before>/*The MIT License (MIT) Copyright (c) [2015] [Sawyer Hopkins] 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, c...
<commit_before>/*========================================================================= Program: Medical Imaging & Interaction Toolkit Module: $RCSfile$ Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All right...
<commit_before> // Copyright 2010-2012 University of Washington. All Rights Reserved. // LICENSE_PLACEHOLDER // This software was created with Government support under DE // AC05-76RL01830 awarded by the United States Department of // Energy. The Government has certain rights in the software. #ifndef __RDMAAGGREGATOR...
<commit_before>#include "http/URLParser.hpp" #include <cstring> using std::string; char hexToChar(char hex1, char hex2) { return (hex1 - '0') * 16 + (hex2 - '0'); } bool decodeURLEntities(const char* in, size_t length, std::string& out) { out.clear(); out.reserve(length); for (size_t i = 0; i < lengt...
<commit_before>/****************************************************************************** * ____ _ _____ * * / ___| / \ | ___| C++ * * | | / _ \ | |_ Actor ...
<commit_before>#include "routing/features_road_graph.hpp" #include "routing/nearest_edge_finder.hpp" #include "routing/route.hpp" #include "routing/vehicle_model.hpp" #include "indexer/classificator.hpp" #include "indexer/ftypes_matcher.hpp" #include "indexer/index.hpp" #include "indexer/scales.hpp" #include "geometr...
<commit_before>/****************************************************************************** * ____ _ _____ * * / ___| / \ | ___| C++ * * | | / _ \ | |_ Actor ...
<commit_before>// ------------------------------------------------------------------------ // audiofx_mixing.cpp: Effects for channel mixing and routing // Copyright (C) 1999-2002,2006,2008,2009 Kai Vehmanen // // Attributes: // eca-style-version: 3 (see Ecasound Programmer's Guide) // // This program is free softw...
<commit_before>// Copyright (c) 2013 Intel Corporation. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "xwalk/runtime/browser/xwalk_runner.h" #include <string> #include <vector> #include "base/command_line.h" #include "base/logging...
<commit_before>#include "Crown.h" #include <cstdlib> #include <GL/glu.h> using namespace Crown; class WndCtrl: public KeyboardListener { public: WndCtrl() { GetDevice()->GetInputManager()->RegisterKeyboardListener(this); } virtual void KeyReleased(const KeyboardEvent& event) { if (event.key == KC_ESCAPE) ...
<commit_before><commit_msg>ocl: fix input data for Canny perf test<commit_after><|endoftext|>
<commit_before>#include "Shipyard.h" Shipyard::Shipyard() { for (u32 i = 0; i<KEY_KEY_CODES_COUNT; ++i) isKeyDown[i] = false; isOpenDialogOpen = false; } void Shipyard::setupDevice(IrrlichtDevice * _device) { device = _device; smgr = device->getSceneManager(); collisionManager = smgr->getSceneCollisionManager(...
<commit_before>#include "MouseCtrl.h" #include <iostream> #include <time.h> MouseCtrl::MouseCtrl() { ZeroMemory(&mi, sizeof(MOUSEINPUT)); lastMouseMoveX = clock() * (1000 / CLOCKS_PER_SEC); lastMouseMoveY = lastMouseMoveX; lastMouseScroll = lastMouseMoveX; minMoveXTimeDelta = DEFAULT_MIN_MOVE_TIME;...
<commit_before>// Needed to have working asserts also when building in release mode #ifdef NDEBUG #undef NDEBUG #endif #include "helpers.h" #include <cassert> #include <iostream> #include <tuple> int main() { assert(ends_with("foobar", "bar")); assert(!ends_with("foobar", "foo")); MergeInput a("file0.root", 0)...
<commit_before>// Copyright 2010-2014 RethinkDB, all rights reserved. #ifndef BUFFER_CACHE_ALT_ALT_HPP_ #define BUFFER_CACHE_ALT_ALT_HPP_ #include <map> #include <vector> #include <utility> #include "buffer_cache/alt/page.hpp" #include "buffer_cache/types.hpp" #include "containers/two_level_array.hpp" #include "repli...
<commit_before>#include <cassert> #include "SDL.h" #include "ChooseAttributesPanel.h" #include "ChooseGenderPanel.h" #include "ChooseRacePanel.h" #include "CursorAlignment.h" #include "RichTextString.h" #include "TextAlignment.h" #include "TextSubPanel.h" #include "../Assets/ExeStrings.h" #include "../Assets/MiscAsse...
<commit_before>#include <algorithm> #include <climits> #include <iostream> #include <stack> #include <string> #include <unordered_map> #include <unordered_set> #include <utility> #include <vector> #define rep(i, n) for (size_t i = 0; i < (size_t)(n); i++) #define rep2(i, s, n) for (size_t i = (s); i < (size_t)(n); i++...
<commit_before>#include "catalogue_description.hh" #include <sstream> double parse_double(const std::string & in) { std::stringstream s{in}; double d; s >> d; return d; } double parse_sign(const std::string & in) { if ("-" == in) return -1; return +1; } const Star parse_line_into_st...
<commit_before>/************************************************************************* * * $RCSfile: tbinsert.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: mba $ $Date: 2001-06-11 08:29:22 $ * * The Contents of this file are made available subject to the terms of * either of the following lice...
<commit_before>#include "stdafx.h" #include <string> #include <map> #include <vector> #include "../Application.h" #include "../ModuleScripting.h" #include "../ModuleInput.h" #include "../ModuleWindow.h" #include "../ComponentTransform.h" #include "../GameObject.h" #include "../Component.h" #include "../ComponentScript...
<commit_before>#include "stdafx.h" #include "../Lab6-CMyList/StringList.h" #include "../Lab6-CMyList/ListIterators.h" using namespace std; struct EmptyStringList { CStringList list; }; BOOST_FIXTURE_TEST_SUITE(Stringlist, EmptyStringList) BOOST_AUTO_TEST_SUITE(when_created) BOOST_AUTO_TEST_CASE(is_empty) { ...
<commit_before>#include <iostream> #include "array.hpp" using namespace std; int main() { cout << "----------------------- 3D -----------------------\n"; nd::array<double> array3d = { {{1, 2, 3}, {1, 2, 3}, {1, 2, 3}}, {{4, 5, 6}, {4, 5, 6}, {4, 5, 6}} }; cout << "n dimension...
<commit_before>#include <iostream> #include <vector> #include <iterator> #include <algorithm> #include <array> #include <random> #include <SFML/Graphics.hpp> #include "vector2.h" #include "triangle.h" #include "delaunay.h" int main(int argc, char * argv[]) { int numberPoints = 40; if (argc>1) { numberPoints = a...
<commit_before><commit_msg>Strict compilation for airbourne board<commit_after><|endoftext|>
<commit_before>#include "buffer.hpp" #include "validate.hpp" #include "parser_rt.hpp" #include <cstdio> #ifndef TEST # error "Please specify a test." #endif using namespace Jak; int main() { #if TEST == 1 TinyBasicParser p(Buf("10 PRINT 'Hello, World!'")); int refCode = 0; #elif TEST == 2 TinyBasicParser ...
<commit_before><commit_msg>am f4515652: am cc94b55e: Hammerhead: Camera3: Set appropriate lens shading map mode<commit_after><|endoftext|>
<commit_before><commit_msg>INTEGRATION: CWS ooo19126 (1.3.32); FILE MERGED 2005/09/05 17:27:14 rt 1.3.32.1: #i54170# Change license header: remove SISSL<commit_after><|endoftext|>
<commit_before>// Created by: Peter KURNEV // Copyright (c) 2010-2012 OPEN CASCADE SAS // Copyright (c) 2007-2010 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 // // The content of this file...
<commit_before>/* * Copyright (C) 2007-2013 German Aerospace Center (DLR/SC) * * Created: 2013-02-18 Martin Siggel <Martin.Siggel@dlr.de> * * 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>/************************************************************************* * * 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: treeactions.hxx,v $ * $Revision:...
<commit_before><commit_msg>Reduce number of iterations on TimeTicks.Deltas test so that unittests run faster.<commit_after><|endoftext|>
<commit_before>/******************************************************************* Qt extended Library Copyright (C) 2007 J-P Nurmi <jpnurmi@gmail.com> released under the Terms of LGPL (see the LICENSE file) *******************************************************************/ #include "QxtStringSpinBox.h" c...
<commit_before>/* * Copyright 2016 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "Benchmark.h" #include "Resources.h" #include "SkBitmap.h" #include "SkJpegEncoder.h" #include "SkPngEncoder.h" #include "SkWebpEncoder.h" #include "Sk...
<commit_before>#include "from_json.h" #include <asdf_multiplat/utilities/utilities.h> #include <asdf_multiplat/utilities/cjson_utils.hpp> using namespace asdf; using namespace asdf::util; namespace tired_of_build_issues { std::string read_text_file(std::string const& filepath) { //if(!is_file(filepath)) ...
<commit_before>/************************************************************************* * Copyright(c) 1998-2009, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Con...
<commit_before>#include "Snapshoot.h" #include "dataset/ISymbol.h" #include "dataset/ImageSaver.h" #include "render/SpriteDraw.h" #include <stdlib.h> #include <string.h> #include <opengl/opengl.h> #include <gl/gl.h> #include <gl/glu.h> #include <easyanim.h> namespace d2d { static const int DEFAULT_WIDTH = 800; st...
<commit_before>#include <StdAfx.h> #include <UI/Controls/PaneHeader/PaneHeader.h> #include <UI/UIFunctions.h> #include <core/utility/strings.h> #include <core/utility/output.h> namespace controls { void PaneHeader::Initialize(_In_ CWnd* pParent, _In_opt_ HDC hdc, _In_ UINT nid) { if (pParent) m_hWndParent = pParen...
<commit_before>/* * The Apache Software License, Version 1.1 * * * Copyright (c) 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. Redistri...
<commit_before>#include "detect_stones.hpp" #include "overwrittenOpenCV.hpp" namespace Go_Scanner { using namespace cv; using namespace std; // Returns the size of a 45(left headed) or 135(right headed) line within a circle, // starting from any point within that circle // mainly used to get the diameters of th...
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt #include "StableHeaders.h" #include "DebugOperatorNew.h" #include "EtherLoginNotifier.h" #include "Data/RealXtendAvatar.h" #include "Data/OpenSimAvatar.h" #include "Data/OpenSimWorld.h" #include "MemoryLeakCheck.h" #includ...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkSpherePuzzle.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. ...
<commit_before>/*========================================================================= Program: Visualization Toolkit Module: vtkSplineFilter.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. ...
<commit_before>#include <stdio.h> #include "llvm/LLVMContext.h" #include "llvm/Module.h" #include "ExpertSystem/CLIPSEnvironment.h" #include "ExpertSystem/KnowledgeConstructor.h" #include "ExpertSystem/KnowledgeConstructionEngine.h" #include "rampancy/RampancyCompiler.h" extern "C" { #include "clips.h" } int main...
<commit_before>//===-- llc.cpp - Implement the LLVM Compiler -----------------------------===// // // This is the llc compiler driver. // //===----------------------------------------------------------------------===// #include "llvm/Bytecode/Reader.h" #include "llvm/Target/TargetMachineImpls.h" #include "llvm/Target/...
<commit_before>#include <iostream> #include <cmath> using std::cin; using std::cout; using std::endl; using std::string; int menu(); double PowerDigitSum(double, double); int main(int argc, char*argv[]){ if (menu() == 1){ double base, expo; cout << endl; cout << "Ingrese una base: "; cin >> base; cout ...
<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 "net/base/x509_openssl_util.h" #include "base/logging.h" #include "base/string_piece.h" #include "base/string_util.h" #includ...
<commit_before><commit_msg>refine estimate for temporary verts buffer, update comments<commit_after><|endoftext|>
<commit_before>/* Copyright 2013 SINTEF ICT, Applied Mathematics. */ #include "Common.hpp" #include "EquelleType.hpp" #include "SymbolTable.hpp" #include "ASTNodes.hpp" #include "ParseActions.hpp" #include <sstream> // ------ Parsing event handlers ------ SequenceNode* handleProgram(SequenceNode* lineblocknode)...
<commit_before>#include <Core/Resources/Resources.hpp> #include <algorithm> #include <cpplocate/cpplocate.h> namespace Ra { namespace Core { namespace Resources { std::string getRadiumResourcesDir() { auto libraryPath = cpplocate::getLibraryPath( reinterpret_cast<void*>( getRadiumResourcesDir ) ); std...
<commit_before>// // SerialPort.cpp // Clock Signal // // Created by Thomas Harte on 05/07/2016. // Copyright © 2016 Thomas Harte. All rights reserved. // #include "SerialBus.hpp" #include <cstdio> using namespace Commodore::Serial; const char *::Commodore::Serial::StringForLine(Line line) { switch(line) { c...
<commit_before>// // Copyright (c) 2019, Wolfgang Merkt // 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>// MathPresso - Mathematical Expression Parser and JIT Compiler. // Copyright (c) 2008-2010, Petr Kobalicek <kobalicek.petr@gmail.com> // // 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...
<commit_before>#ifndef EPT_PARSER_CPP #define EPT_PARSER_CPP #include <iostream> #include <fstream> #include <cstring> //Used for strstr() #include <cstdlib> //atoi() #include <sstream> //Used for int||floatToAttr() functions #include "eptParser.hpp" const int SUPPORTED_VERSION=1; ////////////////////////////////////...
<commit_before>#ifndef PRESETEDITOR_HPP #define PRESETEDITOR_HPP // stdlib #include <string> #include <functional> // Libslic3r #include "libslic3r.h" #include "ConfigBase.hpp" #include "Config.hpp" // GUI #include "misc_ui.hpp" // Wx #include <wx/treectrl.h> #include <wx/imaglist.h> #include <wx/panel.h> using na...
<commit_before>////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2011-2012, John Haddon. All rights reserved. // Copyright (c) 2012, Image Engine Design Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification...
<commit_before>/* * filter_ext.cc * * Copyright (C) 2013 Diamond Light Source * * Author: James Parkhurst * * This code is distributed under the BSD license, a copy of which is * included in the root directory of this package. */ #include <boost/python.hpp> #include <boost/python/def.hpp> #include <dials/a...
<commit_before>#include <cmath> #include "search.h" #include <iostream> using namespace std; /** * Returns left bound of interval. * Searches input string (S) for suffixes having "cmp_char" at "q_offset", * using suffix array (SA). */ int binary_search_left (char cmp_char, interval_t interval, string &S, int *SA) { ...
<commit_before>/* Class for displaying connection errors Copyright (C) 2011 Martin Klapetek <martin.klapetek@gmail.com> 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; eit...
<commit_before>// This file is part of the dune-gdt project: // http://users.dune-project.org/projects/dune-gdt // Copyright holders: Felix Schindler // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifndef DUNE_GDT_TEST_OPERATORS_WEIGHTED_L2_HH #define DUNE_GDT_TEST_OPERATORS_WEIGHTED_...
<commit_before><commit_msg>Added file lost in merge.<commit_after><|endoftext|>