text stringlengths 54 60.6k |
|---|
<commit_before>// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "dirconfig.hpp"
#include <vespa/vespalib/io/fileutil.h>
#include <vespa/vespalib/util/exceptions.h>
#include <fstream>
#include <atomic>
#include <vespa/log/log.h>
LOG_SETUP(".dir... |
<commit_before>#ifndef STAN_MATH_OPENCL_OPENCL_CONTEXT_HPP
#define STAN_MATH_OPENCL_OPENCL_CONTEXT_HPP
#ifdef STAN_OPENCL
#define __CL_ENABLE_EXCEPTIONS
#define DEVICE_FILTER CL_DEVICE_TYPE_ALL
#ifndef OPENCL_DEVICE_ID
#error OPENCL_DEVICE_ID_NOT_SET
#endif
#ifndef OPENCL_PLATFORM_ID
#error OPENCL_PLATFORM_ID_NOT_SET
... |
<commit_before>#include <osg/GLExtensions>
#include <osg/Node>
#include <osg/Geometry>
#include <osg/Notify>
#include <osg/MatrixTransform>
#include <osg/Texture2D>
#include <osg/Stencil>
#include <osg/ColorMask>
#include <osg/Depth>
#include <osg/Billboard>
#include <osg/Material>
#include <osg/Projection>
#include <... |
<commit_before>// C++ source file - (C) 2003 Robert Osfield, released under the OSGPL.
// (C) 2005 Mike Weiblen http://mew.cx/ released under the OSGPL.
// Simple example using GLUT to create an OpenGL window and OSG for rendering.
// Derived from osgGLUTsimple.cpp and osgkeyboardmouse.cpp
#include <iostream>
#ifdef W... |
<commit_before>// #include <compare>
// #include <concepts>
#include "acmacs-base/argv.hh"
#include "acmacs-base/range-v3.hh"
#include "acmacs-base/enumerate.hh"
#include "acmacs-base/quicklook.hh"
#include "acmacs-chart-2/factory-import.hh"
#include "acmacs-chart-2/chart.hh"
#include "acmacs-chart-2/stress.hh"
#inclu... |
<commit_before>/*Copyright (c) 2011, Edgar Solomonik, all rights reserved.*/
#include <ctf.hpp>
#include <assert.h>
#include <stdlib.h>
/**
* \brief Forms N-by-N DFT matrix A and inverse-dft iA and checks A*iA=I
*/
int main(int argc, char ** argv){
int myRank, numPes, logn, i, j;
int64_t n, np;
int64_t * id... |
<commit_before>#include "../../Framework.hpp"
#include "../../../core/jni_helper.hpp"
namespace {
::Framework * frm() { return g_framework->NativeFramework(); }
}
extern "C"
{
JNIEXPORT void JNICALL
Java_com_mapswithme_maps_bookmarks_data_BookmarkManager_putBookmark(
JNIEnv * env, jobject thiz, jint x, ... |
<commit_before>#include <memory>
#include <gmock/gmock.h>
#include <sys/types.h>
#include <sys/socket.h>
#include "src/bash/bash_log_receiver.h"
#include "src/bash/exception/detail/cant_open_socket_exception.h"
#include "src/bash/exception/detail/loop_poll_exception.h"
#include "src/bash/exception/detail/loop_recv_exc... |
<commit_before>#include <fstream>
#include <iostream>
#include <tinyxml2.h>
#include <boost/algorithm/string.hpp>
#include <boost/filesystem.hpp>
#include <dart/common/Console.h>
#include <dart/common/Uri.h>
#include <dart/common/LocalResourceRetriever.h>
#include <aikido/util/CatkinResourceRetriever.hpp>
static const... |
<commit_before>// Copyright (c) 2012-2013, Steinwurf ApS
// 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>//
// Implements advanced object detection methods
//
#include <jni.h>
#include <vector>
#include <stdio.h>
#include "opencv2/core.hpp"
#include "opencv2/features2d.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/calib3d.hpp"
#include "opencv2/xfeatures2d.hpp"
#include "opencv2/imgproc.hpp"
#inclu... |
<commit_before>// *****************************************************************************
//
// Copyright (c) 2014, Southwest Research Institute® (SwRI®)
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following cond... |
<commit_before>#include <tamer/driver.hh>
#include <tamer/adapter.hh>
#include <sys/select.h>
#include <stdio.h>
#include <signal.h>
#include <unistd.h>
#include <fcntl.h>
namespace tamer {
driver driver::main;
// using the "self-pipe trick" recommended by select(3) and sfslite.
namespace {
#define NSIGNALS 32
int ... |
<commit_before>#pragma once
//mandala
#include "types.hpp"
namespace mandala
{
namespace details
{
template<typename Scalar, typename Enable = void>
struct line2_t;
template<typename Scalar>
struct line2_t<Scalar, typename std::enable_if<std::is_arithmetic<Scalar>::value>::type>
{
typedef Scalar scala... |
<commit_before>#pragma once
#include "../coding/reader.hpp"
#include "../geometry/point2d.hpp"
#include "../geometry/rect2d.hpp"
#include "../std/string.hpp"
#include "../std/noncopyable.hpp"
#include "../std/iostream.hpp"
class Bookmark
{
m2::PointD m_org;
string m_name;
string m_type; ///< Now it stores... |
<commit_before>
#include "LoggerTest.h"
#include "capu/util/ConsoleLogAppender.h"
#include "capu/util/Logger.h"
#include "capu/container/String.h"
#include "capu/util/LogMessage.h"
namespace capu
{
LoggerTest::LoggerTest()
: defaultLogger(appender)
, CAPU_CONTEXT(defaultLogger.createContext("capu.L... |
<commit_before>/*
Copyright (c) 2014, Hookflash Inc. / Hookflash 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:
1. Redistributions of source code must retain the above copyright notice, this... |
<commit_before><commit_msg>improve error reporting in FZ interpreter<commit_after><|endoftext|> |
<commit_before>/*
* Copyright 2008 Chis Dan Ionut
* Copyright 2008 Google Inc.
* Copyright 2006 Nintendo Co., Ltd.
*
* 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.... |
<commit_before><commit_msg>[tracking] Review fixes.<commit_after><|endoftext|> |
<commit_before>#include "server.h"
#include <chrono>
#include <condition_variable>
#include <cstdio>
#include <mutex>
#include <sstream>
#include <thread>
#include "mongoose.h"
#define SERVER_PORT "8080"
std::mutex shutdown_mutex;
std::mutex server_mutex;
std::condition_variable server_cv;
static const std::strin... |
<commit_before>#ifndef __AMEDIA_FILE_HPP__
# define __AMEDIA_FILE_HPP__
#include <functional>
#include <Utils/File.hpp>
#include <cereal/cereal.hpp>
#include <cereal/types/map.hpp>
#include <cereal/types/vector.hpp>
#include <cereal/types/string.hpp>
#include <cereal/types/complex.hpp>
#include <cereal/types/base_... |
<commit_before>/*
This file is part of Magnum.
Copyright © 2010, 2011, 2012, 2013, 2014, 2015, 2016
Vladimír Vondruš <mosra@centrum.cz>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
t... |
<commit_before>
#include "PCH-rpgcraft.h"
#include "imgui-console.h"
ImGuiConsole g_console;
int ImGuiConsole::TextEditCallback(ImGuiTextEditCallbackData* data)
{
//AddLog("cursor: %d, selection: %d-%d", data->CursorPos, data->SelectionStart, data->SelectionEnd);
switch (data->EventFlag)
{
case ImGuiInp... |
<commit_before>/*=========================================================================
Library: CTK
Copyright (c) Kitware Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
... |
<commit_before>/*=========================================================================
Program: ORFEO Toolbox
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
See OTBCopyright.txt for details.
This software is distributed WIT... |
<commit_before>/*
* Copyright (C) 2005-2020 Centre National d'Etudes Spatiales (CNES)
*
* This file is part of Orfeo Toolbox
*
* https://www.orfeo-toolbox.org/
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may ob... |
<commit_before>/*=========================================================================
Program: Medical Imaging & Interaction Toolkit
Language: C++
Date: $Date: 2010-03-15 11:12:36 +0100 (Mo, 15 Mrz 2010) $
Version: $Revision: 21745 $
Copyright (c) German Cancer Research Center, Division of Medic... |
<commit_before>AliAnalysisTaskSEHFTenderQnVectors* AddTaskHFTenderQnVectors(TString taskname = "HFTenderQnVectors",
TString outputSuffix = "",
int harmonic = 2,
... |
<commit_before>/* This file is part of the Vc library.
Copyright (C) 2009-2013 Matthias Kretz <kretz@kde.org>
Vc 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 3 of
th... |
<commit_before>/*
FirePick.cpp https://github.com/firepick1/FirePick/wiki
Copyright (C) 2013 Karl Lew, <karl@firepick.org>
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 ... |
<commit_before>#include "SpriteComponent.h"
#include "../../Logger.h"
#include "../../Assets/TextureManager.h"
#include "../TransformComponent.h"
#include "../../Graphics/SpriteBatch.h"
#include "../../Objects/Object.h"
#include "SpritesheetComponent.h"
#include "TextComponent.h"
namespace star
{
SpriteCom... |
<commit_before>#include "options.hpp"
#include <tclap/CmdLine.h>
using namespace std;
using namespace TCLAP;
void Options::parse(int argc, char** argv) try {
CmdLine cmd("Distributed Systems Emulator", ' ', "0.0.1");
vector<string> commands{"help", "status", "start", "terminate",
"list", "join", "dep... |
<commit_before>/*
* Copyright (c) 2012 Stanford University
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AN... |
<commit_before>/*
This file is part of the ORK library.
Full copyright and license terms can be found in the LICENSE.txt file.
*/
#pragma once
#include "ork/ork.hpp"
#if ORK_USE_GLM
# include "glm/fwd.hpp"
#endif // ORK_USE_GLM
namespace ork {
/*
From color.hpp
*/
enum class color_space;
#if ORK_USE_GLM
using co... |
<commit_before>/* This file is part of the Vc library.
Copyright (C) 2010-2011 Matthias Kretz <kretz@kde.org>
Vc 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 3 of
th... |
<commit_before>#include "Rendering/Skybox.h"
#include "Rendering/RenderContext.h"
#include "Rendering/Renderer.h"
#include "Rendering/GraphicsDriver.h"
#include "Rendering/DrawItem.h"
#include "Rendering/Texture.h"
#include "Rendering/RenderPassProgram.h"
#include "Rendering/Mesh.h"
#include "Misc/Assert.h"
namespace... |
<commit_before>#ifndef STAN_MATH_PRIM_FUN_SQRT_HPP
#define STAN_MATH_PRIM_FUN_SQRT_HPP
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/prim/functor/apply_scalar_unary.hpp>
#include <stan/math/prim/functor/apply_vector_unary.hpp>
#include <cmath>
#include <complex>
namesp... |
<commit_before>/*
* Copyright (c) 2015 Nathan Osman
*
* 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... |
<commit_before>////////////////////////////////////////////////////////////////////////////
//
// Copyright 2017 Realm Inc.
//
// 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://ww... |
<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><commit_msg>resolved fdo#48706 recognize $.12 as currency number<commit_after><|endoftext|> |
<commit_before>#ifndef _CONTRAST_SUBMODULAR_FEATURE_HPP_
#define _CONTRAST_SUBMODULAR_FEATURE_HPP_
#include "interactive_seg_app.hpp"
#include "feature.hpp"
#include <opencv2/core/core.hpp>
#include <boost/serialization/access.hpp>
#include <boost/serialization/base_object.hpp>
#include <boost/serialization/export.hpp... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: ddeinf.cxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: hr $ $Date: 2007-06-27 21:59:25 $
*
* The Contents of this file are made av... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: e3dundo.cxx,v $
*
* $Revision: 1.8 $
*
* last change: $Author: hr $ $Date: 2007-06-27 18:02:32 $
*
* The Contents of this file are made a... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: clonelist.cxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: hr $ $Date: 2007-06-27 18:56:15 $
*
* The Contents of this file are made... |
<commit_before>/*************************************************************************
*
* $RCSfile: unobtabl.cxx,v $
*
* $Revision: 1.12 $
*
* last change: $Author: obo $ $Date: 2004-11-15 17:30:33 $
*
* The Contents of this file are made available subject to the terms of
* either of the following lic... |
<commit_before>/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a ... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: unocrsr.cxx,v $
*
* $Revision: 1.10 $
*
* last change: $Author: hr $ $Date: 2006-08-14 15:54:01 $
*
* The Contents of this file are made ... |
<commit_before><commit_msg>warning C4245: '=' : conversion from 'char' to 'sal_Unicode'...<commit_after><|endoftext|> |
<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>/*****************************************************************************
maskFastaFromBed.cpp
(c) 2009 - Aaron Quinlan
Hall Laboratory
Department of Biochemistry and Molecular Genetics
University of Virginia
aaronquinlan@gmail.com
Licenced under the GNU General Public License 2.0 li... |
<commit_before>/*
* Copyright (c) 2013 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) 2009 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:LG... |
<commit_before>// TreeHierarchyDlg.cpp : implementation file
//
#include "stdafx.h"
#include "resource.h"
#include "TreeHierarchyDlg.h"
#include "TestRunnerModel.h"
#include "ResourceLoaders.h"
#include <algorithm>
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
/////... |
<commit_before>/*
* Copyright 2017 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requ... |
<commit_before>
// Standard includes
#include <iostream>
#include <cstdlib>
#include <unistd.h>
#include <cmath>
#include <string.h>
#include <inttypes.h>
#include <fstream>
// Serial includes
#include <stdio.h> /* Standard input/output definitions */
#include <string.h> /* String function definitions */
#include <... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
**... |
<commit_before>// include google test
#include <gtest/gtest.h>
// include classes to test
#include <common/Kmer.hpp>
// templated test function
template<typename kmer_word_type, typename input_word_type, unsigned int kmer_size=31, unsigned int bits_per_char=2>
void test_kmer_with_word_type(input_word_type* kmer_data,... |
<commit_before>#include "Utility.h"
#include <string>
#include <fstream>
#ifdef WIN32
#include <shlwapi.h>
#else
#ifdef __APPLE_
#include <mach-o/dyld.h>
#endif
#include <sstream>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <... |
<commit_before>// Copyright (c) 2015-2016 The Khronos Group Inc.
//
// 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... |
<commit_before>#include "toolversion.h"
#include "json.h"
#include <iostream>
#include <string>
#include <functional>
#include <jwtxx/jwt.h>
#include <jwtxx/version.h>
#include <cstring>
#include <cerrno>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
namespace
{
std::string baseName(const std:... |
<commit_before>/*
* Part of Jari Komppa's zx spectrum suite
* https://github.com/jarikomppa/speccy
* released under the unlicense, see http://unlicense.org
* (practically public domain)
*/
#include <stdio.h>
#include <stdlib.h>
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
int main(int parc, char ** par... |
<commit_before>// main.cc (2017-12-17)
// Yan Gaofeng (yan_gaofeng@hotmail.com)
#include <iostream>
#define LPCSTR char *
#define UINT unsigned int
class CObject;
struct CRuntimeClass
{
// Attributes
LPCSTR m_lpszClassName;
int m_nObjectSize;
UINT m_wSchema; // schema number of the loaded class
... |
<commit_before>#include "../../include/kit/net/net.h"
#include "../../include/kit/log/log.h"
#include <iostream>
#include <memory>
#include <boost/lexical_cast.hpp>
using namespace std;
int main(int argc, char** argv)
{
unsigned short port = 1337;
try{
if(argc > 1)
port = boost::lexical_cas... |
<commit_before>
/*
This file is part of cpp-ethereum.
cpp-ethereum is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
cpp-ethereum is di... |
<commit_before>// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "distributorcomponent.h"
#include <vespa/storage/common/bucketoperationlogger.h>
#include <vespa/storageapi/messageapi/storagereply.h>
#include <vespa/vdslib/distribution/distri... |
<commit_before>#include "stdafx.h"
#include "stdio.h"
#include "FlyCapture2.h"
#include <iostream>
#include <sstream>
#include <iomanip>
#include <vector>
#include <future>
#include <chrono>
#include <ctime>
#include <thread>
using namespace FlyCapture2;
using namespace std;
void PrintError( Error error )
{
err... |
<commit_before>/* ----------------------------------------------------------------- */
/* The Toolkit for Building Voice Interaction Systems */
/* "MMDAgent" developed by MMDAgent Project Team */
/* http://www.mmdagent.jp/ */
/* ----------... |
<commit_before>/*
promising:
http://elinux.org/Interfacing_with_I2C_Devices
https://i2c.wiki.kernel.org/index.php/Main_Page
*/
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include "LSM303.h"
#include "L3G4200D.h"
#include <sys/time.h>
#include <Eigen/Geometry>
int millis()
{
struc... |
<commit_before>///////////////////////////////////////////////////////////////////////////////
// This source file is part of Zeroth.
//
// Copyright (c) 2014 Colin Hill
//
///////////////////////////////////////////////////////////////////////////////
#include "ServerLoop.h"
#include <Hect/Debug/TransformDebugRenderL... |
<commit_before>#include "vector.h"
#include "MinIMU9.h"
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <sys/time.h>
#include <system_error>
// TODO: print warning if accelerometer magnitude is not close to 1 when starting up
int millis()
{
struct timeval tv;
gettimeofday... |
<commit_before>/* Copyright 2017 The TensorFlow 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
Unless required by appl... |
<commit_before>//===----------------------------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is dual licensed under the MIT and the University of Illinois Open
// Source Licenses. See LICENSE.TXT for details.
//
//===-------------------------... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICE... |
<commit_before>#ifndef RPG_HPP
#define RPG_HPP
#include "Scene.hpp"
#include "AnimatedSprite.hpp"
#include "Collision.hpp"
#include "Utils.hpp"
#include <string>
#include <vector>
#include <ctime>
#include <cstdlib>
#include <cmath>
class RPG: public Scene
{
public:
RPG(std::string _name, SceneManager* mgr, sf::... |
<commit_before>////////////////////////////////////////////////////////////
//
// The MIT License (MIT)
//
// Copyright (c) 2014 stevehalliwell
//
// 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 So... |
<commit_before>#pragma once
#include <string>
#include <fstream>
#include <string>
#include <sstream>
#include <vector>
//#include <regex>
#include <Grappa.hpp>
#include <Cache.hpp>
#include <ParallelLoop.hpp>
#include "Tuple.hpp"
#include "grappa/graph.hpp"
DECLARE_string(relations);
std::vector<std::string> &sp... |
<commit_before>extern "C"
{
#include "../../raspi/i2c/btz_i2c.h"
}
#include <stdio.h>
#include <unistd.h>
int main()
{
printf("Testing raspberry i2c driver\n");
printf("Initializing i2c bus\n");
int result = INIT_I2C();
printf("Init result:%i\n",result);
printf("try read register 0 from slave...\n");
c... |
<commit_before>/*
Copyright 2005-2007 Adobe Systems Incorporated
Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
or a copy at http://stlab.adobe.com/licenses.html)
*/
#include "platform_display_text.hpp"
#include <GG/adobe/dictionary.hpp>
#include <GG/adobe/string.hpp>
#include ... |
<commit_before>#include <algorithm>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <limits>
#include <numeric>
#include <string>
#include <sstream>
#include <cassert>
#include <cmath>
// TODO: Replace this as soon as possible with a more modern option
// parser interface.
#include <getopt.h>
#inc... |
<commit_before>//===-- llvm-objdump.cpp - Object file dumping utility for llvm -----------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>/* Copyright (c) 2015, AOYAMA Kazuharu
* All rights reserved.
*
* This software may be used and distributed according to the terms of
* the New BSD License, which is incorporated herein by reference.
*/
#include <QLocalServer>
#include <QLocalSocket>
#include <QFile>
#include <TWebApplication>
#inc... |
<commit_before>#pragma once
// valid.hpp: definition of arbitrary valid number configurations
//
// Copyright (C) 2017-2018 Stillwater Supercomputing, Inc.
//
// This file is part of the universal numbers project, which is released under an MIT Open Source license.
#include <limits>
namespace sw {
namespace unum {
... |
<commit_before>#include <math.h>
#include <vector>
#include "drake/systems/plants/collision/DrakeCollision.h"
#include "drake/systems/plants/collision/Model.h"
#include "gtest/gtest.h"
using Eigen::Isometry3d;
using Eigen::Vector3d;
namespace DrakeCollision {
namespace {
/*
* Three bodies (cube (1 m edges) and two... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use t... |
<commit_before>// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// This code glues the RLZ library DLL with Chrome. It allows Chrome to work
// with or without the DLL being present. If the DLL is ... |
<commit_before>#ifndef CONCURRENCY_WATCHABLE_HPP_
#define CONCURRENCY_WATCHABLE_HPP_
#include "errors.hpp"
#include <boost/function.hpp>
#include <boost/utility/result_of.hpp>
#include "concurrency/mutex_assertion.hpp"
#include "concurrency/pubsub.hpp"
#include "concurrency/signal.hpp"
#include "containers/clone_ptr.... |
<commit_before>/*
* Copyright (c) 2015, Romain Létendart
* 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 the above copyright notice, this
... |
<commit_before>//
// List.c
// Emojicode
//
// Created by Theo Weidmann on 18.01.15.
// Copyright (c) 2015 Theo Weidmann. All rights reserved.
//
#include "List.hpp"
#include "String.hpp"
#include "Thread.hpp"
#include "Memory.hpp"
#include <algorithm>
#include <cstring>
#include <random>
#include <utility>
names... |
<commit_before>// Copyright 2020 Google LLC
//
// 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 agr... |
<commit_before>#include "tentacle-arduino.h"
#include "Arduino.h"
#include <vector>
TentacleArduino::TentacleArduino() {
numPins = NUM_DIGITAL_PINS;
// for(int i = 0; i < numPins; i++) {
// config.push_back(Pin(i));
// }
// Serial.flush();
}
void TentacleArduino::setMode(Pin pin){
int input_mode = (pin.... |
<commit_before>// Copyright (c) 2012-2013 The Cryptonote developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <sstream>
#include <numeric>
#include <boost/utility/value_init.hpp>
#include <boost/interprocess/... |
<commit_before>/*!
@file
@copyright Edouard Alligand and Joel Falcou 2015-2017
(See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
*/
#ifndef BOOST_BRIGAND_SEQUENCES_MAKE_SEQUENCE_HPP
#define BOOST_BRIGAND_SEQUENCES_MAKE_SEQUENCE_HPP
#include <brigand/functions/arithmetic/next.hpp>
#include... |
<commit_before>#include "customfilesystemmodel.h"
CustomFileSystemModel::CustomFileSystemModel()
{
}
CustomFileSystemModel::~CustomFileSystemModel()
{
}
QList<QPersistentModelIndex> CustomFileSystemModel::checkedIndexes()
{
return _checklist.toList();
}
Qt::ItemFlags CustomFileSystemModel::flags(const QModelInd... |
<commit_before>/* Copyright 2014 Peter Goodman, all rights reserved. */
#define GRANARY_INTERNAL
#include "granary/base/cast.h"
#include "granary/cfg/instruction.h"
#include "granary/cfg/iterator.h"
#include "granary/cfg/operand.h"
#include "granary/code/assemble/fragment.h"
#include "granary/logging.h"
#include "... |
<commit_before>// Copyright (c) 2006-2008 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 "config.h"
#include "SimpleFontData.h"
#include "Font.h"
#include "FontCache.h"
#include "FloatRect.h"
#include "FontDes... |
<commit_before>/*
* mmapifstream.cpp
* openc2e
*
* Created by Alyssa Milburn on Sat Jul 24 2004.
* Copyright (c) 2004 Alyssa Milburn. All rights reserved.
*
* 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... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: htmlfile.cxx,v $
*
* $Revision: 1.6 $
*
* last change: $Author: rt $ $Date: 2005-12-14 15:35:26 $
*
* The Contents of this file are made ... |
<commit_before>/*
* kmeans.cpp
*
* Created on: Mar 13, 2016
* Author: zxi
*/
/*
* kmeans.cpp
*
* Created on: Mar 12, 2016
* Author: zxi
*/
#include <iostream>
#include "libclustering/Clustering.h"
using namespace masc::clustering;
int main(int argc, char** argv) {
auto X = Eigen::MatrixXd::Ra... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.