text stringlengths 54 60.6k |
|---|
<commit_before>#ifndef __TEXTURE_HPP_INCLUDED
#define __TEXTURE_HPP_INCLUDED
#include "cpp/ylikuutio/common/globals.hpp"
#include "shader.hpp"
#include "render_templates.hpp"
#include "cpp/ylikuutio/hierarchy/hierarchy_templates.hpp"
// Include GLEW
#ifndef __GL_GLEW_H_INCLUDED
#define __GL_GLEW_H_INCLUDED
#include <... |
<commit_before>/*
* Copyright (c) 2012, Willow Garage, 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
* ... |
<commit_before>#include "HEALTH.H"
#include "DELTAPAK.H"
#include "DRAW.H"
#include "DRAWPHAS.H"
#include "GAMEFLOW.H"
#include "LARA.H"
#include "NEWINV2.H"
#include "OBJECTS.H"
#include "SPECIFIC.H"
#include "SPOTCAM.H"
#include <stdio.h>
int health_bar_timer = 0;
char PoisonFlag = 0;
struct DISPLAYPU pickups[8];
... |
<commit_before>// Copyright 2014 BVLC and contributors.
#include <vector>
#include "cuda_runtime.h"
#include "gtest/gtest.h"
#include "caffe/blob.hpp"
#include "caffe/common.hpp"
#include "caffe/filler.hpp"
#include "caffe/vision_layers.hpp"
#include "caffe/test/test_gradient_check_util.hpp"
#include "caffe/test/tes... |
<commit_before>#ifndef VVVSTLHELPER_H
#define VVVSTLHELPER_H
#include <algorithm>
#include <string>
#include <vector>
template<typename C, class P,
typename = typename std::enable_if_t<std::is_rvalue_reference<C&&>::value>
>
inline decltype(auto) filter(C&& v, P p )
{
const auto n = std::copy_if( v.beg... |
<commit_before>/* This file is part of the KDE project
Copyright (C) 2006-2008 Matthias Kretz <kretz@kde.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
versio... |
<commit_before>// flagStay.cpp : Defines the entry point for the DLL application.
//
#include "bzfsAPI.h"
#include <string>
#include <vector>
#include <math.h>
BZ_GET_PLUGIN_VERSION
class FlagStayZoneHandler : public bz_CustomMapObjectHandler
{
public:
virtual bool handle ( bzApiString object, bz_CustomMapObjectInf... |
<commit_before>// flagStay.cpp : Defines the entry point for the DLL application.
//
#include "bzfsAPI.h"
#include <string>
#include <vector>
#include <math.h>
BZ_GET_PLUGIN_VERSION
class FlagStayZoneHandler : public bz_CustomMapObjectHandler
{
public:
virtual bool handle ( bzApiString object, bz_CustomMapObjectInf... |
<commit_before>//===------ SimplifyInstructions.cpp - Remove redundant instructions ------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------... |
<commit_before>#include "contentfactory.h"
#include <iostream>
ContentFactory::ContentFactory()
{
}
ContentFactory::~ContentFactory()
{
}
std::string ContentFactory::ReplaceImageTags(const std::string& input)
{
size_t currentIndex = 0;
std::string result = input;
currentIndex = result.find(kCFYImageTag, curren... |
<commit_before>#include "MoveDummy.h"
#include "ObjectDummy.h"
#include "BodyDummy.h"
#include "ShapeCapsule.h"
#include "Utils.h"
#include "Engine.h"
#include "Physics.h"
#include "Game.h"
#include "World.h"
#define MOVE_DUMMY_IFPS (1.0f/100.0f)
#define MOVE_DUMMY_CLAMP 89.9f
#define MOVE_DUMMY_COLLISI... |
<commit_before>#ifndef STAN_MATH_REV_CORE_CHAINABLE_OBJECT_HPP
#define STAN_MATH_REV_CORE_CHAINABLE_OBJECT_HPP
#include <stan/math/rev/meta.hpp>
#include <stan/math/rev/core/chainable_alloc.hpp>
#include <stan/math/rev/core/typedefs.hpp>
#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/prim/fun/typedefs.hpp... |
<commit_before>
#ifndef DUNE_DETAILEL_DISCRETIZATIONS_MAPPER_MULTISCALE_HH
#define DUNE_DETAILEL_DISCRETIZATIONS_MAPPER_MULTISCALE_HH
// system
#include <map>
#include <sstream>
#include <vector>
// dune-common
#include <dune/common/exceptions.hh>
namespace Dune {
namespace Detailed {
namespace Discretizations {
... |
<commit_before>/*************************************************************************
*
* $RCSfile: hiranges.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: vg $ $Date: 2004-01-06 18:59:56 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licen... |
<commit_before>#include "GUIHelper.h"
#include <QDialog>
#include <QApplication>
#include <QFormLayout>
#include <QLabel>
#include <QDialogButtonBox>
#include <QDebug>
void GUIHelper::showMessage(QString title, QString message, QMap<QString, QString> add_info)
{
//create dialog
QDialog* dialog = new QDialog(QApplica... |
<commit_before>#ifndef PYOSMIUM_GENERIC_HANDLER_HPP
#define PYOSMIUM_GENERIC_HANDLER_HPP
#include <osmium/area/assembler.hpp>
#include <osmium/area/multipolygon_collector.hpp>
#include <osmium/handler.hpp>
#include <osmium/handler/node_locations_for_ways.hpp>
#include <osmium/index/map/all.hpp>
#include <osmium/io/any... |
<commit_before>#include "ItemPU.hpp"
#include "item.pb.h"
#include <sqlpp11/sqlpp11.h>
#include <sqlpp11/postgresql/insert.h>
#include "sql_schema/items.h"
#include "sql_schema/parameters.h"
using namespace pb;
namespace eedb{
namespace pu{
constexpr schema::items i;
ItemPU::ItemPU(){
}
void ItemPU::process(Clie... |
<commit_before>#include "HPACK.h"
#include "hpack_table.h"
#include "gtest/gtest.h"
#include <string.h>
#include "picojson/picojson.h"
#include <fstream>
#include <iostream>
#include <iterator>
TEST(encode_intTest, NormalTest) {
uint8_t dst[10];
uint8_t expect[][5] = {
{0x01, 0x00},
{0x0f, 0x0... |
<commit_before>#include "catch.hpp"
#include <boost/icl/interval.hpp>
#include <boost/icl/interval_set.hpp>
#include <boost/icl/separate_interval_set.hpp>
#include <boost/icl/split_interval_set.hpp>
#include <boost/icl/interval_map.hpp>
#include <boost/optional.hpp>
#include <iostream>
TEST_CASE("interval tests", "[bo... |
<commit_before>/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: inputwin.hxx,v $
*
* $Revision: 1.16 $
*
* last change: $Author: vg $ $Date: 2007-02-27 13:24:07 $
*
* The Contents of this file are made... |
<commit_before>#include <iostream>
#include <cmath>
#include <list>
using namespace std;
double sinus(double x){
return sin(x);
}
double power(double base, double exp){
return pow(base, exp);
}
double wielomian(double a, double b, double c, double d, double x){
return a*x*x*x -b*x*x +c*x -d;
}
//list<... |
<commit_before>#include <stdarg.h>
#include <string.h>
#include "JavaObject.h"
DEFINE_JAVA_CLASS_NAME(JavaObject, "");
JavaObject::JavaObject(jobject object) : object(object)
{
}
JavaObject::~JavaObject()
{
if (object)
getJNIEnv()->DeleteGlobalRef(object);
}
void JavaObject::setJObjectLocal(jobject object)
{
s... |
<commit_before>/** \file add_synonyms.cc
* \brief Generic version for augmenting title data with synonyms found
in the authority data
* \author Johannes Riedl
*/
/*
Copyright (C) 2016, Library of the University of Tübingen
This program is free software: you can redistribute it and/or m... |
<commit_before>/*=========================================================================
*
* Copyright Insight Software Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
... |
<commit_before>/******************************************************************************
nomlib - C++11 cross-platform game engine
Copyright (c) 2013, Jeffrey Carpenter <jeffrey.carp@gmail.com>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted... |
<commit_before>/* <x0/HttpServer.cpp>
*
* This file is part of the x0 web server project and is released under AGPL-3.
* http://www.xzero.io/
*
* (c) 2009-2014 Christian Parpart <trapni@gmail.com>
*/
#include <x0/http/HttpServer.h>
#include <x0/http/HttpRequest.h>
#include <x0/http/HttpWorker.h>
#include <x0/Ser... |
<commit_before>// Copyright 2020 The Pigweed Authors
//
// 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
//
// https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applica... |
<commit_before>/*
* A auto-growing buffer you can write to.
*
* author: Max Kellermann <mk@cm4all.com>
*/
#include "growing_buffer.hxx"
#include "pool.hxx"
#include "util/ConstBuffer.hxx"
#include "util/WritableBuffer.hxx"
#include <assert.h>
#include <string.h>
struct buffer {
struct buffer *next;
size_... |
<commit_before>/* Cycript - Optimizing JavaScript Compiler/Runtime
* Copyright (C) 2009-2012 Jay Freeman (saurik)
*/
/* GNU Lesser General Public License, Version 3 {{{ */
/*
* Cycript 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>#include <vector>
#include <iostream>
#include <iterator>
#include <algorithm>
#include <Spark/SparseLinearSolvers.hpp>
#include <Spark/ConjugateGradient.hpp>
#include <Spark/converters.hpp>
#include <Spark/io.hpp>
#include <boost/numeric/ublas/io.hpp>
#include <dfesnippets/blas/Blas.hpp>
#include <df... |
<commit_before>/** \file add_synonyms.cc
* \brief Generic version for augmenting title data with synonyms found
in the authority data
* \author Johannes Riedl
*/
/*
Copyright (C) 2016, Library of the University of Tübingen
This program is free software: you can redistribute it and/or m... |
<commit_before>#include "board.hpp"
#include "exception.hpp"
#include "gtest/gtest.h"
class BoardTest : public ::testing::Test {
protected:
BoardTest() : board_(1, 2) {
}
Quoridor::Board board_;
};
TEST_F(BoardTest, ctor)
{
EXPECT_EQ(1, board_.row_num());
EXPECT_EQ(2, board_.col_num());
// te... |
<commit_before>#include <benchmark/benchmark.h>
#include <fmt/format.h>
#include <array>
#include <bitset>
#include <iostream>
#include <map>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
using count_t = long long;
// See discussion at
// https://stackoverflow.com/questions/40122141/pr... |
<commit_before> /*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: prodmap.hxx,v $
* $Revision: 1.... |
<commit_before>/* Luwra
* Minimal-overhead Lua wrapper for C++
*
* Copyright (C) 2015, Ole Krüger <ole@vprsm.de>
*/
#ifndef LUWRA_USERTYPES_H_
#define LUWRA_USERTYPES_H_
#include "common.hpp"
#include "types.hpp"
#include "stack.hpp"
#include "auxiliary.hpp"
#include <map>
#include <string>
LUWRA_NS_BEGIN
name... |
<commit_before>#include <Eigen/Dense>
#include <Eigen/Sparse>
#include <iostream>
#include <cassert>
#include <fstream>
#include <string>
#include <algorithm>
#include <random>
#include <chrono>
#include <memory>
#include <cmath>
#include <unsupported/Eigen/SparseExtra>
#include <Eigen/Sparse>
#if defined(_OPENMP)
#... |
<commit_before>//
// Copyright 2015 The ANGLE 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.
//
// EGLSanityCheckTest.cpp:
// Tests used to check environment in which other tests are run.
#include <gtest/gtest.h>
#inc... |
<commit_before>#include "insertion.hpp"
#include <iostream>
using namespace std;
void sort(vector<int> &array) {
for (int i = 1; i < array.size(); i++) {
int tmp = array[i];
int j = i - 1;
while (j >= 0 && array[j] > tmp) {
array[j + 1] = array[j];
j--;
}
... |
<commit_before>#include <gtkmm.h>
#include <string>
#include <fstream>
#include <iostream>
#include "libjsapi.h"
#include "application.h"
#include "window.h"
#include "builder.h"
std::string LoadScript(int argc, char** argv) {
std::string script;
for (int i = 1; i < argc; i++) {
std::fstream fi... |
<commit_before>#include "medActionsToolBox.h"
#include <QtGui>
#include <medDataManager.h>
#include <medAbstractDbController.h>
#include <medToolBoxBody.h>
class medActionsToolBoxPrivate
{
public:
QWidget* buttonsWidget;
QWidget* noButtonsSelectedWidget;
QPushButton* removeBt;
QPushButton* viewBt;
... |
<commit_before>#include "audiooutputfilter.h"
AudioOutputFilter::AudioOutputFilter(QString id, StatisticsInterface* stats,
QAudioFormat format):
Filter(id, "Audio Output", stats, RAWAUDIO, NONE),
output_()
{
maxBufferSize_ = 3; // to avoid extra latency
output_.init(format)... |
<commit_before>#include "DrawTexture.h"
#include "DTEX_Texture.h"
#include "DTEX_Math.h"
#include "RenderAPI.h"
#include "ResCache.h"
#include "Target.h"
namespace dtex
{
SINGLETON_DEFINITION(DrawTexture);
DrawTexture::DrawTexture()
: m_curr(NULL)
{
}
void DrawTexture::Draw(int src_tex_id, int src_w, int src_h, co... |
<commit_before>/*
* Copyright © 2012, 2013, 2014 Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to us... |
<commit_before>/*
* Main Menu-bar
*/
#include <stdint.h>
#include <stdio.h>
#include <vector>
#include <SDL2/SDL.h>
#include "imgui.h"
extern "C" {
#include "util.h"
#include "snepulator.h"
#include "config.h"
#include "database/sms_db.h"
#include "gamepad.h"
#include "video/tms9928a.h"
#include "video/sms_vdp... |
<commit_before>/*
Copyright (c) 2013 Microsoft Corporation. All rights reserved.
Released under Apache 2.0 license as described in the file LICENSE.
Author: Leonardo de Moura
*/
#include <vector>
#include "test.h"
#include "trace.h"
#include "double.h"
#include "mpq.h"
#include "mpfp.h"
#include "interval_def.h"
usin... |
<commit_before><commit_msg>grt: avoid pass local nets to fastroute core<commit_after><|endoftext|> |
<commit_before><commit_msg>grt: addd check if net have global route<commit_after><|endoftext|> |
<commit_before>/** @file
TextView unit tests.
@section license License
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses... |
<commit_before>#include <iostream>
#include <algorithm>
#include <vector>
#include <sndfile.hh>
#define kiss_fft_scalar float
#include "kiss_fft.h"
int main(int argc, char *argv[])
{
const int I = 2;
const int D = 1;
const int N = 256;
const int M = I*N/D;
const int L = N/8;
kiss_fft_cfg fwd... |
<commit_before>// This file is a part of the IncludeOS unikernel - www.includeos.org
//
// Copyright 2015-2016 Oslo and Akershus University College of Applied Sciences
// and Alfred Bratterud
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the... |
<commit_before>// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/test/ui/ui_test.h"
#include "base/command_line.h"
#include "base/file_util.h"
#include "chrome/app/chrome_command_ids... |
<commit_before>// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/net/preconnect.h"
#include "base/logging.h"
#include "base/metrics/histogram.h"
#include "chrome/browser/prof... |
<commit_before>#include "NdefRecord.h"
#undef LOG_TAG
#define LOG_TAG "nfcd"
#include <utils/Log.h>
NdefRecord::NdefRecord(uint8_t tnf, std::vector<uint8_t>& type, std::vector<uint8_t>& id, std::vector<uint8_t>& payload)
{
mTnf = tnf;
for(uint32_t i = 0; i < type.size(); i++)
mType.push_back(type[i]);
for(... |
<commit_before>/*
Copyright Eli Dupree and Isaac Dupree, 2011, 2012
This file is part of Lasercake.
Lasercake 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,... |
<commit_before>/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2010, Rice University
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the follo... |
<commit_before>/*
The MIT License (MIT)
Copyright (c) 2014 Andy Teijelo <ateijelo@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... |
<commit_before>//C++ includes
#include <sys/stat.h>
#include <sys/types.h>
#include <iostream>
#include <cstdlib>
#include <sstream>
// External library include ( LibMesh, PETSc...)
#include "FemusConfig.hpp"
// FEMuS
#include "paral.hpp"
#include "FemusInit.hpp"
#include "Files.hpp"
#include "MultiLevelMeshTwo.hpp... |
<commit_before>// Licensed under a 3-clause BSD style license - see LICENSE.rst
// Fast range median distance computations for dataset `y`:
//
// mu(l, r) = median(y[l:r+1])
// dist(l, r) = sum(abs(x - mu(l, r)) for x in y[l:r+1])
//
// and an implementation of the find-best-partition dynamic program.
//
// We d... |
<commit_before>#include "TestBlockLandApplication.h"
#include <OIS.h>
#include <iostream>
const BlockInfo BLOCKINFO[] = {
{ BlockType::Air, "Air", Ogre::ColourValue(1.0, 1.0, 1.0) },
{ BlockType::Grass, "Grass", Ogre::ColourValue(0.0, 0.5, 0.0) },
{ BlockType::Soil, "Soil", Ogre::ColourValue(0.5, 0.3, 0.0) },
{ Bl... |
<commit_before>#ifndef RPT_XMLSUBDOCUMENT_HXX
#define RPT_XMLSUBDOCUMENT_HXX
/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: xmlSubDocument.hxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: rt $ $Da... |
<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.
// This file provides the embedder's side of random webkit glue functions.
#include "build/build_config.h"
#if defined(OS_WIN)
#... |
<commit_before>/* Button Boxes
*
* The Button Box widgets are used to arrange buttons with padding.
*/
#include "gtkmm.h"
#include "gtk/gtk.h"
class Example_ButtonBox : public Gtk::Window
{
public:
Example_ButtonBox();
~Example_ButtonBox() override;
protected:
Gtk::Frame* create_button_box(bool horizontal, ... |
<commit_before>//
// Logarithm.cpp
// Calculator
//
// Created by Gavin Scheele on 3/27/14.
// Copyright (c) 2014 Gavin Scheele. All rights reserved.
//
#include "Logarithm.h"
#include <vector>
#include<math.h>
using namespace std;
Logarithm::Logarithm(int base, int operand){
this->type = "logarithm";
this->b... |
<commit_before>/*
* $Id$
*
* Copyright(C) 1998-2003 Satoshi Nakamura
* All rights reserved.
*
*/
#include <qmaccount.h>
#include <qmapplication.h>
#include <qmmessage.h>
#include <qsconv.h>
#include <qsstl.h>
#include <qswindow.h>
#include "attachmenthelper.h"
#include "../model/tempfilecleane... |
<commit_before>#include "logicalModel.h"
#include "graphicalModel.h"
#include <QtCore/QUuid>
using namespace qReal;
using namespace models;
using namespace models::details;
using namespace modelsImplementation;
LogicalModel::LogicalModel(qrRepo::LogicalRepoApi *repoApi, EditorManagerInterface const &editorManagerInt... |
<commit_before>/**********************************************************************
// @@@ START COPYRIGHT @@@
//
// (C) Copyright 2006-2014 Hewlett-Packard Development Company, L.P.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the Lic... |
<commit_before><commit_msg>combine_block書き始めた<commit_after><|endoftext|> |
<commit_before>//===----------------------------------------------------------------------===//
//
// Peloton
//
// child_property_generator.cpp
//
// Identification: src/include/optimizer/child_property_generator.cpp
//
// Copyright (c) 2015-16, Carnegie Mellon University Database Group
//
//==... |
<commit_before>/***************************Copyright-DO-NOT-REMOVE-THIS-LINE**
*
* Condor Software Copyright Notice
* Copyright (C) 1990-2006, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* This source code is covered by the Condor Public License, which can
* be foun... |
<commit_before>#include <ros/ros.h>
#include <geometry_msgs/Twist.h>
int main(int argc, char *argv[]){
ros::init(argc, argv, "quadrotor_obstacle_avoidance");
ros::NodeHandle node;
ros::Publisher cmd_pub = node.advertise<geometry_msgs::Twist>("cmd_vel", 10);
ros::Duration(1).sleep();
... |
<commit_before>#ifndef __mix_cpp
#define __mix_cpp
/*
頥 , १ ப, -2 砥 訡
Start, End - 砫 ப
*/
int GetInt(TCHAR *Start, TCHAR *End)
{
int Ret=-2;
if(End >= Start)
{
TCHAR Tmp[11];
int Size=(int)(End-Start);
if(Size)
{
if(Size < 11)
{
_tmemcpy(Tmp,Start,Size);
Tmp[... |
<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 dis... |
<commit_before>/*
* VHDL code generation for scopes.
*
* Copyright (C) 2008 Nick Gasson (nick@nickg.me.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
* the Free Software Foundation; either version 2 of the ... |
<commit_before>// Here's a wirish include:
#include <wirish/wirish.h>
#include "fpga-comm/test.h"
void setup(void) {
// init the FPGA comm and bind interrupt
comm_init();
pinMode(BOARD_LED_PIN, OUTPUT);
}
void loop(void) {
if (newData) {
// print out the information
SerialUSB.println("Interrupt Triggered... |
<commit_before>#ifndef STAN_MATH_PRIM_FUN_TRACE_GEN_QUAD_FORM_HPP
#define STAN_MATH_PRIM_FUN_TRACE_GEN_QUAD_FORM_HPP
#include <stan/math/prim/meta.hpp>
#include <stan/math/prim/err.hpp>
#include <stan/math/prim/fun/Eigen.hpp>
#include <stan/math/prim/fun/trace.hpp>
#include <stan/math/prim/fun/multiply.hpp>
#include <... |
<commit_before>// -*- c++ -*-
/*!
* This file is part of CameraPlus.
*
* Copyright (C) 2012-2014 Mohammed Sameer <msameer@foolab.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 Foundat... |
<commit_before>
#include <planet/common.hpp>
#include <planet/fs_core.hpp>
#include <planet/basic_operation.hpp>
#include <planet/operation_layer.hpp>
#include <planet/utils.hpp>
#include <planet/module_loader/module_loader.hpp>
#include <planet/request_parser.hpp>
#include <mutex>
namespace planet {
//
// m... |
<commit_before>#include "onig-scanner-worker.h"
#include "unicode-utils.h"
using ::v8::Array;
using ::v8::Local;
using ::v8::Null;
using ::v8::Number;
using ::v8::Object;
using ::v8::String;
using ::v8::Value;
void OnigScannerWorker::Execute() {
bestResult = searcher->Search(stringToSearch, utf16StringToSearch.get(... |
<commit_before>/*
* This File is part of Davix, The IO library for HTTP based protocols
* Copyright (C) CERN 2015
* Author: Georgios Bitzes <georgios.bitzes@cern.ch>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as publish... |
<commit_before>#undef _FORTIFY_SOURCE
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <vector>
#include <string>
#include <map>
#include <reader.h>
#include "nanosvg.h"
#include "nanosvgrast.h"
using namespace s... |
<commit_before>/*
* 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 option) any later version.
*
* Written (W) 2012 Sergey Lisitsyn
* Copyrigh... |
<commit_before>/**************************************************************************
**
** Copyright (C) 2011 - 2013 Research In Motion
**
** Contact: Research In Motion (blackberry-qt@qnx.com)
** Contact: KDAB (info@kdab.com)
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees hold... |
<commit_before>/**************************************************************************
**
** This file is part of Qt Creator
**
** Copyright (c) 2012 Nokia Corporation and/or its subsidiary(-ies).
**
** Contact: http://www.qt-project.org/
**
**
** GNU Lesser General Public License Usage
**
** This file may be used ... |
<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>#include <boost/cast.hpp>
#include "messageHandler.h"
#include <libwatcher/messageStatus.h>
using namespace std;
using namespace watcher;
using namespace watcher::event;
using namespace boost;
INIT_LOGGER(MessageHandler, "MessageHandler");
MessageHandler::MessageHandler()
{
TRACE_ENTER();
TR... |
<commit_before>/***************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (directui@nokia.com)
**
** This file is part of libmeegotouch.
**
** If you have questions regarding t... |
<commit_before>/****************************************************************************
**
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
** All rights reserved.
** Contact: Nokia Corporation (qt-info@nokia.com)
**
** This file is part of the QtCore module of the Qt Toolkit.
**
** $QT_BEGIN_L... |
<commit_before>/**
* @file multi_wrapper_impls.hpp
*
* @brief Implementations of methods or functions requiring the definitions of
* multiple CUDA entity proxy classes. In some cases these are declared in the
* individual proxy class files, with the other classes forward-declared.
*/
#pragma once
#ifndef MULTI_WR... |
<commit_before>#include "userexchangemanager.h"
#include "userexchangemanager_p.h"
#include "message_p.h"
using namespace QtDataSync;
#if QT_HAS_INCLUDE(<chrono>)
#define scdtime(x) x
#else
#define scdtime(x) std::chrono::duration_cast<std::chrono::milliseconds>(x).count()
#endif
const quint16 UserExchangeManager::D... |
<commit_before>#include "server.hpp"
namespace po = boost::program_options;
using std::cout;
using std::cerr;
using std::endl;
using std::string;
int main(int argc, char* argv[])
{
po::options_description desc("Bananagrams multiplayer dedicated server");
desc.add_options()
("help", "show options")
("dict", po::... |
<commit_before>// ======================================================================== //
// Copyright 2009-2017 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); ... |
<commit_before>#include "cmainwindow.h"
#include "ui_cmainwindow.h"
#include "settings/settings.h"
#include "settings/csettings.h"
#include "settingsui/csettingsdialog.h"
#include "settings/csettingspagecamera.h"
DISABLE_COMPILER_WARNINGS
#include <QCameraInfo>
#include <QDebug>
#include <QImageReader>
#i... |
<commit_before>/*
* Arduino-serial
* --------------
*
* A simple command-line example program showing how a computer can
* communicate with an Arduino board. Works on any POSIX system (Mac/Unix/PC)
*
*
* Compile with something like:
* gcc -o arduino-serial arduino-serial.c
*
* Created 5... |
<commit_before>#ifndef TOML11_ACCEPTOR
#define TOML11_ACCEPTOR
#include <type_traits>
#include <iterator>
#include <limits>
#include "exception.hpp"
namespace toml
{
template<typename charT, charT c>
struct is_character
{
typedef charT value_type;
constexpr static value_type target = c;
template<typename... |
<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 <archivepp/archive_rar.hpp>
#include <archivepp/except.hpp>
#include <cmath>
#include <cstring>
namespace archivepp
{
namespace unrar
{
static std::error_code get_last_error(RAROpenArchiveDataEx & data)
{
return std::error_code(data.OpenResult, std::system_c... |
<commit_before>/*
Copyright (c) 2006, 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) 2014, Julien Bernard
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND... |
<commit_before>////////////////////////////////////////////////////////////////////////////////
///
/// \file main.cpp
/// \brief Main file for testing different system classes
/// and functionality.
/// Author: Andrew Watson
/// Created: 1/22/13
/// Email: watsontandrew@gmail.com
///
///////////////////////////... |
<commit_before>#include <validation.hpp>
#include <kdb>
#include <iostream>
#include <string>
using namespace std;
using namespace kdb;
ValidationCommand::ValidationCommand()
{}
int ValidationCommand::execute(int argc, char** argv)
{
string prog = argv[0];
string command = argv[1];
if (argc != 6)
{
cerr << "... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.