text
stringlengths
54
60.6k
<commit_before>// Scintilla source code edit control /** @file LineMarker.cxx ** Defines the look of a line marker in the margin . **/ // Copyright 1998-2003 by Neil Hodgson <neilh@scintilla.org> // The License.txt file describes the conditions under which this software may be distributed. #include <string.h> #incl...
<commit_before>#include "MainWindow.h" MainWindow::MainWindow(void) : BWindow(BRect(100,100,900,700),"MasterPiece",B_TITLED_WINDOW, B_ASYNCHRONOUS_CONTROLS, B_CURRENT_WORKSPACE) { BRect r(Bounds()); r.bottom = 20; mpMenuBar = new MenuBar(r); AddChild(mpMenuBar); rgb_color myColor = {215, 215, 215, 255}; fullV...
<commit_before>// MarkedList.cpp #include "stdafx.h" #include "MarkedList.h" #include "../interface/HeeksObj.h" #include "../interface/MarkedObject.h" #include "../interface/PropertyInt.h" #include "DigitizeMode.h" #include "SelectMode.h" #include "PointOrWindow.h" #include "GripperSelTransform.h" #include ...
<commit_before>/*===========================================================================*/ /* This file is part of a Mixed Integer Bilevel Solver */ /* developed using the BiCePS Linear Integer Solver (BLIS). */ /* ...
<commit_before>#include "MoveSystem.h" #include <iostream> #include <cmath> void MoveSystem::update(int currentStep) { const std::vector<int> &uidList = movementNode.uids(); for(int i = 0; i < uidList.size(); i++) { int uid = uidList.at(i); MovementNode &n = movementNode.get(uid); PositionComponent &p...
<commit_before>// ----------------------------------------------------------------- // libpion: a C++ framework for building lightweight HTTP interfaces // ----------------------------------------------------------------- // Copyright (C) 2007 Atomic Labs, Inc. // // This library is free software; you can redistribute...
<commit_before>#include "Rcpp_datatypes.h" #include <Rcpp.h> #include <s2/s2cap.h> using namespace Rcpp; // Wrap an S2Cap as a list in R with: // [[1]] The axis as a 3D unit vector // [[2]] The height as a numeric List S2CapWrapForR(const S2Cap& cap){ NumericVector axis(3); S2Point a = cap.axis(); axis[0] = a.x...
<commit_before>#include <Refal2.h> namespace Refal2 { //----------------------------------------------------------------------------- CRuleParser::CRuleParser( IErrorHandler* errorHandler ): CQualifierParser( errorHandler ) { Reset(); } void CRuleParser::Reset() { CQualifierParser::Reset(); SetWrong(); } void ...
<commit_before>// // ogles_gpgpu project - GPGPU for mobile devices and embedded systems using OpenGL ES 2.0 // // Author: Markus Konrad <post@mkonrad.net>, Winter 2014/2015 // http://www.mkonrad.net // // See LICENSE file in project repository root for the license. // #include "../../common_includes.h" #include "gaus...
<commit_before>#include "TextWidget.hpp" #include <iostream> gsf::TextWidget::TextWidget() { } gsf::TextWidget::TextWidget(std::string text, sf::Font &font) { init(text, font, 12, sf::Color::Black); } gsf::TextWidget::TextWidget(std::string text, sf::Font &font, int characterSize) { init(text, font, charact...
<commit_before>/***************************************************************************** * Media Library ***************************************************************************** * Copyright (C) 2015-2019 Hugo Beauzée-Luyssen, Videolabs, VideoLAN * * Authors: Hugo Beauzée-Luyssen <hugo@beauzee.fr> * * T...
<commit_before>// // File: Actor.cpp // Class: Actor // Author: John Barbero Unenge // All code is my own except where credited to others. // // Copyright (c) 2012 Catch22. All Rights Reserved. // // Date: 2/10/12 // // License: The following code is licensed under the Catch22-License // #include "...
<commit_before>// @(#)root/base:$Id$ // Author: G. Ganis 2012 /************************************************************************* * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. * * All rights reserved. * * ...
<commit_before>// test using 1D Distribution object interface // and compare results and CPU performances using TF1::GetRandom // // run within ROOT (.x unuranDistr.cxx+) or pass any extra parameter in the command line to get // a graphics output #include "TStopwatch.h" #include "TUnuran.h" #include "TUnuranContD...
<commit_before>/* * Access logging. * * author: Max Kellermann <mk@cm4all.com> */ #include "access_log.hxx" #ifndef NO_ACCESS_LOG #include "http_server/Request.hxx" #include "access_log/Glue.hxx" #include <daemon/log.h> #include <time.h> static const char * optional_string(const char *p) { if (p == nullpt...
<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 <string.h> #include "base/basictypes.h" #include "base/logging.h" #include "base/memory/scoped_ptr.h" #include "media/mp4/box...
<commit_before>// apt_signs.cxx -- build airport signs on the fly // // Written by Curtis Olson, started July 2001. // // Copyright (C) 2001 Curtis L. Olson - http://www.flightgear.org/~curt // // This program is free software; you can redistribute it and/or // modify it under the terms of the GNU General Public Lice...
<commit_before>#include "drape/vertex_array_buffer.hpp" #include "drape/glfunctions.hpp" #include "drape/glextensions_list.hpp" #include "drape/index_storage.hpp" #include "drape/support_manager.hpp" #include "base/stl_add.hpp" #include "base/assert.hpp" namespace dp { VertexArrayBuffer::VertexArrayBuffer(uint32_t i...
<commit_before>#include "simdjson/jsonstream.h" #include "simdjson/isadetection.h" #include <map> using namespace simdjson; void find_the_best_supported_implementation(); typedef int (*stage1_functype)(const char *buf, size_t len, ParsedJson &pj, bool streaming); typedef int (*stage2_functype)(const char *buf, size_t...
<commit_before> #include <sys/epoll.h> #include <sys/eventfd.h> #include <sys/timerfd.h> #include <fcntl.h> #include <unistd.h> #include <sched.h> #include <stdio.h> #include <errno.h> #include <strings.h> #include <new> #include <algorithm> #include "config.hpp" #include "utils.hpp" #include "event_queue.hpp" // TODO...
<commit_before>#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <unistd.h> #include "loader.h" #define MAX_RX_SENSE_ERROR 23 /* Maximum number of cycles by which the detection of a start bit could be off (as affected by the Loader code) */ // Offset (in bytes) from e...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: cr_html.cxx,v $ * * $Revision: 1.9 $ * * last change: $Author: vg $ $Date: 2006-09-25 13:26:08 $ * * The Contents of this file are made a...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: ximpgrp.cxx,v $ * * $Revision: 1.15 $ * * last change: $Author: hr $ $Date: 2006-06-19 18:14:30 $ * * The Contents of this file are made ...
<commit_before>#include "Schematic.hpp" namespace Slic3r { Schematic::Schematic() { this->rootOffset = new Pointf3(0, 0, 0); this->filename = "Default file"; } Schematic::~Schematic() { } void Schematic::addElectronicPart(ElectronicPart* part) { this->partlist.push_back(part); std::cout << "is visible from c: ...
<commit_before>#include "Serial.hpp" #include <algorithm> #include <boost/algorithm/string/predicate.hpp> #include <boost/filesystem.hpp> #if _WIN32 #include <Windows.h> #include <Setupapi.h> #include <initguid.h> #include <devguid.h> // Undefine min/max macros incompatible with the standard library // For exa...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: drviewsh.cxx,v $ * * $Revision: 1.9 $ * * last change: $Author: rt $ $Date: 2005-09-09 07:13:01 $ * * The Contents of this file are made ...
<commit_before>#ifndef GUARD_account_hpp #define GUARD_account_hpp /** \file account.hpp * * \brief Header file pertaining to Account class. * * \author Matthew Harvey * \date 04 July 2012. * * Copyright (c) 2012, Matthew Harvey. All rights reserved. */ #include "general_typedefs.hpp" #include "sqloxx/databa...
<commit_before>// -*- Mode: C++; tab-width: 2; -*- // vi: set ts=2: // #include <BALL/FORMAT/SCWRLRotamerFile.h> #include <BALL/STRUCTURE/rotamerLibrary.h> using namespace std; namespace BALL { SCWRLRotamerFile::SCWRLRotamerFile() : LineBasedFile() { } SCWRLRotamerFile::SCWRLRotamerFile(const String& na...
<commit_before>#include "stdsneezy.h" #include "database.h" #include "shop.h" #include "shopowned.h" void calcBankInterest() { TDatabase db(DB_SNEEZY), in(DB_SNEEZY); double profit_sell; unsigned int shop_nr; int pretalens=0, posttalens=0; db.query("select shop_nr, keeper from shop"); while(db.fetchRo...
<commit_before>#include "stdsneezy.h" #include "database.h" #include "shop.h" #include "shopowned.h" #include "process.h" // procBankInterest procBankInterest::procBankInterest(const int &p) { trigger_pulse=p; name="procBankInterest"; } void procBankInterest::run(int pulse) const { TDatabase db(DB_SNEEZY), in...
<commit_before>/***************************************************************************** SneezyMUD++ - All rights reserved, SneezyMUD Coding Team. "spec_mobs_goring.cc" All functions and routines related to the Boar/Tusk Goring code. Created 10/20/99 - Lapsos(William A. Perrotto III) ******************...
<commit_before>#include "stdsneezy.h" #include "spec_objs_sweeps.h" #include "disc_sorcery.h" int sweepsScratch(TBeing *ch, cmdTypeT cmd, const char *arg, TObj *o, TObj *) { if (cmd != CMD_SHAKE) return FALSE; sstring buf; buf=sstring(arg).word(0); if (!isname(buf, o->name) || !is_abbrev(buf, "til...
<commit_before>#include "os/file_access.h" #include "oamlGodotModule.h" void oamlGodotModule::set_mix_rate(int p_rate) { if (oaml == NULL) return; oaml->SetAudioFormat(p_rate, 2, 4, true); } bool oamlGodotModule::mix(AudioFrame *p_buffer, int p_frames) { if (oaml == NULL) return true; zeromem(p_buffer, p...
<commit_before>/* post_auction_loop.h -*- C++ -*- Jeremy Barnes, 31 May 2012 Copyright (c) 2012 Datacratic. All rights reserved. *AuctionEvent and related classes */ #include <ostream> #include <string> #include "jml/utils/pair_utils.h" #include "auction_event...
<commit_before>// Copyright 2016 Tom Barthel-Steer // http://www.tomsteer.net // // 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 <stdio.h> #include <SFML/Window/Mouse.hpp> #include <SFML/Graphics/RectangleShape.hpp> #include "gui/button.hpp" namespace qrw { Button::Button(sf::Window* window,std::string text, const sf::Texture* textureactive, const sf::Texture* textureinactive, const sf::Texture* texturehover) ...
<commit_before>#pragma once #include <boost/asio/buffers_iterator.hpp> #include <boost/system/error_code.hpp> #include <iostream> #include <string> #include <utility> namespace bredis { namespace test { template <typename NextLayer> class SocketWithLogging { NextLayer stream_; template <typename BufferSeque...
<commit_before>#ifndef TURBO_CONTAINER_MPMC_RING_QUEUE_HPP #define TURBO_CONTAINER_MPMC_RING_QUEUE_HPP #include <cstdint> #include <atomic> #include <functional> #include <memory> #include <utility> #include <vector> #include <turbo/toolset/attribute.hpp> namespace turbo { namespace container { template <class value...
<commit_before>#include "mainwindow.h" #include "ui_mainwindow.h" #include <QApplication> #include <QDebug> #include <QDesktopWidget> #include <QFile> #include <QFileDialog> #include <QIcon> #include <QKeySequence> #include <QMessageBox> #include <QPlainTextEdit> #include <QProcess> #include <QSettings> #include <QTex...
<commit_before>#include "math3d.h" #include <stdio.h> #include <stdlib.h> int main(int argc, char* argv[]) { float u[3]; u[0] = atof(argv[1]); u[1] = atof(argv[2]); u[2] = atof(argv[3]); float v[3]; v[0] = atof(argv[4]); v[1] = atof(argv[5]); v[2] = atof(argv[6]); Vector3 x(u[0], u[1], u[2]); Vector3 y(v[0...
<commit_before><commit_msg>Part: [skip ci] include missing header file<commit_after><|endoftext|>
<commit_before>/* Copyright (c) 2018 PaddlePaddle 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 obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless req...
<commit_before>/* Nom: main.cpp * Description: module sous-système de contrôle: gestion du dialogue avec l'utilisateur et interface graphique * Date: 22.03.2014 * version : 1.0 * responsable du module : Pauline Maury Laribière * groupe : Alexandre Devienne, Pauline Maury Laribière */ #include <stdio.h> #includ...
<commit_before>#include <cstdio> #include <cstdlib> #include <cstring> #include <cmath> #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)(...
<commit_before>/** * Copyright (C) 2012 by INdT * * This program 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 * of the License, or (at your option) any later version. * * Thi...
<commit_before>#include <ncurses.h> #include "../../../src/contents.hh" #include "../../../src/key_aliases.hh" #include "../../vick-move/src/move.hh" void enter_insert_mode(contents& contents, boost::optional<int>) { char ch; while((ch = getch()) != _escape) { contents.cont[contents.y].insert(contents...
<commit_before>/*! * Copyright (c) 2018 Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE file in the project root for license information. */ #include <LightGBM/utils/file_io.h> #include <LightGBM/utils/log.h> #include <algorithm> #include <sstream> #include <unordered_map>...
<commit_before>#include "ircchannel.hpp" #include "hub.hpp" #include "messages.hpp" #include <stdexcept> #include <utility> #include <typeinfo> #include <regex> #include <memory> namespace ircChannel { IrcChannel::IrcChannel(Hub::Hub* hub, const std::string& config): channeling::Channel(hub, config), _server(_co...
<commit_before>#include "ircchannel.hpp" #include "hub.hpp" #include "messages.hpp" #include <stdexcept> #include <utility> #include <typeinfo> #include <regex> #include <memory> namespace ircChannel { IrcChannel::IrcChannel(Hub::Hub* hub, const std::string& config): channeling::Channel(hub, config), _server(_co...
<commit_before>#include <liblinear/linear.h> #include <opencv2/imgproc/imgproc.hpp> #include "jda/data.hpp" #include "jda/cart.hpp" #include "jda/common.hpp" #include "jda/cascador.hpp" using namespace cv; using namespace std; namespace jda { /*! \breif draw the distribution of scores */ void draw_density_graph(ve...
<commit_before>#include <csignal> #include <QCoreApplication> #include <QApplication> #include <QQmlApplicationEngine> #include <QQuickItem> #include <QtQml> #include <QSettings> #include <QDir> #include <QTextStream> #include <QCommandLineParser> #include "global.h" #include "treemodel.h" #include "settingsmodel.h" #i...
<commit_before>/* * Copyright (c) 2017, Ubiquity Robotics * 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, * ...
<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>#pragma once #include <net/socket.h> #include <assert.h> #if defined WIN32 # include <Mstcpip.h> #else # include <fcntl.h> # include <netinet/tcp.h> # include <signal.h> #endif namespace net { namespace socket { NET_INLINE void initialize() { static bool initialized = false; if (!initialized) { ...
<commit_before>#include "stdafx.h" #include "unzip.h" #include "MachineInstaller.h" #include "resource.h" #include <sddl.h> bool findPackageFromEmbeddedZip(wchar_t* buf, DWORD cbSize) { bool ret = false; CResource zipResource; if (!zipResource.Load(L"DATA", IDR_UPDATE_ZIP)) { return false; } DWORD dwSize = z...
<commit_before>#include <map> #include "object_nonattack.h" #include "util/bitmap.h" #include "util/funcs.h" #include "globals.h" #include "animation.h" #include "util/tokenreader.h" #include "util/token.h" #include <math.h> #include "cat.h" using namespace std; Cat::Cat( const string & filename ) throw( LoadExceptio...
<commit_before><commit_msg>cleanup<commit_after><|endoftext|>
<commit_before><commit_msg>Clean up function declarations<commit_after><|endoftext|>
<commit_before>/** \copyright * Copyright (c) 2013, Balazs Racz * 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>#include <disir/cli/command.h> #include <disir/cli/cli.h> #include <iostream> using namespace disir; Command::Command (std::string name) : m_name (name) { } void Command::setup_parser (args::ArgumentParser& parser) { parser.helpParams.progindent = 0; parser.helpParams.progtailindent = 2; ...
<commit_before>/* ***** BEGIN LICENSE BLOCK ***** * Version: MPL 1.1/GPL 2.0/LGPL 2.1 * * The contents of this file are subject to the Mozilla Public License Version * 1.1 (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.mozil...
<commit_before>#include <iostream> #include <factory_motion_segmenter.h> #include <unordered_map> #include <opencv2/opencv.hpp> #include <opencv2/imgproc/imgproc.hpp> #include <config_loader.h> #include <rgbd_loader.h> #include <common/constants.h> using namespace std; typedef std::unordered_map<int, std::string> clas...
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2005 Robert Osfield * * This library is open source and may be redistributed and/or modified under * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or * (at your option) any later version. The full license is in LICENSE file *...
<commit_before>#ifndef UTENSOR_MLP_TEST #define UTENSOR_MLP_TEST #include "tensor.hpp" #include "ArrayOps.hpp" #include "MathOps.hpp" #include "MatrixOps.hpp" class mlpTest : public Test { public: TensorIdxImporter t_import; void runQuantization() { testStart("runQuantization"); timer_start(); //re...
<commit_before>//////////////////////////////////////////////////////////////////////////////// /// @brief rules for the query optimizer /// /// @file arangod/Aql/OptimizerRules.cpp /// /// DISCLAIMER /// /// Copyright 2010-2014 triagens GmbH, Cologne, Germany /// /// Licensed under the Apache License, Version 2.0 (the...
<commit_before>/* **************************************************************************** * * FILE main_samsonController.cpp * * AUTHOR Ken Zangelin * * CREATION DATE Dec 14 2010 * */ #include <unistd.h> // read #include <fcntl.h> // open, O...
<commit_before>/** \file add_synonyms.cc * \brief Generic version for augmenting title data with synonyms found in the authority data * \author Johannes Riedl */ /* Copyright (C) 2016, Library of the University of Tübingen This program is free software: you can redistribute it and/or m...
<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 "ppapi/cpp/dev/find_dev.h" #include "ppapi/c/dev/ppb_find_dev.h" #include "ppapi/cpp/instance.h" #include "ppapi/cpp/module.h...
<commit_before>#include "QSettingsItemModel.h" #include "xo/container/prop_node_tools.h" using xo::prop_node; using xo::settings; std::string get_item_id( const QModelIndex& index ) { QString id = index.data().toString(); for ( auto idx = index.parent(); idx.isValid(); idx = idx.parent() ) id = idx.data().toStrin...
<commit_before>#ifndef CATCH_CONFIG_MAIN #define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file #endif #ifndef __CATCH_HPP_INCLUDED #define __CATCH_HPP_INCLUDED #include "catch.hpp" #endif #include "cpp/common/globals.hpp" #include "cpp/common/shader_loader.hpp" #include "cp...
<commit_before> // (c) COPYRIGHT URI/MIT 1996 // Please read the full copyright statement in the file COPYRIGH. // // Authors: // jhrg,jimg James Gallagher (jgallagher@gso.uri.edu) #include "config_writedap.h" static char rcsid[] not_used = {"$Id: name_map.cc,v 1.4 2004/02/06 00:49:59 jimg Exp $"}; #include <vecto...
<commit_before>/////////////////////////////////////////////////////////////////////////////// // // File AdvectionDiffusionReactionSolver.cpp // // For more information, please see: http://www.nektar.info // // The MIT License // // Copyright (c) 2006 Division of Applied Mathematics, Brown University (USA), // Departm...
<commit_before>#ifndef SERIALIZER_HPP #define SERIALIZER_HPP #include <string> #include <cstddef> // size_t #include "cppa/uniform_type_info.hpp" #include "cppa/detail/to_uniform_name.hpp" namespace cppa { // forward declaration class primitive_variant; class serializer { public: virtual ~serializer(); ...
<commit_before>#include <iostream> // #include <cstring> #include <SDL2/SDL.h> #include <SDL2/SDL_image.h> #include "thor/PrimitiveTypes.h" #include "thor/lang/Language.h" #include "thor/lang/String.h" #include "thor/container/Vector.h" using namespace thor; namespace { void draw_background(SDL_Renderer *renderer, ...
<commit_before>/// /// @file pi_meissel.cpp /// /// Copyright (C) 2014 Kim Walisch, <kim.walisch@gmail.com> /// /// This file is distributed under the BSD License. See the COPYING /// file in the top level directory. /// #include "pmath.hpp" #include <primecount.hpp> #include <algorithm> #include <stdint.h> #ifdef ...
<commit_before>#include "ts/ts.h" using namespace cv; namespace { TEST(MatAssertionsTest, MatFEq) { const int R = 3; const int C = 2; Mat a = Mat::zeros(R, C, CV_32FC1); Mat b = Mat::zeros(R, C, CV_32FC1); EXPECT_EQ(a.rows, R) << "No. of rows do not match."; EXPECT_EQ(a.cols, C) << "No. of ...
<commit_before>/* Copyright (c) 2018, Richard Eakin - 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 list of conditions an...
<commit_before>// XRUN: %clang_cc1 -emit-pch -o %t.1.ast %S/Inputs/class1.cpp // XRUN: %clang_cc1 -emit-pch -o %t.2.ast %S/Inputs/class2.cpp // XRUN: %clang_cc1 -ast-merge %t.1.ast -ast-merge %t.2.ast -fsyntax-only %s 2>&1 | FileCheck %s // CHECK: class1.cpp:5:8: warning: type 'B' has incompatible definitions in diffe...
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org // // Copyright 2015 Oslo and Akershus University College of Applied Sciences // and Alfred Bratterud // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the Lice...
<commit_before>/* * Copyright © 2012 Intel Corporation * * 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>/*************************************************************************/ /* wsl_server.cpp */ /*************************************************************************/ /* This file is part of: */ /...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/ ** ** This file is part of the QtDeclarative module of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** GNU Lesser G...
<commit_before>#include <node.h> #include <v8.h> #include "protagonist.h" using namespace v8; using namespace protagonist; void Init(Handle<Object> exports, Handle<Object> module) { // Blueprint object Blueprint::Init(exports); // Parse function exports->Set(String::NewSymbol("parse"), FunctionTempl...
<commit_before>/* * Fiahil * 12.05.2012 */ #include <iostream> #include <vector> #include "APlayer.hpp" APlayer::APlayer(Map & map) : _map(map), _pv(100), _id(0), _teamId(0), _color(0), _attack(false), _timers(5, -1.0), _weapon(BombType::NORMAL), _skin(Skin::NORMAL), _state(St...
<commit_before>/* * This file is part of the µOS++ distribution. * (https://github.com/micro-os-plus) * Copyright (c) 2016 Liviu Ionescu. * * 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 Sof...
<commit_before>/* Copyright (c) 2012 QtHttpServer Project. * 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 * not...
<commit_before>#include "ff_klm.h" #include <cstring> #include "hg.h" #include "tdict.h" #include "lm/enumerate_vocab.hh" using namespace std; static const unsigned char HAS_FULL_CONTEXT = 1; static const unsigned char HAS_EOS_ON_RIGHT = 2; static const unsigned char MASK = 7; template <class Model> st...
<commit_before>#include "notepad.h" #include "ui_notepad.h" #include <QFileDialog> #include <QFile> #include <QMessageBox> #include <QTextStream> #include <iostream> Notepad::Notepad(QWidget *parent) : QMainWindow(parent), ui(new Ui::Notepad) { // TODO, not sure where to organize instantiating methods ...
<commit_before> /* * Copyright (C) 2015 ScyllaDB */ /* * This file is part of Scylla. * * Scylla 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 License, or * (at your o...
<commit_before>/* * W.J. van der Laan 2011-2012 */ #include "bitcoingui.h" #include "clientmodel.h" #include "walletmodel.h" #include "optionsmodel.h" #include "guiutil.h" #include "guiconstants.h" #include "qtipcserver.h" #include <QApplication> #include <QMessageBox> #include <QTextCodec> #include <QLocale> #incl...
<commit_before>#include <cmath> #include <Eigen/Dense> #include <gtest/gtest.h> class ReferenceFilter { public: ReferenceFilter( unsigned inputCount ) : mW( Eigen::VectorXf::Random( inputCount ) ) {} float operator()( Eigen::VectorXf inputs ) { return mW.dot( inputs ); } Eigen...
<commit_before>#include "guiutil.h" #include "bitcoinaddressvalidator.h" #include "walletmodel.h" #include "bitcoinunits.h" #include <QString> #include <QDateTime> #include <QDoubleValidator> #include <QFont> #include <QLineEdit> #include <QUrl> #include <QTextDocument> // For Qt::escape #include <QAbstractItemView> #...
<commit_before>#include "guiutil.h" #include "bitcoinaddressvalidator.h" #include "walletmodel.h" #include "bitcoinunits.h" #include <QString> #include <QDateTime> #include <QDoubleValidator> #include <QFont> #include <QLineEdit> #include <QUrl> #include <QTextDocument> // For Qt::escape #include <QAbstractItemView> #...
<commit_before> #include <iostream> #include <list> class A { public: void fun() { std::cout << "A::fun()" << std::endl; } }; class B { public: int fun2(double d, int i) { std::cout << "B::fun1(" << d << ", " << i << ")" << std::endl; return i + 1; } }; class ICaller { public: virtual void call() = 0; }...
<commit_before>/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */ #include <gecode/driver.hh> #include <gecode/int.hh> #include <gecode/minimodel.hh> using namespace Gecode; // // g++ -g simple_dependency.cpp -lgecodesupport -lgecodekernel -lgecodeint -lgecodesearch -lgecodedriver -lpthread -ldl -ls...
<commit_before>/* * Copyright 2014 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "GrGLVertexShaderBuilder.h" #include "GrGLProgramBuilder.h" #include "../GrGLGpu.h" #define GL_CALL(X) GR_GL_CALL(fProgramBuilder->gpu()->glInterface(...
<commit_before>/* Copyright 2008 Brain Research Institute, Melbourne, Australia Written by David Raffelt, 06/07/11. This file is part of MRtrix. MRtrix 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 Softwar...
<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 "net/http/http_network_session.h" #include <utility> #include "base/compiler_specific.h" #include "base/debug/stack_trace.h"...
<commit_before>#include "gtest/gtest.h" #include <ydsh/ydsh.h> #include <misc/files.h> #include <directive.h> #include "../test_common.h" #ifndef EXEC_TEST_DIR #error require EXEC_TEST_DIR #endif #ifndef BIN_PATH #error require BIN_PATH #endif using namespace ydsh; using namespace ydsh::directive; // parse confi...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/import/hwpf/fapi2/include/error_info_defs.H $ ...