text stringlengths 54 60.6k |
|---|
<commit_before>//
// sequence.cpp
// express
//
// Created by Adam Roberts on 1/24/12.
// Copyright 2012 Adam Roberts. All rights reserved.
//
#include "sequence.h"
#include <cassert>
#include <boost/math/distributions/normal.hpp>
using namespace std;
using namespace boost::math;
SequenceFwd::SequenceFwd(): _re... |
<commit_before>#include <stdexcept>
#include <algorithm>
#include <map>
#include "file_io.hpp"
using namespace std;
FastaStream& operator>>(FastaStream& stream, MSA& msa)
{
/* open the file */
auto file = pll_fasta_open(stream.fname().c_str(), pll_map_fasta);
if (!file)
throw runtime_error{"Cannot open fil... |
<commit_before>#include <coffee/core/plat/environment/osx/sysinfo.h>
#include <sys/types.h>
#include <sys/sysctl.h>
namespace Coffee{
namespace Environment{
namespace Mac{
/*
* OS X has a sexy API for retrieving hardware information. Big thumbs up!
*/
static CString _GetSysctlString(const cstring mod_string)
{
... |
<commit_before>/*
Copyright (c) 2007, 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>/*
* Copyright (c) 2016, The Bifrost Authors. All rights reserved.
* Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributio... |
<commit_before>#include "joedb/io/merge.h"
#include "joedb/interpreter/Database.h"
/////////////////////////////////////////////////////////////////////////////
void joedb::merge(Database &merged, const Database &db)
/////////////////////////////////////////////////////////////////////////////
{
std::map<Table_Id, Re... |
<commit_before>/* nobleNote, a note taking application
* Copyright (C) 2012 Christian Metscher <hakaishi@web.de>,
Fabian Deuchler <Taiko000@gmail.com>
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Soft... |
<commit_before>/*
* Banjax is an ATS plugin that:
* enforce regex bans
* store logs in a mysql db
* run SVM on the log result
* send a ban request to swabber in case of banning.
*
* Copyright (c) 2013 eQualit.ie under GNU AGPL v3.0 or la... |
<commit_before>/*********************************************************************
Author: Roberto Bruttomesso <roberto.bruttomesso@unisi.ch>
OpenSMT -- Copyright (C) 2008, Roberto Bruttomesso
OpenSMT is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as pu... |
<commit_before>#define DEBUG 1
/**
* File : B2.cpp
* Author : Kazune Takahashi
* Created : 7/22/2019, 3:04:34 AM
* Powered by Visual Studio Code
*/
#include <iostream>
#include <iomanip>
#include <algorithm>
#include <vector>
#include <string>
#include <complex>
#include <tuple>
#include <queue>
#include <stac... |
<commit_before>#define DEBUG 1
/**
* File : E3.cpp
* Author : Kazune Takahashi
* Created : 2019/9/2 0:33:07
* Powered by Visual Studio Code
*/
#include <iostream>
#include <iomanip>
#include <algorithm>
#include <vector>
#include <string>
#include <complex>
#include <tuple>
#include <queue>
#include <stack>
#i... |
<commit_before>/*************************************************************************
*
* $RCSfile: mybasic.cxx,v $
*
* $Revision: 1.1.1.1 $
*
* last change: $Author: hr $ $Date: 2000-09-18 16:12:09 $
*
* The Contents of this file are made available subject to the terms of
* either of the following li... |
<commit_before>#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <cmath>
#include <ctime>
#include <regex>
#include "lib/font.h"
#include "lib/body.h"
#include "lib/image.h"
#include "lib/video.h"
#include "lib/output.h"
#include "lib/misc.h"
#include "lib/matrix.h"
#include "lib/lin... |
<commit_before>#include "Simulation.h"
#include "GridHelper.h"
#include "Parameters.h"
#include "PerformanceTracker.h"
#include "pica/fieldSolver/YeeSolver.h"
#include "pica/grid/Grid.h"
#include "pica/grid/YeeGrid.h"
#include "pica/math/Constants.h"
#include "pica/math/Vectors.h"
#include "pica/particles/... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/memory/lib/ecc/mainline_ue_... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/memory/p9_mss_draminit_trai... |
<commit_before>#include "elm/encoding/encoding.h"
#include "gtest/gtest.h"
<commit_msg>remove unused test file<commit_after><|endoftext|> |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/memory/p9_mss_draminit_trai... |
<commit_before>#include <vector>
#include <queue>
#include <climits>
#include <iostream>
#include <tuple>
using namespace std;
typedef pair<int, int> edge;
auto prim(vector<vector<edge>> &g) {
size_t n = g.size();
vector<bool> used(n);
vector<int> pred(n, -1);
vector<int> prio(n, INT_MAX);
prio[0... |
<commit_before>// tImageTIFF.cpp
//
// This knows how to load TIFFs. It knows the details of the tiff file format and loads the data into multiple tPixel
// arrays, one for each frame (in a TIFF thay are called pages). These arrays may be 'stolen' by tPictures.
//
// Copyright (c) 2020 Tristan Grimmer.
// Permission to... |
<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>#pragma once
#include <type_traits>
#include <algorithm>
#include <cstdint>
#include <codecvt>
#include <locale>
#include <cstring>
// Types
using RC_Pointer = void*;
using RC_Size = size_t;
using RC_UnicodeChar = char16_t;
// Constants
const int PATH_MAXIMUM_LENGTH = 260;
// Enumerations
enum cla... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
/// @brief Write-ahead log slot
///
/// @file
///
/// DISCLAIMER
///
/// Copyright 2004-2013 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this fi... |
<commit_before>/***********************************************************************************
**
** FileManager.cpp
**
** Copyright (C) August 2016 Hotride
**
************************************************************************************
*/
//----------------------------------------------------------------... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkImageActor.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
T... |
<commit_before>
#include "common.h"
// Didn't find sleep in QCore
#ifdef Q_OS_WIN
#include <winsock2.h> // for windows.h
#include <windows.h> // for Sleep
#endif
#include <QDebug>
// TODO move this to a different file from common.h
void qSleep(int ms)
{
#ifdef Q_OS_WIN
Sleep(uint(ms));
#else
struct timespec... |
<commit_before>#include "measure.h"
#include "sleep.h"
//TODO: Fix comments...
QList<qreal> sm_diff(QByteArray data, int nr)//nr - Depth of smoothing in one direction
{
QList<qreal> diff;
for (int i=0;i<data.count();i++)
{
if(i<nr || i>=data.count()-nr)
{
diff<<0;
continue;
}
double a=0;
double b=0... |
<commit_before>#include <cstdlib>
#include <SimpleIni.h>
#include "config.hpp"
#include "gui.hpp"
namespace GUI {
/* Settings */
CSimpleIniA ini(true, false, false);
/* Window settings */
int last_window_size = 1;
/* Controls settings */
SDL_Scancode KEY_A [] = { SDL_SCANCODE_A, SDL_SCANCODE_ESCAPE };
SDL_... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
// taskd - Task Server
//
// Copyright 2010 - 2013, Göteborg Bit Factory.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Softwa... |
<commit_before>/*
The MIT License
Copyright (c) 2008 Dennis Mllegaard Pedersen <dennis@moellegaard.dk>
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 limit... |
<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>/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2018-2019 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permit... |
<commit_before>#pragma once
#include <memory>
#include "Runtime/CToken.hpp"
#include "Runtime/RetroTypes.hpp"
#include "Runtime/Character/CAnimData.hpp"
#include "Runtime/Graphics/CModel.hpp"
#include <zeus/CAABox.hpp>
#include <zeus/CColor.hpp>
#include <zeus/CVector3f.hpp>
namespace urde {
class CActorLights;
cla... |
<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>/*
* Copyright (C) 2018-2021 Nagisa Sekiguchi
*
* 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 app... |
<commit_before>/*************** <auto-copyright.pl BEGIN do not edit this line> **************
*
* VR Juggler is (C) Copyright 1998-2003 by Iowa State University
*
* Original Authors:
* Allen Bierbaum, Christopher Just,
* Patrick Hartling, Kevin Meinert,
* Carolina Cruz-Neira, Albert Baker
*
* This libra... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/common/utils/imageProcs/common_ringId.H $ ... |
<commit_before>/*
* Copyright (c) 2003-2010, John Wiegley. 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>/*
* RandomEdgeScore.cpp
*
* Created on: 11.08.2014
* Author: Gerd Lindner
*/
#include "RandomEdgeScore.h"
namespace NetworKit {
RandomEdgeScore::RandomEdgeScore(const Graph& G) : EdgeScore<double>(G) {
}
void RandomEdgeScore::run() {
if (!G.hasEdgeIds()) {
throw std::runtime_error("edg... |
<commit_before>
#include <unistd.h>
#include <sstream>
#include "daemon/beanstalk.hpp"
#include "daemon/uuid.h"
#include "tclap/CmdLine.h"
#include "alpr.h"
#include "openalpr/simpleini/simpleini.h"
#include "openalpr/cjson.h"
#include "support/tinythread.h"
#include "videobuffer.h"
#include <curl/curl.h>
#include "... |
<commit_before>/*
* File: AlarmClockSpeedTest.cpp
* Author: Amanda Carbonari
* Created: January 6, 2015 9:00am
*
* WARNING: This only measures CPU time
*/
#include <ctime>
#include <iostream>
#include <AlarmClock.h>
#include <chrono>
#include <thread>
using namespace std;
using namespace std::chrono;
typedef ... |
<commit_before>#include "device.h"
#include "sysex/communicationexception.h"
#include "sysex/getcommandlist.h"
#include "sysex/getdevice.h"
#include "sysex/getethernetportinfo.h"
#include "sysex/getinfo.h"
#include "sysex/getinfolist.h"
#include "sysex/getmidiinfo.h"
#include "sysex/getmidiportinfo.h"
#include "sysex/g... |
<commit_before>//Apr.4
// inplace_merge example
#include <iostream> // std::cout
#include <algorithm> // std::inplace_merge, std::sort, std::copy
#include <vector> // std::vector
#include <time.h>
#include <queue> // std::priority_queue
#include <map>
using namespace std;
//sort
//map
//priority_... |
<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>#ifndef TCL_WORK_GROUP_SETTINGS_HPP
#define TCL_WORK_GROUP_SETTINGS_HPP
#ifdef __APPLE__
#include <OpenCL/opencl.h>
#else
#include <CL\cl.h>
#endif
#include <vector>
#include "CLDeviceInformation.hpp"
namespace tcl
{
/**
* CLExecute::RunŃ[NO[v̐ݒ肷邽߂̃NX
* \tparam WORK_DIM [NO[v̎
*/
class CLWorkGro... |
<commit_before>/*
Copyright 2016 Fixstars Corporation
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 in ... |
<commit_before>//****************************************************************************
// GOERTZEL ALGORITHM For complex input data
//****************************************************************************
#include <iostream>
#include <iomanip>
#include <fstream> // std::ofstream
using namespa... |
<commit_before>/*
* Copyright 2008, 2009 Google Inc.
* Copyright 2007 Nintendo Co., Ltd.
*
* 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... |
<commit_before>// Copyright (c) 2014 The Bitcoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "timedata.h"
#include "netbase.h"
#include "sync.h"
#include "ui_interface.h"
#include "util.h"
#include ... |
<commit_before>#include "Scheduler.h"
#include "ProblemStatement.h"
#include <mpi.h>
#include <stdexcept>
Scheduler::Scheduler() :
nodesHaveRatings(false), rank(MPI::COMM_WORLD.Get_rank()), elf(nullptr)
{
}
Scheduler::Scheduler(const BenchmarkResult& benchmarkResult) :
nodesHaveRatings(true), nodeSet(benchma... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
//
// Game NET - A Simple Network Tutorial for OpenGL Games
//
// (C) by Sven Forstmann in 2015
//
// License : MIT
// http://opensource.org/licenses/MIT
/////////////////////////////////////////////////////////////////////... |
<commit_before>#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <math.h>
#include <set>
#include <chrono>
#include <thread>
#include <xmmintrin.h>
#include "engine.hpp"
#include "util.hpp"
namespace rack {
float gSampleRate;
static bool running = false;
static std::mutex mutex;
static std::thr... |
<commit_before>#include "Session.hpp"
#include <stdexcept>
#include <QtNetwork>
#include <QTimer>
#include <QUrl>
#include <QDataStream>
#include "utils.hpp"
#include "Matrix.hpp"
#include "parse.hpp"
namespace matrix {
constexpr uint64_t CACHE_FORMAT_VERSION = 1;
// Bumped every time a backwards-incompatible form... |
<commit_before>#include <stdlib.h>
#include<string.h>
#ifdef __APPLE__
#include <unistd.h>
#else
#include <argp.h>
#endif
#include <stdio.h>
#include <string>
#include <iostream>
#include <FatUtils.h>
#include <core/FatSystem.h>
#include <core/FatPath.h>
#include <table/FatBackup.h>
#include <table/FatDiff.h>
#includ... |
<commit_before>#include "chunk.h"
#include <stdexcept>
#include <fstream>
#include <sstream>
#include <curl/curl.h>
#include <boost/thread.hpp>
#include <boost/lexical_cast.hpp>
#include "dxjson/dxjson.h"
#include "dxcpp/dxcpp.h"
extern "C" {
#include "compress.h"
}
#include "log.h"
using namespace std;
void Chu... |
<commit_before>/**
* @file status.cc
* @author Krzysztof Trzepla
* @copyright (C) 2015 ACK CYFRONET AGH
* @copyright This software is released under the MIT license cited in
* 'LICENSE.txt'
*/
#include "messages/status.h"
#include "messages.pb.h"
#include <boost/bimap.hpp>
#include <boost/optional/optional_io.... |
<commit_before>#include "Mask.h"
#include "Image.h"
#include "Utility.h"
#include "Features.h"
#include "pRandomForest.h"
#include "dlib/cmd_line_parser.h"
#include "dlib/image_io.h"
#include <vector>
#include <string>
#include <iostream>
using namespace std;
struct Options {
int fft_width = 512;
int fft_step = 2... |
<commit_before>/*
* Copyright (c) 2014 Zubax, zubax.com
* Please refer to the file LICENSE for terms and conditions.
* Author: Pavel Kirienko <pavel.kirienko@zubax.com>
*/
#pragma once
#include <ros/ros.h>
#include <ros/console.h>
#include <eigen3/Eigen/Eigen>
#include <cmath>
#include "mathematica.hpp"
#include ... |
<commit_before>#include "Dragoon.h"
#include "../Action.h"
#include "../Actor.h"
#include "../Aura.h"
namespace models {
Dragoon::Dragoon() : Base("dragoon") {
{
struct Skill : Action {
struct Buff : Aura {
Buff() : Aura("internal-release") {}
virtual std::chrono::microseconds duration() const override... |
<commit_before>// @(#)root/gpad:$Id$
// Author: Rene Brun 03/07/96
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>/// \file ROOT/TLogger.h
/// \ingroup Base ROOT7
/// \author Axel Naumann <axel@cern.ch>
/// \date 2015-03-29
/// \warning This is part of the ROOT 7 prototype! It will change without notice. It might trigger earthquakes. Feedback
/// is welcome!
/********************************************************... |
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#if defined(HAVE_CONFIG_H)
#include <config/dash-config.h>
#endif
... |
<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_FUNCTION_CHECKERBOARD_HH
#define DUNE_STUFF_FUNCTION_CHECKER... |
<commit_before>#ifndef DUNE_STUFF_LA_SOLVER_SPARSE_EIGEN_HH
#define DUNE_STUFF_LA_SOLVER_SPARSE_EIGEN_HH
#ifdef HAVE_EIGEN
#include <Eigen/Eigen>
#include <dune/common/exceptions.hh>
#include <dune/stuff/la/container/eigen.hh>
namespace Dune {
namespace Stuff {
namespace LA {
namespace Solver {
namespace Eigen {
n... |
<commit_before>/* Blink Example
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#include <st... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2011.
// 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)
//======================================... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2011.
// 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)
//======================================... |
<commit_before>// Copyright (c) 2009-2021 The Regents of the University of Michigan
// This file is part of the HOOMD-blue project, released under the BSD 3-Clause License.
// Maintainer: joaander
#include "ActiveForceComputeGPU.h"
#include "ActiveForceComputeGPU.cuh"
#include <vector>
namespace py = pybind11;
using... |
<commit_before>#include "command.hh"
#include "store-api.hh"
#include "progress-bar.hh"
#include "fs-accessor.hh"
#include "shared.hh"
#include <queue>
using namespace nix;
static std::string hilite(const std::string & s, size_t pos, size_t len,
const std::string & colour = ANSI_RED)
{
return
std::st... |
<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>/*
* this file is part of the oxygen gtk engine
* Copyright (c) 2010 Hugo Pereira Da Costa <hugo@oxygen-icons.org>
*
* GdkPixbuf modification code from Walmis
* <http://gnome-look.org/content/show.php?content=77783&forumpage=3>
*
* This library is free software; you can redistribute it and/or
* modify... |
<commit_before>#include "cinder/app/AppBasic.h"
#include "cinder/Surface.h"
#include "cinder/gl/Texture.h"
#include "cinder/Capture.h"
#include "cinder/Text.h"
using namespace ci;
using namespace ci::app;
using namespace std;
static const int WIDTH = 640, HEIGHT = 480;
class CaptureApp : public AppBasic {
public:
... |
<commit_before>/*************************************************************************
*
* $RCSfile: XMLTableShapeImportHelper.hxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: hr $ $Date: 2004-09-08 13:50:04 $
*
* The Contents of this file are made available subject to the terms of
* either of th... |
<commit_before>#ifndef __COMPUTE_TASK_HPP_INCLUDED
#define __COMPUTE_TASK_HPP_INCLUDED
#include "entity.hpp"
#include "compute_task_struct.hpp"
#include "pre_iterate_callback.hpp"
#include "post_iterate_callback.hpp"
#include "family_templates.hpp"
#include "code/ylikuutio/opengl/opengl.hpp"
#include "code/ylikuutio/h... |
<commit_before>//////////////////////////////////////////////////////////////////////////////////////////////
// header_normalize::
//
// ATS plugin to convert headers into camel-case. It may be useful to solve
// interworking issues with legacy origins not supporting lower case headers
// required by protocols such as... |
<commit_before>// Copyright (c) 2013-2021 mogemimi. Distributed under the MIT license.
#pragma once
#include "pomdog/platform/win32/prerequisites_win32.hpp"
#include "pomdog/basic/conditional_compilation.hpp"
#include "pomdog/graphics/direct3d11/prerequisites_direct3d11.hpp"
#include "pomdog/graphics/graphics_device.... |
<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 "native_client/src/trusted/plugin/file_downloader.h"
#include <stdio.h>
#include <string>
#include "native_client/src/includ... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/usr/isteps/istep06/call_host_voltage_config.C $ ... |
<commit_before>// Copyright Verizon Media. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "hnsw_index_saver.h"
#include "hnsw_graph.h"
#include <vespa/searchlib/util/bufferwriter.h>
namespace search::tensor {
namespace {
size_t
count_valid_link_arrays(const HnswGraph &... |
<commit_before>#include <cmath>
#include <cstdio>
#include <fstream>
#include <iostream>
#include <map>
#include <seqan/basic.h>
#include <seqan/find.h>
#include <seqan/modifier.h>
#include <seqan/sequence.h>
#include <seqan/store.h>
#include "curve_smoothing.h"
#include "witio.h"
#include "find_myers_ukkonen_reads.h... |
<commit_before>/*
* Copyright (c) 2004, Index Data.
* See the file LICENSE for details.
*
* $Id: zlint.cpp,v 1.8 2004-12-13 20:50:54 adam Exp $
*/
#include <stdio.h>
#include <stdarg.h>
#include <yaz/comstack.h>
#include <yaz/options.h>
#include <yaz/otherinfo.h>
#include <yaz/charneg.h>
#include <yaz/log.h>
#... |
<commit_before>/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the "Lice... |
<commit_before>#ifndef __avm_cxx
#define __avm_cxx
#include "itkImageFileReader.h"
#include "itkImageFileWriter.h"
#include "itkVector.h"
#include "itkImage.h"
#include "itkImageRegionConstIterator.h"
#include "itkGradientToMagnitudeImageFilter.h"
#include "itkExceptionObject.h"
#include <map>
#include <iostream>
#in... |
<commit_before>#include <stdexcept>
#include "map/filters/FloodFillFilter.h"
FloodFillFilter::FloodFillFilter()
{
_x1 = 0;
_y1 = 0;
_x2 = LEVEL_MAX_WIDTH;
_y2 = LEVEL_MAX_HEIGHT;
_tile = WallTile;
}
void FloodFillFilter::apply(Level& level)
{
if(_x1 > _x2 || _y1 > _y2)
{
throw std::out_of_range("Start coo... |
<commit_before>/*
* Copyright (c) 2010 Matthew Iselin
*
* 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" AND THE... |
<commit_before>//
// Copyright (c) 2015 CNRS
//
// This file is part of Pinocchio
// Pinocchio 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
// 3 of the License, or (at your option) a... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/memory/p9_mss_freq.C $ ... |
<commit_before>#include <cerrno>
#include <Bull/Core/System/LastErrorImpl.hpp>
namespace Bull
{
namespace prv
{
unsigned int LastErrorImpl::m_lastError = 0;
/*! \brief Get the last error code sent by the OS
*
* \return Return the code of the last error
*
*/... |
<commit_before>// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All right reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the ... |
<commit_before>/*
* Copyright 2017, Flávio Keglevich
*
* 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 applica... |
<commit_before>#include <iostream>
#include <array>
#include <functional>
#include <map>
#include <set>
#include <algorithm>
#include "Vipper/Vipper.h"
#include "Modules/Gameplay/Entities/CLevel.h"
#include "Modules/Gameplay/Entities/CGameSession.h"
#include "Modules/Gameplay/View/CGameplayView.h"
namespace RunTheWo... |
<commit_before>/**
* \file
* \brief ThreadListNode class header
*
* \author Copyright (C) 2015 Kamil Szczygiel http://www.distortec.com http://www.freddiechopin.info
*
* \par License
* 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... |
<commit_before>#ifndef VSMC_UTILITY_INTEGRATE_NUMERIC_NEWTON_COTES
#define VSMC_UTILITY_INTEGRATE_NUMERIC_NEWTON_COTES
#include <vsmc/internal/common.hpp>
namespace vsmc {
namespace internal {
template <unsigned Index, typename EvalType>
struct NumericNewtonCotesEval
{
static double result (const double *coeff,... |
<commit_before>//
// This file is part of the Marble Desktop Globe.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2009 Andrew Manson <g.real.ate@gmail.com>
//
#include "KmlPlacemark... |
<commit_before><commit_msg>remove debug msg<commit_after><|endoftext|> |
<commit_before>#include "util/bitmap.h"
#include "network_character.h"
#include "object.h"
#include "object_messages.h"
#include "animation.h"
#include "util/font.h"
#include "util/funcs.h"
#include "factory/font_render.h"
#include "nameplacer.h"
#include "globals.h"
#include "world.h"
#include <vector>
#include <math.... |
<commit_before>#include "parameters_dealii_handler.h"
#include <deal.II/base/parameter_handler.h>
#include <algorithm>
#include <sstream>
namespace bart {
namespace problem {
ParametersDealiiHandler::ParametersDealiiHandler() {}
void ParametersDealiiHandler::Parse(const dealii::ParameterHandler &handler) {
// ... |
<commit_before>#include "TwitchIrcServer.hpp"
#include <IrcCommand>
#include <cassert>
#include "Application.hpp"
#include "common/Common.hpp"
#include "controllers/accounts/AccountController.hpp"
#include "controllers/highlights/HighlightController.hpp"
#include "messages/Message.hpp"
#include "messages/MessageBuild... |
<commit_before>/*
Flexisip, a flexible SIP proxy server with media capabilities.
Copyright (C) 2012 Belledonne Communications SARL.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either... |
<commit_before>/*=====================================================================
QGroundControl Open Source Ground Control Station
(c) 2009 - 2014 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
This file is part of the QGROUNDCONTROL project
QGROUNDCONTROL is free software: you can redistribut... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.