text stringlengths 54 60.6k |
|---|
<commit_before>//============================================================================
// I B E X
// File : ctc01.cpp
// Author : Gilles Chabert
// Copyright : Ecole des Mines de Nantes (France)
// License : See the LICENSE file
// Created : Jun 3, 2012
// L... |
<commit_before>//..............................................................................
//
// This file is part of the AXL library.
//
// AXL is distributed under the MIT license.
// For details see accompanying license.txt file,
// the public copy of which is also available at:
// http://tibbo.com/downloa... |
<commit_before>#include <iostream>
#include <limits>
#include <algorithm>
#include "../segment_tree/segment_tree.hpp"
template <typename T>
struct rmq_specification
{
static inline const T& get_identity()
{
static const T IDENTITY = std::numeric_limits<T>::min();
return IDENTITY;
}
sta... |
<commit_before>#pragma once
#include "../data/math.hpp"
#include "../data/data_set.hpp"
#include <QObject>
#include <QPainter>
#include <QPointF>
#include <vector>
namespace datavis {
using std::vector;
class Selector;
class PlotView;
class Plot : public QObject
{
Q_OBJECT
public:
struct Range
{
... |
<commit_before>// Copyright (c) 2015 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-CHROMIUM file.
#include "brightray/browser/platform_notification_service.h"
#include "base/strings/utf_string_conversions.h"
#include "brigh... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** Commercial Usage
**
** Licensees holding valid Qt Commercial... |
<commit_before>// Formatting library for C++ - scanning API proof of concept
//
// Copyright (c) 2012 - present, Victor Zverovich
// All rights reserved.
//
// For the license information refer to format.h.
#include <array>
#include <climits>
#include "fmt/format.h"
#include "gmock.h"
#include "gtest-extra.h"
FMT_BE... |
<commit_before>#include <string>
#include <utility>
#include <vector>
#include "boost/chrono.hpp"
#include "boost/thread.hpp"
#include "boost/thread/latch.hpp"
#include "gtest/gtest.h"
#include "dsb/comm/proxy.hpp"
#include "dsb/comm/util.hpp"
#include "dsb/execution/variable_io.hpp"
#include "dsb/util.hpp"
namespa... |
<commit_before>//
// (c) 2019 Eduardo Doria.
//
#include "KeyframeTrack.h"
#include "Log.h"
using namespace Supernova;
KeyframeTrack::KeyframeTrack(): TimeAction(){
this->index = 0;
this->progress = 0;
}
KeyframeTrack::KeyframeTrack(std::vector<float> times): TimeAction(){
setTimes(times);
this->ind... |
<commit_before>#ifndef DEVICEFILTER_HPP
#define DEVICEFILTER_HPP
#include "bridge.h"
#include "CommonData.hpp"
#include "DeviceFilter.hpp"
#include "IOLogWrapper.hpp"
#include "RemapFilterBase.hpp"
namespace org_pqrs_Karabiner {
namespace RemapFilter {
class DeviceFilter : public RemapFilterBase {
public:
... |
<commit_before>/** @copyright
* Copyright (c) 2017 Stuart W Baker
* 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 noti... |
<commit_before>/** \copyright
* Copyright (c) 2014, Balazs Racz
* 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... |
<commit_before>//===- Target.cpp ---------------------------------------------------------===//
//
// 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>/*
* Copyright (c) [2004-2015] Novell, Inc.
* Copyright (c) 2016 SUSE LLC
*
* All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of version 2 of the GNU General Public License as published
* by the Free Software Foundation.
*
* Thi... |
<commit_before>/*
Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserve.
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>#include "gauss_convol.h"
#include <cassert>
#include <cmath>
/* Gaussian convolution kernels are truncated at this many sigmas from
the center. While it is more efficient to keep this value small,
experiments show that for consistent scale-space analysis it needs
a value of about 3.0, at whic... |
<commit_before>/*
* Author: Brendan Le Foll <brendan.le.foll@intel.com>
* Copyright (c) 2014 Intel Corporation.
*
* 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, in... |
<commit_before>#include <ciri/wnd/Window.hpp>
#include <ciri/gfx/GraphicsDeviceFactory.hpp>
#include <ciri/gfx/IShader.hpp>
#include <ciri/gfx/IVertexBuffer.hpp>
#include <ciri/gfx/IIndexBuffer.hpp>
#include <ciri/gfx/IConstantBuffer.hpp>
#include <ciri/gfx/Camera.hpp>
#include <cc/Vec3.hpp>
#include <cc/Mat4.hpp>
#inc... |
<commit_before>#include <Python.h>
#include "ptex_util.hpp"
static PyObject*
Py_merge_ptex(PyObject *, PyObject* args){
PyObject *input_list = 0, *seq, *item, *result = 0;
const char **input_files = 0;
const char *output = 0;
int *offsets;
Ptex::String err_msg;
if(!PyArg_ParseTuple(args, "Os:m... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2003 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 LICENSE that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
... |
<commit_before>//-----------------------------------------------------------------------------
// Copyright (c) 2014 Michael G. Brehm
//
// 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 wi... |
<commit_before>//
// This file is part of the Marble Project.
//
// This program is free software licensed under the GNU LGPL. You can
// find a copy of this license in LICENSE.txt in the top directory of
// the source code.
//
// Copyright 2006-2007 Torsten Rahn <tackat@kde.org>
// Copyright 2007 Inge Wallin <in... |
<commit_before>#pragma once
//=====================================================================//
/*! @file
@brief RX64M, RX65x, RX71M グループ・CMTW 定義
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2018 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/RX/bl... |
<commit_before>#include <stdio.h>
#include "xbyak/xbyak.h"
using namespace Xbyak;
#ifdef _MSC_VER
#pragma warning(disable : 4245)
#endif
class Sample : public CodeGenerator {
void operator=(const Sample&);
public:
#include "nm.cpp"
};
#define _STR(x) #x
#define TEST(syntax) err = true; try { syntax; err = false; }... |
<commit_before>#include "debug_render.h"
#include "file_system.h"
#include "input.h"
#include "loader.h"
#include "memory.h"
#include "pen.h"
#include "pen_string.h"
#include "renderer.h"
#include "str/Str.h"
#include "threads.h"
#include "timer.h"
using namespace pen;
using namespace put;
namespace
{
void* user... |
<commit_before>#include "greedy_solver.h"
#include <algorithm>
#include <functional>
#include <vector>
#include "cyc_limits.h"
#include "logger.h"
namespace cyclus {
//- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
GreedySolver::~GreedySolver() {
if (conditioner_ != NULL)
delete... |
<commit_before>#include "stdafx.h"
#include "DBManager.h"
#include "ODBCInterface.h"
#include "TimeManager.h"
DBManager *g_pDBManager = NULL;
DBManager::DBManager()
{
mCharDBInterface = new ODBCInterface();
m_Active = TRUE;
}
DBManager::~DBManager()
{
SAFE_DELETE(mCharDBInterface);
}
BOOL DBManager... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: XMLTextMarkImportContext.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: hr $ $Date: 2006-06-19 18:46:39 $
*
* The Contents of thi... |
<commit_before><commit_msg>Add .tmp suffix to downloading files<commit_after><|endoftext|> |
<commit_before>/*----------------------------------------------------------------------
* Numenta Platform for Intelligent Computing (NuPIC)
* Copyright (C) 2013, Numenta, Inc. Unless you have purchased from
* Numenta, Inc. a separate commercial license for this software code, the
* following terms and conditions ... |
<commit_before>TCanvas *pAll=0;
AliRunLoader *gAL=0; AliLoader *gHL=0; AliESD *gEsd=0; TTree *gEsdTr=0; AliHMPID *gH=0;
Int_t gEvt=0; Int_t gMaxEvt=0;
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
void Hdi... |
<commit_before>#include "./JPetRecoImageTools.h"
#include <vector>
#include <utility>
#include <cmath>
#include <functional>
#include <cassert>
#include <memory>
JPetRecoImageTools::JPetRecoImageTools() { }
JPetRecoImageTools::~JPetRecoImageTools() { }
double JPetRecoImageTools::nearestNeighbour(std::vector<std::v... |
<commit_before>#ifndef GQ_CHARACTERIZE_H
#define GQ_CHARACTERIZE_H
#include <eigen3/Eigen/Eigen>
#include <cfloat>
#include <iostream>
class GQ_Characterize{
protected:
// coefficients of the GQ
double A_,B_,C_,D_,E_,F_,G_,H_,J_,K_;
// the cannonical GQ type
int type;
// translation from the canoncial GQ t... |
<commit_before>// Copyright (C) 2017 Elviss Strazdins
// This file is part of the Ouzel engine.
#include <cmath>
#include "SoundResource.hpp"
#include "AudioDevice.hpp"
#include "SoundData.hpp"
#include "Stream.hpp"
#include "math/MathUtils.hpp"
static void resampleLerp(const std::vector<float>& src, uint32_t srcFram... |
<commit_before>#ifndef CONTROL_H
#define CONTROL_H
#include "SPECTYPES.H"
// guessed, some may be wrong on PSX
enum input_buttons
{
IN_NONE = 0, // 0x000000
IN_UP = (1 << 0), // 0x000001
IN_DOWN = (1 << 1), // 0x000002
IN_LEFT = (1 << 2), // 0x000004
IN_RIGHT = (1 << 3), // 0x000008... |
<commit_before>#include "types.h"
#include "amd64.h"
#include "mmu.h"
#include "cpu.hh"
#include "kernel.hh"
#include "bits.hh"
#include "spinlock.h"
#include "kalloc.hh"
#include "queue.h"
#include "condvar.h"
#include "proc.hh"
#include "vm.hh"
#include "gc.hh"
#include "crange.hh"
#include "cpputil.hh"
enum { vm_de... |
<commit_before>/* main.cpp
* localcall main file - locally loads a shared library, instantiates a module and calls a function from that module
*/
#include <iostream>
#include <cstdlib>
#include <boost/shared_ptr.hpp>
#include <qi/os.hpp>
#include <qi/path.hpp>
#include <qi/log.hpp>
#include <alcommon/almodule.h>
... |
<commit_before>/*
* DSA
* (C) 1999-2010,2014,2016 Jack Lloyd
* (C) 2016 René Korthaus
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include <botan/dsa.h>
#include <botan/internal/keypair.h>
#include <botan/reducer.h>
#include <botan/rng.h>
#include <botan/internal/divide.h>
#include <bot... |
<commit_before>//------------------------------------------------------------------------------
// alSoundMgr.cc
//------------------------------------------------------------------------------
#include "Pre.h"
#include "alSoundMgr.h"
#include "Core/Log.h"
#include "Core/Assert.h"
#include "Core/String/StringBu... |
<commit_before>// -*- Mode:C++ -*-
/**************************************************************************************************/
/* */
/* Copyright (C) 2016 University of Hull ... |
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "app/l10n_util.h"
#include "base/command_line.h"
#include "base/string16.h"
#include "base/utf_string_conversions.h"
#include ... |
<commit_before>/*
* Copyright (c) 2015 Pavel Vainerman.
*
* This program 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, version 2.1.
*
* This program is distributed in the hope that it will be u... |
<commit_before>/*
* RBWindControl.cpp
* golf
*
* Created by Robert Rose on 10/30/08.
* Copyright 2008 Bork 3D LLC. All rights reserved.
*
*/
#include "RBWindControl.h"
#include "RudeGL.h"
#include "RudeDebug.h"
RBWindControl::RBWindControl()
: m_windSpeed(0.0f)
, m_windVec(0,0,0)
, m_animTimer(0.0f)
, m_in... |
<commit_before>// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/extensions/extension_apitest.h"
#include "chrome/browser/notifications/desktop_notification_service.h"
#inclu... |
<commit_before>#ifndef MANIFOLDS_POLYNOMIAL_HH
#define MANIFOLDS_POLYNOMIAL_HH
#include "full_function_defs.hh"
#include "function.hh"
#include <ratio>
#include <array>
#include <type_traits>
#include <ostream>
#include <iostream>
namespace manifolds
{
//Somewhat confusingly,
//order here refers to the number of... |
<commit_before>/*M///////////////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2015, Youssef Kashef
// Copyright (c) 2015, ELM Library Project
// 3-clause BSD License
//
//M*/
#include "elm/layers/weightedsum.h"
#include "gtest/gtest.h"
#include <memory>
#include "elm/c... |
<commit_before>/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: handlerhelper.hxx,v $
* $Revisio... |
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/notifications/balloon_collection_impl.h"
#include "base/logging.h"
#include "base/stl_util-inl.h"
#include "c... |
<commit_before>#include "plat_libraries.h"
#if defined(COFFEE_LINUX)
#include <dlfcn.h>
#elif defined(COFFEE_WIN32)
#include <Windows.h>
#include <WinUser.h>
#endif
namespace Coffee{
namespace CLibraryLoader{
constexpr cstring lib_load_error_format = "Native library loading error: %s";
constexpr cstring lib_symb_err... |
<commit_before>/*
* Copyright 2009-2011 The VOTCA Development Team (http://www.votca.org)
*
* 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/LICENS... |
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/sync/glue/theme_change_processor.h"
#include "base/logging.h"
#include "chrome/browser/browser_theme_provider... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p9/procedures/hwp/perv/p9_sbe_check_master_st... |
<commit_before>/*
* OS and machine specific utility functions
* (C) 2015,2016,2017 Jack Lloyd
* (C) 2016 Daniel Neus
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include <botan/internal/os_utils.h>
#include <botan/cpuid.h>
#include <botan/exceptn.h>
#include <botan/mem_ops.h>
#include ... |
<commit_before>#include "HalideRuntime.h"
extern "C" {
typedef long dispatch_once_t;
extern void dispatch_once_f(dispatch_once_t *, void *context, void (*initializer)(void *));
typedef struct dispatch_queue_s *dispatch_queue_t;
typedef long dispatch_queue_priority_t;
extern dispatch_queue_t dispatch_get_global_queu... |
<commit_before>#include <allegro5/allegro.h>
#include <cstdio>
#include <fstream>
#include "inputcatcher.h"
#include "datastructures.h"
#include "renderer.h"
#include "ingameelements/character.h"
#include "global_constants.h"
#define LEFT_MOUSE_BUTTON 1
#define RIGHT_MOUSE_BUTTON 2
InputCatcher::InputCatcher(ALLEGRO... |
<commit_before>/**
* An application which is responsible for handling the client inputs.
*
* @date Jul 17, 2014
* @author Joeri HERMANS
* @version 0.1
*
* Copyright 2013 Joeri HERMANS
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you ... |
<commit_before>#include "neutralmoblistmodel.h"
#include <QDebug>
#include <sstream>
#include <QStringList>
// Initialize the counter
long NeutralMob::id_counter = 0;
NeutralMob::NeutralMob(const QString &type,
const float &posX,
const float &posY,
... |
<commit_before>/**
* This file defines facilities to perform concept-based overloading.
*/
#ifndef DUCK_REQUIRES_HPP
#define DUCK_REQUIRES_HPP
#include <duck/detail/mpl_extensions.hpp>
#include <duck/models.hpp>
#include <boost/config.hpp>
#include <boost/mpl/and.hpp>
#include <boost/mpl/apply.hpp>
#include <boost... |
<commit_before>//===- AArch64MacroFusion.cpp - AArch64 Macro Fusion ----------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>//===- AMDGPUAliasAnalysis ------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>//===- AMDGPUAliasAnalysis ---------------------------------------*- C++ -*-==//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2014 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the Qt Build Suite.
**
** Commercial License Usage
** Licensees holding valid commercial Qt ... |
<commit_before>/*
* Copyright (c) 2013 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>#pragma once
#include <experimental/optional>
#include <functional>
#include <memory>
#include "base/not_null.hpp"
#include "geometry/affine_map.hpp"
#include "geometry/named_quantities.hpp"
#include "geometry/orthogonal_map.hpp"
#include "geometry/rotation.hpp"
#include "ksp_plugin/celestial.hpp"
#in... |
<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>#include "compression.hh"
#include "tarfile.hh"
#include "util.hh"
#include "finally.hh"
#include "logging.hh"
#include <archive.h>
#include <archive_entry.h>
#include <cstdio>
#include <cstring>
#include <brotli/decode.h>
#include <brotli/encode.h>
#include <zlib.h>
#include <iostream>
namespace ni... |
<commit_before>/*
* Copyright 2014-2020 Real Logic Limited.
*
* 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
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: ImageRegistration13.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights reserved.
See ... |
<commit_before>/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
... |
<commit_before>// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "net/third_party/quiche/src/quic/tools/quic_toy_server.h"
#include <utility>
#include <vector>
#include "net/third_party/quiche/... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: ImageRegistration15.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights reserved.
See ... |
<commit_before>//===-- LoopPredication.cpp - Guard based loop predication pass -----------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<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
* "... |
<commit_before>#included "Header.h"
//----------------------------------------------------//
struct Statistics(){};
//----------------------------------------------------//
<commit_msg>Delete Statistics.cpp<commit_after><|endoftext|> |
<commit_before>// Jubatus: Online machine learning framework for distributed environment
// Copyright (C) 2011 Preferred Infrastructure 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
// Lic... |
<commit_before>// Jubatus: Online machine learning framework for distributed environment
// Copyright (C) 2011 Preferred Infrastructure 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
// Lic... |
<commit_before>/*
* labyrinth.cpp
*
* Created on: 15.01.2015 г.
* Author: trifon
*/
#include <iostream>
using namespace std;
const int MAX = 100;
char labyrinth[MAX][MAX];
int m, n;
void readLabyrinth() {
cin >> m >> n;
cin.ignore();
for(int i = 0; i < m; i++)
cin.getline(labyrinth[i], n + 2);
}
vo... |
<commit_before>/*
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
* See the copyright notice in the ACK home directory, in the file "Copyright".
*
* Author: Ceriel J.H. Jacobs
*/
/* C A S E S T A T E M E N T C O D E G E N E R A T I O N */
/* $Header$ */
/* Generation of case st... |
<commit_before>/*!
* \file File componentTimer.cpp
* \brief Implementation of the class of game time
*
* The class implemented here provides to the game the time limit
*
* \sa componentTimer.hpp
*/
#include <>
//#include <compLib.hpp>
#include <gameObject.hpp>
//#include <camera.hpp>
//#include <inputManag... |
<commit_before>/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
* Main authors:
* Guido Tack <guido.tack@monash.edu>
*/
/* 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 ... |
<commit_before>//=======================================================================
// Copyright Baptiste Wicht 2011-2012.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//=================================... |
<commit_before>/**
* \file
*/
#pragma once
#include <rleahylib/rleahylib.hpp>
#include <client.hpp>
#include <packet.hpp>
#include <functional>
namespace MCPP {
/**
* Encapsulates information about a packet
* being received from a client.
*/
class PacketEvent {
public:
/**
* The... |
<commit_before>#include <iostream>
int main() {
std::cout << "HelloWorld" << std::endl;
}
<commit_msg>Update Helloworld.cpp<commit_after>#include <iostream>
int main() {
std::cout << "Fight On" << std::endl;
}
<|endoftext|> |
<commit_before>// This is an independent project of an individual developer. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
// This MFC Samples source code demonstrates using MFC Microsoft Office Fluent User Interface
// (the "Fluent UI") and is provided o... |
<commit_before>#include "hdr/types/list.hpp"
#include "hdr/math.hpp"
namespace Test {
using namespace ::hdr::std;
using namespace ::hdr::math;
using namespace ::hdr::list;
namespace ListLength {
using empty = EmptyList;
using oneel = Cons<empty, empty>;
using twoel = Cons<oneel, oneel>;
static_... |
<commit_before>
#include "AbstractLcdView.h"
#include "WiringPiLcdDisplay.h"
#include "MiniLcdPCD8544.h"
/**
* Singleton accessor
*/
AbstractLcdView *AbstractLcdView::getLcdDisplayInstance(LcdDisplayType type) {
AbstractLcdView *display = nullptr;
switch(type) {
case HD44780U:
display = n... |
<commit_before>/*
* Copyright (c) 2011-2013 libwallet developers (see AUTHORS)
*
* This file is part of libwallet.
*
* libwallet 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 o... |
<commit_before>// Copyright 2016 Open Source Robotics Foundation, 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 re... |
<commit_before>#ifndef XUTILS_HPP
#define XUTILS_HPP
#include <cstddef>
#include <utility>
#include <tuple>
#include <type_traits>
#include <initializer_list>
namespace qs
{
template <class F, class... T>
void for_each(F&& f, std::tuple<T...>& t);
template <class F, class R, class... T>
R accumulate... |
<commit_before>// $Id: AliHLTTPCClusterTransformation.cxx 41244 2010-05-14 08:13:35Z kkanaki $
//**************************************************************************
//* This file is property of and copyright by the ALICE HLT Project *
//* ALICE Experiment at CERN, All rights reserved. ... |
<commit_before>//=================================================================================================
// Copyright (c) 2016, Stefan Kohlbrecher, TU Darmstadt
// All rights reserved.
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the follo... |
<commit_before>/*
** Copyright 2011-2014 Merethis
**
** This file is part of Centreon Broker.
**
** Centreon Broker is free software: you can redistribute it and/or
** modify it under the terms of the GNU General Public License version 2
** as published by the Free Software Foundation.
**
** Centreon Broker is distribu... |
<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 appl... |
<commit_before>/*
* Copyright (C) 2016, Isaac Woods. All rights reserved.
*/
#include <cstdio>
#include <cstdlib>
#include <cstdint>
#include <common.hpp>
struct elf_header
{
uint16_t fileType;
uint64_t entryPoint;
uint64_t programHeaderOffset;
uint64_t sectionHeaderOffset;
uint16_t numProgramHeaderEntrie... |
<commit_before>#include "command_manager.hh"
#include "utils.hh"
#include "assert.hh"
#include "context.hh"
#include <algorithm>
#include <cstring>
#include <sys/types.h>
#include <sys/wait.h>
namespace Kakoune
{
void CommandManager::register_command(const std::string& command_name, Command command,
... |
<commit_before>// $Id$
// -*-C++-*-
// * BeginRiceCopyright *****************************************************
//
// Copyright ((c)) 2002, Rice University
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following con... |
<commit_before>#include <Hadouken/Http/JsonRpc/TorrentGetFilesMethod.hpp>
#include <Hadouken/BitTorrent/FileEntry.hpp>
#include <Hadouken/BitTorrent/FileStorage.hpp>
#include <Hadouken/BitTorrent/Session.hpp>
#include <Hadouken/BitTorrent/TorrentInfo.hpp>
#include <Hadouken/BitTorrent/TorrentHandle.hpp>
#include <Hado... |
<commit_before>#pragma once
#include <QString>
#include <QtGlobal>
#define CHATTERINO_VERSION "2.1.6"
#if defined(Q_OS_WIN)
# define CHATTERINO_OS "win"
#elif defined(Q_OS_MACOS)
# define CHATTERINO_OS "macos"
#elif defined(Q_OS_LINUX)
# define CHATTERINO_OS "linux"
#else
# define CHATTERINO_OS "unknown"... |
<commit_before>#include "vlcplugin_win.h"
#include "../common/win32_fullscreen.h"
static HMODULE hDllModule= 0;
HMODULE DllGetModule()
{
return hDllModule;
};
extern "C"
BOOL WINAPI DllMain(HANDLE hModule, DWORD fdwReason, LPVOID lpReserved )
{
switch( fdwReason )
{
case DLL_PROCESS_ATTACH:
... |
<commit_before>#ifndef SILICIUM_RUN_PROCESS_HPP
#define SILICIUM_RUN_PROCESS_HPP
#include <silicium/async_process.hpp>
#include <silicium/write.hpp>
#include <silicium/sink/multi_sink.hpp>
#include <boost/range/algorithm/transform.hpp>
namespace Si
{
template <class T>
bool extract(T &destination, optional<T> &&sou... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.