text stringlengths 3.08k 22k |
|---|
/*
* file: uio_gendev_sf103.cpp
* brief: MCU Specific implementation for the 48 pin STM32F103
* created: 2021-12-08
* authors: nvitya
*/
#include "hwintflash.h"
#include "hwspi.h"
#include "univio_comm.h"
#include "uio_device.h"
#include "clockcnt.h"
#define SPI_CS_PIN 28 // B12
#define UIOFUNC... |
//
// AbrAlgoStrategy.cpp
// apsara_player
//
// Created by shiping.csp on 2018/11/1.
//
#define LOG_TAG "AbrBufferAlgoStrategy"
#include "AbrBufferAlgoStrategy.h"
#include "AbrBufferRefererData.h"
#include <cassert>
#include <utility>
#include <utils/CicadaJSON.h>
#include <utils/frame_work_log.h>
#include <utils/t... |
/*
// Copyright (c) 2021 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 License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requi... |
#include <unistd.h>
#include <cstring>
#include <iostream>
#include <memory>
#include <filesystem>
#include <chrono>
#include <sstream>
#include "PowerSensor.hpp"
std::unique_ptr<PowerSensor::PowerSensor> powerSensor;
unsigned int sensor = 0;
unsigned int selectSensor(unsigned int sensor) {
if (sensor >= PowerS... |
#include <math.h>
#include <uWS/uWS.h>
#include <fstream>
#include <iostream>
#include "Inc/Eigen/Dense"
#include "Inc/catch_car.h"
#include "Inc/ekf.h"
#include "Inc/tests.h"
#include "Inc/tools.h"
#include "Inc/ukf.h"
#include "json.hpp"
using namespace std;
// for convenience
using json = nlohmann::json;
// Check... |
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define LOG_TAG "lamecomposer"
#include <android/gralloc_handle.h>
#include <log/log.h>
#include <hardware/hardware.h>
#include <hardware/hwcomposer.h>
#include <linux/fb.h>
#include <sys/ioctl.h>
#include <xf86drm.h>
#include <xf86drmMode.h>... |
#include <iostream>
#include <opencv2/opencv.hpp>
#include <pcl/io/pcd_io.h>
#include <pcl/point_cloud.h>
#include <pcl/console/parse.h>
#include <pcl/common/transforms.h>
#include <pcl/visualization/pcl_visualizer.h>
#include <pcl/filters/passthrough.h>
#include <pcl/registration/icp.h>
#include <pcl/filters/radius_ou... |
/* Copyright 2018 Canaan 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 agreed to in ... |
#include "core.h"
#include "frame.h"
#include "path/path.h"
#include "button.h"
#include "label.h"
#include "texture.h"
#include "renderUtils.h"
#include "guiUtils.h"
#include "mesh/primitive.h"
#include "buffers/frameBuffer.h"
#include "../physics/math/mathUtil.h"
Frame::Frame() : Frame(0, 0) {
};
Frame::Frame(do... |
#ifdef _WIN32
# define WINDOWS_LEAN_AND_MEAN
# define NOMINMAX
# include <windows.h>
#endif
#include <CL/sycl.hpp>
#include <dpct/dpct.hpp>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <float.h>
#include "helper_cuda.h"
#include "helper_timer.h"
#include <iostre... |
#include <stdafx.h>
#include "ModelDX11.hpp"
void Quin::System::DX11::ModelDX11::Initialize(ID3D11Device* device)
{
InitializeBuffer(device);
InitializeShader(device);
}
void Quin::System::DX11::ModelDX11::Shutdown()
{
ShutdownShader();
ShutdownBuffer();
}
void Quin::System::DX11::Mode... |
// Copyright (C) 2018-2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <gtest/gtest.h>
#include <gmock/gmock-spec-builders.h>
#include "mkldnn_graph.h"
#include "test_graph.hpp"
#include "single_layer_common.hpp"
#include <mkldnn_extension_utils.h>
#include "tests_common.hpp"
#include <cpp/... |
#include <pcap.h>
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <arpa/inet.h>
#include <linux_compat.h>
#include <unordered_map>
#include <string>
#include <errno.h>
#include <sys/socket.h>
#include <unistd.h>
#define ETHERNET_LINK_OFFSET 14
FILE *file = NULL;
int sockfd = 0;
s... |
/* +------------------------------------------------------------------------+
| Mobile Robot Programming Toolkit (MRPT) |
| http://www.mrpt.org/ |
| |
| Cop... |
/*
* 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 "License"); you may ... |
#include "rivulet.h"
#include "utils/graph.h"
#include <map>
#include <iterator>
using namespace rivulet;
/* Try to match a node with its closest neighbour in this SWC
return a postive index if matched
return -2 if unmatched
*/
long SWC::match(SWCNode n) {
float mindist = 1.0e4;
long minidx = -2;
// Find... |
/*****************************************************************************************
* *
* OpenSpace *
* ... |
/*
Author: <NAME>
Date: February 15,2020
File: vision_funcs.cpp
Purpose: implementation of vision_funcs.h functions
*/
#include <vector>
#include <unordered_map>
#include <iostream>
#include <cmath>
#include "image.h"
#include "DisjointSet.h"
#include "vision_funcs.h"
void print_obj_props(const ObjProps& op)... |
// SPDX-License-Identifier: BSL-1.0
#include "SshServer.h"
/* Based on sample by <NAME> */
#include <stdlib.h>
#include <sys/wait.h>
#include <stdio.h>
#include <malloc.h>
#include <libssh/callbacks.h>
#include <libssh/server.h>
#ifdef Q_CC_GNU
#pragma GCC diagnostic ignored "-Winvalid-offsetof"
#endif
#define cont... |
#include "vent.h"
#include <stdio.h>
#include <string.h>
#include <assert.h>
Vent::Vent()
{
isDos33 = false;
}
time_t prodosDateToEpoch(uint8_t prodosDate[4])
{
uint8_t year = prodosDate[1] >> 1;
uint8_t month = ((prodosDate[1] & 0x01) << 3) | ((prodosDate[0] & 0xE0) >> 5);
uint8_t day = prodosDate[0] & 0x1F... |
#include "rw_cpu.h"
#include <iostream>
#include <thread>
#include <random>
#include "../cuda/utils.cuh"
int64_t sample_neighbor(int64_t target_node,
const torch::TensorAccessor<int64_t,1> row_accessor,
const torch::TensorAccessor<int64_t,1> col_accessor,
... |
/***************************************************************************
* *
* Copyright (C) 2007 by Kanardia d.o.o. [see www.kanardia.eu] *
* Writen by: *
* <NAM... |
#include <iostream>
#include "main.h"
/*
* Ncoded PDF sample code using mupdf library
* This code can be updated from user's request.
*/
static fz_context *ctx = NULL; // global mupdf context
static pdf_document *doc_dest = NULL; // for Ncoded pdf
static void add_image_res(pdf_obj *resources, char *name, fz_i... |
/*
Copyright 2005-2008 Intel Corporation. All Rights Reserved.
This file is part of Threading Building Blocks.
Threading Building Blocks is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public License
version 2 as published by the Free Software Foundat... |
#include "watchyShader.h"
#define DARKMODE true
#ifndef _swap_int16_t
#define _swap_int16_t(a, b) \
{ \
int16_t t = a; \
a... |
// 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.
// This tool can be used to measure performace of video frame scaling
// code. It times performance of the scaler with and without filtering.
// It al... |
#include "FWPFBlockProxyBuilder.h"
#include "Fireworks/Candidates/interface/FWLegoCandidate.h"
//______________________________________________________________________________
void FWPFBlockProxyBuilder::scaleProduct(TEveElementList *parent, FWViewType::EType viewType, const FWViewContext *vc) {
typedef std::vector<... |
//===-- DWARFUnit.cpp -----------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#include "Adafruit_GFX.h"
#include "pin_magic_UNO.h"
#include "pin_magic_MEGA.h"
#include "registers.h"
#include "Adafruit_TFTLCD.h"
#include "Arduino.h"
#include "Menu3_Obj.h"
/*
Grbl Controller for the Grbl on a arduino uno.
This class handles the menu
Auth: <NAME>
Date: 17-02-2015
Version: 0.2
This version is... |
#include <cstdio>
#include <cstring>
#include <memory>
#include <string>
#include <cassert>
#include <dlfcn.h>
#include "vlog.h"
#include "confuse.h"
#include "cfg.h"
static
void configError(cfg_t *cfg, const char *fmt, va_list ap)
{
fprintf(stderr, "Config file error, line %d: ", cfg->line);
vfprintf(stderr,... |
// Copyright 2020 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... |
// BinarySearch.cpp : Defines the entry point for the application.
//
#include "BinarySearch.h"
#include <algorithm>
#include <array>
#include <iterator>
#include <string>
#include <vector>
#include <functional>
using charstr = std::basic_string<unsigned char>;
const std::array<char, 5> ga{ "test" };
//using names... |
// Copyright (c) Prevail Verifier contributors.
// SPDX-License-Identifier: MIT
#include <cinttypes>
#include <utility>
#include <vector>
#include "asm_syntax.hpp"
#include "ebpf_vm_isa.hpp"
#include "platform.hpp"
#include "crab/cfg.hpp"
using std::string;
using std::to_string;
using std::vector;
class AssertExtra... |
/*===================================================================*/
/* */
/* Mapper 119 : TQ-ROM */
/* */
/*==========================... |
// ThunderBird.cpp
// OpenGL SuperBible
// Demonstrates rendering a sample model with indexed vertex arrays
// Program by <NAME>.
#include "../../shared/gltools.h" // OpenGL toolkit
#include <math.h>
// Thunderbird body
extern short face_indicies[3704][9];
extern GLfloat vertices [1898][3];
extern GLfloat normals [27... |
#include <Arduino.h>
#include <ESP8266WiFi.h>
#include <ESP8266WebServer.h>
#include <Wire.h>
#include <Adafruit_BME280.h>
#include <DHT.h>
#include <time.h>
#include "secrets.h"
#define READ_SENSORS_INTERVAL_MS 30000
#define SENSOR_SAMPLES_BUFFER_SIZE 20
#define BME_ADR 0x76
#define BME_REAL_ALTITUDE 997
Adafruit_B... |
#include <stdafx.h>
#include "dii.h"
#include "TempController.h"
#include "TempCtrl.h"
#define nWRITE 2
#define nSTROBE 4
#define MICROAMP1 3
#define MICROAMP10 1
#define MICROAMP100 2
#define MILLIAMP1 0
#define GAIN1 0
#define GAIN10 4
#define GAIN100 8
#define DVM200 16
... |
//
// frame_builder.c
// barc
//
// Created by <NAME> on 2/10/17.
//
extern "C" {
#include <stdlib.h>
#include <MagickWand/MagickWand.h>
#include <uv.h>
#include <unistd.h>
#include "frame_builder.h"
#include "magic_frame.h"
}
#include <vector>
#include <map>
// Workaround C++ issue with ffmpeg macro
#ifndef __c... |
#define BOOST_TEST_DYN_LINK
#define BOOST_TEST_MODULE BasicStruct
#include <boost/test/unit_test.hpp>
#include <compressed_enums.hxx>
GMB_ENUM_MPL(As,
((a1, A1))
((a2, A2))
((a3, A3))
((a4, A4))
((a5, A5))
);
GMB_ENUM_MPL(Bs,
((b1, B1))
((b2, B2))
((b3, B3))
((b4, B4))
((b5, B... |
/*************************************************************************
* Copyright (c) 2015, Synopsys, Inc. *
* All rights reserved. *
* *
* Redistribution and... |
#include "MyInclude.h"
#include "MyExtern.h"
VILLAGE2 Village2;
void Village2Intal()
{
Shop1.blsDead=false;
Shop2.blsDead=false;
Shop3.blsDead=false;
Skill.DrawShop=false;
Filed.blsDead=false;
Filed.blsDead2=false;
Filed.blsDead3=false;
Filed2.blsDead=false;
Filed2.b... |
/**
* @file dataRetriever.cc
* @author
* @brief implement the interfaces of data retriever
* @version 0.1
* @date 2021-02-18
*
* @copyright Copyright (c) 2021
*
*/
#include "../../include/dataRetriever.h"
extern Configure config;
/**
* @brief Construct a new Data Retriever object
*
* @param inputFil... |
#include "lsh.h"
TLSHash::JaccardHash::JaccardHash(TRnd &Gen, int Dim) {
for (int i=0; i<Dim; i++) {
Perm.Add(i);
}
Perm.Shuffle(Gen);
}
TLSHash::JaccardHash::JaccardHash(TIntV Perm) : Perm(Perm) { }
int TLSHash::JaccardHash::Hash(TFltV Datum) {
for (int i=0; i<Perm.Len(); i++) {
if (Datum[Perm[i]] >... |
// The contents of this file are in the public domain. See LICENSE_FOR_EXAMPLE_PROGRAMS.txt
/*
This is an example illustrating the use of the graph_labeler and
structural_graph_labeling_trainer objects.
Suppose you have a bunch of objects and you need to label each of them as true or
false. Suppose f... |
/** \file Star.cpp
* \brief Obsahuje definice metod tridy Star.
*/
#include "Star.h"
#include "Math.h"
using std::make_pair;
void Star::Set_Settings(const Settings & settings)
{
ship_gravity = settings.Get_Setting_Value(Settings::SHIP_GRAVITY);
projectile_gravity = settings.Get_Setting_Value(Settings::PROJECTI... |
#include <algorithm>
#include <iostream>
#include "vehicle.h"
#include <cmath>
#include <map>
#include <string>
#include <iterator>
/**
* Initializes Vehicle
*/
Vehicle::Vehicle(){}
Vehicle::Vehicle(int lane, float s,float d, float v, float a, string state) {
this->lane = lane;
this->s = s;
this->cur... |
/*
* Exercicio:
*
* 1) Ler cartas da entrada padrão.
* 2) Implementar alg. find_if()
* 3) Implementar alg. filter()
* 4) Aplicar nas situações:
* 4A) Usar find_if para: Achar a primeira carta cujo valor da face seja uma figura (valete, dama, rei).
* 4B) Usar find_if para: Achar a primeira carta que s... |
#include <cstdint>
#include <Pokitto.h>
#include <miloslav.h>
#include <File>
#include <LibAudio>
#include <LibSchedule>
#include "FMSynthSource.h"
#include "music.h"
#define NOTE_A 12
#define NOTE_B 14
#define NOTE_C 3
#define NOTE_D 5
#define NOTE_E 7
#define NOTE_F 8
#define NOTE_G 10
#define NOTE(n, o) (n+o*12)-1... |
// Copyright (c) 2020, the GRAPHGEN contributors, as
// shown by the AUTHORS file. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
#include "graph_code_generator.h"
#include <map>
#include "utilities.h"
using namespace std;
BEFORE_AFTE... |
//
// KDTree.cpp
//
//
// Created by <NAME> on 12/3/13.
//
//
#include "KDTree.hpp"
#include <Eigen/Dense>
KDTree::KDTree(const unsigned n_Locations, const unsigned n_Dimension, double* locations, const unsigned n_Properties, double* properties, const unsigned MinParticlesInLeaf, const unsigned nLevels) {
t... |
#include "MyRobot.h"
using namespace std;
/********************************************************************
* Global Variables
********************************************************************/
const double pixel2angleHorizon = Camera::VIEW_V_ANGLE / ((double)240);
const double pixel2angleVertical =... |
/*
* A program that finds all suboptimal structures within a predefined small increment for a strand of nucleic acids.
* This strand of nucleic acids can be composed of either DNA or RNA.
*
* (c) 2009 Mathews Lab, University of Rochester Medical Center.
* Written by <NAME>
*/
#include "AllSub.h"
///////////////... |
#include <SFML/System.hpp>
#include <SFML/Graphics.hpp>
#include <iostream>
#include <vector>
#include <algorithm>
#include <thread>
#include <cstdlib>
#include <string>
#include "math.h"
#include "ExtraFuncs.h"
std::vector<std::vector<float>> GenerateWhiteNoise(unsigned int width, unsigned int height)
{... |
#include <sys/mount.h>
#import <CoreFoundation/CoreFoundation.h>
#include "native.h"
#include "macos_utils/macos_utils.h"
auto devlib::native::devicePartitions(QString const& devicePath)
-> std::vector<std::tuple<QString, QString>>
{
Q_ASSERT(!devicePath.isEmpty());
auto deviceName = devicePath.split('/... |
#include "Enemy_BigCamoJet.h"
#include "Application.h"
#include "ModuleCollisions.h"
#include "ModuleRender.h"
#include "SDL/include/SDL.h"
#include "ModuleParticles.h"
#include "ModulePlayer.h"
Enemy_BigCamoJet::Enemy_BigCamoJet(int x, int y, ENEMY_TYPE e_type) : Enemy(x, y, e_type)
{
hp = 5;
enemy_type = e_type;
... |
/*
The zlib/libpng License
Copyright (c) 2018 <NAME>
Copyright (c) 2015 <NAME>
Copyright (c) 2005-2010 <NAME> (pjcast -- www.wreckedgames.com)
This software is provided 'as-is', without any express or implied warranty. In no
event will the authors be held liable for any damages arising from the use of this
software.
... |
#include <dirent.h>
#include <unistd.h>
#include <string>
#include <vector>
#include <iostream>
#include <unistd.h>
#include "linux_parser.h"
#include "system.h"
using std::stof;
using std::string;
using std::to_string;
using std::vector;
// DONE: An example of how to read data from the filesystem
string LinuxPars... |
/**
* (c) Copyright 1993, 1994, Silicon Graphics, Inc.
* ALL RIGHTS RESERVED
* Permission to use, copy, modify, and distribute this software for
* any purpose and without fee is hereby granted, provided that the above
* copyright notice appear in all copies and that both the copyright notice
* and this perm... |
#include <cassert>
#include <chrono>
#include <fstream>
#include <iostream>
#include <memory>
// tensorrt
#include <NvInfer.h>
#include <NvInferPlugin.h>
#include <NvOnnxParser.h>
// opencv
#include <opencv/cv.hpp>
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc.hpp>
... |
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <errno.h>
#include <fcntl.h>
#define LOG_NDEBUG 0
#define LOG_TAG "hplay"
#include <utils/Log.h>
#include <media/AudioSystem.h>
#include <media/AudioRecord.h>
#include <media/AudioTrack.h>
#include <system/audio.h>
enum {
ON_HOLD = 0,
MUTED =... |
#include "hwcpp.hpp"
using target = hwcpp::target<>;
using timing = target::clocking;
using uart = target::uart;
using spi = hwcpp::spi_bus_bb_sclk_miso_mosi<
target::d13,
target::d12,
target::d11,
timing
>;
using rfid = hwcpp::rc522_spi_ss_rst<
spi,
target::d10,
target::d9,
timing
>... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "ResolveRefsPass.h"
#include <boost/algorithm/string.hpp>
#include "ApiLevelChecker.h"
#include "DexUtil.h"
#include "Me... |
#include "oloop_segment.h"
#include "indexbits.h"
#include "properties.h"
#include "tablepartitioned.h"
#include "queryparserosl.h"
#include "internoderouter.h"
using namespace openset::async;
using namespace openset::query;
using namespace openset::result;
// yes, we are passing queryMacros by value to ge... |
/* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
<NAME>, <EMAIL>
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with San... |
#include <iostream>
#include <string>
#include <vector>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netdb.h>
#include <string.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
#define SOCKET_ERROR -1
#define BUFFER_SIZE 100
#define HOST_NAM... |
// Copyright 2016 <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 the License at
//
// http ://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing,... |
#include <string>
#include <fstream>
#include <iostream>
#include <map>
#include <ctime>
#include <sstream>
#include <algorithm>
typedef std::map<std::string, int> twitch_emojis;
typedef std::map<std::string, twitch_emojis > twitch_users;
//possibly change to work by hour instead
void record(twitch_users &users, tw... |
/*
SELECT financial.quarterly_profits, financial.quarterly_revenues, all_employees.id, all_employees.name, all_employees.active, all_employees.active_direct_reports, all_employees.enumx, all_employees.enumy, founded, board_of_directors FROM Example1.Company
with (company = parseFromFile()) {
tuples.add(founded)
fo... |
/* ***** BEGIN LICENSE BLOCK *****
* Version: RCSL 1.0/RPSL 1.0
*
* Portions Copyright (c) 1995-2002 RealNetworks, Inc. All Rights Reserved.
*
* The contents of this file, and the files included with this file, are
* subject to the current version of the RealNetworks Public Source License
* Version ... |
// BEGIN CUT HERE
// END CUT HERE
#line 5 "FoxConnection2.cpp"
#include <cstdlib>
#include <cctype>
#include <cstring>
#include <cstdio>
#include <cmath>
#include <algorithm>
#include <vector>
#include <string>
#include <iostream>
#include <sstream>
#include <map>
#include <set>
#include <queue>
#include <stack>
#incl... |
/*
* Copyright (C) Volition, Inc. 1999. All rights reserved.
*
* All source code herein is the property of Volition, Inc. You may not sell
* or otherwise commercially exploit the source or things you created based on the
* source.
*
*/
#include <cmath>
#define MODEL_LIB
#include "cmdline/cmdline.h"
#inc... |
/*
Copyright (C) 2000-2005 Silicon Graphics, Inc. All Rights Reserved.
Portions Copyright (C) 2009-2010 SN Systems Ltd. All Rights Reserved.
Portions Copyright (C) 2009-2011 <NAME>. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it
under the terms of version 2 of ... |
/* ps.cc
This file is part of Cygwin.
This software is a copyrighted work licensed under the terms of the
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
details. */
#define PMEM_EXTENDED_PARAMETER PVOID
#include <errno.h>
#include <stdio.h>
#include <locale.h>
#include <wchar.h>
#include <windows.h>
#... |
#include <apriltag2_ros/TagDetectorRosWrapper.h>
TagDetectorRosWrapper::TagDetectorRosWrapper(const std::string &config_file)
{
readConfig(config_file);
if (params_.family == "tag36h11")
family_ = tag36h11_create();
else if (params_.family == "tag36h10")
family_ = tag36h10_create();
els... |
/**************************************************************************/
/* */
/* WWIV Initialization Utility Version 5 */
/* Copyright (C)1998-2021, WWIV Software Services */
/* ... |
#include <objects/haplotypeCluster.h>
pair<int, int> argmin2(vector<float> &input) {
pair<int, int> ret;
if (input[0] < input[1]) {
ret.first = 0;
ret.second = 1;
} else {
ret.first = 1;
ret.second = 0;
}
for (int i = 2; i < input.size(); i++) {
if (input[i] < input[ret.second]) {
... |
#include "MainWindow.h"
#include <SFML/Graphics.hpp>
MainWindow::MainWindow()
: m_MainWindow( sf::VideoMode(WWIDTH, WHEIGHT), "Bam!!", sf::Style::Close | sf::Style::Titlebar),
Q_normalColor(202, 11, 0), Q_hoverColor(162, 9, 0),
R_normalColor(175, 234, 220), R_hoverColor(140, 188, 176),
m_norma... |
#include <nds.h>
#include <stdio.h>
#include <fat.h>
#include <filesystem.h>
constexpr int WIDTH = 256, HEIGHT = 192;
constexpr int WIDTH2 = WIDTH / 2, HEIGHT2 = HEIGHT / 2;
constexpr int X_DIFF = 0x3000 / WIDTH2, Y_DIFF = 0x3000 / HEIGHT2;
constexpr int TEST_TOP_LEFT = 0;
constexpr int TEST_TOP_RIGHT = 1;
constexpr ... |
// Generated from /Library/Java/JavaVirtualMachines/jdk1.8.0_144.jdk/Contents/Home/jre/lib/rt.jar
#pragma once
#include <atomic>
#include <fwd-POI.hpp>
#include <java/io/fwd-POI.hpp>
#include <java/lang/fwd-POI.hpp>
#include <java/text/fwd-POI.hpp>
#include <java/util/fwd-POI.hpp>
#include <java/util/concurrent/fwd-P... |
/*
* Copyright © 2012, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
* All rights reserved.
*
* The NASA Tensegrity Robotics Toolkit (NTRT) v1 platform is licensed
* under the Apache License, Version 2.0 (the "License");
* you may not use t... |
//-
// ==========================================================================
// Copyright 1995,2006,2008 Autodesk, Inc. All rights reserved.
//
// Use of this software is subject to the terms of the Autodesk
// license agreement provided at the time of installation or download,
// or which otherwise accompan... |
/* main.cpp -- v1.0 -- program entry point
Author: <NAME>. 2021 */
#include <cassert>
#include <cstdio>
#include <cstring>
#include <cctype>
#include <memory>
#include <getopt.h>
#include <unistd.h>
#include "base64.hpp"
#include "block_encoder.hpp"
#include "block_decoder.hpp"
#include "error.hpp"
#include "imag... |
#pragma once
#include <inc/types.h>
#include <cmath>
#include <vector>
#define _USE_MATH_DEFINES
#include <math.h>
// Vector3 but double and no padding.
struct V3D {
V3D(Vector3 v3f)
: x(v3f.x), y(v3f.y), z(v3f.z) { }
V3D(double x, double y, double z)
: x(x), y(y), z(z) { }
V3D() = defaul... |
/* SPDX-License-Identifier: BSD-3-Clause
* Copyright(c) 2021 Intel Corporation
*/
#include "graph_impl.hpp"
#include "coding.hpp"
void EdgeList::EdgesListEncode(std::string *result) {
assert(!Empty());
// Reserve the Num edges' size for the result , or the
// string will be expand space frequently.
result-... |
/*
* Utils.cpp
*
* Created on: Mar 26, 2018
* Author: dumbledore
*/
#include "Utils.hpp"
#include "spline.h"
/*
* Upsamples waypoint data by a factor of upSampleFactor.
* Required for a smooth (s,d) -> (x,y) conversion by the getXY function.
*/
// Helper function
void upSampleVector(const std::vector<do... |
/*@
Copyright (c) 2013-2014, <NAME> <EMAIL>
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 conditions and... |
/* Copyright (c) 2015 Connectal Project
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publ... |
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtx/string_cast.hpp>
#include "Shader.h"
#include <iostream>
#include <cmath>
#include <vector>
#include <algorithm>
#include "imgui/imgui.h"
#include "imgui_i... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <GL/glew.h>
#include "util.h"
#include "sys.h"
//#include <GLFW/glfw3.h>
GLuint loadBMP_custom(const char * imagepath) {
printf("Reading image %s\n", imagepath);
// Data read from the header of the BMP file
unsigned char header[54];
unsigned i... |
#pragma once
#include "tensors.hpp"
#include "tools.hpp"
#include <limits>
#include <map>
#include <sstream>
#include <string>
#include <string_view>
#include <vector>
// implemented solvers for implicit stepping
enum class solve_opts
{
direct,
gmres,
scalapack
};
// map those choices to selection strings
us... |
/**
* Arping example application
* ================================
* This application resolves a target MAC address by its IPv4 address by sending an ARP request and translating the ARP response.
* Its basic input is the target IP address and the interface name/IP to send the ARP request from
*/
#include ... |
#include "NDimImage.h"
#include <math.h>
#include <cstring>
#include <unordered_map>
#include <thread>
#include <vector>
using namespace std;
// Vector of threads to be populated and cleared while downsampling.
vector<thread> threads;
// Create empty image with no values and a mode of 0
NDimImage::NDimImage()
{
i... |
#include <Logic/fol.h>
//#include <Gui/graphview.h>
//===========================================================================
void testPolFwdChaining(){
Graph G;
FILE("pol.g") >>G;
cout <<G <<endl;
cout <<"Q=" <<(forwardChaining_propositional(G, G["Q"]) ?"true":"false") <<endl;
}
//====================... |
extern "C" {
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
}
#include "arduino.h"
#include <I2C.h>
#include "RTC8564_I2C.h"
#define RTC8564_SLAVE_ADRS (0xA2 >> 1)
#define BCD2Decimal(x) (((x>>4)*10)+(x&0xf))
// Constructors ////////////////////////////////////////////////////////////////
RT... |
// This file is part of Project Name
// Copyright (C) Michigan State University, 2017.
// Released under the MIT Software license; see doc/LICENSE
#include <iostream>
#include "web/web.h"
#include "web/Selector.h"
#include "web/color_map.h"
#include "../box-world.h"
#include "web/d3/visualizations.h"
namespace UI... |
#include "voxelgrid.h"
#include <kdl/chainiksolverpos_lma.hpp>
#include <kdl/chainiksolverpos_nr.hpp>
#include <kdl/chainiksolvervel_pinv.hpp>
#include <Eigen/Dense>
#include <iostream>
#include <limits>
#include <random>
#include <unordered_map>
#include <algorithm>
class VoxelIndex {
public:
VoxelIndex (int x,... |
#include "LeptonThread.h"
#include "Lepton_I2C.h"
#include "Palettes.h"
#include <unistd.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <getopt.h>
#include <fcntl.h>
#include <assert.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#include <linux/types.h>
#include <linux/... |
/*
Copyright 2020 University of Minnesota and Clemson University
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, ... |
#include "stdafx.h"
#include "xrRenderCommon/du_cone.h"
/*
Fvector du_cone_vertices[DU_CONE_NUMVERTEX]=
{
0.0000f, 0.0000f, 0.0000f,
0.5000f, 0.0000f, 1.0000f,
0.4619f, 0.1913f, 1.0000f,
0.3536f, 0.3536f, 1.0000f,
0.1913f, 0.4619f, 1.0000f,
-0.0000f, 0.50... |
//===- odla_dnnl_reduction.cc ---------------------------------------------===//
//
// Copyright (C) 2019-2021 Alibaba Group Holding Limited.
//
// 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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.