text
stringlengths
54
60.6k
<commit_before>/* RegistExt.cpp, Robert Oeffner 2017 The MIT License (MIT) Copyright (c) 2017 Robert Oeffner 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 withou...
<commit_before>// Example qclserver code. #include <QtGui> // ### TODO: include relevant headers only #include "qc.h" class ChatWindow : public QWidget { Q_OBJECT public: ChatWindow() : log_(0) , edit_(0) , html_("<table></table>") { QVBoxLayout *layout = new QVBoxLayout; ...
<commit_before>#include "scan_entity.h" #include "scan_files.h" #include "deduplicate_vector.h" #include <algorithm> #include <cctype> #include <fstream> #include <sstream> #include <string> #include <unordered_set> #include <boost/filesystem.hpp> #include <boost/algorithm/string.hpp> std::vector<std::string> sca...
<commit_before>#include <iostream> #include <vector> #include <algorithm> int main () { int rows = 4; int cols = 4; std::vector<std::vector<int>> matrix(rows); auto func_init = [cols](auto vec) { std::cout << "hello!"; vec.assign(cols,0); }; for_each(matrix.begin(), matrix.end(), func_init); for (auto ro...
<commit_before>/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* * This file is part of the libpagemaker 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>/** * This file is part of the Marble Desktop Globe. * * Copyright 2005-2007 Torsten Rahn <tackat@kde.org>" * Copyright 2007 Inge Wallin <ingwa@kde.org>" * Copyright 2008,2009 Jens-Michael Hoffmann <jensmh@gmx.de> * * This library is free software; you can redistribute it and/or * modify it...
<commit_before><commit_msg>Use require_var_t to simplify code<commit_after><|endoftext|>
<commit_before>#include "findManager.h" FindManager::FindManager(qrRepo::RepoControlInterface &controlApi , qrRepo::LogicalRepoApi &logicalApi , qReal::gui::MainWindowInterpretersInterface *mainWindow , FindReplaceDialog *findReplaceDialog , QObject *parent) : QObject(parent) , mControlApi(controlApi) , mLo...
<commit_before>// Copyright (c) 2019 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 "quic/qbone/qbone_session_base.h" #include <netinet/icmp6.h> #include <netinet/ip6.h> #include <utility> #include "absl/str...
<commit_before>#include "rapid_utils/command_line.h" #include <iostream> #include "boost/algorithm/string.hpp" using std::cout; using std::cerr; using std::endl; using std::string; using std::vector; namespace rapid { namespace utils { CommandLine::CommandLine() : commands_() {} void CommandLine::AddCommand(Comman...
<commit_before>// // Copyright RIME Developers // Distributed under the BSD License // // 2011-12-12 GONG Chen <chen.sst@gmail.com> // #include <boost/algorithm/string.hpp> #include <boost/filesystem.hpp> #include <stdint.h> #include <utf8.h> #include <rime/candidate.h> #include <rime/common.h> #include <rime/config.h>...
<commit_before>/* * Copyright (C) 2015 Cloudius Systems, Ltd. */ #pragma once #include <unordered_map> #include <boost/range/iterator_range.hpp> #include <boost/range/join.hpp> #include "cql3/column_specification.hh" #include "core/shared_ptr.hh" #include "types.hh" #include "tuple.hh" #include "gc_clock.hh" usin...
<commit_before>// The libMesh Finite Element Library. // Copyright (C) 2002-2013 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published by the Free Software Foundation; eit...
<commit_before>#include "Collisions.hpp" #include "Geometry.hpp" #include "compsys/Entity.hpp" #include "TileCollideableGroup.hpp" #include "RectCollideableGroup.hpp" #include "comp/TileCollisionComponent.hpp" #include "container.hpp" #include "svc/ServiceLocator.hpp" #include "Tilemap.hpp" #include "LuaFunction.hpp" ...
<commit_before>/* Copyright 2014-2015 Adam Grandquist 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 ...
<commit_before>#ifndef LIBIRCPPCLIENT_HPP #define LIBIRCPPCLIENT_HPP #include "connection.hpp" #include <vector> namespace libircppclient { /* * It really feels like this isn't the quick-n-simple implementation * we're looking for. */ struct config { /* Default values. */ std::string address = "", ...
<commit_before>/**************************************************************** m_scheme.cpp Patrick J. Fasano University of Notre Dame European Centre for Theoretical Studies in Nuclear Physics and Related Areas ****************************************************************/ #include <iomanip> // f...
<commit_before>/* * Copyright 2009-2018 The VOTCA Development Team * (http://www.votca.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 obtain a copy of the License at * *...
<commit_before>// Licensed GNU LGPL v3 or later: http://www.gnu.org/licenses/lgpl.html #include <rapicorn.hh> #include "../rcore/rsvg/svg.hh" // FIXME #include <string.h> #include <stdlib.h> namespace { using namespace Rapicorn; static void help_usage (bool usage_error) { const char *usage = "Usage: rapidrun...
<commit_before>/* * A auto-growing buffer you can write to. * * author: Max Kellermann <mk@cm4all.com> */ #ifndef BENG_PROXY_GROWING_BUFFER_HXX #define BENG_PROXY_GROWING_BUFFER_HXX #include <inline/compiler.h> #include <stddef.h> struct pool; template<typename T> struct ConstBuffer; template<typename T> struct...
<commit_before>#include "util/bitmap.h" #include "tabbed-box.h" #include "menu/menu.h" #include "util/font.h" #include "gui/context-box.h" using namespace Gui; #if 0 /* FIXME add rounded tabs */ static void roundTab( const Bitmap & work, int radius, int x1, int y1, int x2, int y2, int color, bool bottom = true ){ ...
<commit_before>#include "RapidJsonHandler.h" #include "JsonViewDlg.h" const char* const STR_NULL = "null"; const char* const STR_TRUE = "true"; const char* const STR_FALSE = "false"; bool RapidJsonHandler::Null() { if (!m_NodeStack.size()) return false; TreeNode* parent = m_NodeStack.top(); parent->node.type =...
<commit_before>/* This file is part of the KDE project Copyright (C) 2006 Matthias Kretz <kretz@kde.org> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License version 2 as published by the Free Software Foundation. This l...
<commit_before>//System includes #include <fstream> #include <iostream> #include <string> #include <cstdlib> #include <iomanip> #ifdef USE_KRATOS // Ugly fixes #include <assert.h> #define KRATOS_ERROR std::cout #include "interfaces/points_old_interface.h" #include "interfaces/objects_old_interface.h" #endif // ...
<commit_before>/* * Copyright (c) 2012 Stanford University * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AN...
<commit_before>#pragma once //=====================================================================// /*! @file @brief RX600 グループ LVDA 定義 @author 平松邦仁 (hira@rvf-rc45.net) @copyright Copyright (C) 2018 Kunihito Hiramatsu @n Released under the MIT license @n https://github.com/hirakuni45/RX/blob/mast...
<commit_before>/* * SDLBackend.cpp * openc2e * * Created by Alyssa Milburn on Sun Oct 24 2004. * Copyright (c) 2004 Alyssa Milburn. All rights reserved. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published b...
<commit_before>#include <stdio.h> #include <iostream> #include <opencv2/opencv.hpp> #include "opencv2/nonfree/nonfree.hpp" using namespace cv; // Returns aligned image Mat alignImage( Mat image) { Mat org = imread( "template-blank.jpg", CV_LOAD_IMAGE_GRAYSCALE ); if(!org.data) std::cout << "unable to read templa...
<commit_before>//===-- llc.cpp - Implement the LLVM Native Code Generator ----------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>#include "stdafx.h" #include "AutoPacket.h" #include "Autowired.h" #include "AutoPacketFactory.h" #include "AutoPacketProfiler.h" #include "SatCounter.h" #include <list> AutoPacket::AutoPacket(AutoPacketFactory& factory): m_satCounters( factory.GetSubscriberVector().begin(), factory.GetSubscri...
<commit_before>// // Simulation.cpp // MobileDetectorSim // // Created by Jonas Nilsson on 2016-05-11. // Copyright © 2016 Jonas Nilsson. All rights reserved. // #include "Simulation.hpp" ListModeSimulator::ListModeSimulator(unsigned int iterations, bool use_multiple_threads) : iterations(iterations), use_multipl...
<commit_before>AliAnalysisTaskLambdaNNRun2* AddMyTaskLNRun2(Bool_t isMC=kFALSE) { // get the manager via the static access member. since it's static, you don't need // to create an instance of the class here to call the function AliAnalysisManager *mgr = AliAnalysisManager::GetAnalysisManager(); if (!mgr) { retur...
<commit_before>#include "SoftModem.h" #define TX_PIN (3) #define RX_PIN1 (6) // AIN0 #define RX_PIN2 (7) // AIN1 SoftModem *SoftModem::activeObject = 0; SoftModem::SoftModem() { } SoftModem::~SoftModem() { end(); } #if F_CPU == 16000000 #if SOFT_MODEM_BAUD_RATE <= 126 #define TIMER_CLOCK_SELEC...
<commit_before>/* * Copyright (c) 2010-2012 OTClient <https://github.com/edubart/otclient> * * 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>#include <gtest/gtest.h> #include <entt/core/hashed_string.hpp> #include <entt/meta/context.hpp> #include <entt/meta/factory.hpp> struct base {}; struct clazz: base { clazz() = default; clazz(int) : clazz{} {} clazz(char, int) : clazz{} {} int func(int v) { re...
<commit_before>/* * Author(s): * - Nicolas Cornu <ncornu@aldebaran-robotics.com> * * Copyright (C) 2012-2013 Aldebaran Robotics */ #include "dataperfsuite_p.hpp" #include <iostream> #include <iomanip> namespace qi { DataPerfSuite::DataPerfSuite(const std::string& projectName, const std::string& executableName, ...
<commit_before>// Copyright 2021 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>#include <catch.hpp> #include <ophidian/geometry/Distance.h> using namespace ophidian::geometry; TEST_CASE("Geometry: manhattan distance between two points", "[geometry][distance]") { Point<double> point1(5, 10); Point<double> point2(3, 7); double distance = ManhattanDistance(point1, point...
<commit_before>/* * Funambol is a mobile platform developed by Funambol, Inc. * Copyright (C) 2003 - 2007 Funambol, Inc. * * This program is free software; you can redistribute it and/or modify it under * the terms of the GNU Affero General Public License version 3 as published by * the Free Software Foundation w...
<commit_before>/* * structs.h * * Created on: 28.01.2015 * Author: fnolden */ #include <assert.h> #ifndef INCLUDE_IMAGE_CLOUD_COMMON_CALIBRATION_STRUCTS_H_ #define INCLUDE_IMAGE_CLOUD_COMMON_CALIBRATION_STRUCTS_H_ namespace search { struct Value{ float min; float max; int steps_max; float step_width;...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/kernel/terminate.C $ ...
<commit_before>#include <string> #include <sstream> #include <iostream> #include <fstream> #include <iomanip> #include <map> #include <list> using namespace std; // this function takes a line that may contain a name and/or email address, // and returns just the name, while fixing the "bad cases". std::string contribu...
<commit_before>#include "./labeller.h" #include <Eigen/Geometry> #include <QLoggingCategory> #include <vector> #include <map> #include "../utils/cuda_array_provider.h" #include "./summed_area_table.h" #include "./apollonius.h" #include "./occupancy_updater.h" #include "./constraint_updater.h" #include "./persistent_con...
<commit_before>// ThreadTest.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include <thread> #include <chrono> #include <set> #include <vector> #include <shared_mutex> #include <atomic> int egis = 0; class AsmLock { public: void Lock() { __asm { mov eax, 1; ...
<commit_before>/* * KeyListOpsMethods.cpp * * Created on: Feb 6, 2014 * Author: nek3d */ #include "KeyListOpsMethods.h" #include <cfloat> #include <cmath> #include <algorithm> #include "ParseTools.h" //to get the isNumeric function KeyListOpsMethods::KeyListOpsMethods() : _keyList(&_nullKeyList), _column...
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt #include "StableHeaders.h" #include "ObjectCameraController.h" #include "EventManager.h" #include "InputEvents.h" #include "SceneEvents.h" #include "Renderer.h" #include "Frame.h" #include "Entity.h" #include <QApplication> ...
<commit_before>/// /// @file EratBig.cpp /// @brief Segmented sieve of Eratosthenes optimized for big sieving /// primes. This is an optimized implementation of Tomas /// Oliveira e Silva's cache-friendly bucket sieve algorithm: /// http://www.ieeta.pt/~tos/software/prime_sieve.html /// /// C...
<commit_before>#ifndef INCLUDED_EMPLACE_INSERT_ITERATOR #define INCLUDED_EMPLACE_INSERT_ITERATOR #include<iterator> #ifdef __GXX_EXPERIMENTAL_CXX0X__ namespace srook{ inline namespace v1{ template<class Container> class emplace_insert_iterator: public std::iterator<std::output_iterator_tag,void,void,void,void...
<commit_before>#include <itkImageRegionConstIterator.h> #include <itkPasteImageFilter.h> #include <itksys/SystemTools.hxx> #include <itkJoinSeriesImageFilter.h> #include "rtkTestConfiguration.h" #include "rtkRayEllipsoidIntersectionImageFilter.h" #include "rtkDrawEllipsoidImageFilter.h" #include "rtkConstantImageSourc...
<commit_before>#include <USB.h> #define CDC_ACT_SET_LINE_CODING 1 uint8_t CDCACM::getDescriptorLength() { return 58; } uint8_t CDCACM::getInterfaceCount() { return 2; } uint32_t CDCACM::populateConfigurationDescriptor(uint8_t *buf) { uint8_t i = 0; buf[i++] = 9; // length buf[i++] = 0...
<commit_before>/* For more information, please see: http://software.sci.utah.edu The MIT License Copyright (c) 2009 Scientific Computing and Imaging Institute, University of Utah. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documenta...
<commit_before>#include "mtao/logging/logger.hpp" #include <iostream> #include <chrono> #include <iomanip> namespace mtao { namespace logging { std::map<std::string,Logger> active_loggers; Logger* default_logger = &make_file_logger("default",Level::All,true);//Making this continue because multiple files might ...
<commit_before>#include "Sketch.h" #include "chr/gl/draw/Cube.h" #include "chr/gl/draw/Rect.h" using namespace std; using namespace chr; using namespace gl; Sketch::Sketch() {} void Sketch::setup() { setupFramebuffer(); texture = Texture(Texture::ImageRequest("lys_32.png") .setFlags(image::FLAGS_TRANSLUCEN...
<commit_before>// This file is part of Eigen, a lightweight C++ template library // for linear algebra. // // Copyright (C) 2009 Gael Guennebaud <gael.guennebaud@inria.fr> // // Eigen is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public // License as published b...
<commit_before>/* * Copyright (c) 2015 Novell, Inc. * Copyright (c) [2016-2018] SUSE LLC * * All Rights Reserved. * * This program is free software; you can redistribute it and/or modify it * under the terms of version 2 of the GNU General Public License as published * by the Free Software Foundation. * * Thi...
<commit_before>#include "CppUTest/TestHarness.h" extern "C" { #include "ciostack/ciostack.h" } TEST_GROUP(ciostack) { // global vars void setup() { } void teardown() { } }; TEST(ciostack, init_buffer_object) { unsigned char buffer[32]; CIO_BUFFER_OBJECT bufferObject; CIO_Buffer...
<commit_before>#include <pthread.h> #include <vector> #include <netdb.h> #include "io.h" #include "parse_args.h" #include "cache.h" #include "vw.h" pthread_t* thread; size_t d_1; size_t d_2; v_array<v_array<io_buf> > bufs; bool second_of_pair[256]; bool pairs_exist=false; size_t log_int_r(size_t v) { if (v > 1) ...
<commit_before>#include "transactionview.h" #include "transactionfilterproxy.h" #include "transactionrecord.h" #include "walletmodel.h" #include "addresstablemodel.h" #include "transactiontablemodel.h" #include "bitcoinunits.h" #include "csvmodelwriter.h" #include "transactiondescdialog.h" #include "editaddressdialog....
<commit_before>/************************************************************************* * * REALM CONFIDENTIAL * __________________ * * [2011] - [2012] Realm Inc * All Rights Reserved. * * NOTICE: All information contained herein is, and remains * the property of Realm Incorporated and its suppliers, * i...
<commit_before>#include "stdafx.h" #include <gl/glut.h> #include <GL/gl.h> #include <GL/glu.h> #include <cmath> float WinWid=2000.0; float WinHei=1000.0; void drawCircle(float x, float y, float r, int amountSegments) { glBegin(GL_LINE_LOOP); for(int i = 0; i < amountSegments; i++) { float angle = 2.0 * 3....
<commit_before>#include "finder-sync/finder-sync-host.h" #include <vector> #include <mutex> #include <memory> #include <QDir> #include <QFileInfo> #include "account.h" #include "account-mgr.h" #include "auto-login-service.h" #include "settings-mgr.h" #include "seafile-applet.h" #include "rpc/local-repo.h" #include "...
<commit_before>/* * ssfpbands_main.cpp * * Created by Tobias Wood on 14/03/2014. * Copyright (c) 2014 Tobias Wood. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/...
<commit_before>// Copyright (c) 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 "base/message_pump_libevent.h" #include <fcntl.h> #include <errno.h> #include "base/logging.h" #include "base/scoped_nsautor...
<commit_before>// Copyright (c) 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 "base/message_pump_libevent.h" #include <fcntl.h> #include <errno.h> #include "base/logging.h" #include "base/scoped_nsautor...
<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 "base/path_service.h" #include "base/basictypes.h" #include "base/file_util.h" #include "base/file_path.h" #if defined(OS_WIN...
<commit_before><commit_msg>coverity#1213486 Uncaught exception<commit_after><|endoftext|>
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: flbytes.cxx,v $ * * $Revision: 1.5 $ * * last change: $Author: hr $ $Date: 2007-06-27 21:49:41 $ * * The Contents of this file are made a...
<commit_before>#include "QGCRadioChannelDisplay.h" #include <QPainter> QGCRadioChannelDisplay::QGCRadioChannelDisplay(QWidget *parent) : QWidget(parent) { m_showMinMax = false; m_min = 0; m_max = 1; m_value = 1500; m_orientation = Qt::Vertical; m_name = "Yaw"; } void QGCRadioChannelDisplay::setN...
<commit_before>#include <ctime> #include <iostream> #include <cstdlib> #include <iterator> #include <dariadb.h> #include <storage/fs.h> #include <ctime> #include <limits> #include <cmath> #include <chrono> #include <thread> #include <atomic> #include <cassert> class BenchCallback :public dariadb::storage::Cursor::Cal...
<commit_before>/** * Copyright (c) 2015 Damien Tardy-Panis * * This file is subject to the terms and conditions defined in * file 'LICENSE', which is part of this source code package. **/ #include "Ahistaa.h" #include <QDebug> Ahistaa::Ahistaa(QObject *parent) : Comic(parent) { m_info.id = Q...
<commit_before>/* * The Apache Software License, Version 1.1 * * Copyright (c) 1999-2000 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. Redi...
<commit_before>// Copyright (c) 2012-2013 Plenluno All rights reserved. #include "./gtest_net_common.h" namespace libj { namespace node { TEST(GTestNetTcp, TestMemoryLeak) { net::Socket::Ptr socket = net::createConnection(8080); ASSERT_TRUE(!!socket); } static const UInt NUM_CONNS = 7; TEST(GTestNetTcp, Te...
<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>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: xtabdash.cxx,v $ * * $Revision: 1.18 $ * * last change: $Author: ihi $ $Date: 2006-11-14 13:58:09 $ * * The Contents of this file are mad...
<commit_before>#/************************************************************************* * * $RCSfile: gluectrl.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: ka $ $Date: 2002-04-18 15:45:43 $ * * The Contents of this file are made available subject to the terms of * either of the following lice...
<commit_before>//============================================================================= // ■ main.cpp //----------------------------------------------------------------------------- // VMGS的主程序。 //============================================================================= #include "VMGS.hpp" namespace VM76...
<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>// VTK Viewer // Written 2012-2013 Hal Canary <http://cs.unc.edu/~hal> // Copyright 2012-2013 University of North Carolina at Chapel Hill. // // 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...
<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/chromeos/clock_menu_button.h" #include "app/gfx/canvas.h" #include "app/gfx/font.h" #include "app/l10n_util.h...
<commit_before>/************************************************************************* * * $RCSfile: unoaprms.hxx,v $ * * $Revision: 1.1.1.1 $ * * last change: $Author: hr $ $Date: 2000-09-18 16:48:42 $ * * The Contents of this file are made available subject to the terms of * either of the following l...
<commit_before>#include "clientmodel.h" #include "main.h" #include "guiconstants.h" #include "optionsmodel.h" #include "addresstablemodel.h" #include <QTimer> ClientModel::ClientModel(QObject *parent) : QObject(parent), optionsModel(0), addressTableModel(0) { /* Until we build signal notifications into the bi...
<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/dom_ui/dom_ui_theme_source.h" #include "app/l10n_util.h" #include "app/resource_bundle.h" #include "app/theme...
<commit_before>void Fragment(Int_t nev=0, Int_t debug=0) { gROOT->Reset(); gStyle->SetPalette(1); gStyle->SetCanvasColor(33); gStyle->SetFrameFillColor(38); Float_t b; Int_t nspectp, nspectn, nspectpfree, nspectnfree; Int_t zz[100], nn[100], nalpha, ztot, ntot; void spectator(Float_t, Int_t*, Int_t*); TH2...
<commit_before>// // PyQtGuiObject.cpp // MusicPlayer // // Created by Albert Zeyer on 18.01.14. // Copyright (c) 2014 Albert Zeyer. All rights reserved. // #include "PyQtGuiObject.hpp" #include "PythonHelpers.h" #include "PyThreading.hpp" #include "QtBaseWidget.hpp" #include "QtApp.hpp" static Vec imp_get_pos(G...
<commit_before>//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // version: $Id$ // author: Vassil Vassilev <vasil.georgiev.vasilev@cern.ch> //------------------------------------------------------------------------------ #include "cling/In...
<commit_before>//===-- ThreadElfCore.cpp --------------------------------------*- C++ -*-===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-----------------------------------------...
<commit_before>#pragma once #include "external/glad/glad.h" #include <GLFW/glfw3.h> #include <string> #include <vector> //! \brief Namespace containing a few helpers for the EDA221 labs. namespace eda221 { //! \brief Formalise mapping between an OpenGL VAO attribute binding, //! and the meaning of that attr...
<commit_before>//****************************************************************** // // Copyright 2014 Intel Mobile Communications GmbH All Rights Reserved. // //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use th...
<commit_before>#include "UserEventFilter.h" #include "ItemFilter.h" #include "PurchaseManager.h" #include "CartManager.h" #include "EventManager.h" #include "RateManager.h" #include <bundles/recommend/RecommendSchema.h> #include <glog/logging.h> namespace { using namespace sf1r; void excludeItems( const ItemIdS...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: drawdlg.cxx,v $ * * $Revision: 1.13 $ * * last change: $Author: kz $ $Date: 2007-05-10 16:22:17 $ * * The Contents of this file are made ...
<commit_before><commit_msg>fix fdo#40496: don't reset RES_PARATR_ADJUST & RES_FRAMEDIR attributes.<commit_after><|endoftext|>
<commit_before>/* * Vulkan Model loader using ASSIMP * * Copyright(C) 2016-2017 by Sascha Willems - www.saschawillems.de * * This code is licensed under the MIT license(MIT) (http://opensource.org/licenses/MIT) */ #pragma once #include <stdlib.h> #include <string> #include <fstream> #include <vector> #include "vulka...
<commit_before><commit_msg>MessageLoop: use dynamic_annotations.h & RunningOnValgrind instead of valgrind.h & RUNNING_ON_VALGRIND This way we'll be able to delete all tasks on Windows under Dr. Memory TEST=trybots Review URL: http://codereview.chromium.org/6073004<commit_after><|endoftext|>
<commit_before>/* TimeManager.cpp * * Kubo Ryosuke */ #include "TimeManager.h" #include "core/def.h" #include "logger/Logger.h" #include <cassert> #define ENABLE_EASY_LOG 1 namespace sunfish { void TimeManager::init() { _depth = 0; } void TimeManager::nextDepth() { _depth++; assert(_depth < Tree::...
<commit_before><commit_msg>`yli::opengl::get_n_color_channels`: add support for more formats.<commit_after><|endoftext|>
<commit_before>#include <stdio.h> //#include <unistd.h> #include <utility> #include <iostream> #include <boost/bind.hpp> #include <boost/scoped_ptr.hpp> #include <muduo/base/Logging.h> #include <muduo/base/Thread.h> #include <muduo/net/EventLoop.h> #include <muduo/net/InetAddress.h> #include <bfcp/client/base_clien...
<commit_before>/* * opencog/atoms/execution/EvaluationLink.cc * * Copyright (C) 2009, 2013, 2014, 2015 Linas Vepstas * All Rights Reserved * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License v3 as * published by the Free Software...
<commit_before>// This file is distributed under the MIT license. // See the LICENSE file for details. #include <visionaray/config.h> #if VSNRAY_HAVE_GLEW #include <GL/glew.h> #elif VSNRAY_HAVE_OPENGLES #include <GLES2/gl2.h> #endif #include <visionaray/gl/bvh_outline_renderer.h> #include <visionaray/gl/handle.h> #i...
<commit_before>{ // // This macro generates a Controlbar menu: To see the output, click begin_html <a href="gif/demos.gif" >here</a> end_html // To execute an item, click with the left mouse button. // To see the HELP of a button, click on the right mouse button. gROOT->Reset(); bar = new TControlBar("vertical",...
<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 <string> #include "base/basictypes.h" #include "base/message_loop.h" #include "jingle/notifier/base/notifier_options.h" #incl...