text
stringlengths
54
60.6k
<commit_before>#include <cstdlib> #include <cmath> #include <fstream> #include <sstream> #include <iostream> #include <iomanip> #include <string> #include <vector> #include <algorithm> #include <exception> #include <sys/time.h> #include "modules/htmTree.h" #include "modules/kdTree.h" #include "misc.h" #include ...
<commit_before>// Copyright (c) 2017 nyorain // Distributed under the Boost Software License, Version 1.0. // See accompanying file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt /// \file Various operations for real vectors. /// Over the whole files, template types names V or V* must fulfil the /// vector co...
<commit_before>// This file is part of the dune-gdt project: // https://github.com/dune-community/dune-gdt // Copyright 2010-2017 dune-gdt developers and contributors. All rights reserved. // License: Dual licensed as BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) // or GPL-2.0+ (http://open...
<commit_before>#ifndef DUNE_STUFF_LA_CONTAINER_INTERFACE_HH #define DUNE_STUFF_LA_CONTAINER_INTERFACE_HH #include <dune/common/bartonnackmanifcheck.hh> namespace Dune { namespace Stuff { namespace LA { namespace Container { template< class Traits > class Interface { public: typedef typename Traits::BackendType Ba...
<commit_before>#pragma once #include <iostream> #include <stdexcept> #include <string> #include <vector> #include <algorithm> #include "acmacs-base/string.hh" #include "acmacs-base/rapidjson.hh" // ---------------------------------------------------------------------- namespace from_json { using ConstArray = ra...
<commit_before>// Copyright 2004-present Facebook. All Rights Reserved. #include "ProxyExecutor.h" #include <fb/assert.h> #include <fb/Environment.h> #include <jni/LocalReference.h> #include <jni/LocalString.h> #include <folly/json.h> #include <folly/Memory.h> #include <cxxreact/SystraceSection.h> #include <cxxreact...
<commit_before>#include "CameraImageWrapper.h" #include <QColor> #include <QApplication> #include <QDesktopWidget> CameraImageWrapper::CameraImageWrapper() : LuminanceSource(0,0), image(NULL) { } CameraImageWrapper::CameraImageWrapper(const QImage &sourceImage) : LuminanceSource(sourceImage.width(), sourceImage.heigh...
<commit_before>#include <silicium/config.hpp> #include <silicium/bounded_int.hpp> #include <silicium/variant.hpp> #include <silicium/array_view.hpp> #include <silicium/arithmetic/add.hpp> #include <boost/test/unit_test.hpp> namespace Si { namespace m3 { template <class T> void trivial_copy(T &destination, T cons...
<commit_before>#undef NDEBUG //because we are using assert to check actual operations that cannot be skipped in release mode testing #include <cassert> #include <exodus/program.h> programinit() var xo_dict = "xo_dict"; var dict_xo_test = "dict.xo_test"; var default_conn; var xo_dict_conn; function main() { prin...
<commit_before>#include "PackTexture.h" #include "check_params.h" #include <drag2d.h> #include <easytexpacker.h> namespace edb { std::string PackTexture::Command() const { return "pack-tex"; } std::string PackTexture::Description() const { return "pack texture"; } std::string PackTexture::Usage() const { std::s...
<commit_before>/* * Copyright 2015 Twitter, 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 la...
<commit_before>/************************************************************************* * * $RCSfile: localedatawrapper.hxx,v $ * * $Revision: 1.6 $ * * last change: $Author: er $ $Date: 2000-11-04 21:46:24 $ * * The Contents of this file are made available subject to the terms of * either of the follow...
<commit_before><commit_msg>Fixed: Fail on HTTP codes >=400<commit_after><|endoftext|>
<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>#pragma once #include "includes.hpp" #define TAGLIB_STATIC #include <taglib/fileref.h> #include <taglib/tag.h> #include <taglib/tpropertymap.h> class playlist : public Component, public FileDragAndDropTarget { struct playlistModel : public TableListBoxModel { base::string paths, talbum, tartist, ...
<commit_before>//------------------------------------------- // // Example of the use of Adaptors // to get access to the red component // of an RGB image // //------------------------------------------- #include <itkImage.h> #include <itkIndex.h> #include <itkImageRegionSimpleIterator.h> #include <itkImageAdaptor...
<commit_before>#include "gtest/gtest.h" #include <Utils/TestUtils.h> #include <Tasks/BasicTasks/BriefTask.h> using namespace Hearthstonepp; TEST(BriefTask, GetTaskID) { BasicTasks::BriefTask brief; EXPECT_EQ(brief.GetTaskID(), +TaskID::BRIEF); } TEST(BriefTask, Run) { BasicTasks::BriefTask brief; Te...
<commit_before> #include "DynamixelInterface.h" #include <SoftwareSerial.h> // define TXEN, RXEN and RXCIE #if !defined(TXEN) #if defined(TXEN0) #define TXEN TXEN0 #define RXEN RXEN0 #define RXCIE RXCIE0 #elif defined(TXEN1) // Some devices have uart1 but no uart0 (leonardo) #define TXEN TXEN1 #define RXEN RXEN1 #defi...
<commit_before>/************************************************************************* * * $RCSfile: cclass_unicode.cxx,v $ * * $Revision: 1.7 $ * * last change: $Author: obo $ $Date: 2004-09-08 15:25:43 $ * * The Contents of this file are made available subject to the terms of * either of the followin...
<commit_before>/************************************************************************* * * $RCSfile: transliteration_Ignore.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: khong $ $Date: 2002-09-16 16:31:37 $ * * The Contents of this file are made available subject to the terms of * either of th...
<commit_before>// // CompositeTileImageProvider.cpp // G3MiOSSDK // // Created by Diego Gomez Deck on 4/23/14. // // #include "CompositeTileImageProvider.hpp" #include "TileImageListener.hpp" #include "Tile.hpp" #include "CompositeTileImageContribution.hpp" #include "IFactory.hpp" #include "ICanvas.hpp" #include "I...
<commit_before>//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // author: Manasij Mukherjee <manasij7479@gmail.com> // author: Vassil Vassilev <vvasilev@cern.ch> // // This file is dual-licensed: you can choose to license it under the Uni...
<commit_before>/* * Copyright (c) 2003-2009, John Wiegley. 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,...
<commit_before>/// /// @file primesum.cpp /// @brief primesum C++ API /// /// 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 <primesum-internal.hpp> #include <primesum.hpp> #include <pr...
<commit_before>// @(#)root/base:$Id$ // Author: Fons Rademakers 11/10/95 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
<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>#ifndef PLATE2D_HPP #define PLATE2D_HPP #include <wx/wxprec.h> #ifndef WX_PRECOMP #include <wx/wx.h> #endif #include <wx/datetime.h> #include <vector> #include <functional> #include "Plater.hpp" #include "ColorScheme.hpp" #include "Settings.hpp" #include "Plater/Plater2DObject.hpp" #include "misc_ui...
<commit_before>/* The OpenTRV project licenses this file to you under the Apache Licence, Version 2.0 (the "Licence"); you may not use this file except in compliance with the Licence. You may obtain a copy of the Licence at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in w...
<commit_before>// @(#)root/base:$Id$ // Author: Rene Brun 05/09/99 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
<commit_before>// AMX profiler for SA-MP server: http://sa-mp.com // // Copyright (C) 2011 Sergey Zolotarev // // 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.ap...
<commit_before>////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2016, Image Engine Design Inc. All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met:...
<commit_before>/*************************************************************************** * Copyright (C) 2005-2008 by the FIFE team * * http://www.fifengine.de * * This file is part of FIFE. ...
<commit_before>/* This file is part of KContactManager. Copyright (c) 2007 Tobias Koenig <tokoe@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 the L...
<commit_before>/* $Id: $ * * Copyright (C) 2013 by the deal.II authors * * This file is subject to QPL and may not be distributed * without copyright and license information. Please refer * to the file deal.II/doc/license.html for the text and * further information on this license. */ // @sect3{Include fil...
<commit_before>/********************************************************/ /* Routines generales de gestion des commandes usuelles */ /********************************************************/ /* controle.cpp */ #include "fctsys.h" #include "common.h" #include "class_drawpanel.h" #include "pcbnew.h" #include "wxPcbStr...
<commit_before> /** * PyOtherSide: Asynchronous Python 3 Bindings for Qt 5 * Copyright (c) 2014, Dennis Tomas <den.t@gmx.de> * * Permission to use, copy, modify, and/or distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission ...
<commit_before>/* * test1.cpp * * Created on: Jun 15, 2013 * Author: alo */ #include "gtest/gtest.h" int main (int argc, char **argv) { ::testing::InitGoogleTest(&argc, argv); return RUN_ALL_TESTS(); } <commit_msg>Adds a example test<commit_after>/* * test1.cpp * * Created on: Jun 15, 2013 * ...
<commit_before>/* * test1.cxx * * $Id$ * */ #ifdef _MSC_VER // Disable long symbol name warning on MSVC++ #pragma warning(disable:4786) #endif #include <tptlib/buffer.h> #include <tptlib/parse.h> #include <iostream> #include <stdexcept> #include <sstream> #include <cstring> #include <cstdio> #include <cstdlib> ...
<commit_before>#include "gui.hh" namespace GUI { void HUD::Tick() { // TODO: update with score } void HUD::Draw() { Cell::Cell cell(' ', this->health_bar_color_, this->health_bar_color_); auto width = this->graphics_->width(); auto height = this->graphics_->height(); thi...
<commit_before><commit_msg>beautified expr. in a comment<commit_after><|endoftext|>
<commit_before>#pragma once #include "apple_hid_usage_tables.hpp" #include "constants.hpp" #include "hid_report.hpp" #include "human_interface_device.hpp" #include "iokit_user_client.hpp" #include "local_datagram_client.hpp" #include "logger.hpp" #include "userspace_defs.h" #include "virtual_hid_manager_user_client_me...
<commit_before>#include <shogun/mathematics/linalgrefactor/GPUBackend.h> #include <shogun/mathematics/linalgrefactor/GPUArray.h> #ifdef HAVE_VIENNACL #include <viennacl/vector.hpp> #include <viennacl/linalg/inner_prod.hpp> #endif namespace shogun { template <typename T> T GPUBackend::dot(const GPUVector<T> &a, const...
<commit_before>// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 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 "intro.h...
<commit_before>// Copyright (c) 2011-2015 The Bitcoin Core developers // Copyright (c) 2014-2021 The Dash Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include <config/dash-config.h>...
<commit_before>#include <LD30/Entity/Player.hpp> #include <SFML/Window.hpp> #include <iostream> #include <cmath> ld::Player::Player(sf::RenderWindow &window) :Entity(window) { m_direction = sf::Vector2f(0,0); } ld::Player::~Player() { } void ld::Player::update(const float delta) { keyInput(delta); const float ma...
<commit_before>/* * 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. */ // ForcedDebugDlg.cpp : t@C // #incl...
<commit_before>#ifndef RECOMBINATION_DEF_HPP_ #define RECOMBINATION_DEF_HPP_ #include <cassert> #include "clotho/powerset/variable_subset.hpp" #include "clotho/utility/bit_walker.hpp" namespace clotho { namespace recombine { template < class Sequence, class Classifier > class recombination; template < class Elemen...
<commit_before>//===--- DeclSerialization.cpp - Serialization of Decls ---------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file was developed by Ted Kremenek and is distributed under // the University of Illinois Open Source License. See LICENSE.TXT for details. // //===------...
<commit_before>// Copyright (c) 2008, Google 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: // // * Redistributions of source code must retain the above copyright // notice, thi...
<commit_before>/** * \file * \brief ThreadControlBlock class header * * \author Copyright (C) 2014-2015 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info * * \par License * 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 * di...
<commit_before>/* * Copyright (c) 2015 The WebRTC 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 in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS....
<commit_before>#include "EjectOSD.h" #include <Dbt.h> #include "..\HotkeyInfo.h" #include "..\Monitor.h" #include "..\Skin.h" #include "..\SkinManager.h" EjectOSD::EjectOSD() : OSD(L"3RVX-EjectDispatcher"), _mWnd(L"3RVX-EjectOSD", L"3RVX-EjectOSD") { Skin *skin = SkinManager::Instance()->CurrentSkin(); if ...
<commit_before>#include <stdexcept> #include "InputFeature.h" #include "moses/Util.h" #include "moses/ScoreComponentCollection.h" #include "moses/InputPath.h" #include "moses/StaticData.h" #include "moses/TranslationModel/PhraseDictionaryTreeAdaptor.h" using namespace std; namespace Moses { InputFeature *InputFeature...
<commit_before>// Copyright since 2016 : Evgenii Shatunov (github.com/FrankStain/jnipp-test) // Apache 2.0 License #include <main.h> #include <gtest/gtest.h> #define DECLARE_TEST_ENV( TYPE, NAME ) \ Jni::ClassHandle class_handle{ "com/pfs/jnipptest/TestStaticFieldStorage" }; \ ...
<commit_before>#include "ballDetector.h" using namespace std; using namespace cv; BallDetector::BallDetector(Camera* cam) { _state=BD_RUNNING; initKalmanFilter(); //Calibrage caméra Mat distCoeffs=(Mat_<double>(5,1) << -4.4806416419013684e-01,4.1928815312056306e-01,0,0,-4.8777148182526148e-01); Mat cameraMatri...
<commit_before>/* * Copyright (c) 2003 The Regents of The University of Michigan * 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 copyri...
<commit_before>/** \file * \brief routines for calculating the lensing properties of a non-singular isothermal ellipsoid * written by R.B. Metcalf, March 18, 2009 * based on the analytic solutions of Kormann et al. 1993 * convention here is gamma_1 = -(Axx-Ayy)/2 and gamma_2= -Axy */ #include "base_analens.h" /**...
<commit_before>#ifndef ARBITER_IS_AMALGAMATION #include <arbiter/drivers/google.hpp> #endif #ifdef ARBITER_OPENSSL #include <openssl/evp.h> #include <openssl/err.h> #include <openssl/pem.h> #include <openssl/rsa.h> #include <openssl/sha.h> #endif #ifndef ARBITER_IS_AMALGAMATION #include <arbiter/arbiter.hpp> #include...
<commit_before>// kmfolderdia.cpp #include <assert.h> #include <qdir.h> #include <qfile.h> #include <qlabel.h> #include <qlayout.h> #include <qlineedit.h> #include <qlistbox.h> #include <qpushbutton.h> #include <qstring.h> #include <qtextstream.h> #include <klocale.h> #include <kmessagebox.h> #include "kmmainwin.h"...
<commit_before>/* * KMTopLevelWidget class implementation * * Copyright (C) 1998 Stefan Taferner * * 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 ...
<commit_before>/** * linklocator.cpp * * Copyright (c) 2002 Dave Corrie <kde@davecorrie.com> * * This file is part of KMail. * * KMail 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 versio...
<commit_before>#include "Network.IRC.Server.hpp" #include "Network.IRC.Replies.hpp" #include <QtCore/QDebug> #include <QtCore/QCoreApplication> #include <QtCore/QRegularExpression> namespace Network { namespace IRC { Server::Server(QString hostname, int port, QObject *parent) : QObject(parent)...
<commit_before>/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * */ #include <quic/codec/Types.h> #include <quic/QuicException.h> namespace quic { LongHeaderInvariant::LongHeaderI...
<commit_before>/* This file is part of Kontact. Copyright (C) 2003 Tobias Koenig <tokoe@kde.org> Copyright (C) 2004 Reinhold Kainhofer <reinhold@kainhofer.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...
<commit_before><commit_msg>(Identical to 159254 which I had in a messed up client) Fix an off-by-one in the zip filename reading code. It's pretty harmless, and caused by a fairly lousy minizip API. It could lead to an out-of-bounds read due to lack of null termination. No way to reliably test.<commit_after><|endoftext...
<commit_before>/** \brief Parses XML and generates MARC-21 data. * \author Dr. Johannes Ruscheinski (johannes.ruscheinski@uni-tuebingen.de) * * \copyright 2016 Universitätsbiblothek Tübingen. All rights reserved. * * This program is free software: you can redistribute it and/or modify * it under the terms of...
<commit_before>/** \file Elasticsearch.cc * \brief Implementation of the Elasticsearch class. * \author Dr. Johannes Ruscheinski * \author Mario Trojan * * \copyright 2018,2019 Universitätsbibliothek Tübingen. All rights reserved. * * This program is free software: you can redistribute it and/or mod...
<commit_before>/** \file rss_subset_aggregator.cc * \brief Aggregates RSS feeds. * \author Dr. Johannes Ruscheinski (johannes.ruscheinski@uni-tuebingen.de) * * \copyright 2021 Universitätsbibliothek Tübingen. All rights reserved. * * This program is free software: you can redistribute it and/or modify * ...
<commit_before>/** \file rss_subset_aggregator.cc * \brief Aggregates RSS feeds. * \author Dr. Johannes Ruscheinski (johannes.ruscheinski@uni-tuebingen.de) * * \copyright 2021 Universitätsbibliothek Tübingen. All rights reserved. * * This program is free software: you can redistribute it and/or modify * ...
<commit_before>/* Copyright (c) 2008, Arvid Norberg 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, this list of condi...
<commit_before>#include "catch.hpp" #include "util.h" #include <tokenizer.h> #include <grammar_loader.h> using namespace shl; TEST_CASE("Tokenizer Tests") { Tokenizer tokenizer; GrammarLoader loader; SECTION("can load grammar and tokenizer string") { string data = load_string("fixture/hello.json"...
<commit_before>// Copyright (c) 2017 Franka Emika GmbH // Use of this source code is governed by the Apache-2.0 license, see LICENSE #include <array> #include <atomic> #include <cmath> #include <functional> #include <iostream> #include <iterator> #include <mutex> #include <thread> #include <franka/duration.h> #include...
<commit_before>// Copyright (C) 2016 Elviss Strazdins // This file is part of the Ouzel engine. #include <random> #include "CompileConfig.h" #if defined(OUZEL_PLATFORM_OSX) || defined(OUZEL_PLATFORM_IOS) || defined(OUZEL_PLATFORM_TVOS) #include <sys/time.h> #endif #if defined(OUZEL_PLATFORM_IOS) || defined(OUZEL_PLA...
<commit_before>//===-- UnreachableBlockElim.cpp - Remove unreachable blocks for codegen --===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // author: Manasij Mukherjee <manasij7479@gmail.com> // author: Vassil Vassilev <vvasilev@cern.ch> // // This file is dual-licensed: you can choose to license it under the Uni...
<commit_before>#include <iterator> #include <list> #include <numeric> #include <vector> #include <cassert> #include "RandomPermuter.h" namespace fs_testing { namespace permuter { using std::advance; using std::iota; using std::list; using std::mt19937; using std::uniform_int_distribution; using std::vector; using f...
<commit_before>#include "QDataAnalysisView.h" #include "QAction" #include "QHeaderView" #include <algorithm> #include "simvis/color.h" #include "xo/system/log.h" #include "xo/utility/types.h" #include "qtfx.h" #include <array> #include "xo/system/log.h" #include "xo/container/sorted_vector.h" #include "xo/numerical/con...
<commit_before>#include "stdafx.h" // From: http://forum.sysinternals.com/howto-enumerate-handles_topic18892.html #include <stdio.h> #include "FileHandles.h" #ifndef UNICODE #define UNICODE #endif #define NT_SUCCESS(x) ((x) >= 0) #define STATUS_INFO_LENGTH_MISMATCH 0xc0000004 #define SystemHandleInformation 16 #de...
<commit_before>#include <array> #include <fstream> #include <iostream> #include "png/png.h" #include "png/zlib.h" #include "RaZ/Utils/Image.hpp" namespace Raz { namespace { const uint8_t PNG_HEADER_SIZE = 8; bool validatePng(std::istream& file) { std::array<png_byte, PNG_HEADER_SIZE> header {}; file.read(reint...
<commit_before>#include "selection.hh" #include "utf8.hh" #include "buffer_utils.hh" namespace Kakoune { void Selection::merge_with(const Selection& range) { m_cursor = range.m_cursor; if (m_anchor < m_cursor) m_anchor = std::min(m_anchor, range.m_anchor); if (m_anchor > m_cursor) m_ancho...
<commit_before>//===--- CrashRecoveryContext.cpp - Crash Recovery ------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>#include "grid.h" #include "cell.h" #include "gtest/gtest.h" #include "unit/test_util.h" namespace bdm { template <typename TContainer> void CellFactory(TContainer* cells, size_t cells_per_dim) { const double space = 20; cells->reserve(cells_per_dim * cells_per_dim * cells_per_dim); for (size_t i...
<commit_before>//===-- MipsISelDAGToDAG.cpp - A dag to dag inst selector for Mips --------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>//===-- LoopUnroll.cpp - Loop unroller pass -------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>// SampSharp // Copyright 2018 Tim Potze // // 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 appli...
<commit_before>#include "stdafx.h" #include "unzip.h" #include "Resource.h" #include "UpdateRunner.h" void CUpdateRunner::DisplayErrorMessage(CString& errorMessage) { CTaskDialog dlg; // TODO: Something about contacting support? dlg.SetCommonButtons(TDCBF_OK_BUTTON); dlg.SetMainInstructionText(L"Installation has ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: XMLShapeStyleContext.cxx,v $ * * $Revision: 1.16 $ * * last change: $Author: rt $ $Date: 2007-01-29 14:48:30 $ * * The Contents of this f...
<commit_before>/* * The Apache Software License, Version 1.1 * * Copyright (c) 1999-2001 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. Redistr...
<commit_before>// Intercept the implicit 'this' argument of class member functions. // // RUN: %clangxx_xray -g -std=c++11 %s -o %t // RUN: rm log-args-this-* || true // RUN: XRAY_OPTIONS="patch_premain=true verbosity=1 xray_logfile_base=log-args-this-" %run %t // // XFAIL: freebsd | arm || aarch64 || mips // UNSUPPORT...
<commit_before>// Time: O(1) // Space: O(1) class Solution { public: int bulbSwitch(int n) { return static_cast<int>(sqrt(n)); } }; <commit_msg>Update bulb-switcher.cpp<commit_after>// Time: O(1) // Space: O(1) class Solution { public: int bulbSwitch(int n) { // The number of full square...
<commit_before>// Copyright 2018 Google LLC // // 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 applicable law o...
<commit_before><commit_msg>linux: make NSS version check non-fatal<commit_after><|endoftext|>
<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. // Windows Timer Primer // // A good article: http://www.ddj.com/windows/184416651 // A good mozilla bug: http://bugzilla.mozilla.or...
<commit_before>#ifndef MS_RTC_RTP_STREAM_HPP #define MS_RTC_RTP_STREAM_HPP #include "common.hpp" #include "json.hpp" #include "RTC/RTCP/FeedbackPsFir.hpp" #include "RTC/RTCP/FeedbackPsPli.hpp" #include "RTC/RTCP/FeedbackRtp.hpp" #include "RTC/RTCP/FeedbackRtpNack.hpp" #include "RTC/RTCP/Packet.hpp" #include "RTC/RTCP/...
<commit_before>#include "rudp/rudp_send_buffer.h" #include "revolver/base_timer_value.h" #include "rudp/rudp_log_macro.h" #include "rudp/rudp_ccc.h" #include <math.h> BASE_NAMESPACE_BEGIN_DECL #define DEFAULT_RUDP_SEND_BUFFSIZE 4096 #define NAGLE_DELAY 100 RUDPSendBuffer::RUDPSendBuffer() : net_channel_(NULL) ,...
<commit_before>#include "SymbianDTMFPrivate.h" #include "SymbianCallInitiator.h" SymbianDTMFPrivate::SymbianDTMFPrivate(SymbianCallInitiator *p) : CActive(EPriorityNormal) , parent (p) { }//SymbianDTMFPrivate::SymbianDTMFPrivate SymbianDTMFPrivate::~SymbianDTMFPrivate () { Cancel(); parent = NULL; }//SymbianD...
<commit_before>/************************************************************************* * * $RCSfile: AccessibleShapeTreeInfo.cxx,v $ * * $Revision: 1.6 $ * * last change: $Author: af $ $Date: 2002-05-22 08:19:30 $ * * The Contents of this file are made available subject to the terms of * either of the ...
<commit_before>/* * Copyright 2011 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" #include "SkShader.h" #include "SkTraceEvent.h" using namespace skiagm; GM::GM() { fMode = kGM_Mode; fBGColo...
<commit_before>//===- PDB.cpp ------------------------------------------------------------===// // // The LLVM Linker // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------...
<commit_before>/** * Provides the TicTacToe GameState example in the GQE library. * * @file examples/demo/GameState.cpp * @author Ryan Lindeman * @date 20110704 - Initial Release * @date 20110721 - Remove * from GetAsset() calls since it now returns TYPE& * @date 20110831 - Support new SFML2 snapshot chan...