text stringlengths 54 60.6k |
|---|
<commit_before>/*
* Copyright 2014 Open Connectome Project (http://openconnecto.me)
* Written by Da Zheng (zhengda1936@gmail.com)
*
* This file is part of FlashGraph.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ... |
<commit_before>#include "Connection.h"
#include "StableHeaders.h"
#include "RexLogicModule.h" // chat
#include "RexProtocolMsgIDs.h"
#include "OpensimProtocolModule.h"
#include "ConnectionProvider.h"
namespace OpensimIM
{
Connection::Connection(Foundation::Framework* framework, const QString &agentID)
... |
<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>/*
* Copyright 2013 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkForceLinking.h"
#include "SkImageDecoder.h"
// This method is required to fool the linker into not discarding the pre-main
// initialization and re... |
<commit_before>
/*
* Copyright 2006 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 "SkImageDecoder.h"
#include "SkBitmap.h"
#include "SkPixelRef.h"
#include "SkStream.h"
#include "SkTemplates.h"
static SkBitmap:... |
<commit_before>#ifndef GUARD_MLOPEN_HANDLE_HPP
#define GUARD_MLOPEN_HANDLE_HPP
#define MLOPEN_DEFINE_OBJECT(object, ...) \
inline __VA_ARGS__& mlopen_get_object(object& obj) \
{ \
return static_cast<__VA_ARGS__&>(obj); \
} \
inline const __VA_ARGS__& mlopen_get_object(const object& obj) \
{ \
return static_ca... |
<commit_before>/*=========================================================================
Program: Medical Imaging & Interaction Toolkit
Module: $RCSfile$
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) German Cancer Research Center, Division of Medical and
Biological Informatics. All right... |
<commit_before>//===-- Frontend.cpp - frontend utility methods ---------------------------===//
//
// 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>//===--- PPLexerChange.cpp - Handle changing lexers in the preprocessor ---===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#include "ovpCBoxAlgorithmLevelMeasure.h"
#include "../../algorithms/simple-visualisation/ovpCAlgorithmLevelMeasure.h"
using namespace OpenViBE;
using namespace OpenViBE::Kernel;
using namespace OpenViBE::Plugins;
using namespace OpenViBEPlugins;
using namespace OpenViBEPlugins::SimpleVisualisation;
... |
<commit_before>///////////////////////////////////////////////////////////////////////////////
// FILE: PrecisExcite.cpp
// PROJECT: Micro-Manager
// SUBSYSTEM: DeviceAdapters
//-----------------------------------------------------------------------------
// DESCRIPTION: PrecisExcite controlle... |
<commit_before>/**
* @file SimpleMotionBehaviorControl.cpp
*
* @author <a href="mailto:mellmann@informatik.hu-berlin.de">Heinrich Mellmann</a>
* @author <a href="mailto:goehring@informatik.hu-berlin.de">Daniel Goehring</a>
* Implementation of class SimpleMotionBehaviorControl
*/
#include "SimpleMotionBehaviorCon... |
<commit_before>//---------------------------------------------------------
// Copyright 2015 Ontario Institute for Cancer Research
// Written by Jared Simpson (jared.simpson@oicr.on.ca)
//---------------------------------------------------------
//
// nanopolish_common -- Data structures and definitions
// shared acros... |
<commit_before>#include <stan/math.hpp>
#include <test/unit/util.hpp>
#include <gtest/gtest.h>
TEST(AgradRev, arena_matrix_matrix_test) {
using Eigen::MatrixXd;
using stan::math::arena_matrix;
// construction
arena_matrix<MatrixXd> a;
arena_matrix<MatrixXd> a2;
arena_matrix<MatrixXd> a3;
arena_matrix<Ma... |
<commit_before>//
// Copyright Silvin Lubecki 2010
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
#ifndef OPENCLAM_CL_HPP_INCLUDED
#define OPENCLAM_CL_HPP_INCLUDED
#include <CL/cl.h>
#inc... |
<commit_before>//===-- StringRef.cpp - Lightweight String References ---------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#include <sliding_window.hpp>
#include <vector>
#include <array>
#include <string>
#include <utility>
#include "helpers.hpp"
#include "catch.hpp"
using iter::sliding_window;
using Vec = const std::vector<int>;
TEST_CASE("sliding_window: window of size 3", "[sliding_window]") {
Vec ns = { 10, 20, ... |
<commit_before>//===- Dominators.cpp - Dominator Calculation -----------------------------===//
//
// This file implements simple dominator construction algorithms for finding
// forward dominators. Postdominators are available in libanalysis, but are not
// included in libvmcore, because it's not needed. Forward dom... |
<commit_before>#include <pcl/features/normal_3d.h>
#include <pcl/io/pcd_io.h>
#include <vtkLidarScanner.h>
#include <vtkPolyData.h>
#include <vtkSmartPointer.h>
#include <vtkTransform.h>
#include "proctor/proctor.h"
#include "proctor/scanner.h"
#if 0
#include "SyntheticLidarScanner/vtkRay.cxx"
#include "SyntheticLid... |
<commit_before>/*
* Copyright (c) 2015-2016, Andy Deng <theandy.deng@gmail.com>
* 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 co... |
<commit_before>/*
Copyright (c) 2022 Advanced Micro Devices, Inc. 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 limitation the rights
t... |
<commit_before><commit_msg>ensure string accesses are in bounds<commit_after><|endoftext|> |
<commit_before>#pragma once
#include <ostream>
#include <vector>
using std::ostream;
using std::vector;
namespace seq {
static constexpr const auto delimBegin = '[';
static constexpr const auto delimEnd = ']';
static constexpr const auto delimSep = ',';
template <typename T, template <class> typename Seq>
... |
<commit_before>/*
* ServerOptions.cpp
*
* Copyright (C) 2009-12 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>/*
* Copyright (c) 2010 The Regents of The University of Michigan
* 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 copyri... |
<commit_before>#include "game_window.h"
#include "command_menu.h"
#include "../parser_yaml/graphics_parser.h"
using namespace std;
CommandMenu::CommandMenu(GameWindow& owner, GraphicsParser& graphicsParser) :
owner(owner),
offset(0, owner.alto_pantalla - graphicsParser.getPantalla().hud_alto),
size((owner.ancho_pa... |
<commit_before>//===-- InMemoryAssembler.cpp -----------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>// Copyright (c) 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/browser/gtk/infobar_gtk.h"
#include <gtk/gtk.h>
#include "app/gfx/gtk_util.h"
#include "base/string_util.h"
#include... |
<commit_before>/*************************************************************************
*
* $RCSfile: EventOASISTContext.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2004-11-26 13:08:47 $
*
* The Contents of this file are made available subject to the terms of
* either of the follo... |
<commit_before>/**
MiracleGrue - Model Generator for toolpathing. <http://www.grue.makerbot.com>
Copyright (C) 2011 Far McKon <Far@makerbot.com>, Hugo Boyer (hugo@makerbot.com)
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License a... |
<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/browser/gtk/infobar_gtk.h"
#include <gtk/gtk.h>
#include "app/gfx/gtk_util.h"
#include "base/string_util.h"
#include... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: FrameOASISTContext.cxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: rt $ $Date: 2005-09-09 15:45:50 $
*
* The Contents of this file... |
<commit_before>//
// Copyright Antoine Leblanc 2010 - 2015
// Distributed under the MIT license.
//
// http://nauths.fr
// http://github.com/nicuveo
// mailto://antoine.jp.leblanc@gmail.com
//
#ifndef SAW_FOREACH_HH_
# define SAW_FOREACH_HH_
//HHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH
// ... |
<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/page_info_model.h"
#include <string>
#include "app/l10n_util.h"
#include "base/callback.h"
#include "base/i1... |
<commit_before>/*
* Copyright (C) 2018 Nagisa Sekiguchi
*
* 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 applicab... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkImageMagnify.cxx
Language: C++
Date: $Date$
Version: $Revision$
Thanks: Thanks to C. Charles Law who developed this class.
Copyright (c) 1993-1995 Ken Martin... |
<commit_before>// -*- Mode:C++ -*-
/**************************************************************************************************/
/* */
/* Copyright (C) 2014 University of Hull ... |
<commit_before>#include <math.h>
#include <stdlib.h>
#include <string>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/opencv.hpp>
#include <opencv2/legacy/compat.hpp>
#include "dlib/opencv.h"
#include "dlib/image_processing/frontal_face_detector.h"
#include "dlib/image_processing/render_face_detections.h"
#... |
<commit_before>/*
* This file is part of the SSH Library
*
* Copyright (c) 2010 by Aris Adamantiadis
*
* The SSH 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 ... |
<commit_before>/*
Copyright (c) 2007, 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>/*
Copyright (C) 2004-2005 Cory Nelson
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including co... |
<commit_before>/*
===========================================================================
Daemon GPL Source Code
Copyright (C) 2012 Unvanquished Developers
This file is part of the Daemon GPL Source Code (Daemon Source Code).
Daemon Source Code is free software: you can redistribute it and/or modify
it under the... |
<commit_before><commit_msg>fixed linux build<commit_after><|endoftext|> |
<commit_before>#include "common.h"
#include "eventdispatcher_libevent.h"
#include "eventdispatcher_libevent_p.h"
EventDispatcherLibEvent::EventDispatcherLibEvent(QObject* parent)
: QAbstractEventDispatcher(parent), d_ptr(new EventDispatcherLibEventPrivate(this))
{
}
EventDispatcherLibEvent::EventDispatcherLibEvent(c... |
<commit_before>/*
* Copyright © 2010 Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, mod... |
<commit_before>/*
* Copyright 2021 Google LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/gpu/ganesh/vk/GrVkBuffer.h"
#include "include/gpu/GrDirectContext.h"
#include "src/gpu/ganesh/GrDirectContextPriv.h"
#include "src/gpu/ganesh/GrRe... |
<commit_before>/*
* Copyright (c) 2008-2016 the MRtrix3 contributors
*
* 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/
*
* MRtrix is distributed in the hope that... |
<commit_before>/*
* Copyright (c) 2008-2018 the MRtrix3 contributors.
*
* 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/
*
* MRtrix3 is distributed in the hope that... |
<commit_before>#include <Poco/Logger.h>
#include <Poco/JSON/Array.h>
#include "di/Injectable.h"
#include "gwmessage/GWMessageType.h"
#include "gwmessage/GWRequest.h"
#include "gwmessage/GWLastValueResponse.h"
#include "gwmessage/GWDeviceListResponse.h"
#include "gwmessage/GWAck.h"
#include "gws/GWMessageHandlerImpl.h"... |
<commit_before>/************************************************************************/
/* */
/* Copyright 1998-2004 by Ullrich Koethe */
/* Cognitive Systems Group, University of Hamburg, Germany */
/* ... |
<commit_before>#include "qhexedithighlighter.h"
QHexEditHighlighter::QHexEditHighlighter(QHexEditData *hexeditdata, QColor backdefault, QColor foredefault, QObject *parent): QObject(parent), _hexeditdata(hexeditdata), _backdefault(backdefault), _foredefault(foredefault)
{
}
void QHexEditHighlighter::colors(qint64 po... |
<commit_before>/***************************************************************************
* Copyright (c) 2016, Johan Mabille and Sylvain Corlay *
* *
* Distributed under the terms of the BSD 3-Clause License. ... |
<commit_before><commit_msg>Related: fdo#37691 \shptxt ... \jpegblip<commit_after><|endoftext|> |
<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
// "Lic... |
<commit_before>/*=========================================================================
*
* Copyright Insight Software Consortium
*
* 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
... |
<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 Qt Build Suite.
**
** Commercial License Usage
** Licensees holding valid commercial Qt ... |
<commit_before>
#include "logger.h"
#include "owtemp.h"
#include "utils.h"
extern "C"
{
#include "ownet.h"
}
using namespace std;
namespace home_system
{
namespace input_output
{
namespace ow
{
temp::temp(int portnum, uint64_t serial_num)
: portnum_(portnum),
serial_num_(serial_num)
{
LOG("Created temperature d... |
<commit_before>
#include "stm32_spi_arbiter.hpp"
#include "stm32_system.h"
#include "utils.hpp"
#include <cmsis_os.h>
bool equals(const SPI_InitTypeDef& lhs, const SPI_InitTypeDef& rhs) {
return (lhs.Mode == rhs.Mode)
&& (lhs.Direction == rhs.Direction)
&& (lhs.DataSize == rhs.DataSize)
&& (lhs.CLK... |
<commit_before>/*=========================================================================
Library: TubeTK
Copyright 2010 Kitware Inc. 28 Corporate Drive,
Clifton Park, NY, 12065, USA.
All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in complian... |
<commit_before>/****************************************************************************
*
* Copyright (c) 2013-2014 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are me... |
<commit_before>/*
* Copyright 2016 - 2021 gary@drinkingtea.net
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#include <QApplication>
#include <QDebug>
#inc... |
<commit_before>/*
Copyright (C) 2014-2018 Sven Willner <sven.willner@pik-potsdam.de>
Christian Otto <christian.otto@pik-potsdam.de>
This file is part of Acclimate.
Acclimate is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public Li... |
<commit_before>//
// calcCOVARchunks.cpp
//
//
// Created by Evan McCartney-Melstad on 2/13/15.
//
//
#include "calcCOVARchunks.h"
#include <iostream>
#include <vector>
#include <fstream>
#include <thread>
#include <string>
int calcCOVARfromBinaryFile (std::string binaryFile, unsigned long long int numLoci, cons... |
<commit_before>/* bzflag
* Copyright (c) 1993-2013 Tim Riker
*
* This package is free software; you can redistribute it and/or
* modify it under the terms of the license found in the file
* named COPYING that should have accompanied this file.
*
* THIS PACKAGE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
*... |
<commit_before>#include "ex14_26_StrBlob.h"
#include <algorithm>
//==================================================================
//
// StrBlob - operators
//
//==================================================================
bool operator==(const StrBlob& lhs, const StrBlob& rhs)
{
return *lhs.data == *rh... |
<commit_before>#include "contracttablemodel.h"
#include "guiutil.h"
#include "walletmodel.h"
#include "wallet/wallet.h"
#include <boost/foreach.hpp>
#include <QFont>
#include <QDebug>
struct ContractTableEntry
{
QString label;
QString address;
QString abi;
ContractTableEntry() {}
ContractTable... |
<commit_before>// Copyright (c) 2011-2014 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
//
// Wraps dumb protocol buffer paymentRequest
// with some extra methods
//
#include "paymentrequestplus.h"... |
<commit_before>/*
SECC Native(c++) Frontend
dependencies : SimpleHttpRequest, nlohmann/json, zlib, md5
ubuntu :
$ sudo apt-get install libssl-dev zlib1g-dev
$ make clean && make
run :
$ SECC_ADDRESS="172.17.42.1" [SECC_PORT="10509"] \
/path/to/secc-native/bin/gcc ...
*/
#include <iostream>
#include ... |
<commit_before>/*
SECC Native(c++) Frontend
dependencies : SimpleHttpRequest, nlohmann/json, zlib, md5
ubuntu :
$ sudo apt-get install libssl-dev zlib1g-dev
$ make clean && make
run :
$ SECC_ADDRESS="172.17.42.1" [SECC_PORT="10509"] \
/path/to/secc-native/bin/gcc ...
*/
#include <iostream>
#include ... |
<commit_before>/*
* spinbox2.cpp - spin box with extra pair of spin buttons (for QT3)
* Program: kalarm
* (C) 2001, 2002 by David Jarvie software@astrojar.org.uk
*
* 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... |
<commit_before>// ======================================================================== //
// Copyright 2009-2017 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); ... |
<commit_before>#define QT_NO_CAST_ASCII
#define QT_NO_COMPAT
// configuredialog_p.cpp: classes internal to ConfigureDialog
// see configuredialog.cpp for details.
// my header:
#include "configuredialog_p.h"
// other KMail headers:
#include "kmidentity.h" // for IdentityList::{export,import}Data
// other kdenetwork ... |
<commit_before>/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the imp... |
<commit_before>#include "csettings.h"
#include "qmessagebox.h"
#include "qfiledialog.h"
#include <QtGui>
#include "mdichild.h"
#define WIDGET(t,f) ((t*)findChild<t *>(#f))
QString stripFileExtension(QString fileName)
{
int idx;
for (idx=fileName.length();idx >=0 ; idx --)
{
if(fileName.mid(idx,1)==".")
... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkHyperTreeFractalSource.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This... |
<commit_before>//!
//! @file FileAccess.cc
//! @author Robert Braun <robert.braun@liu.se>
//! @date 2010-02-03
//!
//! @brief Contains the file access functions
//!
//$Id$
#include "FileAccess.h"
#include "Component.h"
#include <iostream>
#include "HopsanCore.h"
FileAccess::FileAccess()
{
//... |
<commit_before>/*
* SnapFind
* An interactive image search application
* Version 1
*
* Copyright (c) 2009 Carnegie Mellon University
* All Rights Reserved.
*
* This software is distributed under the terms of the Eclipse Public
* License, Version 1.0 which can be found in the file named LICENSE.
* ANY ... |
<commit_before>#include "vtkDebugLeaks.h"
#include "vtkObjectFactory.h"
// A singleton that prints out the table, and deletes the table.
class vtkPrintLeaksAtExit
{
public:
inline void Use()
{
}
~vtkPrintLeaksAtExit()
{
vtkObjectFactory::UnRegisterAllFactories();
vtkDebugLeaks::PrintCurre... |
<commit_before>// Copyright (c)2008-2011, Preferred Infrastructure 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 c... |
<commit_before>/** @file
This file produces Unicorns and Rainbows for the ATS community
@section license License
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 copyrigh... |
<commit_before>/******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor ... |
<commit_before>/* BEGIN_COMMON_COPYRIGHT_HEADER
* (c)LGPL2+
*
* Razor - a lightweight, Qt based, desktop toolset
* http://razor-qt.org
*
* Copyright: 2013 Razor team
* Authors:
* Kuzma Shapran <kuzma.shapran@gmail.com>
*
* This program or library is free software; you can redistribute it
* and/or modify it... |
<commit_before>//
// libavg - Media Playback Engine.
// Copyright (C) 2003-2008 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>#include "integral.h"
#include <cassert>
using namespace memseries::statistic;
void BaseIntegral::call(const memseries::Meas&m){
if(_is_first){
_last=m;
_is_first=false;
}else{
this->calc(_last,m);
_last=m;
}
}
BaseIntegral::BaseIntegral() {
_is_first = tr... |
<commit_before>/*-------------------------------------------------------------------------
*
* FILE
* cursor.cxx
*
* DESCRIPTION
* implementation of the pqxx::Cursor class.
* pqxx::Cursor represents a database cursor.
*
* Copyright (c) 2001-2004, Jeroen T. Vermeulen <jtv@xs4all.nl>
*
* See COPYING... |
<commit_before>/*
* QEMU USB HID devices
*
* Copyright (c) 2005 Fabrice Bellard
*
* 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 th... |
<commit_before>#include "fish_annotator/video_annotator/player.h"
#include <QTime>
#include <QCoreApplication>
#include <QEventLoop>
#include <QMutexLocker>
namespace fish_annotator { namespace video_annotator {
Player::Player()
: QObject()
, video_path_()
, frame_rate_(0.0)
, stopped_(true)
, frame_mat_()... |
<commit_before>#include "Renderer.h"
Renderer::Renderer(){
myname = "Renderer";
nextPickingName = 100;
cursorsize = 10;
maxcursors = 20;
captureincrement= 2;
mapsampling = 2;
touchtomouse = true;
mousetotouch = true;
mousetouchid = -1;
currentviewport = ofRectangle(0,0,0,0);
bTuioSetup = false;... |
<commit_before>/*
The MIT License (MIT)
Copyright (c) 2015 Marius Kaufmann, Tamara Frieß, Jannis Hoppe, Christian Hack
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, includi... |
<commit_before>//-----------------------------------------------------------------------------
// Copyright (c) 2012 GarageGames, LLC
//
// 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 wit... |
<commit_before>/*************************************************************************
*
* $RCSfile: opengrf.cxx,v $
*
* $Revision: 1.17 $
*
* last change: $Author: kz $ $Date: 2004-10-04 17:48:17 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: rotmodit.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2005-09-08 23:39:19 $
*
* The Contents of this file are made ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: idxmrk.cxx,v $
*
* $Revision: 1.36 $
*
* last change: $Author: hr $ $Date: 2007-09-27 12:17:17 $
*
* The Contents of this file are made a... |
<commit_before>#ifndef CWRAPPER_HPP_INCLUDED
#define CWRAPPER_HPP_INCLUDED
#define HAS_STATIC_MEMBER_DETECTOR(member) \
template<typename T> \
class HAS_STATIC_MEMBER_DETECTOR_CLASS_ ## member \
{ ... |
<commit_before>#include <iostream>
#include <iomanip>
#include <cmath>
#include <chrono>
#include <random>
using namespace std;
#define DBG 1
#define DRAM_SIZE (64*1024*1024)
#define CACHE_SIZE (32*1024)
std::mt19937 generator;
enum cacheResType { MISS = 0, HIT = 1 };
unsigned int m_w = 0xABABAB55; /* ... |
<commit_before>/*
Copyright (C) 2000 by W.C.A. Wijngaards
This library 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 Software Foundation; either
version 2 of the License, or (at your option) any later ve... |
<commit_before>#include "editor.h"
#include "ui_editor.h"
#include "ui/link_item.h"
#include "ui/socket_item.h"
#include "ui/colors.h"
#include "ui/elements_list.h"
#include <QAction>
#include <QDebug>
#include <QDesktopServices>
#include <QDir>
#include <QDockWidget>
#include <QFileDialog>
#include <QGraphicsItem>
... |
<commit_before>#include "automata.hpp"
#include "state.hpp"
#include <iostream>
#include <string>
#include <list>
using namespace std;
Automata::Automata() {
this->epsilon = false;
}
Automata::Automata(bool _epsilon, int _nsymbol, int _nstates) {
this->epsilon = _epsilon;
if(this->epsilon)
_nsymbol += 1;
this... |
<commit_before>/**
* @copyright Copyright 2016 The J-PET Framework Authors. All rights reserved.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may find a copy of the License in the LICENCE file.
*
* Unless required b... |
<commit_before>/*************************************************************************
* UrBackup - Client/Server backup system
* Copyright (C) 2011-2016 Martin Raiber
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public Licen... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.