text stringlengths 54 60.6k |
|---|
<commit_before>#include <iostream> //cout
#include <cstdlib> //rand, sran
#include <string>
#include "complex_matrices.h"
#include <gmc.h> //LaGenMatComplex
#include <laslv.h> //LUFactorizeIP, LaLUInverseIP, etc.
#include <blas3pp.h>
using namespace std;
/* Total [13/20] */
/* Printing [6/9] */
void p... |
<commit_before>#include <iostream> //cout
#include <cstdlib> //rand, sran
#include <string>
#include "complex_matrices.h"
#include <gmc.h> //LaGenMatComplex
#include <laslv.h> //LUFactorizeIP, LaLUInverseIP, etc.
#include <blas3pp.h>
//#include <random> //random_device, mt19937
using namespace std;
/* ... |
<commit_before>/**
* \file sysexp.hpp
*
* \brief Driver for performing system experiments
*
* \author Marco Guazzone (marco.guazzone@gmail.com)
*
* <hr/>
*
* Copyright (C) 2012 Marco Guazzone
* [Distributed Computing System (DCS) Group,
* Computer Scie... |
<commit_before>/*******************************************************************************
* c7a/core/stage_builder.hpp
*
* Part of Project c7a.
*
*
* This file has no license. Only Chuck Norris can compile it.
******************************************************************************/
#pragma once
#if... |
<commit_before>#include "AsioTcpSocket.hpp"
#include "AsioService.hpp"
#include "../MemoryFile.hpp"
#include "../PartFile.hpp"
#include "../CriticalCode.hpp"
#include <boost/bind.hpp>
BEGIN_INANITY_NET
const size_t AsioTcpSocket::receiveFileSize = 0x1000;
AsioTcpSocket::SendItem::SendItem(ptr<File> data, ptr<SendHan... |
<commit_before><commit_msg>Fix typo<commit_after><|endoftext|> |
<commit_before>/*
* The Apache Software License, Version 1.1
*
* Copyright (c) 2001-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. Redistr... |
<commit_before>
#include "HelloTriangleApplication.hpp"
#define GLFW_INCLUDE_VULKAN
#include <GLFW/glfw3.h>
#include <vulkan/vulkan.hpp>
#include <algorithm>
// NOLINTNEXTLINE(cppcoreguidelines-special-member-functions)
struct HelloTriangleApplication::WindowHandler
{
GLFWwindow* window;
WindowHan... |
<commit_before>#include "cache.hxx"
#include "pool.hxx"
#include "RootPool.hxx"
#include "event/Event.hxx"
#include <assert.h>
#include <time.h>
static void *
match_to_ptr(int match)
{
return (void*)(long)match;
}
static int
ptr_to_match(void *p)
{
return (int)(long)p;
}
struct MyCacheItem {
CacheItem i... |
<commit_before>/*=========================================================================
Program: Medical Imaging & Interaction Toolkit
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) German Cancer Research Center, Division of Medical and
Biological Informatics. All rights reserved.
See MITKC... |
<commit_before>// @(#)root/minuit2:$Id$
// Authors: M. Winkler, F. James, L. Moneta, A. Zsenei 2003-2005
/**********************************************************************
* *
* Copyright (c) 2005 LCG ROOT Math team, CERN/PH-SFT ... |
<commit_before>/*******************************************************************************
* src/benchmark.cpp
*
* Copyright (C) 2017 Florian Kurpicz <florian.kurpicz@tu-dortmund.de>
* Copyright (C) 2018 Jonas Ellert <jonas.ellert@tu-dortmund.de>
*
* All rights reserved. Published under the BSD-2 license in ... |
<commit_before>#include <algorithm>
#include <map>
#include <string>
#include <limits>
#include "Prefetch.h"
#include "CodeGen_Internal.h"
#include "IRMutator.h"
#include "IROperator.h"
#include "Bounds.h"
#include "Scope.h"
#include "Simplify.h"
#include "Substitute.h"
#include "Util.h"
namespace Halide {
namespace ... |
<commit_before>/*
* Priority.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/Priority.hh"
namespa... |
<commit_before>/*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
==... |
<commit_before>/*
Copyright (C) 2009 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 "Renderer.hpp"
#include <QOpenGLShader>
#include <QMessageBox>
#include <typeinfo>
#include <QCoreApplication>
#include <QPainter>
#include <QThread>
#include <QAudioDeviceInfo>
static GLfloat vertices[] = {
1, 1,0, 1,-1,0, -1,1,0,
1,-1,0, -1,-1,0, -1,1,0
};
static GLfloat uvs[] = {
... |
<commit_before>#ifndef BLENDMODE_HPP_INCLUDED
#define BLENDMODE_HPP_INCLUDED
namespace gst
{
// Supported blending techniques.
enum class BlendMode {
NONE, // Blending disabled.
ADDITIVE, // Additive blending: out = src_frag + dst_frag.
MULTIPLICATIVE, // Multiplicative ... |
<commit_before>/**
* blufs - a c++ luafilesystem library
* --------------------------------------------------------
* Copyright 2013-2015 Dmitry Ledentsov
* [MIT License](http://opensource.org/licenses/MIT)
*
*/
#include "blufs_lib.h"
#include <boost/filesystem.hpp>
#include <boost/interprocess/sync/file_lock.h... |
<commit_before>#include <iostream>
using std::cout;
using std::endl;
#include <boost/multi_array.hpp>
typedef boost::multi_array<float,1> array_f;
// class definition
class Test
{
public:
Test( float, float, float );
void printarr();
void setarr( float, float, float );
array_f& getarr();
private:
array_f ... |
<commit_before>//=====================================================================
//
// CoreTimer.cpp -
//
// Created by skywind on 2021/12/01
// Last Modified: 2021/12/01 17:44:14
//
//=====================================================================
#include <stddef.h>
#include <assert.h>
#inc... |
<commit_before><commit_msg>INTEGRATION: CWS a11ysep (1.1.2); FILE ADDED 2007/02/28 07:26:18 fs 1.1.2.3: #i10000# 2005/09/28 11:36:43 fs 1.1.2.2: manual resync (files have been moved herein from another location): licence change 2005/03/07 08:29:21 fs 1.1.2.1: #i44293# moved implementations herein from svtools module<co... |
<commit_before><commit_msg>COMP: avoid definition of SpectralForwardModelImageFilter for DRM binning<commit_after><|endoftext|> |
<commit_before>// lab3.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <queue>
#include <iostream>
#include <random>
#include <Windows.h>
using namespace std;
queue<int> numbers;
const int NUMBER_COUNT = 100;
//
void GenerateNumbers();
void ProcessNumbers(int*);
//
i... |
<commit_before>#include <AndroidClient.h>
#include <jni.h>
#include <android/log.h>
class AndroidClient : public HTTPClient {
public:
AndroidClient(JNIEnv * _env, const std::string & _user_agent, bool _enable_cookies, bool _enable_keepalive)
: HTTPClient(_user_agent, _enable_cookies, _enable_keepalive), env(_env) ... |
<commit_before>#include <AndroidClient.h>
#include <jni.h>
#include <android/log.h>
class AndroidClient : public HTTPClient {
public:
AndroidClient(JNIEnv * _env, const std::string & _user_agent, bool _enable_cookies, bool _enable_keepalive)
: HTTPClient(_user_agent, _enable_cookies, _enable_keepalive), env(_env) ... |
<commit_before>/*
* Copyright (c) 2016, The Bifrost Authors. All rights reserved.
* Copyright (c) 2016, NVIDIA CORPORATION. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* * Redistributio... |
<commit_before>/*
* Copyright (C) 2017 Joyent Inc.
* All rights reserved.
*
* Written by: Matthew Macy <matt.macy@joyent.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source c... |
<commit_before>// Copyright (C) 2011-2012, Zeex
//
// 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 o... |
<commit_before>#include "vision.hpp"
#include "operators.hpp"
#include <QTemporaryFile>
#include <iomanip>
#include <iostream>
#include <sstream>
vision::vision (QStatusBar& statusbar, augmentation_widget& augmentation, QObject* parent)
: QObject (parent)
, _failed_frames_counter (0)
, _debug_mode (0)
, _augmentation... |
<commit_before>/*****************************************************************************************
* *
* OpenSpace *
* ... |
<commit_before>#include <vector>
#include "character.h"
#include "gamestate.h"
#include "movingentity.h"
#include "player.h"
Character::Character(Gamestate *state, PlayerPtr owner_) : MovingEntity(state), owner(owner_), pressed_keys(), held_keys()
{
;
}
Character::~Character()
{
;
}
void Character::setinput... |
<commit_before>/*
* SDR device configuration dialog
*
* This file is part of softrig, a simple software defined radio transceiver.
*
* Copyright 2017 Alexandru Csete OZ9AEC.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... |
<commit_before><commit_msg>Create 1014 - Consumption.cpp<commit_after><|endoftext|> |
<commit_before>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <regex>
#include <string>
#include <vector>
#include <dlfcn.h>
#include <getopt.h>
#include "lib/picojson.h"
#include "controller.hpp"
#include "socketio.hpp"
#include "error.hpp"
using namespace processwarp;
class NativeVm : public... |
<commit_before>/**
* machina
*
* Copyright (c) 2014, drmats
* All rights reserved.
*
* https://github.com/drmats/machina
*/
#ifndef __MAIN_LOOP_CPP_
#define __MAIN_LOOP_CPP_ 1
#include "main_loop.hpp"
#include "machina.hpp"
#include "primitives.hpp"
namespace machina {
/**
* Default mouse-motion eve... |
<commit_before>#include <stdlib.h>
#include <mruby.h>
#include <mruby/variable.h>
#include <mruby/data.h>
#include <mruby/string.h>
#include <Fl/Fl_Widget.h>
#include "macros.h"
#include "helpers.h"
#include "widget.h"
#include "group.h"
// FLTK::Widget#align
// FLTK::Widget#align=(value)
IMPLEMENT_FIXNUM_ATTRIBUTE... |
<commit_before>#include "i2c.h"
#include <ppltasks.h>
#include <vector>
#include <iostream>
using v8::FunctionTemplate;
using namespace concurrency;
using namespace Platform;
using namespace Windows::Devices::Enumeration;
Nan::Persistent<v8::Function> WinI2c::constructor;
NAN_MODULE_INIT(WinI2c::Init) {
v8::Local<... |
<commit_before>// window.cpp
#ifndef SAMPLES_DIR
#define SAMPLES_DIR ""
#endif
#include <QComboBox>
#include <QDialog>
#include <QFileDialog>
#include <QLabel>
#include <QLineEdit>
#include <QList>
#include <QtMultimedia/QCameraInfo>
#include "window.h"
Window::Window (QWidget* parent)
: QWidget (p... |
<commit_before>#include <unittest.hpp>
#include <mmm.hpp>
namespace {
auto constructors_1 = UnitTest("vector constructors 1", +[] {
vec4 v;
vec4 u(0);
vec4 t{0};
vec4 s = vec4();
vec4 r = vec4(0);
if (v != u) return false;
if (u != t) return false;
if (t != s) return false;
if (... |
<commit_before>#pragma once
#include <cstdlib>
#include <type_traits>
#include <initializer_list>
#include <utility>
#include <new>
#include "types.hh"
#include "_utils.hh"
namespace zbs {
// Hashmap.
//
// K - type of the key
// V - type of the value
// Hash - takes (const K&, int) and returns int, a hash functor w... |
<commit_before>/*
SWARM
Copyright (C) 2012-2022 Torbjorn Rognes and Frederic Mahe
This program 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 of the
License, or (... |
<commit_before>#include "Configuration.hpp"
#include <memory>
#include <string>
#include <vector>
#include "tclap/CmdLine.h"
#include "SequentialEventDispatcher.hpp"
namespace warped {
Configuration::Configuration(const std::string& config_file_name, unsigned int max_sim_time)
: config_file_name_(config_file_n... |
<commit_before>/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: UnoNamespaceMap.cxx,v $
* $Revis... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: UnoNamespaceMap.cxx,v $
*
* $Revision: 1.4 $
*
* last change: $Author: rt $ $Date: 2005-09-09 01:01:31 $
*
* The Contents of this file ar... |
<commit_before>/*
Copyright (c) 2014 Ableton AG, Berlin
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, merge, pu... |
<commit_before>//
// Copyright (c) 2017 Michael W Powell <mwpowellhtx@gmail.com>
// Copyright 2017 Garrett D'Amore <garrett@damore.org>
// Copyright 2017 Capitar IT Group BV <info@capitar.com>
//
// This software is supplied under the terms of the MIT License, a
// copy of which should be located in the distribution wh... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: TestContext.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
Thi... |
<commit_before>/*
* Copyright (c) 2012 The WebRTC 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 in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS.... |
<commit_before>// Copyright (c) 2015
// Author: Chrono Law
#include <std.hpp>
//using namespace std;
using std::string;
using std::cout;
using std::endl;
#include <boost/foreach.hpp>
#include <boost/filesystem.hpp>
using namespace boost::filesystem;
namespace fs = boost::filesystem;
//////////////////////////////////... |
<commit_before>// Scintilla source code edit control
/** @file ExternalLexer.cxx
** Support external lexers in DLLs.
**/
// Copyright 2001 Simon Steele <ss@pnotepad.org>, portions copyright Neil Hodgson.
// The License.txt file describes the conditions under which this software may be distributed.
#include <stdlib.h... |
<commit_before>/***********************************************************************************************************************
**
** Copyright (c) 2011, 2013 ETH Zurich
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without modification, are permitted provided tha... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Mobility Components.
**
** $QT_BEGIN_LICENSE:BS... |
<commit_before>/*
* Copyright 2005 Sandia Corporation.
* Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive
* license for use of this work by or on behalf of the
* U.S. Government. Redistribution and use in source and binary forms, with
* or without modification, are permitted provided that th... |
<commit_before>// vim:filetype=cpp:textwidth=120:shiftwidth=2:softtabstop=2:expandtab
// Copyright 2014 Christoph Schwering
#include <gtest/gtest.h>
#include <iostream>
#include <limbo/formula.h>
namespace limbo {
using Sort = Language::Sort;
using Var = Language::Var;
using Name = Language::Name;
using Func = La... |
<commit_before>/**
* Copyright (c) 2014-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed in accordance with the terms specified in
* the LICENSE file found in the root directory of this source tree.
*/
#include <set>
#include <osquery/config/config.h>
#include <osquery/databas... |
<commit_before>/*
* Part of libAsmara, a library for accessing AppStream on-disk database
* Copyright 2014 Sune Vuorela <sune@vuorela.dk>
*
* 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 Foun... |
<commit_before>/*
* Copyright (C) 2016-2017 Pelagicore AB
*
* Permission to use, copy, modify, and/or 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" ... |
<commit_before>#include <stdexcept>
#include <utility>
#include "test_tool.hpp"
namespace test_tool
{
emulator::emulator(question_data const& question)
: question_(question.clone())
{
}
auto emulator::start(answer_type const& answer) -> return_type
{
auto const emulated = emulate_... |
<commit_before>//===--- ClangdMain.cpp - clangd server loop ------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before><commit_msg>Fix size of symchronization state message for tracked vehicles<commit_after><|endoftext|> |
<commit_before>#pragma once
//=====================================================================//
/*! @file
@brief GUI Widget View クラス @n
カスタム描画・テンプレート
@author 平松邦仁 (hira@rvf-rc45.net)
*/
//=====================================================================//
#include "gl_fw/glutils.hpp"
#include "w... |
<commit_before>#ifndef INCLUDE_AL_BUFFER_HPP
#define INCLUDE_AL_BUFFER_HPP
/* Allocore --
Multimedia / virtual environment application class library
Copyright (C) 2009. AlloSphere Research Group, Media Arts & Technology, UCSB.
Copyright (C) 2012. The Regents of the University of California.
All rights reserved.
... |
<commit_before>/* =======================================================================
Copyright (c) 2012, Institute for Microelectronics,
Institute for Analysis and Scientific Computing,
TU Wien.
-----------------
ViennaMat... |
<commit_before>#include <iostream>
using namespace std;
//_________________________________________________________________________
// This program declares a class for a circle that will have
// member functions that set the center, find the area, find
// the circumference and display these attributes.
// The program... |
<commit_before>// Scintilla source code edit control
/** @file LexInno.cxx
** Lexer for Inno Setup scripts.
**/
// Written by Friedrich Vedder <fvedd@t-online.de>, using code from LexOthers.cxx.
// The License.txt file describes the conditions under which this software may be distributed.
#include <stdlib.h>
#includ... |
<commit_before>// Scintilla source code edit control
/** @file LexInno.cxx
** Lexer for Inno Setup scripts.
**/
// Written by Friedrich Vedder <fvedd@t-online.de>, using code from LexOthers.cxx.
// The License.txt file describes the conditions under which this software may be distributed.
#include <stdlib.h>
#includ... |
<commit_before>/*
* (C) Copyright 2013 Kurento (http://kurento.org/)
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the GNU Lesser General Public License
* (LGPL) version 2.1 which accompanies this distribution, and is available at
* http://www.gnu.org... |
<commit_before>#include "EsCenterLines.h"
const char *plugin_name{ "EsCenterLines" };
const char *plugin_version{ "1.2" };
const char *plugin_author{ "Oliver Grtzmann" };
const char *plugin_license{ "tbd" };
EsCenterLines::EsCenterLines()
: EuroScopePlugIn::CPlugIn(EuroScopePlugIn::COMPATIBILITY_CODE, plugin_name, p... |
<commit_before>////////////////////////////////////////////////////////////////////////
// This file is part of Grappa, a system for scaling irregular
// applications on commodity clusters.
// Copyright (C) 2010-2014 University of Washington and Battelle
// Memorial Institute. University of Washington authorizes use ... |
<commit_before>/*=========================================================================
Program: Visualization Toolkit
Module: vtkImageAlgorithm.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>/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: fltkShape3D.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) 2001 Insight Consortium
All rights reserved.
Redistribution and u... |
<commit_before>// ======================================================================== //
// Copyright 2009-2017 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); ... |
<commit_before>#include "aquila/global.h"
#include "aquila/ml/Dtw.h"
#include <unittestpp.h>
#include <vector>
SUITE(Dtw)
{
TEST(DistanceToItself)
{
const std::size_t SIZE = 3;
double arr1[SIZE] = {0, 1, 2}, arr2[SIZE] = {1, 2, 3};
std::vector<double> v1(arr1, arr1 + SIZE), v2(arr2, ar... |
<commit_before>// Copyright 2010-2014 RethinkDB, all rights reserved.
#include "clustering/administration/servers/config_client.hpp"
server_config_client_t::server_config_client_t(
mailbox_manager_t *_mailbox_manager,
watchable_map_t<peer_id_t, cluster_directory_metadata_t> *_directory_view,
wa... |
<commit_before>#include "Entity.h"
Entity::Entity()
{
}
Entity::~Entity()
{
}<commit_msg>Added missing getComponents function.<commit_after>#include "Entity.h"
Entity::Entity()
{
}
Entity::~Entity()
{
}
const std::map<size_t, Component*>& Entity::getComponents() const
{
return components;
}<|endoftext|> |
<commit_before>#include <cstdio>
#include <cstdlib>
#include <cassert>
#include <fcntl.h>
#include <vector>
#include <iostream>
#include "../src/sha1.h"
int run_tests() {
int ret = 0;
// these example text blocks are taken from RFC3174
std::vector<std::pair<const char*, const char*> > tests;
tests.push_... |
<commit_before>#include "Halide.h"
using namespace Halide;
#include <image_io.h>
#include <iostream>
#include <limits>
#include <sys/time.h>
using std::vector;
double now() {
struct timeval tv;
gettimeofday(&tv, NULL);
static bool first_call = true;
static time_t first_sec = 0;
if (first_call)... |
<commit_before>/* This file is part of the KDE project
Copyright (C) 2006-2007 Matthias Kretz <kretz@kde.org>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License version 2 as published by the Free Software Foundation.
T... |
<commit_before>/*
* PartialCsvParser.hpp
*
* Created on: 2014/12/28
* Author: nakatani.sho
*/
#ifndef INCLUDE_PARTIALCSVPARSER_HPP_
#define INCLUDE_PARTIALCSVPARSER_HPP_
#include <vector>
#include <string>
#include <cstdio>
#include <cstdlib>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/mman.h>
... |
<commit_before>#include "ctextviewerplugin.h"
#include "ctextviewerwindow.h"
#include "compiler/compiler_warnings_control.h"
#include <QMimeType>
CFileCommanderPlugin * createPlugin()
{
DISABLE_COMPILER_WARNINGS
Q_INIT_RESOURCE(icons);
RESTORE_COMPILER_WARNINGS
return new CTextViewerPlugin;
}
boo... |
<commit_before>/*
Copyright (c) 2003-2014, Arvid Norberg, Daniel Wallin
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>/*
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>#pragma ident "$Id: //depot/sgl/gpstk/dev/apps/receiver/AshtechMessage.cpp#1 $"
/**
* @file AshtechMessage.cpp
* Containers for Ashtech data, conversions to RINEX - definitions.
*/
//============================================================================
//
// This file is part of GPSTk, the G... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the Qt Mobility Components.
**
** $QT_BEGIN_LICENSE:BS... |
<commit_before>/******************************************************************************
* Copyright (c) 2012, Howard Butler (hobu.inc@gmail.com)
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following
* conditions a... |
<commit_before>#include "stdafx.h"
#include "MarshalingTest.h"
#include "EventInputStream.h"
#include "EventOutputStream.h"
#include "Decompose.h"
#include "uuid.h"
/*
EXTRA SPECS to code to that have not yet been implemented as unit tests.
1. Sender and Clien... |
<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>// Copyright (c) 2017 Shota SUGIHARA
// Distributed under the MIT License.
#include <iostream>
#include <boost/format.hpp>
#include <Eigen/Dense>
#include "condition.h"
#include "grid.h"
#include "particles.h"
// Sample code using TinyMPS library.
int main() {
tiny_mps::Condition condition("./input/... |
<commit_before>//=============================================================================================================
/**
* @file main.cpp
* @author Lorenz Esch Lorenz Esch <Lorenz.Esch@tu-ilmenau.de>;
* Lorenz Esch <lorenz.esch@tu-ilmenau.de>;
* Matti Hamalainen <msh@nmr.mgh.harvard.... |
<commit_before>#ifndef TIMING_UTIL_HPP
#define TIMING_UTIL_HPP
#include <atomic>
#include <chrono>
#include <cstdint>
#include <mutex>
#include <unordered_map>
namespace osrm
{
namespace util
{
struct GlobalTimer
{
GlobalTimer() : time(0) {}
std::atomic<uint64_t> time;
};
class GlobalTimerFactory
{
public... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2016 ArangoDB GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except in compliance with the License.
/// You may o... |
<commit_before>/*
Copyright (c) 2009 Yahoo! Inc. All rights reserved. The copyrights
embodied in the content of this file are licensed under the BSD
(revised) open source license
*/
#include <fstream>
#include <iostream>
using namespace std;
#include <unistd.h>
#include <stdlib.h>
#include <stdint.h>
#include <mat... |
<commit_before>#include "Timer.hpp"
#include "Cpu.hpp"
#include "registerAddr.hpp"
#include "interrupt.hpp"
/*
** ############################################################################
** CREATE Singleton
** ############################################################################
*/
Timer::Timer(Memory *mem... |
<commit_before>#include "decompose_imf_lib/optimization_task.h"
#include "decompose_imf_lib/calculations.h"
#include "decompose_imf_lib/processing.h"
#include "cpp_utils/math_constants.h"
#include "cpp_utils/optimize.h"
#include "cpp_utils/parallel_executor.h"
#include "cpp_utils/std_make_unique.h"
#include "qt_util... |
<commit_before>// Copyright 2019 DeepMind Technologies Ltd. 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/licenses/LICENSE-2.0
//
//... |
<commit_before>#include "fid/base_fid.h"
namespace fid {
void BaseFid::Init()
{
// Prevent memory issues with the TF1s.
TF1::DefaultAddToGlobalList(false);
// Initialize the health properly.
health_ = 100.0;
// Resize the temp array (maybe others?)
temp_.reserve(wf_.size());
// Initialize the BaseFid... |
<commit_before>/*
* ScopeLink.cc
*
* Copyright (C) 2009, 2014, 2015 Linas Vepstas
*
* Author: Linas Vepstas <linasvepstas@gmail.com> January 2009
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License v3 as
* published by the Free... |
<commit_before>#include "ofxGpuLut.h"
ofxGpuLut::ofxGpuLut(){}
ofxGpuLut::~ofxGpuLut(){}
void ofxGpuLut::load(ofTexture lutTexture){
fragmentShader = "#version 120\n#extension GL_ARB_texture_rectangle : enable\n";
fragmentShader += STRINGIFY(
uniform sampler2DRect tex;
... |
<commit_before>/*
* film.cpp
*
* Created on: 2016年12月2日
* Author: zhuqian
*/
#include "film.h"
#include "paramset.h"
#include "imageio.h"
Film::Film(const Point2i& res/*分辨率*/, const Bound2f& cropped/*实际渲染窗口比例*/,
std::unique_ptr<Filter> filt, const std::string& fileName/*输出文件名*/,
Float maxSampleLuminan... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.