text stringlengths 54 60.6k |
|---|
<commit_before>/*
* Copyright (c) 2014 Samsung Electronics Co., Ltd 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/licens... |
<commit_before>/*=============================================================================
Library: CppMicroServices
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file ex... |
<commit_before>/*
* PuckManager.cpp
*
* Created on: 09.06.2017
* Author: aca592
*/
#include "PuckManager.h"
#include "logger.h"
#include "logScope.h"
PuckManager::PuckManager(int chid)
: puckList()
, nextPuckID(0)
, chid(chid)
{}
PuckManager::~PuckManager() {
reset();
}
void PuckManager::reset() {
... |
<commit_before>/*
* Copyright 2015 - 2018 gtalent2@gmail.com
*
* 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/.
*/
#pragma once
#include "types.hpp"
#ifdef DEBUG... |
<commit_before><commit_msg>Move the change workign directory before loading external loads, allowing the files to be found<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 "gm/gm.h"
#include "include/core/SkCanvas.h"
#include "include/core/SkClipOp.h"
#include "include/core/SkColor.h"
#include "include/core/SkFont.h"
#inc... |
<commit_before>/*
ePaper.cpp
2013 Copyright (c) Seeed Technology Inc. All right reserved.
Modified by Loovee
www.seeedstudio.com
2013-7-2
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 ... |
<commit_before><commit_msg>Oilpan: ASan build fix after r198184<commit_after><|endoftext|> |
<commit_before><commit_msg>computeCI(): Constify read-only variable<commit_after><|endoftext|> |
<commit_before>//===- lib/Driver/WinLinkInputGraph.cpp -----------------------------------===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------... |
<commit_before>//===--- FrontendActions.cpp ----------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>//------------------------------------------------------------------------------
// CLING - the C++ LLVM-based InterpreterG :)
// version: $Id$
// author: Vassil Vassilev <vasil.georgiev.vasilev@cern.ch>
//------------------------------------------------------------------------------
#include "cling/In... |
<commit_before>
#include "BasicBlock.h"
#include <llvm/IR/Function.h>
#include <llvm/IR/Instructions.h>
#include "Type.h"
namespace dev
{
namespace eth
{
namespace jit
{
const char* BasicBlock::NamePrefix = "Instr.";
BasicBlock::BasicBlock(ProgramCounter _beginInstIdx, ProgramCounter _endInstIdx, llvm::Function* _... |
<commit_before>
#include "BasicBlock.h"
#include <iostream>
#include <llvm/IR/CFG.h>
#include <llvm/IR/Function.h>
#include <llvm/IR/Instructions.h>
#include <llvm/IR/IRBuilder.h>
#include <llvm/Support/raw_os_ostream.h>
#include "Type.h"
namespace dev
{
namespace eth
{
namespace jit
{
const char* BasicBlock::Name... |
<commit_before>/*
* endian.hpp
* Some functions for handling endian.
*
* written by janus_wel<janus.wel.3@gmail.com>
* This source code is NOT MY COPYRIGHTED WORK, and has NO WARRANTY.
*
* Refer - a source of an idea:
* http://www.kijineko.co.jp/tech/cpptempls/endian
* */
#ifndef ENDIAN_H
#define ENDIAN_H
#... |
<commit_before>/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
*
* Gearmand client and server library.
*
* Copyright (C) 2011-2012 Data Differential, http://datadifferential.com/
* Copyright (C) 2008 Brian Aker, Eric Day
* All rights reserved.
*
* Redistribution and use in source and binary forms, with... |
<commit_before><commit_msg>In system level install case go back to copying files instead of moving them.<commit_after><|endoftext|> |
<commit_before>#ifndef CLUSTERING_ADMINISTRATION_PARSER_MAKER_TCC_
#define CLUSTERING_ADMINISTRATION_PARSER_MAKER_TCC_
#include "clustering/administration/parser_maker.hpp"
template<class protocol_t, class parser_t>
parser_maker_t<protocol_t, parser_t>::parser_maker_t(mailbox_manager_t *_mailbox_manager,
... |
<commit_before>#include <cstdio>
#include <fstream>
#include <unistd.h>
#include <kms++/kms++.h>
#include <kms++util/kms++util.h>
using namespace std;
using namespace kms;
static void read_frame(ifstream& is, DumbFramebuffer* fb, Crtc* crtc, Plane* plane)
{
for (unsigned i = 0; i < fb->num_planes(); ++i)
is.read(... |
<commit_before>//===- PrettyStackTrace.cpp - Pretty Crash Handling -----------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===--------------------------------------... |
<commit_before>//===---- X86FixupSetCC.cpp - optimize usage of LEA instructions ----------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===------------... |
<commit_before><commit_msg>statement aligned as second statement in if body but not in a statement block<commit_after><|endoftext|> |
<commit_before>// ===============================================================
// Computer Graphics Homework Solutions
// Copyright (C) 2017 by George Wolberg
//
// HW2b.cpp - HW2b class
//
// Written by: George Wolberg, 2017
// ===============================================================
#include "HW2b.h"
// s... |
<commit_before>// C++ source file - (C) 2003 Robert Osfield, released under the OSGPL.
//
// Simple example of use of Producer::RenderSurface to create an OpenGL
// graphics window, and OSG for rendering.
#include <osg/Timer>
#include <osg/GraphicsContext>
#include <osg/GraphicsThread>
#include <osgUtil/UpdateVisitor... |
<commit_before>//===-- GlobalDCE.cpp - DCE unreachable internal functions ----------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#include <stan/io/mcmc_writer.hpp>
#include <test/test-models/no-main/io_example.cpp>
#include <vector>
#include <boost/random/additive_combine.hpp>
#include <stan/mcmc/sample.hpp>
#include <stan/mcmc/hmc/nuts/diag_e_nuts.hpp>
#include <sstream>
#include <string>
#include <gtest/gtest.h>
TEST(StanI... |
<commit_before>#include <pwn/engine/loop.h>
#include <pwn/engine/game.h>
#include <pwn/engine/startup.h>
#include <pwn/render/world3.h>
#include <pwn/render/world3widget.h>
#include <pwn/math/operations.h>
#include <pwn/render/actordef.h>
#include <pwn/render/actor.h>
#include <pwn/mesh/mesh.h>
#include <pwn/mesh/buil... |
<commit_before>// Copyright (c) 2012 Plenluno All rights reserved.
#include "Libj/js_array.h"
#include "libj/detail/js_array.h"
namespace libj {
JsArray::Ptr JsArray::create() {
return Ptr(new detail::JsArray<JsArray>());
}
JsArray::Ptr JsArray::create(ArrayList::CPtr list) {
if (!list) return null();
... |
<commit_before><commit_msg>remove log<commit_after><|endoftext|> |
<commit_before>/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** No Commerci... |
<commit_before>/*
* Copyright (C) 2010-2011 Dmitry Marakasov
*
* This file is part of glosm.
*
* glosm 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 opt... |
<commit_before>///////////////////////////////////////////////////////////////////////
// File: svutil.cpp
// Description: ScrollView Utilities
// Author: Joern Wanke
// Created: Thu Nov 29 2007
//
// (C) Copyright 2007, Google Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// y... |
<commit_before>/*********************************************************************
* tm700_demo_node.cpp
*
* Copyright 2016 Copyright 2016 Techman Robot 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 ... |
<commit_before>// $Id: mesh_refinement_smoothing.C,v 1.11 2005-05-18 18:07:36 roystgnr Exp $
// The libMesh Finite Element Library.
// Copyright (C) 2002-2005 Benjamin S. Kirk, John W. Peterson
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General P... |
<commit_before>// Copyright 2004-present Facebook. All Rights Reserved.
#include "osquery/tables/system/processes.h"
#include <algorithm>
#include <map>
#include <vector>
#include <string>
#include <libproc.h>
#include <stdlib.h>
#include <boost/filesystem/operations.hpp>
#include <boost/filesystem/path.hpp>
#inclu... |
<commit_before>#include "stdafx.h"
#include "sceneGraph.h"
#include "CommonLog.h"
#include <maya/MItDag.h>
#include <maya/MFnDagNode.h>
static MString __PythonBool[] = { MString("False"), MString("True") };
static inline const MString &PythonBool(bool b)
{
return __PythonBool[b?1:0];
}
static void __file_and_time_... |
<commit_before>#include "formulation/scalar/cfem_diffusion.h"
#include <array>
#include <memory>
#include <cstdlib>
#include "data/cross_sections.h"
#include "domain/tests/finite_element_mock.h"
#include "material/tests/mock_material.h"
#include "test_helpers/gmock_wrapper.h"
#include "test_helpers/test_helper_functi... |
<commit_before>/**************************************************************************
*
* Copyright 2009-2011 VMware, Inc.
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal... |
<commit_before>/*************************************************************************
*
* $RCSfile: interceptedinteraction.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: vg $ $Date: 2005-02-16 15:45:15 $
*
* The Contents of this file are made available subject to the terms of
* either of the f... |
<commit_before>#define THRUST_DEBUG 1
#include "lcp/ChLcpVariablesGeneric.h"
#include "lcp/ChLcpVariablesBody.h"
#include "lcp/ChLcpConstraintTwoGeneric.h"
#include "lcp/ChLcpSystemDescriptor.h"
#include "lcp/ChLcpIterativeSOR.h"
#include "lcp/ChLcpIterativePMINRES.h"
#include "lcp/ChLcpIterativeBB.h"
#include "lcp/Ch... |
<commit_before>
#include <togo/core/error/assert.hpp>
#include <togo/core/utility/utility.hpp>
#include <togo/core/log/log.hpp>
#include <togo/core/collection/array.hpp>
#include <togo/core/string/string.hpp>
#include <togo/core/io/memory_stream.hpp>
#include <quanta/core/object/object.hpp>
#include <togo/support/tes... |
<commit_before>/* Copyright (c) 2010-2012, Revori Contributors
Permission to use, copy, modify, and/or 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. */
#include <stdlib.h>
#include <... |
<commit_before>#include <utils.h>
#include "command.h"
#include "../CommandHandler.h"
#include "../OptionParser.h"
/* full name of the command */
CMDNAME("xp");
/* description of the command */
CMDDESCR("query experience information");
/* command usage synopsis */
CMDUSAGE("$xp [-i] NUM");
#define MAX_XP 0xBEBC200
s... |
<commit_before>/*
* Copyright (c) 2005, Peter Sommerlad and IFS Institute for Software at HSR Rapperswil, Switzerland
* All rights reserved.
*
* This library/application is free software; you can redistribute and/or modify it under the terms of
* the license that is included with this library/application in the fi... |
<commit_before>/*
* Copyright (c) 2018, 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 required by ... |
<commit_before>#define MAXV 2000
int d[MAXV], p[MAXV], pot[MAXV];
struct cmp {
bool operator ()(int i, int j) {
return d[i] == d[j] ? i < j : d[i] < d[j];
}
};
struct flow_network {
struct edge {
int v, cap, cost, nxt;
edge(int _v, int _cap, int _cost, int _nxt)
: v(_v), ... |
<commit_before>#include <application.h>
#include "math.h"
#include "color.h"
// Convert a color from RGB representation to HSV representation.
void Color::Rgb::toHsv(Color::Hsv& hsv)
{
uint8_t r = this->r;
uint8_t g = this->g;
uint8_t b = this->b;
uint8_t min = min(r, min(g, b));
uint8_t max = m... |
<commit_before>#ifndef __MODEL_HPP_INCLUDED
#define __MODEL_HPP_INCLUDED
#include "entity.hpp"
// Include GLEW
#ifndef __GL_GLEW_H_INCLUDED
#define __GL_GLEW_H_INCLUDED
#include <GL/glew.h> // GLfloat, GLuint etc.
#endif
// Include GLM
#ifndef __GLM_GLM_HPP_INCLUDED
#define __GLM_GLM_HPP_INCLUDED
#include <glm/glm.h... |
<commit_before>
/*
Filename:
common.cpp
Author:
Vincent Heins / TheMysteriousVincent
Description:
This class holds static functions for common things, like converting an string to an int, e.g...
*/
#include "common.h"
/*
Publicity: public
Return type: void
Name/Type: st... |
<commit_before>/*
* Copyright (c) 2011, Peter Thorson. 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, th... |
<commit_before>#include "config.h"
Config* Config::getHandle() {
static Config instance;
return &instance;
}
void Config::setMainConfigFile(const std::string& configFileName) {
if (confname.empty())
confname = configFileName;
}
void Config::readConfig() {
config = readConfig(confname, std::ifstream(confname));... |
<commit_before>#include <wx/fileconf.h>
#include "config.h"
Config appConfig;
Config::Config() {
}
Config::~Config() {
}
// FIXME - i hate to use this
// This is a macro that will allocate and deallocate the wxConfig, since
// our app crashes if we let it live too long (for some reason). This
// is a temporary hac... |
<commit_before>#include "context.hh"
#include "alias_registry.hh"
#include "client.hh"
#include "user_interface.hh"
#include "register_manager.hh"
#include "window.hh"
namespace Kakoune
{
Context::~Context() = default;
Context::Context(InputHandler& input_handler, SelectionList selections,
Flags fl... |
<commit_before>#ifndef context_hh_INCLUDED
#define context_hh_INCLUDED
#include "window.hh"
namespace Kakoune
{
class Buffer;
struct Context
{
Context()
: m_window(nullptr), m_buffer(nullptr) {}
Context(Window& window)
: m_window(&window), m_buffer(&window.buffer()) {}
Context(Buffer& bu... |
<commit_before>#ifndef STAN_MATH_PRIM_ARR_ERR_IS_ORDERED_HPP
#define STAN_MATH_PRIM_ARR_ERR_IS_ORDERED_HPP
#include <vector>
#include <string>
namespace stan {
namespace math {
/**
* Return <code>true</code> if the vector is sorted into strictly
* increasing order.s
* @tparam T_y Type of scalar, requires class me... |
<commit_before>/**
* Extension.cpp
*
* Starting point for the REACT-PHP-CPP extension. In this file all
* classes and methods that are defined by the extension are
* registered to PHP
*
* @copyright 2014 Copernica BV
*/
/**
* Dependencies
*/
#include "loop.h"
#include "timeoutwatcher.h"
#include "inter... |
<commit_before>#include "device.h"
#ifndef QT_NO_DBUS
#include "systemhelperdbus.h"
#endif
Device::Device(const QString &p, DeviceType t, const QString &l, const QString &u, QObject *parent) :
QObject(parent)
, m_path(p)
, m_type(t)
, m_label(l)
, m_uuid(u)
{
#ifndef QT_NO_DBUS
m_helper = qobject_cast... |
<commit_before>#include "device.h"
#include "sysex/commands.h"
#include "sysex/deviceinfo.h"
#include "sysex/getcommands.h"
#include "sysex/infos.h"
#include "sysex/midi.h"
#include <array>
#include <cstring>
#include <iostream>
#include <sstream>
#include <unistd.h>
Device::Device(int inPortNumber, int outPortNumber... |
<commit_before>#include "cylvionpp/field.h"
#include <algorithm>
#include <array>
#include "cylvionpp/card.h"
#include "cylvionpp/stack.h"
namespace cylvionpp {
namespace core {
namespace {
class FieldImpl: public Field {
public:
bool Empty() const override;
const std::unique_ptr<Card> & Peek(size_t row, ... |
<commit_before>/*
* Copyright 2013 Facebook, 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 l... |
<commit_before>#include "stdafx.h"
#include "Storage.h"
Storage::Storage()
{
}
FoneOSString Storage::GetBasePath()
{
char * prefPath;
#ifdef SIMULATOR_BUILD
prefPath = SDL_GetPrefPath("Flippers", "foneOS");
#else
prefPath = "/fone/";
#endif
FoneOSString prefPathStr;
prefPathStr = Utils::CharArrayToFo... |
<commit_before>#include "football_field.h"
#include <QDebug>
#define keycontrast(KEY) (10 - (KEY))
#define red_win(X, Y) ((Y) == -26 && (X) <= 2 && (X) >= -2)
#define blue_win(X, Y) ((Y) == 26 && (X) <= 2 && (X) >= -2)
// Конструктор
FootballField::FootballField()
{
// Зануляем массив.
for(int i = 0; i < FIEL... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: javaoptions.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: rt $ $Date: 2005-09-08 14:41:40 $
*
* The Contents of this file are ma... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: tooltiplbox.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: obo $ $Date: 2006-09-17 14:35:44 $
*
* The Contents of this file are m... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: databaselocationinput.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: kz $ $Date: 2008-03-06 17:11:01 $
*
* The Contents of this f... |
<commit_before>#include "taichi/analysis/mesh_bls_analyzer.h"
#include "taichi/system/profiler.h"
#include "taichi/ir/analysis.h"
namespace taichi {
namespace lang {
MeshBLSAnalyzer::MeshBLSAnalyzer(OffloadedStmt *for_stmt,
MeshBLSCaches *caches,
bool... |
<commit_before>#include <vector>
#include <thread>
#include <atomic>
#include "scene.h"
#include "samplers/sampler.h"
#include "render/render_target.h"
#include "render/camera.h"
#include "geometry/geometry.h"
#include "linalg/ray.h"
#include "linalg/transform.h"
#include "driver.h"
Worker::Worker(Scene &scene, BlockQ... |
<commit_before>#include <v8.h>
#include <node.h>
#include <cstring>
#include <stdlib.h>
#include <dbus/dbus.h>
#include "encoder.h"
namespace Encoder {
using namespace node;
using namespace v8;
using namespace std;
const char *GetSignatureFromV8Type(Handle<Value>& value)
{
if (value->IsTrue() || value->IsFal... |
<commit_before>#include "engine.h"
#include <iostream>
namespace wake
{
static void error_callback(int err, const char* description)
{
std::cout << "GLFW error: " << description << std::endl;
}
Engine& Engine::get()
{
static Engine instance;
return instance;
}
boo... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2006 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public... |
<commit_before>#include "engine.h"
#include "random.h"
#include "gameEntity.h"
#include "Updatable.h"
#include "collisionable.h"
#ifdef DEBUG
#include <typeinfo>
int DEBUG_PobjCount;
PObject* DEBUG_PobjListStart;
#endif
#ifdef ENABLE_CRASH_LOGGER
#ifdef __WIN32__
//Exception handler for mingw, from https://... |
<commit_before>/*
* Copyright (C) 2015 Luke San Antonio
* All rights reserved.
*/
#include <fstream>
#include <sstream>
#include <cstdlib>
#include <vector>
#include <thread>
#include <chrono>
#include "common/log.h"
#include "gfx/gl/driver.h"
#include "gfx/camera.h"
#include "gfx/mesh_chunk.h"
#include "gfx/suppo... |
<commit_before>/*
* FDOmenu - Menu code generator for icewm
* Copyright (C) 2015 Eduard Bloch
*
* Inspired by icewm-menu-gnome2 and Freedesktop.org specifications
* Using pure glib/gio code and a built-in menu structure instead
* the XML based external definition (as suggested by FD.o specs)
*
* Release u... |
<commit_before><commit_msg>Reenable BWSI key on login screen<commit_after><|endoftext|> |
<commit_before><commit_msg>Fixed compilation error under Visual Studio 2012<commit_after><|endoftext|> |
<commit_before><commit_msg>Bugfix: removed duplicate `#include` lines.<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* $RCSfile: app.hxx,v $
*
* $Revision: 1.1.1.1 $
*
* last change: $Author: hr $ $Date: 2000-09-18 16:48:27 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licens... |
<commit_before>/*
* SWE_Plane_TS_ln_erk.cpp
*
* Created on: 29 May 2017
* Author: Martin Schreiber <SchreiberX@gmail.com>
*
* Changelog:
*
* 2017-07-13: Updated and validated by P. Peixoto.
* 2017-05-29: Based on source swe_plane.cpp
* which was also written by Pedro Peixoto
*/
#include "../s... |
<commit_before>/*
* AscEmu Framework based on Arcemu MMORPG Server
* Copyright (C) 2014-2016 AscEmu Team <http://www.ascemu.org>
* Copyright (C) 2009-2012 ArcEmu Team <http://www.arcemu.org>
* Copyright (C) 2008-2009 Sun++ Team <http://www.sunplusplus.info>
*
* This program is free software: you can redistribute it and... |
<commit_before>// Copyright 2013-2015, Durachenko Aleksey V. <durachenko.aleksey@gmail.com>
//
// 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 ... |
<commit_before>
#include <iostream>
#include <memory>
#include <SDL.h>
#include <images.h>
#include <SOIL.h>
#include <res_path.h>
namespace venk
{
std::shared_ptr<Image> image_load(const std::string& fileName)
{
auto image_deleter = [](Image *i) {
if (i) {
SOIL_free_image_data(i->pixe... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: groupproperties.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: ihi $ $Date: 2006-11-14 13:11:07 $
*
* The Contents of this file a... |
<commit_before>/*
* Copyright (C) 2016 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 applicab... |
<commit_before>/*
Copyright (c) 2016 Carl Sherrell
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, merge, publish... |
<commit_before>/*!
* mixed_initiative_teleop_node.cpp
* Copyright (c) 2014, Manolis Chiou
* 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 r... |
<commit_before>#include <babylon/meshes/sub_mesh.h>
#include <babylon/babylon_stl_util.h>
#include <babylon/collisions/intersection_info.h>
#include <babylon/culling/bounding_info.h>
#include <babylon/culling/ray.h>
#include <babylon/engines/constants.h>
#include <babylon/engines/engine.h>
#include <babylon/en... |
<commit_before>#include <babylon/misc/file_tools.h>
#define STB_IMAGE_IMPLEMENTATION
#if defined(__GNUC__) || defined(__MINGW32__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wcast-qual"
#pragma GCC diagnostic ignored "-Wconversion"
#if __GNUC__ > 5
#pragma GCC diagnostic ignored "-Wmisleading-indenta... |
<commit_before>/*
A C++ header for Roaring Bitmaps.
*/
#ifndef INCLUDE_ROARING_HH_
#define INCLUDE_ROARING_HH_
#include <stdarg.h>
#include <algorithm>
#include <new>
#include <stdexcept>
#include <roaring/roaring.h>
class RoaringSetBitForwardIterator;
class Roaring {
public:
/**
* Create an empty bitma... |
<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 (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>#include "ncurses.hh"
#include "display_buffer.hh"
#include "register_manager.hh"
#include "utf8_iterator.hh"
#include "event_manager.hh"
#include <map>
#include <signal.h>
#include <termios.h>
#include <sys/ioctl.h>
#include <fcntl.h>
namespace Kakoune
{
static void set_attribute(int attribute, bo... |
<commit_before>#include "tensorflow/core/common_runtime/GraphLogger.h"
#include "tensorflow/core/framework/step_stats.pb.h"
namespace tensorflow {
GraphLogger& GraphLogger::getInstance() {
static GraphLogger instance;
return instance;
}
vertex *GraphLogger::addvertex(const string &name)
... |
<commit_before>/* Copyright 2016 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 appli... |
<commit_before>/*
* Copyright 2007-2017 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>/* bzflag
* Copyright (c) 1993 - 2004 Tim Riker
*
* This package is free software; you can redistribute it and/or
* modify it under the terms of the license found in the file
* named COPYING that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
... |
<commit_before>/* -*- Mode: C; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2011-2013 Couchbase, 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 Licen... |
<commit_before>#include "eval.hh"
#include "command.hh"
#include "common-args.hh"
#include "shared.hh"
#include "store-api.hh"
#include "local-fs-store.hh"
#include <nlohmann/json.hpp>
using namespace nix;
struct CmdBuild : InstallablesCommand, MixDryRun, MixJSON, MixProfile
{
Path outLink = "result";
BuildM... |
<commit_before>#include "src/operation.h"
#include "src/internal.h"
#include "src/graph.h"
#include "src/tensor.h"
using namespace v8;
namespace TensorflowNode {
#define OP_PROPERTY_GETTER(NAME) \
TensorflowNode::Operation* operation = ... |
<commit_before>#ifndef BUBBLE_SORT_H
#define BUBBLE_SORT_H 1
#ifndef MAX
#define MAX 60
#endif
#include <algorithm>
using namespace std;
void BubbleSort(int s[MAX], int beg, int end)
{
for (int i = end-1; i >= beg; --i)
for (int j = beg; j < i; ++j)
if (s[j] > s[j+1])
swap(s[... |
<commit_before>//
// Copyright 2013 Uncodin, 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 applicabl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.