text stringlengths 3.08k 22k |
|---|
#include "scriptmgr.h"
#include "gamemgr.h"
#include "gameobj.h"
#include <iostream> // cout
#include <stdio.h> // fopen, fclose
#include <string.h> // strcmp
#include <assert.h>
#include <add_on/scriptstdstring/scriptstdstring.h>
#include <add_on/scriptbuilder/scriptbuilder.h>
#include <add_on/weakref/weakref.h>
us... |
/*
** serverS.cpp:
- Creates a map of scores and names
- Receives requests from the central and sends the scores to the central
- Closes the socket
- by <NAME>, USC ID: 9083261716
*/
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <sy... |
#include "hachi_patch.hpp"
#include <algorithm>
#include <array>
#include <cstdint>
#include <cstring>
#include <numeric>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
#include <elf.h>
#include "exception.hpp"
#include "iosufsa.hpp"
#include "log.hpp"
#include "util.hpp"
#include "zli... |
#include <stdio.h>
#include <stdlib.h>
#include <iostream>
#include <fstream>
#include <math.h>
#include <chrono>
#include <ctime>
#include <cstdlib>
#include <time.h>
#include <vector>
#include <random>
#include "TCanvas.h"
#include "TStyle.h"
#include "TGraph.h"
#include "TEllipse.h"
#include "TAxis.h"
#include "TLi... |
#include "Polygon.h"
#include <algorithm>
#include <numeric>
#include <boost/range/adaptors.hpp>
#include <boost/range/algorithm.hpp>
#include "Vector.h"
#include "Vertex.h"
Polygon::classification Polygon::classify(const Plane& plane) const
{
size_t count = points.size();
size_t front = 0, back = 0, onplane = 0... |
/* LLVM LOCAL begin (ENTIRE FILE!) */
/* High-level LLVM backend interface
Copyright (C) 2005 Free Software Foundation, Inc.
Contributed by <NAME> (<EMAIL>)
This file is part of GCC.
GCC is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the ... |
/*
* Copyright 1993-2019 NVIDIA Corporation. All rights reserved.
*
* NOTICE TO LICENSEE:
*
* This source code and/or documentation ("Licensed Deliverables") are
* subject to NVIDIA intellectual property rights under U.S. and
* international Copyright laws.
*
* These Licensed Deliverables contained herein is ... |
/******************************************************************************
Plush Version 1.2
read_3ds.c
3DS Object Reader
Copyright (c) 1996-2000, <NAME>
******************************************************************************/
#include "plush.h"
typedef struct
{
pl_uInt16 id;
void (*func)... |
#include "headers/instruction.h"
#include "headers/functions.h"
#include "headers/utilities.h"
#include "headers/global_vars.h"
Instruction::Instruction(int addr, uint OP, Builder *Maker)
{
OPCode = OP;
this->Maker = Maker;
this->addr_instr = addr;
}
Instruction::Instruction(int add... |
/*
Copyright (c) 2020, <NAME>
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 following discl... |
// Copyright (c) 2018 <NAME>
// E-mail: <EMAIL>
// This is the implementation of Entropy-directed scheduling (EDS) algorithm for FPGA high-level synthesis.
// This file is the main function of EDS.
#include <iostream>
#include <fstream>
#include <string>
#include <cstdlib>
#include <chrono> // timing
using Clock = ... |
#include "game.h"
bool isQuit = false;
WindowRef window;
AGLContext context;
#define SND_SIZE 8192
static AudioQueueRef audioQueue;
void soundFill(void* inUserData, AudioQueueRef inAQ, AudioQueueBufferRef inBuffer) {
void* frames = inBuffer->mAudioData;
UInt32 count = inBuffer->mAudioDataBytesCapacity / 4;
... |
#include "shellprv.h"
#include "ids.h"
#include "ftadv.h"
#include "ftcmmn.h"
#include "ftaction.h"
#include "ftassoc.h"
const static DWORD cs_rgdwHelpIDsArray[] =
{ // Context Help IDs
IDC_FT_CMD_ACTION, IDH_FCAB_FT_CMD_ACTION,
IDC_FT_CMD_EXETEXT, IDH_FCAB_FT_CMD_EXE,
IDC_FT_C... |
//===- Set.cpp - MLIR PresburgerSet Class ---------------------------------===//
//
// 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
//
//===---------------------------... |
#include ZZ_Prelude_hh
#include "PArr.hh"
#include <vector>
#include <memory>
using namespace ZZ;
//mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
struct MyInt {
uint n;
uint waste[15];
MyInt(uint n = 0) : n(n) {}
operator uint() const { return n; ... |
/* The copyright in this software is being made available under the BSD
* License, included below. This software may be subject to other third party
* and contributor rights, including patent rights, and no such rights are
* granted under this license.
*
* Copyright (c) 2010-2017, ISO/IEC
* All rights reser... |
#include "demoloop.h"
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/rotate_vector.hpp>
#include "graphics/shader.h"
using namespace std;
using namespace demoloop;
const uint32_t CYCLE_LENGTH = 10;
const static std::string shaderCode = R"===(
uniform mediump float cycle_ratio;
#define DEMOLOOP_M_PI 3.145... |
#include"dekunobou.hpp"
#pragma once
class Board{
public:
int board[8][8];//先手:1, 後手:-1
bool turn=false;//先手ならfalse, 後手ならtrue
int point[2];//各手番の獲得枚数{先手, 後手}
int flip_limit[8];//縦横斜め8方向どこまでひっくり返していいか
//{横(左), 横(右), 縦(上), 縦(下), 右斜め(上), 右斜め(下), 左斜め(上), 左斜め(下)}
//序盤・中盤・終盤のどれか
//序盤なら0,... |
/* ========================================
* Average - Average.h
* Copyright (c) 2016 airwindows, All rights reserved
* ======================================== */
#include "AverageProcessor.h"
AverageProcessor::AverageProcessor()
{
paramBindings =
{
{AVERAGE, &A},
{DRY_WET, &B}
};
... |
//ライブラリ読み込み
#include <Arduino.h>
#include <DSR1202.h>
#include <U8g2lib.h>
//ライブラリセットアップ
DSR1202 dsr1202(1);
//AQM1248Aは128 * 48
U8G2_ST7565_AK_AQM1248_F_4W_HW_SPI u8g2(U8G2_R0, 10, 34, 35); //CS, DC(RS), Reset(適当)
//定数置き場
#define buzzer 33 //圧電ブザー
#define button_LCD_R 27 //タクトスイッチ(右)
#define button_LCD_L 32 //タクトスイ... |
/*
Copyright 2020 <NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, s... |
/*
Copyright (c) 2010, Yahoo! Inc. All rights reserved.
Redistribution and use of this software in source and binary forms, with or
without modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and ... |
/*
* Copyright (C) 2021 Alibaba Inc. All rights reserved.
* Author: <NAME>.
*/
#include "qjs_patch.h"
#include <quickjs/cutils.h>
#include <quickjs/list.h>
#include <cstring>
typedef enum {
JS_GC_PHASE_NONE,
JS_GC_PHASE_DECREF,
JS_GC_PHASE_REMOVE_CYCLES,
} JSGCPhaseEnum;
typedef struct JSProxyData {
JSVal... |
/**********************************************************************
* Copyright (c) 2008-2014, Alliance for Sustainable Energy.
* All rights reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published ... |
#include <pybind11/pybind11.h>
#include <pybind11/operators.h>
#include "box2d_wrapper.hpp"
namespace py = pybind11;
b2Vec2 operator+ (const b2Vec2 & lhs, const py::tuple & rhs)
{
return b2Vec2(
lhs.x + rhs[0].cast<float>() ,
lhs.y + rhs[1].cast<float>()
);
}
b2Vec2 operator+ (const py::tup... |
#include "ofApp.h"
//https://commons.wikimedia.org/wiki/File:Beer_in_glass_close_up.jpg
// This is the most basic pdsp example
// we set up everything and check that everything is working
// before running this also check that the basic oF audio output example is working
// ofxx_folder/examples/sound/audioOutputExample... |
/*
* Copyright (c) 2016, 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 c... |
/*/
* Project: Wireless Proximity Analyzer
*
* Repository: https://github.com/ForensicTools/WirelessProximityMonitor_474-2135_Pittner-Sirianni-Swerling
*
* Authors:
* <NAME>
* <NAME>
* <NAME>
*
* License: Apache v2
/*/
#include "filter.h"
//Static lists of user input strings
static const std::string da... |
#include "iobuffer.h"
#include "symbols.h"
#include "abstract-syntax-tree.h"
using namespace std ;
using namespace CS_IO_Buffers ;
using namespace CS_Symbol_Tables ;
using namespace Workshop_Compiler ;
// ignore unused-function warnings in this source file
#pragma clang diagnostic ignored "-Wunused-function"
// kee... |
/***********************************************************************
* AUTHOR: <Doublecross>
* FILE: GLOpenAssetImportMesh.cpp
* DATE: Mon Jun 11 16:21:07 2018
* DESCR:
***********************************************************************/
#include "OpenGL/Shapes/GLOpenAssetImportMesh.h"
#include <ass... |
/*
* BSD 3-Clause License
*
* Copyright (c) 2021, Dexai Robotics
* 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 notic... |
/*
* OpenCloseGraspActionServer.cpp
*
* Created on: Apr 19, 2013
* Author: jnicho
*/
/*
* Software License Agreement (BSD License)
*
* Copyright (c) 2011, Southwest Research Institute
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are per... |
/**
* @file plrmsg.cpp
*
* Implementation of functionality for printing the ingame chat messages.
*/
#include "all.h"
static BYTE plr_msg_slot;
_plrmsg plr_msgs[PMSG_COUNT];
/** Maps from player_num to text colour, as used in chat messages. */
const char text_color_from_player_num[MAX_PLRS + 5] = { COL... |
//! Assign nodal connectivity property for bspline elements
template <unsigned Tdim, unsigned Tnfunctions>
void mpm::HexahedronBSplineElement<Tdim, Tnfunctions>::
initialise_bspline_connectivity_properties(
const Eigen::MatrixXd& nodal_coordinates,
const std::vector<std::vector<unsigned>>& nodal_pro... |
#include <stdio.h>
#include <string.h>
#include "machine.hpp"
#include "utils.hpp"
#define MAX(a, b) ((a) > (b) ? (a) : (b))
void SingleStepInfo()
{
printf("Single Step Mode Help:\n");
printf("c: continue\n");
printf("r: print all registers\n");
printf("d: dump machine status to file 'status_dump.txt'\n");
print... |
/*
* @Author: gpinchon
* @Date: 2021-03-12 16:08:58
* @Last Modified by: gpinchon
* @Last Modified time: 2021-05-18 18:26:25
*/
#include <Camera/Camera.hpp>
#include <Light/SkyLight.hpp>
#include <Renderer/Renderer.hpp>
#include <Renderer/Surface/GeometryRenderer.hpp>
#include <Scene/Scene.hpp>
#includ... |
/* **********************************************************
* Copyright (c) 2017-2020 Google, Inc. All rights reserved.
* **********************************************************/
/*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following ... |
/*
Copyright (c) 2002-2008 MySQL AB, 2008, 2009 Sun Microsystems, Inc.
Use is subject to license terms.
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.
Th... |
#include <string>
#include <regex>
#include <iostream>
#include "grammar.hpp"
// [START] Include nodes
#include "nodes/node.hpp"
#include "nodes/node_list.hpp"
#include "nodes/boolean.hpp"
#include "nodes/scope_fn.hpp"
#include "nodes/scope.hpp"
#include "nodes/line.hpp"
#include "nodes/value_list.hpp"
#include "node... |
//
// FBullCowModel.cpp
// Bull Cow Game Model
//
// Created by <NAME> on 11/01/2017.
// Copyright © 2017 Itizir.
// This work is free. You can redistribute it and/or modify it under the
// terms of the Do What The Fuck You Want To Public License, Version 2,
// as published by Sam Hocevar. See the LICENSE file f... |
#ifdef CH_LANG_CC
/*
* _______ __
* / ___/ / ___ __ _ / / ___
* / /__/ _ \/ _ \/ V \/ _ \/ _ \
* \___/_//_/\___/_/_/_/_.__/\___/
* Please refer to Copyright.txt, in Chombo's root directory.
*/
#endif
#include "EBCoarToCoarRedist.H"
#include "LayoutIterator.H"
#include "BaseIVF... |
/**
Test program for the streaming_gemv module (version 1, i.e. A non trasposed, rowstramed and tiles by rows)
Please note: for this test we want to generate data on device. Therefore the input sizes must be
a multiple of the tile size
The kernels are executed multiple times:
- for each execution it... |
#include <maya/MPxLocatorNode.h>
#include <maya/MString.h>
#include <maya/MTypeId.h>
#include <maya/MPlug.h>
#include <maya/MVector.h>
#include <maya/MDataBlock.h>
#include <maya/MDataHandle.h>
#include <maya/MColor.h>
#include <maya/M3dView.h>
#include <maya/MFnEnumAttribute.h>
#include <maya/MFnNumericAtt... |
/*
* cpu.cpp
* CPU Management Unit implementation
*/
// includes
#include <cstring>
#include <cstdlib>
#include <ctime>
#include "constants.h"
#include "except.h"
#include "cpu.h"
// constants
constexpr int NUM_REGISTERS = 16;
enum Register {
V0 = 0x00,
VF = 0x0F
};
// class structure
struct CPU::OpaqueDa... |
/*---------------------------------------------------------------------------*\
Copyright (C) 2011 OpenFOAM Foundation
-------------------------------------------------------------------------------
License
This file is part of CAELUS.
CAELUS is free software: you can redistribute it and/or modify it
under... |
//! \file PdbCompilandStream.cpp
//! \brief PDB compiland stream.
//! \author <NAME>
//! \date 2011
#include "stdafx.h"
#include "PdbCompilandStream.h"
#include "PdbDebugInfoStream.h"
#include "Buffer.h"
#include "strconv.h"
#include "PdbStreamStruct.h"
#include "PdbReader.h"
CPdbCompilandStream::CPdbCompilandStream(... |
// nnet2bin/nnet2-modify-learning-rates.cc
// Copyright 2013 <NAME>
// See ../../COPYING for clarification regarding multiple authors
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//... |
#include "L1Trigger/L1TMuonEndCap/interface/PtAssignment.h"
#include "L1Trigger/L1TMuonEndCap/interface/PtAssignmentEngine.h"
#include "L1Trigger/L1TMuonEndCap/interface/PtAssignmentEngineDxy.h"
void PtAssignment::configure(PtAssignmentEngine* pt_assign_engine,
PtAssignmentEngineDxy* pt_a... |
/*
* LEGAL NOTICE
* This computer software was prepared by Battelle Memorial Institute,
* hereinafter the Contractor, under Contract No. DE-AC05-76RL0 1830
* with the Department of Energy (DOE). NEITHER THE GOVERNMENT NOR THE
* CONTRACTOR MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY
* LIABILITY FOR THE ... |
#include <QDebug>
#include <QFile>
#include <vector>
#include <QRegExp>
#include <math.h>
#include "Coordinates.h"
#include "Geohash.h"
#include "Commons.h"
#include "SensorController.h"
std::vector<geopoint_t> CoordGetFromFile(const QString& filePath,
int interested) {
std... |
/* *****************************************************************************
Copyright (c) 2016-2017, The Regents of the University of California (Regents).
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions ar... |
#include <functional> // reference_wrapper
#include <iostream>
#include <string>
#include <vector>
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
//@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ Association @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@... |
/**
* @file application.cpp
* @brief
* @author <NAME> (<EMAIL>)
* @date 2001-12-25
* @copyright Copyright (c) 2001-2017 Dream Overflow. All rights reserved.
* @details
*/
#include "o3d/core/precompiled.h"
#include "o3d/core/application.h"
#include "o3d/core/classfactory.h"
#include "o3d/core/taskmanager.h"
#... |
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/digital_asset_links/digital_asset_links_handler.h"
#include <vector>
#include "base/bind.h"
#include "base/json/json_reader.h"
#inc... |
/*
MIT LICENSE
Copyright 2014-2019 Inertial Sense, Inc. - http://inertialsense.com
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 u... |
// Written by <NAME>, 2018. Public Domain.
// See LICENSE.md for license information.
#pragma once
// I usually do not pay attention to assertions with side-effects, so let us define them here to
// execute the expressions regardless. Also, the compiler cannot figure out that assert(false) means
// unreachable, so j... |
/*
* Copyright (c) 2010 Jice
* 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 a... |
/*
* File: clrHost.cpp
* Author: MarkAtk
* Date: 09.10.2018
*
* MIT License
*
* Copyright (c) 2018 Rage-MP-C-SDK
*
* 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 restricti... |
/*
* 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 disclaimer.
*
* 2. Redistribu... |
#include "stdafx.h"
#include "WeaponKnife.h"
#include "WeaponHUD.h"
#include "Entity.h"
#include "Actor.h"
#include "level.h"
#include "xr_level_controller.h"
#include "game_cl_base.h"
#include "../skeletonanimated.h"
#include "gamemtllib.h"
#include "level_bullet_manager.h"
#include "ai_sounds.h"
#defi... |
//
// Created by Peng,Wei(BAMRD) on 2021/4/2.
// https://github.com/tosone/bundleNode/blob/aaf04fd200a56f3f5b60c1c691877c192c6448af/deps/v8/src/startup-data-util.cc
//
#include <v8.h>
#include "V8Snapshot.h"
#include "V8Engine.h"
#include "GlobalObject.h"
#include "Utils.hpp"
#ifdef WIN32
#include <io.h>
#include <di... |
#include <iostream>
#include <opencv2/opencv.hpp>
#include <fstream>
using namespace cv;
/**
* @brief Checks whether the pixel is part of Peak/ is Peak, We are looking for 8-conn points
*
* @param mxz
* @param conn_points
* @return true
* @return false
*/
bool isPeak(cv::Mat mx[], std::vector<cv::Point>& ... |
#include "40_cpnlTest.h"
double dataAgreementWithFlips(string filename, int D, cpn cpnet){
//Calculates DFA between data and cpnet
//filename tells us the location of the data - Assumed to be written on 1 comma separated line, each entry is an observed outcome
//D tells us the number of data points
//... |
/* This software and supporting documentation are distributed by
* Institut Federatif de Recherche 49
* CEA/NeuroSpin, Batiment 145,
* 91191 Gif-sur-Yvette cedex
* France
*
* This software is governed by the CeCILL-B license under
* French law and abiding by the rules of distribution of free soft... |
#include <sys/system.h>
#include <sys/sysio.h>
#include <sys/errors.h>
#include <sys/bcm2837.h>
#include <sys/types.h>
#include <sys/sync.h>
#include <sys/timer.hh>
#include <sys/heap.h>
#include <sys/pmm.hh>
#include <machina/VMM.hh>
#include <sys/Display.hh>
#include <sys/Screen.hh>
#include <sys/mailbox.h>
#include ... |
#include "WiFi.h"
#include "esp_camera.h"
//#include "esp_timer.h"
//#include "img_converters.h"
//#include "soc/soc.h" // Disable brownour problems
//#include "soc/rtc_cntl_reg.h" // Disable brownour problems
//#include "driver/rtc_io.h"
//#include <StringArray.h>
//#include <SPIFFS.h>
//#include <FS.h>
... |
#include "Arduino.h"
#include "modbusTcpSlave.h"
// WiFiServer mbServer(MODBUSIP_PORT);
#define TCP_TIMEOUT_MS RTU_TIMEOUT * 2
ModbusTcpSlave::ModbusTcpSlave(_ApplicationLogger& logger, uint16_t port = MODBUSIP_PORT, bool _isDebug = false)
: mbServer(port), mLogger(logger), isDebug(_isDebug)
{
mbServer.begin();
... |
/*BEGIN_LEGAL
Intel Open Source License
Copyright (c) 2002-2016 Intel 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 copyr... |
// file.cpp - operations on sd card files
// See eg https://randomnerdtutorials.com/esp32-microsd-card-arduino/
#include "SD_MMC.h"
#include "cmd.h" // for run command
#include "file.h"
// Prints SD card properties to Serial.
void file_sdprops() {
Serial.printf("card: type ");
sdcard_type_t cardtype=SD_... |
//
// Copyright (C) 2004-2006 <NAME>, <NAME>, <NAME>
// Distributed under the Boost Software License, Version 1.0.
// (See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
//
#include "soci-sqlite3.h"
#include <connection-parameters.h>
#include <sstream>
#include <string>
#inclu... |
/***************************************************************************
qgsalgorithmrasterlayeruniquevalues.cpp
---------------------
begin : January 2019
copyright : (C) 2019 by <NAME>
email : <EMAIL>
*********... |
#include "TurnController.h"
TurnController::TurnController(Character* b, IKVMCController* llc, WorldOracle* w) : BehaviourController(b, llc, w){
headingRequested = false;
stillTurning = false;
requestedHeadingValue = 0;
turningBodyTwist = 0;
initialTiming = 0;
}
/**
ask for a heading...
*/
void TurnController::... |
// This file is part of the Yttrium toolkit.
// Copyright (C) <NAME>.
// SPDX-License-Identifier: Apache-2.0
#include <yttrium/gui/font.h>
#include <yttrium/base/exceptions.h>
#include <yttrium/geometry/rect.h>
#include <yttrium/image/image.h>
#include <yttrium/renderer/2d.h>
#include <yttrium/renderer/manager.h>
#in... |
// jhcExpVSrc.cpp : iterator for shoveling images to analysis programs
//
// Written by <NAME>, <EMAIL>
//
///////////////////////////////////////////////////////////////////////////
//
// Copyright 1998-2014 IBM Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this f... |
#include <fcntl.h>
#include <iostream>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include <dirent.h>
#include <string.h>
#include "../libraries/core/messages.hpp"
#include "../libraries/core/serializers.hpp"
#include "../tests/utils.hpp"
//#include "worker.h"
#include "worker.hpp"
#include "ha... |
/**
* 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"
using std::string;
using ... |
#include "JPos_Controller.hpp"
#include <random>
void karl_Controller::initializeController() {
_loadPath = "/home/user/raisim_workspace/Cheetah-Software/actor_model/actor_1700.pt";
try {
// Deserialize the ScriptModule from a file using torch::jit::load().
_actor = torch::jit::load(_loadPath);
}
catc... |
/* Copyright 2011 <NAME>, All Rights Reserved.
* dirkx(at)webweaving(dot)org
*
* 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/lic... |
#include "pooling.hpp"
namespace Shadow {
namespace Vision {
template <>
void Pooling2D<DeviceType::kCPU, float>(const float* in_data,
const VecInt& in_shape, int pool_type,
int kernel_size_h, int kernel_size_w,
... |
/*
* Copyright (C) 2019 MediaTek 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 agr... |
#include <dfs_code.hpp>
#include <string>
#include <gtest/gtest.h>
#include <stdexcept>
#include <dbio.hpp>
#include <logger.hpp>
#include <cuda_graph_types.hpp>
using std::string;
using std::runtime_error;
using types::DFS;
using namespace dbio;
types::graph_database_t get_test_database()
{
std::string pbec_prefi... |
#include "mesh_generation/hexcore.h"
#include "core/math/aabb.h"
#include "core/container/tvector.h"
#include "mesh_generation/point_octotree.h"
#include <set>
struct HexcoreCell {
u64 morton;
uint depth; //todo could compute this implicitly, but probably more error prone
bool front;
union {
H... |
#include <iostream>
#include <regex>
#include <string>
#include <list>
#define CPPHTTPLIB_OPENSSL_SUPPORT
#define CPPHTTPLIB_KEEPALIVE_TIMEOUT_SECOND 20
#define CPPHTTPLIB_READ_TIMEOUT_SECOND 20
#define CPPHTTPLIB_WRITE_TIMEOUT_SECOND 20
#include "httplib.h"
#include <vm/vm.h>
#include <bot/bot.h>
#include <game.h>
... |
/*
Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights
reserved.
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 ... |
#include <cassert>
#include <fstream>
#include "BGFXWidget.h"
struct PosColorVertex
{
float m_x;
float m_y;
float m_z;
uint32_t m_abgr;
static void init()
{
ms_layout
.begin()
.add(bgfx::Attrib::Position, 3, bgfx::AttribType::Float)
.add(bgfx::Attrib... |
#include <dawgdic/dawg-builder.h>
#include <dawgdic/dictionary-builder.h>
#include <dawgdic/guide-builder.h>
#include <dawgdic/ranked-guide-builder.h>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <limits>
#include <string>
namespace {
class CommandOptions {
public:
CommandOptions()
: hel... |
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <cstdlib>
#include <algorithm>
#include <queue>
using namespace std;
/*
Dane wczytywane z pliku:
n - ilosc zadan
r - termin dostepnosci
p - czas obslugi
q - czas dostarczenia
*/
/* Klasa modelujaca obiekt zadania, przechowuje informa... |
#include "d3_queue.h"
#include <assert.h>
#include <iostream>
#include <stdlib.h>
#include <math.h>
#include <iomanip>
#include "../coresim/event.h"
#include "../coresim/flow.h"
#include "../coresim/packet.h"
#include "../run/params.h"
extern double get_current_time();
extern void add_to_event_queue(Event* ev);
exte... |
#include <random>
#include <thread>
#include "Timer.hpp"
#include "MapHelper.hpp"
#include "Sample_VR.hpp"
#include "TextureUtilities.h"
#include "TexturedCube.hpp"
#include "EngineFactoryVk.h"
#include "OpenVRDevice.h"
#include "VREmulator.h"
namespace DEVR
{
using EHmdStatus = IVRDevice::EHmdStatus;
void Sample_VR... |
#pragma once
#include "base/LifeCycleComponent.hpp"
#include "MonitorManager.hpp"
#include "client/ClientLifecycle.hpp"
#include "entity-system/managers/entities/entity-instance-manager/EntityInstanceManager.hpp"
#include "entity-system/model/data/DataTypes.hpp"
#include "input/managers/KeyboardInputManager.hpp"
#incl... |
#include <fcntl.h>
#include <math.h>
#include <stdio.h>
#include <string.h>
#include <sys/ioctl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/uio.h>
#include <termios.h>
#include <unistd.h>
#include "hw/gps/ubx.h"
const char ubx_port[] = "/dev/serial0";
#define startup_ioctl_baud B9600
#define runtime... |
/*
* Distributed under the OSI-approved Apache License, Version 2.0. See
* accompanying file Copyright.txt for details.
*
* TestBPWriteTypesHighLevel.cpp : C-bindings high-level stream API
*
* Created on: Feb 28, 2018
* Author: <NAME>
*/
#include <adios2_c.h>
#ifdef ADIOS2_HAVE_MPI
#include <mpi.h>
#en... |
/*********************************************************************
Copyright (c) 2013, <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 ... |
/*
* Copyright 2008-2013 NVIDIA Corporation
* Modifications Copyright© 2019 Advanced Micro Devices, 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
*
* ... |
#include <iostream>
#include <string>
#include <vector>
#include <fstream>
#include <XILoader/XILoader.h>
// variables for stbi to write
// image size data to
static int x, y, z;
static uint16_t passed = 0;
static uint16_t failed = 0;
#define STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>
#define PATH_TO(image) XI... |
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <iostream>
#include <fstream>
#include <string>
#include <memory>
#include "camera.h"
#include "ground.h"
#include <stdio.h>
#include <stdlib.h>
double const PI = 3.1415926;
void DrawMask(const cv::Mat &src, const cv::Mat &mask, ... |
/*
* SPDX-License-Identifier: Apache-2.0
*/
//===----------- ONNXConstProp.cpp - ONNX High Level Rewriting ------------===//
//
// Copyright 2019-2020 The IBM Research Authors.
//
// =============================================================================
//
// This file implements a set of rewriters to constpr... |
#include "device.h"
#include <float.h>
Device::Device(SDL_Surface* _screen)
:screen(_screen), renderWidth(screen->w), renderHeight(screen->h)
{
depthBuffer = new float[renderWidth * renderHeight];
}
Device::~Device()
{
if (depthBuffer)
{
delete[] depthBuffer;
}
}
// Clear... |
/*!
* \file BezierScheme.cpp
* \author <NAME>
* \copyright (c) 2020 <NAME>.
* The project is released under the MIT License.
* \date February 23, 2020: created
*/
#include "BezierScheme.hpp"
#include <set>
#include <thread>
#include <mutex>
#include <iostream>
using BezierSequence = typename BezierScheme::Bez... |
#include "stdafx.h"
#include "video.h"
#include "riffs.h"
#include <vector>
#include <stdio.h>
extern "C" {
#pragma warning(disable: 4244)
#pragma warning(disable: 4996)
#include <libavformat/avformat.h>
#include <libavcodec/avcodec.h>
#include <libavutil/mem.h>
#include <libavutil/buffer.h>
#include <l... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.