text stringlengths 3.08k 22k |
|---|
//********************************************************
// Syzygy is licensed under the BSD license v2
// see the file SZG_CREDITS for details
//********************************************************
#include "arPrecompiled.h"
#include "arGraphicsDatabase.h"
arGraphicsStateNode::arGraphicsStateNode() {
... |
#include "ScenePlanning.h"
ScenePlanning::ScenePlanning() {
draw_grid = true;
num_cell_x = SRC_WIDTH / CELL_SIZE;
num_cell_y = SRC_HEIGHT / CELL_SIZE;
initMaze();
loadTextures("../res/coin.png", "../res/maze.jpg");
srand((unsigned int)time(NULL));
Agent *agent = new Agent;
agent->loadSpriteTexture("../res/... |
/* Copyright (C) 2014 InfiniDB, Inc.
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; version 2 of
the License.
This program is distributed in the hope that it will be useful,
but W... |
#include "myalg.h"
TEST(DeleteSubStringTest, Demo)
{
char *str = "abcde123abcd123";
char *sub_str = "123";
char *res_str = new char[100];
int subnum = DeleteSubStr(str, sub_str, res_str);
EXPECT_EQ(2, subnum);
EXPECT_STREQ("abcdeabcd", res_str);
}
TEST(PassLineTest, Demo)
{
float a1[10] = { 73.... |
/*
// Part of GTKPeriodicTable - Periodic Table of the Elements
// Copyright (C) 2018 <NAME>
//
// 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
// (... |
/*
* \brief Component starting bash in a sub-init to execute a specific command
* \author <NAME>
* \author <NAME>
* \date 2019-05-11
*/
/*
* Copyright (C) 2018 Genode Labs GmbH
* Copyright (C) 2019 gapfruit AG
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the ... |
// Copyright (c) 2016-2021 <NAME>.
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
// mkdir build
// cd build
// cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-std=c++14" ..
// make tests
// make benchmarks
#inclu... |
#include "LCD_Table.h"
#include <stdlib.h>
#include <iostream>
#include <ctype.h>
using namespace std;
LCD_Table::LCD_Table()
{
fTableSize=37;
}
LCD_Table::~LCD_Table()
{
}
void LCD_Table::Run()
{
cout<<"\t\t\tLCD TABLE\n";
ofstream out("Table Binary.txt",ios::out);
pt0:
cout<<"\nChoose fr... |
#include "Arduino.h"
#include "Bsp/Api.h"
#include "Cpl/System/Api.h"
#include "Cpl/System/FreeRTOS/Thread.h"
#include "Cpl/Io/InputOutput.h"
#include <Adafruit_SPIFlash.h>
#include <SdFat.h>
extern Cpl::Io::InputOutput& Bsp_Serial( void );
// file system object from SdFat
FatFileSystem fatfs;
File myFile;
Adafru... |
#include <iostream>
#include <iomanip>
#include <vector>
#include <string>
#include <stdio.h>
#include <stdlib.h>
#include <set>
#include "mymath.hxx"
#include <opengm/opengm.hxx>
#include <opengm/datastructures/marray/marray.hxx>
#include <opengm/graphicalmodel/graphicalmodel.hxx>
#include <opengm/datastructures/spa... |
#include <cstdint>
#include <cstdlib>
#include <iostream>
#include <vector>
// Please complete as many of the following questions as you can in about two
// hours. Answer in C++. Please briefly explain the reasoning behind your
// solutions.
//____________________________________________________________________
// 1... |
#include <cstdlib>
#include <iostream>
#include <cstring>
#include <string>
#include <regex>
#include <cctype>
#include <vector>
#include <limits>
#include <algorithm>
#include <map>
#include <getopt.h>
#include <common.h>
#include <resolver.h>
#include <md5.h>
#include <redis.h>
#include <json.h>
const char *progn... |
/*
** This source file is part of framepacker
**
** For the latest info, see https://github.com/paladin-t/framepacker/
**
** Copyright (C) 2015, 2020 <NAME>
** Copyright (C) 2020 <NAME>
**
** Permission is hereby granted, free of charge, to any person obtaining a copy of
** this software and associated documen... |
#include "gtest/gtest.h"
#include "transactions/builder.h"
#include "helpers/json.h"
#include <map>
#include <string>
TEST(transactions, transaction_to_array) {
// Type 0
auto transfer = Ark::Crypto::Transactions::Builder::buildTransfer("D61mfSggzbvQgTUe6JhYKH2doHaqJ3Dyib", 1, "", "Secret passphrase");
... |
/**
* @file main.cpp
* @brief Main source file for remote starter gateway
* @copyright 2019 Squall-DA
* @date 12/10/2019
*
* @remark Author: Squall-DA
* @remark Project Tree: LoRaRemoteStartGW
*
*/
/* Includes */
#include "ma... |
#include "bitmap_class.h"
// Returns true for success -- false otherwise
bool CBitmap::setSize(HDC hdc, int width, int height)
{
// If CBitmap has already been set -- clear it out first
freeMem();
bmp_width = width;
bmp_height = height;
// Set bmp_stride -- When windows makes a bitmap, it can include up to 4... |
#include "bird.h"
#include <stdio.h>
Bird::Bird(PSO* pso, Swarm *swarm, const vector<double>& pos_in, const vector<double>& vel_in, int index_in) {
TRACEV_IN("Bird::Bird");
index = index_in;
mySwarm = swarm;
psoAlgo = pso;
pos.assign(pos_in.begin(), pos_in.end());
bestPos.assign(pos_in.begin(), pos_in.end());
... |
/*
* Copyright 2021-Present Couchbase, Inc.
*
* Use of this software is governed by the Business Source License included
* in the file licenses/BSL-Couchbase.txt. As of the Change Date specified
* in that file, in accordance with the Business Source License, use of this
* software will be governed by... |
#include "deform.h"
#include <cmath>
#include <stdio.h>
void weigh_nodes(Mesh* mesh)
{
//@TODO: More advanced weighing algo.
}
v3 lap_on_mesh(int index, v3 pos, Mesh* mesh)
{
v3 lapl_pos;
for(int i = 0; i < mesh->vert_buf[index].nbs.size(); i++)
{
lapl_pos = lapl_pos + mesh->vert_buf[mesh->vert_buf[index].nb... |
#include "../inc_class/P_6_a_Monomial_class.h"
#include "../inc_class/P_6_a_Term_class.h"
#include "../inc_class/P_6_a_Polynom_class.h"
#include "../inc/Messages.h"
#include "../inc/Library_includes.h"
/* 1 */
Polynom_class::Polynom_class() : polynom_head{NULL} {}
/* 2 */
Polynom_class::Polynom_class(const Polynom_cl... |
/*
* Scene_House_Kitchen.cpp
* enigma
*
* Created by Rockford on 20/05/10.
* Copyright 2010 Casual Games France. All rights reserved.
*
*/
#include "MyGame.h"
#include "EScene.h"
#include "Scene_House_Kitchen.h"
#include "ESceneDirector.h"
#include "GlobalBank.h"
#include "MusicBank.h"
#include "EMiniJeuPol... |
//--------------------------------------------------------------------------
// Include file for jhead program.
//
// This include file only defines stuff that goes across modules.
// I like to keep the definitions for macros and structures as close to
// where they get used as possible, so include files only get st... |
#include <stdio.h>
#include "error.h"
// ----------------------------------------
// C++ function is overloaded for different error types,
// which depends on error types being enums to be differentiable.
void magma_xerror( cl_int err, const char* func, const char* file, int line )
{
if ( err != CL_SUCCESS ) {
... |
/****************************************************************************
* Copyright (c) 2015 - 2016, CEA
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code mus... |
/***************************************************************************************
*** ***
*** Copyright (c) 2019, <NAME>, Inc. ***
*** ... |
#include "NeuralNetwork.h"
#include <cstdlib>
#include <cmath>
#include <fstream>
NeuralNetwork::NeuralNetwork(const std::string &fileName) {
readFrom(fileName);
}
NeuralNetwork::NeuralNetwork(unsigned numOfInputs,
std::vector<unsigned> hiddenLayerSizes,
unsigned numOfOutputs) {
inputSize = numOfInputs;
labelN... |
////////////////////////////////////////////////////////////////////////////
// SHA-256.cpp -- SHA-256 hash generator
// This file is part of MZC3. See file "ReadMe.txt" and "License.txt".
////////////////////////////////////////////////////////////////////////////
#include "SHA-256.hpp"
////////////////////////////... |
/*
main.cpp (timonel-twim-ms)
==========================
Timonel library test program (Multi Slave) v1.4 "Beni"
----------------------------------------------------------------------------
This demo shows how to control and update several Tiny85 microcontrollers
running the Timonel bootloader from an ESP826... |
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
// ===========================================================================
// File: PEverf32.CPP
//
// Class PEverf32
// ===========================================================================
#include "PEv... |
/*
* ====================================================
* Copyright 2004 Sun Microsystems, Inc. All Rights Reserved.
*
* Permission to use, copy, modify, and distribute this
* software is freely granted, provided that this notice
* is preserved.
* ====================================================
*/
/* I... |
#include <stdio.h>
#include <string.h>
#include "modloader.h"
#include "mariopaint.h"
void prepareMariosong(Mariosong& msong) {
msong.header[0] = 's';
msong.header[1] = 'h';
msong.header[2] = 'r';
msong.header[3] = 'o';
// zero the memory first, we don't want random data to be saved to a file
memset... |
#include "hsaCorrelatorKernel.hpp"
#include "Config.hpp" // for Config
#include "gpuCommand.hpp" // for gpuCommandType, gpuCommandType::KERNEL
#include "hsaBase.h" // for hsa_host_free, hsa_host_malloc
#include "hsaCommand.hpp" // for kernelParams, REGISTER_HSA_COMMAND, _factor... |
//Copyright (c) 2013-2020, The MercuryDPM Developers Team. All rights reserved.
//For the list of developers, see <http://www.MercuryDPM.org/Team>.
//
//Redistribution and use in source and binary forms, with or without
//modification, are permitted provided that the following conditions are met:
// * Redistributions ... |
#include <iostream>
#include <cstring>
#include <chrono>
#include <glm/mat4x4.hpp>
#include <glm/gtx/transform.hpp>
#include "VK_UniformBuffer.h"
#include "VK_Context.h"
#include "VK_Image.h"
#include "VK_Texture.h"
using namespace std;
const std::vector<float> vertices = {
-0.5f, -0.5f, -0.5f, 0.0f, 0.0f,
... |
/*******************************************************************************
* This file is part of KaHyPar.
*
* Copyright (C) 2019 <NAME> <<EMAIL>>
*
* KaHyPar 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 ... |
#include "PlatformPrecomp.h"
#include "MainMenu.h"
#include "Entity/EntityUtils.h"
#include "Entity/CustomInputComponent.h"
#include "GUI/AboutMenu.h"
#include "GUI/GameMenu.h"
#include "Entity/ArcadeInputComponent.h"
#include "Gamepad/GamepadManager.h"
#include "Gamepad/GamepadProvideriCade.h"
#include "GUI/IntroMenu... |
/*
* Copyright (c) 2016 <NAME>
* <NAME> <<EMAIL>>
*
* 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,... |
// The MIT License (MIT)
//
// Copyright (c) 2015 dinowernli
//
// 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... |
#include <iostream>
#include <algorithm>
#include <time.h>
#include "../Eigen/Dense"
using namespace Eigen;
void TestBasic() {
// fixed size matrix type
printf("Matrix<float, 2, 2> == Matrix2f ? %s\n", typeid(Matrix<float, 2, 2>) == typeid(Matrix2f) ? "yes" : "no");
printf("Matrix<float, 3, 3> == Matrix3f ? %s\n",... |
#include <stdio.h>
#include <vector>
#include <string.h>
#include <errno.h>
#include "global.h"
#include "gamelib.h"
#include "network.h"
extern SDL_Renderer *RENDERER;
extern lua_State *LUA_STATE;
extern std::vector<gamelib_texture> *TEXTURES;
extern SDL_Rect SCREEN_RECT;
extern std::vector<TTF_Font*> *FONTS;
extern... |
/*
* Copyright (c) 2017-2018, NVIDIA CORPORATION. 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 ... |
/*=========================================================================
*
* Copyright (c) 2014-2015 The Regents of the University of California.
* All Rights Reserved.
*
* Portions of the code Copyright (c) 2009-2011 Open Source Medical
* Software Corporation, University of California, San Diego.
*
* Portio... |
#include <algorithm>
#include <array>
#include <cassert>
#include <cstdint>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <string_view>
#include <vector>
#include <sstream>
struct Point
{
int64_t x, y, z;
};
struct Nanobot
{
Point p;
int64_t... |
// Copyright (c) 2019, Compiler Tree Technologies Pvt Ltd.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// th... |
#include "LPS.h"
#include <iostream>
#include <Windows.h>
bool DirExist(char* strPath);
bool CreateDir(char* strPath);
LPS::LPS()
{
m_Closed = false;
m_SkipIndex = 0;
m_BaseOffset = 0;
m_Header = {};
}
LPS::~LPS()
{
Close();
}
bool LPS::Open(std::string filename)
{
m_Stream.open(filename, std::ios_base::binar... |
//
// VROPortalTreeRenderPass.cpp
// ViroKit
//
// Created by <NAME> on 8/9/17.
// Copyright © 2017 Viro Media. All rights reserved.
//
// 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 Softwa... |
/*
GUIDO Library
Copyright (C) 2002 <NAME>, <NAME>, <NAME>
Copyright (C) 2002-2013 Grame
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
Grame Research Labora... |
// Copyright (c) 2014-2016 The ShadowCoin developers
// Copyright (c) 2016-2019 The Spectrecoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file license.txt or http://www.opensource.org/licenses/mit-license.php.
#include "core.h"
void addAnonOutput(CPubKey& pkAo, CAnonOutput&... |
//
// wirelessly connected cloud (Wireless Mesh Networking)
// MIDI-like
// spacial
// sampler keyboard
//
//
// COSMO40 @ Incheon w/ Factory2
// RTA @ Seoul w/ Post Territory Ujeongguk
//
//
// 2019 12 11
//
// (part-3) teensy35 : 'client:sampler' (mesh post --> play sounds)
//
//HACK: let auto-poweroff speakers st... |
#include <iostream>
#include <fstream>
#include <vector>
#include <set>
#include <unordered_set>
#include <unordered_map>
#include <ctime>
#include <string>
#include <stdlib.h>
#include <cmath>
using namespace std;
double d = 0.85;
double threshold = 1e-6;
// 用于压缩图的节点
struct Page
{
vector<int>... |
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QNetworkRequest>
#include <QProgressDialog>
#include <QJsonObject>
#include <QAction>
#include <QMenu>
#include <QInputDialog>
#include <QMessageBox>
#include <QUrlQuery>
#include <QJsonArray>
#include <functional>
#include <QJsonDocument>
#include "w... |
#include <errno.h>
#include <kernel.h>
#include <lib/string.h>
#include <proc/sched.h>
#include <proc/signal.h>
#include <proc/thread.h>
static sigset_t ignored_signals;
static sigset_t stop_signals;
static sigset_t unblockable_signals;
void thread::handle_signal(struct interrupt_context* ctx)
{
sigset_t unblocke... |
// Copyright (c) 2019 University of Paderborn
// (<NAME> <<EMAIL>>,
// <NAME> <<EMAIL>>)
// 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 t... |
//
// Created by cc on 2020/8/4.
//
#include <ros/ros.h>
#include <trajectory_msgs/JointTrajectoryPoint.h>
#include <Eigen/Eigen>
#include <geometry_msgs/PoseStamped.h>
#include <geometry_msgs/TwistStamped.h>
#include <mavros_msgs/AttitudeTarget.h>
#include <math.h>
#include <dynamic_reconfigure/server.h>
#include <pv... |
// Vector3.h does "#define float double" => include early
#include <Vector3.h>
#include "../experimental/annealing/my_anneal.cpp"
#include "../include/algo_helpers.h"
#include <iomanip>
#include <sstream>
class BiarcMovePoint : public BasicMove {
public:
Curve<Vector3> *knot;
int node;
Vector3 p, old_p;
... |
#include <cstdio>
#include <cstring>
#include "util/logging.hpp"
#include "util/files_env.hpp"
#include "driver.hpp"
static Logger& LOG = Logger::get( "MAIN" );
int main( int argc, const char **argv )
{
// Logger::set_global_threshold(Level::ALL);
// for (int lvl=Level::NONE; lvl < Level::ALL; lvl++... |
#include <dsn/dist/replication/replication_ddl_client.h>
#include <iostream>
using namespace dsn;
using namespace dsn::replication;
void usage(char* exe)
{
std::cout << "Usage:" << std::endl;
std::cout << "\t" << exe << " <config.ini> create_app -name <app_name> -type <app_type> [-pc partition_count] [-rc re... |
// Solar Mining Module Prototype A
// https://www.solarbit.cc
#include "SolarBit_SMM.h"
SMMClass::SMMClass() {
_mode = SMM_EMULATED;
_status = SMM_IDLE;
}
const char* SMMClass::firmwareVersion() {
if (_mode == SMM_EMULATED) {
return SMM_FIRMWARE_REQUIRED;
} else {
return NULL; // TODO: Hardware
}
}
uint8_t... |
#include "MidiPad.h"
MidiPad::MidiPad (int _index)
: Button ("MidiPad"),
normalImage (0),
index(_index),
text (0)
{
backgroundOff = Colour (0xffbbbbff);
backgroundOn = Colour (0xff3333ff);
Description = "x:0 y:0";
showdot=false;
showvalues=false;
showx=false;
... |
/*
* cblinkprocessor.cpp
* This file is part of SENSBLI.
*
* Copyright (c) 2009 <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 mus... |
#include<malloc.h>
#include<stdio.h>
#include<stdlib.h>
#include<iostream>
#include<string.h>
#include<time.h>
#include<limits>
#include<omp.h>
#include<thread>
#include<vector>
#include<sstream>
#include<algorithm>
#include<cmath>
#include<numeric>
#include<iomanip>
#include<map>
#define STRINGIFY(x) #x
#define MACRO... |
#include <iostream>
#include <string>
#include <cstring>
#include <fstream>
#include <sstream>
#include <vector>
#include <algorithm>
#define MIN_FREQ 1296
// AUTHOR: <NAME>
// LAST EDIT: 3/17/2022
// structure denoting a word occurence
// contains the string of the word and an integer representing its... |
#include "PgnManager.h"
using namespace std;
PgnManager::PgnManager() { }
PgnManager::PgnManager(ifstream& pgnFileStream) {
// Initialise the EncodedMoves vector with a single string.
this->EncodedMoves = vector<string>(1);
// Read each line. If the line has a tag pair (metadata), populate the
// ap... |
// Copyright (c) 2012-2014 The Bitcoin developers
// Copyright (c) 2016-2018 The PIVX developers
// Copyright (c) 2018 The MOKEN 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 "random.h"
... |
/*
* Copyright (C) 2018 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 required by app... |
//===-- XcodeSDK.cpp ------------------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmCTestCVS.h"
#include "cmCTest.h"
#include "cmProcessTools.h"
#include "cmSystemTools.h"
#include "cmXMLWriter.h"
#include "cmsys/FStream.hxx"
#include "cmsys/... |
// -*- mode:c++; tab-width:2; indent-tabs-mode:nil; c-basic-offset:2 -*-
/*
* Copyright 2010 ZXing authors All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... |
#include "Ray.h"
#include "Vector3f.h"
#include "Mesh.h"
#include "Octree.h"
#include <vector>
///@brief two intervals intersect
bool
intersect(float *a, float *b)
{
if (a[0] > b[1]) {
return a[0] <= b[1];
} else {
return b[0] <= a[1];
}
}
///@brief two boxes intersect
bool
boxOverlap(Box... |
//
// Geometric3D.cpp
// AxiSEM3D
//
// Created by <NAME> on 4/12/20.
// Copyright © 2020 <NAME>. All rights reserved.
//
// 3D geometric models
#include "Geometric3D.hpp"
#include "Quad.hpp"
#include "mpi.hpp"
// apply to Quad
void Geometric3D::applyTo(std::vector<Quad> &quads) const {
if (!isSuperOnly()) ... |
#include <igl/readOFF.h>
#include <igl/viewer/Viewer.h>
#include "twisting.h"
#include "scaling.h"
#include "tapering.h"
#include "bending.h"
//==============================================================================
// Loaded Model
//=============================================================================... |
// Copyright 2012 Google Inc.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and... |
/*
* DayScene.cpp
* CoralSoulApp
*
* Created by <NAME> on 10/11/17.
*
*/
#include "DayScene.h"
#include "AppManager.h"
#include "ofxEasing.h"
DayScene::DayScene(): ofxScene("DAY")
{
//Intentionally left empty
}
DayScene::~DayScene()
{
//Intentionally left empty
}
void DayScene::setup() {
ofLo... |
// ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ----------------------------------------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2018-2021 www.open3d.org
//
// Perm... |
/*
* SPDX-License-Identifier: Apache-2.0
*/
//===---- TestCategoryMapper.cpp - Test CategoryMapper Implementation -----===//
//
// Copyright 2022 The IBM Research Authors.
//
// =============================================================================
//
// This file contains end-to-end tests for the CategoryMap... |
#include "drivers/FPGA.hpp"
#include <memory>
#include <stdint.h>
#include "device-bins/fpga_bin.h"
#include "FreeRTOS.h"
#include "task.h"
template <size_t SIGN_INDEX>
uint16_t toSignMag(int16_t val) {
return static_cast<uint16_t>((val < 0) ? ((-val) | 1 << SIGN_INDEX) : val);
}
template <size_t SIGN_INDEX>
i... |
/**********************************************************************
// @@@ START COPYRIGHT @@@
//
// 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. ... |
#include "coap.h"
#include "Arduino.h"
#define LOGGING
Coap::Coap(
UDP& udp
) {
this->_udp = &udp;
}
bool Coap::start() {
this->start(COAP_DEFAULT_PORT);
return true;
}
bool Coap::start(int port) {
this->_udp->begin(port);
return true;
}
uint16_t Coap::sendPacket(CoapPacket &packet, IPAddr... |
#include <ModelParser.H>
#include <cmath>
using namespace amrex;
void
ModelParser::ReadFile(const std::string& model_file_name)
{
// open the model file
std::ifstream model_file(model_file_name);
Print() << "model file = " << model_file_name << std::endl;
if (!model_file.is_open()) {
Abort(... |
/*******************************************************************************
* Copyright 2017 ROBOTIS CO., LTD.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... |
/*
* Copyright (c) 2010 by <NAME> <<EMAIL>>
* Copyright (c) 2014 by <NAME> <<EMAIL>> (Transaction API)
* SPI Master library for arduino.
*
* This file is free software; you can redistribute it and/or modify
* it under the terms of either the GNU General Public License version 2
* or the GNU Lesser General Public... |
/***********************************************************************************************************************
* *
* ANTIKERNEL v0.1 ... |
#include "RRTstar.h"
#include <QRandomGenerator>
#include <iostream>
#include <random>
const double EPS = 1e-6;
bool pathFound = false;
RRTSTAR::RRTSTAR() {
obstacles = new Obstacles;
startPos.setX(START_POS_X);
startPos.setY(START_POS_Y);
endPos.setX(END_POS_X);
endPos.setY(END_POS_Y);
root = new Node;
... |
/*
* Copyright (c) 2006-2014 Apple Inc. All Rights Reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file except in
* ... |
#include "meshcutting.h"
#include "ChiMesh/MeshContinuum/chi_meshcontinuum.h"
#include "chi_log.h"
extern ChiLog& chi_log;
#include <queue>
#include <algorithm>
#include <functional>
//###################################################################
/***/
void chi_mesh::mesh_cutting::
Cut3DCell(const std::vect... |
/* mbed Microcontroller Library
* Copyright (c) 2018 ARM 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 at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless require... |
// Copyright 1996-2021 Cyberbotics Ltd.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agr... |
// GetInjectedThread.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <Windows.h>
#include <stdio.h>
#include <TlHelp32.h>
#include <vector>
#include <winternl.h>
#include <winnt.h>
#pragma comment(lib, "ntdll")
// Forward declarations
BOOL GetProcesses(std... |
/* Tests a kernel with a struct scalar argument.
Copyright (c) 2012 <NAME> / Tampere University of Technology
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 restrict... |
#include <stdio.h>
#include <math.h>
#include "camera.h"
#include "fps.h"
#include <GL/glut.h>
#include <IL/il.h>
#include <IL/ilu.h>
#include <IL/ilut.h>
#include "jelloMesh.h"
#include "world.h"
#define MWIDTH 1280
#define MHEIGHT 720
JelloMesh theJello;
Camera theCamera;
World theWorld("../worlds/ground.xml");
mm... |
#include "lutgen.hpp"
#include <cmath>
#include <iomanip>
#include <sstream>
#include "export_params.hpp"
#include "fileutils.hpp"
#include "logger.hpp"
#include "scanner.hpp"
#include "shared.hpp"
const std::map<std::string, LutFunc> function_map =
{
{"cos", LutFunc(cos, true)},
{"sin", LutFunc(sin, true)},... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... |
#include "QuickClustering.h"
/***************************************************************************
This function reads an mgf file into a basic spectra structure
It allocates memory and stores the spectra in the supplied vector.
returns false if unsuccsedul in read
*************************... |
#include "NuulsUploader.hpp"
#include "common/Env.hpp"
#include "common/NetworkRequest.hpp"
#include "providers/twitch/TwitchMessageBuilder.hpp"
#include "singletons/Paths.hpp"
#include "singletons/Settings.hpp"
#include <QBuffer>
#include <QHttpMultiPart>
#include <QMimeDatabase>
#include <QMutex>
#define UPLOAD_DE... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... |
/* ************************************************************************
* Copyright (c) 2018-2019 Advanced Micro Devices, Inc.
*
* 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 witho... |
//
// Created by System Administrator on 2019-07-23.
//
#include "clickhouse_graph_t.hpp"
#include <iostream>
using namespace clickhouse;
clickhouse_graph_t::clickhouse_graph_t(const std::string& host) : clickhouse_t(host){
}
clickhouse_graph_t::edges_t clickhouse_graph_t::edges(const std::string & table, int rou... |
#include "Data.h"
#include "Rule.h"
#include "RuleSet.h"
#include "WhichStack.h"
#include "defines.h"
#include <sstream>
#include <ctime>
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <cmath>
using namespace std;
/**
* Prints help information for Which.
**/
void printHelp( string... |
#include "modes.h"
#include <catboost/libs/data/loader.h>
#include <catboost/libs/data/data_provider_builders.h>
#include <catboost/libs/data/proceed_pool_in_blocks.h>
#include <catboost/libs/helpers/vector_helpers.h>
#include <catboost/libs/logging/logging.h>
#include <catboost/libs/model/model.h>
#include <catboost/... |
#include <List.h>
#include <Message.h>
#include <Window.h>
#include "CLVEasyItem.h"
#include "ColumnListView.h"
#include "globals.h"
#include "gsm.h"
#include "callregslotview.h"
#include "calview.h"
#include "pbbynameview.h"
#include "pbview.h"
#include "phonelistslotview.h"
#include "smsview.h"
#include "smsinboxvie... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.