text
stringlengths
54
60.6k
<commit_before>#ifndef TOML11_REGION_H #define TOML11_REGION_H #include "exception.hpp" #include <memory> #include <vector> #include <algorithm> #include <initializer_list> #include <iterator> #include <iostream> namespace toml { namespace detail { // helper function to avoid std::string(0, 'c') template<typename Ite...
<commit_before><commit_msg>Proper detection of MMX and SSE support<commit_after><|endoftext|>
<commit_before>#include "place_page_info.hpp" #include "indexer/feature_utils.hpp" #include "indexer/osm_editor.hpp" #include "platform/measurement_utils.hpp" namespace place_page { char const * const Info::kSubtitleSeparator = " • "; char const * const Info::kStarSymbol = "★"; char const * const Info::kMountainSymb...
<commit_before>#include <array> #include <list> #include <deque> #include <utility> #include <algorithm> #include <functional> //#include <iostream> //debug template <typename ValType, size_t NQueues, typename PriorityType> class NPriorityQueue{ public: //types using PriorityList = std::array<PriorityType, NQu...
<commit_before>/* * * Copyright (c) 2016 Nest Labs, 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 * ...
<commit_before>/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * ...
<commit_before>#include "compressor.h" #include "agenda.h" #include "context.h" #include <zlib.h> #include <stdio.h> #include <fcntl.h> #include <sys/stat.h> #include "scope_guard.h" #include "errors.h" using namespace es3; using namespace boost::filesystem; #define MINIMAL_BLOCK (1024*1024) #define COMPRESSION_THRE...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of Qt Creator. ** ** Commercial License Usage ** Licensees holding valid commercial Qt licenses...
<commit_before>/// /// @file ParallelPrimeSieve.cpp /// @brief Sieve primes in parallel using OpenMP. /// /// Copyright (C) 2016 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level directory. /// #include <primesieve/config.hpp> #inc...
<commit_before>/***************************************************************************************** * * * OpenSpace * * ...
<commit_before>// ---------------------------------------------------------------------------- // ------------- AI Battleground, Copyright(C) Maciej Pryc, 2016 -------------- // ---------------------------------------------------------------------------- #include <iostream> #include "LevelInfo.h" #include "Act...
<commit_before>// QS4 Algorithm for Milloion Queen Problem // Created by Shengjia Yan@2016-5-23 #include <stdio.h> #include <stdlib.h> #include <time.h> #include <iostream> using namespace std; #define TIMES 10 // 运行次数 #define ll long long int #define LOCATION 0 // 输出 N 皇后的位置 #define CODE 0 // 输出 N 皇后的编...
<commit_before>#include "common.th" _start: prologue #define DATA_LEN (.L_data_end - .L_data_start) #define ELT_LEN (.L_data_elt_end - .L_data_elt_start) c <- rel(key) // needle d <- rel(data_start) // haystack e <- (DATA_LEN / ELT_LEN) // number of elements f <- ELT_LEN ...
<commit_before>/** -*- c++ -*- * * \file pool_layer.cpp * \date Sat May 14 11:35:13 2016 * * \copyright * Copyright (c) 2016 Liangfu Chen <liangfu.chen@nlpr.ia.ac.cn>. * All rights reserved. * * Redistribution and use in source and binary forms are permitted * provided that the above copyright notice a...
<commit_before>#include "common.th" .global isprime start: prologue c <- 12 call(isprime) illegal // Checks whether C is prime or not. Returns a truth value in B. isprime: pushall(d,e,g,i,j,k,m) // use e as local copy of c so we don't have to constantly save and restore // it when calli...
<commit_before>// Copyright 2010 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 o...
<commit_before>/* This is a very simple example of the semantics of 'locking_container'. For a * non-trivial example, see test.cpp. * * Compile this program enabling C++11, and linking with libpthread if needed. * When you run this program, you should see no output or errors. An assertion * means a bug in the code...
<commit_before>/* * Copyright(c) Sophist Solutions, Inc. 1990-2021. All rights reserved */ #include "../../StroikaPreComp.h" #if qHasFeature_OpenSSL #include <openssl/evp.h> #if OPENSSL_VERSION_MAJOR >= 3 #include <openssl/provider.h> #endif #endif #include "../../Debug/Assertions.h" #include "../../Execution/Exce...
<commit_before>/*=================================================================== The Medical Imaging Interaction Toolkit (MITK) Copyright (c) German Cancer Research Center, Division of Medical and Biological Informatics. All rights reserved. This software is distributed WITHOUT ANY WARRANTY; without even the imp...
<commit_before>#include <iostream> #include <chrono> #include <random> #include <set> #include <map> #include <list> #include <forward_list> #include "Allocator.h" const std::size_t growSize = 1024; const int numberOfIterations = 1024; const int randomRange = 1024; template <typename Container> class PerformanceTes...
<commit_before>#include "MyModel.h" namespace Perceptron { const DNest4::Cauchy MyModel::cauchy(0.0, 5.0); MyModel::MyModel() :input_locations(Data::get_instance().get_dim_inputs()) ,output_locations(Data::get_instance().get_dim_outputs()) ,input_scales(Data::get_instance().get_dim_inputs()) ,output_scales(Data::get...
<commit_before>#include "mpi.h" #include <Python.h> #include <string> #include <iostream> #include <cstring> #include <cmath> // just include parquet reader on Windows since the GCC ABI change issue // doesn't exist, and VC linker removes unused lib symbols #if defined(_MSC_VER) || defined(BUILTIN_PARQUET_READER) #inc...
<commit_before>// MFEM Example 1 - Parallel NURBS Version // // Compile with: make ex1p // // Sample runs: mpirun -np 4 ex1p -m ../../data/square-disc.mesh // mpirun -np 4 ex1p -m ../../data/star.mesh // mpirun -np 4 ex1p -m ../../data/escher.mesh // mpirun...
<commit_before>/***************************************************************************** * qt4.cpp : QT4 interface **************************************************************************** * Copyright (C) 2006-2007 the VideoLAN team * $Id$ * * Authors: Clément Stenac <zorglub@videolan.org> * * This prog...
<commit_before>/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * ...
<commit_before>// $Id$ // Category: geometry // // According to: // Id: ExN02MagneticField.cc,v 1.1 1999/01/07 16:05:49 gunter Exp // GEANT4 tag Name: geant4-00-01 #include "AliMagneticField.h" #include <G4FieldManager.hh> #include <G4TransportationManager.hh> // Constructors AliMagneticField::AliMagneticField() ...
<commit_before>#include <algorithm> #include <cmath> #include <iostream> #include <fstream> #include <iomanip> #include <iostream> #include <sstream> #include "FactorEncoder.hh" #include "Unigrams.hh" #include "io.hh" using namespace std; int Unigrams::read_vocab(string fname, map<string, flt_t...
<commit_before>#include <stdio.h> #include <stdlib.h> #include <unordered_map> #define min(x,y) x < y ? x : y using namespace std; typedef unsigned long long ullong; //method used to compute all bit masks that are to be used in computation. //Returns a single array that contains all M sets that will need to be proce...
<commit_before>// $Id$ /*********************************************************************** Moses - factored phrase-based language decoder Copyright (C) 2006 University of Edinburgh This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as ...
<commit_before>#include "EM.h" #include "MathFunctions.h" #include <iostream> EM::~EM() { } EM::EM(const std::vector<double> &data, const std::vector<Param> &params) : data_(data), params_(params), pikn_(data.size(), std::vector<double>(params.size(),0)) { if(data_.size() == 0) throw(std::r...
<commit_before>// source_expr.C -- Data source for gnuplot interface // // Copyright 2005 Per Abrahamsen and KVL. // // This file is part of Daisy. // // Daisy is free software; you can redistribute it and/or modify // it under the terms of the GNU Lesser Public License as published by // the Free Software Foundatio...
<commit_before>/*========================================================================= Program: Insight Segmentation & Registration Toolkit Module: itkNumericTraits.cxx Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Insight Software Consortium. All rights reserved. See ITK...
<commit_before>// Copyright (c) 2009 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/proxy/single_threaded_proxy_resolver.h" #include "base/thread.h" #include "net/base/load_log.h" #include "net/base/net_e...
<commit_before>#include "inmost.h" #include <stdio.h> using namespace INMOST; typedef Storage::real real; typedef Storage::real_array real_array; int main(int argc, char ** argv) { if( argc < 2 ) { printf("Usage: %s input_mesh [rotation_angle=0 degrees] [refine_boundary=1] [output_mesh]\n",argv[0]); return -1...
<commit_before>/** Copyright (C) 2017 Ultimaker - Released under terms of the AGPLv3 License */ #include <iterator> #include <algorithm> #include <math.h> #include "AdaptiveLayerHeights.h" namespace cura { AdaptiveLayer::AdaptiveLayer(int layer_height) { this->layer_height = layer_height; } Adapt...
<commit_before> // Copyright (c) 2012, 2013, 2014, 2015 Pierre MOULON. // This Source Code Form is subject to the terms of the Mozilla Public // License, v. 2.0. If a copy of the MPL was not distributed with this // file, You can obtain one at http://mozilla.org/MPL/2.0/. #include "openMVG/sfm/sfm.hpp" #include "sof...
<commit_before>// Time: O(n) // Space: O(1) /** * Definition of ListNode * class ListNode { * public: * int val; * ListNode *next; * ListNode(int val) { * this->val = val; * this->next = NULL; * } * } */ class Solution { public: /** * @param ListNode l1 is the head ...
<commit_before>#ifndef __STAN__MATH__MATRIX__SORT_INDICES_HPP__ #define __STAN__MATH__MATRIX__SORT_INDICES_HPP__ #include <stan/math/matrix/Eigen.hpp> #include <vector> #include <algorithm> // std::sort namespace stan { namespace math { namespace { struct svector_asc { template <typename...
<commit_before>/***************************************************************************** * Media Library ***************************************************************************** * Copyright (C) 2015 Hugo Beauzée-Luyssen, Videolabs * * Authors: Hugo Beauzée-Luyssen<hugo@beauzee.fr> * * This program is f...
<commit_before>// Simple OCR program // Copyright (C) 2014 vhb // // 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, co...
<commit_before>// // Copyright (c) 2014 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // DrawCallPerf: // Performance tests for ANGLE draw call overhead. // #include <sstream> #include "ANGLEPerfTest.h" #inc...
<commit_before>#include "Course.h" #include <string> using namespace std; Course::Course(unsigned int _startTime, unsigned int _endTime, string _days, string _courseName, string _courseLoc, unsigned int _courseId){ startTime = _startTime; endTime = _endTime; days = _days; courseName = _courseName; courseLoc = _co...
<commit_before>#include "Error.hpp" #include <cstdarg> PyObject * MGLError_tp_new(PyTypeObject * type, PyObject * args, PyObject * kwargs) { MGLError * self = (MGLError *)type->tp_alloc(type, 0); #ifdef MGL_VERBOSE printf("MGLError_tp_new %p\n", self); #endif if (self) { self->dict = 0; self->args = 0; s...
<commit_before>//======================================================================= // Copyright Baptiste Wicht 2011. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) //======================================...
<commit_before>#include <WPILib.h> #include "EventRelay.hpp" #include "Autonomous.hpp" #include "Action.hpp" #include "JoyButton.hpp" #include "DriveAuto.hpp" #include "JoystickWrapper.hpp" #include "RobotLocation.hpp" #include "TwoMotorGroup.hpp" #include "Vision.hpp" #include "ActionMap.hpp" #include "Shifter.hpp" #i...
<commit_before>#include "Scene.hpp" //#define LOG_GL #include "glerr.hpp" Scene::Scene() { m_ambience = 0.1f; try { m_actors.emplace_back(std::make_unique<Actor>("Akari")); } catch(const std::exception& exception) { g_logger->write(Logger::ERROR, exception.what()); throw std::runtime_error("Failed to load A...
<commit_before>/* Resembla: Word-based Japanese similar sentence search library https://github.com/tuem/resembla Copyright 2017 Takashi Uemura Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at h...
<commit_before> #include <sys/epoll.h> #include <sys/eventfd.h> #include <fcntl.h> #include <unistd.h> #include <sched.h> #include <stdio.h> #include <errno.h> #include <signal.h> #include <strings.h> #include "config.hpp" #include "utils.hpp" #include "event_queue.hpp" // TODO: report event queue statistics. void pr...
<commit_before>#include "grok/runner.h" #include "grok/context.h" #include "input/input-stream.h" #include "input/readline.h" #include "lexer/lexer.h" #include "object/jsbasicobject.h" #include "parser/parser.h" #include "vm/codegen.h" #include "vm/context.h" #include "vm/instruction-list.h" #include "vm/printer.h" #i...
<commit_before>/* ------------------------------------------------------------------------ */ /* Copyright 2002-2013, OpenNebula Project (OpenNebula.org), C12G Labs */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); y...
<commit_before>#include "hash_reader.h" #include <sys/mman.h> #include <snappy.h> #include <farmhash.h> #include <glog/logging.h> #include "scdb/writer.h" #include "utils/varint.h" #include "utils/timestamp.h" #include "utils/file_stream.h" namespace scdb { class HashReader::Impl { public: Impl(const Reader::...
<commit_before>/* Copyright (c) 2012 Ben Noordhuis <info@bnoordhuis.nl> * * 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 * t...
<commit_before><commit_msg>in singleArmFinalPosture return false if the target is unreacheable<commit_after><|endoftext|>
<commit_before>/********************************************************************************** Infomap software package for multi-level network clustering Copyright (c) 2013, 2014 Daniel Edler, Martin Rosvall For more information, see <http://www.mapequation.org> This file is part of Infomap software packa...
<commit_before>///////////////////////////////////////////////////////////////////////////// // Copyright (c) 2008 Larry Gritz // // 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 r...
<commit_before>/* * Copyright (C) 2011 Tommi Maekitalo * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version....
<commit_before>#include "sp_segmenter/klttracker.h" #include <iostream> #include <algorithm> using namespace Eigen; using namespace cv; KLTTracker::KLTTracker(unsigned int max_kps) { m_nextID = 0; m_maxNumberOfPoints = max_kps; m_fastDetector = cv::FastFeatureDetector::create(std::string("FAST")); } unsigned i...
<commit_before>#include "lexer/lexer.h" Lexer::Lexer(const char *file, bool f) { file_ = true; std::ifstream infile(file); file_name_ = file; int length = 0; if (infile.fail()) { ERROR(std::string, "cannot open file"); f = false; err_msg_ = file + std::string(": file doesn't exist...
<commit_before>/* * Copyright (c) 2001-2005 The Regents of The University of Michigan * Copyright (c) 2009 Advanced Micro Devices, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: red...
<commit_before>/* * mod_dup - duplicates apache requests * * Copyright (C) 2013 Orange * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-...
<commit_before>/// /// @file P2_mpi.cpp /// @brief 2nd partial sieve function. /// P2(x, y) counts the numbers <= x that have exactly 2 prime /// factors each exceeding the a-th prime. /// /// Copyright (C) 2016 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is distributed under the BSD License. ...
<commit_before>/* Segments are organized into a list (vector) such that any object that serves as a center (reference) for a body appears earlier a 'center' appears earlier in the list than any object tha (such as barycenters) are placed before any bodies that are computed with reference to them. ...
<commit_before>/** * @copyright Copyright 2018 The J-PET Framework 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 find a copy of the License in the LICENCE file. * * Unless required b...
<commit_before>/* * W.J. van der Laan 2011-2012 */ #include "bitcoingui.h" #include "clientmodel.h" #include "walletmodel.h" #include "optionsmodel.h" #include "headers.h" #include "init.h" #include "qtipcserver.h" #include "util.h" #include <QApplication> #include <QMessageBox> #include <QThread> #include <QTextCo...
<commit_before>/* This file is part of qjson * * Copyright (C) 2009 Till Adam <adam@kde.org> * Copyright (C) 2009 Flavio Castelli <flavio@castelli.name> * * 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...
<commit_before>/* * Copyright 2007-2021 CM4all GmbH * All rights reserved. * * author: Max Kellermann <mk@cm4all.com> * * 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...
<commit_before>/* * statusspec.cpp * StatusSpec project * * Copyright (c) 2014 thesupremecommander * BSD 2-Clause License * http://opensource.org/licenses/BSD-2-Clause * */ #include "statusspec.h" AntiFreeze *g_AntiFreeze = nullptr; CameraTools *g_CameraTools = nullptr; CustomTextures *g_CustomTextures...
<commit_before>/* Copyright 2016 Fixstars 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 required by applicable law or agreed to in ...
<commit_before>/* This file is part of the ORK library. Full copyright and license terms can be found in the LICENSE.txt file. */ #include"ork/color.hpp" #include"ork/glm.hpp" #include"ork/test/catch_include.hpp" #include"glm/vec4.hpp" using namespace ork; bool within_hex(const float v1, const float v2) { return ...
<commit_before>/* * bacteria-core, core for cellular automaton * Copyright (C) 2016 Pavel Dolgov * * See the LICENSE file for terms of use. */ #include <boost/test/unit_test.hpp> #include "Model.hpp" typedef void (Implementation::Model::*OneArgMethod) ( const Abstract::Point& coordinates ); template<typena...
<commit_before>// (C) Copyright Ullrich Koethe 2001, Gennadiy Rozental 2001-2003. // Permission to copy, use, modify, sell and distribute this software // is granted provided this copyright notice appears in all copies. // This software is provided "as is" without express or implied warranty, // and with no claim ...
<commit_before>#include "03.hpp" ////////////// // Includes // #include <vector> #include "../parser.hpp" #include "../json.hpp" #include "utils.hpp" ////////// // Code // // Testing the number array. bool testNumArray(JValue numArray) { if (!numArray.isArray()) return true; std::vector<JValue> vals...
<commit_before>/*************************************************************************************/ /*************************************************************************************/ /** **/ /** Tinyplayer - TibV2 example ...
<commit_before>// Copyright (c) 2007, 2008 libmv 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, m...
<commit_before>#include "toxchannel.hpp" #include "messages.hpp" namespace linux { #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <unistd.h> } namespace toxChannel { namespace util { /* Thanks to [0xd34df00d](https://github.com/0xd34df00d) for this bunch of functions */ #include <cas...
<commit_before>// Copyright (c) 2009 hp-FEM group at the University of Nevada, Reno (UNR). // Distributed under the terms of the BSD license (see the LICENSE // file for the exact terms). // Email: hermes1d@googlegroups.com, home page: http://hpfem.org/ #include "transforms.h" #define N_chebyshev (3+2*(MAX_P-1)) dou...
<commit_before>// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. // =========================================================================== // File: perfmap.cpp //...
<commit_before>#include <kdebug.h> #include <QCryptographicHash> #include <QTextCodec> #include <QByteArray> #include "mradata.h" #include "mraconnection.h" #include "mracontactlist.h" #include "mracontactinfo.h" #include "mraprotocolv123.h" MRAProtocolV123::MRAProtocolV123(QObject *parent) : MRAProtocol(parent) ...
<commit_before>#pragma once #include "channel9.hpp" namespace Channel9 { template <typename tPtr> bool in_nursery(const tPtr *ptr); bool in_nursery(const Value &val); // Implements an object nursery for young objects. Really simple allocator, pretty much just shoves // the data in and goes on its merry way. When...
<commit_before>#include <iostream> #include <vector> #include <algorithm> using namespace std; vector<vector<int> > threeSum(vector<int>& nums) { const size_t numsSize=nums.size(); if(numsSize < 3) { return {}; } vector<vector<int>> result; sort(begin(nums), end(nums)); ...
<commit_before><commit_msg>#87379# colliding value-checking<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: GraphicObjectBar.cxx,v $ * * $Revision: 1.7 $ * * last change: $Author: rt $ $Date: 2006-07-25 11:46:00 $ * * The Contents of this file a...
<commit_before>#include <muduo/base/CountDownLatch.h> #include <muduo/base/Mutex.h> #include <muduo/base/Thread.h> #include <muduo/base/Timestamp.h> #include <boost/bind.hpp> #include <boost/ptr_container/ptr_vector.hpp> #include <vector> #include <stdio.h> using namespace muduo; using namespace std; MutexLock g_mut...
<commit_before>/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * ...
<commit_before><commit_msg>Add a dump of the currently outstanding jobs when enabling DNS tracing. Before it would just output the count.<commit_after><|endoftext|>
<commit_before>y/* kopeteglobalawaydialog.cpp - Kopete Global Away Dialog Copyright (c) 2002 by Christopher TenHarmsel <tenharmsel@users.sourceforge.net> Kopete (c) 2002-2003 by the Kopete developers <kopete-devel@kde.org> ************************************************************************* * ...
<commit_before><commit_msg>Disk cache: Small adjustment so that we continue with the process of creating a new entry after we detect a dirty entry with a partial hash collision.<commit_after><|endoftext|>
<commit_before>/* This file is part of kdepim. Copyright (c) 2004 Cornelius Schumacher <schumacher@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; either version 2 of th...
<commit_before>// Copyright 2018 Google LLC. All Rights Reserved. /* Copyright (C) 2007 Steven L. Scott 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 Lice...
<commit_before>#include <X11/Xlib.h> #include <X11/keysym.h> #include <irrlicht/Keycodes.h> #include <stdio.h> #include <unistd.h> #define RETURN 13 #define BS 8 #define SPACE 32 XKeyEvent createKeyEvent(Display *display, Window &win, Window &winRoot, ...
<commit_before>#include <X11/Xlib.h> #include <X11/keysym.h> #include <irrlicht/Keycodes.h> #include <stdio.h> #include <unistd.h> #define RETURN 13 #define BS 8 #define SPACE 32 XKeyEvent createKeyEvent(Display *display, Window &win, Window &winRoot, ...
<commit_before><commit_msg>Fix window title frame rate formatting<commit_after><|endoftext|>
<commit_before>/* * Converts media wiki markup into plaintext */ #include <iostream> #include <sstream> #include <fstream> #include <string.h> #include <pcre.h> #include <math.h> #include <dirent.h> using namespace std; char* substr(char* dest, const char* src, int start, int len, int n) { if(start >= n) th...
<commit_before>/** * Copyright (c) 2013-2014 Tomas Dzetkulic * Copyright (c) 2013-2014 Pavol Rusnak * * 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 with...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: types.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: hr $ $Date: 2006-06-19 10:40:58 $ * * The Contents of this file are made ava...
<commit_before><commit_msg>Added handling of short (<=4 points) polygons as tri fans and the rest as polygons which are tesselated, to improve load and build time, yet still resselating the large polygons that need it.<commit_after><|endoftext|>
<commit_before><commit_msg>Skip CopyTextureVariationsTest failing on Ozone<commit_after><|endoftext|>
<commit_before>#ifndef SHAPE_HPP_ #define SHAPE_HPP_ #include <iostream> #include <vector> #include <opencv2/opencv.hpp> #include "PointXY.hpp" class Shape { public: Shape() { m_radius = -1; } cv::Point getCentroid() { std::pair<int,int> centroid; for(unsigned short i = 0; i < m_point_list.size(...
<commit_before>//======================================================================= // Copyright Baptiste Wicht 2011. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) //======================================...
<commit_before>/* * Copyright 2015 Aerospike, Inc. * * Portions may be licensed to Aerospike, Inc. under one or more * contributor license agreements. * * 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 o...