text stringlengths 54 60.6k |
|---|
<commit_before>/*
* PuckManager.cpp
*
* Created on: 09.06.2017
* Author: aca592
*/
#include "PuckManager.h"
#include "logger.h"
#include "logScope.h"
PuckManager::PuckManager(int chid)
: puckList()
, nextPuckID(0)
, chid(chid)
{}
PuckManager::~PuckManager() {
reset();
}
void PuckManager::reset() {
... |
<commit_before>// Copyright (c) 2013-2019 mogemimi. Distributed under the MIT license.
#include "AudioEngineXAudio2.hpp"
#include "Pomdog/Math/MathHelper.hpp"
#include "Pomdog/Utility/Assert.hpp"
#include "Pomdog/Utility/Exception.hpp"
#if (_WIN32_WINNT >= 0x0602 /*_WIN32_WINNT_WIN8*/) && !defined(__cplusplus_winrt)
... |
<commit_before>#include <cmath>
#include <glm/gtx/string_cast.hpp>
#include <SDL2/SDL.h>
#include <zombye/core/game.hpp>
#include <zombye/ecs/entity_manager.hpp>
#include <zombye/gameplay/states/play_state.hpp>
#include <zombye/gameplay/command.hpp>
#include <zombye/input/input_manager.hpp>
#include <zombye/input/inp... |
<commit_before>//: ----------------------------------------------------------------------------
//: Copyright (C) 2016 Verizon. All Rights Reserved.
//: All Rights Reserved
//:
//: \file: cgi_h.cc
//: \details: TODO
//: \author: Reed P. Morrison
//: \date: 01/02/2016
//:
//: Licensed under the Apache License,... |
<commit_before>#include <gmp.h>
typedef unsigned int uint;
void gep(mpf_t n)
{
const uint precision = 6;
gmp_printf ("%.*Ff\n", precision, n);
}
void gep(mpz_t n)
{
gmp_printf ("%Zd\n", n);
}
// find x^2 = q mod n
// return
// -1 q is quadratic non-residue mod n
// 1 q is quadratic residue mod n
// 0 q is c... |
<commit_before>#include <iostream>
#include <fstream>
#include <ios>
#include <string.h>
#include <stdio.h>
#include <errno.h>
#include <stdlib.h>
#ifndef WINDOWS
#include <linux/limits.h>
#else
#include <limits.h>
#endif
/* include */
#include "lzma_wrapper.h"
#include "log.h"
/* extern */
#include "C/LzmaLib.h"
#in... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtCore module of the Qt Toolkit.
**
** $QT_BEGIN_L... |
<commit_before>#include <cppunit/config.h>
#if CPPUNIT_USE_TYPEINFO
#include <string>
#include <cppunit/extensions/TypeInfoHelper.h>
namespace CppUnit {
std::string
TypeInfoHelper::getClassName( const std::type_info &info )
{
static std::string classPrefix( "class " );
std::string name( info.name() );
... |
<commit_before>/*
A hacky replacement for backtrace_symbols in glibc
backtrace_symbols in glibc looks up symbols using dladdr which is limited in
the symbols that it sees. libbacktracesymbols opens the executable and shared
libraries using libbfd and will look up backtrace information using the symbol
table ... |
<commit_before>//
// Copyright (c) 2012 Juan Palacios juan.palacios.puyana@gmail.com
// This file is part of minimathlibs.
// Subject to the BSD 2-Clause License
// - see < http://opensource.org/licenses/BSD-2-Clause>
//
// Test fixtures
#include "TestCoordSystem3D.h"
#include "TestPoint3D.h"
#include "TestRotation3D... |
<commit_before>#include <set>
#include <thread>
#include "halley/tools/assets/check_assets_task.h"
#include "halley/tools/assets/import_assets_task.h"
#include "halley/tools/project/project.h"
#include "halley/tools/assets/import_assets_database.h"
#include "halley/tools/assets/delete_assets_task.h"
#include <boost/fil... |
<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. Redistr... |
<commit_before>/** @file
@brief Implementation
@date 2015
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2015 Sensics, 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 ... |
<commit_before>// Copyright 2012 the V8 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.
#include "src/v8.h"
#include "src/version.h"
// These macros define the version number for the current version.
// NOTE these macros ar... |
<commit_before>// Copyright 2012 the V8 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.
#include "src/v8.h"
#include "src/version.h"
// These macros define the version number for the current version.
// NOTE these macros ar... |
<commit_before>/*ckwg +5
* Copyright 2013 by Kitware, Inc. All Rights Reserved. Please refer to
* KITWARE_LICENSE.TXT for licensing information, or contact General Counsel,
* Kitware, Inc., 28 Corporate Drive, Clifton Park, NY 12065.
*/
#include "process_cluster_exception.h"
#include <sstream>
/**
* \file proce... |
<commit_before>#include <iostream>
#include <cstring>
#include "Memory.hpp"
#include "registerAddr.hpp"
Memory::Memory(void){}
Memory::~Memory(void) {}
void Memory::reset(void)
{
memset(this->_m_wram, 0, 32768);
memset(this->_m_vram, 0, 16384);
memset(this->_m_oam, 0, 160);
memset(this->_m_io, 0, 127);
memset... |
<commit_before>/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2014 Max-Planck-Institute for Intelligent Systems,
* University of Southern California
* Jan Issac (jan.issac@gmail.com)
* Manuel Wuthrich (manuel.wuthrich@gmail.com)
*
*
*
* Redistribution and use in so... |
<commit_before>AliJetReader *CreateJetReader(Char_t *jr); // Common config
AliJetFinder *CreateJetFinder(Char_t *jf,Float_t radius = -1);
AliAnalysisTaskJets *AddTaskJets(Char_t *jr, Char_t *jf,Float_t radius = -1); // for the new AF
AliAnalysisTaskJets *AddTaskJets(Char_t *jr, Char_t *jf, Float_t radius)
{
... |
<commit_before>#include "libgame.h"
#include "sprite.h"
#define MAXLEN 64
#define LEFT BUTTON_NE
#define RIGHT BUTTON_SE
#define GAMEOVER_X 16
#define GAMEOVER_Y 24
#define FIELD_WIDTH 32
#define FIELD_HEIGHT 32
const uint8_t gameOverLines[] DATA = {
B00111110, B00111000, B11000110, B11111110,
B01100000, B... |
<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. Redistr... |
<commit_before>#ifndef STAN_MATH_PRIM_FUN_QUANTILE_HPP
#define STAN_MATH_PRIM_FUN_QUANTILE_HPP
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/err.hpp>
#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/prim/fun/as_array_or_scalar.hpp>
#include <algorithm>
#include <vector>
namespace stan {
names... |
<commit_before>#include <QApplication>
#if _WIN32
#include <QCoreApplication>
#include <QSettings>
#endif
#include <patcher/Patcher.hpp>
int main(int argc,char* argv[])
{
QApplication App(argc, argv);
#if _WIN32
QSettings settings("HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", ... |
<commit_before>#include "catch.hpp"
// mapnik vector tile
#include "vector_tile_geometry_feature.hpp"
#include "vector_tile_layer.hpp"
// mapnik
#include <mapnik/geometry.hpp>
#include <mapnik/feature.hpp>
#include <mapnik/feature_factory.hpp>
#include <mapnik/util/variant.hpp>
// protozero
#include <protozero/pbf_w... |
<commit_before>// Copyright 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 file.
#include "ports/mojo_system/message_pipe_dispatcher.h"
namespace mojo {
namespace edk {
MessagePipeDispatcher::MessagePipeDispatcher(Nod... |
<commit_before>#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <sstream>
#include <functional>
#include <memory>
#include <string>
#include <vector>
#include <map>
#include "http_common.h"
#include "http_constants.h"
#include "http_parser.h"
#include "http_request.h"
#include "http... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: ComponentDefinition.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: hr $ $Date: 2005-09-23 12:04:05 $
*
* The Contents of this fil... |
<commit_before>#ifndef PATHFINDING_HPP_DHFQEVLB
#define PATHFINDING_HPP_DHFQEVLB
#include <limits>
#include <vector>
#include <algorithm>
namespace pf{
//Adaptors don't need to inherit from this Adaptor, but they need to define
//everything below:
// node_t, getAdjacentNodes(...), and heuristicDistanceBetweenAdjace... |
<commit_before>/******************************************************************
This is the primary class for the Patriot IoT library.
It aggregates all the other classes, and provides
a common API for adding and configuring devices.
This class coordinates realtime events.
It subscribes to Particle.io notification... |
<commit_before>#include "./window.h"
#include <QOpenGLContext>
#include <QOpenGLDebugLogger>
#include <QDebug>
#include <QCoreApplication>
#include <QKeyEvent>
#include <QStateMachine>
#include <QAbstractState>
#include <QAbstractTransition>
#include <QLoggingCategory>
#include <iostream>
#include "./graphics/gl.h"
#in... |
<commit_before>//===-- NinjaBuildCommand.cpp ---------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http... |
<commit_before>#include "word_db.hh"
#include "utils.hh"
#include "line_modification.hh"
#include "utf8_iterator.hh"
#include "unit_tests.hh"
namespace Kakoune
{
using WordList = Vector<StringView>;
static WordList get_words(StringView content, StringView extra_word_chars)
{
WordList res;
using Utf8It = utf... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: dp_descriptioninfoset.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: ihi $ $Date: 2007-11-23 10:15:41 $
*
* The Contents of this ... |
<commit_before>#include "ListHookedDevice.hpp"
#include "NumHeldDownKeys.hpp"
namespace org_pqrs_KeyRemap4MacBook {
bool
ListHookedDevice::initialize(void)
{
lock = IOLockAlloc();
if (! lock) {
IOLog("[KeyRemap4MacBook WARNING] ListHookedDevice::initialize IOLockAlloc failed.\n");
return fals... |
<commit_before>//===- DIATable.cpp - DIA implementation of IPDBTable -----------*- 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 Digia Plc and/or its subsidiary(-ies).
** Contact: http://www.qt-project.org/legal
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: autocorrmigration.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: obo $ $Date: 2006-09-17 09:46:12 $
*
* The Contents of this file... |
<commit_before>#include <vector>
#include "llvm/Module.h"
#include "llvm/Pass.h"
#include "llvm/Support/CallSite.h"
#include "llvm/Support/raw_ostream.h"
#include "rcs/IDAssigner.h"
#include "rcs/IdentifyBackEdges.h"
#include "loom/IdentifyBlockingCS.h"
using namespace std;
using namespace llvm;
using namespace rcs... |
<commit_before>/*
*
* Copyright (c) 2021 Project CHIP 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/l... |
<commit_before>#include <QtGui>
#include <QTimer>
#include "utils/utils.h"
#include "utils/file-utils.h"
#include "seaf-dirent.h"
#include "utils/utils-mac.h"
#include "file-browser-dialog.h"
#include "data-mgr.h"
#include "transfer-mgr.h"
#include "tasks.h"
#include "file-table.h"
namespace {
enum {
FILE_COLU... |
<commit_before>//--------------------------------------------------------------------*- C++ -*-
// CLING - the C++ LLVM-based InterpreterG :)
// author: Axel Naumann <axel@cern.ch>
//
// This file is dual-licensed: you can choose to license it under the University
// of Illinois Open Source License or the GNU Lesser G... |
<commit_before>#include "buttondigitalbinding.h"
/**********************************************************************************************************************/
/* Public API */
/***************************... |
<commit_before>//Copyright (c) 2021 Ultimaker B.V.
//CuraEngine is released under the terms of the AGPLv3 or higher.
#include "multiVolumes.h"
#include <algorithm>
#include "Application.h"
#include "Slice.h"
#include "slicer.h"
#include "settings/EnumSettings.h"
namespace cura
{
void carveMultipleVolumes(std::ve... |
<commit_before>/*
* SessionFind.cpp
*
* Copyright (C) 2009-12 by RStudio, Inc.
*
* This program is licensed to you under the terms of version 3 of the
* GNU Affero General Public License. This program is distributed WITHOUT
* ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,
* MERCHANTABILIT... |
<commit_before>/*
* SessionShiny.cpp
*
* Copyright (C) 2009-15 by RStudio, Inc.
*
* Unless you have received this program directly from RStudio pursuant
* to the terms of a commercial license agreement with RStudio, then
* this program is licensed to you under the terms of version 3 of the
* GNU Affero General ... |
<commit_before>/**
* @file music_player.cpp
* @brief Purpose: Contains the methods for music_player class.
*
* MIT License
* Copyright (c) 2017 MindScape
*
* https://github.com/TecProg2017-2/mindscape/blob/master/LICENSE.md
*/
#include "../include/music_player.hpp"
#include "../include/little_girl.hpp"
#includ... |
<commit_before>//=- AnalysisBasedWarnings.cpp - Sema warnings based on libAnalysis -*- C++ -*-=//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===--------------------------------------... |
<commit_before>#include "gbgpu.h"
gbgpu::gbgpu(z80mmu *mmu) {
this->mmu = mmu;
reset();
}
void gbgpu::reset() {
mode = 2;
modeclock = 0;
line = 0;
for (int i = 0; i < 4; ++i) {
pallete_bg[i] = pallete_obj0[i] = pallete_obj1[i] = 255;
}
for (int y = 0; y < _GBGPU_H; ++y) {
for (int x = 0... |
<commit_before>/** \copyright
* Copyright (c) 2013, 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 no... |
<commit_before>/*
* Copyright (C) 2014 O01eg <o01eg@yandex.ru>
*
* This file is part of Genetic Function Programming.
*
* 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 restric... |
<commit_before>#include "StdAfx.h"
#include "BitPumpPlain.h"
/*
RawSpeed - RAW file decoder.
Copyright (C) 2009 Klaus Post
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 Fou... |
<commit_before>//===-- X86FixupBWInsts.cpp - Fixup Byte or Word instructions -----------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===------------------------------------------... |
<commit_before>#include <boost/python.hpp>
#include "Argument.h"
#include "BoundaryConditions.h"
#include "Buffer.h"
#include "Error.h"
#include "Expr.h"
#include "Func.h"
#include "Function.h"
#include "Image.h"
#include "InlineReductions.h"
#include "IROperator.h"
#include "Lambda.h"
#include "Param.h"
#include "RDo... |
<commit_before>#include "entity_list.h"
#include "ui_entity_list.h"
#include "core/crc32.h"
#include "editor/world_editor.h"
#include "engine/engine.h"
#include "universe/entity.h"
static const char* component_map[] =
{
"Animable", "animable",
"Camera", "camera",
"Directional light", "light",
"Mesh", "renderable"... |
<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 <stdio.h>
#include "base/at_exit.h"
#include "base/command_line.h"
#include "base/file_path.h"
#include "base/logging.h"
#inc... |
<commit_before>/*************************************************************************
*
* $RCSfile: MasterScriptProvider.hxx,v $
*
* $Revision: 1.9 $
*
* last change: $Author: hr $ $Date: 2004-07-23 14:10:31 $
*
* The Contents of this file are made available subject to the terms of
* either of the fol... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2009-11 Nokia Corporation and/or its subsidiary(-ies).
** Contact: Pekka Marjola <pekka.marjola@nokia.com>
**
** This file is part of the Quill Image Filters package.
**
** Commercial Usage
** Licensees hold... |
<commit_before>// -*- mode: c++; coding: utf-8 -*-
/*! @file coord.hpp
@brief Coordinate system
*/
#pragma once
#ifndef COORD_HPP_
#define COORD_HPP_
#include <cassert>
#include <cmath>
#include <vector>
#include <valarray>
#include <algorithm>
#include <numeric>
#include <random>
/////////1/////////2/////////3//... |
<commit_before>#include "qca.hpp"
#include "utilities.hpp"
#include <map>
/*
* TODO
* ----
*
* * Dead Cell Systems
* * functions to measure / output energy spectra (over various parameters)
* * function to output polarisation (over Vext or for dead cell's P)
* * polarisation-polarisation response function
* *... |
<commit_before>// Arkadij Doronin 24.05.2013
// IRC-Bot
#include <cstdlib>
#include <iostream>
#include <cstdio>
#include <cstring>
#include <string>
#ifdef WIN32
#include <winsock2.h>
#else
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/i... |
<commit_before>/**
** \file object/system-class.cc
** \brief Creation of the URBI object system.
*/
#include <ltdl.h>
//#define ENABLE_DEBUG_TRACES
#include <libport/compiler.hh>
#include <libport/cstdlib>
#include <libport/program-name.hh>
#include <memory>
#include <sstream>
#include <kernel/uconnection.hh>
#i... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* 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>#include "Exceptions.hpp"
using namespace hum::exception;
BehaviorNotFound::BehaviorNotFound(const char* type_name)
{
p_type_name = type_name;
}
const char* BehaviorNotFound::what() const noexcept
{
return p_type_name;
}
const char* PluginNotFound::what() const noexcept
{
return "Plugin no... |
<commit_before>#include "ros/ros.h"
#include "std_msgs/String.h"
#include <sstream>
#include "math.h"
#include <vector>
#include "../StaticPoiConstants.h"
#include "../EventTriggerUtility.h"
#include "../PerformTaskConstants.h"
#include "../Caregiver.h"
#include "../Robot.h"
#include "../Poi.h"
#include "../StaticPoi... |
<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>#define DEBUG 0
/**
* File : H.cpp
* Author : Kazune Takahashi
* Created : 2019/12/30 18:11:35
* Powered by Visual Studio Code
*/
#include <iostream>
#include <iomanip>
#include <algorithm>
#include <vector>
#include <string>
#include <complex>
#include <tuple>
#include <queue>
#include <stack>
... |
<commit_before>/**
** \file object/system-class.cc
** \brief Creation of the URBI object system.
*/
//#define ENABLE_DEBUG_TRACES
#include <libport/compiler.hh>
#include <libport/cstdlib>
#include <memory>
#include <sstream>
#include <kernel/userver.hh>
#include <kernel/uconnection.hh>
#include <object/code.hh>
... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: deflt3d.cxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: ihi $ $Date: 2006-11-14 13:18:34 $
*
* The Contents of this file are made ... |
<commit_before>/*
===========================================================================
Daemon BSD Source Code
Copyright (c) 2013-2014, Daemon Developers
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>/***************************************************************************
odbcappender.cpp - class ODBCAppender
-------------------
begin : jeu mai 8 2003
copyright : (C) 2003 by Michael CATANZARITI
email ... |
<commit_before>#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QMessageBox>
//Note: Simple code made complex. How? I did it without triggers first. And then added them. So, voila!
int MainWindow::inc=0;
int buffer_count=0;
bool trigger_count=false;
bool purana_trigger;
int purana_pulse=0;
bool pulse_even;... |
<commit_before>/*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkTypes.h"
#include "BenchTimer.h"
#include "PictureBenchmark.h"
#include "SkCanvas.h"
#include "SkPicture.h"
#include "SkString.h"
#include "picture_... |
<commit_before>/*
* Copyright (C) 2006-2016 Music Technology Group - Universitat Pompeu Fabra
*
* This file is part of Essentia
*
* Essentia 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 (FSF),... |
<commit_before>//
// Copyright (c) 2002-2014 The ANGLE 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.
//
// IndexDataManager.cpp: Defines the IndexDataManager, a class that
// runs the Buffer translation process for index bu... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* 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>#include "Runtime/CRelayTracker.hpp"
#include "Runtime/CSaveWorld.hpp"
#include "Runtime/CStateManager.hpp"
#include "Runtime/World/CWorld.hpp"
#include <algorithm>
namespace urde {
CRelayTracker::CRelayTracker(CBitStreamReader& in, const CSaveWorld& saveWorld) {
const u32 relayCount = saveWorld.Ge... |
<commit_before>//
// libavg - Media Playback Engine.
// Copyright (C) 2003-2006 Ulrich von Zadow
//
// 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 of the Li... |
<commit_before>// Copyright 2015 Project Vogue. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "elang/lir/factory_user.h"
#include "elang/lir/factory.h"
#include "elang/lir/instructions.h"
#include "elang/lir/value.h"
namespace el... |
<commit_before>
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gl/SkNativeGLContext.h"
#include <GL/glu.h>
SkNativeGLContext::AutoContextRestore::AutoContextRestore() {
fOldGLXContext = glXGetCurrentContext(... |
<commit_before>// Time: O(logn)
// Space: O(1)
// Forward declaration of isBadVersion API.
bool isBadVersion(int version);
class Solution {
public:
int firstBadVersion(int n) {
int left = 1, right = n;
while (left <= right) {
int mid = left + (right - left) / 2;
if (isBad... |
<commit_before>// Copyright (c) 2009 libmv authors.
//
// 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,... |
<commit_before>// Copyright (c) 2015, Matthew Malensek.
// Distributed under the BSD 2-Clause License (see LICENSE.txt for details)
#include "General.h"
#include <shellapi.h>
#include "../../3RVX/3RVX.h"
#include "../../3RVX/LanguageTranslator.h"
#include "../../3RVX/Logger.h"
#include "../../3RVX/Settings.h"
#inclu... |
<commit_before>#include "polyChecksum.h"
PolyChecksum::PolyChecksum()
{
// for all possible byte values
for (unsigned i = 0; i < 256; ++i)
{
unsigned long reg = i << 24;
// for all bits in a byte
for (int j = 0; j < 8; ++j)
{
bool topBit = (reg & 0x80000000) != 0;
reg <<= 1;
if (topBit)
reg ^=... |
<commit_before>/*
Copyright (c) 2016 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include "kernel/instantiate.h"
#include "library/constants.h"
#include "library/trace.h"
#include "library/app_builder.h"
#include "library/... |
<commit_before>// Copyright (c) 2009 - Mozy, Inc.
#include "mordor/predef.h"
#include <iostream>
#include <boost/date_time/posix_time/posix_time_io.hpp>
#include "mordor/config.h"
#include "mordor/iomanager.h"
#include "mordor/main.h"
#include "mordor/pq.h"
#include "mordor/version.h"
#include "mordor/statistics.h"... |
<commit_before>/*
* Copyright (C) 2009 Barracuda Networks, 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 License, or (at your option) any later... |
<commit_before>/* This is free and unencumbered software released into the public domain. */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include "error.h"
#include <cassert> /* for assert() */
#include <cerrno> /* for E*, errno */
using namespace posix;
error::error() noexcept
: std::system_error(errno, st... |
<commit_before>/*
* ConcurrentSlot.hpp
*
* Created on: Mar 21, 2012
* Author: Guillaume Chatelet
*/
#ifndef CONCURRENTSLOT_HPP_
#define CONCURRENTSLOT_HPP_
#include "common.hpp"
#include <boost/thread/mutex.hpp>
#include <boost/thread/locks.hpp>
#include <boost/thread/condition_variable.hpp>
#include <ca... |
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org
//
// Copyright 2015 Oslo and Akershus University College of Applied Sciences
// and Alfred Bratterud
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the Lice... |
<commit_before>#include <kognac/multidisklz4reader.h>
#include <boost/filesystem.hpp>
namespace fs = boost::filesystem;
MultiDiskLZ4Reader::MultiDiskLZ4Reader(int maxNPartitions,
int nbuffersPerPartition,
int maxopenedstreams) :
DiskLZ4Reader(maxNPartitions, nbuffersPerPartition),
maxopenedst... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2012 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Components project.
**
** $QT_BEGIN_LICENSE:BSD... |
<commit_before>/*
* EAX Mode Encryption
* (C) 1999-2007 Jack Lloyd
* (C) 2016 Daniel Neus, Rohde & Schwarz Cybersecurity
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include <botan/eax.h>
#include <botan/cmac.h>
#include <botan/ctr.h>
namespace Botan {
namespace {
/*
* EAX MAC-based ... |
<commit_before>/*!
* \file dcximage.cpp
* \brief blah
*
* blah
*
* \author David Legault ( clickhere at scriptsdb dot org )
* \version 1.0
*
* \b Revisions
*
* ScriptsDB.org - 2006
*/
#include "dcximage.h"
#include "../dcxdialog.h"
/*!
* \brief Constructor
*
* \param ID Control ID
... |
<commit_before>/*
* ECDSA implemenation
* (C) 2007 Manuel Hartl, FlexSecure GmbH
* 2007 Falko Strenzke, FlexSecure GmbH
* 2008-2010 Jack Lloyd
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
#include <botan/internal/pk_utils.h>
#include <botan/ecdsa.h>
#include <botan/reducer.h>
#in... |
<commit_before>/////////////////////////////////////////////////////////////////////////
// $Id: memory.cc,v 1.60 2007/09/27 16:10:45 sshwarts Exp $
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2001 MandrakeSoft S.A.
//
// MandrakeSoft S.A.
// 43, rue d'Aboukir
/... |
<commit_before>#include "webrequester.h"
#include "client.h"
#include "settings.h"
#include "log/logger.h"
#include <QTimer>
#include <QPointer>
#include <QNetworkReply>
#include <QNetworkRequest>
#include <QUrlQuery>
#include <QJsonDocument>
#include <QMetaClassInfo>
#include <QDebug>
LOGGER(WebRequester);
class We... |
<commit_before>#include "Pixel.h"
using WalrusRPG::Graphics::Pixel;
Pixel::Pixel(std::uint16_t color) : value(color)
{
}
Pixel::Pixel(Pixel &pix) : value(pix.value)
{
}
Pixel::Pixel(std::uint8_t red, std::uint8_t green, std::uint8_t blue)
: b(blue >> 3), g(green >> 2), r(red >> 3)
{
}
Pixel::operator std::uint... |
<commit_before>/**
* @file
*
* @brief Implementation of set/get/error plugins
*
* @copyright BSD License (see doc/COPYING or http://www.libelektra.org)
*
*/
#include <plugins.hpp>
#include <helper/keyhelper.hpp>
#include <kdbprivate.h>
#include <iterator>
#include <algorithm>
using namespace std;
namespa... |
<commit_before>/*
* Copyright (C) 2011 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>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: wrtxml.hxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: hr $ $Date: 2005-10-27 14:09:12 $
*
* The Contents of this file are made a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.