text stringlengths 54 60.6k |
|---|
<commit_before>#include "util.h"
#include <mysql++.h>
#include <iostream>
using namespace std;
int
main(int argc, char *argv[])
{
try {
mysqlpp::Connection con(mysqlpp::use_exceptions);
if (!connect_to_db(argc, argv, con, "")) {
return 1;
}
bool created = false;
try {
con.select_db(kpcSampleDataba... |
<commit_before>/**
* @file
*
* @brief
*
* @copyright BSD License (see LICENSE.md or https://www.libelektra.org)
*/
#include "ccode.hpp"
#include <kdblogger.h>
namespace
{
/**
* @brief Cast a character to an unsigned character.
*
* @param character This parameter specifies the character this function casts ... |
<commit_before>// illarionserver - server for the game Illarion
// Copyright 2011 Illarion e.V.
//
// This file is part of illarionserver.
//
// illarionserver 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 Found... |
<commit_before>// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// ... |
<commit_before>///
/// @file iterator.cpp
///
/// Copyright (C) 2014 Kim Walisch, <kim.walisch@gmail.com>
///
/// This file is distributed under the BSD License. See the COPYING
/// file in the top level directory.
///
#include <primesieve/config.hpp>
#include <primesieve/imath.hpp>
#include <primesieve/PrimeFinder.h... |
<commit_before>/*************************************************************************
*
* $RCSfile: config.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: vg $ $Date: 2005-02-16 17:57:48 $
*
* The Contents of this file are made available subject to the terms of
* either of the following license... |
<commit_before>/*
* Copyright 1999-2004 The Apache Software Foundation.
*
* 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>/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 1999-2002 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. Redistr... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: ZConnectionWrapper.hxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: rt $ $Date: 2005-09-08 05:16:56 $
*
* The Contents of this file... |
<commit_before>//********************************************************************
// Example (very naive for the moment) of using the ESD classes
// It demonstrates the idea of the "combined PID".
// Origin: Iouri Belikov, CERN, Jouri.Belikov@cern.ch
//***********************************************... |
<commit_before>/*
* This file is a part of Xpiks - cross platform application for
* keywording and uploading images for microstocks
* Copyright (C) 2014-2016 Taras Kushnir <kushnirTV@gmail.com>
*
* Xpiks is distributed under the GNU General Public License, version 3.0
*
* This program is free software: you can r... |
<commit_before>/**************************************************************************
* Author: Panos Christakoglou. *
* Contributors are mentioned in the code where appropriate. *
* *
... |
<commit_before>#include <sodium.h>
#include <fstream>
#include "base64.h"
#include "deltacommon.h"
path& path_append(path &_this, path::iterator begin, path::iterator end)
{
for (; begin != end; ++begin)
_this /= *begin;
return _this;
}
path make_path_relative(path a_From, path a_To)
{
a_From = absolute(a_From)... |
<commit_before>#ifndef STAN_MATH_REV_FUNCTOR_APPLY_VECTOR_UNARY_HPP
#define STAN_MATH_REV_FUNCTOR_APPLY_VECTOR_UNARY_HPP
#include <stan/math/prim/functor/apply_vector_unary.hpp>
#include <stan/math/rev/core/var.hpp>
#include <vector>
namespace stan {
namespace math {
/**
* Specialisation for use with `var_value<T>`... |
<commit_before>/**
* An example program utilizing most/all calls from the CUDA
* Runtime API module:
*
* Device Management
*
* but does not include the API calls relating to IPC (inter-
* process communication) - sharing pointers to device memory
* and events among operating system process. That should be
* ... |
<commit_before>// //////////////////////////////////////////////////////////////////////
// Import section
// //////////////////////////////////////////////////////////////////////
// STL
#include <cassert>
// Boost
#if BOOST_VERSION >= 103900
#include <boost/make_shared.hpp>
#else // BOOST_VERSION >= 103900
#include ... |
<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 "shell/browser/api/electron_api_power_monitor.h"
#include <windows.h>
#include <wtsapi32.h>
#include "base/win/windows_types.h"
#include "base/win/wrapped_win... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/usr/pldm/extended/pldm_fru_to_ipz_mapping.H $ ... |
<commit_before>#include <cstdlib>
#include <cstdio>
#include <cstring>
#include <cmath>
#include <string>
#include <utility>
#include <functional>
#include <memory>
#include <algorithm>
#include <iostream>
#include <map>
#include <unordered_map>
#include <chrono>
#include <sg14/fixed_point>
#include <EASTL/vector.h>
#... |
<commit_before>//-----------------------------------------------------------------------------
// Copyright (c) 2015 GarageGames, LLC
//
// 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 wit... |
<commit_before>//===--- Stmt.cpp - Statement AST Node Implementation ---------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This softw... |
<commit_before>// Copyright (C) 2011-2018 Roki. Distributed under the MIT License
#ifndef INCLUDED_SROOK_MEMORY_ALIGNED_DETAIL_ALIGNED_ALLOC_STD_HPP
#define INCLUDED_SROOK_MEMORY_ALIGNED_DETAIL_ALIGNED_ALLOC_STD_HPP
#include <srook/config.hpp>
#include <memory>
SROOK_NESTED_NAMESPACE(srook, memory, alignment) {
SROOK... |
<commit_before>#include "DxfWriter.h"
#include "Core/StringUtils.h"
#include "IO/Log.h"
DxfWriter::DxfWriter(Context* context, String path) : Object(context)
{
}
bool DxfWriter::Save(String path)
{
FileSystem* fs = new FileSystem(GetContext());
//create the file
dest_ = new File(GetContext(), path, FILE_WRITE);... |
<commit_before>/*
* stomp_planner.cpp
*
* Created on: Jan 22, 2013
* Author: kalakris
*/
#include <ros/ros.h>
#include <moveit/robot_state/conversions.h>
#include <stomp_moveit_interface/stomp_planner.h>
#include <stomp/stomp_utils.h>
#include <class_loader/class_loader.h>
namespace stomp_moveit_interface
... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2012 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>#include "qtfirebaseanalytics.h"
#include <QGuiApplication>
namespace analytics = ::firebase::analytics;
QtFirebaseAnalytics *QtFirebaseAnalytics::self = 0;
QtFirebaseAnalytics::QtFirebaseAnalytics(QObject* parent) : QObject(parent)
{
if(self == 0) {
self = this;
qDebug() << self ... |
<commit_before>/* Copyright 2013-present Barefoot Networks, 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 b... |
<commit_before>
/*
Stepper.cpp - - Stepper library for Wiring/Arduino - Version 0.4
Original library (0.1) by Tom Igoe.
Two-wire modifications (0.2) by Sebastian Gassner
Combination version (0.3) by Tom Igoe and David Mellis
Bug fix for four-wire (0.4) by Tom Igoe, bug fix from Noah Shibley
Wave ... |
<commit_before>#pragma once
#include <blobs-ipmid/blobs.hpp>
namespace blobs
{
/**
* Register only one firmware blob handler that will manage all sessions.
*/
class FirmwareBlobHandler : public GenericBlobInterface
{
public:
FirmwareBlobHandler() = default;
~FirmwareBlobHandler() = default;
FirmwareB... |
<commit_before>#pragma once
#include "data_handler.hpp"
#include "image_handler.hpp"
#include <blobs-ipmid/blobs.hpp>
#include <cstdint>
#include <map>
#include <memory>
#include <string>
#include <vector>
namespace blobs
{
/**
* Representation of a session, includes how to read/write data.
*/
struct Session
{
... |
<commit_before>/*
* Open Chinese Convert
*
* Copyright 2010-2020 Carbo Kuo <byvoid@byvoid.com>
*
* 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... |
<commit_before>/*
* Copyright 2019-2022 Diligent Graphics LLC
*
* 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 requ... |
<commit_before>/******************************************************************************
This source file is part of the Avogadro project.
Copyright 2015 Marcus Johansson <mcodev31@gmail.com>
This source code is released under the New BSD License, (the "License").
Unless required by applicable law or ... |
<commit_before>// Copyright (c) 2011-2014 The Bitcoin developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
//
// Wraps dumb protocol buffer paymentRequest
// with some extra methods
//
#include "paymentrequestplus.h"
#in... |
<commit_before>// Copyright (c) 2011-2017 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 <wallet/wallet.h>
#include <qt/receivecoinsdialog.h>
#include <qt/forms/ui_receivecoinsdialog.h>
#i... |
<commit_before>// Copyright (c) 2011-2013 The Bitcoin developers
// Copyright (c) 2017-2019 The PIVX developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "trafficgraphwidget.h"
#include "clientmodel.h"
#inclu... |
<commit_before>/* -------------------------------------------------------------------------- */
/* Copyright 2002-2017, OpenNebula Project, OpenNebula Systems */
/* */
/* Licensed under the Apache License, Version 2.0 (the "Licens... |
<commit_before>/*
Copyright (c) 2011 Neevarp Yhtroom
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, me... |
<commit_before>#include "ut_atom.h"
#include "ut_population.h"
#include "ut_objective_function.h"
#include "gtest/gtest.h"
int main(int argc, char *argv[])
{
::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS();
}
<commit_msg>unit tests for revolution::Version<commit_after>#include "ut_atom.h"
#inclu... |
<commit_before>/*************************************************************************/
/* dir_access_windows.cpp */
/*************************************************************************/
/* This file is part of: */
/... |
<commit_before>/***********************************************************************
filename: ShaderParameterBindings.cpp
created: 18th July 2013
author: Lukas Meindl
*************************************************************************/
/****************************************************... |
<commit_before>/*************************************************************************
*
* $RCSfile: mcnttfactory.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: tra $ $Date: 2001-02-13 13:04:11 $
*
* The Contents of this file are made available subject to the terms of
* either of the following ... |
<commit_before>/*************************************************************************
*
* $RCSfile: formstrings.hxx,v $
*
* $Revision: 1.16 $
*
* last change: $Author: hr $ $Date: 2003-03-25 16:03:54 $
*
* The Contents of this file are made available subject to the terms of
* either of the following l... |
<commit_before>/** \brief Convert WiBiLex/WiRelex Database entries to MARC 21 Records
* \author Johannes Riedl
*
* \copyright 2022 Universitätsbibliothek Tübingen. All rights reserved.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Publ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: usercontrol.cxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: kz $ $Date: 2007-05-10 10:50:39 $
*
* The Contents of this file are m... |
<commit_before>/*
* FileSystem.cpp
*
* Created on: Jun 20, 2014
* Author: Pimenta
*/
// this
#include "FileSystem.hpp"
using namespace std;
using namespace helpers;
map<string, FileSystem::Folder> FileSystem::folders;
void FileSystem::init() {
folders.clear();
folders["root"];
}
... |
<commit_before>#include "FileSystem.hpp"
#include "File.hpp"
#include <iostream>
#include <cmath>
using namespace std;
FileSystem::FileSystem() {
root = new Directory("/");
mMemblockDevice = MemBlockDevice(250, 512);
freeBlockNumbers = vector<bool>(mMemblockDevice.size(), true);
}
FileSystem::~FileSystem() {
... |
<commit_before>/*
* author: Max Kellermann <mk@cm4all.com>
*/
#include "GException.hxx"
#include "HttpMessageResponse.hxx"
#include "http_quark.h"
#include "util/Exception.hxx"
void
SetGError(GError **error_r, const std::exception &e)
{
g_set_error_literal(error_r, exception_quark(), 0,
... |
<commit_before>#include "details/compiler/compiler.h"
#include "details/compiler/compdb.h"
#include "details/program/program.h"
#include "details/reporting/report.h"
#include "details/errors/errors.h"
#include "details/pass/a-src2ast/ast-from-source.h"
#include "details/pass/b-ast-normalize/normalize.h"
#include "detai... |
<commit_before>/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2008, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided tha... |
<commit_before>// Copyright (c) 2012, Steinwurf ApS
// 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
// notic... |
<commit_before>#include "GameWindow.h"
GameWindow::GameWindow(QMainWindow *parent) : QMainWindow(parent), m_fpga(this), m_game()
{
/****Central widget****/
GameModeWidget * m_gameModeWidget;
AngleStatusWidget * m_currentAngle;
FirePowerWidget * m_currentPower;
this->setCentralWidget(m_game.getView());
/****Bo... |
<commit_before>
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
#include "MobSpawner.h"
#include "Mobs/IncludeAllMonsters.h"
#include "World.h"
cMobSpawner::cMobSpawner(cMonster::eFamily a_MonsterFamily, const std::set<eMonsterType>& a_AllowedTypes) :
m_MonsterFamil... |
<commit_before>/*************************************************************************
*
* $RCSfile: XMLRedlineImportHelper.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: dvo $ $Date: 2001-11-30 17:38:02 $
*
* The Contents of this file are made available subject to the terms of
* either of the ... |
<commit_before>#include "scrapers/GamesDBScraper.h"
#include "Log.h"
#include "pugixml/pugixml.hpp"
#include "MetaData.h"
#include "Settings.h"
#include "Util.h"
#include <boost/assign.hpp>
using namespace PlatformIds;
const std::map<PlatformId, const char*> gamesdb_platformid_map = boost::assign::map_list_of
(THREED... |
<commit_before>/*
* Copyright (c) 2016 Lech Kulina
*
* This file is part of the Realms Of Steel.
* For conditions of distribution and use, see copyright details in the LICENSE file.
*/
#include <cstdlib>
#include <boost/property_tree/info_parser.hpp>
#include <application/Logger.h>
#include <application/Applicatio... |
<commit_before>// RUN: %llvmgxx %s -fapple-kext -S -o -
// The extra check in 71555 caused this to crash on Darwin X86
// in an assert build.
class foo {
virtual ~foo ();
};
foo::~foo(){}
<commit_msg>Remove 2009-09-04-modify-crash.cpp as clang doesn't support 32-bit kext.<commit_after><|endoftext|> |
<commit_before>#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <functional>
#include <mutex>
#include <cstdlib>
#ifdef WIN32
#define BIND_EVENT(IO,EV,FN) \
do{ \
socket::event_listener_aux l = FN;\
IO->on(EV,l);\
} while(0)
#else
#define BIND_EVENT(IO,EV,FN) \
IO->on(EV,FN)
#end... |
<commit_before>/* Copyright 2020 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 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>////////////////////////////////////////////////////////////////////////////////
// guaranteed_minimum_withdrawal_benefit.cpp
// -----------------------------------------
//
// Computes the price of a Guaranteed Minimum Withdrawal Benefit (GMWB) using an
// implicit, impulse control formulation.
//
// Au... |
<commit_before>#include "mediaplayer.h"
#include "ui_mediaplayer.h"
#include "medium.h"
#include <utility>
#include <QMouseEvent>
MediaPlayer::MediaPlayer(QWidget *parent) :
QWidget(parent),
ui(new Ui::MediaPlayer),
annotationPen(QColor(200,100,0)),
selectionPen(QColor(255,0,0)),
currentImageItem(... |
<commit_before>#include <stan/math/prim.hpp>
#include <gtest/gtest.h>
TEST(ProbLognormal, log_matches_lpdf) {
double y = 0.8;
double mu = 1.1;
double sigma = 2.3;
EXPECT_FLOAT_EQ((stan::math::lognormal_lpdf(y, mu, sigma)),
(stan::math::lognormal_log(y, mu, sigma)));
EXPECT_FLOAT_EQ((stan::... |
<commit_before>/*
* Copyright (C) 2018 German Aerospace Center (DLR/SC)
*
* Created: 2018-11-11 Jan Kleinert <Jan.Kleinert@dlr.de>
* 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:/... |
<commit_before>/*
* The MIT License (MIT)
*
* Copyright (c) 2015-2016 Morwenn
*
* 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 ri... |
<commit_before>/*
* Distributed under the MIT License (See accompanying file /LICENSE )
*/
#include "logger.h"
#include <spdlog/sinks/dist_sink.h>
#ifdef _WIN32
#include <spdlog/sinks/wincolor_sink.h>
#else
#include <spdlog/sinks/ansicolor_sink.h>
#endif
#if defined(_DEBUG) && defined(_MSC_VER)
#include <spdlog/si... |
<commit_before>// Name: CglConicOA.cpp
// Author: Aykut Bulut
// Lehigh University
// email: aykut@lehigh.edu, aykutblt@gmail.com
//-----------------------------------------------------------------------------
// Copyright (C) 2015, Lehigh University. All Rights Reserved.
//-----------------... |
<commit_before>/**
* @file
*/
#pragma once
#include "libbirch/Lazy.hpp"
#include "libbirch/SharedPtr.hpp"
#include "libbirch/FiberState.hpp"
#include "libbirch/Optional.hpp"
namespace libbirch {
/**
* Fiber.
*
* @ingroup libbirch
*
* @tparam Yield Yield type.
* @tparam Return Return type.
*/
template<class Y... |
<commit_before>/*
fskit: a library for creating multi-threaded in-RAM filesystems
Copyright (C) 2014 Jude Nelson
This program is dual-licensed: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License version 3 or later as
published by the Free Software Foundati... |
<commit_before>/*
This file is part of Ingen.
Copyright 2007-2012 David Robillard <http://drobilla.net/>
Ingen 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 ... |
<commit_before>/*
* Copyright (C) 2015-2018 Dubalu LLC. 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 right... |
<commit_before>/**
* @file simpleConnectionPool.cc
* @author Rafal Slota
* @copyright (C) 2013 ACK CYFRONET AGH
* @copyright This software is released under the MIT license cited in 'LICENSE.txt'
*/
#include "simpleConnectionPool.h"
#include "glog/logging.h"
#include <netinet/in.h>
#include <sys/types.h>
#include... |
<commit_before>/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
*
* Data Differential YATL (i.e. libtest) library
*
* Copyright (C) 2012 Data Differential, http://datadifferential.com/
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the fo... |
<commit_before>#include "platform.h"
#include <stdlib.h>
#include <boost/filesystem.hpp>
#include <iostream>
#include <codecvt>
std::string getHomePath()
{
std::string homePath;
// this should give you something like "/home/YOUR_USERNAME" on Linux and "C:\Users\YOUR_USERNAME\" on Windows
const char * envHome = get... |
<commit_before>/*
* Copyright 2010-2011 Fabric Technologies Inc. All rights reserved.
*/
#include <Fabric/Core/IO/Helpers.h>
#include <Fabric/Base/Exception.h>
#include <Fabric/Base/Config.h>
#include <Fabric/Core/Util/Format.h>
#include <errno.h>
#include <stdlib.h>
#if defined(FABRIC_POSIX)
# include <dirent.h>
... |
<commit_before>#include "CFremenGridSet.h"
using namespace std;
CFremenGridSet::CFremenGridSet()
{
numFremenGrids = 0;
activeIndex = 0;
active = NULL;
}
CFremenGridSet::~CFremenGridSet()
{
for (int i=0;i<numFremenGrids;i++) delete fremengrid[i];
}
int CFremenGridSet::add(const char* name, float originX,fl... |
<commit_before>// Sh: A GPU metaprogramming language.
//
// Copyright 2003-2005 Serious Hack Inc.
//
// 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 Licen... |
<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>/********** tell emacs we use -*- c++ -*- style comments *******************
$Revision: 1.6 $ $Author: trey $ $Date: 2006-10-03 03:18:36 $
@file BlindLBInitializer.cc
@brief No brief
Copyright (c) 2005, Trey Smith. All rights reserved.
Licensed under the Apache License, Version 2.0 (the... |
<commit_before>// Copyright (c) 2012 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 "printing/backend/print_backend.h"
#include <algorithm>
#include "third_party/icu/public/common/unicode/uchar.h"
#include "u... |
<commit_before>#include <babylon/GL/framebuffer_canvas.h>
#include <babylon/babylon_imgui/babylon_logs_window.h>
#include <babylon/babylon_imgui/babylon_studio.h>
#include <babylon/cameras/free_camera.h>
#include <babylon/core/filesystem.h>
#include <babylon/core/system.h>
#include <babylon/inspector/components/actiont... |
<commit_before>//===============================================================================
// @ Game.cpp
// ------------------------------------------------------------------------------
// Game core routines
//
// Copyright (C) 2008-2015 by James M. Van Verth and Lars M. Bishop.
// All rights reserved.
//
// Use... |
<commit_before>/*
* Copyright (C) 2017 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>/*
* yosys -- Yosys Open SYnthesis Suite
*
* Copyright (C) 2017 Robert Ou <rqou@robertou.com>
*
* 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 app... |
<commit_before>// Copyright (c) 2014 Quanta Research Cambridge, Inc.
// 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... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: propertysethelper.cxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: hr $ $Date: 2006-06-19 14:08:48 $
*
* The Contents of this file ... |
<commit_before>#include <boost/bind.hpp>
#include <boost/config/warning_disable.hpp>
#include <boost/fusion/algorithm.hpp>
#include <boost/fusion/container.hpp>
#include <boost/fusion/include/adapt_struct.hpp>
#include <boost/fusion/include/at_c.hpp>
#include <boost/fusion/include/io.hpp>
#include <boost/fusion/sequenc... |
<commit_before>#include <Arduino.h>
#include <EEPROM.h>
#include <avr/pgmspace.h>
void setup() {
pinMode(8, OUTPUT);
digitalWrite(8, HIGH); // turn on the radio
Serial.begin(115200);
}
void printHex(Stream& str, uint16_t value, int digits) {
static const char hex[] PROGMEM = "0123456789ABCDEF";
value = va... |
<commit_before>#ifndef _EIGEN3_HDF5_HPP
#define _EIGEN3_HDF5_HPP
#include <array>
#include <cassert>
#include <cstddef>
#include <stdexcept>
#include <string>
#include <vector>
//#include <hdf5.h>
#include <H5Cpp.h>
#include <Eigen/Dense>
namespace EigenHDF5
{
template <typename T>
H5::PredType get_datatype (void);... |
<commit_before>#include "Pythia8/Pythia.h"
#include "Pythia8Plugins/FastJet3.h"
#include <stdio.h>
#include <stdlib.h>
using namespace Pythia8;
void JetAnalysis( Event& event, const char* fname,
double R, double JpTMin, double etaMax, double TR, double TJpTMin ) {
// Find leading pT jet in event w... |
<commit_before>#include "player.h"
#include <iostream>
#include "exit.h"
Player::Player(const char* name, const char* description, Room* parent) : Creature(name, description, parent)
{
Type = PLAYER;
}
Player::~Player()
{
}
void Player::Look(const vector<string> &args) const
{
if (args.size() > 1)
{
if (args[1... |
<commit_before>// Copyright (c) 2009 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 "chrome/browser/gtk/info_bubble_gtk.h"
#include <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>
#include "app/gfx/path.h"
#include "... |
<commit_before>//============================================================================
// Name : PinballBot.cpp
// Author : Nico Hauser, David Schmid
// Version : 0.1
// Description : A reinforcement learning agent that learns to play pinball
//====================================================... |
<commit_before>/*
* Copyright (C) 2008-2010 The QXmpp developers
*
* Author:
* Manjeet Dahiya
*
* Source:
* http://code.google.com/p/qxmpp
*
* This file is a part of QXmpp library.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Publi... |
<commit_before>// The libMesh Finite Element Library.
// Copyright (C) 2002-2012 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
// 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; eit... |
<commit_before>// The libMesh Finite Element Library.
// Copyright (C) 2002-2022 Benjamin S. Kirk, John W. Peterson, Roy H. Stogner
// 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; eit... |
<commit_before>/**
* @file
* brief description, full stop.
*
* long description, many sentences.
*
*/
#include "angort.h"
#include "cycle.h"
#include <time.h>
using namespace angort;
namespace angort {
/// define a property to set and get the auto cycle detection interval.
/// It will be called "autogc".
... |
<commit_before>//* This file is part of the MOOSE framework
//* https://www.mooseframework.org
//*
//* All rights reserved, see COPYRIGHT for full restrictions
//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
//*
//* Licensed under LGPL 2.1, please see LICENSE for details
//* https://www.gnu.org/licenses/lgp... |
<commit_before>/*
* SampleSort.cpp
*
* Created on: 14.03.2016
* Author: s_sschmi
*/
#include "SampleSort.h"
#include <algorithm>
#include <iomanip>
using namespace std;
using namespace MPI;
const int CUSTOM_MPI_ROOT = 0;
SampleSort::SampleSort(int mpiRank, int mpiSize, bool presortLocalData, size_t sampl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.