text stringlengths 54 60.6k |
|---|
<commit_before>#include <ciri/gfx/dx/DXSamplerState.hpp>
#include <ciri/gfx/dx/DXGraphicsDevice.hpp>
namespace ciri {
DXSamplerState::DXSamplerState( DXGraphicsDevice* device )
: ISamplerState(), _device(device), _samplerState(nullptr) {
}
DXSamplerState::~DXSamplerState() {
destroy();
}
bool DXSamplerState... |
<commit_before><commit_msg>ByteString->rtl::OString<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* This file is part of OpenOffice.o... |
<commit_before>// Copyright (c) 2014 Ross Kinder. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// This file contains implementations of the functions declared in the public
// header.
#include <errno.h>
#include <ringfile.h>
#include "ri... |
<commit_before>#include "pointers.h"
#include <boost/python.hpp>
#include <dart/dynamics/dynamics.h>
#include "util.h"
#include "types.h"
using ::boost::python::object;
using ::boost::python::throw_error_already_set;
using ::dart::dynamics::Joint;
using ::dart::dynamics::BodyNode;
using ::dart::dynamics::BodyNodePtr;
... |
<commit_before>/*M///////////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2015, Youssef Kashef
// Copyright (c) 2015, ELM Library Project
// 3-clause BSD License
//
//M*/
#include "elm/layers/layergraph.h"
#include "gtest/gtest.h"
#include "elm/core/debug_utils.h"
#... |
<commit_before>/*
*
* Copyright 2015 gRPC 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 applicab... |
<commit_before>/*
* ShinyAsyncJob.cpp
*
* Copyright (C) 2009-19 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 General... |
<commit_before>// Licensed under the Apache License, Version 2.0.
// Author: Jin Qing (http://blog.csdn.net/jq0123)
#include "client_async_reader_helper.h"
#include <cassert> // for assert()
#include <grpc_cb/impl/client/client_async_read_handler.h> // for HandleMsg()
#include "client_reader_async_read_cqtag.h" ... |
<commit_before>/*-------------------------------------------------------------------------
* drawElements Quality Program OpenGL ES 3.0 Module
* -------------------------------------------------
*
* Copyright 2018 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
... |
<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>/*****************************************************************************
* Controller_widget.cpp : Controller Widget for the controllers
****************************************************************************
* Copyright (C) 2006-2008 the VideoLAN team
* $Id$
*
* Authors: Jean-Baptiste K... |
<commit_before>#include "OneDEnergyWallHeating.h"
#include "EquationOfState.h"
template<>
InputParameters validParams<OneDEnergyWallHeating>()
{
InputParameters params = validParams<Kernel>();
params.addRequiredCoupledVar("rho", "density"); // _rho_var_number
params.addRequiredCoupledVar("rhou", "momentum"); /... |
<commit_before>/****************** <VPR heading BEGIN do not edit this line> *****************
*
* VR Juggler Portable Runtime
*
* Original Authors:
* Allen Bierbaum, Patrick Hartling, Kevin Meinert, Carolina Cruz-Neira
*
* -----------------------------------------------------------------
* File: $RC... |
<commit_before>// Copyright 2017 Netherlands Institute for Radio Astronomy (ASTRON)
// Copyright 2017 Netherlands eScience Center
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// ... |
<commit_before>#include "qrcodedialog.h"
#include "ui_qrcodedialog.h"
#include "guiutil.h"
#include <QPixmap>
#if QT_VERSION < 0x050000
#include <QUrl>
#endif
#include <QDebug>
#include <qrencode.h>
#define EXPORT_IMAGE_SIZE 256
QRCodeDialog::QRCodeDialog(const QString &addr, const QString &label, bool enableReq, Q... |
<commit_before>#include "splashscreen.h"
#include "clientversion.h"
#include "util.h"
#include "chainparams.h"
#include <QApplication>
#include <QPainter>
SplashScreen::SplashScreen(const QPixmap &pixmap, Qt::WindowFlags f) :
QSplashScreen(pixmap, f)
{
// set reference point, paddings
int paddingRight ... |
<commit_before>// Copyright (c) 2011-2014 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/bitcoin-config.h"
#endif
#include "splashscreen.h"
#include "net... |
<commit_before>// Copyright (c) 2013 The Chromium Embedded Framework 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 "libcef/browser/scheme_handler.h"
#include <string>
#include "libcef/browser/chrome_scheme_handler.h"
#in... |
<commit_before>/*****************************************************************************
* Copyright (C) 2011-2013 Michael Krufky
*
* Author: Michael Krufky <mkrufky@linuxtv.org>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* ... |
<commit_before>/*
This file is part of cpp-ethereum.
cpp-ethereum 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 3 of the License, or
(at your option) any later version.
cpp-ethereum is dis... |
<commit_before>#include "reactor_facility.h"
namespace reactor {
ReactorFacility::ReactorFacility(cyclus::Context* ctx)
: cyclus::Facility(ctx) {
cycle_end_ = ctx->time();
};
std::string ReactorFacility::str() {
return Facility::str();
}
void ReactorFacility::Tick() {
if(fuel_library_.name.size() == 0){
... |
<commit_before>// Module: Log4CPLUS
// File: hierarchy.cxx
// Created: 6/2001
// Author: Tad E. Smith
//
//
// Copyright 2001-2010 Tad E. Smith
//
// 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 L... |
<commit_before>#include "highlight.hpp"
#include "CgStr.hpp"
#include "config.hpp"
#include "debug.hpp"
#include <cstring>
#include <iostream>
using namespace synth;
unsigned const kMaxRefRecursion = 16;
bool synth::isTypeAliasCursorKind(CXCursorKind k)
{
return k == CXCursor_TypeAliasDecl
|| k == CXC... |
<commit_before>//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
// author: Vassil Vassilev <vasil.georgiev.vasilev@cern.ch>
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source Licens... |
<commit_before>#include "idmanager.hpp"
#include <iostream>
using namespace std;
IdManager::IdManager() {
cout << "Available IDs: " << MAX_IDS << ", IdManager memory footprint: " << MAX_IDS * sizeof(ID) / 1048576 << "MB" << endl;
for(unsigned int freeId = MAX_IDS-1; freeId > 0; freeId--) {
freeIds.push(freeId);
... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2016 ArangoDB GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except in compliance with the License.
/// You may o... |
<commit_before>/*************************************************************************
* Copyright (C) 2011-2012 by Paul-Louis Ageneau *
* paul-louis (at) ageneau (dot) org *
* *
* ... |
<commit_before>//===-- ARMMCInstLower.cpp - Convert ARM MachineInstr to an MCInst --------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>// This code implements the ability to interrupt executing Python code using
// the standard R interrupt handling mechanism.
//
// Since execution of Python code occurs within native C++ code the normal R
// interpeter checking for interrupts that occurs during do_eval does not have
// a chance to ex... |
<commit_before>#include <znc/main.h>
#include <znc/User.h>
#include <znc/IRCNetwork.h>
#include <znc/Modules.h>
#include <znc/Nick.h>
#include <znc/Chan.h>
#include <znc/IRCSock.h>
#include <znc/version.h>
#include <mutex>
#include <limits>
#include "twitchtmi.h"
#include "jload.h"
#if (VERSION_MAJOR < 1) || (VERSIO... |
<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"all_defines.hpp"
#include"aio.hpp"
#include<unistd.h>
#include<errno.h>
#include<signal.h>
#include<fcntl.h>
// used for error reporting before aborting
#include<iostream>
/*
POSIX-based asynchronous I/O and signal handling
Note that we don't program to the letter of the POSIX
specs: AFAIK ... |
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2017 The Bitcoin Core developers
// Copyright (c) 2018-2018 The VERGE Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <scr... |
<commit_before>#include "iotsaUser.h"
#include "iotsaConfigFile.h"
#undef PASSWORD_DEBUGGING // Enables admin1/admin1 to always log in
String &defaultPassword() {
static String dftPwd;
if (dftPwd == "") {
#ifdef ESP32
randomSeed(ESP.getEfuseMac());
#else
randomSeed(ESP.getChipId());
#endif
dftPwd = Strin... |
<commit_before>/* Copyright (C) 2018 Michal Kosciesza <michal@mkiol.net>
*
* 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/.
*/
#include "itemmodel.h"
#include <QDe... |
<commit_before>#include "settingRegistry.h"
#include <sstream>
#include <iostream> // debug IO
#include <libgen.h> // dirname
#include <string>
#include "utils/logoutput.h"
#include "rapidjson/rapidjson.h"
#include "rapidjson/document.h"
#include "rapidjson/error/en.h"
#include "rapidjson/filereadstream.h"
#include ... |
<commit_before>/*
* bonjour.cpp
*
* Copyright (C) 2014 William Markezana <william.markezana@me.com>
*
*/
#include "bonjour.h"
#include "strings-helper.h"
#include <muduo/base/Logging.h>
#include <signal.h>
void *avahi_service(void *arg);
/*
* constructor
*
*/
bonjour::bonjour()
{
mIniF... |
<commit_before>#include "stable_vector.h"
#include <boost/noncopyable.hpp>
#include <boost/container/stable_vector.hpp>
#include <gtest/gtest.h>
#include <list>
#include <vector>
#include <chrono>
struct A
{
explicit A(int i) : m_i(i)
{
}
int m_i;
};
struct B : A, boost::noncopyable
{
using A::A;
};
TEST(stab... |
<commit_before>#include "starlight_input.h"
#define NUM_KEYBOARD_KEYS 0x100
#define NUM_MOUSE_BUTTONS 5
// Keyboard
static bool prev[NUM_KEYBOARD_KEYS];
static bool keys[NUM_KEYBOARD_KEYS];
static bool down[NUM_KEYBOARD_KEYS];
static bool up[NUM_KEYBOARD_KEYS];
// Mouse
static bool mousePrev[NUM_MOUSE_BUTTONS];
stat... |
<commit_before><commit_msg>coverity#1019326 Unchecked dynamic_cast<commit_after><|endoftext|> |
<commit_before>#include "Board.h"
#include "Pipe.h"
#include "Log.h"
const int Board::x_offset = 227;
const int Board::y_offset = 35;
const int Board::slotSize = 48;
const int Board::lines = BOARD_LINES;
const int Board::columns = BOARD_COLUMNS;
Board::Board (SDL_Surface* s, SDL_Rect* c, SDL_Surface* back, SDL_Surfac... |
<commit_before>#include "Course.h"
#include <string>
using namespace std;
Course::Course(unsigned int _startTime, unsigned int _endTime, string _days, string _courseName, string _courseLoc, unsigned int _courseId){
startTime = _startTime;
endTime = _endTime;
days = _days;
courseName = _courseName;
courseLoc = _co... |
<commit_before>/******************************************************************************
* Copyright 2017 The Apollo 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 ... |
<commit_before>/**
* Appcelerator Titanium - licensed under the Apache Public License 2
* see LICENSE in the root folder for details on the license.
* Copyright (c) 2008 Appcelerator, Inc. All Rights Reserved.
*/
#include "properties_binding.h"
#include <Poco/StringTokenizer.h>
#include <Poco/File.h>
using namesp... |
<commit_before>//===- DeadStoreElimination.cpp - Dead Store Elimination ------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by Owen Anderson and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===-----... |
<commit_before>//===-- LowerGC.cpp - Provide GC support for targets that don't -----------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
... |
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/url_request/url_request_throttler_manager.h"
#include <list>
#include "base/logging.h"
#include "base/string_util.h"
n... |
<commit_before>/*
* Copyright (C) 2016 Luke San Antonio
* All rights reserved.
*/
#include <chrono>
#include <string>
#include "sdl_helper.h"
#include "gfx/scene.h"
#include "assets/minigltf.h"
#include "common/log.h"
int main(int argc, char** argv)
{
redc::Scoped_Log_Init log_raii{};
if(argc < 2)
{
redc::... |
<commit_before>// Scintilla source code edit control
/** @file LexPS.cxx
** Lexer for PostScript
**
** Written by Nigel Hathaway.
**/
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <stdarg.h>
#include <stdio.h>
#include <fcntl.h>
#include "Platform.h"
#include "PropSet.h"
#include "Accessor.... |
<commit_before>#include <sstream>
#include "util/bitmap.h"
#include "factory/collector.h"
#include "network/network.h"
#include "util/token_exception.h"
#include "mugen/exception.h"
#include "mugen/menu.h"
#include "mugen/game.h"
#include "music.h"
#include "menu/menu.h"
#include "menu/menu-exception.h"
#include "inpu... |
<commit_before>// Copyright 2012 Cloudera Inc.
//
// 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 ... |
<commit_before><commit_msg>Use after free error due to CanvasRenderinContext2D::State not unregistering callback<commit_after><|endoftext|> |
<commit_before>// Copyright (c) 2013 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include <string>
#include "atom/common/platform_util.h"
#include "atom/common/native_mate_converters/file_path_converter.h"
#include "atom/common/native_mate_converter... |
<commit_before>#ifndef IMPLSTORE_HPP
# define IMPLSTORE_HPP
# pragma once
#include <cassert>
#include <cstddef>
#include <type_traits>
#include <utility>
namespace generic
{
template <class U, ::std::size_t N = 64>
class implstore
{
public:
static constexpr ::std::size_t const buffer_size = N;
using value_ty... |
<commit_before>// Copyright (c) 2013 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include <string>
#include "atom/common/platform_util.h"
#include "atom/common/native_mate_converters/file_path_converter.h"
#include "atom/common/native_mate_converter... |
<commit_before>#include <stdlib.h>
#include <unistd.h>
#include <stdio.h>
#include <mixerr.h>
#include <Instrument.h>
#include <notetags.h>
#include <rt.h>
#include <rtdefs.h>
#include "MIXN.h"
#include <ugens.h>
#include "funcs.h"
extern int resetval;
MIXN::MIXN() : Instrument()
{
in = NULL;
my_aud_locs = aud_l... |
<commit_before>/*!
\file system.cpp
\brief System management implementation
\author Ivan Shynkarenka
\date 06.07.2015
\copyright MIT License
*/
#include "benchmark/system.h"
#if defined(__APPLE__)
#include <mach/mach.h>
#include <mach/mach_time.h>
#include <sys/sysctl.h>
#include <math.h>
#include... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
/// @brief application endpoint server feature
///
/// @file
///
/// DISCLAIMER
///
/// Copyright 2004-2012 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may ... |
<commit_before>/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2010, Willow Garage, 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... |
<commit_before>#include "vorbisbuf.h"
#include <system_error>
#include <cstring>
namespace fys
{
#define ERROR_MESSAGE_FROM_ENUM(e) case e: return #e;
std::error_category& vorbisbuf_error_category()
{
static struct : public std::error_category
{
const char* name() const noexcept override
{
... |
<commit_before>#include "instanciate.h"
using namespace Yuni;
namespace Nany
{
namespace Pass
{
namespace Instanciate
{
namespace // anonymous
{
static inline bool debugResolveListOnlyContainsFunc(const std::vector<std::reference_wrapper<Atom>>& list)
{
for (auto& atom: list)
{
if (not atom.get(... |
<commit_before>//===-- hwasan_interceptors.cc --------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/*
* Copyright (c) 2017, Ford Motor Company
* 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
*... |
<commit_before>// Copyright (c) 2021 midnightBITS
// This code is licensed under MIT license (see LICENSE for details)
#include "flask-app.hh"
#include <stdlib.h>
#include <chrono>
#include "flask-app-dir.hh"
#ifdef _WIN32
#include <Windows.h>
#undef max
#undef min
#endif
using namespace std::literals;
namespace ta... |
<commit_before>/*************************************************************************
* UrBackup - Client/Server backup system
* Copyright (C) 2011 Martin Raiber
*
* 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 "mainwidget.h"
#include "ui_mainwidget.h"
MainWidget::MainWidget(QWidget *parent) :
QWidget(parent),
ui(new Ui::MainWidget)
{
ui->setupUi(this);
// setup
createAction();
createTrayIcon();
// set echomode
ui->passEdit->setEchoMode( QLineEdit::Password );
//... |
<commit_before>#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QStatusBar>
//#include ""
//#include ""
#include <QMessageBox>
using namespace std;
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
ui->setupUi(this);
QStatusBar *statusBar = this->stat... |
<commit_before>#include "repo_log.h"
#if BOOST_VERSION > 105700
#include <boost/core/null_deleter.hpp>
#else
#include <boost/utility/empty_deleter.hpp>
#endif
#include <boost/iostreams/stream.hpp>
#include <boost/log/expressions.hpp>
#include <boost/log/sinks/sync_frontend.hpp>
#include <boost/log/sinks/text_ostream_... |
<commit_before>/* This file is part of Zanshin Todo.
Copyright 2008 Kevin Ottens <ervin@kde.org>
Copyright 2008, 2009 Mario Bensi <nef@ipsquad.net>
This program 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... |
<commit_before>#include "mainwindow.h"
#include <KActionCollection>
#include <QFileDialog>
#include <KMessageBox>
#include <KService>
#include <KStandardAction>
#include <QUrl>
#include <KToolBar>
#include <QApplication>
#include <QTemporaryDir>
#include <QTemporaryFile>
#include <QFile>
#include <iostream>
#include... |
<commit_before>/*
* Main Send File Transfer Window
*
* Copyright (C) 2011 David Edmundson <kde@davidedmundson.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; either
* ver... |
<commit_before>#ifndef ERASED_HPP
#define ERASED_HPP
#include <functional>
#include <memory>
// value semantic type erasure via base types
template<typename T>
class erased final {
public:
// alias for unique_ptr with a deleter function
template<typename U>
using ptr = std::unique_ptr<U, std::function<void (U*)>>;... |
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <math.h>
#include <stdio.h> // FIXME(brettw) eraseme.
#include <algorithm>
#include "ppapi/c/pp_event.h"
#include "ppapi/c/... |
<commit_before><commit_msg>ch-49: add the 1-st example from chapter 49<commit_after><|endoftext|> |
<commit_before>//#include "utilities.h"
#include "new_mapper.hpp"
Realm::Logger log_solver_mapper("solver_mapper");
SolverMapper::SolverMapper(Machine machine, Runtime *rt, Processor local,
std::vector<Processor>* _procs_list,
std::vector<Memory>* _sysmems_list,
std::map<Memory, std::vector<Process... |
<commit_before>// Copyright (c) 2015 The Brick Authors.
#include "brick/indicator/unity_launcher.h"
#include "brick/brick_app.h"
#include "include/base/cef_logging.h"
void
UnityLauncher::Init() {
handler_ = unity_launcher_entry_get_for_desktop_id(APP_COMMON_NAME ".desktop");
RegisterEventListeners();
}
void
Unit... |
<commit_before>// Copyright (c) 2019 - 2021 by Robert Bosch GmbH. All rights reserved.
// Copyright (c) 2021 - 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 t... |
<commit_before>/* Copyright 2017 Stanford University, NVIDIA 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 ... |
<commit_before>//
// Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved.
//
#ifndef VERSIONS_HPP_
#define VERSIONS_HPP_
#include "utils/macros.hpp"
#ifndef AMD_PLATFORM_NAME
# define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing"
#endif // AMD_PLATFORM_NAME
#ifndef AMD_PLATFORM_BUILD_NUMBE... |
<commit_before>//
// Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved.
//
#ifndef VERSIONS_HPP_
#define VERSIONS_HPP_
#include "utils/macros.hpp"
#ifndef AMD_PLATFORM_NAME
#define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing"
#endif // AMD_PLATFORM_NAME
#ifndef AMD_PLATFORM_BUILD_NUMBE... |
<commit_before>//
// Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved.
//
#ifndef VERSIONS_HPP_
#define VERSIONS_HPP_
#include "utils/macros.hpp"
#ifndef AMD_PLATFORM_NAME
# define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing"
#endif // AMD_PLATFORM_NAME
#ifndef AMD_PLATFORM_BUILD_NUMBE... |
<commit_before>//
// Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved.
//
#ifndef VERSIONS_HPP_
#define VERSIONS_HPP_
#include "utils/macros.hpp"
#ifndef AMD_PLATFORM_NAME
#define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing"
#endif // AMD_PLATFORM_NAME
#ifndef AMD_PLATFORM_BUILD_NUMBE... |
<commit_before>//
// Copyright (c) 2010 Advanced Micro Devices, Inc. All rights reserved.
//
#ifndef VERSIONS_HPP_
#define VERSIONS_HPP_
#include "utils/macros.hpp"
#ifndef AMD_PLATFORM_NAME
#define AMD_PLATFORM_NAME "AMD Accelerated Parallel Processing"
#endif // AMD_PLATFORM_NAME
#ifndef AMD_PLATFORM_BUILD_NUMBE... |
<commit_before>#ifndef ALEPH_PERSISTENCE_DIAGRAMS_IO_JSON_HH__
#define ALEPH_PERSISTENCE_DIAGRAMS_IO_JSON_HH__
#include <fstream>
#include <ostream>
#include <string>
namespace aleph
{
namespace io
{
/**
Writes a persistence diagram to an output stream, using the JSON
format. The diagram will be serialized such... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 1999 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistri... |
<commit_before>//!
//! @author Yue Wang
//! @date 26.11.2014
//!
//! @brief Implementation for Listing 4.13
//!
#include <../include/utilities.hpp>
#include <iostream>
#include <list>
#include <algorithm>
#include <future>
namespace para {
template<typename T>
std::list<T> parallel_functional_quick_sort(std::list... |
<commit_before>#include "../common/init.h"
#include "../common/timer.h"
#include <iostream>
#include <vector>
#include "util/stretch-bitmap.h"
#include "util/font.h"
#include "util/debug.h"
#include "util/load_exception.h"
#include "util/token_exception.h"
#include "util/stretch-bitmap.h"
#include "util/input/input.h... |
<commit_before>/*
* (C) 2016 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include "tests.h"
#if defined(BOTAN_HAS_OCSP)
#include <botan/ocsp.h>
#include <botan/x509path.h>
#include <botan/certstor.h>
#include <botan/calendar.h>
#endif
namespace Botan_Tests {
#if de... |
<commit_before>/**
* \file
*
* \brief source file of mount command
*
* \copyright BSD License (see doc/COPYING or http://www.libelektra.org)
*
*/
#include <mount.hpp>
#include <backend.hpp>
#include <backends.hpp>
#include <cmdline.hpp>
#include <iostream>
#include <iterator>
#include <fstream>
#include <vect... |
<commit_before><commit_msg>* notify theme loading with --load-extension * fix crasher in theme parsing with no images<commit_after><|endoftext|> |
<commit_before>/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "TransitionView.h"
#include "OverView.h"
#include "SampleCode.h"
#include "SkView.h"
#include "SkCanvas.h"
#include "SkTime.h"
#include "SkInterpolator... |
<commit_before>#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <aleph/containers/PointCloud.hh>
#include <aleph/config/FLANN.hh>
#include <aleph/geometry/BruteForce.hh>
#include <aleph/geometry/FLANN.hh>
#include <aleph/geometry/VietorisRipsComplex.hh>
#include <aleph/geometry/distances/Euclidean.... |
<commit_before><commit_msg>Some followup cleanup now that these methods are in the formula cell only.<commit_after><|endoftext|> |
<commit_before><commit_msg>surely this check should preceed deref of pActiveViewSh<commit_after><|endoftext|> |
<commit_before><commit_msg>fdo#56098 Paste Special options after cut incorrect<commit_after><|endoftext|> |
<commit_before>#include "mastercard.h"
#include "glodec.h"
#include "conarray.h"
bool luhn_test(int card_number)//verify mastercard
{
int s1;
int s2;
int s3;
std::vector<int> card_vector;
std::vector<int> card_reverse;
std::vector<int> even_digits;
conarray::conarray(13, card_number, card_vector, card_rever... |
<commit_before>// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/base_switches.h"
#include "base/bind.h"
#include "base/command_line.h"
#include "base/memory/scoped_vector.h"
#include "base... |
<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 <map>
#include "base/command_line.h"
#include "base/file_util.h"
#include "base/path_service.h"
#include "base/string_number_... |
<commit_before>/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2013-2020 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permit... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.