text stringlengths 54 60.6k |
|---|
<commit_before>// Copyright (c) 2019 by Robert Bosch GmbH. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// ... |
<commit_before>/* Copyright 2015 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 2015-2016 Zuse Institute Berlin
//
// 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
//
// Unles... |
<commit_before>#include "process.h"
#include "timing.h"
#include "database.h"
#include "shop.h"
#include "parse.h"
#include "faction.h"
#include "extern.h"
#include "toggle.h"
#include "guild.h"
#include "being.h"
#include <sys/shm.h>
#include <sys/ipc.h>
///////////
// procFactoryProduction
procFactoryProduction::p... |
<commit_before>#include <cassert>
#include "ch_frb_io_internals.hpp"
using namespace std;
using namespace ch_frb_io;
inline bool array_contains(const int *arr, int len, int x)
{
for (int i = 0; i < len; i++)
if (arr[i] == x)
return true;
return false;
}
inline double intval(int beam_id, int ifreq, in... |
<commit_before>// Copyright (c) 2010-2020, Lawrence Livermore National Security, LLC. Produced
// at the Lawrence Livermore National Laboratory. All Rights reserved. See files
// LICENSE and NOTICE for details. LLNL-CODE-806117.
//
// This file is part of the MFEM library. For more information and source code
// availa... |
<commit_before>#include "argument.h"
#include "config.h"
#include "util.h"
#include "menu.h"
#include "util/debug.h"
#include "game.h"
using std::vector;
using std::string;
using std::endl;
namespace Mugen{
static void splitString(const string & subject, char split, string & left, string & right){
size_t find = ... |
<commit_before>/*
* Copyright (c) 2011-2013, "Kira"
* 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. Redistributions of source code must retain the above copyright notice, this
* l... |
<commit_before>#include "Heartbeat.h"
#include "Arduino.h"
#include "TimerOne.h"
/**
* @brief ISR for toggling the heartbeat LED.
*/
void Heartbeat::toggle(void){
#if defined(__MK20DX256__) || defined(__MK20DX128__)
// The teensy does have a toggle register!
GPIOC_PTOR = 1 << 5;
#else
// This doe... |
<commit_before>#include "spotlightDemo.h"
#include "vrambatcher.h"
#include <nds/arm9/window.h>
#include <cmath>
#include <nds/arm9/input.h>
#define M_PI 3.14159265358979323846
#define FULL_ROTATION M_PI*2
#define D45 FULL_ROTATION/8
#define MD45 FULL_ROTATION/-8
#define D135 (FULL_ROTATION/4+D45)
#define MD135 ... |
<commit_before>#include "image-util.hpp"
#include "include-opencv.hpp"
#include "include-simd.hpp"
#include <fmo/differentiator.hpp>
#include <fmo/processing.hpp>
namespace fmo {
namespace {
constexpr uint8_t threshDecrement = 1;
constexpr uint8_t threshIncrement = 1;
constexpr uint8_t thre... |
<commit_before>#include <itkImageRegionConstIterator.h>
#include "rtkSheppLoganPhantomFilter.h"
#include "rtkDrawSheppLoganFilter.h"
#include "rtkFDKConeBeamReconstructionFilter.h"
#include "rtkConstantImageSource.h"
template<class TImage>
void CheckImageQuality(typename TImage::Pointer recon, typename TImage::Pointer... |
<commit_before>// $Id$
// Load ITS digits.
// Argument mode is a bitwise or determining which layers to import:
// 1, 2 : SPD
// 4, 8 : SDD
// 16, 32 : SSD
// By default import all layers.
void its_digits(Int_t mode=63)
{
AliRunLoader* rl = Alieve::Event::AssertRunLoader();
rl->LoadDigits("ITS");
TTr... |
<commit_before>// Copyright 2014 Alessio Sclocco <a.sclocco@vu.nl>
//
// 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 requir... |
<commit_before>#include <ir/index_manager/index/IndexWriter.h>
#include <ir/index_manager/index/Indexer.h>
#include <ir/index_manager/index/IndexMerger.h>
#include <ir/index_manager/index/OnlineIndexMerger.h>
#include <ir/index_manager/index/OfflineIndexMerger.h>
#include <ir/index_manager/index/ImmediateMerger.h>
#inc... |
<commit_before><commit_msg>bad defensive check fixed<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: md5.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2005-09-09 13:30:57 $
*
* The Contents of this file are made avail... |
<commit_before>/*************************************************************************
*
* $RCSfile: Property.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: oj $ $Date: 2001-05-09 12:59:06 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>#ifndef MJOLNIR_POTENTIAL_GLOBAL_3SPN2_COMMON_HPP
#define MJOLNIR_POTENTIAL_GLOBAL_3SPN2_COMMON_HPP
#include <cstdint>
namespace mjolnir
{
namespace parameter_3SPN2
{
enum class bead_kind: std::uint8_t
{
Phosphate, Sugar, BaseA, BaseT, BaseG, BaseC, Unknown
};
// X is for default parameter
enum cl... |
<commit_before>/*
* Copyright (c) 2019 oxarbitrage and contributors.
*
* The MIT License
*
* 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 limita... |
<commit_before>/***************************************************************************
* Copyright (c) Stefan Tr�ger (stefantroeger@gmx.net) 2015 *
* Copyright (c) Alexander Golubev (Fat-Zer) <fatzer2@gmail.com> 2015 *
* ... |
<commit_before>#include <SCD/CD/CD_Pair.h>
#include <SCD/CD/CD_Simplex.h>
#include <SCD/CD/CD_SimplexEnhanced.h>
#include <iostream>
//#ifndef NOGLUT
//#define SHOW_LAST_SIMLPEX
//#endif
//#define CD_SAFE_VERSION //use when the scalar has a perfect precision
#define PENETRATION_DEPTH
//#define CD_PAIR_VERBOUS_MODE
/... |
<commit_before>#include <iostream>
#include <libport/unistd.h>
#include <libport/cstdio>
#include <libport/fd-stream.hh>
namespace libport
{
FdStream::FdStream(fd_type write, fd_type read)
: std::iostream(buf_ = new FdBuf(write, read))
{
rdbuf(buf_);
}
FdStream::~FdStream()
{
delete buf_;
}
... |
<commit_before>#include <pistache/client.h>
#include <pistache/cookie.h>
#include <pistache/endpoint.h>
#include <pistache/http.h>
#include "gtest/gtest.h"
#include <chrono>
#include <unordered_map>
using namespace Pistache;
struct CookieHandler : public Http::Handler {
HTTP_PROTOTYPE(CookieHandler)
void o... |
<commit_before>/******************************************************************************
* Copyright 2018 The Apollo Authors. All Rights Reserved.
*
* Licensed under the Apache License, Vesched_infoon 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a c... |
<commit_before>/*
*
* Copyright 2015, 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, thi... |
<commit_before>/*
* Copyright (c) 2002-2005 The Regents of The University of Michigan
* 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 c... |
<commit_before>#include <CQTitleBar.h>
#include <QPainter>
#include <QStylePainter>
#include <QStyleOptionToolButton>
CQTitleBar::
CQTitleBar(Qt::Orientation orient, QWidget *parent) :
QWidget(parent), title_(), icon_(), orient_(orient),
bgColor_(160,160,160), barColor_(120,120,120), buttons_()
{
setObjectName("t... |
<commit_before>// This file is part of the "x0" project, http://xzero.io/
// (c) 2009-2014 Christian Parpart <trapni@gmail.com>
//
// Licensed under the MIT License (the "License"); you may not use this
// file except in compliance with the License. You may obtain a copy of
// the License at: http://opensource.org/li... |
<commit_before>/**
* Copyright (c) 2015 - The CM Authors <legal@clickmatcher.com>
* All Rights Reserved.
*
* This file is CONFIDENTIAL -- Distribution or duplication of this material or
* the information contained herein is strictly forbidden unless prior written
* permission is obtained.
*/
#include "IndexWri... |
<commit_before>/*
Copyright (c) 2010, The Mineserver Project
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>#ifndef HEAPS_H
#define HEAPS_H
#include"objects.hpp"
#include<cstring>
#include<utility>
#include<boost/scoped_ptr.hpp>
#include<boost/noncopyable.hpp>
class Generic;
class ValueHolder;
/*-----------------------------------------------------------------------------
Semispaces
----------------------... |
<commit_before>#include <libmesh/elem.h>
#include <libmesh/cell_hex20.h>
#include <libmesh/cell_hex27.h>
#include <libmesh/cell_hex8.h>
#include <libmesh/cell_inf_hex16.h>
#include <libmesh/cell_inf_hex18.h>
#include <libmesh/cell_inf_hex8.h>
#include <libmesh/cell_inf_prism12.h>
#include <libmesh/cell_inf_prism6.h>
#... |
<commit_before>// -----------------------------------------------------------------
// libpion: a C++ framework for building lightweight HTTP interfaces
// -----------------------------------------------------------------
// Copyright (C) 2007 Atomic Labs, Inc. (http://www.atomiclabs.com)
//
// Distributed under the B... |
<commit_before>#include <stdlib.h>
#include <errno.h>
#include <QtWidgets>
#include "p6vxapp.h"
#ifndef NOJOYSTICK
//SDL使用時にビルドを通すのに必要
#undef main
#endif
///////////////////////////////////////////////////////////
// メイン
///////////////////////////////////////////////////////////
int main( int argc, char *argv[] )
{... |
<commit_before>// -------------------------------------------------------------------------
// @FileName : NFCScheduleModule.cpp
// @Author : LvSheng.Huang
// @Date : 2016-12-05
// @Module : NFCScheduleModule
//
// -----------------------------------------------... |
<commit_before>/***************************************************************************
* Copyright (c) 2014-2015 Nathan Miller <Nathan.A.Mill[at]gmail.com> *
* Balázs Bámer *
* ... |
<commit_before>#include "../test.h"
#include <cuda_runtime_api.h>
#include <memory>
float calculateCosts();
TEST(Test_CostFunctionCalculator, TryFunctionPointsComposition)
{
EXPECT_EQ(3.0f, calculateCosts());
}
<commit_msg>Add test for CostFunctionCalculator.<commit_after>#include "../test.h"
#include <cuda_runtime... |
<commit_before>// -*- C++ -*-
//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===----------... |
<commit_before>#include <cc1101.hpp>
template <typename cc1101>
class Radio : public cc1101 {
static void setup_common();
public:
static void setup_for_rx();
static void setup_for_tx();
};
template <typename cc1101>
inline void Radio<cc1101>::setup_common()
{
// reset
cc1101::select();
cc1101::wcmd(CC1101::SRES... |
<commit_before>/***********************************************************************************************************************
* TextRenderer.cpp
*
* Created on: Jan 12, 2011
* Author: Dimitar Asenov
****************************************************************************************************... |
<commit_before>//===-- sancov.cc --------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-----------------------------------------------------... |
<commit_before>#include <cctype>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <map>
#include <sstream>
#include <string>
#include <unordered_map>
#include "src/ext/cpputil/include/command_line/command_line.h"
#include "src/ext/cpputil/include/io/filterstream.h"
#include "src/ext/cpputil/include/... |
<commit_before>
#define TEST_CASE
#include <boost/test/included/unit_test.hpp>
#define TCP_SESSION_H
namespace l7vs{
class tcp_session{
public:
enum TCP_PROCESS_TYPE_TAG{
LOCAL_PROC = 0,
MESSAGE_PROC
};
tcp_session();
... |
<commit_before>#include "Maze.h"
Model *model = new Model();
Status *status = new Status();
void Maze::Timer(int value) {
ALint state;
glutTimerFunc(status->timer, Timer, 0);
alGetSourcei(status->source, AL_SOURCE_STATE, &state);
if (status->tecla_o)
{
if (state != AL_PLAYING)
... |
<commit_before>#include "CalculatorTopTwo.h"
#include <algorithm>
#include <cassert>
namespace tilegen
{
namespace alpha
{
void CalculatorTopTwo::updateAlphasAux(const Weights& weights)
{
initialiseIndexedWeights(weights);
std::sort(mIndexedWeights.begin(), mIndexedWeights.end(), std::greater<IndexedWeight>... |
<commit_before>/*
* Manager.cpp
*
* Created on: 23 Oct 2015
* Author: hieu
*/
#include <boost/foreach.hpp>
#include <vector>
#include <sstream>
#include "Manager.h"
#include "SearchNormal.h"
#include "SearchNormalBatch.h"
#include "CubePruning/Search.h"
#include "../System.h"
#include "../TargetPhrases.h"
#i... |
<commit_before>/***************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Karoliina T. Salminen <karoliina.t.salminen@nokia.com>
**
** This file is part of duicontrolpanel.
**
**
** This program... |
<commit_before>/**
* @copyright Copyright 2018 The J-PET Framework 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 find a copy of the License in the LICENCE file.
*
* Unless required b... |
<commit_before><commit_msg>Planning : update eval_jac_g in open space planner<commit_after><|endoftext|> |
<commit_before>/******************************************************************************
* SOFA, Simulation Open-Framework Architecture, version 1.0 beta 4 *
* (c) 2006-2009 MGH, INRIA, USTL, UJF, CNRS *
* ... |
<commit_before>//
// Copyright (c) 2018 The nanoFramework project contributors
// See LICENSE file in the project root for full license information.
//
#include "nf_native_system_math.h"
static const CLR_RT_MethodHandler method_lookup[] =
{
NULL,
NULL,
NULL,
Library_nf_native_system_math_System_Math... |
<commit_before>/*
* Copyright (c) 2002 - present, H. Hernan Saez
* 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
* ... |
<commit_before><commit_msg>Planning: remove unnecessary deep copy in ROI_decider.<commit_after><|endoftext|> |
<commit_before>// For conditions of distribution and use, see copyright notice in LICENSE
#include "StableHeaders.h"
#include "DebugOperatorNew.h"
#include "MemoryLeakCheck.h"
#include "OggVorbisLoader.h"
#include "LoggingFunctions.h"
#include <sstream>
#ifndef TUNDRA_NO_AUDIO
#include <vorbis/vorbisfile.h>
#endif
... |
<commit_before>#include "rtkTest.h"
#include "rtkConfiguration.h"
#include "rtkMacro.h"
#include "rtkSimplexSpectralProjectionsDecompositionImageFilter.h"
#include "rtkSpectralForwardModelImageFilter.h"
#include "rtkConstantImageSource.h"
#include "rtkRayEllipsoidIntersectionImageFilter.h"
#include <itkImageFileReader.... |
<commit_before><commit_msg>Fix a test to avoid a MSVC warning as error about constant truncation.<commit_after><|endoftext|> |
<commit_before><commit_msg>Revert r23911, which switched from fork to vfork().<commit_after><|endoftext|> |
<commit_before>/*
* ofxImageObject.cpp
* openFrameworks
*
* Created by Eric Gunther on 11/8/09.
* Copyright 2009 Sosolimited. All rights reserved.
*
*/
#include "ofxImageObject.h"
#include "ofGraphics.h"
ofxImageObject::ofxImageObject(string iFilename, bool iLoadNow)
{
filename = iFilename;
if(iLoadNo... |
<commit_before><commit_msg>non copyable has a virtual destructor<commit_after><|endoftext|> |
<commit_before><commit_msg>#i10000# Includes corrected (we are in module sfx2, so do not use sfx2 include path!).<commit_after><|endoftext|> |
<commit_before>/*
@author gogdizzy
@date 2015-08-20
@desciption 收集到的一些位运算代码片段
@resource
http://graphics.stanford.edu/~seander/bithacks.html
*/
// 返回大于等于x的最小的2次幂,0返回0,负数返回0
// 根据这个方法,可以很容易写出无符号版本和64bit版本
int32_t nextpow2( int32_t x ) {
--x;
x |= ( x >> 1 );
x |= ( x >> 2 );
x |= ( x >> 4 );
x |= ( x >> 8 );
x ... |
<commit_before>
#include <boost/filesystem.hpp>
#include <boost/make_shared.hpp>
#include <boost/program_options.hpp>
#include <iostream>
#include <crypto++/files.h>
#include <log4cplus/configurator.h>
#include "buildconf.hpp"
#include "lib/hashes.h"
#include "server/config.hpp"
#include "server/server.hpp"
using na... |
<commit_before>#include <cassert>
#include <iostream>
#include <sstream>
#include "lbfgs.h"
#include "sparse_vector.h"
#include "fdict.h"
using namespace std;
double TestOptimizer() {
cerr << "TESTING NON-PERSISTENT OPTIMIZER\n";
// f(x,y) = 4x1^2 + x1*x2 + x2^2 + x3^2 + 6x3 + 5
// df/dx1 = 8*x1 + x2
// df/d... |
<commit_before>#include <osg/DrawPixels>
using namespace osg;
DrawPixels::DrawPixels()
{
// turn off display lists right now, just incase we want to modify the projection matrix along the way.
setSupportsDisplayList(false);
_position.set(0.0f,0.0f,0.0f);
_useSubImage = false;
_offsetX = ... |
<commit_before><commit_msg>AA_EnableHighDpiScaling and friends only work in Qt 5.6+<commit_after><|endoftext|> |
<commit_before><commit_msg>arch-arm: Fix codying style in TableWalker descriptors<commit_after><|endoftext|> |
<commit_before>/*
* dialer - MeeGo Voice Call Manager
* Copyright (c) 2009, 2010, Intel Corporation.
*
* This program is licensed under the terms and conditions of the
* Apache License, version 2.0. The full text of the Apache License is at
* http://www.apache.org/licenses/LICENSE-2.0
*
*/
#include "common.h"... |
<commit_before>/*
Copyright (c) 2015-2016 Advanced Micro Devices, 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
in the Software without restriction, including without limitation the rig... |
<commit_before>/*
Copyright (c) 2014-2015 DataStax
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 agree... |
<commit_before>// -----------------------------------------------------------------------------
// Copyright : (C) 2014 Andreas-C. Bernstein
// License : MIT (see the file LICENSE)
// Maintainer : Andreas-C. Bernstein <andreas.bernstein@uni-weimar.de>
// Stability : experimental
//
// Renderer
// -----------------... |
<commit_before>/*
* #%L
* %%
* Copyright (C) 2011 - 2017 BMW Car IT GmbH
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... |
<commit_before>/*
*
*/
#ifndef BASH_HANDLE_HPP
#define BASH_HANDLE_HPP
#include <atomic>
#include <condition_variable>
#include <list>
#include <mutex>
// #include "unix/codec.hpp"
#include "unix/condition-queue.hpp"
#include "unix/refsymbol.hpp"
#include "unix/request.hpp"
#include "unix/response.hpp"
#include "b... |
<commit_before>// -----------------------------------------------------------------------------
// Copyright : (C) 2014 Andreas-C. Bernstein
// License : MIT (see the file LICENSE)
// Maintainer : Andreas-C. Bernstein <andreas.bernstein@uni-weimar.de>
// Stability : experimental
//
// Renderer
// -----------------... |
<commit_before>/*
* #%L
* %%
* Copyright (C) 2011 - 2017 BMW Car IT GmbH
* %%
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
///
/// \file generic.hpp
/// -----------------
///
/// (c) Copyright Domagoj Saric 2016.
///
/// Use, modification and distribution are subject to the
/// Boost Software License, Version 1.0. (See accompanying file
/// L... |
<commit_before>/*
* This file is part of libqcalparser
*
* Copyright (C) Rohan Garg <rohan16garg@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 ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: officeforms.cxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: hr $ $Date: 2007-06-27 15:17:18 $
*
* The Contents of this file are m... |
<commit_before>#pragma once
#include <condition_variable>
#include <functional>
#include <limits>
#include <mutex>
#include <queue>
namespace dai {
template <typename T>
class LockingQueue {
public:
LockingQueue() = default;
explicit LockingQueue(unsigned maxSize, bool blocking = true) {
this->maxS... |
<commit_before>/*
* Copyright 2014, Nicolas Mansard, LAAS-CNRS
*
* This file is part of eigenpy.
* eigenpy 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 (a... |
<commit_before>/*
* function_traits.hpp
*
* Created on: Feb 2, 2016
* Author: zmij
*/
#ifndef WIRE_UTIL_FUNCTION_TRAITS_HPP_
#define WIRE_UTIL_FUNCTION_TRAITS_HPP_
#include <tuple>
#include <wire/util/meta_helpers.hpp>
namespace wire {
namespace util {
namespace detail {
template <typename T>
struct has... |
<commit_before>// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2018 The Syscoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <rpc/client.h>
#include <rpc/protocol.h>
#include <util/system... |
<commit_before>/** @file
A brief file description
@section license License
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 fi... |
<commit_before>#include "entity_groups.h"
#include "core/blob.h"
#include "core/string.h"
#include "universe/universe.h"
namespace Lumix
{
EntityGroups::EntityGroups(IAllocator& allocator)
: m_groups(allocator)
, m_group_names(allocator)
, m_allocator(allocator)
, m_universe(nullptr)
{
m_groups.emplace(allocator... |
<commit_before>/*
Copyright (c) 2013 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include <iostream>
#include <fstream>
#include <signal.h>
#include <cstdlib>
#include <getopt.h>
#include <string>
#include "util/stackinfo.... |
<commit_before>#include <cthun-agent/configuration.hpp>
#include <leatherman/file_util/file.hpp>
#include "version-inl.hpp"
#include <boost/filesystem/operations.hpp>
namespace CthunAgent {
namespace fs = boost::filesystem;
namespace lth_file = leatherman::file_util;
const std::string DEFAULT_MODULES_DIR { "/usr/... |
<commit_before><commit_msg>bug: remove possible race condition crash; nullptr access<commit_after><|endoftext|> |
<commit_before>/*
* Copyright (c) 2011, Nathan Rajlich <nathan@tootallnate.net>
*
* 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.
*
* THE SOFTWAR... |
<commit_before>//
// RemotePhotoTool - remote camera control software
// Copyright (C) 2008-2013 Michael Fink
//
//! \file StandardPhotoModeView.cpp View for taking standard photos
//
// includes
#include "stdafx.h"
#include "resource.h"
#include "StandardPhotoModeView.hpp"
#include "IPhotoModeViewHost.hpp"
#include "... |
<commit_before>/* Copyright (c) 2006, NIF File Format Library and Tools
All rights reserved. Please see niflib.h for licence. */
#include "../../include/obj/NiNode.h"
#include "../../include/obj/NiAVObject.h"
#include "../../include/obj/NiDynamicEffect.h"
#include "../../include/obj/NiSkinInstance.h"
#include "../../... |
<commit_before>// Copyright (c) 2015-2017 William W. Fisher (at gmail dot com)
// This file is distributed under the MIT License.
#include "ofp/libofp.h"
#include <stdlib.h>
#include <string>
#include "ofp/log.h"
#include "ofp/yaml/decoder.h"
#include "ofp/yaml/encoder.h"
static void buf_set(libofp_buffer *buf, const... |
<commit_before>#include "tile.h"
#include "framework/framework.h"
namespace OpenApoc {
TileMap::TileMap(Framework &fw, Vec3<int> size)
: fw(fw), size(size)
{
tiles.resize(size.z);
for (int z = 0; z < size.z; z++)
{
tiles[z].resize(size.y);
for (int y = 0; y < size.y; y++)
{
tiles[z][y].reserve(size.x);
... |
<commit_before>// Copyright (c) 2007-2010 Paul Hodge. All rights reserved.
#include "evaluation.h"
#include "circa.h"
#include "importing_macros.h"
namespace circa {
namespace subroutine_t {
void format_source(StyledSource* source, Term* term)
{
append_phrase(source, "def ", term, token::DEF);
... |
<commit_before>/*
* DSA
* (C) 1999-2010 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#include <botan/dsa.h>
#include <botan/numthry.h>
#include <botan/keypair.h>
#include <stdio.h>
namespace Botan {
/*
* DSA_PublicKey Constructor
*/
DSA_PublicKey::DSA_PublicKey(const DL_Group& grp, const BigIn... |
<commit_before>/*
* File: dom.hpp
* Author: ivan
*
* Created on October 8, 2015, 3:15 PM
*/
#pragma once
#include <vector>
#include <memory>
#include <ostream>
#include <map>
#include <utki/Unique.hpp>
#include <utki/Void.hpp>
#include <papki/File.hpp>
#include "config.hpp"
namespace svgdom{
struct Len... |
<commit_before>/*
* This file is part of the beirdobot package
* Copyright (C) 2010 Gavin Hurlbut
*
* beirdobot 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
*... |
<commit_before>// Copyright (c) 2007, 2008 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, m... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: HelperCollections.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: obo $ $Date: 2006-07-10 15:02:31 $
*
* The Contents of this file... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: TableConnectionData.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: hr $ $Date: 2007-11-01 15:18:51 $
*
* The Contents of this fil... |
<commit_before>/*
* Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
* 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
*... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.