text stringlengths 5.71k 33.7k |
|---|
#include <GL/glew.h>
#include <GL/glut.h>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <stdexcept>
#include <iostream>
#include <string>
#include <vector>
#include "Shader.h"
#include "Mesh.h"
#include "Renderer.h"
#include "MassSpringSolver.h"
#include "UserInteraction.h"
// G L O... |
//----------------------------------*-C++-*----------------------------------//
// Copyright 2020 UT-Battelle, LLC, and other Celeritas developers.
// See the top-level COPYRIGHT file for details.
// SPDX-License-Identifier: (Apache-2.0 OR MIT)
//-------------------------------------------------------------------------... |
///////////////////////////////////////////////////////////////////////////////
// File: SimG4HGCalValidation.cc
// Description: Main analysis class for HGCal Validation of G4 Hits
///////////////////////////////////////////////////////////////////////////////
#include "SimG4Core/Notification/interface/BeginOfJob.h"
#... |
/*
* Copyright 2014 Realm 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 wr... |
#include "ssdbluachatserver.hpp"
//c++ connection object send to lua
#include "tcon.hpp"
//c++ object send to lua
#include "C2lua.hpp"
//timestamp send to lua
#include "tstamp.hpp"
const char* ssdbIP;
int ssdbPort;
std::string cwdpath;
char mntecsecret[10] = {0};
typedef std::tuple<int64_t,int64_t,std::string> tuple_... |
// =============================================================================
// Name : user_pattern_node.cpp
// Author : <NAME>
// Description :
// =============================================================================
#include <franka_polishing/spacenav.h>
#include <visualization_msgs/Marker.h>
... |
/*
message.cpp
Вывод MessageBox
*/
/*
Copyright © 1996 <NAME>
Copyright © 2000 Far Group
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 copyrigh... |
//=============================================================================
//
// Adventure Game Studio (AGS)
//
// Copyright (C) 1999-2011 <NAME> and 2011-20xx others
// The full list of copyright holders can be found in the Copyright.txt
// file, which is part of this source code distribution.
//
// The AGS sourc... |
// __BEGIN_LICENSE__
// Copyright (C) 2006-2011 United States Government as represented by
// the Administrator of the National Aeronautics and Space Administration.
// All Rights Reserved.
// __END_LICENSE__
#include <iostream>
#include <vw/Image.h>
#include <vw/FileIO.h>
#include <vw/Cartography/GeoReference.h>
#i... |
#include "L1Trigger/L1TMuonEndCap/interface/VersionControl.h"
VersionControl::VersionControl(const edm::ParameterSet& iConfig) : config_(iConfig) {
// All the configurables from python/simEmtfDigis_cfi.py must be visible to this class, except InputTags.
verbose_ = iConfig.getUntrackedParameter<int>("verbosity");
... |
#include "yocto_hair.h"
// -----------------------------------------------------------------------------
// HAIR LOCAL FUNCTIONS
// -----------------------------------------------------------------------------
namespace yocto {
float I0(float x) {
float val = 0;
float x2i = 1;
int64_t ifac... |
#include "SiconosConfig.h"
#define WITH_SERIALIZATION
#ifdef HAVE_SICONOS_MECHANICS
#include "MechanicsIO.hpp"
#endif
#include "KernelTest.hpp"
#include "SiconosKernel.hpp"
#include <boost/numeric/bindings/ublas/matrix.hpp>
#include <boost/numeric/bindings/ublas/vector.hpp>
#include <boost/numeric/bindings/ublas/vec... |
/**************************************************************************\
* Copyright (c) <NAME> & Gas Technologies AS
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* Redistribu... |
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
#include "all_different_constraint.hh"
#include "model.hh"
#include "proof.hh"
#include "variable.hh"
#include <algorithm>
#include <functional>
#include <iomanip>
#include <list>
#include <ostream>
#include <set>
#include <type_traits>
#include <utility>
#include <var... |
#include "UI.h"
#include<Windows.h>
void UI::calcAvgSpeed()
{
for (int i = 0; i < mountRoverCount; i++)
avgSpeed += mountSpeed[i];
for (int i = 0; i < polRoverCount; i++)
avgSpeed += polSpeed[i];
for (int i = 0; i < emRoverCount; i++)
avgSpeed += emSpeed[i];
avgSpeed /= (mountRoverCount + emRoverCount + polRo... |
#include <Python.h>
#include <numpy/arrayobject.h>
#include "../src/polar_processing/polar_processing.h"
#include <string>
// docstrings for our module
// *************************
static char module_docstring[] = "This module provides polar coordinates related functions";
static char polar_normals_d... |
// Distributed under the MIT License.
// See LICENSE.txt for details.
#pragma once
#include <cstddef>
#include <limits>
#include <optional>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
#include "DataStructures/DataBox/DataBox.hpp"
#include "DataStructures/DataBox/PrefixHelpers.hpp"
#includ... |
// Begin CVS Header
// $Source: /fs/turing/cvs/copasi_dev/copasi/model/CProcessQueue.cpp,v $
// $Revision: 1.22 $
// $Name: Build-33 $
// $Author: shoops $
// $Date: 2010/03/16 18:56:24 $
// End CVS Header
// Copyright (C) 2010 by <NAME>, Virginia Tech Intellectual
// Properties, Inc., University of Heidelbe... |
/*
*
* Copyright 2015 Rockchip Electronics 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 applica... |
#include <string>
#include "environment.h"
#include "loadsave.h"
#include "../pathes.h"
#include "../simversion.h"
#include "../simconst.h"
#include "../simtypes.h"
#include "../simmesg.h"
#include "../utils/simrandom.h"
void rdwr_win_settings(loadsave_t *file); // simwin
sint8 env_t::pak_tile_height_step = 16;
sint8... |
/*
* AminoAcidSequence-test.cpp
*
* Copyright (c) 2011,2012 <NAME>
* Copyright (c) 2011,2012 <NAME>
*
* This file is part of the Mass Spectrometry Toolkit (MSTK).
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwar... |
//*************************************************************************
//
// File Name : MemViz
// Author : <NAME>
// Created : December 2003
// Modified : April 2010
//
// Description : Visualizing memory.
//
//*************************************************************************
// Sta... |
// Copyright 2008-present Contributors to the OpenImageIO project.
// SPDX-License-Identifier: BSD-3-Clause
// https://github.com/OpenImageIO/oiio/blob/master/LICENSE.md
#include <iostream>
#include "imageviewer.h"
#include <OpenImageIO/imagecache.h>
#include <OpenImageIO/strutil.h>
IvImage::IvImage(const std::str... |
#include "drawablemesh.h"
DrawableMesh::DrawableMesh()
{
/* TODO */
//m_defaultVAO = 0;
m_ambientColor = glm::vec3(0.04f, 0.04f, 0.06f);
m_diffuseColor = glm::vec3(0.82f, 0.66f, 0.43f);
m_specularColor = glm::vec3(0.9f, 0.9f, 0.9f);
m_wireColor = glm::vec3(0.5f, 0.5f, 0.5f);
m_specPow = ... |
#include "ui.h"
#include <stdio.h>
#include <time.h>
#include "imgui/imgui.h"
#include "imgui/imgui_impl_cdd_sdl.h"
#include "imgui/imgui_impl_opengl3.h"
#if defined(_WIN32)
#include <d3d9.h>
#include <d3d11.h>
#include "imgui/imgui_impl_dx9.h"
#include "imgui/imgui_impl_dx11.h"
#if defined(__x86_64__)
#includ... |
#include "Scene.h"
#include "Camera.h"
#include "Light.h"
#include "Material.h"
#include "Shape.h"
#include "tinyxml2.h"
#include "Image.h"
#include <string>
using namespace tinyxml2;
Vector3f Scene::prodEveryElem(Vector3f a, Vector3f b){
float val1 = a[0]*b[0];
float val2 = a[1]*b[1];
float val3 = a[2]*b[2];
retu... |
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <iostream>
#include <tool/shader.h>
#define STB_IMAGE_IMPLEMENTATION
#include <tool/stb_image.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
using namespace std;
void framebuffer_size_callback(GLFWwindow *wind... |
/*##############################################################################
HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
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... |
/*
* Copyright (C) 2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "zello_common.h"
#include <sys/socket.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#define CHILDPROCESSES 1
int sv[CHILDPROCESSES][2];
extern bool verbose;
bool verbose = false;
size_t allocSize = 4... |
//===- IndexBody.cpp - Indexing statements --------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#include "glShaderBase.h"
#include "glWavefront.h"
#include "StringUtil.h"
#include "Tokenizer.hpp"
#include "yapt/ySystem.h"
#include "yapt/logger.h"
#include "noice/io/io.h"
#include "noice/io/ioutils.h"
#include "noice/io/TextReader.h"
#include "vec.h"
#include <string>
#include <math.h>
#ifdef WIN32
#define W... |
//===-- SPURegisterInfo.cpp - Cell SPU Register Information ---------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#include "all.h"
#include "tx_config.h"
#include "bench_micro.h"
#include "db/txs/dbrad.h"
#include "db/txs/dbtx.h"
#include "db/txs/dbsi.h"
#include "db/txs/db_farm.h"
#include "util/util.h"
#include "util/mapped_log.h"
#include "framework/req_buf_allocator.h"
#include "core/rrpc.h"
#include "core/macros.h"
#inc... |
#define MAX_STR 256
#define MAX_GUIDS 10
#define _UNICODE
#define UNICODE
#include "stdafx.h"
#pragma warning (disable : 4786)
#pragma warning (disable : 4275)
#include <iostream>
#include <strstream>
#include <fstream>
#include <string>
#include <sstream>
#include <map>
#include <list>
using ... |
#include <Rtl.Base.h>
#include <FarPluginBase.hpp>
#include "Ace.class.h"
#include "ace.h"
MY_DEFINE_GUID (CLSID_FormatACE, 0x08183761, 0x87D3, 0x4C85, 0xBF, 0xB7, 0x7C, 0x5E, 0x8A, 0x7F, 0x81, 0xEA);
AceModule::AceModule ()
{
char *lpModuleName = StrDuplicate(Info.ModuleName, 260);
CutToSlash(lpModuleName);
str... |
/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#include <... |
/*****************************************************************************
FontRenderer.cpp
Author: <NAME>, 2019
--- Legal stuff ---
This program is free software. It comes without any warranty, to
the extent permitted by applicable law. You can redistribute it
and/or modify it under the terms of... |
// clang-format off
#include <assert.h>
#include <bgfx/bgfx.h>
#include <bgfx/embedded_shader.h>
#include <bgfx/platform.h>
#include <bx/math.h>
#include <flowi/application.h>
#include <flowi_core/style.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../shaders/generated/colo... |
/**************************************************************
*
* 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 y... |
#include "memhlp.hpp"
#include "hashes.h"
#include <sstream>
#include <cstring>
#include <iostream>
#include <openssl/evp.h>
void memhlp::set_segments(std::map<uint64_t,
std::tuple<uint8_t *, uint64_t, int>>* seg){
segs = *seg;
}
std::string memhlp::get_sym_name(enum symbl sym) {
... |
// Copyright (c) 2020 PaddlePaddle 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
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
#include <Shooter.h>
#include <iostream>
//sets motor configurations
//initializes data hash map values (input is limelight y offset, output is flywheel angle and speed)
Shooter::Shooter(Swerve& s) : swerve(s) {
m_flywheelMaster.SetNeutralMode(NeutralMode::Coast);
m_flywheelSlave.SetNeutralMode(NeutralM... |
// decimal.cpp : test suite runner for abitrary precision decimal integers
//
// Copyright (C) 2017-2021 Stillwater Supercomputing, Inc.
//
// This file is part of the universal numbers project, which is released under an MIT Open Source license.
#include <iostream>
#include <string>
// configure the decimal integer a... |
/**
* \file src/core/test/graph/add_update.cpp
* MegEngine is Licensed under the Apache License, Version 2.0 (the "License")
*
* Copyright (c) 2014-2021 Megvii Inc. All rights reserved.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
*... |
/*
* Copyright (c) 2007 MIPS Technologies, 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 condi... |
/* QL_Controller.cpp
*
* This file represents the command line interface to QL. This is the model for how to
* interface with QL_Interface.
*
*/
#include <portability.h>
#include "Utilities.h"
#include "QL_Interface.h"
#include "Input_Type.h"
#include "Input_Controller.h"
#include "View_Console.h"
#inc... |
#include "ukf.h"
#include "Eigen/Dense"
#include <iostream>
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
//#define PSIERROROUT
//#define XSIGPRINT
/**
* Initializes Unscented Kalman filter
* This is scaffolding, do not modify
*/
UKF::UKF() {
is_initialized_ = false;
// if... |
#include"Boss/Mod/ActiveProber.hpp"
#include"Boss/Mod/ChannelCandidateInvestigator/Main.hpp"
#include"Boss/Mod/Rpc.hpp"
#include"Boss/Msg/Init.hpp"
#include"Boss/Msg/ProbeActively.hpp"
#include"Boss/Msg/ProvideDeletablePaymentLabelFilter.hpp"
#include"Boss/Msg/SolicitDeletablePaymentLabelFilter.hpp"
#include"Boss/concu... |
#include "common.h"
using namespace std;
///Opening window Xposition
int windowPosX4=640;
///Opening window Yposition
int windowPosY4=480;
///Opening window Width
int windowWidth4= 50;
///Opening Window Height
int windowHeight4=50;
///Total number of points in front view
int number_of_points_front=0;
///Total numb... |
#include <cctbx/boost_python/flex_fwd.h>
#include <boost/python/module.hpp>
#include <boost/python/class.hpp>
#include <boost/python/def.hpp>
#include <boost/python/list.hpp>
#include <boost/python/dict.hpp>
#include <boost/python/tuple.hpp>
#include <boost/tuple/tuple.hpp>
#include <boost/tuple/tuple_comparison.hpp>
#... |
// (C) Copyright 2016-2021 Xilinx, Inc.
// All Rights Reserved.
//
// 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 yo... |
// ==========================================================================
// Mason - A Read Simulator
// ==========================================================================
// Copyright (c) 2006-2015, <NAME>, FU Berlin
// All rights reserved.
//
// Redistribution and use in source and... |
// Copyright 2014 The Goma 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 "openssl_engine.h"
#include <openssl/dh.h>
#include <openssl/err.h>
#include <openssl/ssl.h>
#include <openssl/bio.h>
#include <memory>
#include <s... |
// Copyright 2013 The Flutter 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 "pointer_delegate.h"
#include <lib/trace/event.h>
#include <zircon/status.h>
#include <zircon/types.h>
#include <limits>
#include "flutter/fml/... |
/*
* MIT License
*
* Copyright (c) 2021 <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, m... |
#include <algorithm>
#include <cmath>
#include <cstdio>
#include "bary.h"
static auto d = -1;
// Solve Ax=b, where A is d*d. Returns false iff A is singular.
// Crout's algorithm replaces A with its LU decomposition.
// Then back-substitution solves for x, which is stored in b.
bool solveMatrix(void* A, vertex& b)
... |
/*
* Copyright (c) 2017, 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, ... |
int YUN ,T5xlO,
K6/*07P*/, C4
,Dc
,
YG,
MgS2,
wJVL//AsYn
,
pv
, NBJ ,KAYH,T5Mj//Fx
,
a0ZD, H/**/, lv7w ,Di7s,
HMsh ,/*MW*/
h , Bzs /*je*/, bBpt,
xb , PsYwv,uSC ,Xv5IS8
,
P
, ez,a,SCr
,wy,pxJ ,
pxgg,
wi,UeVO , eniFq/*Y*/; void f_f0/*M8*/(){
for (int i=1 ;i<1
;++i)
{ int S
//NR1
, I/*E... |
/*
* Decoder.cpp
*
* Created on: 14 Jan 2010
* Author: db434
*/
#include "Decoder.h"
#include "../../../Datatype/DecodedInst.h"
#include "../../../Datatype/Instruction.h"
#include "../../../Datatype/MemoryRequest.h"
#include "../Core.h"
#include "DecodeStage.h"
#include "../RegisterFile.h"
#include "../../... |
/*****************************************************************************/
/* Copyright (c) 2017, <NAME> */
/* All rights reserved. */
/* */
/* Redist... |
#include <istream>
#include <fstream>
#include <iostream>
#include <sstream>
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include <assert.h>
#include <chrono>
#include <algorithm>
#include <torch/torch.h>
#include <torch/script.h>
using namespace torch::indexing;
#include <grid.h>
#inclu... |
/*
* Copyright 2019 Xilinx 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 ... |
// Copyright (c) 2019 The BCD Core developers
#include <validate/validate_block.h>
#include <validate/cchain_state.h>
bool fCheckpointsEnabled = DEFAULT_CHECKPOINTS_ENABLED;
bool ActivateBestChain(CValidationState &state, const CChainParams& chainparams, std::shared_ptr<const CBlock> pblock) {
return g_chainstat... |
/*
* assemble.cpp
* cufflinks
*
* Created by <NAME> on 3/23/09.
* Copyright 2009 <NAME>. All rights reserved.
*
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <map>
#include <list>
#include <vector>
#include <iostream>
#include <lemon/topology.h>
//#include <lemon/graph_utils.h>
#include <le... |
//Modified on the code example provided by Prof.RS
//Takes significantly longer time than the sample screenshot
//And generates slightly different number(with error < 0.005)
#include <iostream>
#include <iomanip>
#include <cmath>
#include <fstream>
#include <cstdlib>
#include <algorithm>
#include <vector>
u... |
// Copyright (c) 2020-2021, 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 of ... |
// Copyright (c) 2022 <NAME>
//
// I am making my contributions/submissions to this project solely in my
// personal capacity and am not conveying any rights to any intellectual
// property of any third parties.
#include "unit_tests_utils.h"
#include "bounding_box3.h"
using namespace vox;
TEST(BoundingBox3, Con... |
/**
* @author [<NAME>]
* @email [<EMAIL>]
* @create date 2019-05-29 11:52:32
* @modify date 2019-05-29 11:52:49
* @desc [description]
*/
#include <iostream>
#include <string>
#include <SFML/Graphics/RectangleShape.hpp>
#include <SFML/Graphics/Color.hpp>
#include <SFML/Graphics/Font.hpp>
#include <SFML/Graphics... |
#include <iostream>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <cstring>
#include <fcntl.h>
#include <unistd.h>
#include <sstream>
#include <franka/exception.h>
#include <franka/robot.h>
// #include <franka/gripper.h>
#include <franka/model.h>
// #include <Eigen/Core>
/**
* A minimal script for controllin... |
#include "oclPch.h"
#include "NLCLDp4a.h"
using namespace std::string_view_literals;
struct ConvB4Arg
{
std::u32string_view Arg;
bool IsUnsigned;
bool IsToPacked;
bool NeedConv;
constexpr ConvB4Arg(std::u32string_view arg, char32_t pfx, bool isPacked, bool wantPacked) :
Arg(arg), IsUnsign... |
#include <iostream>
#include <opencv2/core/core.hpp>
#include <opencv2/core/cvdef.h>
#include <opencv2/highgui/highgui.hpp>
#include "opencv2/imgproc/imgproc.hpp"
#include "benchmark_dataset_reader.h"
#include <eigen3/Eigen/Eigen>
#include <stdio.h>
#include <iostream>
#define MIN(a,b) ((a) > (b) ? (b) : (a))
cv::Re... |
#include <thread>
#include <limits>
#include <cassert>
#include <iostream>
#include "nmf.hpp"
#include "tests.hpp"
#include "random.hpp"
#include "dense_matrix.hpp"
#include "sparse_matrix.hpp"
#include "matrix_generator.hpp"
#include "nmf_solver_hals.hpp"
#include "projected_gradient.hpp"
#include "file_loader.hpp"
#i... |
#include <uWS/uWS.h>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include "spline.h"
#include "Eigen-3.3/Eigen/Core"
#include "Eigen-3.3/Eigen/QR"
#include "json.hpp"
#include "vehicle.h"
#include "road.h"
#include "jerk.h"
#include "helpers.h"
// for convenience
using nlohmann::json;
us... |
#include "lightingLib.h"
#include "RGBDriver.h"
// original logical channels on UI
//right 10,11,12,13,14,15
//left 4,5,6,7,8,9
//focus 2,3,0,1
//mapping from logical channel to physical channel
int ledMap[] = { 2,5,0, 13,12,9, 3,1,4, 11,8,10,14, 6,7,15 };
//watts output max for each logical channel 0-15
//int le... |
/******************************************************************************
* Spine Runtimes License Agreement
* Last updated January 1, 2020. Replaces all prior versions.
*
* Copyright (c) 2013-2020, Esoteric Software LLC
*
* Integration of the Spine Runtimes into software or otherwise creating
* derivative... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2017 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... |
#include "utils/Log.h"
#include "plugins/ZigbeeController.h"
#include <string.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <map>
#include <errno.h>
#define TAG "ZigbeeController"
using namespace std;
bool ZigbeeController::isInitialized;
ZigbeeDeviceList*... |
#include "myglheaders.h"
#include "camera.h"
#include "debugmacro.h"
#include "window.h"
#include "input.h"
#include "glprogram.h"
#include "compute_shader.h"
#include "glscreen.h"
#include "UBO.h"
#include "SSBO.h"
#include "timer.h"
#include "texture.h"
#include "time.h"
#include <random>
#include "stri... |
/**.......................................................................
* MATLAB Mex file for calculating shadowing, given a specified GCP
* and CARMA array
*
* Use like:
*
* gcpMatShadowCarma(d)
*
* If d already contains fields array.carma.config
* .pad
* ... |
#include "cTextEditor.h"
#include "GlobalVars.h"
#include "GBAMethods.h"
extern GBAMethods GBA;
MetroidTextEditor::MetroidTextEditor() {
tMain = NULL;
}
MetroidTextEditor::~MetroidTextEditor() {
// delete[] curtext;
}
int MetroidTextEditor::Draw() {
int X = 0;
int Y = 0;
int cY = 0;
int cX = 0;
unsigned shor... |
#include <iostream>
#include <iomanip>
#include <sstream>
#include <array>
#include <cctype>
#include <pxr/usd/usd/schemaRegistry.h>
#include <pxr/usd/usd/prim.h>
#include <pxr/usd/sdf/layer.h>
#include <pxr/usd/sdf/layerUtils.h>
#include <pxr/usd/sdf/fileFormat.h>
#include <pxr/usd/sdf/primSpec.h>
#includ... |
#include "stdafx.h"
#include "Application.hpp"
#include "Game.hpp"
#include "Track.hpp"
#include "LaserTrackBuilder.hpp"
#include <Beatmap/BeatmapPlayback.hpp>
#include <Beatmap/BeatmapObjects.hpp>
#include "AsyncAssetLoader.hpp"
const float Track::trackWidth = 1.0f;
const float Track::trackLength = 6.0f;
c... |
// <NAME> 28 Entry
// Copyright (c) <NAME> 2013
#include "Common.h"
#include "PlayerEntity.h"
#include "BulletManager.h"
#include "EntityManager.h"
#include "Renderer.h"
PlayerEntity::PlayerEntity(const Vec2& position, uint shipID)
: DamageableEntity(position, 1000, false),
mRemainingBulletTime(1.0f),
... |
#include "filesdeal.h"
filesdeal::filesdeal()
{
}
filesdeal::~filesdeal()
{
delete [] excelValue;
delete [] dataOut;
delete [] dataResult;
}
void filesdeal::filesInitial_Slot()
{
//每次点击开始回放按钮时,都要从初始文件中获取当前选定的计算区域的范围,得到起始角度、截止角度、起始半径和结束半径
ini = new QSettings(QCoreApplication::appli... |
#include <iostream>
#include <string>
#include <cassert>
using namespace std;
int appendToAll(string a[], int n, string value) {
if (n < 0) return -1;
for (int i = 0; i < n; i++) {
a[i] = a[i] + value;
}
return n;
}
int lookup(const string a[], int n, string target) {
for (int i = 0; i < n; i++) {
... |
/*
MIT License
Copyright (c) 2017 DeeplyEmbedded
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... |
/*
Chemical Kinetics and Dynamics Library
Copyright (C) 2008-2013, <NAME> <<EMAIL>>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
vers... |
#include "admodel.h"
#include<ctime>
/**
Experimental feature to take Newton steps using the inverse
Hessian to get much closer to the optimum and reduce the
maximum gradient arbitrarily close to 0.
Let x be the current MLE parameter vector. Then a single step
consists of calculating x'=x-inv(Hes... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================
#include "dmxloader/dmxelement.h"
#include "tier1/utlbuffer.h"
#include "tier2/tier2.h"
#include "tier2/utlstreambuffer.h"
#include "filesyste... |
#include <iostream>
#include <complex>
#include <math.h>
#include <omp.h>
#include <chrono>
#include "hdf5c.h"
using namespace std;
// Finite difference time domain simulation for trapping a light pulse in a dynamic morie grating
double sellmeier_fused_silica(double l0);
void ms_format(double ms);
int main(void)
{
... |
#include <iostream>
#include <eigen3/Eigen/Dense>
#include <math.h>
#define PI 3.1415926
class Exoskeleton_kinetic
{
public:
Exoskeleton_kinetic()
{
// std::cout<<"You now create the Exoskeleton_kinetic class"<<std::endl;
// TODO: Checked.
d1 = -0.097;
... |
/*
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
MP3FileInfo 1.0
-----------------------
MP3FileInfo is a wrapper class for id3lib, a library capable
of reading and writing ID3 Tags of MP3 Files. It has a
simple interface and provides all data as public members.
Written by <NAME> (<EMAIL>).
Relea... |
int ffq
,
K3
,//pxq
FjKG
,woX,Xj
, wlBs6,Yf
,
i1, r ,
CxCT , XF0 ,Cl ,
M4
, kMTm ,j7vG,vJIy6M, Xyc , hI6O3U
,vfP8,jfb,HUv, dKzrG,//lff
I , tbFf ,
n ,
Zw0mW ,
qv1X9 , C ,
Hj0Id , L2z , PKDI;
void
f_f0
()
{ { ;
;
{int uS//Q2jq
; volatile int tNbcE ,/*o1*/qg0UPK,JO
;{int //M4M
KEw5//a
;vol... |
#include "reedsolomon.h"
#include <array>
static const std::array<uint8_t, 256> ALPHA_ARR {
0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x87, 0x89, 0x95, 0xad, 0xdd,
0x3d, 0x7a, 0xf4, 0x6f, 0xde, 0x3b, 0x76, 0xec, 0x5f, 0xbe, 0xfb, 0x71,
0xe2, 0x43, 0x86, 0x8b, 0x91, 0xa5, 0xcd, 0x1d, 0x3a, 0x74, 0xe... |
// Copyright (c) 2014-2015 <NAME>, All Rights Reserved.
// Distributed under the MIT License
// See accompanying file LICENSE
#include <stddef.h>
#include <stdlib.h>
#include <gmp.h>
#include <functional>
#include <map>
#include <unordered_map>
#include "utfcpp/utf8.h"
#include "arrow/tokenizer.hpp"
#include "arr... |
#include <cuda.h>
#include <cuda_runtime_api.h>
#include <helper_cuda.h>
#include <helper_timer.h>
#include <string.h>
#include "CustomComplex.h"
#include "commonDefines.h"
#define nstart 0
#define nend 3
void noflagOCC_cuWrapper(int number_bands, int ngpown, int ncouls,
int *inv_igp_index, ... |
#pragma once
/* Copyright 2015 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*
* Author: <NAME>
*/
#include <freertos/FreeRTOS.h>
#include <freertos/event_groups.h>
#include <esp_err.h>
#include <functional>
#i... |
// -------------------------------------------------------------------------
// <NAME>
// a Nintendo's Game & Watch adaptation on Gamebuino META
// -------------------------------------------------------------------------
// © 2019 Steph
// ... |
/**
* @file universe.cpp
* @copyright Copyright (c) 2020 University of Turku, MIT License
* @author <NAME>
*/
#include <ftl/net/universe.hpp>
#include <ftl/timer.hpp>
#include <chrono>
#define LOGURU_REPLACE_GLOG 1
#include <loguru.hpp>
#include <nlohmann/json.hpp>
#ifdef WIN32
#include <Ws2tcpip.h>
#pragma comm... |
#include <wx/wx.h>
#include "simplego-panel.h"
#include "simplego-frame.h"
#include "simplego-statusbar.h"
// Panel constructor
SimpleGoPanel::SimpleGoPanel(SimpleGoFrame* parent) : wxPanel(parent)
{ frame = parent;
boardsize = 19;
history = NULL;
movelist = NULL;
SetBackgroundColour(*wxWHITE);
Connect(wxEVT_PAIN... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.