text stringlengths 54 60.6k |
|---|
<commit_before>/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2008, Willow Garage, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided tha... |
<commit_before>#include "common.h"
#include <functional>
#include <memory>
#ifdef LINUX
#include <dlfcn.h>
#endif
#include "jsobject.h"
#include "typeconv.h"
#include "python-util.h"
#include "error.h"
#include "gil-lock.h"
#include "debug.h"
#include "pymodule.h"
class AtExit {
public:
AtExit(std::function<void ... |
<commit_before>#include "rlp.h"
#include <cstring>
#include <cstdint>
#include<stdexcept>
using namespace std;
RLP::RLP(const vector<uint8_t> & contents)
: RLP{contents, 0, contents.size()}
{}
RLP::RLP(const vector<uint8_t> & contents, size_t offset, size_t maxLength)
: _contents{contents}, _prefixOff{offset}
{
... |
<commit_before>#include "util.h"
#include <set>
#include <cstdlib>
#include <cstring>
#include "util_stl.h"
#include "types.h"
std::set<void*> clone_ptrs;
void free_cloned_buffer(void *ptr)
{
if (found(clone_ptrs,ptr)) {
free(ptr);
clone_ptrs.erase(ptr);
}
}
void free_all_cloned_buffers()
{
traverse(c... |
<commit_before>//============================================================================
// Name : Text.cpp
// Author : Duarte Peixinho
// Version :
// Copyright : ;)
// Description : Text
//============================================================================
#include <string>
#include ... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2018. All rights reserved
*/
#ifndef _Stroika_Foundation_Containers_DataHyperRectangle_inl_
#define _Stroika_Foundation_Containers_DataHyperRectangle_inl_
#include "../Configuration/Concepts.h"
#include "../Debug/Assertions.h"
#include "Private/IterableU... |
<commit_before>// -*- C++ -*-
// The MIT License (MIT)
//
// Copyright (c) 2021 Alexander Samoilov
//
// 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 withou... |
<commit_before>/*
* Copyright (C) 2015 Cloudius Systems, Ltd.
*/
#include "repair.hh"
#include "streaming/stream_plan.hh"
#include "streaming/stream_state.hh"
#include "gms/inet_address.hh"
static logging::logger logger("repair");
static std::vector<sstring> list_column_families(const database& db, const sstring&... |
<commit_before>#include "gtest/gtest.h"
#include "code/ylikuutio/string/ylikuutio_string.hpp"
// Include standard headers
#include <string> // std::string
#include <vector> // std::vector
TEST(extract_string_from_memory, nothing_must_be_extracted_when_source_string_is_empty_string_and_end_string_is_empty_string)
... |
<commit_before>#include "rtkinlinefdk_ggo.h"
#include "rtkGgoFunctions.h"
#include "rtkConfiguration.h"
#include "itkThreeDCircularProjectionGeometryXMLFile.h"
#include "itkProjectionsReader.h"
#include "itkDisplacedDetectorImageFilter.h"
#include "itkParkerShortScanImageFilter.h"
#include "itkFDKConeBeamReconstructio... |
<commit_before>#include "simplifymesh.h"
#include<algorithm>
#include<iostream>
#define INF 99999999;
using namespace std;
bool operator>(const ident &a, const ident &b){
return a. value > b. value;
}
bool operator <(const ident &a,const ident &b){
return a. value < b. value;
}
void simplify_mesh::Simp_shorst... |
<commit_before>// Filename: collisionHandlerFluidPusher.cxx
// Created by: drose (16Mar02)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved
//
// All use of this software is subject to the terms o... |
<commit_before>// @(#)root/base:$Id$
// Author: Rene Brun 02/09/2000
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>/*
*
*
*
*
* Implements the people detection algorithm described here:
* M. Munaro, F. Basso and E. Menegatti,
* Tracking people within groups with RGB-D data,
* In Proceedings of the International Conference on Intelligent Robots and Systems (IROS) 2012, Vilamoura (Portugal), 2012.
*/
#inc... |
<commit_before>/*************************************************************************/
/* audio_driver_opensl.cpp */
/*************************************************************************/
/* This file is part of: */
/... |
<commit_before>/*
* Copyright (C) 2017 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>#include "calibration_impl.h"
#include "system.h"
#include "global_include.h"
#include "px4_custom_mode.h"
#include <functional>
#include <string>
#include <sstream>
namespace dronecore {
using namespace std::placeholders;
CalibrationImpl::CalibrationImpl(System &system) : PluginImplBase(system)
{
... |
<commit_before>/*
** Copyright 2011-2013 Merethis
**
** This file is part of Centreon Broker.
**
** Centreon Broker is free software: you can redistribute it and/or
** modify it under the terms of the GNU General Public License version 2
** as published by the Free Software Foundation.
**
** Centreon Broker is distribu... |
<commit_before>// @(#)root/meta:$Id$
// Author: Rene Brun 13/11/95
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. *
* ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: CartesianCoordinateSystem.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: rt $ $Date: 2005-09-08 00:50:30 $
*
* The Contents of th... |
<commit_before>#include "stdafx.h"
#include <CppUnitTest.h>
#include "datastore.h"
#include "transaction.h"
#include "internal/internal_datastore.h"
#include "mocks.h"
using Assert = Microsoft::VisualStudio::CppUnitTestFramework::Assert;
namespace You {
namespace DataStore {
namespace UnitTests {
/// Unit test for ... |
<commit_before>// Copyright © 2017-2018 Dmitriy Khaustov
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appl... |
<commit_before>/*
* Copyright(c) Sophist Solutions, Inc. 1990-2016. All rights reserved
*/
#include "../StroikaPreComp.h"
#include "../IO/FileAccessException.h"
#include "Exceptions.h"
#include "ErrNoException.h"
using namespace Stroika;
using namespace Stroika::Foundation;
using name... |
<commit_before>#pragma once
#ifndef GUIENVIRONMENT_HPP
#define GUIENVIRONMENT_HPP
#include <SFML/Graphics.hpp>
#include <vector>
#include <memory>
#include <string>
namespace gsf
{
class Widget;
}
namespace gsf
{
class GUIEnvironment : public sf::Drawable
{
private:
const sf::RenderWindow &m_... |
<commit_before>/*
* MarketDataStore.h
*
* Created on: Jul 18, 2015
* Author: felix
*/
#ifndef MARKETDATAPIPE_HPP_
#define MARKETDATAPIPE_HPP_
#include <OmdMessage.hpp>
#include <boost/asio.hpp>
#include <boost/lockfree/spsc_queue.hpp>
#include <boost/thread/mutex.hpp>
#include <boost/thread/condition_var... |
<commit_before>#ifndef __CALCULATE_NODE_HPP__
#define __CALCULATE_NODE_HPP__
#include <iterator>
#include <ostream>
#include <stack>
#include <sstream>
#include "symbol.hpp"
#include "util.hpp"
namespace calculate {
template<typename Parser>
class Node {
friend struct std::hash<Node>;
friend Parser;
publi... |
<commit_before>/*
* Copyright (C) 2012
* Alessio Sclocco <a.sclocco@vu.nl>
*
* 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 3 of the License, or
* (at your option) any lat... |
<commit_before>/**
** \file libport/symbol.hxx
** \brief Inline implementation of libport::Symbol.
*/
#ifndef LIBPORT_SYMBOL_HXX
# define LIBPORT_SYMBOL_HXX
# ifdef WITH_BOOST_SERIALIZATION
# include <boost/serialization/string.hpp>
# endif
# include <ostream>
# include <libport/symbol.hh>
# include <libport/ass... |
<commit_before>/*=========================================================================
Program: itkUNC
Module: itkNeuralNetworkTests2.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2002 CADDLab @ UNC. All rights reserved.
See itkUNCCopyright.txt for details.
This... |
<commit_before>#ifndef PARSERLIB__RULE__HPP
#define PARSERLIB__RULE__HPP
#include <memory>
#include <string_view>
#include "rule_reference.hpp"
#include "parse_context.hpp"
#include "expression_wrapper.hpp"
namespace parserlib
{
/**
A grammar rule.
@param ParseContext type of ... |
<commit_before>#ifndef __PROCESS_THREAD_HPP__
#define __PROCESS_THREAD_HPP__
#include <pthread.h>
#include <stdio.h> // For perror.
#include <stdlib.h> // For abort.
template <typename T>
struct ThreadLocal
{
ThreadLocal()
{
if (pthread_key_create(&key, NULL) != 0) {
perror("Failed to create thread loca... |
<commit_before>// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the... |
<commit_before>/***********************************************************\
* Generic de-/ serializers for annotated types *
* ___________ _____ *
* / ___| ___/ __ \ *
* \ `--.| |_ `' / /' *... |
<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 "Lice... |
<commit_before>#ifndef SLICPLUSPLUS_ACTIONS_HPP_
#define SLICPLUSPLUS_ACTIONS_HPP_
#include <vector>
#include "MaxFile.hpp"
SLIC_BEGIN_NAMESPACE
class Actions {
std::unique_ptr<max_actions_t, decltype(max_actions_free)*> a;
public:
explicit Actions(const MaxFile& maxfile, const std::string& mode="")
: a(max_act... |
<commit_before>#pragma once
#include <theui/window.hpp>
#include <string>
namespace the
{
namespace ui
{
using CharSize = Size;
template < typename Text >
class TextBox: public Window
{
public:
using Texts = typename Text::Container;
TextBox(
const Texts& content,
const Window::Coordinate&... |
<commit_before>/************************************************************************/
/* */
/* Copyright 1998-2005 by Ullrich Koethe */
/* Cognitive Systems Group, University of Hamburg, Germany */
/* ... |
<commit_before>/** \file classify_leader07a.cc
* \author Dr. Johannes Ruscheinski
*
* A tool for determing the type of object that has a lowercase A in position 07 of the leader.
* the create_child_refs.sh shell script.
*/
/*
Copyright (C) 2015, Library of the University of Tübingen
This program i... |
<commit_before>/**
* Copyright (c) 2011-2013 libwallet developers (see AUTHORS)
*
* This file is part of libwallet.
*
* libwallet is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 ... |
<commit_before>#include "game/race_tracker.h"
using game::Position;
using game::Race;
namespace game {
RaceTracker::RaceTracker(game::CarTracker& car_tracker,
const game::Race& race, const std::string& color)
: car_tracker_(car_tracker), race_(race), color_(color) {
}
void RaceTracker::Record(const std:... |
<commit_before>#include "positiontracker.h"
#include <cmath>
#include <common/config/configmanager.h>
PositionTracker::PositionTracker()
: LOnGPSData(this),
LOnMotionCommand(this),
LOnIMUData(this)
{
}
Position PositionTracker::GetPosition()
{
return _current_estimate;
}
Position PositionTracker:... |
<commit_before>#include "alien.h"
Alien::Alien(wsp::Image *img) {
SetImage(img);
resetMotion();
resetPosition();
}
void Alien::setShots(Shot **shots) {
this->shots = shots;
}
void Alien::update() {
Move(motionX, motionY);
if(GetY() < 0) SetY(0);
else if(GetY() > 480-GetHeight()) SetY(480-GetHeight());
int i... |
<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 2007 Murad Tagirov <tmurad@gmail.com>
//
#include "GeoDataLabelSty... |
<commit_before>// AboutBox.cpp
// Copyright (c) 2009, Dan Heeks
// This program is released under the BSD license. See the file COPYING for details.
#include "stdafx.h"
#include "AboutBox.h"
#include "HeeksFrame.h"
BEGIN_EVENT_TABLE( CAboutBox, wxDialog )
EVT_BUTTON( wxID_OK, CAboutBox::OnButtonOK )
END_EVE... |
<commit_before>/*
* Appender.cpp
*
* Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
* Copyright 2000, Bastiaan Bakker. All rights reserved.
*
* See the COPYING file for the terms of usage and distribution.
*/
#include <log4cpp/Portability.hh>
#include <log4cpp/Appender.hh>
namespa... |
<commit_before><?hh
class BaseParam {
protected $name;
protected $value;
protected $required;
public function __construct($key, $value) {
$this->name = $key;
$this->value = $value;
$this->required = true;
}
public function name() {return $this->name;}
public function value() {return $this->va... |
<commit_before><?hh //strict
/**
* This file is part of package.
*
* (c) Noritaka Horio <holy.shared.design@gmail.com>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace package;
use Exception;
use ReflectionClass;
use ReflectionExcepti... |
<commit_before>/*
* Dijkstra.hpp
*
* Created on: Nov 5, 2014
* Author: Pimenta
*/
#ifndef DIJKSTRA_HPP_
#define DIJKSTRA_HPP_
#include <queue>
#include "Graph.hpp"
inline Weight dijkstra(const Graph& G, Vertex source, Vertex target) {
struct Path {
Vertex v;
Weight dist;
P... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
//
// Copyright 2006 - 2015, Paul Beckingham, Federico Hernandez.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to... |
<commit_before>#include "GridView.h"
#include <QPen>
#include <QCloseEvent>
#include <QResizeEvent>
#include "GameGrid.h"
#include "GolSimulator.h"
GridView::GridView(GameGrid& g, QWidget* parent)
: QGraphicsView(parent),
grid(g) {
setWindowTitle(grid.getName().c_str());
currentScaleFactor = 1;
scene = ne... |
<commit_before>#ifndef LMHISTORY_HH
#define LMHISTORY_HH
#include <vector>
#include "config.hh"
#include "history.hh"
struct LMHistory
{
class Word
{
public:
/// \brief The default constructor creates a NULL word (word ID and LM ID
/// -1).
///
Word();
/// \brief Sets the dictionary and language model ... |
<commit_before>/* Copyright (c) 2014 Stanford University
*
* Permission to use, copy, modify, and distribute this software for any purpose
* with or without fee is hereby granted, provided that the above copyright
* notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND T... |
<commit_before>/*
Copyright (C) 2010 George Kiagiadakis <kiagiadakis.george@gmail.com>
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
... |
<commit_before>#include <stdio.h>
#include <iostream>
#include <vector>
// glm additional header to generate transformation matrices directly.
#include <glm/gtc/matrix_transform.hpp>
#include <cstring> // For memcopy depending on the platform.
#include "helpers/ProgramUtilities.h"
#include "Renderer.h"
Renderer::Rend... |
<commit_before>#include "Resolver.h"
#include "Algorithm.h"
#include "Exception.h"
#include "Iterator.h"
#include "Optional.h"
#include "Requirement.h"
#include "ToString.h"
#include <algorithm>
#include <cassert>
#include <exception>
#include <map>
#include <set>
#include <unordered_set>
using namespace Arbiter;
n... |
<commit_before>/*
* Copyright (C) 2012 Kolibre
*
* This file is part of kolibre-clientcore.
*
* Kolibre-clientcore 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 Licens... |
<commit_before>#ifndef CV_ADAPTERS_ROWRANGE_HPP
#define CV_ADAPTERS_ROWRANGE_HPP
#include <iterator>
#include <opencv2/core/core.hpp>
template <typename T>
class RowRangeConstIterator : public std::iterator<std::forward_iterator_tag, T>
{
public:
RowRangeConstIterator()
: data()
, row(... |
<commit_before>// Workspace.hh for Fluxbox
// Copyright (c) 2002 - 2006 Henrik Kinnunen (fluxgen at fluxbox dot org)
//
// Workspace.hh for Blackbox - an X11 Window manager
// Copyright (c) 1997 - 2000 Brad Hughes (bhughes@tcac.net)
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy o... |
<commit_before>#include <QApplication>
#include <QVTKApplication.h>
#include "ddMainWindow.h"
#include "ddPythonManager.h"
int main(int argc, char **argv)
{
QVTKApplication app(argc, argv);
ddPythonManager* pythonManager = new ddPythonManager;
ddMainWindow window;
window.setPythonManager(pythonManager);
w... |
<commit_before>// Report data as I2C slave on address 0x70.
#include "LPC8xx.h"
#include "lpc_types.h"
#include "romapi_8xx.h"
#include "serial.h"
#include <string.h>
#define FIXED_CLOCK_RATE_HZ 10000000
#define FIXED_UART_BAUD_RATE 115200
uint32_t i2cBuffer[24]; // data area used by ROM-based I2C driver... |
<commit_before>#ifndef CAFFE_DATA_LAYERS_HPP_
#define CAFFE_DATA_LAYERS_HPP_
#include <string>
#include <utility>
#include <vector>
#include "boost/scoped_ptr.hpp"
#include "hdf5.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/data_transformer.hpp"
#include "caffe/filler.hpp"
#include "caffe... |
<commit_before>#pragma once
/*
* Covariant Script Version Info
*
* 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) 2003, Arvid Norberg
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, this list of condi... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2006 Artem Pavlenko
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public... |
<commit_before>/*
* Copyright (c) 2010-2013, Vrije Universiteit Brussel.
* All rights reserved.
*/
#ifndef __SHARK_GLOBALARRAY_HPP
#define __SHARK_GLOBALARRAY_HPP
#include <array> // std::array
#include <cstddef> // std::size_t
#include <memory> // std... |
<commit_before>#ifndef VSMC_CXX11_RANDOM_HPP
#define VSMC_CXX11_RANDOM_HPP
#include <vsmc/internal/config.hpp>
#if VSMC_HAS_CXX11LIB_RANDOM
#include <random>
namespace vsmc { namespace cxx11 {
using std::minstd_rand0;
using std::minstd_rand;
using std::mt19937;
using std::mt19937_64;
using std::ranlux24_base;
using s... |
<commit_before>#ifndef __NESTED_COMPILER__
#define __NESTED_COMPILER__
#include <map>
#include <vector>
#include <type_traits>
#include <sstream>
#include <utility>
namespace nested_container {
// boost lexical cast, simple non-throwing version
template<typename Target, typename Source> Target lexical_cast(Source ar... |
<commit_before>/**
@file
Brackets processor unit test test.
@author Emil Maskovsky
*/
#include <cstdlib>
#include <iostream>
int main()
{
return EXIT_SUCCESS;
}
/* EOF */
<commit_msg>Unit test output<commit_after>/**
@file
Brackets processor unit test test.
@author Emil Maskovsky
*/... |
<commit_before>#ifndef __BSE_COMBO_HH__
#define __BSE_COMBO_HH__
#include <bse/processor.hh>
namespace Bse {
namespace AudioSignal {
// == Chain ==
/// Container for connecting multiple Processors in a chain.
class Chain : public Processor, ProcessorManager {
class Inlet;
using InletP = std::shared_ptr<Inlet>;
... |
<commit_before>/*
* Copyright (C) 2010-2011 Dmitry Marakasov
*
* This file is part of glosm.
*
* glosm 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 opt... |
<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 "flutter/shell/common/engine.h"
#include <memory>
#include <utility>
#include "flutter/common/settings.h"
#include "flutter/fml/... |
<commit_before>/*
* The Apache Software License, Version 1.1
*
*
* Copyright (c) 1999-2002 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Red... |
<commit_before>/*
* Copyright (C) 1999 Lars Knoll (knoll@kde.org)
* (C) 1999 Antti Koivisto (koivisto@kde.org)
* (C) 2001 Dirk Mueller (mueller@kde.org)
* (C) 2006 Alexey Proskuryakov (ap@webkit.org)
* Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All rights ... |
<commit_before>/*
* Jamoma TTNode Tree
* Copyright © 2008, Tim Place
*
* License: This code is licensed under the terms of the GNU LGPL
* http://www.gnu.org/licenses/lgpl.html
*/
#include "NodeLib.h"
TTTreePtr jamoma_tree = NULL;
/*****************************************************************************... |
<commit_before>#include "stdafx.h"
#include "Sprite.h"
Sprite::Sprite(std::string resLocation)
{
}
Sprite::Sprite()
{
sourceImage = nullptr;
GenErrorImage();
}
Sprite::~Sprite()
{
al_destroy_bitmap(sourceImage);
}
/*
This makes a blue square with a yellow triangle inside that
has an exclamation mark... |
<commit_before>#include "android_vulkan_context_factory.hpp"
#include "com/mapswithme/platform/Platform.hpp"
#include "drape/drape_diagnostics.hpp"
#include "drape/vulkan/vulkan_pipeline.hpp"
#include "drape/vulkan/vulkan_utils.hpp"
#include "base/assert.hpp"
#include "base/logging.hpp"
#include "base/macros.hpp"
#i... |
<commit_before>#include "master.hpp"
namespace factor {
void factor_vm::dispatch_signal_handler(cell* sp, cell* pc, cell handler) {
if (!code->seg->in_segment_p(*pc) ||
*sp < ctx->callstack_seg->start + stack_reserved) {
/* Fault came from the VM, foreign code, a callstack overflow, or
we don't hav... |
<commit_before>#include <cctype>
#include <cstring>
#include <cmath>
#include <iomanip>
#include "objectmemory.hpp"
#include "marshal.hpp"
#include "object_utils.hpp"
#include "strtod.hpp"
#include "builtin/sendsite.hpp"
#include "builtin/array.hpp"
#include "builtin/compiledmethod.hpp"
#include "builtin/fixnum.hpp"... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: viewcontext.hxx,v $
*
* $Revision: 1.3 $
*
* last change: $Author: hr $ $Date: 2007-06-27 15:07:32 $
*
* The Contents of this file are ma... |
<commit_before>// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/printing/print_preview_message_handler.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browse... |
<commit_before>// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/app/chrome_dll_resource.h"
#include "chrome/test/automated_ui_tests/automated_ui_test_base.h"
#include "chrome/test/au... |
<commit_before>#include "classes.h"
#include "msvc.h"
#include <sycl.hpp>
#include <chrono>
#include <iostream>
#include <string>
#include <vector>
#include <memory>
using std::string;
extern void compute_org(void*, int w, int h, int samps, Ray& cam, Vec& cx, Vec& cy, Vec r, Vec* c);
extern void compute_org_openmp... |
<commit_before>// Shell program for running a sequential multi-stage DIFT
#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <sys/mman.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <net... |
<commit_before>/*************************************************************************
*
* $RCSfile: ignoreKiKuFollowedBySa_ja_JP.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: rt $ $Date: 2003-04-08 16:02:55 $
*
* The Contents of this file are made available subject to the terms of
* either of... |
<commit_before>
// Simple macro showing capabilities of TGSpeedo widget.
#include "TSystem.h"
#include "TGFrame.h"
#include "TGWindow.h"
#include "TGSpeedo.h"
class TGShapedMain : public TGMainFrame {
protected:
TGSpeedo *fSpeedo; // analog meter
Int_t fActInfo; // actual... |
<commit_before>/***********************************************************************
created: Fri, 4th July 2014
author: Henri I Hyyryläinen
*************************************************************************/
/***************************************************************************
* Cop... |
<commit_before>/*
* This file is part of the CN24 semantic segmentation software,
* copyright (C) 2015 Clemens-Alexander Brust (ikosa dot de at gmail dot com).
*
* For licensing information, see the LICENSE file included with this project.
*/
/**
* @file classifyImage.cpp
* @brief Application that uses a pretr... |
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/dom_ui/chrome_url_data_manager.h"
#include "app/l10n_util.h"
#include "base/file_util.h"
#include "base/i18n/... |
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/browser.h"
#include "chrome/browser/extensions/extension_apitest.h"
#include "chrome/browser/extensions/extens... |
<commit_before>#include <iostream>
#include <stdexcept>
#include <pqxx/pqxx>
namespace pqxx
{
namespace test
{
class test_failure : public PGSTD::logic_error
{
const PGSTD::string m_file;
int m_line;
public:
test_failure(
const PGSTD::string &ffile, int fline, const PGSTD::string &desc) :
logic_error(de... |
<commit_before>// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/ui/webui/print_preview_handler.h"
#include <string>
#include "base/i18n/file_util_icu.h"
#include "base/json... |
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Constant defines used in the cloud print proxy code
#include "chrome/service/cloud_print/cloud_print_consts.h"
const char kProxyId... |
<commit_before><commit_msg>ENH: Make test usable from command line<commit_after><|endoftext|> |
<commit_before>/*!
\file NotificationManager.cpp
\author Dane Gardner <dane.gardner@gmail.com>
\section LICENSE
This file is part of the Parallel Tools GUI Framework (PTGF)
Copyright (C) 2010-2013 Argo Navis Technologies, LLC
This library is free software; you can redistribute it and/or modify it
... |
<commit_before><commit_msg>Created a unit test to ensure invalidation of gdr_map after fork<commit_after><|endoftext|> |
<commit_before><commit_msg>test a greater numeric range for divisions<commit_after><|endoftext|> |
<commit_before>/******************************************************************************
This source file is part of the MoleQueue project.
Copyright 2011 Kitware, Inc.
This source code is released under the New BSD License, (the "License").
Unless required by applicable law or agreed to in writing, s... |
<commit_before>/*
* Copyright 2014 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"
#if defined(SK_BUILD_FOR_ANDROID)
#include "gl/GrGLInterface.h"
#include "gl/GrGLAssembleInterface.h"
#include "gl/GrGLUtil.h"
#include <E... |
<commit_before>#include <ros/ros.h>
#include <dynamic_reconfigure/server.h>
#include <mantis_description/se_tools.h>
#include <mantis_router_base/mantis_router_base.h>
#include <mantis_router_base/ControlParamsConfig.h>
#include <mavros_msgs/PositionTarget.h>
#include <nav_msgs/Odometry.h>
#include <geometry_msgs/Pos... |
<commit_before><commit_msg>Create acm_1025.cpp<commit_after><|endoftext|> |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.