text stringlengths 54 60.6k |
|---|
<commit_before>/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Module: FGOutput.cpp
Author: Jon Berndt
Date started: 12/02/98
Purpose: Manage output of sim parameters to file, stdout or socket
Called by: FGSimExec
------------- Copyright (C) 1999 Jon S. Bern... |
<commit_before>/*
* Adapter Pattern
* Author: Kei Nakata
* Date: Oct.6.2014
* Convert the interface of a class into another interface clients expect.
* Adapter lets classes work together that couldn't otherwise because of incompatible
* interfaces.
*/
#include <iostream>
#include <cstring>
#include <cstdlib>
#in... |
<commit_before>#include <Keybind.h>
#include <Utility.h>
#include <sstream>
#include <ConfigurationFile.h>
#include <numeric>
#include <Core.h>
namespace GW2Radial
{
Keybind::Keybind(std::string nickname, std::string displayName, std::string category, ScanCode key, Modifier mod, bool saveToConfig) :
nickname_(std::mo... |
<commit_before>#include "pch.h"
#include "Servo.h"
namespace winrt::servo {
void on_load_started() { sServo->Delegate().OnServoLoadStarted(); }
void on_load_ended() { sServo->Delegate().OnServoLoadEnded(); }
void on_history_changed(bool back, bool forward) {
sServo->Delegate().OnServoHistoryChanged(back, forward)... |
<commit_before>/*
* Copyright 2016 Andrei Pangin
*
* 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 ... |
<commit_before>/*
Copyright (c) 2003, Arvid Norberg
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must retain the above copyright
notice, this list of condi... |
<commit_before>// C++ source file - (C) 2003 Robert Osfield, released under the OSGPL.
// (C) 2005 Mike Weiblen http://mew.cx/ released under the OSGPL.
// Simple example using GLUT to create an OpenGL window and OSG for rendering.
// Derived from osgGLUTsimple.cpp and osgkeyboardmouse.cpp
#include <osgViewer/SimpleVi... |
<commit_before>#include "Runtime/Character/CParticleGenInfo.hpp"
#include "Runtime/CStateManager.hpp"
#include "Runtime/GameGlobalObjects.hpp"
#include "Runtime/Graphics/CBooRenderer.hpp"
#include "Runtime/Graphics/IRenderer.hpp"
#include "Runtime/Particle/CParticleGen.hpp"
#include "Runtime/World/CGameLight.hpp"
#in... |
<commit_before>//------------------------------------------------------------------------------
//
// Copyright (C) Streamlet. All rights reserved.
//
// File Name: Main.cpp
// Author: Streamlet
// Create Time: 2010-10-26
// Description:
//
// Version history:
//
//
//
//---------... |
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the imp... |
<commit_before>#include "VertexShaderDX11.h"
#include "InputLayoutDX11.h"
namespace Mile
{
VertexShaderDX11::VertexShaderDX11( RendererDX11* renderer ) :
m_shader( nullptr ),
m_inputLayout( nullptr ),
ShaderDX11( renderer )
{
}
VertexShaderDX11::~VertexShaderDX11( )
{
SafeReleas... |
<commit_before>/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2008 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 associat... |
<commit_before>#include "Transform.h"
#include <assert.h>
using namespace Core;
using namespace Math;
const Matrix& Transform::ComputeLocalMatrix()
{
_localMat._11 = _scale.x * _right.x;
_localMat._12 = _scale.y * _up.x;
_localMat._13 = _scale.z * _forward.x;
_localMat._14 = 0.0f;
_localMat._21 = _scale.x * _ri... |
<commit_before>/******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2019-2022 Baldur Karlsson
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software")... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: ModuleHelper.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: obo $ $Date: 2008-02-25 16:26:39 $
*
* The Contents of this file are ... |
<commit_before>#include "AppDelegate.h"
#include "MainScene.h"
#include "config.h"
#include "IntroScene.h"
USING_NS_CC;
AppDelegate::AppDelegate() {
}
AppDelegate::~AppDelegate()
{
}
bool AppDelegate::applicationDidFinishLaunching() {
// initialize director
CCDirector* pDirector = CCDirector::sharedDirector(... |
<commit_before><commit_msg>VKSC command pool creation should respect maxCommandBufferSize<commit_after><|endoftext|> |
<commit_before>// Copyright (c) 2012 Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this l... |
<commit_before>#pragma once
#include<algorithm>
#include<vector>
#include<universal/blas/matrix.hpp>
#include<mtl/operation/qr.hpp>
#include<mtl/operation/svd.hpp>
const double EPS = 1E-9;
double k = 0.0000001;
namespace sw {
namespace universal {
namespace blas {
template<typenam... |
<commit_before>/*************************************************************************
*
* $RCSfile: attrlist.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: hr $ $Date: 2003-03-27 18:20:11 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>#define WIN32_LEAN_AND_MEAN
#define STRICT
#define _ATL_NO_AUTOMATIC_NAMESPACE
#define _CRTDBG_MAP_ALLOC
#include <windows.h>
#include <atlbase.h>
#include <pathcch.h>
#include <shlwapi.h>
#include <winioctl.h>
#include <algorithm>
#include <clocale>
#include <cstdio>
#include <memory>
#include <crtdbg.h... |
<commit_before>/*
* This is part of the FL library, a C++ Bayesian filtering library
* (https://github.com/filtering-library)
*
* Copyright (c) 2014 Jan Issac (jan.issac@gmail.com)
* Copyright (c) 2014 Manuel Wuthrich (manuel.wuthrich@gmail.com)
*
* Max-Planck Institute for Intelligent Systems, AMD Lab
* Univer... |
<commit_before>#include <fstream>
#include <chdl/chdl.h>
#include <chdl/cassign.h>
#include "config.h"
#include "interfaces.h"
#include "harpinst.h"
using namespace std;
using namespace chdl;
void PredRegs(pred_reg_t &out, fetch_pred_t &in, splitter_pred_t &wb);
void GpRegs(reg_func_t &out, pred_reg_t &in, splitter... |
<commit_before>#include <iostream>
#include <unistd.h>
#include <sstream>
#include <iomanip>
#include "jabbersession.hpp"
#define BUFFERLENGTH 2000
JabberSession::JabberSession(const std::string &host, unsigned short port, bool isSecure) : m_s(host, port, isSecure) {
m_state = Connected;
m_depth = 0;
m_idCount... |
<commit_before>// WCSRequest.cc
// -*- mode: c++; c-basic-offset:4 -*-
// This file is part of wcs_module, A C++ module that can be loaded in to
// the OPeNDAP Back-End Server (BES) and is able to handle wcs requests.
// Copyright (c) 2002,2003 OPeNDAP, Inc.
// Author: Patrick West <pwest@ucar.edu>
//
// This librar... |
<commit_before>// $Id: directory.C,v 1.13 2000/07/03 12:24:52 oliver Exp $
#include <dirent.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <iostream>
#include <errno.h>
#include <BALL/SYSTEM/directory.h>
#define BALL_MAX_PATH_LENGTH 8192
namespace ... |
<commit_before>/****************************************************************************
This file is part of the GLC-lib library.
Copyright (C) 2005-2008 Laurent Ribon (laumaya@users.sourceforge.net)
Version 1.0.0, packaged on August, 2008.
http://glc-lib.sourceforge.net
GLC-lib is free software; you can r... |
<commit_before>// Copyright (c) 2021 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <node/chainstate.h>
#include <consensus/params.h>
#include <node/blockstorage.h>
#include <validation.h>
... |
<commit_before>#include "CAssembler.h"
#include <sstream>
#include <iostream>
CAssembler::CAssembler()
{
m_lexer.addKeyword("func");
m_lexer.addKeyword("extern");
m_lexer.addKeyword("calle");
m_lexer.addKeyword("pushi");
m_lexer.addKeyword("pushf");
// Disable emitting of newline token
m_lexer.ignoreNewLine(tr... |
<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/platform_util.h"
#include "base/logging.h"
#include "ui/aura/window.h"
namespace platform_util {
gfx::Nativ... |
<commit_before>#include "TPDGCode.h"
#include "TFile.h"
#include "TTree.h"
#include "TEventList.h"
#include "TObjArray.h"
#include "TH2.h"
#include "AliLog.h"
#include "AliESDtrack.h"
#include "AliTrackReference.h"
#include "AliTRDReconstructor.h"
#include "AliTRDtrackV1.h"
#include "AliTRDseedV1.h"
#include "AliTRDp... |
<commit_before>/*
Clique: a scalable implementation of the multifrontal algorithm
Copyright (C) 2011 Jack Poulson, Lexing Ying, and
The University of Texas at Austin
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published ... |
<commit_before>
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
#include "cMonsterConfig.h"
#include "cMonster.h"
#include "../iniFile/iniFile.h"
#include <cstdio>
//#include "../source/cprintf.h"
using namespace std;
struct cMonsterConfig::sA... |
<commit_before>#include <TCanvas.h>
#include <TFile.h>
#include <TH1.h>
#include <TH2.h>
#include <TLegend.h>
#include <TList.h>
#include <TString.h>
#include <TStyle.h>
#include <array>
using std::array;
/// Now it runs only with ROOT6
namespace {
array<TString,2> raw_sel{"_raw","_selected"};
array<TString,3> b... |
<commit_before><commit_msg>Fix memory leak reported by Valgrind tests<commit_after><|endoftext|> |
<commit_before>#include "util/log/Logger.hpp"
const string Logger::MESSAGE_OK = string(" ... \033[1;32mOK\033[0m");
const string Logger::MESSAGE_FAIL = string(" ... \033[1;31mFail\033[0m");
const string Logger::COLOUR_PATTERN = string("\\\033\\[\\d+\\;?\\d*m");
Logger::Logger(string loggerName, bool noColour)
try : l... |
<commit_before>#include "data/Format.h"
#include "data/WaveformOf.h"
#include "util/Stream.h"
namespace blitzortung {
namespace data {
Format::Format(unsigned char numberOfBytes, unsigned char numberOfChannels, unsigned short numberOfSamples) :
sampleType_(Type::BYTE),
numberOfChannels_(numberOfChan... |
<commit_before>/*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2009-2012, Willow Garage, Inc.
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the followi... |
<commit_before>/***********************************************************************
* 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/MPL/2.0/. *
************... |
<commit_before>// Copyright 2010-2015 RethinkDB, all rights reserved.
#ifndef CONTAINERS_SEGMENTED_VECTOR_HPP_
#define CONTAINERS_SEGMENTED_VECTOR_HPP_
#include <stdio.h>
#include <utility>
#include <vector>
#include "errors.hpp"
template <class element_t, size_t ELEMENTS_PER_SEGMENT = (1 << 14)>
class segmented_ve... |
<commit_before>#ifndef COMMON_H
#define COMMON_H 1
#include <cassert>
#include <errno.h>
#include <limits.h>
#include <math.h>
#include <sys/time.h>
#include <memcached/engine.h>
#include "config.h"
#if defined(HAVE_MEMORY)
# include <memory>
#endif
#if defined(HAVE_TR1_MEMORY)
# include <tr1/memory>
#endif
#if def... |
<commit_before>// Gavin Kyte
// Thu Nov 2 16:08:49 2017
#include <iostream>
#include <iomanip>
using namespace std;
template <class T> class AVLComparisonTree {
public:
struct Node {
Node* parent;
Node* left;
Node* right;
T value;
int height;
static const int numTypes = 2;
int typeCount... |
<commit_before>/****************************************************************
* Copyright (c) 2014, The Pennsylvania State University
* All rights reserved.
*
* Redistribution and use in source and binary forms,
* with or without modification, are permitted for
* personal and commercial purposes provided that ... |
<commit_before>#include "SharedMemory.h"
#include <iostream>
#include <sstream>
#include <sys/mman.h>
#include <sys/shm.h>
#include <sys/stat.h> /* For mode constants */
#include <fcntl.h> /* For O_* constants */
#include <semaphore.h>
using namespace std;
SharedMemory::SharedMemory(key_t key, bool ... |
<commit_before>/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2013-2015 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permit... |
<commit_before>// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
/*============================================================
**
** Header: AssemblyName.cpp
**
** ... |
<commit_before>#include "parser/expression.h"
#include "parser/ifstatement.h"
#include "parser/forstatement.h"
#include "parser/blockstatement.h"
#include "parser/returnstatement.h"
#include "vm/instruction.h"
#include "vm/instruction-builder.h"
#include "lexer/token.h"
namespace grok {
namespace parser {
using names... |
<commit_before>#include "../headers/geom.h"
#include <typeinfo>
#include "../headers/geosAlgorithm.h"
namespace geos {
Polygon::Polygon(){
shell=new LinearRing();
holes=new vector<Geometry *>();
}
Polygon::Polygon(const Polygon &p): Geometry(p.precisionModel, p.SRID){
shell=new LinearRing(*p.shell);
holes=new vec... |
<commit_before>#include <iostream>
#include <fstream>
#include <cmath>
#include "TH1.h"
#include "TH2.h"
#include "TH3.h"
#include "TCanvas.h"
#include "TRandom3.h"
#include "TVector2.h"
#include "TVector3.h"
#include "TLorentzVector.h"
#include "detector.hpp"
/* Simulated experiment is a K_L->PiPi decay (CP violati... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: TestTemporalCache.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
... |
<commit_before>/*
* Program.cxx
*
* Author
* Andrew Brown <adb1413@rit.edu>
*/
#include "config.h"
#include <stdexcept>
#include "glycerin/Program.hxx"
using namespace std;
namespace Glycerin {
/**
* Constructs a program wrapping an existing shader program.
*
* @param id ID of existing shader program to wr... |
<commit_before>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 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
* inc... |
<commit_before>/* GNE - Game Networking Engine, a portable multithreaded networking library.
* Copyright (C) 2001 Jason Winnebeck (gillius@webzone.net)
* Project website: http://www.rit.edu/~jpw9607/
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser Gen... |
<commit_before>/* _______ __ __ __ ______ __ __ _______ __ __
* / _____/\ / /\ / /\ / /\ / ____/\ / /\ / /\ / ___ /\ / |\/ /\
* / /\____\// / // / // / // /\___\// /_// / // /\_/ / // , |/ / /
* / / /__ / / // / // / // / / / ___ / // ___ / // /| ' / /
* / /_// /\ / /_// / ... |
<commit_before>//
// Created by dar on 2/15/16.
//
#include <gui/GuiButton.h>
#include <gui/GuiText.h>
#include "MainMenu.h"
#include "Game.h"
#include <string>
#include <InputManager.h>
#include <logging.h>
#ifndef __ANDROID__
#include <SDL_keyboard.h>
#endif //__ANDROID__
MainMenu::MainMenu(std::function<bool(Wi... |
<commit_before>/*
* LinkBasedFileLock.cpp
*
* Copyright (C) 2009-12 by RStudio, Inc.
*
* Unless you have received this program directly from RStudio pursuant
* to the terms of a commercial license agreement with RStudio, then
* this program is licensed to you under the terms of version 3 of the
* GNU Affero Gen... |
<commit_before>#include <GL/freeglut.h>
#include "MandelbrotSet.h"
#include "JuliaSet.h"
#include "Menus.h"
#define WIDTH 800
#define HEIGHT 600
MandelbrotSet* ms = new MandelbrotSet(WIDTH, HEIGHT);
JuliaSet* js = new JuliaSet(WIDTH / 2, HEIGHT);
GLint WindowID1, WindowID2;
void reshapeMandelbrot(int... |
<commit_before>/* vim: set ai et ts=4 sw=4: */
#include <HttpServer.h>
#include <PersistentStorage.h>
#include <PgsqlServer.h>
#include <TcpServer.h>
#include <atomic>
#include <iostream>
#include <map>
#include <signal.h>
#include <sstream>
#include <string>
#include <unistd.h>
#include <utility>
// TODO: support gl... |
<commit_before>#include "SIO/SIOTrackerHitPlaneHandler.h"
// -- lcio headers
#include "EVENT/LCIO.h"
#include "IMPL/LCFlagImpl.h"
#include "EVENT/TrackerHitPlane.h"
#include "IOIMPL/TrackerHitPlaneIOImpl.h"
// -- sio headers
#include <sio/io_device.h>
#include <sio/version.h>
namespace SIO {
SIOTrackerHitPlaneHan... |
<commit_before>// This file should match src/Console/Touch.cpp
#include "Touch.h"
// buttons
Bounce redButton = Bounce(BUTTON_RED, BUTTON_DEBOUNCE_TIME);
Bounce grnButton = Bounce(BUTTON_GRN, BUTTON_DEBOUNCE_TIME);
Bounce bluButton = Bounce(BUTTON_BLU, BUTTON_DEBOUNCE_TIME);
Bounce yelButton = Bounce(BUTTON_YEL, BUTT... |
<commit_before>#include "application.h"
#include "module/deamon_module.h"
#ifndef WIN32
# include <string.h>
#endif/*WIN32*/
DeamonApplication::DeamonApplication()
{
}
DeamonApplication::~DeamonApplication()
{
}
void DeamonApplication::OnModuleCreationFailed(Twainet::Module module)
{
if(strcmp(Twain... |
<commit_before>#include "ContentWindow.h"
#include "Content.h"
#include "DisplayGroup.h"
#include "main.h"
qreal ContentWindow::zCounter_ = 0;
ContentWindow::ContentWindow()
{
initialized_ = false;
}
ContentWindow::ContentWindow(boost::shared_ptr<Content> content)
{
// defaults
initialized_ = false;
... |
<commit_before>/*
* Markdown.hpp
*
* Copyright (C) 2009-12 by RStudio, Inc.
*
* This program is licensed to you under the terms of version 3 of the
* GNU Affero General Public License. This program is distributed WITHOUT
* ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,
* MERCHANTABILITY O... |
<commit_before>/****************************************************************************
*
* Copyright (c) 2018 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>#ifndef __EXTENSION_EXPLICIT_COUNTERSTRATEGY_HPP
#define __EXTENSION_EXPLICIT_COUNTERSTRATEGY_HPP
#include "gr1context.hpp"
#include <string>
/**
* A class that computes an explicit state counterstrategy for an unrealizable specification
*/
template<class T> class XExtractExplicitCounterStrategy : pu... |
<commit_before>#ifndef EBITEN_GRAPHICS_DETAIL_OPENGL_DEVICE_HPP
#define EBITEN_GRAPHICS_DETAIL_OPENGL_DEVICE_HPP
#include "ebiten/frames/frame.hpp"
#include "ebiten/graphics/detail/opengl/graphics_context.hpp"
#include "ebiten/graphics/detail/opengl/initialize_opengl.hpp"
#include "ebiten/graphics/detail/opengl/textur... |
<commit_before>#include "Instruction_X86.h"
#include "CodeGenRegVm_X86.h"
int x86Argument::Decode(CodeGenRegVmStateContext &ctx, char *buf, bool x64, bool useMmWord, bool skipSize)
{
char *curr = buf;
if(type == argNumber)
{
if(ctx.vsAsmStyle)
curr += sprintf(curr, "%x%s", num, num > 9 ? "h" : "");
else
... |
<commit_before>// ConfigFile.cpp
#include "ConfigFile.h"
using std::string;
ConfigFile::ConfigFile( string filename, string delimiter,
string comment, string sentry )
: myDelimiter(delimiter), myComment(comment), mySentry(sentry)
{
// Construct a ConfigFile, getting keys and value... |
<commit_before>
#include <SAX/ArabicaConfig.h>
#ifndef ARABICA_NO_CODECVT_SPECIALISATIONS
#include <Utils/impl/codecvt_specialisations.h>
namespace std
{
codecvt<char, wchar_t, mbstate_t>::
~codecvt()
{
} // ~codecvt
////////////////////////////////////////////////////////////////////////
codecvt_base::result
code... |
<commit_before>#include "CMainMenuState.h"
#include "CMainState.h"
#include "ColorMappers.h"
#include "CGUILoadingWidget.h"
#include "CDataLoadingThread.h"
#include "SciDataManager.h"
CMainMenuState::CMainMenuState()
{}
void CMainMenuState::begin()
{
Context->GUIContext->setupMenuState();
}
void ... |
<commit_before>// KMail startup and initialize code
// Author: Stefan Taferner <taferner@alpin.or.at>
#include <qstring.h>
#include <qdir.h>
#include "kmglobal.h"
#include "kmmainwin.h"
#include "kmacctmgr.h"
#include "kmfoldermgr.h"
#include "kmfilteraction.h"
#include "kmfolder.h"
#include "kmsender.h"
#include "kbu... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/hwpf/fapi2/include/error_info_defs.H $ ... |
<commit_before>/*
nsjail - config parsing
-----------------------------------------
Copyright 2017 Google 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 a... |
<commit_before>#include "core.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/DiagnosticInfo.h"
#include "llvm/IR/DiagnosticPrinter.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm-c/Linker.h"
extern "C" {
API_EXPORT(int)
LLVMPY_LinkModules(LLVMModuleRef Dest, LLVMModuleRef Src, const char **Err)
{
usin... |
<commit_before>/**
* Copyright (c) 2016 zScale Technology GmbH <legal@zscale.io>
* Authors:
* - Paul Asmuth <paul@zscale.io>
*
* This program is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License ("the license") as
* published by the Free Software... |
<commit_before>// Copyright (c) 1997-2019 The CSE Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license
// that can be found in the LICENSE file.
// strpak.h -- extended string functions
#if !defined( _STRPAK_H)
#define _STRPAK_H
// definitions for strpathparts()
const int STRPP... |
<commit_before>// -*-c++-*- Copyright (C) 2010 osgPango Development Team
// $Id$
#include <cmath>
#include <sstream>
#include <osg/AlphaFunc>
#include <osg/Depth>
#include <osg/Texture2D>
#include <osg/Geode>
#include <osgCairo/Util>
#include <osgPango/GlyphRenderer>
namespace osgPango {
osg::Vec4 GlyphRenderer::get... |
<commit_before>//
// Copyright (c) 2002-2012 The ANGLE 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.
//
// VertexDataManager.h: Defines the VertexDataManager, a class that
// runs the Buffer translation process.
#include "... |
<commit_before>// Copyright (c) 2009 libmv authors.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// rights to use, copy, modify,... |
<commit_before>/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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>/* unzipcomp.cpp
Copyright (C) 2003 Tommi Mäkitalo
This file is part of tntnet.
Tntnet 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 Software Foundation; either version 2 of the License, or
(at your option) any l... |
<commit_before>#include <algorithm>
#include <iostream>
#include <limits>
#include <map>
#include <regex>
#include <string>
#include <vector>
#include <cmath>
// TODO: Replace this as soon as possible with a more modern option
// parser interface.
#include <getopt.h>
#include "distances/Wasserstein.hh"
#include "pe... |
<commit_before><commit_msg>cleanup of debug cruft<commit_after><|endoftext|> |
<commit_before>/**
** \file libport/path.cc
** \brief path: implements file libport/path.hh
*/
#include <iostream>
#include <sys/stat.h>
#include <cctype>
#include <libport/contract.hh>
#include <libport/finally.hh>
#include <libport/path.hh>
// Implementation detail: if path_ is empty and absolute_ is false,
// ... |
<commit_before>// Copyright (C) 2016 Jrme Leclercq, Arnaud Cadot
// This file is part of the "Nazara Development Kit"
// For conditions of distribution and use, see copyright notice in Prerequesites.hpp
#include <NDK/LuaBinding.hpp>
#include <NDK/LuaAPI.hpp>
namespace Ndk
{
/*!
* \brief Binds SDK module to Lua
*/
... |
<commit_before>#include "cursor.h"
#include "window.h"
#include "node.h"
#include "tree.h"
#include "space.h"
#include "border.h"
#include "axlib/axlib.h"
#define internal static
extern std::map<std::string, space_info> WindowTree;
extern ax_state AXState;
extern ax_application *FocusedApplication;
extern kwm_settings... |
<commit_before>/*
* particle_filter.cpp
*
* Created on: Dec 12, 2016
* Author: Tiffany Huang
*/
#include <random>
#include <algorithm>
#include <iostream>
#include <numeric>
#include <cmath>
#include "particle_filter.h"
#include "helper_functions.h"
using namespace std;
void ParticleFilter::init(double x, ... |
<commit_before>
#pragma once
#include <vector>
#include "geometry/perspective.hpp"
#include "numerics/root_finders.hpp"
#include "quantities/named_quantities.hpp"
namespace principia {
namespace geometry {
namespace internal_perspective {
using geometry::InnerProduct;
using numerics::SolveQuadraticEquation;
using ... |
<commit_before>#include "Tree.hpp"
#include <stdexcept>
#include <iostream>
#include "pll_util.hpp"
#include "epa_pll_util.hpp"
#include "file_io.hpp"
#include "Sequence.hpp"
#include "optimize.hpp"
#include "calculation.hpp"
using namespace std;
Tree::Tree(const string& tree_file, const MSA& msa, Model& model, Opt... |
<commit_before><commit_msg>Remove 20 second delay in ocmb_check_for_ready<commit_after><|endoftext|> |
<commit_before>#include "MultiArcGraph.h"
using namespace std;
using namespace table;
MultiArcGraph::MultiArcGraph(int _id) : Graph(1, _id) {
setNodeSizeMethod(SizeMethod::SIZE_FROM_DEGREE);
}
MultiArcGraph::MultiArcGraph(const MultiArcGraph & other)
: Graph(other), edge_attributes(other.edge_attributes) {
... |
<commit_before>#include "ast.hpp"
#include "sexpr.hpp"
#include "either.hpp"
#include "repl.hpp"
#include <map>
#include <functional>
namespace ast {
struct syntax_error: std::runtime_error {
syntax_error(std::string what): std::runtime_error("syntax error: " + what) { }
};
symbol arg::name() const {
return ma... |
<commit_before>#include <CQHistoryLineEdit.h>
#include <CHistory.h>
#include <QKeyEvent>
CQHistoryLineEdit::
CQHistoryLineEdit(QWidget *parent) :
QLineEdit(parent)
{
history_ = std::make_unique<CHistory>();
connect(this, SIGNAL(returnPressed()), this, SLOT(execSlot()));
}
CQHistoryLineEdit::
~CQHistoryLineEdit(... |
<commit_before>#include <cmath>
//
// Created by Pablo Rodriguez on 3/5/17.
//
int pow(int x, int y) {if(y==1)return x; int res = 1; while(y>0) {res*=x;y--;}return res;}
int main() {
int x = 2;
const int length=5;
int m [length] = {0,1,2,3,4};
//empieza
int e = 1; // contador cantidad de pisos
... |
<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 <atlbase.h>
#include <atlapp.h>
#include <atlmisc.h>
#include "app/gfx/icon_util.h"
#include "base/gfx/size.h"
#include ... |
<commit_before>#include <vtkPolyData.h>
#include <vtkMultiBlockPLOT3DReader.h>
#include <vtkMultiBlockDataSet.h>
#include <vtkSmartPointer.h>
#include <vtkPolyDataMapper.h>
#include <vtkActor.h>
#include <vtkRenderWindow.h>
#include <vtkRenderer.h>
#include <vtkRenderWindowInteractor.h>
#include <vtkStructuredGridGeome... |
<commit_before>#pragma once
/*
MIT License
Copyright (c) 2017 Blockchain-VCS
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, ... |
<commit_before>/*
The MIT License (MIT)
Copyright (c) 2013 Daniel Mansfield
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, co... |
<commit_before>#include <stdlib.h>
#include "PointContactDZ.h"
#include "iostream"
#include "Units.h"
using namespace GeFiCa;
using namespace std;
//for the case which point contact may not fall right on the grid, it will case
//a great different potential on space close to point contact the current
//design does not ... |
<commit_before>/* Copyright (c) 2019 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
*
* ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.