text stringlengths 54 60.6k |
|---|
<commit_before>#ifndef ATTRIBUTE_HPP
#define ATTRIBUTE_HPP
#include <set>
#include <vector>
#include <chrono>
#include <memory>
#include <boost/optional.hpp>
/**
* @brief The VR enum defines the value representations of an attribute
* a Value Representation can be described as a data type.
*/
enum class VR
{
A... |
<commit_before>//
// Aspia Project
// Copyright (C) 2020 Dmitry Chapyshev <dmitry@aspia.ru>
//
// 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 ... |
<commit_before>/*
* Copyright (c) 2014 Samsung Electronics Co., 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/licens... |
<commit_before>// Copyright (c) 2015 Pierre MOULON.
// 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 "openMVG/sfm/sfm.hpp"
#include "software/SfM/SfMPlyHelp... |
<commit_before>#ifndef STAN__MATH__MATRIX__SPARSE_MULTIPLY_HPP
#define STAN__MATH__MATRIX__SPARSE_MULTIPLY_HPP
#include <vector>
#include <boost/math/tools/promotion.hpp>
#include <stan/math/prim/mat/fun/Eigen.hpp>
namespace stan {
namespace math {
/** Return the multiplication of the sparse matrix spefcifie... |
<commit_before>#ifndef __STAN__PROB__DISTRIBUTIONS_ERROR_HANDLING_HPP__
#define __STAN__PROB__DISTRIBUTIONS_ERROR_HANDLING_HPP__
#include <boost/math/policies/policy.hpp>
#include "stan/agrad/agrad.hpp"
namespace stan {
namespace prob {
// reimplementing: #include <boost/math/distributions/detail/common_error... |
<commit_before>/* ---------------------------------------------------------------------
* Numenta Platform for Intelligent Computing (NuPIC)
* Copyright (C) 2013, Numenta, Inc. Unless you have an agreement
* with Numenta, Inc., for a separate license for this software code, the
* following terms and conditions app... |
<commit_before>/*
* Copyright (C) 2019 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless ... |
<commit_before>// MOOSE includes
#include "ResponseHistoryMean.h"
#include "PostprocessorInterface.h"
#include "VectorPostprocessorInterface.h"
#include "MastodonUtils.h"
#include "ResponseHistoryBuilder.h"
registerMooseObject("MastodonApp", ResponseHistoryMean);
template <>
InputParameters
validParams<ResponseHistor... |
<commit_before>#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
#include <sstream>
#include "SSDB_client.h"
#include "gtest/gtest.h"
#include "ssdb_test.h"
//log info when set true
const bool LDEBUG = false;
using namespace std;
class RobustTest : public SSDBTest
{
public:
ssdb:... |
<commit_before>#include <node.h>
#include <v8.h>
#include <dns_sd.h>
#include <mutex>
#include <map>
using namespace v8;
using namespace node;
using namespace std;
Persistent<Function> AdvertisementConstructor;
Persistent<Function> BrowserConstructor;
Persistent<Function> Require;
map<DNSServiceRef volatile *, Local<... |
<commit_before>#include "QDMEwald.hpp"
#include <vector>
Kokkos::initialize();
{
// testing the initialization with different data types
QDMEwald<double> qdme_d(1.0, 1.0, 1.0);
QDMEwald<float> qdme_f(1.0f, 1.0f, 1.0f);
QDMEwald<long double> qdme_ld(1.0l, 1.0l, 1.0l);
// testing system size
double l = 1.0... |
<commit_before>/*
* Copyright (c) 2015 The Jackson Laboratory
*
* This software was developed by Gary Churchill's Lab at The Jackson
* Laboratory (see http://research.jax.org/faculty/churchill).
*
* This is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public Licens... |
<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>/* -*-c++-*- OpenThreads library, Copyright (C) 2002 - 2007 The Open Thread Group
*
* This library is open source and may be redistributed and/or modified under
* the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or
* (at your option) any later version. The full license is in LI... |
<commit_before>/*
* ArcEmu MMORPG Server
* Copyright (C) 2008 <http://www.ArcEmu.org/>
*
* 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
* any l... |
<commit_before>// __BEGIN_LICENSE__
// Copyright (C) 2006-2010 United States Government as represented by
// the Administrator of the National Aeronautics and Space Administration.
// All Rights Reserved.
// __END_LICENSE__
// What's this file supposed to do ?
//
// (Pho)tometry (It)eration (Error) Update
//
// Equat... |
<commit_before>// __BEGIN_LICENSE__
// Copyright (C) 2006-2011 United States Government as represented by
// the Administrator of the National Aeronautics and Space Administration.
// All Rights Reserved.
// __END_LICENSE__
#include <vw/Image.h>
#include <vw/Camera.h>
#include <vw/FileIO.h>
#include <vw/Cartography.h... |
<commit_before>#include "configuration_monitor.hpp"
#include "constants.hpp"
#include "cxxopts/cxxopts.hpp"
#include "logger.hpp"
#include <iostream>
namespace {
void select_profile(const std::string& name) {
krbn::configuration_monitor monitor(krbn::constants::get_user_core_configuration_file_path(),
... |
<commit_before>/*
* Copyright (C) 2003-2006 Funambol
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This ... |
<commit_before>/*
Copyright (c) 2012, The Cinder Project, All rights reserved.
This code is intended for use with the Cinder C++ library: http://libcinder.org
Redistribution and use in source and binary forms, with or without modification, are permitted provided that
the following conditions are met:
* Redis... |
<commit_before>/************************************************************
*
* OPEN TRANSACTIONS
*
* Financial Cryptography and Digital Cash
* Library, Protocol, API, Server, CLI, GUI
*
* -- Anonymous Numbered Accounts.
* -- Untraceable Digital Cash.
* -- Triple-... |
<commit_before>#include "image.h"
#if defined(NULL)
#undef NULL // sys/param defines this
#endif
#include <sys/param.h>
#include <sys/vmparam.h>
/*
Return starting address of the data segment
*/
extern int __data_start;
int
data_start_addr()
{
return USRDATA;
}
/*
Return ending address of the data segment
*/
... |
<commit_before>/*********************************************************************************
*
* Inviwo - Interactive Visualization Workshop
*
* Copyright (c) 2012-2020 Inviwo Foundation
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permit... |
<commit_before>//
// Created by dar on 2/29/16.
//
#include "EntityDoor.h"
EntityDoor::EntityDoor(Map *map, unsigned char type) : EntityMoving(map, 1.0, 0.25), type(type) {
b2PolygonShape shape;
shape.SetAsBox(0.5 - 0.05, 0.125);
b2FixtureDef fixDef;
fixDef.shape = &shape;
fixDef.density = 0.9f;
... |
<commit_before>/*
* Markdown.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 Publ... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** Contact: Qt Software Information (qt-info@nokia.com)
**
** This file is part of the QtDeclarative module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL... |
<commit_before>/***************************************************************************
* Copyright (C) 2003 by *
* Unai Garro (ugarro@users.sourceforge.net) *
* Cyril Bosselut (bosselut@b1project.com) *
... |
<commit_before>#include "SkColorPriv.h"
#include "SkTableColorFilter.h"
#include "SkUnPreMultiply.h"
class SkTable_ColorFilter : public SkColorFilter {
public:
SkTable_ColorFilter(const uint8_t tableA[], const uint8_t tableR[],
const uint8_t tableG[], const uint8_t tableB[]) {
fFlag... |
<commit_before>/*
===========================================================================
Daemon BSD Source Code
Copyright (c) 2013-2016, 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>/******************************************************************
Copyright 2014, Jiang Xiao-tang
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... |
<commit_before>#include "ffmpeg_video_target.h"
#include "except.h"
#ifdef GENERATE_PERFORMANCE_OUTPUT
#include <boost/timer/timer.hpp>
#endif
namespace gg
{
VideoTargetFFmpeg::VideoTargetFFmpeg(const std::string codec) :
_codec(NULL),
_codec_name(""),
_frame(NULL),
_first_frame(true),
_framerate... |
<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><commit_msg>Set up country id after editing.<commit_after><|endoftext|> |
<commit_before>#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <queue>
#include <stack>
#include <cmath>
using namespace std;
struct node {
int i;
int j;
int uc;
double hc;
double tc;
node *p;
node *c1;
node *c2;
node *c3;
node *c4;
node()
{
i = 1;
j = 1;
uc = ... |
<commit_before># ifndef BUW_LIST_HPP
# define BUW_LIST_HPP
# include <iostream>//debug
# include <cstddef>
// List . hpp
template < typename T >
struct List ;
template < typename T >
struct ListNode
{
ListNode():
m_value(), m_prev(nullptr), m_next(nullptr) {}
ListNode(T const& v, ListNode *prev, ListNode *next )... |
<commit_before>/*************************************************************************
*
* $RCSfile: AccessiblePageHeader.cxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: sab $ $Date: 2002-05-31 08:06:59 $
*
* The Contents of this file are made available subject to the terms of
* either of the fo... |
<commit_before>#include <sys/types.h>
#include <sys/ioctl.h>
#include <unistd.h>
#include <arpa/inet.h> // manipulação de endereços IP
#include <linux/if_ether.h>
#include <net/ethernet.h>
#include <net/if.h> // ifr struct
#include <netinet/ether.h> // header ethernet
#include <netinet/in.h> ... |
<commit_before>/* Nom: main.cpp
* Description: module sous-système de contrôle: gestion du dialogue
avec l'utilisateur et interface graphique
* Date: 08.02.2014
* version : 1.0
* responsable du module : Pauline Maury Laribière
* groupe : Alexandre Devienne, Pauline Maury Laribière
*/
#include <stdio.h>
#inc... |
<commit_before>#include "mainwindow.h"
#include <QWebView>
#include <QtWidgets>
#include <QWebFrame>
#include <QDir>
#include <QApplication>
#include <QDebug>
#include <QWebPage>
#include <QObject>
#include <QWindow>
#include <QWebInspector>
/*
* Utility:
* ./exectuable pageAddress width height decoration (BOTTOM_... |
<commit_before>/*
* Copyright (c) 2015 Cryptonomex, Inc., and contributors.
*
* The MIT License
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without... |
<commit_before>// -------------------------------------------------------------------------
// @FileName : NFMapEx.h
// @Author : LvSheng.Huang
// @Date : 2012-03-01
// @Module : ָר,мǣѭԼɾԼ
//
// -------------------------------------------------------... |
<commit_before>/*
* qdespot1.cpp - Part of QUantitative Imaging Tools
*
* Copyright (c) 2015 Tobias Wood.
*
* 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/.
... |
<commit_before>// Copyright (C) 2014 Sean Middleditch, all rights reserverd.
#include "yardstick.h"
#if !defined(NO_YS)
#include <atomic>
#include <cstring>
#include <vector>
#include <mutex>
// we need this on Windows for the default clock
#if defined(_WIN32)
# define WIN32_LEAN_AND_MEAN
# include <windows.h>
#end... |
<commit_before>/*
* Elliptic curves over GF(p)
*
* (C) 2007 Martin Doering, Christoph Ludwig, Falko Strenzke
* 2008 Jack Lloyd
*
* Distributed under the terms of the Botan license
*/
#include <botan/curve_gfp.h>
#include <botan/bigint.h>
#include <assert.h>
#include <ostream>
namespace Botan {
void CurveGFp::set... |
<commit_before>/*************************************************************************/
/* pipeline_cache_rd.cpp */
/*************************************************************************/
/* This file is part of: */
/... |
<commit_before>// Copyright Hugh Perkins 2016, 2017
// 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 ... |
<commit_before>#ifndef ___INANITY_MATH_GEOMETRY_HPP___
#define ___INANITY_MATH_GEOMETRY_HPP___
#include "basic.hpp"
BEGIN_INANITY_MATH
template <typename T>
xmat<T, 4, 4> CreateTranslationMatrix(const xvec<T, 3>& translation)
{
xmat<T, 4, 4> r = identity_mat<T, 4>();
r(0, 3) = translation(0);
r(1, 3) = translatio... |
<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/sky/shell/platform/android/platform_view_android.h"
#include <EGL/egl.h>
#include <android/input.h>
#include <android/n... |
<commit_before>#include "../test.h"
#include "../qimage_drawer_with_updating.h"
#include "../../src/placement/labeller.h"
#include "../../src/placement/constraint_updater.h"
#include "../../src/placement/persistent_constraint_updater.h"
#include "../../src/labelling/labels.h"
#include "../../src/utils/image_persister.h... |
<commit_before>/*************************************************************************/
/* video_stream_gdnative.cpp */
/*************************************************************************/
/* This file is part of: */
/... |
<commit_before>#include "../test.h"
#include "../qimage_drawer_with_updating.h"
#include "../../src/placement/labeller.h"
#include "../../src/placement/constraint_updater.h"
#include "../../src/placement/anchor_constraint_drawer.h"
#include "../../src/placement/shadow_constraint_drawer.h"
#include "../../src/placement/... |
<commit_before>#include "targetver.h"
#include "spipc.h"
#include <stdio.h>
#include <tchar.h>
#include <thread>
namespace spipc { namespace testing {
class Memory_Transport: public sprot::Transport_Interface
{
public:
Memory_Transport();
virtual size_t read(void* buf, size_t buf_size, size_t tim... |
<commit_before>/*
* ForestFireGenerator.cpp
*
* Created on: 17.01.2014
* Author: cls
*/
#include "DynamicForestFireGenerator.h"
#include "../auxiliary/Random.h"
#include "../auxiliary/Log.h"
#include <set>
#include <unordered_map>
#include <queue>
namespace NetworKit {
typedef std::function<std::vector<no... |
<commit_before>/* The MIT License:
Copyright (c) 2015 Ivan Gagis <igagis@gmail.com>
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... |
<commit_before>
#include <gloperate-qt/viewer/UpdateManager.h>
#include <QTime>
#include <gloperate/viewer/ViewerContext.h>
namespace gloperate_qt
{
UpdateManager::UpdateManager(gloperate::ViewerContext * viewerContext)
: m_viewerContext(viewerContext)
{
// Connect update timer
QObject::connect(
&... |
<commit_before>#include <boost/thread.hpp>
#include <cassert>
#include <ir/index_manager/index/IndexMergeManager.h>
#include <ir/index_manager/index/IndexMerger.h>
#include <ir/index_manager/index/BTMerger.h>
#include <ir/index_manager/index/OptimizeMerger.h>
#include <ir/index_manager/index/IndexReader.h>
#in... |
<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 "server.h"
#ifndef SERVER_ROBOBO
#define SERVER_ROBOBO
class Server {
public:
Server(std::tr1::unordered_map<std::string, std::string> serverConfig);
void parseCapab(std::vector<std::string> line005);
void sendMsg(std::string message);
bool isConnected();
private:
std::string receiv... |
<commit_before>#include <string>
#include <boost/asio.hpp>
#include <boost/bind.hpp>
#include <boost/enable_shared_from_this.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/thread.hpp>
#include <boost/thread/locks.hpp>
namespace asio = boost::asio;
namespace ip = asio::ip;
namespace placeholders = asio::placeho... |
<commit_before>/** tutorial/Ex2
* This example shows how to set and solve the weak form of the Poisson problem
* $$ \Delta u = 1 \text{ on }\Omega, $$
* $$ u=0 \text{ on } \Gamma, $$
* on a square domain $\Omega$ with boundary $\Gamma$;
* all the coarse-level meshes are removed;
* a mu... |
<commit_before>#include "ofxLSGrammarParametric.h"
vector<string> ofxLSGrammarParametric::generateSentence(vector<string> ruleListString, int _numberOfSteps, string _axiom, map<string,float> _constants){
vector<string> finalSentences;
finalSentences.push_back(_axiom);
auto ruleList = getRules(ruleListStri... |
<commit_before>#include "opt/pipeline/pipeliner.h"
#include "design/design_tool.h"
#include "design/design_util.h"
#include "iroha/i_design.h"
#include "iroha/resource_class.h"
#include "opt/loop/loop_block.h"
#include "opt/optimizer_log.h"
#include "opt/pipeline/reg_info.h"
#include "opt/pipeline/shape.h"
#include "o... |
<commit_before>#include <boost/thread.hpp>
#include <boost/chrono.hpp>
#include <C5G/C5G.h>
#include <C5G/userCallback.h>
#include <eORL.h>
#include <sstream>
namespace C5G{
static ORL_cartesian_position pose2ORL(const Pose& p){
static const double RAD_TO_DEG=57.2957795130824;
ORL_cartesian_position target... |
<commit_before>// sodiumcryptoraead.cpp -- Authenticated Encryption with Added Data
//
// Copyright (C) 2017 Farid Hajji <farid@hajji.name>. All rights reserved.
#include "sodiumcryptoraead.h"
#include "sodiumkey.h"
#include "sodiumnonce.h"
#include <stdexcept>
#include <vector>
#include <string>
Sodium::CryptorAEA... |
<commit_before>//============================================================================
// Name : Texture.h
// Author : Duarte Peixinho
// Version :
// Copyright : ;)
// Description : Texture
//============================================================================
#include "Texture.h"
#i... |
<commit_before>#include "array.h"
#include "test.h"
namespace array {
TEST(euclidean_div_mod) {
const int values[] = {
-1000, -100, -10, -2, -1, 0, 1, 2, 10, 100, 1000,
};
for (int b : values) {
if (b == 0) continue;
for (int a : values) {
int q = internal::euclidean_div(a, b);
int r = ... |
<commit_before>/**
* @author Mike Bogochow
* @version 2.4.0, Dec 8, 2015
*
* @file Auctioneer.cpp
*
* Auctioneer class implementation
*/
#include "Auctioneer.h"
#include "../lib_graphs/defs.h"
#include "../lib_auction/AuctionDefs.h"
#include "../lib_auction/DebugPrinter.h"
#include "MBUtils.h"
#include <boost... |
<commit_before>#include <iostream>
int main()
{
std::cout << "Hello, World!" << std::endl;
return 0;
}
<commit_msg>Change std::endl to \n<commit_after>#include <iostream>
int main()
{
std::cout << "Hello, World!\n";
return 0;
}
<|endoftext|> |
<commit_before>#include "CppUTest/TestHarness.h"
#include "CppUTestExt/MockSupport.h"
#include <testfunctions.h>
#include <include/amici_hdf5.h>
#include <include/amici_interface_cpp.h>
#include <cstring>
#include "wrapfunctions.h"
TEST_GROUP(groupDirac)
{
void setup() {
}
void teardown() {
}
};
... |
<commit_before>/**
* @file restclient.cpp
* @brief implementation of the restclient class
* @author Daniel Schauenberg <d@unwiredcouch.com>
*/
/*========================
INCLUDES
========================*/
#include "include/restclient.h"
#include <cstring>
#include <string>
#include <iostream>
#include... |
<commit_before>// std and boost utils
#include <boost/format.hpp>
template<typename... Args>
constexpr auto fmt(Args &&... args) {
return (boost::format(std::forward<Args>(args)...));
}
#include <iostream>
// bloblib and opencv
#include "opencv2/core.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/imgcodecs.... |
<commit_before>// ==========================================================================
// SeqAn - The Library for Sequence Analysis
// ==========================================================================
// Copyright (c) 2006-2015, Knut Reinert, FU Berlin
// All rights reserved.
//
// Redist... |
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-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.
#include "primitives/transaction.h"
#include "hash.h"
#include "t... |
<commit_before>// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2014 The Syscoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "primitives/transaction.h"
#include "hash.h"
#include "t... |
<commit_before>/**
******************************************************************************
* Xenia : Xbox 360 Emulator Research Project *
******************************************************************************
* Copyright 2013 Ben Vanik. All rights reserved. ... |
<commit_before>#include "askpassphrasedialog.h"
#include "ui_askpassphrasedialog.h"
#include "guiconstants.h"
#include "walletmodel.h"
#include <QMessageBox>
#include <QPushButton>
#include <QKeyEvent>
extern bool fWalletUnlockStakingOnly;
AskPassphraseDialog::AskPassphraseDialog(Mode mode, QWidget *parent) :
Q... |
<commit_before>// Copyright (c) 2016 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "rpcnestedtests.h"
#include "chainparams.h"
#include "consensus/validation.h"
#include "validation.h"
#in... |
<commit_before>#include "stdafx.h"
#include "AnnGameObject.hpp"
#include "AnnLogger.hpp"
#include "AnnGetter.hpp"
#include "AnnException.hpp"
using namespace Annwvyn;
AnnGameObject::AnnGameObject() :
Node(nullptr), Model(nullptr), currentAnimation(nullptr),
Shape(nullptr),
Body(nullptr),
bodyMass(0),
audioSource... |
<commit_before>
#include <iostream>
#include <hdf5.h>
#include <pandora/BaseContainer.hpp>
namespace pandora {
bool BaseContainer::attrExists( std::string name ) const {
return H5Aexists(h5group.getId(), name.c_str());
}
bool BaseContainer::objectExists( std::string path ) const {
htri_t ret = H5Lexists(h5grou... |
<commit_before>/**
* Copyright (c) 2015 - The CM Authors <legal@clickmatcher.com>
* All Rights Reserved.
*
* This file is CONFIDENTIAL -- Distribution or duplication of this material or
* the information contained herein is strictly forbidden unless prior written
* permission is obtained.
*/
#include "CTRStats... |
<commit_before>#include <CQCustomCombo.h>
#include <QListWidgetItem>
#include <QItemDelegate>
#include <QPainter>
#include <QApplication>
class CQCustomComboItem : public QListWidgetItem {
public:
CQCustomComboItem(CQCustomCombo *combo, const QString &str);
virtual ~CQCustomComboItem() { }
void setIsTitle(boo... |
<commit_before>#ifndef CENTRALWIDGET_HPP
#define CENTRALWIDGET_HPP
#include <QtGui>
#include <QString>
#include <QComboBox>
#include <QHBoxLayout>
#include "Environments.hpp"
#include "addNewEnvDialog.hpp"
#include "ChangeEnvDataDialog.hpp"
class CentralWidget : public QWidget {
Q_OBJECT
public:
CentralWidget(QWi... |
<commit_before>// Copyright 2016 The SwiftShader 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/licenses/LICENSE-2.0
//
// Un... |
<commit_before>// For conditions of distribution and use, see copyright notice in license.txt
#include "DebugOperatorNew.h"
#include "UiAPI.h"
#include "UiMainWindow.h"
#include "UiGraphicsView.h"
#include "QtUiAsset.h"
#include "UiProxyWidget.h"
#include "Application.h"
#include "Framework.h"
#include "AssetAPI.h"
... |
<commit_before>#include "HalideRuntime.h"
extern "C" {
extern void *malloc(size_t);
extern void free(void *);
}
namespace Halide { namespace Runtime { namespace Internal {
WEAK void *aligned_malloc(size_t alignment, size_t size) {
// We also need to align the size of the buffer.
size = (size + alignment - ... |
<commit_before>#include "pch.h"
#include "DeviceManager.h"
#include "DspMatrix.h"
namespace SaneAudioRenderer
{
namespace
{
const auto WindowClass = L"SaneAudioRenderer::DeviceManager";
const auto WindowTitle = L"";
enum
{
WM_CHECK_BITSTREAM_FORMAT = ... |
<commit_before>#include "Common.hh"
#include "DynamicHandler.hh"
#include "Log.hh"
#include <clang/Rewrite/Core/Rewriter.h>
using namespace clang;
using namespace clang::ast_matchers;
void DynamicHandler::run(const MatchFinder::MatchResult &Result) {
log(Debug, "Handling possible reorderable loop");
if(const Fo... |
<commit_before>#include <FWApplication.h>
#include <Dialog.h>
#include <GridView.h>
#include <TableLayout.h>
#include <PlatformThread.h>
#include <SysEvent.h>
#include <LinearLayout.h>
#include <TextLabel.h>
#include <TextField.h>
#include <Button.h>
using namespace std;
class AppMessageDialog : public Dialog {
pub... |
<commit_before>/*
* Copyright (C) 2017 Mario Alviano (mario@alviano.net)
*
* 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
*
* U... |
<commit_before>#include "Blinker.hpp"
using namespace HomieInternals;
BlinkerClass::BlinkerClass()
: _lastBlinkPace(0)
// , _interface(nullptr) causes exception ???
{
}
void BlinkerClass::attachInterface(Interface* interface) {
this->_interface = interface;
}
void BlinkerClass::start(float blinkPace) {
Serial.p... |
<commit_before>//------------------------------------------------------------------------------
// Copyright (c) 2016 by contributors. 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 o... |
<commit_before>#include <string>
#include <vector>
#include <map>
#include "MessageCenter.h"
MessageCenter::addObserver(std::string message, void (*function)(void)) {
if(i_messages.find(message) == i_messages.end()) { // string already a key
messages[message].push_back(void (*function)(void)); // is this the righ... |
<commit_before>/*
* NotebookPlots.cpp
*
* Copyright (C) 2009-16 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>/* -*- Mode: C++; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of signon
*
* Copyright (C) 2009-2010 Nokia Corporation.
*
* Contact: Aurel Popirtac <ext-aurel.popirtac@nokia.com>
* Contact: Alberto Mardegan <alberto.mardegan@nokia.com>
*
* This library is free software; ... |
<commit_before>#include "lapacke.h"
#include "cblas.h"
#include "external/ThreadPool.h"
#include <vector>
#include <random>
#include <chrono>
#include <iostream>
#include <list>
#include <sys/sysinfo.h>
#include <unistd.h>
using namespace std::chrono;
/**
* Calls the getrf/getri lapack routines to invert a matrix... |
<commit_before>/*
* SnapFind
* An interactive image search application
* Version 1
*
* Copyright (c) 2002-2005 Intel Corporation
* 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 USE,... |
<commit_before>/* IBM_PROLOG_BEGIN_TAG */
/* This is an automatically generated prolog. */
/* */
/* $Source: src/import/chips/p10/utils/imageProcs/p10_ring_id.H $ ... |
<commit_before>#include "Shapes.hpp"
#include <sstream>
#include <cctype>
#include <utki/debug.hpp>
#include "../util.hxx"
#include "../Visitor.hpp"
using namespace svgdom;
void PathElement::accept(Visitor& visitor) const{
visitor.visit(*this);
}
void RectElement::accept(Visitor& visitor) const {
visitor.visit(... |
<commit_before>/****************************************************************************
*
* Copyright (c) 2018 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 met:
*... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.