text stringlengths 54 60.6k |
|---|
<commit_before>/** \file flag_records_as_available_in_tuebingen.cc
* \author Johannes Riedl
* \author Dr. Johannes Ruscheinski
*
* Adds an ITA field with a $a subfield set to "1", if a record represents an object that is
* available in Tübingen.
*/
/*
Copyright (C) 2017-2018, Library of the University of... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 1999 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. Redistri... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkEnSightMasterServerReader.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen
All rights res... |
<commit_before>#include "Gdx2DPixmap.h"
#include "gdx2d.h"
/*
* Class: com_badlogic_gdx_graphics_Gdx2DPixmap
* Method: load
* Signature: ([J[BII)Ljava/nio/ByteBuffer;
*/
JNIEXPORT jobject JNICALL Java_com_badlogic_gdx_graphics_Gdx2DPixmap_load
(JNIEnv *env, jclass, jlongArray nativeData, jbyteArr... |
<commit_before>//
// QtOneLineTextWidget.cpp
// MusicPlayer
//
// Created by Albert Zeyer on 23.01.14.
// Copyright (c) 2014 Albert Zeyer. All rights reserved.
//
#include "QtOneLineTextWidget.hpp"
#include "QtApp.hpp"
#include "Builders.hpp"
#include "PythonHelpers.h"
#include "PyUtils.h"
#include <string>
#inclu... |
<commit_before>/*
* guide_algorithm_resistswitch.cpp
* PHD Guiding
*
* Created by Bret McKee
* Copyright (c) 2012 Bret McKee
* All rights reserved.
*
* Based upon work by Craig Stark.
* Copyright (c) 2006-2010 Craig Stark.
* All rights reserved.
*
* This source code is distributed under the followi... |
<commit_before>// Transaction.cpp
#include "Transaction.h"
#include "Timer.h"
#include "Model.h"
#include "MarketModel.h"
#include <string>
#include <vector>
// initialize static variables
int Transaction::next_trans_id_ = 1;
// Database table for transactions
table_ptr Transaction::trans_table = new Table("Transact... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 1999 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. Redistri... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkXMLUnstructuredGridWriter.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for d... |
<commit_before>/*
* qiesmap.cpp
*
* Copyright (c) 2016 Tobias Wood.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
*/
#include <getopt.h>
#include <i... |
<commit_before>/*!
* \file painter_draw.hpp
* \brief file painter_draw.hpp
*
* Copyright 2016 by Intel.
*
* Contact: kevin.rogovin@intel.com
*
* This Source Code Form is subject to the
* terms of the Mozilla Public License, v. 2.0.
* If a copy of the MPL was not distributed with
* this file, You can obtain o... |
<commit_before>#include <iostream>
#include <fstream>
#include <string>
#include <algorithm>
#include <chrono>
#include <memory>
#include <cmath>
#include <signal.h>
#include <SmurffCpp/Types.h>
#include <SmurffCpp/DataMatrices/Data.h>
#include <SmurffCpp/Utils/Distribution.h>
#include <SmurffCpp/Model.h>
#include ... |
<commit_before>#include <opencv2/ts/ts.hpp>
#include "clustering.hpp"
class TestClusteringMethods : public cvtest::BaseTest
{
public:
TestClusteringMethods(){}
protected:
void compareIndexTransition(IndexTransition& expected, IndexTransition& actual)
{
ASSERT_TRUE( expected.same_position( actual ) );
ASS... |
<commit_before>#include "message_queue.h"
#include "reliable_connection.h"
#include <halley/support/exception.h>
#include <network_packet.h>
using namespace Halley;
ChannelSettings::ChannelSettings(bool reliable, bool ordered, bool keepLastSent)
: reliable(reliable)
, ordered(ordered)
, keepLastSent(keepLastSent)
... |
<commit_before>#ifndef LIBBITCOIN_NET_SHARED_CONST_BUFFER_H
#define LIBBITCOIN_NET_SHARED_CONST_BUFFER_H
#include <boost/asio.hpp>
#include <bitcoin/types.hpp>
#include <bitcoin/util/serializer.hpp>
namespace libbitcoin {
// A reference-counted non-modifiable buffer class.
class shared_const_buffer
{
public:
//... |
<commit_before>/*
**
** Copyright (C) 2012 Aldebaran Robotics
*/
#include <map>
#include <gtest/gtest.h>
#include <qi/qi.hpp>
#include <qi/application.hpp>
#include <qitype/genericobject.hpp>
#include <qitype/genericobjectbuilder.hpp>
#include <qimessaging/session.hpp>
#include <qimessaging/servicedirectory.hpp>
#in... |
<commit_before>/*
* Copyright © 2012-2013 Red Hat, 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, copy, mo... |
<commit_before>#include <cmath>
#include "Ball.h"
#include "Brick.h"
#include "Log.h"
Ball::Ball(Window* window, const std::string& textureName, int xPos, int yPos, Entity* linkedPaddle) :
Entity(window, textureName, xPos, yPos)
{
this->typeId = TYPEID_BALL;
this->linkedPaddle = linkedPaddle;
lives = ... |
<commit_before>#pragma once
// expressly better bencoder
// Copyright (C) 2013 Igor Kaplounenko
// Licensed under MIT License
#include <cinttypes>
#include <cstdint>
#include <cassert>
#include <cstdio>
#include <array>
#include <tuple>
#include <vector>
#include <cstring>
#include <string>
namespace ebb {
namespace... |
<commit_before>/*******************************************************************************
*
* MIT License
*
* Copyright (c) 2019 Advanced Micro Devices, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software... |
<commit_before>/*
* $Id: XMReceiverMediaPatch.cpp,v 1.36 2008/10/11 17:57:02 hfriederich Exp $
*
* Copyright (c) 2005-2007 XMeeting Project ("http://xmeeting.sf.net").
* All rights reserved.
* Copyright (c) 2005-2007 Hannes Friederich. All rights reserved.
*/
#include "XMReceiverMediaPatch.h"
#include <opal/med... |
<commit_before>// Copyright (C) 2010-2015 Joshua Boyce
// See the file COPYING for copying permission.
#pragma once
#include <windows.h>
#include <setupapi.h>
#include <wincrypt.h>
#include <hadesmem/config.hpp>
#include <hadesmem/detail/assert.hpp>
#include <hadesmem/detail/trace.hpp>
#include <hadesmem... |
<commit_before>
#include <Windows.h>
//#include "Game.h"
// --------------------------------------------------------
// Entry point for a graphical (non-console) Windows application
// --------------------------------------------------------
int WINAPI WinMain(
HINSTANCE hInstance, // The handle to this app's instan... |
<commit_before>//===-- ThreadPlanStepOverBreakpoint.cpp ------------------------*- 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) 2013-2014, Image Engine Design inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// ... |
<commit_before>/**
* @file constrained_ik.cpp
* @brief Basic low-level kinematics functions.
*
* Typically, just wrappers around the equivalent KDL calls.
*
* @author dsolomon
* @date Sep 15, 2013
* @version TODO
* @bug No known bugs
*
* @copyright Copyright (c) 2013, Southwest Research Institute
*
* @lice... |
<commit_before>#line 2 "quanta/core/object/object.hpp"
/**
@copyright MIT license; see @ref index or the accompanying LICENSE file.
@file
@brief Object interface.
@ingroup lib_core_object
*/
#pragma once
#include <quanta/core/config.hpp>
#include <quanta/core/types.hpp>
#include <togo/core/error/assert.hpp>
#include... |
<commit_before>#include <Interfaces/PacketSocket.h>
namespace nshdev
{
struct LinkAddr: public OriginInfo
{
struct sockaddr_ll addr;
socklen_t length;
};
void dump_ll(struct sockaddr_ll& addr, unsigned length)
{
printf("addr: len=%d %u/%u index %d hatype %u pkttype %u halen %u a... |
<commit_before>/*
* fetcher.cpp
*
* Created on: Nov 21, 2012
* Author: partio
*/
#include "fetcher.h"
#include "plugin_factory.h"
#include "logger_factory.h"
#include <fstream>
#include <boost/lexical_cast.hpp>
#include "util.h"
#define HIMAN_AUXILIARY_INCLUDE
#include "grib.h"
#include "neons.h"
#include... |
<commit_before>//
// LutinLangInterperter
// ArgParser.cpp
//
// Created by H4115 on 19/03/2016.
// Copyright (c) 2016 H4115. All rights reserved.
//
#include "ArgParser.h"
#include <boost/program_options.hpp>
#include <boost/filesystem.hpp>
#include <fstream>
using namespace std;
using namespace boost::filesystem... |
<commit_before>#include <node.h>
#include <nan.h>
extern "C" {
#include "libkeccak/KeccakSponge.h"
}
class KeccakWrapper : public Nan::ObjectWrap {
public:
static v8::Local<v8::Function> GetConstructor () {
v8::Local<v8::FunctionTemplate> tpl = Nan::New<v8::FunctionTemplate>(New);
tpl->SetClassName(Nan::... |
<commit_before>#include<iostream<
using namespace std;
int main(){
cout<<"Hello world"<<endl;
}
<commit_msg>Fix: 2021-10-28<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: launcher.cxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: kz $ $Date: 2007-05-09 13:24:12 $
*
* The Contents of this file are made ... |
<commit_before>#include <regex>
#include <map>
#include <cstdint>
#include <cstdio>
#include <bitset>
#include "Assembler.hpp"
#include "Assembly.hpp"
using namespace std;
const int Assembler::RS = 0;
const int Assembler::RT = 1;
const int Assembler::RD = 2;
Assembler::Assembler() {
}
Assembler::Assembler(const v... |
<commit_before>//
// NSolver::apply_laplacian_continuation.cpp
//
// Created by Lei Qiao on 15/11/5.
// A work based on deal.II tutorial step-33.
//
#include <NSolver/solver/NSolver.h>
namespace NSFEMSolver
{
using namespace dealii;
template <int dim>
void
NSolver<dim>::apply_laplacian_continuation()
{
... |
<commit_before>/**
* @copyright Copyright 2016 The J-PET Framework Authors. All rights reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may find a copy of the License in the LICENCE file.
*
* Unless required b... |
<commit_before><commit_msg>rendercontext: Fix border window's painting to work well with rendercontext.<commit_after><|endoftext|> |
<commit_before>#include "taskqueuer.h"
WARNINGS_DISABLE
#include <QCoreApplication>
#include <QEventLoop>
#include <QVariant>
WARNINGS_ENABLE
#include "cmdlinetask.h"
/*! Track info about tasks. */
struct TaskMeta
{
/*! Actual task. */
CmdlineTask *task;
/*! Does this task need to be the only one happeni... |
<commit_before>
#pragma once
#include "quantities/parser.hpp"
#include <array>
#include <string>
#include "quantities/astronomy.hpp"
#include "quantities/bipm.hpp"
#include "quantities/dimensions.hpp"
#include "quantities/named_quantities.hpp"
#include "quantities/si.hpp"
namespace principia {
namespace quantities... |
<commit_before><commit_msg>disable off-screen drawing of statusbar items (for now)<commit_after><|endoftext|> |
<commit_before>
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
#ifndef _WIN32
#include <cstdlib>
#endif
#include "Pickup.h"
#include "ClientHandle.h"
#include "Inventory.h"
#include "World.h"
#include "Simulator/FluidSimulator.h"
#include "Server.h"
#include "Player.h"
... |
<commit_before>/* mbed Microcontroller Library
* Copyright (c) 2006-2015 ARM 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
*
* http://www.apache.org/licenses/LICENSE-2.0
... |
<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 <unistd.h>
#include <getopt.h>
#include <boost/shared_ptr.hpp>
#include <qi/os.hpp>
#include <qi/path.hpp>
#include <qi/lo... |
<commit_before><commit_msg>More minor improvements<commit_after><|endoftext|> |
<commit_before>/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 req... |
<commit_before>/*=============================================================================
Library: CppMicroServices
Copyright (c) The CppMicroServices developers. See the COPYRIGHT
file at the top-level directory of this distribution and at
https://github.com/CppMicroServices/CppMicroServices/COPYRIGHT .... |
<commit_before>//
// This file is part of the Marble Virtual Globe.
//
// 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 2009 Andrew Manson <g.real.ate@gmail.com>
//
#include "KmlTagWriter... |
<commit_before>// Copyright 2022 The IREE Authors
//
// Licensed 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
#include "iree/compiler/Codegen/PassDetail.h"
#include "iree/compiler/Codegen/Pass... |
<commit_before>//
// File: gmxtrajectoryreader.cc
// Author: ruehle
//
// Created on April 5, 2007, 2:42 PM
//
#include <iostream>
#include "topology.h"
#include "gmxtrajectoryreader.h"
using namespace std;
bool GMXTrajectoryReader::Open(const string &file)
{
_filename = file;
return true;
}
void G... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file 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 "printing/page_setup.h"
#include <algorithm>
#include "base/logging.h"
namespace printing {
PageMargins::PageMargins()
... |
<commit_before>#include "query_saver.hpp"
#include "platform/settings.hpp"
#include "coding/base64.hpp"
#include "coding/reader.hpp"
#include "coding/writer.hpp"
#include "coding/write_to_sink.hpp"
#include "base/logging.hpp"
namespace
{
char constexpr kSettingsKey[] = "UserQueries";
using TLength = uint16_t;
TLeng... |
<commit_before>
//
// This source file is part of appleseed.
// Visit http://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2015 Francois Beaune, The appleseedhq Organization
//
// Permission is hereby granted, free of charge, to any... |
<commit_before>#include <iostream>
#include <cstdio>
#include <algorithm>
#include <utility>
#include <string>
#include <vector>
#include <cmath>
#include <set>
#include <stack>
#include <queue>
#include <map>
#include <sstream>
#include <ctime>
#include <numeric>
#include <cstring>
#include <functional>
using namespa... |
<commit_before>#include "stdafx.h"
#include "protein/RMSF.h"
#include <cmath>
#include "vislib/sys/Log.h"
#include "vislib/Array.h"
#include "vislib/math/ShallowVector.h"
#include <fstream>
using namespace megamol;
using namespace megamol::protein;
using namespace megamol::protein_calls;
PROTEIN_API bool megamol::pro... |
<commit_before>#pragma once
//=====================================================================//
/*! @file
@brief イグナイター・プロジェクト設定クラス
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2018 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/RX/blob/... |
<commit_before>/* ___ _ ___ __ _ ___ _
/ _ \_ __ ___ ___ ___ ___ ___ __ _ _ __ ___ ___ _ __ | |_ ___ / _ \_ __ __ _ / _(_) ___ ___ / _ \ /_\
/ /_)/ '__/ _ \ / __/ _ \/ __/ __|/ _` | '_ ` _ \ /... |
<commit_before>/**
* @copyright Copyright 2016 The J-PET Framework Authors. All rights reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may find a copy of the License in the LICENCE file.
*
* Unless required b... |
<commit_before>#include "./JPetScopeReader.h"
#include <cassert>
#include <cstdio>
#include <cstdlib>
#include <string>
#include <utility>
#include <boost/regex.hpp>
#include <boost/filesystem.hpp>
#include <boost/foreach.hpp>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/ini_parser.hpp>
#inc... |
<commit_before>#include "config/Base.hh"
#include "containers/PointCloud.hh"
#include "distances/Euclidean.hh"
#include "filtrations/Data.hh"
#include "geometry/BruteForce.hh"
#include "geometry/RipsSkeleton.hh"
#include "tests/Base.hh"
#include "persistentHomology/Calculation.hh"
#include "persistentHomology/Con... |
<commit_before>#include "exec.h"
#include <stdio.h>
#include <stdlib.h>
#include <memory>
#include <unordered_map>
#include "dep.h"
#include "eval.h"
#include "log.h"
#include "string_piece.h"
#include "value.h"
namespace {
struct Runner {
Runner()
: echo(true), ignore_error(false) {
}
StringPiece outp... |
<commit_before>#include <QDateTime>
#include <QDebug>
#include <QFile>
#include <QJsonDocument>
#include <QJsonObject>
#include <QNetworkReply>
#include <QNetworkRequest>
#include <QString>
#include <QWidget>
#include <QTimer>
#include <QRandomGenerator>
#include "api.hpp"
#include "common/params.h"
#include "common/u... |
<commit_before>#include "../../generators/envelopegenerator.h"
#include "../../wavetable.h"
#include "../../global.h"
TEST( EnvelopeGenerator, Generation )
{
AudioEngineProps::SAMPLE_RATE = 44100;
int length = randomInt( 24, 512 );
float freq = randomFloat() * 440;
WaveTable* table = new WaveTable( l... |
<commit_before>#include <string.h>
#include <fstream>
#include <iostream>
#include <string>
#include <complex>
#include <math.h>
#include <set>
#include <vector>
#include <map>
#include <queue>
#include <stdio.h>
#include <stack>
#include <algorithm>
#include <list>
#include <ctime>
#include <memory.h>
#include <ctim... |
<commit_before>//==================================================================================
// BSD 2-Clause License
//
// Copyright (c) 2014-2022, NJIT, Duality Technologies Inc. and other contributors
//
// All rights reserved.
//
// Author TPOC: contact@openfhe.org
//
// Redistribution and use in source and b... |
<commit_before>/*
Copyright 2010 Google Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable l... |
<commit_before>#ifndef _SNARKFRONT_SHA_256_HPP_
#define _SNARKFRONT_SHA_256_HPP_
#include <array>
#include <cstdint>
#include "Alg.hpp"
#include "Alg_uint.hpp"
#include "AST.hpp"
#include "BitwiseOps.hpp"
#include "Lazy.hpp"
#include "SecureHashStd.hpp"
namespace snarkfront {
////////////////////////////////////////... |
<commit_before>#include "SDBPShardConnection.h"
#include "SDBPClient.h"
#include "Application/Common/ClientResponse.h"
#include "Application/SDBP/SDBPRequestMessage.h"
#include "Application/SDBP/SDBPResponseMessage.h"
#define CONN_BUFSIZE 4096
#define CLIENT_MUTEX_GUARD_DECLARE() MutexGuard mutexGuard(client->m... |
<commit_before>#include "SysControl.h"
#include "ControlsApp.h"
#include "ControlsXPad360.h"
#include "Engine.h"
#include "App.h"
#include "Engine.h"
#include "App.h"
#include "Input.h"
#include "ObjectGui.h"
#include "WidgetLabel.h"
//解决跨平台字符集兼容问题
#ifdef _WIN32
#pragma execution_character_set("utf-8")
#endif
using ... |
<commit_before>// ======================================================================== //
// Copyright 2009-2015 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); ... |
<commit_before>#include <gtest/gtest.h>
#include <stdlib.h>
#include <stdio.h>
#include "Utility/Env.h"
#include "Utility/BookKeeper.h"
#include "Utility/Table.h"
class BookKeeperTest : public ::testing::Test {
protected:
// some test strings
file_path fpath;
std::string test_filename;
table_ptr test_tabl... |
<commit_before>// Do not remove the include below
#include "LCD_Experiments.h"
/*
SainSmart ST7735 LCD/microSD module
www.sainsmart.com
Signal Definition TFT LCD):
GND : Power Ground
VCC : 5V power input (3.3V might work)
CS : Chipselect for LCD, (use pin 10)
SDA ... |
<commit_before>#include "src/input.h"
#include <conio.h>
#include <memory.h>
static uint16_t keys[0x81];
// faster keyhit detector than kbhit()
const uint16_t *kbd_getInput()
{
uint8_t key = '\0';
// get last key
_asm {
in al, 60h
mov key, al
in al, 61h
mov ah, al
... |
<commit_before>#ifndef itkNeighborhoodFunctorImageFilter_cpp
#define itkNeighborhoodFunctorImageFilter_cpp
#include "itkNeighborhoodFunctorImageFilter.h"
#include "itkNeighborhoodAlgorithm.h"
#include <itkVectorImageToImageAdaptor.h>
namespace itk
{
template< typename TInputImage, typename TFeatureImageType , class ... |
<commit_before>#include <chrono>
#include <cmath>
#include <iostream>
#include <vector>
#include "model.hpp"
#include "CartesianGrid.hpp"
#include "Observer.hpp"
#include "Photon.hpp"
#include "Random.hpp"
#include "Directions.hpp"
#include "IDust.hpp"
#include "Sources.hpp"
int run(int argc, char *argv[])
{
auto... |
<commit_before><commit_msg>[discretefunction.default] allow move of ConstDiscreteFunction<commit_after><|endoftext|> |
<commit_before>#include "node.h"
#define WINDOWS_H_A80B5674
typedef unsigned short sqfs_mode_t;
typedef uint32_t sqfs_id_t;
typedef DWORD64 sqfs_off_t;
struct dirent
{
long d_namlen;
ino_t d_ino;
char *d_name;
char *d_altname; /* short name */
short d_altlen;
uint8_t d_type;
};
extern "C" {
#include "enclose_io.... |
<commit_before>#include "Screens.h"
#include <iostream>
Graphics *characterSprites = NULL;
Graphics *selectScreen = NULL;
Character *mainCharacter = NULL;
void SelectionScreen::init()
{
characterSprites = new Graphics(".\\images\\characters.bmp");
selectScreen = new Graphics(".\\images\\selectScreen.png... |
<commit_before>//////////////////////////////////////////////////////////////////////
// //
// VideoDisplay - Cheap and cheeful way of creating a GL X //
// display //
// ... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 1999-2000 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. Red... |
<commit_before>#include <cmd_game_delete_handler.h>
#include <runtasks.h>
#include <QJsonArray>
#include <QCryptographicHash>
CmdGameDeleteHandler::CmdGameDeleteHandler(){
m_vInputs.push_back(CmdInputDef("uuid").uuid_().required().description("Global Identificator of the Game"));
m_vInputs.push_back(CmdInputD... |
<commit_before>#include <cphvb.h>
#include <cphvb_compute.h>
/**
* cphvb_compute_reduce
*
* Implementation of the user-defined funtion "reduce".
* Note that we follow the function signature defined by cphvb_userfunc_impl.
*
*/
cphvb_error cphvb_compute_reduce(cphvb_userfunc *arg, void* ve_arg)
{
cphvb_reduce... |
<commit_before>/*
*
*/
#include <iostream>
#include <iomanip>
using namespace std;
class CSlist
{
private:
unsigned long int list[20];
unsigned int howMany;
void shiftList(unsigned int);
public:
CSlist();
int add(unsigned long int);
int remove(unsigned long int);
void show(void);
unsigned int getH... |
<commit_before><commit_msg>fwk139: #i108330# integrate patch<commit_after><|endoftext|> |
<commit_before>/*
* Copyright © 2013 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, including without limitation
* the rights to use, copy, mod... |
<commit_before>/*
* Copyright 2016 Adam Chyła, adam@chyla.org
* All rights reserved. Distributed under the terms of the MIT License.
*/
#include <boost/log/trivial.hpp>
#include <patlms/dbus/detail/dbus.h>
#include <patlms/dbus/detail/dbus_wrapper.h>
#include <patlms/dbus/detail/dbus_error_guard.h>
#include <patlm... |
<commit_before>/* KPilot
**
** Copyright (C) 2001 by Dan Pilone
** Copyright (C) 2003-2004 Reinhold Kainhofer <reinhold@kainhofer.com>
**
** This file defines the base class of all KPilot conduit plugins configuration
** dialogs. This is necessary so that we have a fixed API to talk to from
** inside KPilot.
**
** The ... |
<commit_before>/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2010 Interactive Visualization and Data Analysis Group.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "... |
<commit_before>#include "Game.h"
#include "InputHandler.h"
#include "MenuState.h"
#include "NoJoystickState.h"
#include "PlayState.h"
#include <iostream>
#include <errno.h>
static Game* s_pInstance;
Game::Game() {
m_pWindow = 0;
m_pRenderer = 0;
fileNames.push_back(std::make_pair("animate", "resources/char9.bmp")... |
<commit_before>#include <sys/stat.h>
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <ctime>
#include "HTTP.h"
using namespace std;
using namespace HTTP;
HTTP::Request::Request(const string& request){
string line;
stringstream sreq(request);
getline(sreq, line);
stringstre... |
<commit_before>#include "cudarray/common.hpp"
#include "cudarray/blas.hpp"
namespace cudarray {
cublasStatus_t cublas_dot(cublasHandle_t handle, int n, const float *x,
int incx, const float *y, int incy, float *result) {
return cublasSdot(handle, n, x, incx, y, incy, result);
}
template<typename T>
T dot(cons... |
<commit_before>#include "solverconfiguration.h"
#include "process.h"
#include "exception.h"
#include <QFileInfo>
#include <QFile>
#include <QJsonArray>
#include <QDir>
namespace {
void parseArgList(const QString& s, QVariantMap& map) {
QStringList ret;
bool hadEscape = false;
bool inSingleQuote = false;
... |
<commit_before>//
// sync_client.cpp
// ~~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2012 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// 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)
//
#include <iostream>
#i... |
<commit_before>#include <iostream>
#include <sstream>
#include "IRPrinter.h"
#include "IROperator.h"
#include "IR.h"
namespace Halide {
using std::ostream;
using std::vector;
using std::string;
using std::ostringstream;
ostream &operator<<(ostream &out, const Type &type) {
switch (type.code) {
case Type::In... |
<commit_before>#include "StdAfx.h"
#include "utypes.h"
#include <assert.h>
#include <stdlib.h>
#ifdef WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <winsock2.h>
#include <ws2tcpip.h>
typedef ULONGLONG (WINAPI GetTickCount64Proc)(void);
static GetTickCount64Proc *pt2GetTickCount64;
s... |
<commit_before>// Copyright (c) 2013-2014 Flowgrammable.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/LICENSE-2.0
//
// Unless required by a... |
<commit_before>// -------------------------------------------------------------------------
// @FileName : NFCLogModule.cpp
// @Author : LvSheng.Huang
// @Date : 2012-12-15
// @Module : NFCLogModule
// @Desc :
// ----------------------------... |
<commit_before>/*****************************************************************************************
* *
* OpenSpace *
* ... |
<commit_before>#include <iostream>
#include <sstream>
#include "IRPrinter.h"
#include "IROperator.h"
#include "IR.h"
namespace Halide {
using std::ostream;
using std::vector;
using std::string;
using std::ostringstream;
ostream &operator<<(ostream &out, const Type &type) {
switch (type.code) {
case Type::In... |
<commit_before>// Copyright 2013 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/chromeos/extensions/device_local_account_management_policy_provider.h"
#include <string>
#include "base/logging.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.