text stringlengths 54 60.6k |
|---|
<commit_before>/************************************************************************
*
* Flood Project (2008-201x)
* Licensed under the simplified BSD license. All rights reserved.
*
************************************************************************/
#include "Core/API.h"
#include "Core/Network/Host.h"
#inc... |
<commit_before>// soundmgr.cxx -- Sound effect management class
//
// Sound manager initially written by David Findlay
// <david_j_findlay@yahoo.com.au> 2001
//
// C++-ified by Curtis Olson, started March 2001.
//
// Copyright (C) 2001 Curtis L. Olson - curt@flightgear.org
//
// This program is free software; you can ... |
<commit_before><commit_msg>update HWP level metadata for nest, common files<commit_after><|endoftext|> |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/pm/p9_pm_get_poundv_bucket.... |
<commit_before>// Copyright (c) 2012-2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "coins.h"
#include "consensus/consensus.h"
#include "memusage.h"
#include "random.h"
#include <asse... |
<commit_before>#include "Button.hpp"
#include <Engine/Util/Input.hpp>
using namespace GUI;
Button::Button(Widget* parent) : Widget(parent) {
mouseHover = false;
hasClickedCallback = false;
size = glm::vec2(64.f, 64.f);
}
Button::~Button() {
}
void Button::Update() {
double xpos = Input()->Curso... |
<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>#pragma once
//=====================================================================//
/*! @file
@brief GUI Widget Text クラス(ヘッダー)
@author 平松邦仁 (hira@rvf-rc45.net)
*/
//=====================================================================//
#include "widgets/widget_director.hpp"
namespace gui {
//+++... |
<commit_before>// RUN: %clangxx_hwasan %s
#include <stddef.h>
#include <new>
char *__dummy;
void *operator new(size_t size) { return __dummy; }
void *operator new[](size_t size) { return __dummy; }
void *operator new(size_t size, std::nothrow_t const&) noexcept {
return __dummy;
}
void *operator new[](size_t size... |
<commit_before>#ifndef CHARTS_CONFIG_HH
#define CHARTS_CONFIG_HH 1
#include <memory>
#include <utility>
#include <vector>
#include "catalogue.hh"
#include "projection.hh"
#include "track.hh"
class Config;
template <typename T>
class ConfigIterator
{
ConfigIterator(const Config * config, std::size_t index)
... |
<commit_before>#include "Debug.h"
#include <sstream>
#include <string>
void CDebug::Init(void)
{
v8::HandleScope scope;
v8::Handle<v8::ObjectTemplate> global_template = v8::ObjectTemplate::New();
m_global_context = v8::Context::New(NULL, global_template);
m_global_context->SetSecurityToken(v8::Und... |
<commit_before>#ifndef _OSL_DIAGNOSE_H_
#include <osl/diagnose.h>
#endif
#include <cppuhelper/factory.hxx>
#include <uno/mapping.hxx>
#include "provider.hxx"
#include "renderer.hxx"
#include <com/sun/star/registry/XRegistryKey.hpp>
using namespace com::sun::star;
namespace unographic {
// --------------------
// - ... |
<commit_before>// Copyright 2012-2013 Samplecount S.L.
//
// 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>/*
* Copyright 2015-2017, Robotics and Biology Lab, TU Berlin
*
* 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,
* thi... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: unchss.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: rt $ $Date: 2005-09-09 04:26:10 $
*
* The Contents of this file are made av... |
<commit_before>/******************************************************************************
* Copyright (c) 2012, Michael P. Gerlek (mpg@flaxen.com)
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following
* conditions a... |
<commit_before>#include "C45PruneableClassifierTree.h"
#include "ModelSelection.h"
#include "core/Instances.h"
#include "Distribution.h"
#include "core/Utils.h"
#include "NoSplit.h"
#include "Stats.h"
C45PruneableClassifierTree::C45PruneableClassifierTree(ModelSelection *toSelectLocModel, bool pruneTree, f... |
<commit_before>// @(#)root/win32gdk:$Id$
// Author: Valeriy Onuchin 08/08/2003
/*************************************************************************
* Copyright (C) 1995-2001, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/initfiles/p9_int_scom.C $ ... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/nest/p9_pcie_scominit.H $ ... |
<commit_before>/*=========================================================================
Program: Medical Imaging & Interaction Toolkit
Language: C++
Date: $Date$
Version: $Revision: 7837 $
Copyright (c) German Cancer Research Center, Division of Medical and
Biological Informatics. All rights reserved.
Se... |
<commit_before>//
// Copyright (c) 2016 Terry Seyler
//
// Distributed under the MIT License
// See accompanying file LICENSE.md
//
#include <core/protocol/c4soap/c4soap_message.hpp>
#include <core/protocol/c4soap/c4soap_director.hpp>
namespace proto_net
{
namespace protocol
{
namespace c4soap
... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
//
// Copyright 2006 - 2014, Paul Beckingham, Federico Hernandez.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to... |
<commit_before>// This file was developed by Thomas Müller <thomas94@gmx.net>.
// It is published under the BSD 3-Clause License within the LICENSE file.
#include "../include/Image.h"
#include "../include/ThreadPool.h"
#include <ImfChannelList.h>
#include <ImfInputFile.h>
#include <ImfInputPart.h>
#include <ImfMultiP... |
<commit_before>/*************************************************************************
*
* $RCSfile: iderdll.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: tbe $ $Date: 2001-07-25 11:39:43 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>#include <QApplication>
#include "window.hpp"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
MainWindow w;
w.setFixedSize(vwp_w, vwp_h);
w.show();
return a.exec();
}
<commit_msg>ui: force GLES context<commit_after>#include <QApplication>
#include "window.hpp"
int main(int... |
<commit_before>/*
*
* Copyright (c) 2020 Project CHIP 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
*
* ... |
<commit_before>// Copyright (c) 2017-2019 Dr. Colin Hirsch and Daniel Frey
// Please see LICENSE for license or visit https://github.com/taocpp/PEGTL/
#include "test.hpp"
#include <tao/pegtl/internal/demangle.hpp>
namespace TAO_PEGTL_NAMESPACE
{
template< typename T >
void test( const std::string& s )
{
... |
<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>#include <cmath>
#include "qniteaxes.h"
#include "qniteaxis.h"
#include "qnitemapper.h"
#include "qnitezoompainter.h"
#include "qnitezoomtool.h"
QniteZoomTool::QniteZoomTool(QQuickItem *parent)
: QniteTool{parent}, m_minZoomFactor{4}, m_pen{new QnitePen} {
setAcceptedMouseButtons(Qt::RightButton)... |
<commit_before>//! \file
/*
** Copyright (C) - Triton
**
** This program is under the terms of the LGPLv3 License.
*/
#ifndef TRITON_PIN_PYTHONBINDINGS_H
#define TRITON_PIN_PYTHONBINDINGS_H
#include <map>
#include <set>
#include <list>
#include <python2.7/Python.h>
#include <pin.H>
/* libTriton */
#include <api.h... |
<commit_before>#pragma once
#include <map>
namespace Doremi
{
namespace Core
{
/**
The audio component contains the handle to the soundchannel and a handle to the sound
*/
// If you add someone,
enum class AudioCompEnum : int32_t
{
Jump,
De... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: GaussianMinimumErrorClassifier.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Insight Consortium. All rights reserved.... |
<commit_before>#include "Model.h"
#include "Effect.h"
#include "main.h"
Model::Model()
: m_context(renderContext) {
}
Model::~Model() {
}
QSharedPointer<VideoNode> Model::addVideoNode(QString type) {
// TODO
QSharedPointer<VideoNode> videoNode(new Effect(m_context));
m_vertices.append(videoNode);
... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: GaussianMinimumErrorClassifier.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 Insight Consortium. All rights reserved.... |
<commit_before>//________________________________________________________________________
void demoInteractive() {
//____________________________________________//
AliTagAnalysis *TagAna = new AliTagAnalysis();
AliRunTagCuts *RunCuts = new AliRunTagCuts();
AliEventTagCuts *EvCuts = new AliEventTagCuts();
Ev... |
<commit_before>// RUN: %clangxx -fsanitize=integer -g0 %s -o %t
// Fails without any suppression.
// RUN: %env_ubsan_opts=halt_on_error=1 not %run %t 2>&1 | FileCheck %s
// RUN: echo "signed-integer-overflow:%t" > %t.wrong-supp
// RUN: %env_ubsan_opts=halt_on_error=1:suppressions='"%t.wrong-supp"' not %run %t 2>&1 | ... |
<commit_before>AliAnalysisTaskSECharmFraction* AddTaskSECharmFraction(TString fileout="d0D0.root",Int_t *switchMC=0x0,Int_t readmc=0,Bool_t usepid=kTRUE,Bool_t likesign=kFALSE,TString cutfile="D0toKpiCharmFractCuts.root",TString containerprefix="c",Int_t ppPbPb=0,Int_t analysLevel=2, Float_t minC=0., Float_t maxC=7.5,F... |
<commit_before>/*
Copyright (c) 2014-2015, 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 ... |
<commit_before>#include <bts/app/api.hpp>
#include <bts/chain/address.hpp>
#include <bts/utilities/key_conversion.hpp>
#include <fc/io/json.hpp>
#include <fc/network/http/websocket.hpp>
#include <fc/rpc/websocket_api.hpp>
#include <fc/io/stdio.hpp>
#include <iostream>
#include <fc/rpc/cli.hpp>
#include <iomanip>
usin... |
<commit_before>//#include "csimplexnd.h"
#include <math.h>
#include <QVector>
#include <QFile>
#include <QStringList>
#include <iostream>
#include "graph.h"
#include <QApplication>
int main(int argc, char* argv[])
{
QString parameters;
QStringList arguments;
bool consoleonly=false;
for(int i=1; i<argc... |
<commit_before>/*
* Copyright 2010-2020 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
#include "CompilerGenerated.h"
#include "Types.h"
namespace {
TypeInfo theAnyTypeInfoImpl = {};
TypeInfo theArrayTypeInfoImpl = {};
TypeInfo theBoolean... |
<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>#include "bufferAgent.h"
#include "helpers/storageHelperFactory.h"
#include "glog/logging.h"
using boost::shared_ptr;
using boost::thread;
using boost::bind;
using std::string;
namespace veil {
namespace helpers {
BufferAgent::BufferAgent(write_fun w, read_fun r)
: m_agentActive(false),
doWrite... |
<commit_before>
// Statistics.cpp
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
#include "StatisticsManager.h"
bool StatisticsManager::SatisfiesPrerequisite(const CustomStatistic a_Stat) const
{
switch (a_Stat)
{
case CustomStatistic::AchMineWood: re... |
<commit_before>#include <Display.h>
#include <Surface.h>
#include <math.h>
#include "TextField.h"
#ifdef ANDROID
#include <android/log.h>
#endif
namespace nme
{
// --- Stage ---------------------------------------------------------------
// Helper class....
class AutoStageRender
{
Sur... |
<commit_before>// Jubatus: Online machine learning framework for distributed environment
// Copyright (C) 2014 Preferred Networks and Nippon Telegraph and Telephone Corporation.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License v... |
<commit_before>/*
* Copyright (C) 2018 ScyllaDB
*/
/*
* This file is part of Scylla.
*
* Scylla 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 version 3 of the License, or
* (at your op... |
<commit_before>#include "PickUp.h"
#include "../RobotMap.h"
PickUp :: Pickup(int ) :Subsystem ("PickUp") {
}
<commit_msg>Still working on PickUp<commit_after>#include "PickUp.h"
#include "../RobotMap.h"
PickUp :: Pickup(int intakePort) :Subsystem ("PickUp") {
}
<|endoftext|> |
<commit_before>// Copyright 2008-2009, Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this ... |
<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.
// Tests for the top plugins to catch regressions in our plugin host code, as
// well as in the out of process code. Currently this te... |
<commit_before>// Including SDKDDKVer.h defines the highest available Windows platform.
// If you wish to build your application for a previous Windows platform, include WinSDKVer.h and
// set the _WIN32_WINNT macro to the platform you wish to support before including SDKDDKVer.h.
#include <SDKDDKVer.h>
#include "CppU... |
<commit_before>#include "UASRawStatusView.h"
#include "MAVLinkDecoder.h"
#include "UASInterface.h"
#include "UAS.h"
#include <QTimer>
#include <QScrollBar>
UASRawStatusView::UASRawStatusView(QWidget *parent) : QWidget(parent)
{
ui.setupUi(this);
ui.tableWidget->setColumnCount(2);
ui.tableWidget->setHorizont... |
<commit_before>#include "CompositePath.hpp"
using namespace std;
using namespace Geometry2d;
namespace Planning
{
CompositePath::CompositePath(unique_ptr<Path> path) {
append(std::move(path));
}
CompositePath::CompositePath(Path *path) {
append(path);
}
void CompositePath::append(Path *path) {
append(std:... |
<commit_before><commit_msg>Revert 56241 - Add an exceptionbarrier in Hook_Start(Ex). This is an attempt to reduce the amount of false positive crash reports - when exception is swallowed and is almost always not a problem due ChromeFrame code. BUG=51830<commit_after><|endoftext|> |
<commit_before>#include <sstream>
#include "Tools/Exception/exception.hpp"
#include "matrix.h"
namespace aff3ct
{
namespace tools
{
template <typename T, class AT = std::allocator<T>>
inline void rgemm(const int M, const int N, const int K,
const std::vector<T,AT> &A,
const std::v... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2013 Andre Hartmann <aha_1980@gmx.de>
** Contact: http://www.qt-project.org/legal
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may u... |
<commit_before><commit_msg>planning: add check upon mkstemp() return value<commit_after><|endoftext|> |
<commit_before>#include <boost/lexical_cast.hpp>
#include <sstream>
#include <limits>
#include <string>
#include "util/numconversions.h"
#include <iostream>
#include "zorba/common.h"
namespace xqp {
bool NumConversions::isNegZero(const xqpString& aStr) {
xqpString lStr = aStr.trim(" \n\r\t", 4);
size_t lLen... |
<commit_before>/*
* Copyright (c) 2018 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS.... |
<commit_before>//=======================================================================
// Copyright (c) 2014-2016 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================... |
<commit_before>//=======================================================================
// Copyright (c) 2014-2015 Baptiste Wicht
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://opensource.org/licenses/MIT)
//===================================================... |
<commit_before>/*
DisplayController.h - Library for Controlling a 14x28 bits FlipDot display sign using two FP2800A.
Created by Antonio Carioca, March 3, 2014.
*/
//#include "Arduino.h"
//#include <avr/pgmspace.h>
//#include "application.h"
#include "mark-iv-flip-dot-display-sign-14x28-controller.h"
/* CONSTANTS */
... |
<commit_before>// This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
// ============================================================================
// Copyright (c) 2017-2019, by Vitaly Grigoriev, <Vit.link420@gm... |
<commit_before>//-----------------------------------------------------------------------------
// Jikken - 3D Abstract High Performance Graphics API
// Copyright(c) 2017 Jeff Hutchinson
// Copyright(c) 2017 Tim Barnes
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software... |
<commit_before><commit_msg>WaE: implicit conversion (IntegralCast) from bool to 'unsigned long'<commit_after><|endoftext|> |
<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>/*=========================================================================
Program: Visualization Toolkit
Module: TestBlurAndSobelPasses.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details... |
<commit_before>/*************************************************************************
*
* $RCSfile: csvsplits.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: dr $ $Date: 2002-08-16 13:01:00 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lice... |
<commit_before>#include <gtest/gtest.h>
#include <sauce/sauce.h>
namespace sauce {
namespace test {
/**
* This suite is intended to be a complete (if stubbed) example of how sauce might be used to manage the dependencies
* of a typical MVC-like application. Unlike binding_test, whose aim is coverage across all va... |
<commit_before>#ifndef __bootstrap_hpp
#define __bootstrap_hpp__
#include "boxedcpp.hpp"
template<typename Ret, typename P1, typename P2>
Ret add(P1 p1, P2 p2)
{
return p1 + p2;
}
template<typename Ret, typename P1, typename P2>
Ret subtract(P1 p1, P2 p2)
{
return p1 - p2;
}
template<typename Ret, typename P1, ... |
<commit_before>/*************************************************************************
*
* $RCSfile: XMLChangeTrackingImportHelper.hxx,v $
*
* $Revision: 1.11 $
*
* last change: $Author: obo $ $Date: 2004-06-04 11:08:18 $
*
* The Contents of this file are made available subject to the terms of
* either... |
<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>/* This file is part of Zanshin Todo.
Copyright 2011 Christian Mollekopf <chrigi_1@fastmail.fm>
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 Foundation; either version 2 of
the ... |
<commit_before>/*
* -----------------------------------------------------------------------------
* This source file is part of OGRE
* (Object-oriented Graphics Rendering Engine)
* For the latest info, see http://www.ogre3d.org/
*
* Copyright (c) 2000-2013 Torus Knot Software Ltd
*
* Permission is hereby grante... |
<commit_before>/*
Copyright (c) 2009, 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 "core/tz.hpp"
#include "core/vector.hpp"
#include "core/matrix_transform.hpp"
#include "gl/device.hpp"
#include "gl/renderer.hpp"
#include "gl/resource.hpp"
#include "gl/input.hpp"
#include "gl/shader.hpp"
float get_aspect_ratio()
{
return tz::window().get_width() / tz::window().get_height(... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: invmerge.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: ihi $ $Date: 2006-11-14 15:57:39 $
*
* The Contents of this file are made... |
<commit_before>/*
* CategoryStream.hh
*
* Copyright 2001, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
* Copyright 2001, Bastiaan Bakker. All rights reserved.
*
* See the COPYING file for the terms of usage and distribution.
*/
#ifndef _LOG4CPP_CATEGORYSTREAM_HH
#define _LOG4CPP_CATEGORYSTREAM_H... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2014 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>/*
* This file is part of otf2xx (https://github.com/tud-zih-energy/otf2xx)
* otf2xx - A wrapper for the Open Trace Format 2 library
*
* Copyright (c) 2013-2016, Technische Universität Dresden, Germany
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
*... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
**
** GNU Lesser General Public License Usage
**
** This file m... |
<commit_before>/*************************************************************************
*
* $RCSfile: AccessibleViewForwarder.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: af $ $Date: 2002-06-03 15:06:58 $
*
* The Contents of this file are made available subject to the terms of
* either of the ... |
<commit_before>/**
* @file clitest.cpp
* @brief Brief description of file.
*
*/
#include <pthread.h>
#include <string>
#include <map>
#include <queue>
#include "tcp.h"
#include "messages.h"
#include "data.h"
#include "time.h"
namespace diamondapparatus {
/// this is the database the client writes stuff to from... |
<commit_before>#include "Model/Classes/NMR_KeyStoreResourceData.h"
#include "Common/NMR_Exception.h"
#include <memory>
namespace NMR {
CKeyStoreResourceData::CKeyStoreResourceData(std::string const & path) {
m_sPath = path;
m_EncryptionAlgorithm = eKeyStoreEncryptAlgorithm::Aes256Gcm;
}
CKeyStoreResourceData::... |
<commit_before>// Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// ... |
<commit_before>// Begin CVS Header
// $Source: /Volumes/Home/Users/shoops/cvs/copasi_dev/copasi/MIRIAMUI/CQMiriamWidget.cpp,v $
// $Revision: 1.17 $
// $Name: $
// $Author: aekamal $
// $Date: 2009/09/28 14:53:30 $
// End CVS Header
// Copyright (C) 2008 by Pedro Mendes, Virginia Tech Intellectual
// Proper... |
<commit_before>/*
* Copyright (c) 2015 The Jackson Laboratory
*
* This software was developed by Gary Churchill's Lab at The Jackson
* Laboratory (see http://research.jax.org/faculty/churchill).
*
* This is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public Licens... |
<commit_before>/// @file moveAction.cpp
/// @brief Implementation of the class for a move action.
/// @author Enrico Fraccaroli
/// @date Jul 14 2016
/// @copyright
/// Copyright (c) 2016 Enrico Fraccaroli <enrico.fraccaroli@gmail.com>
/// Permission is hereby granted, free of charge, to any person obtaining a
///... |
<commit_before>#include <netdb.h>
#include <unistd.h>
#include "client.h"
#include "duckchat.h"
// Variables
struct sockaddr_in client_addr;
struct sockaddr_in server_addr;
int client_socket;
struct addrinfo *server_info;
char *channel;
// Prints an error message and exits the program.
void Error(const char *msg) {... |
<commit_before>/**
* @file Special Purpose Strings Library: storage_password.hpp
* @author Daniel Evers
* @brief Storage implementation that wipes memory before free'ing it - for sensitive data
* @license MIT
*/
#ifndef SPSL_STORAGE_PASSWORD_HPP_
#define SPSL_STORAGE_PASSWORD_HPP_
#include <limits>
#include <st... |
<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
// "Lic... |
<commit_before>// This code is based on Sabberstone project.
// Copyright (c) 2017-2019 SabberStone Team, darkfriend77 & rnilva
// Hearthstone++ is hearthstone simulator using C++ with reinforcement learning.
// Copyright (c) 2019 Chris Ohk, Youngjoong Kim, SeungHyun Jeon
#include <Rosetta/Games/Game.hpp>
#include <Ro... |
<commit_before>//===-- PPCTargetMachine.cpp - Define TargetMachine for PowerPC -----------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#ifndef VSMC_INTERNAL_FORWARD_HPP
#define VSMC_INTERNAL_FORWARD_HPP
namespace vsmc {
namespace internal {
class WeightBase;
template <typename> class Weight;
template <typename, typename> class InitializeBase;
template <typename, typename> class MoveBase;
template <typename, typename> class MonitorEva... |
<commit_before>// Copyright (c) 2012 Plenluno All rights reserved.
#include <libj/value.h>
int main() {
libj::Value v = 5;
libj::Value* vp = &v;
int* ip;
libj::to<const int>(vp, &ip);
return 0;
}
<commit_msg>fix a cpplint warning<commit_after>// Copyright (c) 2012 Plenluno All rights reserved... |
<commit_before>/**
* @file GoalSymbols.cpp
*
* @author <a href="mailto:martius@informatik.hu-berlin.de">Martin Martius</a>
* Implementation of class GoalSymbols
*/
#include "GoalSymbols.h"
void GoalSymbols::registerSymbols(xabsl::Engine& engine)
{
// a whole goal was seen
engine.registerDecim... |
<commit_before>/**
* Non-metric Space Library
*
* Authors: Bilegsaikhan Naidan (https://github.com/bileg), Leonid Boytsov (http://boytsov.info).
* With contributions from Lawrence Cayton (http://lcayton.com/) and others.
*
* For the complete list of contributors and further details see:
* https://github.com/sear... |
<commit_before>#ifndef __ANY_VALUE_HPP_INCLUDED
#define __ANY_VALUE_HPP_INCLUDED
// Include standard headers
#include <cmath> // NAN, std::isnan, std::pow
#include <string> // std::string
#include <stdint.h> // uint32_t etc.
namespace model
{
class World;
}
namespace datatypes
{
enum datatype
{
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.