text stringlengths 54 60.6k |
|---|
<commit_before>#include "events.h"
#include "hook.h"
#include "callables.h"
#include "../globals.h"
#include "../ipc/ipc_event.h"
#include "../ipc/ipc_server_man.h"
#include "player.h"
#include <arpa/inet.h>
Hook* Events::hPlayerJoinRequest;
Hook* Events::hPlayerSay;
Hook* Events::hPlayerChangeName;
Hook* Events::hS... |
<commit_before>/*
* Physically Based Rendering
* Copyright (c) 2017-2018 Michał Siejak
*/
#include <cstdio>
#include <assimp/scene.h>
#include <assimp/postprocess.h>
#include <assimp/Importer.hpp>
#include <assimp/DefaultLogger.hpp>
#include <assimp/LogStream.hpp>
#include "mesh.hpp"
namespace {
const unsigned i... |
<commit_before>// This file is distributed under the MIT license.
// See the LICENSE file for details.
#include <cstddef>
#include <visionaray/math/simd/type_traits.h>
#include <visionaray/math/array.h>
#include <visionaray/math/forward.h>
#include <visionaray/math/vector.h>
#include <visionaray/texture/texture_trait... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation ([email protected])
**
** Commercial Usage
**
** Licensees holding valid Qt Commercial... |
<commit_before>
#ifndef __CONFIG_ARGS_H__
#define __CONFIG_ARGS_H__
#define KILOBYTE 1024L
#define MEGABYTE (KILOBYTE*1024L)
#define GIGABYTE (MEGABYTE*1024L)
#define TERABYTE (GIGABYTE*1024L)
/*!
* Version strings
*/
#define SOFTWARE_NAME_STRING "RethinkDB"
#define VERSION_STRING "0.2"
/**
* Basic configuration... |
<commit_before>/*
* Copyright 2016 Andrei Pangin
*
* 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 ... |
<commit_before>/* Copyright (C) 2005-2008 Damien Stehle.
Copyright (C) 2007 David Cade.
Copyright (C) 2011 Xavier Pujol.
This file is part of fplll. fplll 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... |
<commit_before>/******************************************************************************
*
* This file is part of Log4Qt library.
*
* Copyright (C) 2007 - 2020 Log4Qt contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the L... |
<commit_before>/*=============================================================================
Program: Visualization Toolkit
Module: vtkGeoTerrain.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>#pragma once
#include <cassert>
#include <map>
#include <omp.h>
#include "global_config.hpp"
namespace mocc {
/**
* The \ref Timer class provides functionality for measuring the amount of
* runtime spent on various tasks. Each \ref Timer can have a number of
* "children," which comp... |
<commit_before>#include "ClassWrapper.h"
#include "JavaClassUtils.h"
#include "JavaExceptionUtils.h"
#include "JniWeakGlobalRef.h"
#include <string.h>
namespace spotify {
namespace jni {
ClassWrapper::~ClassWrapper() {
// TODO: Delete mappings
}
bool ClassWrapper::isInitialized() const {
return _clazz.get() != N... |
<commit_before>/*
This file is part of KAddressbook.
Copyright (c) 2004 Tobias Koenig <[email protected]>
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 Licen... |
<commit_before>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: $RCSfile: NeighborhoodIterators6.cxx,v $
Language: C++
Date: $Date: 2005/02/08 03:59:00 $
Version: $Revision: 1.18 $
Copyright (c) Insight So... |
<commit_before>// FeatureExtractionCpp.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "HaemoragingImage.hpp"
#include "HistogramNormalize.hpp"
const char* keys =
{
"{1||| must specify reference image name}"
"{2||| must specify image name}"
};
Mat src, src_gray, r... |
<commit_before>/*
* Check the bulldog-tyke status directory.
*
* author: Max Kellermann <[email protected]>
*/
#include "bulldog.hxx"
#include "net/SocketAddress.hxx"
#include <daemon/log.h>
#include <socket/address.h>
#include <glib.h>
#include <assert.h>
#include <string.h>
#include <stdio.h>
#include <errno.h>
#... |
<commit_before>#include <iostream>
#include <vector>
#include <boost/iostreams/device/file_descriptor.hpp>
#include <boost/iostreams/stream.hpp>
#include <boost/program_options.hpp>
#include <mettle/driver/cmd_line.hpp>
#include <mettle/driver/log/child.hpp>
#include <mettle/driver/log/summary.hpp>
#include <mettle/d... |
<commit_before>#include <SFML/Network.hpp>
#include <iostream>
#include <fstream>
#include <cstring>
#define NB_BYTE_PER_PACKET 8192
enum SCommand : signed char {
NotAuthorized = -127,
TooBig,
AlreadyExist,
ServerFailure,
UnknownIssue,
ServerReady = 0,
Upload = 1,
Download,
Ls
};
unsigned int getFileLength... |
<commit_before>/*
Implementation of the Compiler class.
*/
#include <cctype> //character comparison functions
#include <stdexcept>
#include <assert.h>
#include "compiler.hh"
namespace ds_compiler {
const size_t Compiler::NUM_REGISTERS = 8;
const char Compiler::ERR_CHAR = '\0';
const std::unordered_se... |
<commit_before>/* 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/. */
#ifndef HEADER_GUARD_CLASS_CONTENTS_H
#define HEADER_GUARD_CLASS_CONTENTS_H
#include <memory>
#inc... |
<commit_before>/*
* Copyright (c) 2016 Luke San Antonio
* All rights reserved.
*
* This file provides the implementation for the engine's C interface,
* specifically tailored for LuaJIT's FFI facilities.
*
* Scene stuff
*/
#include "redcrane.hpp"
#define CHECK_ID(id) \
REDC_ASSERT_MSG(id != 0, "No mor... |
<commit_before>/*
* Copyright (c) 2016 Luke San Antonio
* All rights reserved.
*
* This file provides the implementation for the engine's C interface,
* specifically tailored for LuaJIT's FFI facilities.
*
* Scene stuff
*/
#include "redcrane.hpp"
#define CHECK_ID(id) \
REDC_ASSERT_MSG(id != 0, "No mor... |
<commit_before>//===-- SIFixSGPRCopies.cpp - Remove potential VGPR => SGPR copies --------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>//
// database.cpp
// Xapiand
//
// Created by Germán M. Bravo on 2/23/15.
// Copyright (c) 2015 Germán M. Bravo. All rights reserved.
//
#include "database.h"
Database::Database(Endpoints &endpoints_, bool writable_)
: endpoints(endpoints_),
writable(writable_)
{
hash = endpoints.hash(writab... |
<commit_before>#include <string.h>
#include <v8.h>
#include <node.h>
#include <node_events.h>
#include "macros.h"
#include "database.h"
#include "statement.h"
using namespace node_sqlite3;
Persistent<FunctionTemplate> Database::constructor_template;
void Database::Init(Handle<Object> target) {
HandleScope scope... |
<commit_before>/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
#ifndef STORED_VALUE_H
#define STORED_VALUE_H 1
#include "locks.hh"
extern "C" {
extern rel_time_t (*ep_current_time)();
}
// Forward declaration for StoredValue
class HashTable;
class StoredValue {
public:
Stored... |
<commit_before>/*
* Copyright 2013 Matthew Harvey
*
* 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 applicabl... |
<commit_before>/*************************************************************************/
/* random_pcg.cpp */
/*************************************************************************/
/* This file is part of: */
/... |
<commit_before>#include "style.h"
#include "scene/scene.h"
#include "scene/sceneLayer.h"
#include "scene/light.h"
#include "tile/tile.h"
#include "gl/vboMesh.h"
#include "view/view.h"
#include "csscolorparser.hpp"
#include "geom.h" // for CLAMP
#include <sstream>
namespace Tangram {
std::unordered_map<Style::StyleC... |
<commit_before>//
// yas_worker.cpp
//
#include "yas_worker.h"
#include <atomic>
#include <thread>
#include "yas_stl_utils.h"
using namespace yas;
struct workable::resource {
std::vector<task_f> tasks;
std::atomic<bool> is_continue{true};
resource(std::vector<task_f> &&tasks) : tasks(std::move(tasks)... |
<commit_before>#include <iostream>
#include <string>
#include <cppdom/cppdom.h>
bool configureInput( const std::string& filename )
{
cppdom::XMLContextPtr ctx( new cppdom::XMLContext );
cppdom::XMLDocument doc( ctx );
// load a xml document from a file
try
{
doc.loadFile( filename );
}
catc... |
<commit_before>/**
* This file is part of the CernVM File System.
*/
#include "session_context.h"
#include <algorithm>
#include "curl/curl.h"
#include "cvmfs_config.h"
#include "gateway_util.h"
#include "json_document.h"
#include "swissknife_lease_curl.h"
#include "util/string.h"
namespace upload {
size_t SendCB... |
<commit_before>/**
* This file is part of the CernVM File System.
*/
#include <string>
#include "cvmfs_config.h"
#include <cassert>
#include "logging.h"
#include "swissknife.h"
#include "swissknife_check.h"
#include "swissknife_diff.h"
#include "swissknife_gc.h"
#include "swissknife_graft.h"
#include "swissknife... |
<commit_before><commit_msg>check TRG_HasMasterPage before TRG_GetMasterPage<commit_after><|endoftext|> |
<commit_before><commit_msg>sd: fix gcc-4.7 build<commit_after><|endoftext|> |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: fuconarc.cxx,v $
*
* $Revision: 1.14 $
*
* last change: $Author: ihi $ $Date: 2006-11-14 14:27:20 $
*
* The Contents of this file are mad... |
<commit_before>#include <TimerOne.h> //Needed to make this file compile because hibike compiler bugs.
#include "ui.h"
#include "motor.h"
#include "pid.h"
#include "encoder.h"
//Code here that helps deal with the human-readable UI.
//Will contain code that will do the following:
//Let the user set State: Disabled, Ena... |
<commit_before>/*************************************************************************/
/* audio_stream.cpp */
/*************************************************************************/
/* This file is part of: */
/... |
<commit_before>/**
* @file radon.cpp
*
* @date Oct 28, 2012
* @author tack
*/
#include "radon.h"
#include "logger_factory.h"
#include "plugin_factory.h"
#include <thread>
#include <sstream>
#include "util.h"
#include "unistd.h" // getuid())
#include "regular_grid.h"
using namespace std;
using namespace himan::pl... |
<commit_before>/*
* This file is part of KDevelop
*
* Copyright 2010 Niko Sams <[email protected]>
* Copyright 2010 Alexander Dymo <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Library General Public License as
* published by the Free Sof... |
<commit_before>// This file is part of DVS-ROS - the RPG DVS ROS Package
//
// DVS-ROS 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 3 of the License, or
// (at your option) any later versio... |
<commit_before>#include "tangram.h"
#include "platform.h"
#include "gl.h"
// Input handling
// ==============
const double double_tap_time = 0.5; // seconds
const double scroll_multiplier = 0.05; // scaling for zoom
bool was_panning = false;
double last_mouse_up = -double_tap_time; // First click should never trigge... |
<commit_before>#pragma once
#include <iostream>
#include <iomanip>
#include <string.h>
// void print(const int it, const double energy);
template<typename T>
std::string to_string(const T& t)
{
std::ostringstream strs;
strs << std::scientific << std::setprecision(3) << t;
return strs.str();
}
template<t... |
<commit_before>#include "duktape.h"
#include "dukbind.h"
#include "dukbindconf.h"
#include "dukbind_proxy_function.h"
#include "dukbind_private.h"
#include "utils/dukbind_debug.h"
namespace dukbind
{
struct Box
{
void * ObjectPointer;
size_t ClassIndex;
finalizer_t Finalizer;
};
... |
<commit_before>/******************************************************************************
* This file is part of the Mula project
* Copyright (c) 2011 Laszlo Papp <[email protected]>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* L... |
<commit_before>// Copyright (c) 2012-2015 Dano Pernis
// See LICENSE for details
#include <gtk/gtk.h>
#include <glib.h>
#include <fstream>
#include <iostream>
#include <stdexcept>
#include <cassert>
#include <vector>
#include "CPU.h"
struct ROM : public hcc::IROM {
ROM() : data(0x8000, 0) { }
bool load(const... |
<commit_before>/*
* Copyright (C) 2015-2018 deipi.com LLC and contributors. 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 ... |
<commit_before>#include <iostream>
#include <termios.h>
// For removing point cloud outside certain distance
// based on http://pointclouds.org/documentation/tutorials/passthrough.php tutorial
#include <pcl/point_types.h>
#include <pcl/filters/passthrough.h>
#include <pcl/io/pcd_io.h>
#include <pcl/filters/extract_ind... |
<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>/** @file
@brief Implementation
@date 2014
@author
Ryan Pavlik
<[email protected]>
<http://sensics.com>
*/
// Copyright 2014 Sensics, Inc.
//
// All rights reserved.
//
// (Final version intended to be licensed under
// the Apache License, Version 2.0)
// Internal Includes
#inc... |
<commit_before>/*
* Copyright (C) 2019 The Android Open Source Project
*
* 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>/*
ESP8266 Simple Service Discovery
Copyright (c) 2015 Hristo Gochkov
Original (Arduino) version by Filippo Sallemi, July 23, 2014.
Can be found at: https://github.com/nomadnt/uSSDP
License (MIT license):
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software ... |
<commit_before>/*
This file is part of solidity.
solidity 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 3 of the License, or
(at your option) any later version.
solidity is distributed in ... |
<commit_before>/*
Copyright (C) 2014 P.L. Lucas <[email protected]>
Copyright (C) 2014 Hong Jen Yee (PCMan) <[email protected]>
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; ... |
<commit_before>// Copyright 2020 Google 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 required by applicable law or agr... |
<commit_before>// This file is part of the hdf5_handler implementing for the CF-compliant
// Copyright (c) 2011-2016 The HDF Group, Inc. and OPeNDAP, Inc.
//
// This 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
// Softwar... |
<commit_before>/*
*
* Copyright 2015, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, thi... |
<commit_before>#include "stochastic.h"
#include "accumulator.h"
#include "sampler.h"
#include "file/logger.h"
#include "util/log_search.hpp"
#include "util/random.hpp"
#include "util/thread_pool.h"
#include "util/timer.h"
#include "optimize.h"
namespace ncv
{
namespace detail
{
static o... |
<commit_before>// SimpleGraph.cpp : implementation file
//
#include "stdafx.h"
#include "HexEditView.h"
#include "SimpleGraph.h"
#include "misc.h"
// CSimpleGraph
IMPLEMENT_DYNAMIC(CSimpleGraph, CWnd)
CSimpleGraph::CSimpleGraph()
{
m_pdc = NULL;
m_bar = -1;
}
void CSimpleGraph::SetData(FILE_ADD... |
<commit_before>/*
*
* Copyright 2015, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* * Redistributions of source code must retain the above copyright
* notice, thi... |
<commit_before>#include "lineedit.h"
#include <qml.h>
LineEditExtension::LineEditExtension(QObject *object)
: QObject(object), m_lineedit(static_cast<QLineEdit *>(object))
{
}
int LineEditExtension::leftMargin() const
{
int l, r, t, b;
m_lineedit->getTextMargins(&l, &t, &r, &b);
return l;
}
int LineEditE... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: slide.hxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: obo $ $Date: 2007-07-17 15:15:07 $
*
* The Contents of this file are made av... |
<commit_before>/*
* Copyright (c) 2007-2008 Digital Bazaar, Inc. All rights reserved.
*/
#include "db/rt/DynamicObject.h"
#include "db/rt/DynamicObjectIterator.h"
#include "db/rt/DynamicObjectIterators.h"
#include <cstdlib>
using namespace db::rt;
DynamicObject::DynamicObject() :
Collectable<DynamicObjectImpl... |
<commit_before>#include "LargeRAWFile.h"
using namespace std;
#define BLOCK_COPY_SIZE (UINT64(128*1024*1024))
LargeRAWFile::LargeRAWFile(const std::string& strFilename, UINT64 iHeaderSize) :
m_strFilename(strFilename),
m_bIsOpen(false),
m_bWritable(false),
m_iHeaderSize(iHeaderSize)
{
}
LargeRAWFile::LargeR... |
<commit_before>#ifndef MYPARSER_AST_HPP
#define MYPARSER_AST_HPP
#include "myparser_str.hpp"
#include "myparser_pass.hpp"
namespace myparser {
using Input = std::string::const_iterator;
using BuiltinRoot = MP_STR("root", 4);
using BuiltinSpace = MP_STR("space", 5);
using BuiltinKeyword = MP_STR("keyword", 7);
using... |
<commit_before>/*
* This file is open source software, licensed to you under the terms
* of the Apache License, Version 2.0 (the "License"). See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. You may not use this file except in compliance with the License.... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkWin32TextMapper.cxx
Language: C++
Date: $Date$
Version: $Revision$
Thanks: Thanks to Matt Turek who developed this class.
Copyright (c) 1993-1995 Ken Martin,... |
<commit_before>// -*-c++-*-
/*
* demonstrates usage of osg::TextureRectangle.
*
* Actually there isn't much difference to the rest of the osg::Texture*
* bunch only this:
* - texture coordinates for texture rectangles must be in image
* coordinates instead of normalized coordinates (0-1). So for a 500x250
* ... |
<commit_before>/*************************************************************************
*
* $RCSfile: gi_parse.cxx,v $
*
* $Revision: 1.1 $
*
* last change: $Author: np $ $Date: 2001-06-11 16:04:51 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>/*
The MIT License (MIT)
Copyright (c) 2016 Gagan Kumar(scopeInfinity)
Complete License at https://raw.githubusercontent.com/scopeInfinity/NaturalSort/master/LICENSE.md
*/
/**********************************************************************
Calling Methods :
//For Natural Sorting
void SI::natur... |
<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>#include "entity_system.h"
#include "cmapclient.h"
#include "enumerate.h"
#include "itemdb.h"
#include <entt.hpp>
#include "components/basic_info.h"
#include "components/client.h"
#include "components/computed_values.h"
#include "components/faction.h"
#include "components/character_graphics.h"
#include "... |
<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>#include "script_loader.h"
using namespace LuaScript;
ScriptLoader::File::File(std::string const& path) : path_(path) {
//TODO: find filename
//prob split on '/' and take latest, then split on '.' and take everything but the last one if there's more than one
}
ScriptLoader::ScriptLoader(std::s... |
<commit_before>//
// mutex.hpp
// fibio
//
// Created by Chen Xu on 14-3-4.
// Copyright (c) 2014 0d0a.com. All rights reserved.
//
#ifndef fibio_mutex_hpp
#define fibio_mutex_hpp
#include <memory>
#include <chrono>
#include <mutex>
#include <fibio/fibers/detail/forward.hpp>
namespace fibio { namespace fibers {
... |
<commit_before>/** \brief Utility for augmenting MARC records with links to a local full-text database.
* \author Dr. Johannes Ruscheinski ([email protected])
*
* \copyright 2015-2017 Universitätsbibliothek Tübingen. All rights reserved.
*
* This program is free software: you can redistribu... |
<commit_before>/** \file translation_db_tool.cc
* \brief A tool for reading/editing of the "translations" SQL table.
* \author Dr. Johannes Ruscheinski ([email protected])
*
* \copyright 2016 Universitätsbiblothek Tübingen. All rights reserved.
*
* This program is free software: you can r... |
<commit_before>/** \brief Utility for augmenting MARC records with links to a local full-text database.
* \author Dr. Johannes Ruscheinski ([email protected])
*
* \copyright 2015 Universitätsbiblothek Tübingen. All rights reserved.
*
* This program is free software: you can redistribute it ... |
<commit_before>//============================================================================
// MCKL/include/mckl/core/particle.hpp
//----------------------------------------------------------------------------
// MCKL: Monte Carlo Kernel Library
//----------------------------------------------------------------------... |
<commit_before>//
// Copyright (c) 2008 Advanced Micro Devices, Inc. All rights reserved.
//
#include "device/gpu/gpudefs.hpp"
#include "device/gpu/gpuprogram.hpp"
#include "device/gpu/gpukernel.hpp"
#include "acl.h"
#include "SCShadersSi.h"
#include "si_ci_vi_merged_offset.h"
#include "si_ci_vi_merged_registers.h"
#i... |
<commit_before>#pragma once
/**
@file
@brief array iterator
@author MITSUNARI Shigeo(@herumi)
*/
#include <assert.h>
namespace mcl { namespace fp {
/*
get w-bit size from x[0, bitSize)
@param x [in] data
@param bitSize [in] data size
@param w [in] split size < UnitBitSize
*/
template<class T>
class ArrayIterat... |
<commit_before>/************************************ ABOUT ***********************************\
| This file is used to compile the db_schema.json file into any nessasary |
| formats including |
| SQL Initilizer Query (For both MySQL and SQLite3) ... |
<commit_before>//----------------------------------------------------------------------------
/// \file basic_persist_array.hpp
//----------------------------------------------------------------------------
/// \brief Implementation of persistent array storage class.
//-------------------------------------------------... |
<commit_before>#include <BALL/VIEW/WIDGETS/SDWidget.h>
#include <BALL/VIEW/KERNEL/iconLoader.h>
#include <BALL/KERNEL/bond.h>
#include <BALL/KERNEL/PTE.h>
#include <BALL/STRUCTURE/geometricProperties.h>
#include <BALL/STRUCTURE/sdGenerator.h>
#include <QtGui/QPainter>
#include <QtGui/QStyle>
#include <QtGui/QStyleOp... |
<commit_before>#ifndef V_SMC_CORE_PARTICLE_HPP
#define V_SMC_CORE_PARTICLE_HPP
#include <vector>
#include <cmath>
#include <cstddef>
#include <Eigen/Dense>
#include <Random123/aes.h>
#include <Random123/ars.h>
#include <Random123/philox.h>
#include <Random123/threefry.h>
#include <Random123/conventional/Engine.hpp>
#i... |
<commit_before>#include "GUM_Sprite2.h"
#include "GUM_DTex.h"
#include "RenderTargetMgr.h"
#include "RenderTarget.h"
#include <sprite2/S2_RenderTargetMgr.h>
#include <sprite2/S2_RenderTarget.h>
#include <sprite2/S2_Sprite.h>
#include <sprite2/S2_Symbol.h>
#include <sprite2/RenderParams.h>
#include <sprite2/DrawNode.h>... |
<commit_before>
#include <GUIDOEngine/GUIDOEngine.h>
#include <GUIDOEngine/GDeviceOSX.h>
#include <GUIDOEngine/GFontOSX.h>
#include <GUIDOEngine/GMemoryDeviceOSX.h>
#include <GUIDOEngine/GPrinterDeviceOSX.h>
#include <GUIDOEngine/GSystemOSX.h>
#include <GUIDOEngine/SVGSystem.h>
#include <guido-c.h>
// const char *byt... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkUnstructuredGrid.hh
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 1993-1995 Ken Martin, Will Schroeder, Bill Lorensen.
This software is copyright... |
<commit_before>#include <chrono>
#include <random>
#include <array>
#include <opencv2/core/core.hpp>
#include <opencv2/ocl/ocl.hpp>
#include "opencl.hpp"
#include "utility.hpp"
#include "hog.pencil.h"
#include "HogDescriptor.h"
#include "hog.clh"
void time_hog( const std::vector<carp::record_t>& pool, const std::vec... |
<commit_before>#include "RenderTarget.h"
#include <unirender/UR_RenderContext.h>
#include <shaderlab/ShaderMgr.h>
#include <shaderlab/Sprite2Shader.h>
#include <shaderlab/FilterShader.h>
#include <shaderlab/ShaderMgr.h>
#include <sprite2/RenderScissor.h>
#include <sprite2/RenderCtxStack.h>
namespace gum
{
RenderTarg... |
<commit_before>#include <memory>
#include <svgren/render.hpp>
// Some bad stuff defines OVERFLOW macro and there is an enum value with same name in svgdom/dom.h.
#ifdef OVERFLOW
# undef OVERFLOW
#endif
#include <svgdom/dom.hpp>
#include "image.hpp"
#include "../context.hpp"
#include "../util/util.hpp"
using name... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: tabvwsh9.cxx,v $
*
* $Revision: 1.11 $
*
* last change: $Author: vg $ $Date: 2007-02-27 13:58:55 $
*
* The Contents of this file are made... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a ... |
<commit_before>/*
* TcpConnection.cpp
*
* Created on: 13.05.2017
* Author: felix
*/
#include <unistd.h>
#include <asn-one-objects/GenericAsnOneObject.h>
#include <common/Log.h>
#include <network/TcpConnection.h>
namespace Flix {
TcpConnection::TcpConnection(int connectionSocket, const std::string& peer, i... |
<commit_before>/*
* Copyright (c) 2017, Matias Fontanini
* 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>/* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2005 Robert Osfield
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LICENSE file
*... |
<commit_before>#include "output_ts_base.h"
namespace Mist {
TSOutput::TSOutput(Socket::Connection & conn) : TS_BASECLASS(conn){
packCounter=0;
ts_from = 0;
setBlocking(true);
sendRepeatingHeaders = 0;
appleCompat=false;
lastHeaderTime = 0;
}
void TSOutput::fillPacket(char const * data, s... |
<commit_before>#include "transactionfilterproxy.h"
#include "transactiontablemodel.h"
#include <QDateTime>
#include <cstdlib>
// Earliest date that can be represented (far in the past)
const QDateTime TransactionFilterProxy::MIN_DATE = QDateTime::fromTime_t(0);
// Last date that can be represented (far in the future... |
<commit_before>
/*
* Copyright 2008 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkFontHost.h"
SkTypeface* SkFontHost::CreateTypeface(const SkTypeface* familyFace,
const c... |
<commit_before>#ifndef RENHOOK_HOOKS_INLINE_HOOK_H
#define RENHOOK_HOOKS_INLINE_HOOK_H
#include <string>
#include <Windows.h>
#include <renhook/exception.hpp>
#include <renhook/executable.hpp>
#include <renhook/hook_writer.hpp>
#include <renhook/pattern.hpp>
#include <renhook/suspend_threads.hpp>
#include <renhook/zy... |
<commit_before>#include "ros2_simple_logger/Logger.h"
simpleLogger* simpleLogger::instance = NULL;
std::mutex simpleLogger::globalLogger_mutex;
void simpleLogger::initLogger(rclcpp::node::Node::SharedPtr _node)
{
std::lock_guard<std::mutex> lock(globalLogger_mutex);
this->publisher = _node->create_publisher<... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.