text
stringlengths
54
60.6k
<commit_before>/* Copyright (C) 2015 Cotton Seed This file is part of arachne-pnr. Arachne-pnr is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the h...
<commit_before>#include "types.h" #include "amd64.h" #include "kernel.hh" #include "cpu.hh" #include "gc.hh" #include "percpu.hh" #include "spinlock.h" #include "condvar.h" #include "proc.hh" #include "uwq.hh" #include "vm.hh" #include "kalloc.hh" #include "bits.hh" extern "C" { #include "kern_c.h" } bool uwq_trywork(...
<commit_before>#include"all_defines.hpp" #include"objects.hpp" #include"heaps.hpp" #include"types.hpp" #include<cstdlib> #include<stdint.h> /*----------------------------------------------------------------------------- Semispaces -----------------------------------------------------------------------------*/ Semisp...
<commit_before>/** * Clever programming language * Copyright (c) 2011-2012 Clever Team * * 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 limita...
<commit_before>#ifndef __NODE_OSRM_QUERY_H__ #define __NODE_OSRM_QUERY_H__ // v8 #include <v8.h> // node #include <node.h> #include <node_version.h> #include <node_object_wrap.h> #include <osrm/OSRM.h> using namespace v8; namespace node_osrm { typedef boost::shared_ptr<RouteParameters> route_parameters_ptr; clas...
<commit_before>// Copyright (C) 2009, 2010 by Thomas Moulard, CNRS. // // This file is part of the hppWalkFootPlanner. // // hppWalkFootPlanner 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 v...
<commit_before>#include "space.h" #include "display.h" #include "window.h" #include "tree.h" #include "border.h" #include "keys.h" #include "notifications.h" #include "helpers.h" extern kwm_mach KWMMach; extern kwm_tiling KWMTiling; extern kwm_screen KWMScreen; extern kwm_focus KWMFocus; extern kwm_toggles KWMToggles;...
<commit_before>/* * Copyright (c) 2011-2013, "Kira" * 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. Redistributions of source code must retain the above copyright notice, this * ...
<commit_before>/* =========================== * * Copyright (c) 2013 Philippe Tillet - National Chiao Tung University * * curveica - Hybrid ICA using ViennaCL + Eigen * * License : MIT X11 - See the LICENSE file in the root folder * ===========================*/ #include "tests/benchmark-utils.hpp" ...
<commit_before>#include <limits> #include <algorithm> #include <tr1/array> #include <cstdlib> #include "conversions.h" #include "chars.h" #include "ustringpiece.h" #include "jsarray.h" #include "jsobject.h" #include "property.h" #include "jsstring.h" #include "context.h" #include "class.h" namespace iv { namespace lv5...
<commit_before>#include <main.h> #include <string> #include <stdio.h> #include <stdlib.h> #include <Modules.h> #include <IRCSock.h> #include <User.h> #include <Nick.h> #include <Chan.h> class CMailer : public CModule { protected: CUser *user; public: MODCONSTRUCTOR(CMailer) { user = GetUser(); ...
<commit_before>#include "defs.h" #include "search.h" #include "eval.h" #include "movegen.h" #include "transptable.h" #include <string> #include <algorithm> #include <time.h> #include <iostream> Search::Search(const Board& board, bool logUci) { _logUci = logUci; _board = board; } void Search::perform(int depth) { ...
<commit_before>#include "solver.h" #include <map> #include <vector> // ----------------------------------------------------------------------------- cyclus::Solver::Solver() { index_ = std::map<cyclus::VariablePtr, int>(); } // ----------------------------------------------------------------------------- void cycl...
<commit_before>#include "sound.hpp" #include "oddlib/audio/SequencePlayer.h" #include "core/audiobuffer.hpp" #include "logger.hpp" #include "resourcemapper.hpp" #include "audioconverter.hpp" #include "alive_version.h" SoundCache::SoundCache(OSBaseFileSystem& fs) : mFs(fs) { } void SoundCache::Sync() { mSound...
<commit_before>#include "string.hh" #include "exception.hh" #include "containers.hh" #include "utf8_iterator.hh" #include <cstdio> namespace Kakoune { Vector<String> split(StringView str, char separator, char escape) { Vector<String> res; auto it = str.begin(); while (it != str.end()) { res....
<commit_before>#include <iostream> #include "tools.h" #include "division_by_zero_exception.h" using Eigen::VectorXd; using Eigen::MatrixXd; using std::vector; Tools::Tools() {} Tools::~Tools() {} VectorXd Tools::CalculateRMSE(const vector<VectorXd> &estimations, const vector<VectorXd>...
<commit_before>#include <cmath> #include <iostream> #include "types.hpp" field::field(std::size_t h, std::size_t w){ this->width = w; this->height = h; this->f = std::vector< std::vector < bool > >(h); for (std::size_t i = 0; i < h; ++i) this->f[i].assign(w, false); } std::vector< bool > & fie...
<commit_before>/*! \file uqueue.cc ******************************************************************************* File: uqueue.cc\n Implementation of the UQueue class. This file is part of %URBI Kernel, version __kernelversion__\n (c) Jean-Christophe Baillie, 2004-2005. Permission to use, copy, modify, and r...
<commit_before>/* * Copyright (c) 2015 Daniel Kirchner * * 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, mod...
<commit_before>#include <string> #include <sstream> #include <unistd.h> // sysconf()? #include <sys/sysinfo.h> #include <linux/kernel.h> // SI_LOAD_SHIFT #include "../luts.h" std::string load_string( bool use_colors = false ) { std::ostringstream oss; float f = static_cast<float>(1 << SI_LOAD_SHIFT); struc...
<commit_before>#include <regex> #include <ctime> #include "tools.h" void validarCedula(std::string cedula) { std::regex cedulaRegex("\\d{10}"); if (!std::regex_match(cedula, cedulaRegex)) throw "Cédula no válida"; } void validarTelefono(std::string telefono) { std::regex telefonoRegex("\\d{10}"...
<commit_before>#define __CL_ENABLE_EXCEPTIONS #define _IN_HOST #include <CL/cl.hpp> #include <unistd.h> #include <iostream> #include <fstream> #include <string> #include <vector> #include <deque> #include <bitset> #include "DeviceInfo.h" #include "SharedMacros.h" #include "SharedTypes.h" #include "Packet.h" const cha...
<commit_before>// symbiosis: A hacky and lightweight compiler framework // #include "symbiosis.hpp" #include <sys/stat.h> #include <iostream> #include <vector> using namespace std; namespace symbiosis { bool am_i_pic = false; class exception : public std::exception { const char *what_; public: excep...
<commit_before>// symbiosis: A framework for toy compilers // #include "symbiosis.hpp" #include <sys/stat.h> #include <iostream> #include <vector> #include <functional> #include "cpu_defines.hpp" using namespace std; namespace symbiosis { void dump(uchar* start, size_t s) { for (size_t i = 0; i < s; i++) { ...
<commit_before>/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */ /* * Main authors: * Guido Tack <guido.tack@monash.edu> */ /* 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 ...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2013 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>/* Copyright (c) 2016 Tobias Koelsch * * 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, modify,...
<commit_before>#include "catch.hpp" #include "etl/fast_vector.hpp" #include "etl/fast_matrix.hpp" #include "etl/dyn_vector.hpp" #include "etl/dyn_matrix.hpp" #include "etl/stop.hpp" TEST_CASE( "stop/fast_vector_1", "stop<unary<fast_vec>>" ) { using mat_type = etl::fast_vector<double, 4>; mat_type test_vector(...
<commit_before>#include <iostream> #include <sstream> #include <string> #include "encoding/enum.hpp" #include "encoding/integer.hpp" #include "encoding/float.hpp" #include "encoding/input.hpp" #include "encoding/output.hpp" using namespace std; int main(void) { encoding::UnsignedIntegerCodec c1(16); cout << c1....
<commit_before>#include "../src/util.h" #include "test.h" using namespace Helium; void test_factorial() { COMPARE(1, factorial(0)); COMPARE(1, factorial(1)); COMPARE(2, factorial(2)); COMPARE(6, factorial(3)); COMPARE(24, factorial(4)); } void test_num_combinations() { COMPARE(8, num_combinations(8, 1))...
<commit_before>#include <bitcoin/network/network.hpp> #include <bitcoin/util/logger.hpp> #include <atomic> #include <functional> #include <iostream> using std::placeholders::_1; using std::placeholders::_2; using namespace libbitcoin; void error_exit(const std::string& message, int status=1) { log_error() << "ne...
<commit_before>/* Copyright (c) 2016, Vlad Meșco 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 conditions and th...
<commit_before>/** * This file is part of the CernVM File System */ #define __STDC_FORMAT_MACROS #include "sync_union_tarball.h" #include <pthread.h> #include <cassert> #include <cstdio> #include <list> #include <set> #include <string> #include <vector> #include "duplex_libarchive.h" #include "fs_traversal.h" #i...
<commit_before>/* * Copyright (C) 2005-2017 Centre National d'Etudes Spatiales (CNES) * * This file is part of Orfeo Toolbox * * https://www.orfeo-toolbox.org/ * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may ob...
<commit_before>// Copyright 2014 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 "skia/ext/pixel_ref_utils.h" #include <algorithm> #include "third_party/skia/include/core/SkBitmapDevice.h" #include "third_part...
<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 "skia/ext/platform_canvas.h" #include "skia/ext/bitmap_platform_device.h" #include "third_party/skia/include/core/SkType...
<commit_before>/************************************************************************* * * $RCSfile: documentdigitalsignatures.cxx,v $ * * $Revision: 1.16 $ * * last change: $Author: rt $ $Date: 2004-11-26 14:50:46 $ * * The Contents of this file are made available subject to the terms of * either of t...
<commit_before>#include "ReversedCoaxialRZ.h" #include "iostream" #include "Units.h" #include <cmath> using namespace GeFiCa; void ReversedCoaxialRZ::SetupBoundary() { double x1=HoleOutterR, y1=Z, x2=HoleInnerR, y2=Z-HoleZ, x3=Radius-ConnorLength, y3=Z, x4=Radius, y4=Z-ConnorZ; // y = k x + b...
<commit_before>#include "SecondaryWindows.h" FenetreNewGame::FenetreNewGame() { setWindowTitle("Nouvelle partie"); setWindowIcon(QIcon(QPixmap(":/resources/icon_big.png"))); setFixedSize(300, 240); QGridLayout *grid1 = new QGridLayout(); QGridLayout *grid2 = new QGridLayout(); group1 = new QGroupBox()...
<commit_before>#include "hyperclient/hyperclient.h" #include <iostream> using namespace std; int main() { cout<<"test start "<<endl; //define hyper attribute hyperclient_attribute test_attr[3]; test_attr[0].attr = "phone"; test_attr[0].value = "123455"; test_attr[0].value_sz = strlen(test_att...
<commit_before>#include "StageSelectState.h" #include "MenuState.h" #include "EditState.h" #include "CharacterSelectState.h" #include "Game.h" #include <string> #include <cstdlib> using std::to_string; StageSelectState::StageSelectState(bool cgo_to_edit) { planet = Sprite("stage_select/planet.png", 8, FRAME_TIME);...
<commit_before>#include "mainwindow.h" #include "ui_mainwindow.h" #include "version.h" #include <QFileDialog> #include <QMessageBox> #include <QCloseEvent> #include <QMimeData> #include <QUrl> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow), speedDialMemory(0), settings(QSetti...
<commit_before>// Copyright (c) 2012 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 "base/file_util_proxy.h" #include <map> #include "base/bind.h" #include "base/logging.h" #include "base/memory/weak_ptr.h" #...
<commit_before>/* * Adapted from the Willow Garage pose_graph package by Paul Furgale on October 22, 2010. * * Original file: * Copyright (c) 2008, Willow Garage, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the f...
<commit_before>// Author: Enrico Guiraud, Danilo Piparo CERN 09/2017 /************************************************************************* * Copyright (C) 1995-2016, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
<commit_before>#include "stdafx.h" #include "rdostudioframeview.h" #include "rdostudioframedoc.h" #include "rdostudiomodel.h" #include "rdostudioapp.h" #include "rdostudiomainfrm.h" #ifdef _DEBUG #define new DEBUG_NEW #undef THIS_FILE static char THIS_FILE[] = __FILE__; #endif // -------------------------------------...
<commit_before>/* The MIT License (MIT) Copyright (c) 2013-2014 winlin 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 <iconv.h> #include <v8.h> #include <node.h> #include <node_buffer.h> #include <cstring> #include <cerrno> #include <cstdio> using namespace v8; using namespace node; namespace { class Iconv: public ObjectWrap { public: static void Initialize(Handle<Object>& target); static Handle<Value>...
<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/privacy_blacklist/blacklist_manager.h" #include "base/command_line.h" #include "chrome/browser/browser.h" #in...
<commit_before>/* * Swift Parallel Scripting Language (http://swift-lang.org) * * Copyright 2012-2014 University of Chicago * * 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 * * htt...
<commit_before>#include <iostream> #include <boost/lexical_cast.hpp> #include <boost/fusion/adapted.hpp> #include "restc-cpp/restc-cpp.h" #include "restc-cpp/RequestBuilder.h" #include "restc-cpp/IteratorFromJsonSerializer.h" using namespace std; using namespace restc_cpp; // C++ structure that match the Json entri...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: hfi_struct.cxx,v $ * * $Revision: 1.8 $ * * last change: $Author: vg $ $Date: 2007-09-18 13:59:06 $ * * The Contents of this file are mad...
<commit_before>#include <cstdio> long int f[39]; long int r[39]; long int fib(long int n) { if (f[n] != -1) return f[n]; if (n <= 1) { f[n] = n; } else { f[n] = fib(n - 1) + fib(n - 2); if (n >= 3) r[n] = r[n - 1] + r[n - 2] + 2; } return f[n]; } int ma...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * 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 ...
<commit_before>/* * Copyright (C) 2010 Bolloré telecom * * Author: * Jeremy Lainé * * Source: * http://code.google.com/p/qxmpp * * This file is a part of QXmpp library. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License a...
<commit_before>#pragma once #include <Eigen/Core> #include <Eigen/Sparse> #include <vector> #include "stiffness_matrix.hpp" //! Sparse Matrix type. Makes using this type easier. typedef Eigen::SparseMatrix<double> SparseMatrix; //! Used for filling the sparse matrix. typedef Eigen::Triplet<double> Triplet; //------...
<commit_before>/** @file gsBoundaryConditions_test.cpp @brief test gsPde/gsBoundaryConditions This file is part of the G+Smo library. 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...
<commit_before>/** * PUC-Rio 2015.2 * INF1339 - Computação Gráfica Tridimensional * Professor: Waldemar Celes * Gabriel de Quadros Ligneul 1212560 * Trabalho - Projeto de Grafo de Cena */ #include <algorithm> #include <cmath> #include <GL/gl.h> #include <GL/glut.h> #include "Manipulator.h" #include "invertMatr...
<commit_before>#include <cmath> #include <cstdio> int main() { float h, s; scanf("%f", &h); scanf("%f", &s); printf("%.3f\n", h * s / 12.0); } <commit_msg>Format code<commit_after>#include <cmath> #include <cstdio> int main() { float h, s; scanf("%f", &h); scanf("%f", &s); printf("%....
<commit_before>#include <cmath> #include <iostream> #include <map> #include <string> #include <vector> int main() { int integer, number_of_digits, multiplier, current_digit; std::map<int, std::string> int_roman_base; std::string roman; std::vector<int> splitted_integer; int_roman_base[0] = ""; ...
<commit_before>#include "bench_framework.hpp" #include "compare_images.hpp" class test : public benchmark::test_case { std::shared_ptr<image_rgba8> im_; public: test(mapnik::parameters const& params) : test_case(params) { std::string filename("./benchmark/data/multicolor.png"); std::unique...
<commit_before>#include <ctime> #include <iostream> #include <cstdlib> #include <iterator> #include <dariadb.h> #include <compression.h> #include <compression/delta.h> #include <compression/xor.h> #include <compression/flag.h> #include <ctime> #include <limits> #include <cmath> #include <chrono> int main(int argc, ch...
<commit_before>/***************************************************************************** * * This file is part of Mapnik (c++ mapping toolkit) * * Copyright (C) 2006 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>#include "Background.hpp" Background::Background() { } Background::Background(std::string lvlDesc) { init(lvlDesc); } Background::~Background() { } void Background::init(std::string lvlDesc) { readLevel(lvlDesc); _doors.setPosition(0,0); _background.setPosition(0,0); _background....
<commit_before>/* * Based on The New Chronotext Toolkit * Copyright (C) 2014, Ariel Malka - All rights reserved. * * Adaption to Alfons * Copyright (C) 2015, Hannes Janetzek * * The following source-code is distributed under the Simplified BSD License. */ #include "textBatch.h" #include "font.h" #include "alfo...
<commit_before>#include <QApplication> #include <QDeclarativeView> #include <QUrl> #include <qplatformdefs.h> #include <LunaWebView.h> #if defined(MEEGO_EDITION_HARMATTAN) #include <MDeclarativeCache> #define NEW_QAPPLICATION(x, y) MDeclarativeCache::qApplication((x), (y)) Q_DECL_EXPORT #else #define ...
<commit_before>/*========================================================================= * * Copyright RTK Consortium * * 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>/* * This file is part of the Micro Python project, http://micropython.org/ * * The MIT License (MIT) * * Copyright (c) 2015 Damien P. George * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to...
<commit_before>#include "adapted.h" #include <boost/date_time/posix_time/posix_time.hpp> namespace nt = navitia::type; namespace bg = boost::gregorian; namespace pt = boost::posix_time; namespace navimake{ void delete_vj(types::VehicleJourney* vehicle_journey, const nt::Message& message, Data& data){ //TODO on ...
<commit_before>#include "BigFont.h" #include "BigCrystal.h" BigCrystal::BigCrystal(uint8_t rs, uint8_t rw, uint8_t enable, uint8_t d0, uint8_t d1, uint8_t d2, uint8_t d3, uint8_t d4, uint8_t d5, uint8_t d6, uint8_t d7) : LiquidCrystal(rs, rw, enable, d0, d1, d2, d3, d4, d5, d6, d7) { init(); } BigCrysta...
<commit_before>#include <UnitTest++.h> #include "stdio_fixture.h" #include <string.h> SUITE(FGets) { TEST_FIXTURE(StdIOFixture, FGetsToEofTest) { istring.str("Hello"); char text_read[10]; char *str = fslc_fgets(text_read, 10, &stream); CHECK_EQUAL(tex...
<commit_before>/*========================================================================= Program: Bender Copyright (c) Kitware 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 ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: cppinterfaceproxy.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: rt $ $Date: 2005-09-07 22:09:33 $ * * The Contents of this file ...
<commit_before>// ParallelExecutionOfCommands.cpp : // This aplication aims to provide functionality for parallel execution of Behat commands. // //#include "stdafx.h" #include <iostream> #include <string> #include <cstring> #include <stdlib.h> //#include <unistd.h> #include <thread> using namespace std; int main()...
<commit_before>#include "GL_Widget.h" #include <QtOpenGL/QGLFunctions> ////////////////////////////////////////////////////////////////////////// GL_Widget::GL_Widget(QWidget* parent) : QGLWidget(QGLFormat(QGL::DepthBuffer | QGL::Rgba | QGL::NoStencilBuffer), parent) { //setAttribute(Qt::WA_PaintOnScreen);...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation (qt-info@nokia.com) ** ** This file is part of the config.tests of the Qt Toolkit. ** ** $QT_BEGIN_LI...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: DragMethod_Base.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: vg $ $Date: 2007-05-22 18:07:16 $ * * The Contents of this file ar...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: DataSeriesProperties.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: rt $ $Date: 2005-09-08 00:57:18 $ * * The Contents of this fi...
<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 "chrome/browser/chrome_quota_permission_context.h" #include <string> #include "base/bind.h" #include "base/utf_string_conver...
<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 "ConstantPropagationWholeProgramState.h" #include "IPConstantPropagationAnalysis.h" #include "Walkers.h" ...
<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/extensions/extension_install_ui.h" #include <map> #include "app/l10n_util.h" #include "app/resource_bundle.h...
<commit_before>//.............................................................................. // // This file is part of the Jancy toolkit. // // Jancy is distributed under the MIT license. // For details see accompanying license.txt file, // the public copy of which is also available at: // http://tibbo.com/dow...
<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/extensions/extension_install_ui.h" #include <map> #include "app/l10n_util.h" #include "app/resource_bundle.h...
<commit_before>/************************************************************************* * * $RCSfile: iconcache.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: obo $ $Date: 2005-04-20 11:42:13 $ * * The Contents of this file are made available subject to the terms of * either of the following lic...
<commit_before>// Copyright (c) 2014 Jae-jun Kang // See the file COPYING for license details. #include "xpiler.hpp" #include <boost/algorithm/string.hpp> #include <boost/foreach.hpp> #include "document.hpp" #include "boost_formatter.hpp" #include "xml_handler.hpp" using namespace std; namespace fs = boost::files...
<commit_before>#include <pistache/http_headers.h> #include <pistache/date.h> #include "gtest/gtest.h" #include <algorithm> #include <chrono> #include <iostream> using namespace Pistache::Http; TEST(headers_test, accept) { Header::Accept a1; a1.parse("audio/*; q=0.2"); { const auto& media = a1.m...
<commit_before>// RUN: %clang_cc1 -std=c++98 -fcxx-exceptions -verify %s // RUN: %clang_cc1 -std=c++11 -fcxx-exceptions -verify %s // RUN: %clang_cc1 -std=c++1y -fcxx-exceptions -fsized-deallocation -verify %s // RUN: %clang_cc1 -std=c++14 -fcxx-exceptions -fsized-deallocation -verify %s // RUN: %clang_cc1 -std=c++1z -...
<commit_before>/************************************************************************* * * $RCSfile: attriblistmerge.hxx,v $ * * $Revision: 1.1 $ * * last change: $Author: fs $ $Date: 2000-12-12 12:02:13 $ * * The Contents of this file are made available subject to the terms of * either of the followin...
<commit_before>// Copyright (c) 2012 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 "base/command_line.h" #include "base/prefs/pref_service.h" #include "base/utf_string_conversions.h" #include "chrome/browser/b...
<commit_before> #include <QVBoxLayout> #include <quartz_common/widgets/QzScroller.h> #include "QuartzWindow.h" namespace Vam { namespace Quartz { QuartzWindow::QuartzWindow( QWidget *parent ) : QMainWindow( parent ) { QWidget * widget = new QWidget( this ); QVBoxLayout *layout = new QVBox...
<commit_before>#define BOOST_TEST_DYN_LINK #define BOOST_TEST_MODULE JPetReaderTest #include <boost/test/unit_test.hpp> #define private public #define protected public #include <cstddef> #include <iostream> #include <vector> #include "../../JPetScopeReader/JPetScopeReader.h" #include "../../JPetSignal/JPetSignal.h" ...
<commit_before>#include <cmath> #include <cstdlib> #include <ctime> #include <string> #include <sstream> #include "StateSpace.h" #include "PriorityQueue.h" #include "State.h" #include "encoder.h" #include "CreateModule.h" /** * @brief Gives a std::string representation of a primitive type * * @param x Primitive ty...
<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 2004-2007 Torsten Rahn <tackat@kde.org> // Copyright 2007 Inge Wall...
<commit_before>/* * Telefónica Digital - Product Development and Innovation * * THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. * * Copyrig...
<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>/***************************************************************************** * adaptative.cpp: Adaptative streaming module ***************************************************************************** * Copyright © 2015 - VideoLAN and VLC Authors * * This program is free software; you can redistri...
<commit_before>// ======================================================================== // // Copyright 2009-2017 Intel Corporation // // // // Licensed under the Apache License, Version 2.0 (the "License"); ...
<commit_before>#include "audio/audio.hpp" #include "main/main.hpp" #include "world/world.hpp" #include "graphics/graphics.hpp" namespace Polarity { using namespace std; AudioFile *audioTest; AudioChannelPlayer *audioPlayer; bool buzzing = false; // TODO: bring this into a game state! you should buzz if you hav...
<commit_before>// @(#)root/gl:$Id$ // Author: Timur Pocheptsov 03/08/2004 // NOTE: This code moved from obsoleted TGLSceneObject.h / .cxx - see these // attic files for previous CVS history /************************************************************************* * Copyright (C) 1995-2006, Rene Brun and Fons Radem...
<commit_before>/*************************************************************************** * Copyright (c) 2016, Johan Mabille and Sylvain Corlay * * * * Distributed under the terms of the BSD 3-Clause License. ...