text
stringlengths
54
60.6k
<commit_before>///////////////////////// /* // stitching.cpp // adapted from stitching.cpp sample distributed with openCV source. // adapted by Foundry for iOS */ /*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INS...
<commit_before>// The MIT License (MIT) // Copyright (c) 2014 Rapptz // Permission is hereby granted, free of charge, to any person obtaining a copy of // this software and associated documentation files (the "Software"), to deal in // the Software without restriction, including without limitation the rights to // us...
<commit_before>/* * Copyright (c) 2012 ARM Limited * All rights reserved. * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware implementat...
<commit_before>/** * Copyright (c) 2016-2017 mvs developers * * This file is part of metaverse-explorer. * * metaverse-explorer is free software: you can redistribute it and/or * modify it under the terms of the GNU Affero General Public License with * additional permissions to the one published by the Free Sof...
<commit_before>/** * Copyright (c) 2016-2017 mvs developers * * This file is part of metaverse-explorer. * * metaverse-explorer is free software: you can redistribute it and/or * modify it under the terms of the GNU Affero General Public License with * additional permissions to the one published by the Free Sof...
<commit_before>#include "lineup_node.h" #include "text_node.h" #include <cassert> using namespace liven; int main() { auto ln = std::make_shared<lineup_node>(dimension::x); auto hi = std::make_shared<text_node>("hi"); auto there = std::make_shared<text_node>("there"); ln->push_back(hi); assert(ln->get_children()...
<commit_before>// Copyright (c) 2016-2019 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <amount.h> #include <policy/feerate.h> #include <test/setup_common.h> #include <boost/test/unit_test...
<commit_before>#include "search-images-cli-command.h" #include <QCoreApplication> #include <QEventLoop> #include <QSet> #include <QSettings> #include <utility> #include "downloader/download-query-group.h" #include "loader/pack-loader.h" #include "logger.h" #include "models/image.h" #include "models/page.h" #include "mo...
<commit_before>#include "Util.h" #include "resources/ResourceManager.h" #include "platform.h" namespace fs = boost::filesystem; std::string strToUpper(const char* from) { std::string str(from); for(unsigned int i = 0; i < str.size(); i++) str[i] = toupper(from[i]); return str; } std::string& strToUpper(std::str...
<commit_before>// Copyright (c) 2018-2020 The PIVX developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "test_pivx.h" #include "budget/budgetmanager.h" #include "tinyformat.h" #include "utilmoneystr.h" #inclu...
<commit_before>/** ** Copyright (c) 2011 Illumina, Inc. ** ** ** This software is covered by the "Illumina Non-Commercial Use Software ** and Source Code License Agreement" and any user of this software or ** source file is bound by the terms therein (see accompanying file ** Illumina_Non-Commercial_Use_Softwar...
<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>/* * The MIT License * * Copyright 2017-2018 Norwegian University of Technology * * 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 ...
<commit_before>#include "types.h" #include "amd64.h" #include "bits.hh" #include "kernel.hh" #include "traps.h" #include "cpu.hh" #include "apic.hh" #include "kstream.hh" #define ID 0x802 // ID #define VER 0x803 // Version #define TPR 0x808 // Task Priority #define EOI 0x80b // EOI #define SVR...
<commit_before>#include "sstream.h" #include "vendor/Catch/catch.hpp" namespace { TEST_CASE("sstream", "[string][stream]") { SECTION("Initialization") { SECTION("Default ctor") { rde::stringstream ss1; CHECK(!ss1.good()); auto ss2 = rde::stringstream(); CHECK(!ss2.good()); } S...
<commit_before>#define BOOST_TEST_MODULE Bitcoin Test Suite #include <boost/test/unit_test.hpp> #include "main.h" #include "wallet.h" CWallet* pwalletMain; void Shutdown(void* parg) { exit(0); } <commit_msg>Global fixture to send output to console instead of debug.log<commit_after>#define BOOST_TEST_MODULE Bitcoin...
<commit_before>#ifndef VG_SNARL_CALLER_HPP_INCLUDED #define VG_SNARL_CALLER_HPP_INCLUDED #include <iostream> #include <algorithm> #include <functional> #include <cmath> #include <limits> #include <unordered_set> #include <tuple> #include "handle.hpp" #include "snarls.hpp" #include "genotypekit.hpp" #include "packer.hp...
<commit_before>// // dfa_single_regex.cpp // Parse // // Created by Andrew Hunter on 28/04/2011. // Copyright 2011 __MyCompanyName__. All rights reserved. // #include <string> #include <sstream> #include "dfa_single_regex.h" #include "Dfa/lexer.h" using namespace std; using namespace dfa; void test_dfa_single_...
<commit_before>// Copyright (c) 2014 Greenheart Games Pty. Ltd. All rights reserved. // Use of this source code is governed by the MIT license that can be // found in the LICENSE file. #include "greenworks_async_workers.h" #include <sstream> #include <iomanip> #include "nan.h" #include "steam/steam_api.h" #include "v...
<commit_before>#include "compiler/prepare_grammar/expand_repeats.h" #include "compiler/prepare_grammar/expand_tokens.h" #include "compiler/prepare_grammar/extract_tokens.h" #include "compiler/prepare_grammar/intern_symbols.h" #include "compiler/prepare_grammar/prepare_grammar.h" #include "compiler/prepared_grammar.h" ...
<commit_before>/**************************************************************************** ** ** Copyright (C) Qxt Foundation. Some rights reserved. ** ** This file is part of the QxtGui module of the Qxt library. ** ** This library is free software; you can redistribute it and/or modify it ** under the terms of the ...
<commit_before>#include "util/sync_log.h" #include "util/auto_proc.h" #include <cstdlib> #include <vector> #include <sstream> #include <memory> using namespace util; using namespace std; int main(int argc, char** argv) { sync_log log("SPAWNER"); log.info("Starting"); if (argc < 2) { log.error("I don't kno...
<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 (c) 2010 Volker Krause <vkrause@kde.org> Copyright (c) 2013 Daniel Vrátil <dvratil@redhat.com> 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; ...
<commit_before>#include <cstdio> #include <cstdlib> #include <cstring> #include <cassert> #include "../rwbase.h" #include "../rwerror.h" #include "../rwplg.h" #include "../rwpipeline.h" #include "../rwobjects.h" #include "../rwengine.h" #ifdef RW_OPENGL #include <GL/glew.h> #endif #include "rwgl3.h" #include "rwgl3sha...
<commit_before>/* * Copyright 2007-2017 Content Management AG * 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...
<commit_before>/* * (C) 2014,2015 Jack Lloyd * * Botan is released under the Simplified BSD License (see license.txt) */ #include "tests.h" #if defined(BOTAN_HAS_CURVE_25519) #include "test_pubkey.h" #include <botan/curve25519.h> #include <botan/hex.h> #include <iostream> #include <fstream> using namespace Botan; ...
<commit_before>// Copyright (c) .NET Foundation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. #include "precomp.hxx" __override HRESULT ASPNET_CORE_PROXY_MODULE_FACTORY::GetHttpModule( CHttpModule ** ppModule, IModuleAllocator * pAl...
<commit_before>/* * Copyright (c) 2019-2020 Fastly, Inc., Toru Maesaka, Goro Fuji * * 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 ...
<commit_before>/* |---------------------------------------------------------| | ___ ___ _ _ | | / _ \ _ __ ___ _ __ |_ _|_ __ | |_ ___ _ __ | |_ | | | | | | '_ \ / _ \ '_ \ | || '_ \| __/ _ \ '_ \| __| | | | |_| | |_) | __/ | | || || | | | || __/ | | | |_ | | ...
<commit_before>/* ************************************************************************* */ /* This file is part of Shard. */ /* */ /* Shard is free software: you can redistribute it and/or modify ...
<commit_before>/**************************************************************************** ** ** Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). ** ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the Qt Mobility Components. ** ** $QT_BEGIN_LICENSE:LGPL$ ** No Commer...
<commit_before><commit_msg>Fix session id for resume E++ account<commit_after><|endoftext|>
<commit_before><commit_msg>monclient: fix off-by-one buffer overrun<commit_after><|endoftext|>
<commit_before>//======================================================================= // Copyright (c) 2014-2017 Baptiste Wicht // Distributed under the terms of the MIT License. // (See accompanying file LICENSE or copy at // http://opensource.org/licenses/MIT) //===================================================...
<commit_before><commit_msg>fixed bug that prevented buffer optimization<commit_after><|endoftext|>
<commit_before><commit_msg>fixed unlimited settings check<commit_after><|endoftext|>
<commit_before>#include "ros/ros.h" #include "geometry_msgs/Twist.h" #include "turtlesim/Pose.h" #include <sstream> using namespace std; ros::Publisher velocity_publisher; ros::Subscriber pose_subscriber; turtlesim::Pose turtlesim_pose; const double PI = 3.14159265359; void move(double speed, double distance, bool ...
<commit_before>// Copyright 2012 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>// Copyright Daniel Wallin 2006. Use, modification and distribution is // subject to 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) #include <boost/python.hpp> #include <libtorrent/session.hpp> using namespace boost::p...
<commit_before>// Virtual memory allocator for CPU/GPU #if defined(CUDA_FOUND) #include <cuda_runtime.h> #endif #include "util.h" #include <taichi/unified_allocator.h> #include <taichi/system/virtual_memory.h> #include <string> TLANG_NAMESPACE_BEGIN UnifiedAllocator *allocator_instance = nullptr; UnifiedAllocator *&...
<commit_before> #include "display.h" namespace ssnake { Display::Display(const coordType size_x, const coordType size_y) { initCurses(); setTextures(); initScreen(size_x * 2, size_y); #ifdef _WIN32 system("title SlicerSnake"); #endif } Display::~Display() { if (snakeWin !=...
<commit_before>#include "openlr/openlr_match_quality/openlr_assessment_tool/mainwindow.hpp" #include "openlr/openlr_match_quality/openlr_assessment_tool/traffic_panel.hpp" #include "openlr/openlr_match_quality/openlr_assessment_tool/trafficmodeinitdlg.h" #include "openlr/openlr_match_quality/openlr_assessment_tool/map...
<commit_before>/* * This file is part of the Yildiz-Engine project, licenced under the MIT License (MIT) * * Copyright (c) 2019 Grégory Van den Borre * * More infos available: https://engine.yildiz-games.be * * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and ass...
<commit_before>// // This file is part of the Marble Virtual Globe. // // This program is free software licensed under the GNU LGPL. You can // find a copy of this license in LICENSE.txt in the top directory of // the source code. // // Copyright 2014 Sanjiban Bairagya <sanjiban22393@gmail.com> // #include "TourPlayba...
<commit_before>/* * Laser.cpp * * Created on: May 27, 2014 * Author: user */ #include "Laser.h" double Laser::convertIndexToDegree(int index) const { return (index * LASER_RESOLUTION) - LASER_MESURING_AREA; } int Laser::convertDegreeToIndex(double degree) const { return (degree + LASER_MESURING_AREA) / ...
<commit_before>/* * ServerOptions.hpp * * Copyright (C) 2009-12 by RStudio, Inc. * * Unless you have received this program directly from RStudio pursuant * to the terms of a commercial license agreement with RStudio, then * this program is licensed to you under the terms of version 3 of the * GNU Affero General...
<commit_before>#ifndef _THREADPOOL_H #define _THREADPOOL_H #include <assert.h> #include <vector> #include <queue> #include <thread> #include <mutex> #include <memory> #include <functional> #include <condition_variable> #include <atomic> #include <type_traits> static const unsigned int MaxTaskQueueSize = 100000; stati...
<commit_before>#include "magellan/core/TestSuite.h" #include "magellan/core/TestResult.h" #include <l0-infra/std/Algorithm.h> MAGELLAN_NS_BEGIN TestSuite::TestSuite(const std::string& name) : name(name) {} TestSuite::~TestSuite() { stdext::each(tests, [](Test* t){ delete t; }); } void TestSuite::addTest(Test*...
<commit_before>/************************************************************ cvsurfpoint.cpp - $Author: ser1zw $ Copyright (C) 2011 ser1zw ************************************************************/ #include "cvsurfpoint.h" /* * Document-class: OpenCV::CvSURFPoint * * C structure is here. * typedef...
<commit_before>#include "stdafx.h" #include "DropDownPane.h" #include "String.h" #include "InterpretProp2.h" #include <UIFunctions.h> static wstring CLASS = L"DropDownPane"; ViewPane* CreateDropDownPane(UINT uidLabel, ULONG ulDropList, _In_opt_count_(ulDropList) UINT* lpuidDropList, bool bReadOnly) { retur...
<commit_before> #include "potentialfunctioncbspl.h" PotentialFunctionCBSPL::PotentialFunctionCBSPL(const int nlam_, const int ncutcoeff_, const double min_, const double max_) : PotentialFunction(nlam_,min_,max_) { /* Here nlam_ is the total number of coeff values that are to be ...
<commit_before>#include <avr/io.h> #include <avr/pgmspace.h> #include "console.h" #include "extdata.h" #include "frequency.h" namespace GpioInit { static uint16_t parseNumber(uint8_t* str, uint8_t len) { uint8_t* last = str + len - 1; uint16_t number = 0; while(str <= last) { numbe...
<commit_before>// Copyright 2010-2012 RethinkDB, all rights reserved. #include <ctime> #include "unittest/gtest.hpp" #include "http/http.hpp" namespace unittest { TEST(Http, FormatTime) { std::string formatted_time = http_format_date(1356998463); EXPECT_EQ("Tue, 01 Jan 2013 00:01:03 GMT", formatted_time); ...
<commit_before>/* * This file is part of the ef.gy project. * See the appropriate repository at http://ef.gy/.git for exact file * modification records. */ /* * Copyright (c) 2012, ef.gy Project Members * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and assoc...
<commit_before> #include "boxed.h" #include "debug.h" #include "function.h" #include "value.h" #include "gobject.h" #include "gi.h" #include <girffi.h> using namespace v8; using Nan::New; using Nan::WeakCallbackType; namespace GNodeJS { static void FillArgument(GIArgInfo *arg_info, GIArgume...
<commit_before>/* Copyright libCellML Contributors 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 is free and unencumbered software released into the public domain. */ #ifdef HAVE_CONFIG_H #include <config.h> #endif #include "const.h" /* for XSD_INTEGER_CAPTURES */ #include "integer.h" #include "regex.h" /* for std::regex, std::regex_match() */ #include <algorithm> /* for std::copy() *...
<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 "chrome/browser/child_process_launcher.h" #include "base/command_line.h" #include "base/logging.h" #include "base/scoped_ptr....
<commit_before>// Copyright (c) 2006-2008 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/dom_ui/dom_ui_contents.h" #include "chrome/browser/debugger/debugger_contents.h" #include "chrome/browse...
<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 "chrome/browser/gtk/download_item_drag.h" #include "app/gfx/gtk_util.h" #include "app/gtk_dnd_util.h" #include "base/string_u...
<commit_before>/* * Copyright 2008-2013 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>/* Copyright Eli Dupree and Isaac Dupree, 2014 This file is part of Lasercake. Lasercake is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the Lic...
<commit_before>/* _______ __ __ __ ______ __ __ _______ __ __ * / _____/\ / /\ / /\ / /\ / ____/\ / /\ / /\ / ___ /\ / |\/ /\ * / /\____\// / // / // / // /\___\// /_// / // /\_/ / // , |/ / / * / / /__ / / // / // / // / / / ___ / // ___ / // /| ' / / * / /_// /\ / /_// / ...
<commit_before>#include "simplestack.h" #include <iostream> using namespace std; struct StackElement { ElementType value; StackElement *next; }; struct Stack { StackElement *head; }; Stack* createStack() { return new Stack{ nullptr }; } StackElement* next(StackElement *element) { return (element) ? element-...
<commit_before>/* * Copyright (C) 2019 The Android Open Source Project * * 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>#include <sparsehash/dense_hash_map> #include <unordered_map> #include "fixture_unittests.h" #include "hashtable_test_interface.h" #include "gtest/gtest.h" #include <unordered_map> #include <unordered_set> #include <chrono> using google::dense_hash_map; using google::dense_hash_set; namespace sparseha...
<commit_before>#include <stan/math/prim/mat/fun/cholesky_decompose.hpp> #include <stan/math/fwd/mat/fun/typedefs.hpp> #include <gtest/gtest.h> #include <stan/math/fwd/scal/fun/value_of.hpp> #include <stan/math/prim/mat/fun/value_of_rec.hpp> #include <stan/math/fwd/scal/fun/value_of_rec.hpp> #include <stan/math/fwd/core...
<commit_before>// Copyright (2015) Gustav #include "finans/core/commandline.h" #include <cassert> #include <algorithm> #include <string> #include <set> namespace argparse { ParserError::ParserError(const std::string& error) : runtime_error("error: " + error), has_displayed_usage(false) { } void OnParse...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the test suite of the Qt Toolkit. ** ** $QT_BEGIN_LICE...
<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 "ui/aura_shell/default_container_layout_manager.h" #include "base/auto_reset.h" #include "ui/aura/desktop.h" #include "ui/aur...
<commit_before>/*************************************************************************** * Copyright (C) 2009 by Tobias Koenig <tokoe@kde.org> * * * * This program is free software; you can redistribute it and/or modify ...
<commit_before>/* * The Apache Software License, Version 1.1 * * * Copyright (c) 1999 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 <iostream> #include <fstream> #include <pcl/PCLPointCloud2.h> #include <pcl/io/pcd_io.h> #include <pcl/io/vtk_io.h> #include <pcl/filters/statistical_outlier_removal.h> #include <pcl/filters/voxel_grid.h> #include <pcl/features/normal_3d_omp.h> #include <pcl/common/common_headers.h> #includ...
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "keystore.h" #include "script.h" bool CKeyStore::GetPubKe...
<commit_before>/*========================================================================= * * Copyright 2011-2013 The University of North Carolina at Chapel Hill * All rights reserved. * * Licensed under the MADAI Software License. You may obtain a copy of * this license at * * https://madai-public...
<commit_before>/* * Copyright (C) 2015 Cloudius Systems, Ltd. * */ #pragma once #include "core/file.hh" #include "core/fstream.hh" #include "core/future.hh" #include "core/sstring.hh" #include "core/enum.hh" #include "core/shared_ptr.hh" #include "core/distributed.hh" #include <unordered_set> #include <unordered_m...
<commit_before>#include "vast/util/editline.h" #include <cassert> #include <iostream> #include <map> #include <vector> #include <histedit.h> #include "vast/util/color.h" namespace vast { namespace util { struct editline::history::impl { impl(int size, bool unique, std::string filename) : filename_{std::move(fi...
<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 // "Lic...
<commit_before>/*========================================================================= Program: ORFEO Toolbox Language: C++ Date: $Date$ Version: $Revision$ Copyright (c) Centre National d'Etudes Spatiales. All rights reserved. See OTBCopyright.txt for details. This software is distributed WITHOUT AN...
<commit_before><commit_msg>Render sprites using textures' samplers<commit_after><|endoftext|>
<commit_before>// vim: set sts=2 sw=2 et: // encoding: utf-8 // // Copyleft 2011 RIME Developers // License: GPLv3 // // 2011-10-30 GONG Chen <chen.sst@gmail.com> // #include <algorithm> #include <boost/algorithm/string.hpp> #include <boost/foreach.hpp> #include <boost/format.hpp> #include <boost/lexical_cast.hpp> #inc...
<commit_before>namespace query { class qr_cell stub [[writable]] { std::optional<api::timestamp_type> timestamp; // present when send_timestamp option set in partition_slice std::optional<gc_clock::time_point> expiry; // present when send_expiry option set in partition_slice // Specified by CQL binary pro...
<commit_before>/************************************************************************ * * vapor3D Engine © (2008-2010) * * <http://www.vapor3d.org> * ************************************************************************/ #include "Core/API.h" #ifndef VAPOR_PLATFORM_WINDOWS #include "Thread.h" #inc...
<commit_before>/* * Copyright 2017 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "gm.h" #include "sk_tool_utils.h" // Hue, Saturation, Color, and Luminosity blend modes are oddballs. // They nominally convert their inputs to unprem...
<commit_before>#include "feature_styler.hpp" #include "geometry_processors.hpp" #include "proto_to_styles.hpp" #include "../indexer/drawing_rules.hpp" #include "../indexer/feature.hpp" #include "../indexer/feature_visibility.hpp" #ifdef OMIM_PRODUCTION #include "../indexer/drules_struct_lite.pb.h" #else #include ...
<commit_before># include "matrice.h" Matrice::Matrice(size_t nbl, size_t nbc) : nbl(nbl), nbc(nbc) { if(nbc!=0 && nbl!=0) { mat=new int* [nbc]; for(size_t i=0; i<nbc; i++) { mat[i]=new int [nbl]; for(size_t j=0; j<nbl; j++) { mat[i][j]=0; } } } } Matrice::~Matrice...
<commit_before>#include <fstream> #include <VBE/system/sdl2/StorageImpl.hpp> // static std::unique_ptr<std::istream> StorageImpl::openAsset(const std::string& filename) { // Open in binary mode so Windows doesn't change LF to CRLF, // which will corrupt binary files such as images. return std::unique_ptr<std::istr...
<commit_before>/* * The Apache Software License, Version 1.1 * * * Copyright (c) 1999 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>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2011 Artem Pavlenko * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public ...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2011 Artem Pavlenko * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public ...
<commit_before>/* * This file is part of the FreeStreamer project, * (C)Copyright 2011-2014 Matias Muhonen <mmu@iki.fi> * See the file ''LICENSE'' for using the code. * * https://github.com/muhku/FreeStreamer */ #include "file_stream.h" namespace astreamer { File_Stream::File_Stream() : m_url(0), m...
<commit_before>/********************************************************************** * * GEOS - Geometry Engine Open Source * http://geos.osgeo.org * * Copyright (C) 2019 Martin Davis <mtnclimb@gmail.com> * * This is free software; you can redistribute and/or modify it under * the terms of the GNU Lesser Gene...
<commit_before>/* Copyright 2016 aboru 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 a...
<commit_before>#include <cstdio> #include <cstdlib> #include <cstring> #include <GL/gl.h> #include <X11/X.h> #include <X11/Xlib.h> #include <GL/glx.h> #include <unistd.h> // Required GL 2.1 funcs typedef GLuint (*GlCreateShader)(GLenum); GlCreateShader glCreateShader; typedef void (*GlShaderSource)(GLuint, GLsizei, ...
<commit_before>#include <ctrcommon/common.hpp> #include <sstream> #include <iomanip> #include <stdio.h> #include <sys/errno.h> typedef enum { INSTALL, DELETE } Mode; int main(int argc, char **argv) { if(!platform_init()) { return 0; } std::vector<std::string> extensions;...
<commit_before>// // main.cpp // NSolver // // Created by 乔磊 on 15/3/1. // Copyright (c) 2015年 乔磊. All rights reserved. // #include <iostream> #include <fstream> #include <NSolver/solver/NSolver.h> #include <NSolver/print_version.h> int main (int argc, char *argv[]) { using namespace dealii; using namespace N...
<commit_before>#include <string> #include <vector> #include <iostream> #include "Stranded.h" int main(int argc, char* argv[]) { std::vector<std::string> arguments; for (int i = 1; i < argc; ++i) { arguments.push_back(std::string(argv[i])); } Stranded game; if (game.init(arguments)) { game.run(); } retu...
<commit_before>// @(#)root/mathcore:$Name: $:$Id: Boost.cpp,v 1.2 2005/11/18 21:55:45 marafino Exp $ // Authors: M. Fischler 2005 /********************************************************************** * * * Copyright (c) 2005 , LCG ROOT FNAL...
<commit_before>// Copyright (c) 2010 The Chromium OS 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 "window_manager/layer_visitor.h" #include <algorithm> #include "window_manager/geometry.h" #include "window_manager/real_c...