text stringlengths 3.08k 22k |
|---|
/*
ISC License
Copyright (c) 2016, <NAME> <<EMAIL>>
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 AU... |
#define _USE_MATH_DEFINES
#include "util_p.hpp"
#include "find.hpp"
#include <cmath>
using namespace ReVoice;
void rvExitCheck()
{ rvCheckAllocated(); }
FrameRange rvGetFrameRange(int inputLen, int center, int size)
{
rvAssert(inputLen > 0, "inputLen must be greater than 0");
rvAssert(size > 0, "size must be gr... |
/*
Copyright 2008-2009 <NAME> (<EMAIL>). All rights reserved.
Copyright 2008-2009 <NAME> (<EMAIL>). All rights reserved.
THE BSD LICENSE
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 m... |
/*
SIN Toolchain (x86 target)
symbol_table.cpp
Copyright 2020 <NAME>
Implementation of the symbol_table class
*/
#include "symbol_table.h"
/*
symbol_table::node
*/
symbol_table::node::node(std::string name, std::string scope_name, unsigned int scope_level):
name(name),
scope_name(scope_name),
scope_level(sco... |
#include <cstring>
#include <iostream>
#include <numcxx/numcxx.hxx>
#include <numcxx/simplegrid.hxx>
namespace triangle
{
extern "C" {
#define VOID void
#define REAL double
#define ANSI_DECLARATORS
#include "../triangle/triangle.h"
#undef REAL
#undef VOID
#undef ANSI_DECLARATORS
}
}
namespace numcxx
{
inline ... |
/*
Procedural Generation: Programming The Universe
"Here we go again! Year 4 begins now..." - javidx9
License (OLC-3)
~~~~~~~~~~~~~~~
Copyright 2018-2020 OneLoneCoder.com
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following condit... |
// Copyright (c) Open Enclave SDK contributors.
// Licensed under the MIT License.
#include <common/dispatcher.h>
#include <common/remoteattestation_t.h>
#include <enclave_b_pubkey.h>
#include <openenclave/enclave.h>
#include <string.h>
#include <stdio.h>
// For this purpose of this example: demonstrating how to do rem... |
/* $Id: persist_context.cpp 48153 2011-01-01 15:57:50Z mordante $ */
/*
Copyright (C) 2010 - 2011 by <NAME>
Part of the Battle for Wesnoth Project http://www.wesnoth.org/
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as publi... |
// SHM.C: Shape manager for
// CGA/EGA/VGA/CGA GRAY/EGA GRAY
// Handles the following functions:
// shm_init :Init shape manager
// shm_do :Prepare shape tables (load/trash) using shm_want[]
// shm_exit :Terminate shape manager
#include <stdlib.h>
#include <fcntl.h>
#include <string.h>
#include <math.h>
#inclu... |
/*
Copyright (c) 2012-2014 The SSDB 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 "version.h"
#include "util/log.h"
#include "util/string_util.h"
#include "serv.h"
#include "net/proc.h"
#include "net/server.h"
#include "proc_s... |
/******************************************************************************
* Copyright (c) 2020, Intel Corporation. All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception.
*
*****************************************************************************/
#include "systemc.h"
using names... |
#include <HydroMonitorCore.h>
HydroMonitorCore::HydroMonitorCore () {
}
void HydroMonitorCore::begin (HydroMonitorCore::SensorData *sd) {
sensorData = sd;
}
/*
Validate the string to contain a number: all characters should be a digit, may start with + or -.
*/
bool HydroMonitorCore::isNumeric(String str) {
ui... |
//
// Created by LiHong on 16/1/23.
// Copyright (c) 2016 LiHong. All rights reserved.
//
#include <stdio.h>
#include "Cylinder.h"
const char *CylinderSeg = "#define PI 3.1415926535897932384626433832795\n"
"\n"
"uniform mat4 projection;\n"
"uniform mat4 modelView;\n"
"attribute vec3 vP... |
#include "triangulation.h"
int find_first(HalfedgeDS he, int v, int r, MatrixXi R) {
int edge = he.getOpposite(he.getEdge(v));
while (R(he.getFace(edge),0)!=r || R(he.getFace(he.getOpposite(edge)),0)==r) {
edge = he.getNext(he.getOpposite(edge));
}
return edge;
}
int find_second(HalfedgeDS he,... |
/************************************************
Copyright (c) 2016, Xilinx, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright noti... |
// test program for Compact_container.
#include <cassert>
#include <cstddef>
#include <list>
#include <vector>
#include <type_traits>
#include <CGAL/Compact_container.h>
#include <CGAL/Random.h>
#include <CGAL/tags.h>
#include <CGAL/use.h>
#include <CGAL/assertions.h>
#include <boost/type_traits/is_base_of.hpp>
#in... |
#include "rrt.h"
void RRT::init()
{
//将起点加入到点集中
node* n = new node(start);
nodeLists.push_back(n);
srand(time(NULL)); //设置随机数种子,使每次产生的随机序列不同
//绘制起始点和终点
cv::circle(mapPtr->getPlanMap(), cv::Point(start.x, start.y), 5,
cv::Scalar(0, 0, 255), -1);
cv::circle(mapPtr->getPlanMap(... |
/**********
Copyright (c) 2019, Xilinx, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice,
this list of conditions and the fol... |
/**
Copyright (c) 2018, wicked systems
Redistribution and use in source and binary forms, with or without modification, are
permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of
conditions and the following d... |
//
// Created by 王珅祎 on 2021/10/30.
//
#include "insert_tx.h"
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <algorithm>
// Declares clang::SyntaxOnlyAction.
#include "clang/Frontend/FrontendActions.h"
#include "clang/Tooling/CommonOptionsParser.h"
#include "clang/Tooling/Toolin... |
#include "input_tim.h"
#include <application.h>
// Reference Manual: http://www.st.com/content/ccc/resource/technical/document/reference_manual/51/f7/f3/06/cd/b6/46/ec/CD00225773.pdf/files/CD00225773.pdf/jcr:content/translations/en.CD00225773.pdf
// 14.3.5 Input capture mode
// See also stm32f2xx_tim.c:1840
// Timer... |
#include <iostream>
#include <chrono>
#include <fstream>
#include <regex>
#include <boost/program_options.hpp>
#include <cadmium/engine/pdevs_runner.hpp>
using namespace std;
namespace po=boost::program_options;
using hclock=chrono::high_resolution_clock;
// In the case of Cadmium we generate a sourceafile for the mo... |
//
// Created by alice on, 07.05.21.
//
// Google Test framework
#include <gtest/gtest.h>
#include "helpers_for_testing.hpp"
// Standard library
#include <iostream>
// To be tested
#include "rate_adaptive_code.hpp"
// Test cases test against constants known to be correct for the LDPC-matrix defined here:
#include "... |
/**
* Copyright 2020 Huawei Technologies 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.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed ... |
#include <glm\ext.hpp>
#include <Gizmos.h>
#include "Application2D.h"
#include "Texture.h"
#include "Font.h"
#include "Input.h"
Application2D::Application2D() {}
Application2D::~Application2D() {}
glm::vec2 Application2D::WorldToGizmo(glm::vec2 coord) {
float scaleFactor;
scaleFactor = 200.0f / 1280.0f;
glm::vec... |
// The code is based on/taken from an example presented in:
// Creative Coding: OpenFrameworks / "Algorithmic Vision"
// Parsons MFA Design and Technology, Fall 2017
// By [<NAME>](http://tylerhenry.com), <EMAIL>
// Original sources at https://github.com/tyhenry/dt_openframeworks_f17.
#include "ofApp.h"
//----------... |
/*
* Copyright (c) 2017, <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 o... |
#include <vtkVersion.h>
#include <vtkSmartPointer.h>
#include <vtkCellArray.h>
#include <vtkTriangle.h>
#include <vtkSphereSource.h>
#include <vtkCubeSource.h>
#include <vtkCylinderSource.h>
#include <vtkConeSource.h>
#include <vtkPlatonicSolidSource.h>
#include <vtkPlaneSource.h>
#include <vtkDiskSource.h>
#include <v... |
#include "CCgi.h"
#include "cgicc/CgiEnvironment.h"
#include <hprocess.h>
#include <hfname.h>
#include <hlog.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
using namespace cgicc;
CCgi::CCgi () {
m_pTrans = nullptr;
}
CCgi::~CCgi (){
if (m_pTrans !=... |
// file: quat2eul.cpp, style: indent -kr -ci2 -cli2 -i2 -l80 -nut <file>
//
// License http://opensource.org/licenses/BSD-3-Clause
// Copyright (c) 2016, ItsmeJulian (github.com/ItsmeJulian)
// All rights reserved.
//
// Takes quaternion (imaginary or full) and converts it to Euler angles
//
// Source http://de.mathwor... |
/*
* A simple re-implementation of the IRD number scanner in C++
* Useful for testing and development
* Compile using: g++ validate_numbers.cpp -o validate_numbers
* Permissions using: chmod u+x validate_numbers
* Run using: ./validate_numbers
*/
/* Includes required for bulk_extractor plugin */
#include <cstring>
#in... |
//------------------------------------------------------------------------------
// MessengerComparissonTester.cpp
//
//------------------------------------------------------------------------------
// Standard Includes -----------------------------------------------------------
#include <stdio.h>
// System Includes ... |
#include "perturb.hpp"
#include <iostream>
#include <opencv2/imgproc.hpp>
#include <cstring>
#include <stb_image.h>
#include <random>
#include <chrono>
// Helper functions.
static void extract_alpha_channel(cv::Mat& alpha_channel, const unsigned char* data);
static void replace_background(cv::Mat& color_channels);
st... |
//===============================================================================
// @ IvCovariance.cpp
//
// Helper routines for computing properties of covariance matrices
// ------------------------------------------------------------------------------
// Copyright (C) 2008-2015 by <NAME> and <NAME>.
// All rights ... |
#pragma once
#include <raindance/Core/Scene/Node.hh>
class WorldMapGeoPoint : public Scene::Node
{
public:
WorldMapGeoPoint()
{
m_Color = glm::vec4(1.0, 1.0, 1.0, 1.0);
m_Size = 2.0;
}
~WorldMapGeoPoint()
{
}
void draw(Context* context, const glm::mat4& projection, const glm::mat4& view, const glm::mat4&... |
/*
Stockfish, a UCI chess playing engine derived from Glaurung 2.1
Copyright (C) 2004-2008 <NAME> (Glaurung author)
Copyright (C) 2008-2010 <NAME>, <NAME>, <NAME>
Stockfish 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 ... |
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2017 Couchbase, 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
*
* h... |
/**
* @file profiling.cpp
*
* Copyright (C) Huawei Technologies Co., Ltd. 2019-2020. All Rights Reserved.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
#include "profiling.h"
... |
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2017-2020, Waterplus http://www.6-robot.com
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that ... |
#include <fbxppch.h>
#include <fbxpstate.h>
#include <vector>
#include <pybind11/pybind11.h>
#include <pybind11/embed.h>
#include <pybind11/stl.h>
#include <pybind11/stl_bind.h>
#include <pybind11/complex.h>
#include <pybind11/functional.h>
namespace py = pybind11;
namespace apemode {
void LogInfo( const std::... |
/**
* Bachelor thesis: Algorithms for automatic image cropping
* VUT FIT 2018
* Author: <NAME> (<EMAIL>)
* Supervisor: Doc. Ing. <NAME>, Ph. D.
* File: SalMapStentiford.cpp
* Github repository: https://github.com/VitaAmbroz/AutoCropApp
*/
#include "SalMapStentiford.h"
/**
* Default constructor
*... |
#include "arm_control_myo.h"
IQR::ArmControlMyo::ArmControlMyo(ros::NodeHandle& nod) {
position_sub_ = nod.subscribe<sensor_msgs::Imu>("/myo_raw/myo_imu", 10, &IQR::ArmControlMyo::myoImuCallback, this);
finger_sub_ = nod.subscribe<ros_myo::MyoPose>("/myo_raw/myo_gest", 10, &IQR::ArmControlMyo::myoGestCallback, th... |
/**The MIT License (MIT)
Copyright (c) 2020 by <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, modify, ... |
// -----------------------------------------------------------------------------------------
// <copyright file="result_iterator_test.cpp" company="Microsoft">
// Copyright 2013 Microsoft Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in co... |
#include "RTModule.h"
RTModule::RTModule() :
brightness(32), groupColor(0xff0000), presentSelf(false), shotT0(-1), buzzerOn(false)
{
defaultShot.distanceThreshold = 200;
defaultShot.timeout = 4000;
defaultShot.order = SIMULTANEOUS;
defaultShot.colorDuration = 1500;
fill_solid(defaultShot.colorPalette, 1... |
// Copyright 2018 U.C. Berkeley RISE Lab
//
// 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... |
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
* vim: sw=2 ts=8 et :
*/
/* 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/. */
#include "... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include "util.h"
#define NUM_TEST 100
#define NUM_WARMUP 10
typedef cl_float16 half;
cl_platform_id platform;
cl_device_id device;
cl_context context;
cl_command_queue queue;
cl_program program;
cl_int status, err;
cl_event events[NUM_TEST];
void clInit(c... |
/*****************************************************************
* This is a library for the INA226 Current and Power Sensor Module
*
* You'll find an example which should enable you to use the library.
*
* You are free to use it, change it or build on it. In case you like
* it, it would be cool if you give i... |
/**
* \file calibration.cc
*
* \author <NAME> (<EMAIL>)
* Copyright (C) 2012, Austin Robot Technology,
* The University of Texas at Austin
*
* License: Modified BSD License
*/
#include "velodyne_decoder/calibration.h"
#define _USE_MATH_DEFINES
#include <cmath>
#include <fstream>
#include... |
#include <boost/thread/mutex.hpp>
#include <boost/lambda/lambda.hpp>
#include <boost/lambda/bind.hpp>
#include "entity.h++"
#include "mapdata.h++"
using namespace boost::lambda;
using namespace std;
#define KMA(Name, Function, Key) \
AddActionAssignKey( \
Name, \
KeyMap::Action( ... |
#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <string>
using namespace std;
enum TipEmail {NORMAL, IMPORTANT=100, EVENIMENT};
class Email {
const int idEmail; //obligatoriu
char subject[50]; //obligatoriu
string from; //obligatoriu
string * to = NULL;
int nrAdreseDestinatie = 0;
char* conti... |
#include <iostream>
#include <chrono>
#include <bitset>
#include <string>
#include <sstream>
#include <irkit/coding/stream_vbyte.hpp>
#include <irkit/index.hpp>
#include <irkit/io.hpp>
#include <irkit/memoryview.hpp>
#include <irkit/index/source.hpp>
#include <irkit/index/types.hpp>
//#define private public
#include <... |
//TCP CLIENT source
#include "client.h"
#include "JsonMessageGenerator.h"
#include "json.h"
#include <string>
#include <vector>
#include <functional>
#include <exception>
#include <thread>
#define DEFAULT_PORT "13379"
using std::cout;
using std::cin;
const int recvbuflen = 2048;
char recvbuf1[recvbuflen] = { 0 };
c... |
#include "network/network.h"
#include <numeric>
DEFINE_string(n_hidden, "100,50", "Number of neurons on hidden layers");
DEFINE_string(n_constants, "5,5,5",
"Number of constant neurons on each non-output layer");
namespace {
std::vector<size_t> Split(const std::string &s_cpp) {
std::vector<size_t> ret... |
#include "EditorConfig.h"
#include "Globals.h"
#include "Application.h"
#include "ModuleRenderExercise.h"
#include "ModuleWindow.h"
#include "ModuleEditorCamera.h"
#include "ModuleModel.h"
#include "ModuleInput.h"
#include "Mesh.h"
#include "ModuleScene.h"
#include "Material.h"
static void HelpMarker(const char* desc)... |
// 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.
// NOTE: New trait definitions that will be used by Chrome Frame must be placed
// in common_param_traits2.cc.
#include "content/common/webkit_param_... |
/* Copyright (c) 2006-2021, Universities Space Research Association (USRA).
* 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 copyr... |
#include <cuda.h>
#include <cuda_runtime.h>
#include "tensorflow/core/framework/op.h"
#include "tensorflow/core/framework/shape_inference.h"
#include "tensorflow/core/framework/op_kernel.h"
#include "tensorflow/core/framework/common_shape_fns.h"
using namespace tensorflow;
REGISTER_OP("DepthwiseConv3d")
.Input("i... |
#include "includes.h"
const std::string keynames[] = {
"", XOR("mouse1"), XOR("mouse2"), XOR("cancel"), XOR("mouse3"), XOR("mouse4"), XOR("mouse5"), XOR("[7]"),
XOR("backspace"), XOR("tab"), XOR("[10]"), XOR("[11]"), XOR("num 5"), XOR("enter"), XOR("[14]"), XOR("[15]"), XOR("shift"),
XOR("ctrl"), XOR("alt"), XOR("[... |
#include <ros/ros.h>
#include <pluginlib/class_loader.h>
// MoveIt!
#include <moveit/robot_model_loader/robot_model_loader.h>
#include <moveit/planning_interface/planning_interface.h>
#include <moveit/planning_pipeline/planning_pipeline.h>
#include <moveit/kinematic_constraints/utils.h>
#include <moveit_msgs/DisplayTr... |
/*
Copyright 2018 <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, modify, merge, publish, distribute, sublicense, ... |
// File: BMixingModule.cc
// Description: see BMixingModule.h
// Author: <NAME>, <NAME>, <NAME>
//
//--------------------------------------------
#include "Mixing/Base/interface/BMixingModule.h"
#include "FWCore/Utilities/interface/GetPassID.h"
#include "FWCore/Version/interface/GetReleaseVersion.h"
#include "FWCore... |
#include "stdafx.h"
#include <algorithm>
#include <time.h>
#include "sha256.h"
#include "ConnectionStringHelper.h"
//#define _TESTING
const std::string ConnectionStringHelper::CODES = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
/*
* Constructor
*
* connectionString Azure IoT ... |
/* <NAME>; <EMAIL>; 2013-10-19
*/
#include <iostream>
#include <fstream>
#include <string>
#include <vector>
#include <algorithm>
#include <map>
#include <cstring>
using namespace std;
struct parameter
{
string infile; // -i
string outfile; // -o
string type; // -t
int n; // -n
int l; /... |
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
//*****************************************************************************
// PerfObjectContainer.cpp
//
// Container to deal with all generic PerfObject needs
//***************************************************... |
/*
# ______ ____ ___
# | \/ ____| |___|
# | | | \ | |
#-----------------------------------------------------------------------
# Copyright 2020, tyra - https://github.com/h4570/tyra
# Licenced under Apache License 2.0
# <NAME> <<EMAIL>>
*/
#include "../include/modules/gif_sender... |
//
// Code generated by OpenRTDynamics 2 using the Linux real-time target.
//
// https://wiki.linuxfoundation.org/realtime/start
//
#include <sched.h>
#include <time.h>
#include <sys/time.h>
#include <pthread.h>
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <sys/mman.h>
#in... |
// Copyright (c) 2009-2021 The Regents of the University of Michigan
// This file is part of the HOOMD-blue project, released under the BSD 3-Clause License.
#include "MultipleTimestepIntegrator.h"
#ifdef ENABLE_HIP
#include "MultipleTimestepIntegrator.cuh"
#endif
#include "RespaStep.h"
#include "RespaVelStep.h"
#inc... |
/**
* particle_filter.cpp
*
* Created on: Dec 12, 2016
* Author: <NAME>
*/
#include "particle_filter.h"
#include <math.h>
#include <algorithm>
#include <iostream>
#include <iterator>
#include <numeric>
#include <random>
#include <string>
#include <vector>
#include "helper_functions.h"
#define gNUM_PARTICLES 40... |
/*
* Copyright (c) 2019, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publis... |
/*
* Copyright (c) 2016, SRCH2
* 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 ... |
#include <stdlib.h>
#include <stdio.h>
#include <errno.h>
//#include <stropts.h>
#include <signal.h>
#include <math.h>
#include "PredComp.h"
#include "predserver_core.h"
#if defined(__osf__)
extern "C" int usleep(int); // FREAKS
#endif
#define DEBUG 0
#define PREDSERVER_CORE "predserver_core"
int childpid;
int to... |
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qbs.
**
** $QT_BEGIN_LICENSE:LGPL$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this fil... |
#include <jaco2_driver/controller/collision_reaction.h>
#include <jaco2_driver/data_conversion.h>
#include <kinova/KinovaArithmetics.hpp>
#include <iostream>
#include <jaco2_data/dynamic_calibration_io.h>
#include <jaco2_data/dynamic_calibrated_parameters.hpp>
using namespace KinovaArithmetics;
CollisionReaction::Coll... |
#include "RTX2090Ti.hpp"
#include <chrono>
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <opencv2/opencv.hpp>
#include <string>
#include <tuple>
#include <utility>
#include <wx/progdlg.h>
#include <wx/wx.h>
#include "AppConfig.hpp"
#include "Configurations.hpp"
#include "CorgiAlgorithm.hpp"
#includ... |
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cfloat>
#include <bits/stdc++.h>
#define size_data 22 * 7
using namespace std;
double minimum_val, maximum_val, mean_val, median_val, SD, skewness;
double given_data[size_data] = {
2.31, 0.94, 1.55, 1.1, 1.68, -0.16, 0.48,
1.49, 1.2, 1... |
#include "reticle.h"
#include "common.h"
#include <vector>
/*
hook_reticle mapping:
Reticle_5 = 5
Reticle_6 = 6
Reticle_7 = 7
Reticle_8 = 8
Reticle_9 = 9
Reticle_10 = 10
Reticle_15 = 15
Reticle_16 = 16
Reticle_17 = 17
Reticle_18 = 18
Reticle_19 = 19
Reticle_20 = 20
Reticle_21 = 21
Reticle_22 = 22
*/
std::vector<char*... |
#include <exception>
using namespace std;
#include "gold.h"
#include "error_handling.h"
#include "game.h"
#include "coordinate.h"
#include "io.h"
#include "monster.h"
#include "misc.h"
#include "level.h"
#include "player.h"
#include "os.h"
#include "rogue.h"
#include "level_rooms.h"
/* position matrix for maze posi... |
#include "dummy_boxes.h"
#include <cmath>
// macro for cubic definition
// Front Verticies
#define VERTEX_FTR(X,Y,Z,W,H,L) Vertex( QVector3D( 0.5f*W+X, 0.5f*H+Y, 0.5f*L+Z), QVector3D( 1.0f, 1.0f, 0.0f ) )
#define VERTEX_FTL(X,Y,Z,W,H,L) Vertex( QVector3D(-0.5f*W+X, 0.5f*H+Y, 0.5f*L+Z), QVector3D( 1.0f, 1.0f, 0.0f ... |
#include <iostream>
#include "/home/rafaeldali/Pulpit/Dane do programów/droniarz/inc/Dr3D_gnuplot_api.hh"
#include "/home/rafaeldali/Pulpit/Dane do programów/droniarz/inc/Wektor.hh"
#include "/home/rafaeldali/Pulpit/Dane do programów/droniarz/inc/Macierz.hh"
#include "/home/rafaeldali/Pulpit/Dane do programów/droniarz/... |
/****************************************************************************
*
* CondFormats/PPSObjects/interface/PPSAlignmentConfig.cc
*
* Description : Class with alignment parameters
*
* Authors:
* - <NAME>
* - <NAME>
*
***********************************************************************... |
/******************************************************************************
*
* Project: DXF Translator
* Purpose: Implements the OCS to WCS transformer used in DXF files.
* Author: <NAME>, <EMAIL>
*
******************************************************************************
* Copyright (c) 2009, <NAM... |
#include "spriteData.h"
#include "tools.h"
#include <cmath>
// empty sprite shell
Sprite::Sprite() :
name(0), img(0), totalW(0), totalH(0), onLayer(0), isAnim(false), maxFramesHor(0),
maxFramesVer(0), maxFrames(0), currFrame(0), currCustomFrame(0),
rotAng(0), flip(SDL_FLIP_NONE), frameLonger(0), frameSuspended(0... |
#include <limits.h>
#include <string.h>
#include <fstream>
#include <iostream>
#include <sstream>
#include <vector>
using namespace std;
//#define DEBUG_BUILDTABLE
//#define FINISH_JOB
// Use INT_MAX to represent INFINITE
#define INF INT_MAX
void ReadFile();
void OutputResult(fstream&, int, vector<vector<int>>&, vec... |
/**
* Copyright 2021 Budapest Quantum Computing Group
*
* 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 "../asd.Graphics_Test_Utls.h"
#include <Graphics/asd.RenderingThread.h>
#include <Graphics/Command/asd.RenderingCommand.h>
#include <Graphics/Command/asd.RenderingCommandExecutor.h>
#include <Graphics/Command/asd.RenderingCommandFactory.h>
#include <Graphics/Command/asd.RenderingCommandHelper.h>
static cons... |
/* Author: <NAME>; Created: Thu Aug 12 16:19:58 PDT 2004
* Description: This file defines a structure for holding the information for
* one branch in a trace and also defines a trace reader class.
*/
#include "tread.h"
#include <cassert>
#include <cstring>
#include "op_state.h"
using namespace cbp;
using namespac... |
#include <unistd.h>
#include <atomic>
#include <cmath>
#include <csignal>
#include <cstdlib>
// How to include Eigen
// https://stackoverflow.com/questions/56172620/how-to-build-a-simple-c-demo-using-eigen-with-bazel
#include <Eigen/Eigen>
#include <Eigen/Core>
#include <fstream>
#include <iostream>
#include <iterator... |
// ConsoleApplication1.cpp: definisce il punto di ingresso dell'applicazione console.
//
#include "stdafx.h"
static const int N_b = 100; //Number of buyers
static const int N_s = 10; // Number of sellers
static const int N_t = 5000; // Number of transactions a day
static const int DAYS = INFINITY; // Numb... |
#pragma once
#include <eosio/chain/trace.hpp>
#include <variant>
namespace eosio {
namespace state_history {
using chain::block_id_type;
using chain::bytes;
using chain::extensions_type;
using chain::signature_type;
using chain::signed_transaction;
using chain::transaction_trace_ptr;
using compression_type = chain:... |
// Copyright 2012 Google Inc. 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... |
#include <iostream>
#include <vector>
#include "options.h"
#include "env.h"
#include "process.h"
#include "unidirectional_pipe.h"
#include "to_string.h"
using namespace std;
#define VERY_VERBOSE 2
const string this_program_name("ks");
const int to_descriptor_list_start = 8; // arbitrary; when the program starts we ... |
// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All right reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of th... |
#include "GUIspec.h"
#include "FontData.h"
#include "Event.h"
#include "defines.h"
#include "FileHandle.h"
#include "../NMC/GLFW/glfw3.h"
#include "../NMC/imgui/imgui_impl_glfw.h"
#include "../NMC/imgui/imgui_impl_opengl2.h"
#include "../NMC/tinydialog/tinyfiledialogs.h"
#include "../NMC/imgui/imgui_internal.h... |
#include "vttpch.h"
#include "render_target/Window.h"
#include "debug/Log.h"
#include "audio/Audio.h"
#include "Application.h"
#include "renderer/Renderer.h"
//const bgfx::ViewId kClearView = 0;
struct PosColorVertex
{
float x;
float y;
float z;
uint32_t abgr;
};
static PosColorVertex cubeVertices[]... |
/***************************************************************************
* ncrack_tty.cc -- Handles runtime interaction with Ncrack, so you can *
* increase verbosity/debugging or obtain a status line upon request. *
* *
***********... |
#include <stdlib.h>
#include <string.h>
/*#include <cmath>*/
#include <math.h>
#include "mex.h"
// // template <typename T>
// // void fftshift1(const mxArray *mxX, mxArray *mxY, bool isComplex) {
// // mwSize M = mxGetM(mxX);
// // mwSize N = mxGetN(mxX);
// //
// // if(M == 1) {
// // memcpy(mxGetData(mxY), ... |
/*
* Copyright (C) 2019, unclearness
* All rights reserved.
*/
#include <stdio.h>
#include <fstream>
#include <iostream>
#include <vector>
#include "ugu/renderer/rasterizer.h"
#include "ugu/renderer/raytracer.h"
#include "ugu/util/geom_util.h"
#include "ugu/util/image_util.h"
#include "ugu/util/io_util.h"
#includ... |
#include <time.h> //시간 측정
#include <algorithm> //for_each
#include <cstdlib> //rand
#include <ctime> //time
#include <iostream>
#include <string>
#include <vector>
#define INFINITY 2140000000
#define II std::pair<int, int> // first = weight, second = dest
typedef struct edge {
int src; //출발 vertex... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.