text
stringlengths
54
60.6k
<commit_before>// This file is part of Poseidon. // Copyleft 2022, LH_Mouse. All wrongs reserved. #ifndef POSEIDON_TEST_UTILS_ #define POSEIDON_TEST_UTILS_ #include "../src/fwd.hpp" #include "../src/utils.hpp" #include <unistd.h> // ::alarm() #define POSEIDON_TEST_CHECK(expr) \ do \ try { \ if...
<commit_before>#include "stdafx.h" #include "helpers.h" #include "render_to_window.h" static VkBool32 debug_report_callback( VkDebugUtilsMessageSeverityFlagBitsEXT messageSeverity, VkDebugUtilsMessageTypeFlagsEXT messageTypes, const VkDebugUtilsMessengerCallbackDataEXT* pCal...
<commit_before>#include <istream> #include <utility> #include <sstream> #include <cstdlib> #include "number.hh" using namespace std; namespace { enum class Exactness{ exact, inexact, unspecified }; pair<int, Exactness> parse_number_prefix(std::istream& i){ static const auto to_radix = [](char c){ retur...
<commit_before>/* Copyright 2017 The TensorFlow 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 required by appl...
<commit_before>/* Copyright 2020 The TensorFlow 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 required by appl...
<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 "chrome/browser/autocomplete/autocomplete_popup_model.h" #include "base/string_util.h" #include "chrome/browser/autocomp...
<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 "chrome/browser/profiles/profile_shortcut_manager.h" #include <map> #include "base/bind.h" #include "base/command_line.h" #i...
<commit_before>/** * This file is part of the "FnordMetric" project * Copyright (c) 2011-2014 Paul Asmuth, Google Inc. * * FnordMetric is free software: you can redistribute it and/or modify it under * the terms of the GNU General Public License v3.0. You should have received a * copy of the GNU General Public ...
<commit_before><commit_msg>Revert 20927 - Experiment with opening links opened via context menu in the foreground.<commit_after><|endoftext|>
<commit_before>#pragma once namespace df { void InitRenderThread() {} } <commit_msg>Clean up.<commit_after><|endoftext|>
<commit_before>#include "tinfra/subprocess.h" #include "tinfra/io/stream.h" #include "tinfra/fmt.h" #include "tinfra/win32.h" #include "tinfra/holder.h" #define WIN32_LEAN_AND_MEAN #include <windows.h> namespace tinfra { template<> void holder<HANDLE>::release() { if( value_ != 0 ) { ...
<commit_before>// Copyright (c) 2022 by Apex.AI Inc. 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...
<commit_before>// Copyright (c) 2019 by Robert Bosch GmbH. 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 // // ...
<commit_before>// Copyright 2013 The Flutter 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 "linear_gradient_contents.h" #include "impeller/entity/contents/content_context.h" #include "impeller/entity/entity.h" #include "i...
<commit_before>// (C) Copyright Gennadiy Rozental 2004-2005. // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // See http://www.boost.org/libs/test for the library home page. // // File : $RCSfile$ ...
<commit_before>/* * Copyright (c) 2014 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS....
<commit_before>#include <QApplication> #include <QFileInfo> #include "player.h" #include "config.h" #include "tokolosh_interface.h" int main(int argc, char * argv[]) { QApplication app(argc,argv); app.setApplicationName("tokoloshhead_v2"); TokoloshInterface dbusInterface("com.TokoloshXineBackend.TokoloshM...
<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 "xcint.hpp" static struct alias_data aliases_array[XC_MAX_ALIASES] = { {"null","No functional",{{"slaterx",0.0}} }, {"lda","Slater exchange and VWN5 correlation",{{"slaterx",1.0},{"vwn5c",1.0}} }, {"blyp","Becke exchange and LYP correlation",{{"beckex",1.0},{"lypc",1.0}} }, {"pbe","PBE ...
<commit_before>#include "game/deploymentzone.hpp" #include <SFML/Graphics/RectangleShape.hpp> #include <SFML/Graphics/RenderTarget.hpp> #include "game/renderlayers.hpp" namespace qrw { DeploymentZone::DeploymentZone() : Renderable(RENDER_LAYER_DEPLOYMENT_ZONE), color_(sf::Color::Green) { } DeploymentZone...
<commit_before>#ifdef HAVE_CMAKE_CONFIG #include "cmake_config.h" #elif defined(HAVE_CONFIG_H) #include "config.h" #endif #define HAVE_DUNE_DETAILED_DISCRETIZATIONS 1 #include <iostream> #include <sstream> #include <vector> #include <boost/filesystem.hpp> #include <dune/common/exceptions.hh> #include <dune/common/s...
<commit_before>#include "point.hpp" #include <ostream> namespace algorithms { bool operator<(const Point &a, const Point &b) { return a.x < b.x || (a.x == b.x && a.y < b.y); } bool operator==(const Point &a, const Point &b) { return a.x == b.x && a.y == b.y; } std::ostream &oper...
<commit_before>/* * Distributed under the OSI-approved Apache License, Version 2.0. See * accompanying file Copyright.txt for details. * * IO_ADIOS2.cpp * * Created on: Nov 2017 * Author: Norbert Podhorszki * */ #include <mpi.h> #include "adios2.h" #include <cstdint> #include <iomanip> #include <iostr...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: passcrtdlg.cxx,v $ * * $Revision: 1.4 $ * * last change: $Author: rt $ $Date: 2005-09-09 10:25:25 $ * * The Contents of this file are mad...
<commit_before>#include <string> #include <vector> #include <stdarg.h> #include <allegro.h> #include "util/font.h" #include "util/bitmap.h" #include "font_render.h" #include "font_factory.h" using namespace std; /* struct render_message{ render_message( Font * f, int x, int y, int fg, int bg, const string & str ){ ...
<commit_before><commit_msg>No colors anymore<commit_after><|endoftext|>
<commit_before>#include "tool.h" using namespace fei; void ToolScene::init() { _camera.setCameraSize(Vec2(1000.0f, 600.0f)); _camera.setCameraType(Camera::Type::PERSPECTIVE); _camera.setCameraZPos(1000.0f); _uiCamera.setCameraSize(Vec2(1000.0f, 600.0f)); _uiLayer.setCamera(&_uiCamera); _planeLayer.setCamera(&_...
<commit_before>#include <ros/ros.h> #include <move_base_msgs/MoveBaseAction.h> #include <actionlib/client/simple_action_client.h> #include <geometry_msgs/PoseStamped.h> #include <boost/thread/mutex.hpp> #include "std_msgs/Int32.h" // The global planner uses the actionlib to do the following: // Start in safe mode // /...
<commit_before>/* * fMBT, free Model Based Testing tool * Copyright (c) 2011, Intel Corporation. * * This program is free software; you can redistribute it and/or modify it * under the terms and conditions of the GNU Lesser General Public License, * version 2.1, as published by the Free Software Foundation. * *...
<commit_before>/***************************************************************************** * Media Library ***************************************************************************** * Copyright (C) 2021 Hugo Beauzée-Luyssen, Videolabs, VideoLAN * * Authors: Hugo Beauzée-Luyssen <hugo@beauzee.fr> * * This p...
<commit_before>/** * @file lllogin_test.cpp * @author Mark Palange * @date 2009-02-26 * @brief Tests of lllogin.cpp. * * $LicenseInfo:firstyear=2009&license=internal$ * Copyright (c) 2009, Linden Research, Inc. * $/LicenseInfo$ */ #if LL_WINDOWS #pragma warning (disable : 4355) // 'this' used in initial...
<commit_before>// Copyright 2017-2020 The Verible Authors. // // 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 a...
<commit_before>/* gpe_editor_helppage.cpp This file is part of: GAME PENCIL ENGINE https://create.pawbyte.com Copyright (c) 2014-2020 Nathan Hurde, Chase Lee. Copyright (c) 2014-2020 PawByte LLC. Copyright (c) 2014-2020 Game Pencil Engine contributors ( Contributors Page ) Permission is hereby granted, free...
<commit_before>#include "qrwar.hpp" #include <SFML/Graphics/RenderWindow.hpp> #include <SFML/Window/Event.hpp> #include <SFML/System/Time.hpp> #include "config/settings.hpp" #include "config/tilesetprocessor.hpp" #include "gui/texturemanager.hpp" #include "rendering/rendersystem.hpp" #include "eventsystem/eventsyst...
<commit_before>#include "GameState.h" #include <algorithm> #include <util/Math.h> #include <logging/Logger.h> GameState::GameState() : _exitFlag(false), _tLast(0.0) { } GameState::~GameState() { } void GameState::updateManPosition(const Man& manLastFrame, const float dt) { // Move man forward _...
<commit_before>/******************************************************************************* * * MIT License * * Copyright (c) 2019 Advanced Micro Devices, Inc. * * 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>#define DEBUG_DRAW_TABLE_MARKERS #define DEBUG_DRAW_TABLETOP_OBJECTS //ROS #include <ros/ros.h> #include <actionlib/client/simple_action_client.h> #include <geometry_msgs/PoseStamped.h> #include <sensor_msgs/PointCloud2.h> //PCL #include <pcl_ros/filters/passthrough.h> #include <pcl/segmentation/sac_se...
<commit_before>#include "./scene.h" #include <Eigen/Core> #include <Eigen/Geometry> #include <string> #include <vector> #include "./graphics/gl.h" #include "./input/invoke_manager.h" #include "./graphics/render_data.h" #include "./graphics/managers.h" #include "./graphics/volume_manager.h" #include "./graphics/shader_p...
<commit_before>#include "./scene.h" #include <Eigen/Core> #include <Eigen/Geometry> #include <string> #include <vector> #include "./graphics/gl.h" #include "./input/invoke_manager.h" #include "./graphics/render_data.h" #include "./graphics/managers.h" #include "./graphics/volume_manager.h" #include "./graphics/shader_p...
<commit_before>#include "./scene.h" #include <Eigen/Core> #include <Eigen/Geometry> #include <string> #include <vector> #include "./graphics/gl.h" #include "./input/invoke_manager.h" #include "./graphics/render_data.h" #include "./graphics/managers.h" #include "./graphics/volume_manager.h" #include "./graphics/shader_p...
<commit_before>#ifndef _SCENE_HPP #define _SCENE_HPP #include <vector> #include <string> #include "shape.hpp" #include "light.hpp" #include "camera.hpp" class Scene { protected: // Storage for shapes in scene std::vector<Shape*> shapes; std::vector<LightSource*> lights; Camera camera; public: S...
<commit_before>// This file is part of the dune-stuff project: // https://github.com/wwu-numerik/dune-stuff // Copyright holders: Rene Milk, Felix Schindler // License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause) #ifndef DUNE_STUFF_GRIDS_PROVIDER_CUBE_HH #define DUNE_STUFF_GRIDS_PROVIDER_CUBE_...
<commit_before>#include <PeerNet.h> #pragma comment(lib, "PeerNet.lib") #include <iostream> #include <string> int main() { std::string ConsoleInput; printf("[Example Peer]\nHelp commands->\n"); printf("\tinit - Initialize PeerNet\n"); printf("\tdeinit - Deinitialize PeerNet\n"); printf("\tquit - Exit application...
<commit_before>/* * MRustC - Rust Compiler * - By John Hodge (Mutabah/thePowersGang) * * hir_typeck/impl_ref.cpp * - Reference to a trait implementation (either a bound or a impl block) */ #include "impl_ref.hpp" #include <hir/hir.hpp> #include "static.hpp" // for monomorphise_type_with bool ImplRef::more_spec...
<commit_before>/* -*- c++ -*- kregexp3.cpp This file is part of libkdenetwork. Copyright (c) 2001 Marc Mutz <mutz@kde.org> This library 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 Fo...
<commit_before>/* * Summary: Exceptions for the C++ interface * * Copy: See Copyright for the status of this software. * */ /** * @file * @brief Exception declarations */ #ifndef LIBMEMACHED_EXCEPTION_HPP #define LIBMEMACHED_EXCEPTION_HPP #include <stdexcept> namespace memcache { class Exception : publi...
<commit_before>#include <avr/io.h> #include <avr/interrupt.h> #include <avr/wdt.h> #define F_CPU 1000000L #include <util/delay.h> #include <common.hpp> #include <am2302.hpp> #include <sensor.hpp> #include <vcc.hpp> #include <interrupt/WATCHDOG.hpp> #include <interrupt/PCINT0.hpp> typedef AM2302< Pin<Port<B>, 1> > Tsen...
<commit_before> #include "cssysdef.h" #include "csengine/csanim2d.h" #include "igraph3d.h" csAnimation2D::~csAnimation2D() { for (int i=0;i<Frames.Length();i++) { csPixmap *p=GetFrame(i); delete p; } } csPixmap *csAnimation2D::GetFrameByTime(unsigned long time) { time%=GetTotalTime(); int n=0; whi...
<commit_before>/* -*- mode: C++; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /** \file examples/charpoly.C \brief Characteristic polynomial of matrix over Z or Zp. \ingroup examples */ // Warning : example under development. // integer computation must be completed #include <iostream> #include <iomani...
<commit_before>/* linbox/tests/test-common.C * Copyright (C) 2001, 2002 Bradford Hovinen * * Written by Bradford Hovinen <hovinen@cis.udel.edu> * * ========LICENCE======== * This file is part of the library LinBox. * * LinBox is free software: you can redistribute it and/or modify * it under the terms of the ...
<commit_before>/**************************************************************************** This file is part of the QtMediaHub project on http://www.gitorious.org. Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).* All rights reserved. Contact: Nokia Corporation (qt-info@nokia.com)** You may use ...
<commit_before>#include "Ucodei.h" #include "Label.h" #include "UcodeiStack.h" #include "ArithmeticLogicUnit.h" #include "Interpret.h" Interpret::Interpret() : sysStack(STACKSIZE), memStack(STACKSIZE) { arBase = 4; tcycle = 0; exeCount = 0 ; } int Interpret::findAddr(int n) { int temp; if (!instrBuf[n].val...
<commit_before>/* * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS....
<commit_before>#pragma once #include "handle.hpp" #include "error.hpp" namespace uvpp { class Signal : public handle<uv_signal_t> { public: Signal(): handle<uv_signal_t>() { uv_signal_init(uv_default_loop(), get()); } Signal(loop& l): han...
<commit_before><commit_msg>Fix event generation for layout tests. Key codes are 'A'..'Z' so we must ensure that the values used are they.<commit_after><|endoftext|>
<commit_before>/* * Copyright 2007-2018 Content Management AG * All rights reserved. * * author: Max Kellermann <mk@cm4all.com> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * - Redistributions of source...
<commit_before>// Copyright 2008-present Contributors to the OpenImageIO project. // SPDX-License-Identifier: BSD-3-Clause // https://github.com/OpenImageIO/oiio/blob/master/LICENSE.md #include "iff_pvt.h" #include <OpenImageIO/dassert.h> OIIO_PLUGIN_NAMESPACE_BEGIN using namespace iff_pvt; #define STRINGIZE2(a) #a ...
<commit_before>/* * Copyright 2007-2020 CM4all GmbH * All rights reserved. * * author: Max Kellermann <mk@cm4all.com> * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * - Redistributions of source code must...
<commit_before>/* * Copyright (C) 2011 by Tommi Meakitalo * * 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; either * version 2.1 of the License, or (at your option) any later versio...
<commit_before>/* Copyright (c) 2013 Microsoft Corporation. All rights reserved. Released under Apache 2.0 license as described in the file LICENSE. Author: Leonardo de Moura */ #include "util/freset.h" #include "util/flet.h" #include "util/interrupt.h" #include "kernel/type_checker.h" #include "kernel/expr_maps.h" #i...
<commit_before>/**************************************************************************** * * Copyright (c) 2016 PX4 Development Team. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: *...
<commit_before>#include "Tesselate.hpp" #include "ExPolygon.hpp" #include <glu-libtess.h> namespace Slic3r { class GluTessWrapper { public: Pointf3s tesselate(const ExPolygon &expoly, double z_, bool flipped_) { z = z_; flipped = flipped_; triangles.clear(); intersection_poin...
<commit_before>#include <stdint.h> #include <kernel/itoa.h> #include <kernel/screen.h> #include <kernel/ata.h> #include <kernel/pager.h> #include <arch/x86/a20.h> enum class ELFVersion : uint8_t { None = 0, ELF1 = 1 }; enum class ELFClass : uint8_t { None = 0, x32 = 1, x64 = 2 }; enum class ELFEncoding : uint...
<commit_before>#include <ncurses.h> //#include <string.h> #include "display/Window.h" //class Window::WIN_PTR //{ // public: // WINDOW* getPtr() { return _win; } // void setPtr(WINDOW* win) { _win = win; } // private: // WINDOW* _win; //}; Window::Window(uint32_t width, uint32_t height) { _width = width; _heigh...
<commit_before>/* This tutorial shows how to write a simple matrix multiplication in gpu (C = A * B) for i = 0 .. N for j = 0 .. N C[i,j] = 0; for k = 0 .. N C[i,j] = C[i,j] + A[i,k] * B[k,j]; To run this tutorial cd build/ make run_de...
<commit_before>/* * A very bad streaming TOML parser */ #include "toml.h" #include "debug.h" #include <cassert> #include <string> struct Token { enum class Type { Eof, SquareOpen, SquareClose, BraceOpen, BraceClose, Assign, Newline, Comma, ...
<commit_before>namespace factor { typedef intptr_t fixnum; typedef uintptr_t cell; inline static cell align(cell a, cell b) { return (a + (b - 1)) & ~(b - 1); } inline static cell alignment_for(cell a, cell b) { return align(a, b) - a; } static const cell data_alignment = 16; // Must match leaf-stack-frame-size in...
<commit_before>#include <ctype.h> #include <string.h> #include <math.h> #include <iomanip> #include "objectmemory.hpp" #include "marshal.hpp" #include "object_utils.hpp" #include <tommath.h> #include <gdtoa.h> #include "builtin/array.hpp" #include "builtin/compiledmethod.hpp" #include "builtin/encoding.hpp" #includ...
<commit_before>#include "master.hpp" namespace factor { THREADHANDLE start_thread(void *(*start_routine)(void *),void *args) { pthread_attr_t attr; pthread_t thread; if (pthread_attr_init (&attr) != 0) fatal_error("pthread_attr_init() failed",0); if (pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_JOINABLE) ...
<commit_before>struct Point { int x; int y; }; struct Base1 { int b1; }; struct Base2 { int b2; }; struct DerivedSI : Base1 { int dsi; }; struct DerivedMI : Base1, Base2 { int dmi; }; struct DerivedVI : virtual Base1 { int dvi; }; void Locals() { Point pt = { //$ussa=pt 1, //$ussa=pt[0..4)<i...
<commit_before>#include "findwidget.h" #include "ui_findwidget.h" #include "utils_history.h" #include "findconfig.h" #include "mainwindow.h" #include <QComboBox> #include <QLineEdit> void FindWidget::init () { m_ui->setupUi(this); QStyle const * const style = QApplication::style(); connect(m_ui->findBox, SIGNAL(ed...
<commit_before>/************************************************************************* * * $RCSfile: npwrap.cxx,v $ * * $Revision: 1.3 $ * * last change: $Author: pl $ $Date: 2002-01-15 10:50:28 $ * * The Contents of this file are made available subject to the terms of * either of the following license...
<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>// -*- Mode: C++; tab-width: 2; -*- // vi: set ts=2: // // order of includes is important: first qapplication, than BALL includes #include <QtGui/QApplication> #include <BALL/CONFIG/config.h> #ifdef BALL_HAS_GLEW # include <GL/glew.h> #endif #include <QtCore/QLocale> #include <QtCore/QTranslator> #in...
<commit_before>#include <BALL/VIEW/RENDERING/renderSetup.h> #include <BALL/VIEW/RENDERING/bufferedRenderer.h> #include <BALL/VIEW/RENDERING/tilingRenderer.h> #include <BALL/VIEW/RENDERING/glRenderWindow.h> #include <BALL/VIEW/WIDGETS/scene.h> #include <BALL/SYSTEM/timer.h> #ifdef BALL_HAS_RTFACT #include <BALL/VIE...
<commit_before>#include "Platform.hpp" #include "Neuron.hpp" #include "Synapse.hpp" #include "Branch.hpp" #include "ActivityStats.hpp" #include "genome.pb.h" #include "Brain.hpp" #include "SimpleProteinEnvironment.hpp" #include "ProteinDensity.hpp" #include "SpatialSearch.hpp" #include <time.h> namespace Elysia { /**...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: XMLStarBasicContextFactory.cxx,v $ * * $Revision: 1.6 $ * * last change: $Author: rt $ $Date: 2005-09-09 14:20:10 $ * * The Contents of t...
<commit_before>namespace factor { static const cell card_starts_inside_object = 0xff; struct old_space : zone { card *object_start_offsets; card *object_start_offsets_end; old_space(cell size_, cell start_); ~old_space(); cell old_space::first_object_in_card(cell card_index); cell find_object_containing_card(...
<commit_before>/* * VapourSynth D2V Plugin * * Copyright (c) 2012 Derek Buitenhuis * * This file is part of d2vsource. * * d2vsource 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 * ve...
<commit_before>//------------------------------------------------------------------------------ // CLING - the C++ LLVM-based InterpreterG :) // version: $Id$ // author: Axel Naumann <axel@cern.ch> //------------------------------------------------------------------------------ #include "IncrementalParser.h" #include...
<commit_before>#ifdef WINDOWS #define BITMAP dummyBITMAP #include <windows.h> #undef BITMAP #endif #include "menu/option_credits.h" #include "menu/menu_global.h" #include "util/token.h" #include "globals.h" #include "init.h" #include "factory/collector.h" #include "factory/object_factory.h" #include "factory/heart_f...
<commit_before>// -*- mode: c++; c-basic-offset:4 -*- // This file is part of libdap, A C++ implementation of the OPeNDAP Data // Access Protocol. // Copyright (c) 2005,2018 OPeNDAP, Inc. // Author: James Gallagher <jgallagher@opendap.org> // // This library is free software; you can redistribute it and/or // modify ...
<commit_before>//===-- LogTest.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>#include "constants.hpp" namespace mocc { extern const Surface AllSurfaces[] = { Surface::EAST, Surface::NORTH, Surface::WEST, Surface::SOUTH, ...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: attr.hxx,v $ * * $Revision: 1.8 $ * * last change: $Author: vg $ $Date: 2007-12-06 10:58:11 $ * * The Contents of this file are made avai...
<commit_before>// Copyright 2013 Google Inc. All Rights Reserved. /** * @fileoverview NaCl loader for libchewing. * @author hungte@google.com (Hung-Te Lin) * * Accept messages: * key:<KEY NAME> * * Output messages: * debug:<DEBUG MESSAGE> * context:<IM context> */ #include <stdio.h> #include <string.h> #i...
<commit_before>#include "zp_data_command.h" #include <google/protobuf/text_format.h> #include <glog/logging.h> #include "include/db_nemo_impl.h" #include "zp_data_server.h" #include "slash_string.h" extern ZPDataServer *zp_data_server; void SetCmd::Do(const google::protobuf::Message *req, google::protobuf::Mess...
<commit_before>// $Id$ // The libMesh Finite Element Library. // Copyright (C) 2002-2008 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 Foun...
<commit_before>// Copyright NVIDIA Corporation 2007 -- Ignacio Castano <icastano@nvidia.com> // // 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 l...
<commit_before>#include "output_https.h" #include <mist/procs.h> namespace Mist{ mbedtls_entropy_context OutHTTPS::entropy; mbedtls_ctr_drbg_context OutHTTPS::ctr_drbg; mbedtls_ssl_config OutHTTPS::sslConf; mbedtls_x509_crt OutHTTPS::srvcert; mbedtls_pk_context OutHTTPS::pkey; void OutHTTPS::init(Util::Co...
<commit_before>/* * This file is part of telepathy-accounts-kcm * * Copyright (C) 2009 Collabora Ltd. <http://www.collabora.co.uk/> * * 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...
<commit_before>/************************************************************************* * * $RCSfile: constant.hxx,v $ * * $Revision: 1.2 $ * * last change: $Author: kz $ $Date: 2004-01-28 15:11:03 $ * * The Contents of this file are made available subject to the terms of * either of the following licen...
<commit_before>/** * Copyright 2014 Open Connectome Project (http://openconnecto.me) * Written by Disa Mhembere (disa) * * This file is part of FlashGraph. * * 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 co...
<commit_before>#ifndef READ_MDATA_11 #define READ_MDATA_11 #include "mordorBinaryReader.hpp" const int MAX_LAIRS_PER_LEVEL = 200; const int MAX_WIDTH = 30; const int MAX_HEIGHT = 30; struct levelHeader { WORD width; WORD height; WORD levelNumber; WORD numLairs; WORD numChutes; WORD numTeleports; }; struc...
<commit_before>// The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. #include <cassert> #include <vector> #include <set> #include "llvm/IR/DataLayout.h" #include "llvm/IR/BasicBlock.h" #include "llvm...
<commit_before>/************************************************************************* * * OpenOffice.org - a multi-platform office productivity suite * * $RCSfile: MQuery.hxx,v $ * * $Revision: 1.14 $ * * last change: $Author: obo $ $Date: 2006-03-29 12:19:19 $ * * The Contents of this file are made ...
<commit_before>// Ouzel by Elviss Strazdins #ifndef OUZEL_THREAD_CHANNEL_HPP #define OUZEL_THREAD_CHANNEL_HPP #include <condition_variable> #include <memory> #include <mutex> #include <vector> #include "Semaphore.hpp" namespace ouzel::thread { template <class Type> class ChannelContainer final { publ...
<commit_before>/* * ColumnArchive.hpp * * Created on: Jul 5, 2016 * Author: pschultz */ #ifndef SRC_COLUMNARCHIVE_HPP_ #define COLUMNARCHIVE_HPP_ #include <include/PVLayerLoc.h> #include <include/pv_datatypes.h> #include <layers/HyPerLayer.hpp> #include <connections/HyPerConn.hpp> #include <columns/HyPerCo...
<commit_before>#ifndef TEAMINFO_HPP #define TEAMINFO_HPP #include <string> #include <vector> #include <protobuf/referee.pb.h> // Information about a single team. class TeamInfo { public: // The team's name (empty string if operator has not typed anything). std::string name; // The number of goals scored by the tea...
<commit_before>#include <cstdio> #include "Observer.hpp" namespace { void formatAngle(char *str, int const length, double const angleDeg) { long const angleMilliDeg = std::lround(degrees(angleDeg) * 1000); long const degrees = angleMilliDeg / 1000 % 360; long const milliDegrees = angleM...