text stringlengths 3.08k 22k |
|---|
//
// This file is part of T-Rex, a Complex Event Processing Middleware.
// See http://home.dei.polimi.it/margara
//
// Authors: <NAME>, <NAME>
//
// This program 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 F... |
/*
// Licensed to DynamoBI Corporation (DynamoBI) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright ownership. DynamoBI licenses this file
// to you under the Apache License, Version 2.0 (the
// "License"); you may ... |
/*-
* Copyright 2013 <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED W... |
/*********************************************************************
* This file includes functions to generate Verilog submodules for
* the memories that are affiliated to multiplexers and other programmable
* circuit models, such as IOPADs, LUTs, etc.
***********************************************************... |
#include "graph_info.hpp"
#include <stack>
#include <sstream>
#include <fmt/ostream.h>
#include "utils.hpp"
GraphInfo::UtilNode::UtilNode(int id, DomNode *dom) : id(id), dom(dom) {}
GraphInfo::GraphInfo(CFGraph const &graph) : cfg(graph) {
auto domIt = domData.emplace(cfg.entryBlockId, DomNode()).first;
UtilN... |
/***************************************************************************
* general.c - description
* ----------------------------
* begin : December 28, 2001
* copyright : (C) 2001... |
/*
Copyright (c) 2001, Loki software, 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, this list
of condition... |
// A simple "hello world" example of computing a finite-time backward reachable
// set for a polynomial system using convex optimization.
//
// This implements the occupation measure-based SDP relaxation described in
// "Convex computation of the region of attraction of polynomial control
// systems" by <NAME> and <NAM... |
//
// Created by <NAME> on 2019-04-28.
//
#include <iostream>
#include <algorithm>
#include <vector>
#include <chrono>
#include "detail.h"
using namespace std;
int myrandom (int i) { return std::rand()%i;}
int find_min(vector<int>& v){
int min=v[0];
for (int i = 1; i < v.size(); ++i) {
min=min<v[i]?m... |
/**
******************************************************************************
* @file main.cpp
* @author alexb
* @brief main
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) 2015, <NAME> and <NAME> All rights rese... |
#include <ZedUtils.h>
#include <csignal>
#include <Misc.h>
volatile sig_atomic_t stop;
namespace o3d_tensor = open3d::t::geometry ;
namespace o3d_legacy = open3d::geometry;
namespace o3d_core = open3d::core;
namespace o3d_vis = open3d::visualization;
sl::Camera zed;
zed_utils::Gaze gaze;
std::shared_ptr<o3d_tens... |
// See README.md for license, description and usage instructions.
#include <iostream>
#include <opencv2/objdetect/objdetect.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <dlib/opencv.h>
#include <dlib/image_processing/frontal_face_detector.h>
#include <dlib/image_process... |
#include "parser.hpp"
#include <fstream>
#include <map>
#include <vector>
#include "json11.hpp"
#include <tiny_obj_loader.h>
#include "aabb.hpp"
#include "basic_math_3d.hpp"
#include "bvh.hpp"
#include "camera.hpp"
#include "log_macros.h"
#include "material.hpp"
#include "primitive.hpp"
using namespace json11;
boo... |
#include "Canvas.h"
#include <iostream>
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "stb_image_write.h"
Canvas::Canvas(unsigned _height, unsigned _width) :
height(_height), width(_width), data_len(_height*_width*3)
{
data = std::make_unique<data_t[]>(data_len);
}
void Canvas::fill(Color c)
{
auto byte = dat... |
//===--- DerivedConformanceTensorArrayProtocol.cpp ------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
#include <iostream>
#include <limits>
#include <map>
#include <math.h>
#include <sstream>
#include <string>
#include <vector>
#include "spline.h"
#include "parameters.h"
#include "helper_functions.h"
#include "helper_functions_udacity.h"
using namespace tk;
double s_difference(double s1, double s2) {
double s_dif... |
// Copyright 2017 The Dawn 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed t... |
/*
* Copyright (C) 2012 by <NAME> (<EMAIL>)
* Copyright (C) 2012-2019 by UCSC Computational Genomics Lab
*
* Released under the MIT license, see LICENSE.txt
*/
#include "halBranchMutations.h"
#include "halCLParser.h"
#include <cstdlib>
#include <fstream>
#include <iostream>
using namespace std;
using namespace h... |
/*######################################################################################################################
############## ALTITUDE & PRESSURE SENSOR AND FILTER (BMP180) ################
##############################################################################... |
// Copyright (C) 2011 <NAME>. All Rights Reserved.
// The original author of this code can be contacted at: <EMAIL>
// 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 th... |
// ------------------------------------------------------------------------------------------------
// CS 536 - Data Communication and Computer Networks
// Fall 2015
// Lab 4: Symmetric Client/Servers - Problem 2 (wetalk)
//
// <NAME>
//
// _ _ _
// | | | | |
// __ ... |
/* --------------------------------------------------------------------------
CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-19 <NAME>
CppAD is distributed under the terms of the
Eclipse Public License Version 2.0.
This Source Code may also be made available under the following
Secondary Lice... |
/**
* \file
*
* \brief The COM(DLL) is adapted from DELPHI is FCN!
*
* <table>
* <tr><th>Version</th><th>Author</th><th>Date</th><th>Memo</th>
* <tr><td>1.1</td><td>Guibin.Li</td><td>2009.09.20</td><td>VS6.0</td>
* <tr><td>1.1.1</td><td>Guibin.Li</td><td>2020.03.30</td><td>VS10</td>
* <tr><td>1.1.2</td><td>Gui... |
/******************************************************************************
FILE: predict_burned_area.cpp
PURPOSE: This is the main file which handles the overall boosted regression
tree application and processing.
PROJECT: Land Satellites Data System Science Research and Development (LSRD)
at the USGS EROS
L... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <errno.h>
#include <string>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/wait.h>
#include <signal.h>
#include <math.h>
#include <map>
#include <iostream>
#include <fstre... |
/*
* Tree.cpp
*
* Created on: Oct 9, 2020
* Author: luis
*/
#include "Tree.h"
#include "Map.h"
Tree::Tree(long long int Ipx,
long long int Ipy)
{
this->Root = std::make_shared<Node>();
this->initPosx = Ipx;
this->initPosy = Ipy;
this->Root->px = 0;
this->Root->py = 0;
}
std::shared_ptr<Node> Tre... |
#include <iostream>
#include <cstdio>
#include <cmath>
#include "adi_imu_driver.h"
#include "spi_driver.h"
#include <pthread.h>
#include <semaphore.h>
#include <semaphore.h>
#include <array>
#include <queue>
#include <cstring>
#include <chrono>
#define BURSTS_PER_READ 10
pthread_t thread_imu;
pthread_mutex_t lock_imu_... |
/*
* Copyright (c) 2015, 2016, <NAME>
*
* 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 THE AUTHOR DISCL... |
#include "AstBuilder.h"
#include "llvm/ExecutionEngine/Orc/ExecutionUtils.h"
#include "llvm/ExecutionEngine/Orc/LLJIT.h"
#include "llvm/IR/IRBuilder.h"
#include "llvm/IR/Module.h"
#include <iostream>
using namespace std;
using namespace llvm;
using namespace llvm::orc;
class BuildVisistor : public AstVisitor<Value *... |
// license:BSD-3-Clause
// copyright-holders:<NAME>
/***************************************************************************
-= Blomby Car =-
driver by <NAME> (<EMAIL>)
Note: if MAME_DEBUG is defined, pressing Z with:
Q shows the background
... |
//
// Copyright (c) 2012, <NAME>, Inc.
// Copyright (c), author on http://www.gamedev.net/topic/582240-assimp-drawing-textured-model/
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
// * R... |
/* Copyright 2014 <NAME>, all rights reserved. */
#include "clients/wrap_func/client.h"
GRANARY_USING_NAMESPACE granary;
GRANARY_DECLARE_bool(transparent_returns);
// Allows us to select which wrapper to apply when instrumenting this code.
// This prevents infinite recursion in the case of using
// `PASS_INSTRUMENT... |
//
// ToolbarMVC.cpp
// MultitouchPadOsc is released under the MIT License.
//
// Copyright (c) 2011-2016, <NAME>
//
// 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, in... |
#include "player.h"
#include <iostream>
Player::Player(int id) :
receivedDamage(false),
died(false),
pickedUpTreasure(false),
pickedUpBullets(false),
pickedUpLife(false),
before_respawn(false)
{
const YAML::Node& c = ServerConfig::Config["Player"];
this->id = id;
this->vidas = c["MaxLives"].as<int>();
... |
#include "src/Hud.h"
#include "src/Messages.h"
#include <tasui>
#include "Pokitto.h"
#include <LibAudio>
#include "SteamCookie.h"
#include "sprites.h"
#include "assets/SteamDriller_HUD.h"
#include "assets/SteamDriller_Portrait_Robot.h"
#include "assets/SteamDriller_Portrait_EvilAI.h"
#include "assets/SteamDriller_Por... |
#include "mbtracker.h"
#include <ros/ros.h>
#include <ros/package.h>
#include <visp/vpRect.h>
#define CLOCK_TO_MSECS(x) ((((double)(x))/CLOCKS_PER_SEC) * 1000)
#define MAXLIMIT(x, y) (x = x > y ? y : x)
#define MINLIMIT(x, y) (x = x < y ? y : x)
TrackMarkerModel::~TrackMarkerModel()
{
if(display != NULL)
delete d... |
// The MIT License (MIT)
// Copyright (c) 2019 <NAME>
// 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, mo... |
//
// Created by cod3r on 24/08/2016.
//
#include "InputText.h"
// Initialize Static Properties.
int InputText::windowW = 0;
int InputText::windowH = 0;
string InputText::convertCharToString = "";
InputText::InputText(GLFWwindow *window, int windowWidth, int windowHeight) {
this->windowW = windowWidth;
this-... |
#include <boost/math/common_factor.hpp>
#include <signal.h>
#include <stdlib.h>
#include "tritonsort/config.h"
#ifdef USE_JEMALLOC
#include <jemalloc/jemalloc.h>
const char* malloc_conf = "lg_chunk:20,lg_tcache_gc_sweep:30";
#endif // USE_JEMALLOC
#include "benchmarks/storagebench/workers/StorageBenchWorkerImpls.h"
... |
/* This file is part of the KDE project
Copyright (C) 2002-2003 <NAME> <<EMAIL>>
(C) 2002 <NAME> <<EMAIL>>
(C) 2002 <NAME> <<EMAIL>>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by th... |
/**
pfodParser for Arduino
The pfodParser parses messages of the form
{ cmd ` arg1 ` arg2 ` ... }
or
{ cmd ~ arg1}
or
{ cmd }
The args are optional
This is a complete paser for ALL commands a pfodApp will send to a pfodDevice
see www.pfod.com.au for more details.
pfodParser adds abou... |
// Copyright (c) 2012-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "coins.h"
#include "consensus/consensus.h"
#include "memusage.h"
#include "random.h"
#include <assert.h>
bool CCo... |
#include <iostream>
#include <string>
#include <vector>
#include <sstream>
#include <fstream>
// ----------------------------------------------------------------------------
// ChiLA Includes
// ----------------------------------------------------------------------------
#include <VSOptions.hpp>
#include <VSOctaveIO.h... |
/*
* Copyright 2012 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkWriteBuffer.h"
#include "SkBitmap.h"
#include "SkData.h"
#include "SkPixelRef.h"
#include "SkPtrRecorder.h"
#include "SkStream.h"
#include "SkTypeface.h"
SkBinary... |
/* Spike is universal dedicated module handler
This source contains context for input data
Part of PreCore project
Copyright 2021 <NAME>
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 th... |
#include <iostream>
#include <fstream>
#include "bitmap.h"
#include <cstdlib>
typedef unsigned char uchar_t;
typedef unsigned int uint32_t;
typedef unsigned short int uint16_t;
typedef signed int int32_t;
typedef signed short int int16_t;
const int MIN_RGB=0;
const int MAX_RGB=255;
const int BMP_MAGIC_ID=2;
// -----... |
//Copyright (C) 2011 by <NAME>
//This file is licensed by the MIT License.
#include "glimg/ImageFormat.h"
#include "Util.h"
#define ARRAY_COUNT( array ) (sizeof( array ) / (sizeof( array[0] ) * (sizeof( array ) != sizeof(void*) || sizeof( array[0] ) <= sizeof(void*))))
namespace glimg
{
namespace
{
template<in... |
/*F***************************************************************************
*
* openSMILE - the Munich open source Multimedia Interpretation by
* Large-scale Extraction toolkit
*
* This file is part of openSMILE.
*
* openSMILE is copyright (c) by audEERING GmbH. All rights reserved.
*
* See file "COPYI... |
#ifdef G4MULTITHREADED
#include "G4MTRunManager.hh"
#include "G4Threading.hh"
#include <unistd.h>
#else
#include "G4RunManager.hh"
#endif
#include "Randomize.hh"
#include "G4UImanager.hh" // enables use of .in files
#include "G4VisExecutive.hh" // enables heprap file output
#include "G4UIExecutive.hh" ... |
#include "gl_core_3_2.h"
#include "SDL.h"
#include "SDL_opengl.h"
#include <Eigen/Dense>
#include <Eigen/Geometry>
#include "loadshaders_3_2.h"
#include <cmath>
#include <iostream>
#include <stdint.h>
namespace {
constexpr GLubyte *bufferOffset(size_t bytes)
{
return static_cast<GLubyte *>(0) + bytes;
}
const ... |
/*
Copyright (c) 2006-2010, The Scripps Research Institute
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... |
/*
* textdetection.cpp
*
* A demo program of End-to-end Scene Text Detection and Recognition:
* Shows the use of the Tesseract OCR API with the Extremal Region Filter algorithm described in:
* Neumann L., Matas J.: Real-Time Scene Text Localization and Recognition, CVPR 2012
*
* Created on: Jul 31, 2014
* A... |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long long unsigned llu;
typedef double dl;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
typedef vector<int> vi;
typedef vector<ll> vl;
typedef map<int,int> mii;
typedef map<ll,ll> ... |
/* ***** BEGIN LICENSE BLOCK *****
* Version: MPL 1.1/GPL 2.0/LGPL 2.1
*
* The contents of this file are subject to the Mozilla Public License Version
* 1.1 (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.mozilla.org/MPL/
*
... |
//
// Created by jiashuai on 17-9-17.
//
#include "thundersvm/dataset.h"
#include <omp.h>
#include <string>
using std::fstream;
using std::stringstream;
DataSet::DataSet() : total_count_(0), n_features_(0) {}
DataSet::DataSet(const DataSet::node2d &instances, int n_features, const vector<float_type> &y) :
ins... |
#include "Isis.h"
#include <cmath>
#include <float.h>
#include <QList>
#include <QString>
#include "ControlMeasure.h"
#include "ControlNet.h"
#include "ControlNetDiff.h"
#include "ControlNetFile.h"
#include "ControlNetVersioner.h"
#include "ControlPoint.h"
#include "IException.h"
#include "PvlContainer.h"
#include "... |
/*
* This file is part of ElasticFusion.
*
* Copyright (C) 2015 Imperial College London
*
* The use of the code within this file and all code within files that
* make up the software that is ElasticFusion is permitted for
* non-commercial purposes only. The full terms and conditions that
* apply to the cod... |
#include "IM_Obj.h"
#include "IM_IO.h"
#include "MR1D_Obj.h"
#include "IM_Noise.h"
#include "MR1D_NoiseModel.h"
/*void building_imag_ascii(char *Name_Imag_In,Iint &Event_Image,Ifloat &Image)
{
int c;
FILE *input;
int Nl,Nc,pixel_x,pixel_y,x_cur,y_cur,x_pos,y_pos,p,q;
float x_lu, y_lu,distance_x,distance_y,e... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
/* This file is part of the program and library */
/* SCIP --- Solving Constraint Integer Programs */
... |
#include "Ember/Ember.h"
#include "Ember/Core/Application.h"
#include "Ember/Animation/Spritesheet.h"
#include "Ember/Assets/Font.h"
#include <list>
#include <chrono>
#include <random>
const int snake_grid_width = 16;
const int snake_grid_height = 16;
const int grid_width_size = 32;
const int grid_height_size = 32;
... |
/*
+----------------------------------------------------------------------+
| Swoole |
+----------------------------------------------------------------------+
| This source file is subject to version 2.0 of the Apache license, |
| that is bundled wi... |
#include <iostream>
#include <vector>
#include <unordered_set>
#define LOGGING 0
#include "utils/logger.hpp"
#include "data-analysis/dataparser.hpp"
/**
* Get the route for a given packet in fat-tree topology.
*
* @param source Host ID of the source
* @param destination Host ID of the destination
* @p... |
#include <stdio.h>
#include <string>
#include <fstream>
#include <vector>
#include <cstdint>
#include <SDL2/SDL.h>
#include <chrono>
#include "8080.hpp"
#include "8080disas.hpp"
// Debug mode
bool DEBUG = false;
// Screen size
const int SCREEN_W = 224;
const int SCREEN_H = 256;
// Shift resister
uint16_t shift_re... |
#include "landmark_graph.h"
#include "../exact_timer.h"
#include "../globals.h"
#include "../operator.h"
#include "../state.h"
#include <cassert>
#include <ext/hash_map>
#include <list>
#include <map>
#include <set>
#include <sstream>
#include <utility>
#include <vector>
using namespace __gnu_cxx;
using namespace st... |
#include <leapmotion.h>
using namespace v8;
using namespace std;
namespace lm {
const std::string fingerNames[] = {"Thumb", "Index", "Middle", "Ring", "Pinky"};
const std::string boneNames[] = {"Metacarpal", "Proximal", "Middle", "Distal"};
void ListenerImpl::onInit(const Leap::Controller& controller) {
// std::c... |
#include "../core_include/api.h"
#include "../core_include/rect.h"
#include "../core_include/cmd_target.h"
#include "../core_include/wnd.h"
#include "../core_include/surface.h"
#include "../core_include/resource.h"
#include "../core_include/word.h"
#include "../source/manager/value_manager.h"
#include "value_ctrl.h"
#i... |
// -*- C++ -*-
//
// Package: testEcalClusterLazyTools
// Class: testEcalClusterLazyTools
//
/**\class testEcalClusterLazyTools testEcalClusterLazyTools.cc
Description: <one line class summary>
Implementation:
<Notes on implementation>
*/
//
// Original Author: "<NAME>
// Created: Mon Apr 7 14:11:... |
#include "tsuba/tsuba.h"
#include "GlobalState.h"
#include "RDGHandleImpl.h"
#include "katana/Backtrace.h"
#include "katana/CommBackend.h"
#include "katana/Env.h"
#include "katana/Plugin.h"
#include "tsuba/Errors.h"
#include "tsuba/file.h"
namespace {
katana::NullCommBackend default_comm_backend;
katana::Result<std... |
/*
* fiberrenderer.cpp
*
* Created on: 28.12.2012
* @author <NAME>
*/
#include "fiberrenderer.h"
#include "glfunctions.h"
#include "../../data/enums.h"
#include "../../data/models.h"
#include "../../data/datasets/fiberselector.h"
#include "../../data/properties/propertygroup.h"
#include <QtOpen... |
#include "process_privilege.h"
#include "process_util.h"
#include <iostream>
namespace pesieve {
namespace util {
inline HMODULE get_or_load_module(const char* name)
{
HMODULE hndl = GetModuleHandleA(name);
if (!hndl) {
hndl = LoadLibraryA(name);
}
return hndl;
}
/*
based on: https://supp... |
// ExtensionInfoAction.cpp: implementation of the CExtensionInfoAction class.
//
// Copyright (c) 1997-2001 Microsoft Corporation, All Rights Reserved
//
//////////////////////////////////////////////////////////////////////
#include "precomp.h"
#include "ExtensionInfoAction.h"
#include "ExtendString.h"
... |
/** Example 018 Splitscreen
A tutorial by <NAME>.
In this tutorial we'll learn how to use splitscreen (e.g. for racing-games)
with Irrlicht. We'll create a viewport divided
into 4 parts, with 3 fixed cameras and one user-controlled.
Ok, let's start with the headers (I think there's
nothing to say about it)
*/
#incl... |
// Copyright (c) 2012 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 "extensions/common/constants.h"
namespace extensions {
const char kExtensionScheme[] = "chrome-extension";
const base::FilePath::CharType ... |
/* ****************************************************************** **
** OpenSees - Open System for Earthquake Engineering Simulation **
** Pacific Earthquake Engineering Research Center **
** **
** ... |
#include "testing/testing.hpp"
#include "testing/testregister.hpp"
#include "base/logging.hpp"
#include "base/string_utils.hpp"
#include "base/timer.hpp"
#include "std/cstring.hpp"
#include "std/iomanip.hpp"
#include "std/iostream.hpp"
#include "std/regex.hpp"
#include "std/string.hpp"
#include "std/target_os.hpp"
#i... |
#include <docopt/docopt.h>
#include <imgui-SFML.h>
#include <imgui.h>
#include <spdlog/spdlog.h>
#include <SFML/Graphics.hpp>
#include <SFML/System/Clock.hpp>
#include <SFML/Window/Event.hpp>
#include <algorithm>
#include <functional>
#include <optional>
#include <outcome.hpp>
#include <system_error>
#include <tuple>
... |
/*
* Copyright 2006 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkAnimateMaker.h"
#include "SkAnimator.h"
#include "SkAnimatorScript.h"
#include "SkDisplayable.h"
#include "SkDisplayApply.h"
#include "SkDisp... |
/*
Program: Theatre Ticket Sales - Final Project
Programmer: <NAME>
Date: 4/26/2019
Purpose: This program simulates a theatre ticket purchasing system.
The user is prompted with a menu and based on their choice
they can see the seating chart for the theatre, purchase tickets,
see the sales re... |
#include <Arduino.h>
#include <Adafruit_MLX90640.h>
#include <ArduinoJson.h>
#include <WiFi.h>
#include <WebServer.h>
#include <ESPmDNS.h>
#include <WiFiUdp.h>
#include <ArduinoOTA.h>
WebServer server(80);
Adafruit_MLX90640 mlx;
const unsigned long getFrameInterval = 1000;
unsigned long previousFrameTime = 0;
const... |
/*
* This file is part of ACADO Toolkit.
*
* ACADO Toolkit -- A Toolkit for Automatic Control and Dynamic Optimization.
* Copyright (C) 2008-2014 by <NAME>, <NAME>,
* <NAME>, <NAME>, <NAME>.
* Developed within the Optimization in Engineering Center (OPTEC)
* under supervision of <NAME>. All rig... |
// File and Version Information:
// $Header: /nfs/slac/g/glast/ground/cvs/TkrRecon/src/PatRec/NeuralNet/NeuralNetFindTrackTool.cxx,v 1.20 2011/10/05 19:31:00 usher Exp $
//
// Description:
// Tool for find candidate tracks via the Neural Net approach
//
// Author:
// The Tracking Software Group
#inclu... |
// Copyright 2014 <NAME>. 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 applicable law... |
///*|-----------------------------------------------------------------------------
// *| This source code is provided under the Apache 2.0 license --
// *| and is provided AS IS with no warranty or guarantee of fit for purpose. --
// *| See the project's LICENSE.md for details. ... |
// Copyright (C) 2018-2019 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <vpu/allocator.hpp>
#include <vpu/hw/mx_stage.hpp>
#include <vpu/hw/utility.hpp>
#include <vpu/utils/numeric.hpp>
#include "graph_transformer_tests.hpp"
using namespace vpu;
using VPU_AdjustDataLocationTest = GraphTransf... |
// Copyright (C) 2007 <NAME>. All Rights Reserved.
// This code is published under the Eclipse Public License.
//
// Author: <NAME>
// Dept. of Computer Science
// University of British Columbia
// May 19, 2007
#include "matlabexception.h"
#include "array.h"
#include "matlabscalar.h"
#include "... |
#include <dirent.h>
#include <unistd.h>
#include <sstream>
#include <string>
#include <vector>
#include <iostream>
#include "linux_parser.h"
using std::stof;
using std::stol;
using std::string;
using std::to_string;
using std::vector;
// DONE: An example of how to read data from the filesystem
string LinuxParser::O... |
#include "coconut-tools/system/platform.hpp"
#if defined(CT_COMPILER_VISUAL_CXX)
# pragma warning(push)
# pragma warning(disable: 4244) // boost spirit spews conversion warnings
# pragma warning(disable: 4459) // boost spirit spews "hides global declarations" warnings
#endif /* CT_COMPILER_VISUAL_CXX */
#include "Par... |
// license:BSD-3-Clause
// copyright-holders:<NAME>
//============================================================
//
// chainentryreader.cpp - BGFX chain entry JSON reader
//
//============================================================
#include <string>
#include "emu.h"
#include "rendutil.h"
#include <modules/ren... |
#include <unistd.h>
#include <plutodrone/Protocol.h>
#include <string>
std::string MSP_HEADER="$M<";
int8_t inputBuffer[1024];
uint8_t bufferIndex=0;
int roll=0;
int pitch=0;
int yaw=0;
float battery=0;
int rssi=0;
float accX=0;
float accY=0;
float accZ=0;
float gyroX=0;
float gyroY=0;
float gyroZ=0;
float magX=0;
f... |
#include "simpleresource.h"
#include "../pd/define.h"
#include "../engine/image.h"
#include "actor.h"
#include "char.h"
#include "buff.h"
#include "../engine/util.h"
#include "blob.h"
#include "dungeon.h"
#include "level.h"
#include "heap.h"
#include "cellemitter.h"
#include "../engine/pixelparticle.h"
#in... |
#include "../include/Solver.h"
#include <algorithm>
#include "../include/constraints/specialConstraints/PrimitiveAtConstraint.h"
#include "../include/constraints/specialConstraints/PrimitiveNextConstraint.h"
#include "../include/constraints/specialConstraints/PrimitiveUntilConstraint.h"
#include "../include/constrain... |
#include "clang/Analysis/Til/Bytecode.h"
#include "clang/ASTMatchers/ASTMatchFinder.h"
#include "clang/Tooling/CompilationDatabase.h"
#include "clang/Tooling/Tooling.h"
#include "gtest/gtest.h"
#include "lsa/BuildCallGraph.h"
#include "til/TILCompare.h"
/// Registers the necessary matcher and runs the call graph gener... |
/* ------------------------------------------------------------------
Copyright (c) 2011-2020 <NAME>
email: <EMAIL>
This code is distributed under the MIT License.
Please see <root-path>/LICENSE for details.
-------------------------------------------------------------- */
#include "TM_GJK.h"
#i... |
// Copyright (c) 2013-2018 LG Electronics, 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 by applicable law or... |
#include "LSM6DSL.h"
#include <functional>
#include <iostream>
#include <cassert>
#include <cstring>
#include <math.h>
#define OP_INT1_CTRL (0xD)
#define OP_INT2_CTRL (0xE)
// Interrupt registers
#define WAKE_UP_SRC (0x1B)
#define TAP_SRC (0x1C)
#define D6D_SRC (0x1D)
#define DRDY_PULSE_CFG_G (0xB)
#define CTRL3_C ... |
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <vector>
#include <wchar.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include "../../00_other/font.h"
typedef struct {
int x, y;
int life;
int speed;
int attack;
} g_enemy;
typedef struct {
int x, y;
int... |
/*
* MetaCall Library by Parra Studios
* A library for providing a foreign function interface calls.
*
* Copyright (C) 2016 - 2020 <NAME> <<EMAIL>>
*
* 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 th... |
/* Copyright 2014-2017 Rsyn
*
* 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 agreed to in wr... |
#include "Graph.h"
#include <iostream>
#include <fstream>
#include <boost/algorithm/string/classification.hpp>
#include <boost/algorithm/string/split.hpp>
#include <algorithm>
#include <cmath>
using cluster_approx::Graph;
using std::make_pair;
using std::vector;
using std::iostream;
using std:: ofstream;
using std::if... |
/* - ElementDots - Copyright (C) 2017 <NAME>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the MIT License.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.