text
stringlengths
54
60.6k
<commit_before>// Copyright (c) 2018 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, modi...
<commit_before>/////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2013, PAL Robotics S.L. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are met: // * Redistributions of source...
<commit_before>/* IBM_PROLOG_BEGIN_TAG */ /* This is an automatically generated prolog. */ /* */ /* $Source: src/usr/isteps/istep13/call_mss_draminit_mc.C $ ...
<commit_before>/* * Copyright (c) 2005, Peter Sommerlad and IFS Institute for Software at HSR Rapperswil, Switzerland * All rights reserved. * * This library/application is free software; you can redistribute and/or modify it under the terms of * the license that is included with this library/application in the fi...
<commit_before>/************************************************************************* * * $RCSfile: svborder.cxx,v $ * * $Revision: 1.2 $ * * last change: $Author: obo $ $Date: 2005-04-13 12:11:31 $ * * The Contents of this file are made available subject to the terms of * either of the following lice...
<commit_before>// $Id: Hash_test.C,v 1.1 2000/06/03 20:11:59 amoll Exp $ #include <BALL/CONCEPT/classTest.h> /////////////////////////// #include <BALL/COMMON/hash.h> /////////////////////////// START_TEST(class_name, "$Id: Hash_test.C,v 1.1 2000/06/03 20:11:59 amoll Exp $") /////////////////////////////////////////...
<commit_before>// RUN: %clang_analyze_cc1 -analyzer-checker=core,cplusplus.NewDelete,unix.Malloc -std=c++11 -fblocks -verify %s // RUN: %clang_analyze_cc1 -analyzer-checker=core,cplusplus.NewDelete,cplusplus.NewDeleteLeaks,unix.Malloc -std=c++11 -DLEAKS=1 -fblocks -verify %s // RUN: %clang_analyze_cc1 -analyzer-checker...
<commit_before>#ifndef RESOURCE_MANAGER_HPP #define RESOURCE_MANAGER_HPP #include <iostream> #include <SDL2/SDL.h> #include <string> #include <map> #include <iostream> #include <SDL2/SDL_image.h> #ifdef __EMSCRIPTEN__ #include <SDL/SDL_mixer.h> #else #include <SDL2/SDL_mixer.h> #endif class ResourceManager { public: ...
<commit_before>#include <b5m-manager/product_matcher.h> #include <common/ScdWriter.h> #include <common/ScdTypeWriter.h> #include <boost/program_options.hpp> using namespace sf1r; namespace po = boost::program_options; int main(int ac, char** av) { po::options_description desc("Allowed options"); desc.add_optio...
<commit_before>/************************************************************************* * * $RCSfile: sdrmasterpagedescriptor.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: vg $ $Date: 2005-03-07 17:33:24 $ * * The Contents of this file are made available subject to the terms of * either of the ...
<commit_before>/************************************************************************* * * $RCSfile: sdrmasterpagedescriptor.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: hr $ $Date: 2004-10-12 10:09:56 $ * * The Contents of this file are made available subject to the terms of * either of the ...
<commit_before>#include <OpenGLTexture.h> #include <TextureRef.h> #include <Image.h> #include <Surface.h> #define GL_GLEXT_PROTOTYPES #if defined __APPLE__ #include <OpenGLES/ES3/gl.h> #include <OpenGLES/ES3/glext.h> #elif (defined GL_ES) #include <GLES3/gl3.h> #include <EGL/egl.h> #include <EGL/eglext.h> #else #def...
<commit_before>1d58a59a-2e4e-11e5-9284-b827eb9e62be<commit_msg>1d5dad1a-2e4e-11e5-9284-b827eb9e62be<commit_after>1d5dad1a-2e4e-11e5-9284-b827eb9e62be<|endoftext|>
<commit_before>/* $Id: GammaSrc.C,v 1.7 2001-12-06 23:19:58 wilsonp Exp $ */ #include "GammaSrc.h" #include "DataLib/DataLib.h" #include "Input/Mixture.h" /*************************** ********* Service ********* **************************/ GammaSrc::GammaSrc(istream& input, int inGammaType) { char libType[9];...
<commit_before>fd40b2ce-2e4e-11e5-9284-b827eb9e62be<commit_msg>fd45a77a-2e4e-11e5-9284-b827eb9e62be<commit_after>fd45a77a-2e4e-11e5-9284-b827eb9e62be<|endoftext|>
<commit_before>03a89fd8-2e4e-11e5-9284-b827eb9e62be<commit_msg>03ad9880-2e4e-11e5-9284-b827eb9e62be<commit_after>03ad9880-2e4e-11e5-9284-b827eb9e62be<|endoftext|>
<commit_before>b0d4b1a8-2e4c-11e5-9284-b827eb9e62be<commit_msg>b0d9a672-2e4c-11e5-9284-b827eb9e62be<commit_after>b0d9a672-2e4c-11e5-9284-b827eb9e62be<|endoftext|>
<commit_before>0ea4d068-2e4f-11e5-9284-b827eb9e62be<commit_msg>0ea9dc34-2e4f-11e5-9284-b827eb9e62be<commit_after>0ea9dc34-2e4f-11e5-9284-b827eb9e62be<|endoftext|>
<commit_before>b1e24806-2e4e-11e5-9284-b827eb9e62be<commit_msg>b1e7907c-2e4e-11e5-9284-b827eb9e62be<commit_after>b1e7907c-2e4e-11e5-9284-b827eb9e62be<|endoftext|>
<commit_before>eae588f8-2e4d-11e5-9284-b827eb9e62be<commit_msg>eaea7f20-2e4d-11e5-9284-b827eb9e62be<commit_after>eaea7f20-2e4d-11e5-9284-b827eb9e62be<|endoftext|>
<commit_before>7145da20-2e4d-11e5-9284-b827eb9e62be<commit_msg>714af7f8-2e4d-11e5-9284-b827eb9e62be<commit_after>714af7f8-2e4d-11e5-9284-b827eb9e62be<|endoftext|>
<commit_before>5e4aff6c-2e4e-11e5-9284-b827eb9e62be<commit_msg>5e4ff648-2e4e-11e5-9284-b827eb9e62be<commit_after>5e4ff648-2e4e-11e5-9284-b827eb9e62be<|endoftext|>
<commit_before>c2d0cd5e-2e4e-11e5-9284-b827eb9e62be<commit_msg>c2d5bd96-2e4e-11e5-9284-b827eb9e62be<commit_after>c2d5bd96-2e4e-11e5-9284-b827eb9e62be<|endoftext|>
<commit_before>eacff578-2e4e-11e5-9284-b827eb9e62be<commit_msg>ead54672-2e4e-11e5-9284-b827eb9e62be<commit_after>ead54672-2e4e-11e5-9284-b827eb9e62be<|endoftext|>
<commit_before>f4a5908a-2e4e-11e5-9284-b827eb9e62be<commit_msg>f4aa89a0-2e4e-11e5-9284-b827eb9e62be<commit_after>f4aa89a0-2e4e-11e5-9284-b827eb9e62be<|endoftext|>
<commit_before>3a5c6786-2e4d-11e5-9284-b827eb9e62be<commit_msg>3a616ccc-2e4d-11e5-9284-b827eb9e62be<commit_after>3a616ccc-2e4d-11e5-9284-b827eb9e62be<|endoftext|>
<commit_before>26d2475c-2e4e-11e5-9284-b827eb9e62be<commit_msg>26d75742-2e4e-11e5-9284-b827eb9e62be<commit_after>26d75742-2e4e-11e5-9284-b827eb9e62be<|endoftext|>
<commit_before>34987036-2e4f-11e5-9284-b827eb9e62be<commit_msg>349d694c-2e4f-11e5-9284-b827eb9e62be<commit_after>349d694c-2e4f-11e5-9284-b827eb9e62be<|endoftext|>
<commit_before>aaac2fae-2e4c-11e5-9284-b827eb9e62be<commit_msg>aab11b4a-2e4c-11e5-9284-b827eb9e62be<commit_after>aab11b4a-2e4c-11e5-9284-b827eb9e62be<|endoftext|>
<commit_before>ffcd3364-2e4e-11e5-9284-b827eb9e62be<commit_msg>ffd22cc0-2e4e-11e5-9284-b827eb9e62be<commit_after>ffd22cc0-2e4e-11e5-9284-b827eb9e62be<|endoftext|>
<commit_before>f94284c4-2e4c-11e5-9284-b827eb9e62be<commit_msg>f9477ae2-2e4c-11e5-9284-b827eb9e62be<commit_after>f9477ae2-2e4c-11e5-9284-b827eb9e62be<|endoftext|>
<commit_before>4b77e968-2e4e-11e5-9284-b827eb9e62be<commit_msg>4b7d043e-2e4e-11e5-9284-b827eb9e62be<commit_after>4b7d043e-2e4e-11e5-9284-b827eb9e62be<|endoftext|>
<commit_before>#include "res_settings.h" #include "dlg_controls.h" #include "registry.h" namespace App { using namespace Intl; bool SetControls::PerformOnInitPage() { Caption(SIDSettingsControls); ControlText(IDC_GROUP_CLICK, SIDSettingsControlsClick); ControlText(IDC_TEXT_CTRL_LMOUSECLICK, SIDSettingsContro...
<commit_before><commit_msg>crs wants tabs=4<commit_after><|endoftext|>
<commit_before>// -*- Mode: C++; tab-width: 2; -*- // vi: set ts=2: // // $Id: lineModel.C,v 1.8 2003/12/12 17:51:51 amoll Exp $ #include <BALL/VIEW/MODELS/lineModel.h> #include <BALL/KERNEL/atom.h> #include <BALL/KERNEL/bond.h> #include <BALL/VIEW/PRIMITIVES/point.h> #include <BALL/VIEW/PRIMITIVES/twoColoredLine.h> ...
<commit_before>#include <stdio.h> #include "Halide.h" #include <fstream> #include <cassert> #include <iostream> #include "test/common/halide_test_dirs.h" using namespace Halide; int main(int argc, char **argv) { Var x("x"), y("y"); Func f("f"); f(x, y) = 42; std::string bitcode_file = Internal::get...
<commit_before> #include <time.h> #include "core/EpsilonManager.h" #include <SFML/Window/Event.hpp> #include <SFML/System/Clock.hpp> #include "render/MeshFactory.h" #include "math/Defines.h" namespace epsilon { EpsilonManager::EpsilonManager(void) { } EpsilonManager::~EpsilonManager(void) { //if ( sceneMana...
<commit_before>/* This code is subject to the terms of the Mozilla Public License, v.2.0. http://mozilla.org/MPL/2.0/. */ #include "unittest.h" #include "FileStore.h" #include "readstream.h" #include "writestream.h" #include "common/MyMemberId.h" #include "file/File.h" #include "serialize/str_join.h" #include <boost...
<commit_before>#ifdef STAN_OPENCL #include <stan/math/prim/mat/fun/typedefs.hpp> #include <stan/math/opencl/copy.hpp> #include <stan/math/opencl/add.hpp> #include <gtest/gtest.h> #include <algorithm> TEST(MathMatrixGPU, add_v_exception_pass) { stan::math::vector_d d1, d2; d1.resize(3); d2.resize(3); stan::mat...
<commit_before>// This file is part of the dune-pymor project: // https://github.com/pyMor/dune-pymor // Copyright Holders: Felix Albrecht, Stephan Rave // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifndef DUNE_PYMOR_OPERATORS_AFFINE_HH #define DUNE_PYMOR_OPERATORS_AFFINE_HH #inclu...
<commit_before>#include "GLIcoSphere.h" #include "GL/glew.h" #include <map> #include <stdint.h> GLIcoSphere::GLIcoSphere( const int entityID /*= 0*/ ) : IComponent(entityID) { } unsigned int GLIcoSphere::VertBuf() const { return this->vertBuf; } void GLIcoSphere::VertBuf(unsigned int vb) { this->vertBuf = vb; } u...
<commit_before>/* * ______ __ __ __ * /\ _ \ __ /\ \/\ \ /\ \__ * \ \ \L\ \ __ __ /\_\ \_\ \ \ \____ ___\ \ ,_\ ____ * \ \ __ \/\ \/\ \\/\ \ /'_` \ \ '__`\ / __`\ \ \/ /',__\ * \ \ \/\ \ \ \_/ |\ \ \/\ \L\ \ \ \L\ \/\ \L\ \ \ \_/\__, `\ * ...
<commit_before># include <cstdlib> // std :: rand () # include <vector> // std :: vector <> # include <list> // std :: list <> # include <iostream> // std :: cout # include <iterator> // std :: ostream_iterator <> # include <algorithm> // std :: reverse , std :: generate # include <set> #include <map> int main () { ...
<commit_before>/********************************************************************** * $Id$ * * GEOS - Geometry Engine Open Source * http://geos.refractions.net * * Copyright (C) 2001-2002 Vivid Solutions Inc. * * This is free software; you can redistribute and/or modify it under * the terms of the GNU Lesse...
<commit_before>#include "log_ui.h" #include "core/log.h" #include "imgui/imgui.h" LogUI::LogUI(Lumix::IAllocator& allocator) : m_allocator(allocator) , m_messages(allocator) , m_current_tab(0) , m_notifications(allocator) , m_last_uid(1) , m_guard(false) { m_is_opened = false; Lumix::g_log_info.getCallback()....
<commit_before>/* * Spdylay - SPDY Library * * Copyright (c) 2012 Tatsuhiro Tsujikawa * * 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>/* libwpd * Copyright (C) 2003 William Lachance ([email protected]) * Copyright (C) 2003 Marc Maurer ([email protected]) * * 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 b...
<commit_before>#include <QtCore> #include <QGuiApplication> #include <QQmlApplicationEngine> #include <QQuickView> #include <QQmlContext> #include "automator.h" #include "ansystemdispatcher.h" #ifdef Q_OS_ANDROID #include <QtAndroidExtras/QAndroidJniObject> #include <QtAndroidExtras/QAndroidJniEnvironment> JNIEXPORT ...
<commit_before>#include <nanosoft/error.h> #include <nanosoft/xmlparser.h> #include <iostream> using namespace std; namespace nanosoft { /** * Конструктор */ XMLParser::XMLParser(): parsing(false), resetNeed(false) { initParser(); } /** * Деструктор */ XMLParser::~XMLParser() { XML_ParserFree(parser)...
<commit_before>/**************************************************************************** ** ** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). ** Contact: http://www.qt-project.org/legal ** ** This file is part of the Qt Build Suite. ** ** Commercial License Usage ** Licensees holding valid commercial Qt ...
<commit_before>// Ignore unused parameter warnings coming from cppunit headers #include <libmesh/ignore_warnings.h> #include <cppunit/extensions/HelperMacros.h> #include <cppunit/TestCase.h> #include <libmesh/restore_warnings.h> // libmesh includes #include <libmesh/dense_matrix.h> #include <libmesh/dense_vector.h> #...
<commit_before>#define CATCH_CONFIG_MAIN #include "../../vendor/catch/catch.hpp" #include "thread_utility.hpp" #include "version_monitor.hpp" TEST_CASE("initialize") { krbn::thread_utility::register_main_thread(); } TEST_CASE("file_monitor") { system("rm -rf target"); system("mkdir -p target/sub/"); system("...
<commit_before>/* * Database.cpp * * Created on: 21 Aug 2013 * Author: nicholas */ #include "../include/Database.hpp" #include <string> #include <odb/transaction.hxx> #include <odb/result.hxx> #include <odb/schema-catalog.hxx> #include <odb/sqlite/exceptions.hxx> #include "table/ImageRecord.hpp" #include ...
<commit_before>#include "NetworkManagerClient.h" #include <string.h> #include <sys/types.h> #include <stdlib.h> #ifndef WIN32 #include <unistd.h> #include <sys/time.h> #else #include <windows.h> #include <time.h> #endif NetworkManagerClient::NetworkManagerClient(void) : connected(false), scores() { if(SDL_Init(...
<commit_before>/* * Copyright (c) 2015 Cryptonomex, Inc., and contributors. * 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. Any modified source or binaries are used only with the BitSha...
<commit_before>/* Copyright (C) 2005 by Jorrit Tyberghein (C) 2005 by Frank Richter (C) 2009 by Marten Svanfeldt This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Found...
<commit_before>/* +---------------------------------------------------------------------------+ | The Mobile Robot Programming Toolkit (MRPT) | | | | http://www.mrpt.org/ ...
<commit_before>#include "ui/socket_item.h" #include <QApplication> #include <QCursor> #include <QDebug> #include <QDrag> #include <QGraphicsSceneMouseEvent> #include <QGraphicsWidget> #include <QMimeData> #include <QWidget> #include "elements/package.h" #include "ui/colors.h" #include "ui/link_item.h" #include "ui/pa...
<commit_before>#include <stdexcept> #include <iostream> #include <iomanip> #include <sstream> #include <string> using namespace std; int main() { int n; cin>>n; int countn = 0;double sum = 0.0; for(int i = 0;i < n;i++) { string temps; double tempd; cin>>temps; bool ...
<commit_before>#include <assert.h> #include <stdlib.h> extern "C" void __cxa_pure_virtual(void) { /* Pure C++ virtual call; abort! */ assert(false); } void* __weak operator new(size_t size) { return malloc(size); } void* __weak operator new[](size_t size) { return malloc(size); } void __weak operato...
<commit_before>/************************************************************************* * * $RCSfile: spelldsp.hxx,v $ * * $Revision: 1.3 $ * * last change: $Author: tl $ $Date: 2001-06-05 11:28:25 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>void geom_cms_playback() { TRecorder r("http://mtadel.home.cern.ch/mtadel/geom_cms_recording.root"); } <commit_msg>Use new instead of normal constructor for TRecorder.<commit_after>void geom_cms_playback() { TRecorder* r = new TRecorder("http://mtadel.home.cern.ch/mtadel/geom_cms_recording.root"); ...
<commit_before>/* parse_bam.cc -- Example BAM parser Copyright (c) 2015, The Griffith Lab Author: Avinash Ramu <[email protected]> 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 w...
<commit_before>#include <iostream> #include <stdint.h> #include <map> #include <vector> #include <string> #include "api/BamReader.h" #include "utils/bamtools_pileup_engine.h" #include "utils/bamtools_fasta.h" #include "model.h" using namespace std; using namespace BamTools; typedef vector< string > SampleNames; typ...
<commit_before>#include <boost/test/unit_test.hpp> #include <index-manager/IndexManager.h> #include <search-manager/AllDocumentIterator.h> using namespace sf1r; using namespace izenelib::ir::indexmanager; BOOST_AUTO_TEST_SUITE( AllDocumentIterator_Suite ) static unsigned maxDoc = 100; BOOST_AUTO_TEST_CASE(alldocit...
<commit_before>#include <test/unit/math/test_ad.hpp> TEST(MathMixMatFun, quadFormSym) { auto f = [](const auto& x, const auto& y) { return stan::math::quad_form_sym(x, y); }; Eigen::MatrixXd a00; Eigen::MatrixXd a11(1, 1); a11 << 1; Eigen::MatrixXd b11(1, 1); b11 << -2; Eigen::MatrixXd a22(2, 2); ...
<commit_before>//----------------------------------------------------------------------------// // █ █ // // ████████ // // ██ ██ ...
<commit_before>#include "evpp/inner_pre.h" #include "evpp/event_loop_thread_pool.h" #include "evpp/event_loop.h" namespace evpp { EventLoopThreadPool::EventLoopThreadPool(EventLoop* base_loop, uint32_t thread_number) : base_loop_(base_loop), started_(false), thread_num_(thread_number), next_(0) ...
<commit_before>/*************************************************************************** ** ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). ** All rights reserved. ** Contact: Nokia Corporation ([email protected]) ** ** This file is part of libmeegotouch. ** ** If you have questions regarding t...
<commit_before>////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2007-2008, 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 // ...
<commit_before>#include <iostream> #include <fstream> #include <catch2/catch.hpp> #include "libslic3r/TriangleMesh.hpp" using namespace Slic3r; TEST_CASE("Split empty mesh", "[its_split][its]") { using namespace Slic3r; indexed_triangle_set its; std::vector<indexed_triangle_set> res = its_split(its); ...
<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 "content/browser/webui/web_ui.h" #include "base/command_line.h" #include "base/json/json_writer.h" #include "base/stl_util.h"...
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a ...
<commit_before><commit_msg>WaE: switch statement contains 'default' but no 'case' labels<commit_after><|endoftext|>
<commit_before><commit_msg>fix up code that checks a firmware version response<commit_after><|endoftext|>
<commit_before>//#define DEBUG // Allow debugging #include <os> #include <net/class_ip6.hpp> #include <net/ip6/icmp6.hpp> #include <net/ip6/udp6.hpp> #include <assert.h> namespace net { IP6::IP6(const IP6::addr& lo) // : local(lo) { int ttt; printf("IP6: stack: %p\n", &ttt); printf("IP6 constr...
<commit_before>/* * Copyright (C) DreamLab Onet.pl Sp. z o. o. * * 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, c...
<commit_before>/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab: * * Test memcached_result_st * * Copyright (C) 2013 Data Differential, http://datadifferential.com/ * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions ar...
<commit_before>/********************************************************************* * Software License Agreement (BSD License) * * Copyright (c) 2014, Willow Garage, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided th...
<commit_before><commit_msg>MIOpen add OpenCL backend deprecation Message (#1664)<commit_after><|endoftext|>
<commit_before><commit_msg>fixed formatting<commit_after><|endoftext|>
<commit_before>/* -*- C++ -*- This file is part of ThreadWeaver. SPDX-FileCopyrightText: 2005-2014 Mirko Boehm <[email protected]> SPDX-License-Identifier: LGPL-2.0-or-later */ #include <QtDebug> #include <QFile> #include <QFileInfo> #include <QLocale> #include <QImageReader> #include <QBuffer> #include <Th...
<commit_before>/* *************************************** * Asylum3D @ 2014-12-17 *************************************** */ #ifndef __ASYLUM3D_HPP__ #define __ASYLUM3D_HPP__ /* Asylum Namespace */ namespace asy { /***************/ /* Effect Port */ /***************/ class IEffect : public asylum {...
<commit_before>#include <iostream> #include <gtest/gtest.h> TEST(sizeof, test1) { char str1[10]; char str2[] = "Hello World!"; EXPECT_EQ(10, sizeof(str1)); EXPECT_EQ(13, sizeof(str2)); } TEST(memcpy, test1) { int a[] = {1, 2, 3}; int b[3]; memcpy(b, a, sizeof(int) * 3); EXPECT_...
<commit_before>//===- xray-log-reader.cc - XRay Log Reader Implementation ----------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------...
<commit_before>#include "includes.h" #include <sys/types.h> #include <dirent.h> void prepare_logdir() { spdlog::drop_all(); #ifdef _WIN32 system("if not exist logs mkdir logs"); system("del /F /Q logs\\*"); #else auto rv = system("mkdir -p logs"); if (rv != 0) { throw std::runtime_error...
<commit_before>/***************************************************************************** * Media Library ***************************************************************************** * Copyright (C) 2015-2019 Hugo Beauzée-Luyssen, Videolabs, VideoLAN * * Authors: Hugo Beauzée-Luyssen <[email protected]> * * T...
<commit_before>#include "qt/pivx/txrow.h" #include "qt/pivx/forms/ui_txrow.h" #include "guiutil.h" #include <iostream> TxRow::TxRow(bool isLightTheme, QWidget *parent) : QWidget(parent), ui(new Ui::TxRow) { ui->setupUi(this); setConfirmStatus(true); updateStatus(isLightTheme, false, false); } voi...
<commit_before><commit_msg>Solution for ElectrumX<commit_after><|endoftext|>
<commit_before>#ifndef COMPONENT_HPP #define COMPONENT_HPP #include "../MessageSystem/Observable.hpp" #include <string> namespace swift { class Component : public Observable { public: static std::string getType(); }; } #endif // COMPONENT_HPP <commit_msg>Made destructor default and virtual<commit_after>#ifn...
<commit_before>#include "script/Script.h" #define XP_UNIX #include "jsapi.h" #undef XP_UNIX #include "log.h" static JSRuntime* rt = NULL; static JSClass scriptClassGlobal = { "global", JSCLASS_GLOBAL_FLAGS, JS_PropertyStub, JS_PropertyStub, JS_PropertyStub, JS_PropertyStub, JS_EnumerateStub, JS_ResolveSt...
<commit_before>// This is an independent project of an individual developer. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com /** * File: BarPeriod.cpp * Author: kan * * Created on 11.11.2015. */ #include <cmath> #include <time.h> #include <stddef....
<commit_before>// Copyright 2016 Alessio Sclocco <[email protected]> // // 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 requir...
<commit_before>/* NUI3 - C++ cross-platform GUI framework for OpenGL based applications Copyright (C) 2002-2003 Sebastien Metrot licence: see nui3/LICENCE.TXT */ #include "nui.h" #include "nuiDrawContext.h" #include "nuiImageSequence.h" nuiImageSequence::nuiImageSequence() : nuiWidget(), mFrameIndex(0) { if (...
<commit_before>#include "server.h" SERVER::SERVER () { struct addrinfo hints, *servinfo, *p; int rv; // return value int yes = 1; memset(&hints, 0, sizeof hints); hints.ai_family = AF_INET; hints.ai_socktype = SOCK_STREAM; hints.ai_flags = AI_PASSIVE; //...
<commit_before>#include "debug.h" #include <QDateTime> #include <QFileInfo> #include <QMessageBox> #include <QMutex> #include <QThread> #ifdef Q_OS_WIN #include <io.h> #else #include <unistd.h> #endif namespace { QMutex mutex; QString fileName; int realStdout{}; int realStderr{}; FILE *logFile{}; void handler(QtMsg...
<commit_before>/*************************************************************************** * Copyright (c) Yorik van Havre ([email protected]) 2015 * * * * This file is part of the FreeCAD CAx development system. ...
<commit_before>#include "Graphics/Shader.hpp" #include "Core/Logger.hpp" #include <GL/glew.h> #ifdef _WIN32 #include <GL/wglew.h> #endif #include <fstream> namespace dm { ProgramShader::ProgramShader() : m_linked(false), m_id(0) {} ProgramShader::~ProgramShader() { this->unload_shaders(); } bool ProgramShader::lin...
<commit_before>#include <algorithm> #include <cctype> #include <chrono> #include <cstdlib> #include <cstdio> #include <exception> #include <iostream> #include <fstream> #include <random> #include <string> #include <unordered_map> #include "boost/algorithm/string.hpp" #include "boost/date_time/gregorian/gregorian.hpp...
<commit_before>/** * @author Ryan Huang <[email protected]> * @organization University of California, San Diego * * JNI helper functions * */ #include "JNIHelper.h" #include "Util.h" #include <stdio.h> #include <map> JNIEnv* globalEnv = NULL; typedef std::map<const char *, void *> HashMap; type...