text stringlengths 54 60.6k |
|---|
<commit_before>/*
* Copyright (c) 2015,2018 Immo Software
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* o Redistributions of source code must retain the above copyright notice, this list
* of conditions a... |
<commit_before>//===-- SIOptimizeExecMaskingPreRA.cpp ------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===------------... |
<commit_before>//
// interpreter.cpp
// SimpleInformationRetrievalTools
//
// Created by ryecao on 6/9/15.
// Copyright (c) 2015 Zhendong Cao. All rights reserved.
//
#include "Interpreter.h"
#include <iostream>
#include <sstream>
#include <string>
#include <cctype>
using namespace std;
vector<pair<string,string... |
<commit_before>#include "ConstantMaterial.h"
template <>
InputParameters
validParams<ConstantMaterial>()
{
InputParameters params = validParams<Material>();
params.addParam<Real>("value", 0., "Constant value being assigned into the property");
params.addRequiredParam<std::string>("property_name", "The property n... |
<commit_before>/*
Calendar access for KDE Alarm Daemon.
This file is part of the KDE alarm daemon.
Copyright (c) 2001 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>// Include Radium base application and its simple Gui
#include <Gui/BaseApplication.hpp>
#include <Gui/RadiumWindow/SimpleWindowFactory.hpp>
// include the core geometry/appearance interface
#include <Core/Geometry/MeshPrimitives.hpp>
// include the Engine/entity/component/system/animation interface
#i... |
<commit_before>/* This file is part of the KDE project
Copyright (C) 2006 Matthias Kretz <kretz@kde.org>
This program 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.
This program i... |
<commit_before>// PWM output a 4Mhz Square Wave
// by dotnfc@163.com
//
// Assembled by dotnfc as Arducleo Sample
// 2016/08/23
#include "mbed.h"
#include "PwmOutEx.h"
PwmOutEx mypwm(PWM_OUT, 4000000);
DigitalOut myled(LED1);
int main()
{
printf ("4Mhz frequency on PA1/A1 pin.\n");
while(1) {
myl... |
<commit_before>//******************************************************************
//
// Copyright 2014 Intel Mobile Communications GmbH All Rights Reserved.
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use th... |
<commit_before>/*
* Copyright 2016, Simula Research Laboratory
*
* 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 <iostream>
#include <fstream>
#include... |
<commit_before>// MIT License
//
// Copyright (c) 2017-2018 Artur Wyszyński, aljen at hitomi dot pl
//
// 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>/**
* @file PipeProcess.hpp
* @brief PipeProcess class prototype.
* @author zer0
* @date 2016-05-19
*/
#ifndef __INCLUDE_LIBTBAG__LIBTBAG_PROCESS_PIPEPROCESS_HPP__
#define __INCLUDE_LIBTBAG__LIBTBAG_PROCESS_PIPEPROCESS_HPP__
// MS compatible compilers support #pragma once
#if defined(_MSC_VER... |
<commit_before>
#include "ksp_plugin/planetarium.hpp"
#include <vector>
#include "geometry/point.hpp"
namespace principia {
namespace ksp_plugin {
namespace internal_planetarium {
using geometry::Position;
using geometry::RP2Line;
using quantities::Time;
Planetarium::Parameters::Parameters(double const sphere_rad... |
<commit_before>/*
Copyright (c) 2008-2020 Jan W. Krieger (<jan@jkrieger.de>)
last modification: $LastChangedDate$ (revision $Rev$)
This software is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License (LGPL) as published by
the Fr... |
<commit_before>/*------------------------------------------------------------------------
* Copyright (c) 2015 The Khronos Group Inc.
* Copyright (c) 2015 Samsung Electronics Co., Ltd.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and/or associated documentatio... |
<commit_before>/*
* Copyright (c) 2013 Nicholas Corgan (n.corgan@gmail.com)
*
* Distributed under the MIT License (MIT) (See accompanying file LICENSE.txt
* or copy at http://opensource.org/licenses/MIT)
*/
#include <math.h>
#include <time.h>
#include <boost/assign.hpp>
#include "spec_pkmn_gen345impl.hpp"
usin... |
<commit_before>/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
*
* Gearmand client and server library.
*
* Copyright (C) 2013 Data Differential, http://datadifferential.com/
* Copyright (C) 2013 Keyur Govande
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
... |
<commit_before>/*****************************************************************************
* Project: RooFit *
* Package: RooFitModels *
* @(#)root/roofit:$Id$
* Authors: ... |
<commit_before>#include "@HEADER@"
// TODO Insert code here.
void @CLASS@::foo()
{
}
<commit_msg>Tweaked scaf.cpp<commit_after>#include "@HEADER@"
void @CLASS@::foo()
{
// TODO Insert code here.
}
<|endoftext|> |
<commit_before>/** events.cc -*- C++ -*-
Rémi Attab, 18 Apr 2014
Copyright (c) 2014 Datacratic. All rights reserved.
Publishable event implementation.
*/
#include "events.h"
#include "soa/service/zmq_endpoint.h"
#include "soa/service/zmq_named_pub_sub.h"
using namespace ... |
<commit_before>#pragma once
#include <memory>
#include <vector>
#include <boost/thread/tss.hpp>
#include "blackhole/attribute.hpp"
#include "blackhole/detail/config/atomic.hpp"
#include "blackhole/detail/config/noncopyable.hpp"
#include "blackhole/detail/config/nullptr.hpp"
#include "blackhole/detail/util/unique.hpp... |
<commit_before>/*
* mkContext.cpp
* MonkVG-XCode
*
* Created by Micah Pearlman on 2/22/09.
* Copyright 2009 Monk Games. All rights reserved.
*
*/
#include "mkContext.h"
#include "glPath.h"
using namespace MonkVG;
//static VGContext *g_context = NULL;
VG_API_CALL VGboolean vgCreateContextSH(VGint width, VG... |
<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) 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>#include <sirius.h>
#include <thread>
using namespace sirius;
void test_fft_omp(vector3d<int>& dims__)
{
printf("test of threaded FFTs (OMP version)\n");
int max_num_threads = Platform::max_num_threads();
std::vector< std::pair<int, int> > threads_conf;
for (int i = 1; i <= max_num_th... |
<commit_before>#include "cinder/app/AppNative.h"
#include "cinder/gl/gl.h"
#include "cinder/Rand.h"
#include "entityx/Event.h"
#include "entityx/Entity.h"
#include "entityx/System.h"
#include "pockets/Types.h"
#include "puptent/Rendering.h"
using namespace ci;
using namespace ci::app;
using namespace std;
using nam... |
<commit_before>#include <iostream>
#include <ros/ros.h>
#include "../libraries/nodes/ConverterNode.h"
int main (int argc,char* argv[])
{
ros::init(argc, argv, "CONVERTER");
ConverterNode converterNode;
ros::spin();
return 0;
}
<commit_msg>moving all to branch 2D<commit_after>#include <iostream>
#incl... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: vbaworksheets.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Date: 2007-04-25 16:14:08 $
*
* The Contents of this file are ... |
<commit_before>/*
* PosixFileScanner.cpp
*
* Copyright (C) 2009-11 by RStudio, Inc.
*
* This program is licensed to you under the terms of version 3 of the
* GNU Affero General Public License. This program is distributed WITHOUT
* ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,
* MERCHANTA... |
<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>
#include <memory.h>
#include <netinet/in.h>
#include <util/util.h>
extern "C" {
#include <libbinpac/libbinpac++.h>
}
#undef DBG_LOG
#include "Pac2Analyzer.h"
#include "Plugin.h"
#include "Manager.h"
#include "LocalReporter.h"
#include "profile.h"
using namespace bro::hilti;
using namespace binpac;
... |
<commit_before>#pragma once
#include <vector>
#include <memory>
#include <utility>
#include <functional>
#include "Indexer.hpp"
namespace Core
{
template <typename Key, typename Object, class IndexerClass>
class VectorIndexer
{
public:
using IndexerType = IndexerClass;
using VectorType = std::vector<Object>;
... |
<commit_before>#include "estimator/dcm_attitude_estimator.hpp"
#include "protocol/messages.hpp"
#include "unit_config.hpp"
DCMAttitudeEstimator::DCMAttitudeEstimator(Communicator& communicator)
: dcm(Eigen::Matrix3f::Identity()),
attitudeMessageStream(communicator, 20) {
}
attitude_estimate_t DCMAttitudeEstim... |
<commit_before>/* bzflag
* Copyright (c) 1993 - 2007 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
* IMPLI... |
<commit_before>/*
-----------------------------------------------------------------------------
This source file is part of OGRE
(Object-oriented Graphics Rendering Engine)
For the latest info, see http://www.ogre3d.org/
Copyright (c) 2000-2009 Torus Knot Software Ltd
Also see acknowledgements in Readme.html
You ... |
<commit_before>#include "StateSpace.h"
// NOTE: cannot initialise angle_bins or velocity_bins here as they are static. Also space is not a field of StateSpace and
// _angle_max and _velocity_max are not declared.
StateSpace::StateSpace(PriorityQueue<int,double> queue ):
space1(_angle_max, std::vector< PriorityQueue<i... |
<commit_before>/**
* @file StateSpace.cpp
*
* @brief Implementation file for StateSpace class.
*
* @author Machine Learning Team 2015-2016
* @date March, 2016
*/
#include "StateSpace.h"
int StateSpace::angle_bins;
int StateSpace::velocity_bins;
/**
* Creates a state space object initialised w... |
<commit_before>/*!
* \file painter_brush.cpp
* \brief file painter_brush.cpp
*
* Copyright 2016 by Intel.
*
* Contact: kevin.rogovin@intel.com
*
* 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... |
<commit_before>/****************************************************************************
**
** This file is part of the CAMP library.
**
** The MIT License (MIT)
**
** Copyright (C) 2009-2014 TEGESO/TEGESOFT and/or its subsidiary(-ies) and mother company.
** Contact: Tegesoft Information (contact@tegesoft.com)
**
*... |
<commit_before>/******************************************************************************
** Filename: cutoffs.c
** Purpose: Routines to manipulate an array of class cutoffs.
** Author: Dan Johnson
**
** (c) Copyright Hewlett-Packard Company, 1988.
** Licensed under the Apache License, Version 2.... |
<commit_before>/***********************************************************************************************************************
* Copyright (C) 2016 Andrew Zonenberg and contributors *
* ... |
<commit_before>// Copyright (c) 2012 Intel Corp
// Copyright (c) 2012 The Chromium Authors
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limi... |
<commit_before>
#include "astronomy/date.hpp"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "testing_utilities/almost_equals.hpp"
#include "testing_utilities/numerics.hpp"
namespace principia {
namespace astronomy {
namespace internal_date {
using quantities::si::Micro;
using testing_utilities::Absolute... |
<commit_before>#include <iostream>
#include <curl/curl.h>
#include <string>
#include <sstream>
#include <fstream>
#include "rapidjson/document.h"
#include "geojson.h"
#include "tileData.h"
#include "earcut.hpp"
#include "objexport.h"
#include "aobaker.h"
namespace mapbox {
namespace util {
template <>
struct nth<0, P... |
<commit_before>#include <ros/ros.h>
#include <tf/transform_broadcaster.h>
#include <nav_msgs/Odometry.h>
#include <ax2550/Encoders.h>
int wheel1_new, wheel2_new, wheel3_new, wheel4_new;
double dt_front, dt_rear;
double x = 0.0;
double y = 0.0;
double th = 0.0;
double vx = 0.0;
double vy = 0.0;
double v... |
<commit_before>
#include "../Flare.h"
#include "FlareMenuPawn.h"
#include "FlarePlayerController.h"
/*----------------------------------------------------
Constructor
----------------------------------------------------*/
AFlareMenuPawn::AFlareMenuPawn(const class FObjectInitializer& PCIP)
: Super(PCIP)
, Initial... |
<commit_before>//
// Copyright (c) 2008-2018 the Urho3D project.
//
// 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, ... |
<commit_before>#include "../checkpoint/checkpoint.h"
#include "myrandom/myrand.h"
#include <array> // for std::array
#include <cstdint> // for std::uint32_t
#include <functional> // for std::hash
#include <iomanip> // for std::setiosflags, std... |
<commit_before>//
// OSGEventHandler.cpp
//
// Handle OSG events, turn them into VTP events.
//
// Copyright (c) 2011 Virtual Terrain Project
// Free for all uses, see license.txt for details.
//
#include "vtlib/vtlib.h"
#include "OSGEventHandler.h"
#include "vtdata/vtLog.h"
#define GEA osgGA::GUIEventA... |
<commit_before>#include <string>
#include "protagonist.h"
#include "drafter.h"
#include "refractToV8.h"
using std::string;
using namespace v8;
using namespace protagonist;
NAN_METHOD(protagonist::ParseSync) {
Nan::HandleScope scope;
// Check arguments
if (info.Length() != 1 && info.Length() != 2) {
... |
<commit_before>//===-- CommandObjectDisassemble.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 © 2001-2014, Canal TP and/or its affiliates. All rights reserved.
This file is part of Navitia,
the software to build cool stuff with public transport.
Hope you'll enjoy and contribute to this project,
powered by Canal TP (www.canaltp.fr).
Help us simplify mobility and open publ... |
<commit_before>#include "pescanner.h"
#include "fastqreader.h"
#include <iostream>
#include "htmlreporter.h"
#include <unistd.h>
#include <functional>
#include <thread>
#include <memory.h>
#include "util.h"
PairEndScanner::PairEndScanner(string fusionFile, string refFile, string read1File, string read2File, string htm... |
<commit_before>//
// PROJECT: Aspia Remote Desktop
// FILE: base/file_enumerator.cc
// LICENSE: See top-level directory
// PROGRAMMERS: Dmitry Chapyshev (dmitry@aspia.ru)
//
#include "base/file_enumerator.h"
#include "base/version_helpers.h"
#include "base/logging.h"
namespac... |
<commit_before>/**************************************************************************
**
** This file is part of QMime
**
** Based on Qt Creator source code
**
** Qt Creator Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
**
**
** GNU Lesser General Public License Usage
**
** This file may be use... |
<commit_before>// @(#)root/base:$Name: $:$Id: TVirtualPS.cxx,v 1.12 2005/09/02 07:51:51 brun Exp $
// Author: Rene Brun 05/09/99
/*************************************************************************
* Copyright (C) 1995-2000, Rene Brun and Fons Rademakers. *
* All rights reserved. ... |
<commit_before>#include "SkBenchmark.h"
#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkColorPriv.h"
#include "SkGradientShader.h"
#include "SkPaint.h"
#include "SkShader.h"
#include "SkString.h"
#include "SkUnitMapper.h"
struct GradData {
int fCount;
const SkColor* fColors;
const SkSc... |
<commit_before>
// g++-4.2 -O3 -DNDEBUG -I.. benchBlasGemm.cpp /usr/lib/libcblas.so.3 - o benchBlasGemm
// possible options:
// -DEIGEN_DONT_VECTORIZE
// -msse2
// #define EIGEN_DEFAULT_TO_ROW_MAJOR
#define _FLOAT
#include <Eigen/Array>
#include <Eigen/Core>
#include "BenchTimer.h"
// include the BLAS headers
... |
<commit_before>/* Copyright 2018 Stanford University
*
* 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>/*
Copyright (c) 2015-2020 Max Krasnyansky <max.krasnyansky@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:
1. Redistributions of source code must retain ... |
<commit_before>/**
* @file hrectbound_impl.hpp
*
* Implementation of hyper-rectangle bound policy class.
* Template parameter Power is the metric to use; use 2 for Euclidean (L2).
*
* @experimental
*/
#ifndef __MLPACK_CORE_TREE_HRECTBOUND_IMPL_HPP
#define __MLPACK_CORE_TREE_HRECTBOUND_IMPL_HPP
#include <math.h>... |
<commit_before>/**
* @file MaximalInputs.cpp
* @author Ngap Wei Tham
*
* Test the MaximalInputs and ColumnsToBlocks functions.
*/
#include <mlpack/core.hpp>
#include <mlpack/core/math/columns_to_blocks.hpp>
#include <mlpack/methods/sparse_autoencoder/maximal_inputs.hpp>
#include <boost/test/unit_test.hpp>
#includ... |
<commit_before>/*
* Copyright (c) 2003-2005 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 c... |
<commit_before>// (C) Robert Osfield, Feb 2004.
// GPL'd.
#include <osg/ImageStream>
#include <osg/Notify>
#include <osg/Geode>
#include <osg/GL>
#include <osg/Timer>
#include <osgDB/Registry>
#include <osgDB/FileNameUtils>
#include <osgDB/FileUtils>
#include <xine.h>
#include <xine/xineutils.h>
#include <xine/video... |
<commit_before>/** Copyright 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018 Roland Olbricht et al.
*
* This file is part of Overpass_API.
*
* Overpass_API 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 F... |
<commit_before>/*****************************************************************************
*
* This file is part of Mapnik (c++ mapping toolkit)
*
* Copyright (C) 2015 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>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Qt Software Information (qt-info@nokia.com)
**
** Commercial Usage
**
** Licensees holding valid Qt Com... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2011 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: Nokia Corporation (info@qt.nokia.com)
**
**
** GNU Lesser General Public License Usage
**
** This file m... |
<commit_before>/**
* The Seeks proxy and plugin framework are part of the SEEKS project.
* Copyright (C) 2009 Emmanuel Benazera, juban@free.fr
*
* 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 ... |
<commit_before>#ifdef R_OS_FREERTOS
#include "RRealtimeTimer.h"
#include "RScopedPointer.h"
#include "RIsr.h"
#include "RThread.h"
#define RREALTIME_TIMER_WAIT_PASS(code) \
while(pdPASS != (code)) \
{ \
RThread::yieldCurrentThread(); \
}
static const int32_t sMaxDelayMS = static_cast<int32_t>(portMAX_DELAY... |
<commit_before>
#include "voxel2stl.hpp"
#include <omp.h>
namespace voxel2stl
{
VoxelData::VoxelData(std::string filename, size_t anx, size_t any, size_t anz, double am,
shared_ptr<spdlog::logger> alog)
: nx(anx), ny(any), nz(anz), m(am), LoggedClass(alog)
{
log->debug("Voxeldata siz... |
<commit_before>/* <x0/server.hpp>
*
* This file is part of the x0 web server, released under GPLv3.
* (c) 2009 Chrisitan Parpart <trapni@gentoo.org>
*/
#ifndef sw_x0_server_h
#define sw_x0_server_h
#include <x0/config.hpp>
#include <x0/logger.hpp>
#include <x0/listener.hpp>
#include <x0/handler.hpp>
#include <x0/... |
<commit_before>// Copyright 2010 Gregory Szorc
//
// 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>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: ddefld.hxx,v $
*
* $Revision: 1.7 $
*
* last change: $Author: rt $ $Date: 2005-09-09 01:39:48 $
*
* The Contents of this file are made av... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: wdocsh.hxx,v $
*
* $Revision: 1.11 $
*
* last change: $Author: vg $ $Date: 2007-10-22 15:09:39 $
*
* The Contents of this file are made a... |
<commit_before>// This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// 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 f... |
<commit_before>#include "application.h"
#include <Tempest/SystemAPI>
#include <Tempest/Event>
#include <Tempest/Timer>
#include <Tempest/Widget>
#include <Tempest/Assert>
#ifdef __WIN32
#include <windows.h>
#endif
#ifdef __ANDROID__
#include <unistd.h>
#include <pthread.h>
#endif
#include <time.h>
#include <iostre... |
<commit_before>// This file is part of the dune-hdd project:
// http://users.dune-project.org/projects/dune-hdd
// Copyright holders: Felix Schindler
// License: BSD 2-Clause License (http://opensource.org/licenses/BSD-2-Clause)
#ifndef DUNE_HDD_TEST_LINEARELLIPTIC_BLOCK_SWIPDG_EXPECTATIONS_HH
#define DUNE_HDD_TEST... |
<commit_before>//
// foundation.cpp
// TraceRay
//
// Created by LazyLie on 15/6/16.
// Copyright (c) 2015年 LeonardXu. All rights reserved.
//
#include "foundation.h"
const double EPS = 1e-8;
const double INFD = 1e10;
const int THREAD_NUM = 20;
const double PI = 3.1415926536;
Vector::Vector() {
x = y = z = 0;
... |
<commit_before>/* =======================================================================
Copyright (c) 2011, Institute for Microelectronics,
Institute for Analysis and Scientific Computing,
TU Wien.
-----------------
Vie... |
<commit_before>/**
* @file
* @author Mamadou Babaei <info@babaei.net>
* @version 0.1.0
*
* @section LICENSE
*
* (The MIT License)
*
* Copyright (c) 2016 - 2019 Mamadou Babaei
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation fil... |
<commit_before>#include "catch.hpp"
#include "yaml-cpp/yaml.h"
#include "scene/sceneLoader.h"
#include "style/style.h"
#include "scene/scene.h"
#include "platform.h"
#include "tangram.h"
using YAML::Node;
using namespace Tangram;
const char* path = "scene.yaml";
TEST_CASE("Scene update tests") {
Scene scene("sc... |
<commit_before>/*
** Copyright 2012-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>/*******************************************************************************
Tchê Media Player
Copyright (c) 2016, Fábio Pichler
All rights reserved.
License: BSD 3-Clause License (http://fabiopichler.net/bsd-3-license/)
Author: Fábio Pichler
Website: http://fabiopichler.net
**********... |
<commit_before>
#include <vector>
#include <string>
#include <memory>
#include <algorithm>
#include <cstring>
#include "utils.h"
#include "logging.h"
#include "DeviceIndex.h"
#include "Error.h"
#if HAVE_ARAVIS
#include "aravis_utils.h"
#endif
#if HAVE_USB
#include "v4l2_utils.h"
#endif
using namespace tcam;
std:... |
<commit_before>/*
Copyright (c) 2016,
Dan Bethell, Johannes Saam, Vahan Sosoyan, Brian Scherbinski.
All rights reserved. See COPYING.txt for more details.
*/
#include <ai.h>
#include "Data.h"
#include "Client.h"
using boost::asio::ip::tcp;
AI_DRIVER_NODE_EXPORT_METHODS(AtonDriverMtd);
const char* getHost()
{
co... |
<commit_before>
//
// This source file is part of appleseed.
// Visit http://appleseedhq.net/ for additional information and resources.
//
// This software is released under the MIT license.
//
// Copyright (c) 2010-2011 Francois Beaune
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
... |
<commit_before>//===- subzero/src/IceCompiler.cpp - Driver for bitcode translation -------===//
//
// The Subzero Code Generator
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------... |
<commit_before>// Copyright (c) 2020 by Robert Bosch GmbH. 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>// Copyright (c) 2008, Google 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 copyright
// notice, thi... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: PersAttrListTContext.hxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: hr $ $Date: 2007-06-27 16:22:44 $
*
* The Contents of this fi... |
<commit_before>//
// Created by 理 傅 on 16/7/9.
//
#include "sess.h"
#include <sys/socket.h>
#include <sys/fcntl.h>
#include <arpa/inet.h>
#include <sys/time.h>
#include <unistd.h>
#include <string.h>
UDPSession *
UDPSession::Dial(const char *ip, uint16_t port) {
int sockfd = socket(PF_INET, SOCK_DGRAM, 0);
if... |
<commit_before>// Copyright (c) 2014, German Neuroinformatics Node (G-Node)
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted under the terms of the BSD License. See
// LICENSE source in the root of the Project.
#include <boost/python.hpp... |
<commit_before>#include "XsdType.hpp"
#include "XsdChecker.hpp"
#include <sstream>
#include "../Utils.hpp"
namespace Xsd
{
const std::string TYPE_SUFFIX = "TYPE";
const std::string UNBOUNDED = "unbounded";
const std::string UNBOUNDED_EXP_REG = "*";
Type::Type(const Xml::Element * const xmlElement, co... |
<commit_before>/*
* Copyright 2015 Aldebaran
*
* 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>#include <node.h>
#include <stdint.h>
#include <cstring>
#include <string>
#include "../argon2/include/argon2.h"
#include "argon2_node.h"
namespace NodeArgon2 {
const auto ENCODED_LEN = 108u;
const auto HASH_LEN = 32u;
HashAsyncWorker::HashAsyncWorker(const std::string& plain,
const std::str... |
<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>// Copyright 2010-2013 Google
// 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 or a... |
<commit_before>// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "process_memory_stats.h"
#include <vespa/vespalib/stllike/asciistream.h>
#include <fstream>
#include <sstream>
#include <algorithm>
#include <vespa/log/log.h>
LOG_SETUP(".ves... |
<commit_before>#include "board_graph.hpp"
namespace Quoridor {
FilterEdges::FilterEdges() : edges_()
{
}
FilterEdges::~FilterEdges()
{
}
void FilterEdges::add_edge(const edge_descriptor &e)
{
edges_.insert(e);
}
void FilterEdges::clear()
{
edges_.clear();
}
template <typename EdgeDesc>
bool FilterEdges::o... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.