text stringlengths 3.08k 12.5k |
|---|
/*
* 2020.12.28
* motion.cpp
* ver 1.0
* <NAME>
* license(Apache-2.0) at http://www.apache.org/licenses/LICENSE-2.0
*/
#include <iostream>
#include <vector>
#include <fcntl.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <termios.h>
#include <string.h>
#include <linux/joystick.h>
#include "motion.h... |
/*
Software License Agreement (BSD License)
Copyright (c) 2022 <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:
- Redistributions of source code must retain the above copyright notice,
this l... |
//
// Created by <NAME>, <NAME>
//
#include "LCSLaser.h"
#include "LCSEngineState.h"
#include "LCSLaserState.h"
#include <typeinfo>
#include <iostream>
/* ---------------------------------------------------------------------------------------------------------------- */
/* Point Typ (Hilfsfunktionen) ... |
/*ckwg +29
* Copyright 2012-2016 by Kitware, 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 li... |
// #include "../include/classes.h"
#include<iostream>
#include<fstream>
#include<vector>
#include<string>
//#include<algorithm>
//#include<iterator>
#include<boost/algorithm/string.hpp>
using namespace std;
class Hostel
{
public:
std::vector<std::string>rnumber;
std::vector<int>rfloor;
st... |
/*******************************************************************************
* Title : Processor Class
* Filename : processor.cpp
* Author : <NAME>
* Origin Date : 20/05/2020
* Version : 1.0.0
* Compiler : G++17
* Target ... |
/*
The MIT License
Copyright (c) 2015-2017 <NAME> <EMAIL>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, mo... |
#include "Elevation.h"
#include "../Field.h"
#include "../Data.h"
#include "../Location.h"
#include "../Variables/Variable.h"
DownscalerElevation::DownscalerElevation(const Options& iOptions) : Downscaler(iOptions),
mNumPoints(1),
mLapseRate(6.5),
mComputeLapseRate(false),
mShowLapseRate(false),... |
#include "Sprite.h"
#include "Vertex.h"
#include "DirectX11Game.h"
#include "Texture2D.h"
Sprite::Sprite()
: _game(NULL),
_device(NULL),
_context(NULL),
_mwvpConstBuffer(NULL)
{
_position.x = 0.0f;
_position.y = 0.0f;
_origin.x = 0.0f;
_origin.y = 0.0f;
_rotation = 0.0f;
_scale.x = 1.0f;
_scale.y = 1.0f;
}
... |
/*
* Copyright (C) 2020 Open Source Robotics Foundation
*
* 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 appl... |
// SPDX-License-Identifier: BSD-3-Clause
// Copyright Contributors to the OpenColorIO Project.
#include "OCIOColorSpace.h"
#include "OCIOProcessor.h"
namespace OCIO = OCIO_NAMESPACE;
namespace
{
const std::string PLUGIN_TYPE = "OCIOColorSpace";
} // namespace
OCIOColorSpace::OCIOColorSpace(OfxImageEffectHandle ha... |
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include "about.h"
#include "logindialog.h"
#include <chatroom.h>
#include <QLabel>
#include <QKeyEvent>
#include <QTimer>
#include <QMessageBox>
#include <QPushButton>
#include <QTextStream>
#include <QString>
#include <QFileSystemWatcher>
#include <QDesktopServices>... |
/*!**************************************************************************
\file TCubeMap.cpp
\author <NAME>
\date February 2008
\version 1.00
The main file for the:
- cubemap indices lookup
******************************************************************************/
#include <cstdio>
#include... |
#include "Platformer/app/game.h"
#include "Platformer/app/event_handler.h"
#include "Platformer/display/window.h"
#include "Platformer/logic/tile.h"
#include "SDL2/SDL.h"
#include "SDL2/SDL_image.h"
#include <iostream>
#include <fstream>
Window* Game::window = nullptr;
Renderer* Game::renderer = nullptr;
FPSCounter... |
#include "CTools.h"
#include <math.h>
CTools Tools;
ofstream ofile;
char dlldir[320];
char *CTools::GetDirectoryFile(char *filename)
{
static char path[320];
strcpy(path, dlldir);
strcat(path, filename);
return path;
}
void __cdecl CTools::LogError(const char * fmt, ...)
{
va_list va_alist;
char logbuf[256];... |
#include <cmath>
#include <cassert>
#include <algorithm>
#include <fstream>
#include <iostream>
#include <vector>
#include <string>
using namespace std;
#define int64 long long
const int kMaxX = 1e9, kMaxSize = 1e5 + 1, kMaxVal = 1e9;
const vector<string> good_sources = {"licenta_palcu_100p", "licenta_scipianus_100... |
//MIT License
//Copyright 2017 <NAME>
#include "serializer.hpp"
#include "binarySerializer.hpp"
#include "utils/base64.hpp"
#include "utils/constants.hpp"
using namespace std;
using namespace various;
using namespace webss;
extern void putTemplateBodyBin(StringBuilder& out, const TheadBin::Params& params, const Tupl... |
#include <iostream>
#include <stdlib.h>
#include <time.h>
#include <deque>
#include <stack>
using namespace std;
class State{
public:
int a[9];
State(){
for (int i = 0; i<9; i++){
a[i] = rand() % 9;
while (found(i)) { a[i] = rand() % 9; }
}
}
void print(){
cout << "-----------------" << endl;
for (... |
#include<iostream>
#include<string>
using namespace std;
template<typename ItemType>
class BagInterface {
public:
virtual int getCurrentSize() const = 0;
virtual bool isEmpty() const = 0;
virtual bool add(const ItemType& newEntry) = 0;
virtual bool remove(const ItemType& anEntry) = 0;
virtual bool removeAll... |
# include <iostream>
# include <fstream>
# include <sstream>
# include <algorithm>
# include <functional> // greater<int>()
# include <vector>
# include <string>
# include <queue>
# include <stack>
# include <list>
# include <map>
# include <set>
# include <cstdio>
# include <cstdlib>
# include <cmath>
# include <ctime... |
#include "p2Defs.h"
#include "p2Log.h"
#include "j1App.h"
#include "j1Input.h"
#include "j1Textures.h"
#include "j1Audio.h"
#include "j1Render.h"
#include "j1Window.h"
#include "j1Map.h"
#include "j1PathFinding.h"
#include "j1Scene.h"
#include "j1Collision.h"
#include "j1FadeToBlack.h"
#include "Entity_Player.h"
#inclu... |
#include "ColorTriggerPopup.hpp"
#include <MonoSpaceLabel.hpp>
using namespace gd;
using namespace gdmake;
using namespace gdmake::extra;
using namespace cocos2d;
void ColorTriggerPopup::setup() {
auto winSize = CCDirector::sharedDirector()->getWinSize();
// auto label = MonoSpaceLabel::create("", "chatFont.... |
#include <iostream>
#include <algorithm>
#include <opencv2/opencv.hpp>
#include <cmath>
#define N 1
#define FOC_IN_PIX 928.334 // focal in px (use your own, can be retrieved by running the 'calib_for_focal_in_stereo.cpp')
using namespace std;
using namespace cv;
Rect* l_ROI = new Rect[N];
Rect* r_ROI = new Rect[N];... |
/*
* BSD 3-Clause License
*
* Copyright (c) 2019, Analog Devices, 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 copyrigh... |
/**
Copyright 2009-2021 National Technology and Engineering Solutions of Sandia,
LLC (NTESS). Under the terms of Contract DE-NA-0003525, the U.S. Government
retains certain rights in this software.
Sandia National Laboratories is a multimission laboratory managed and operated
by National Technology and Engineering ... |
/*
* Copyright (C) 2004-2013 ZNC, see the NOTICE file for details.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requi... |
/*
* PermissionsServlet.h
*
* Created on: May 11, 2012
* Author: Itac
*/
#include "PermissionsServlet.h"
#include "../../WebServer.h"
#include "server/zone/managers/player/PermissionLevelList.h"
#include "server/zone/managers/player/PlayerManager.h"
#include "server/zone/objects/creature/CreatureObject.h"
... |
//
// Conv2DBackPropTest.cpp
// MNNTests
//
// Created by MNN on 2019/09/26.
// Copyright © 2018, Alibaba Group Holding Limited
//
#include <MNN/MNNForwardType.h>
#include <MNN/AutoTime.hpp>
#include <MNN/expr/Expr.hpp>
#include <MNN/expr/ExprCreator.hpp>
#include <MNN/expr/Optimizer.hpp>
#include <cmath>
#include... |
/* Copyright 2018 <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 writi... |
/*
Copyright (c) 2011, <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:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the followin... |
/*
* Copyright (c) 2018-2019 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
* 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
* ri... |
#include "redblackbst.h"
#include <iostream>
RedBlackBST::RedBlackBST() {
root = nullptr;
}
// Adds a new key/value pair or updates the
// value if the key already exists in BST
void RedBlackBST::put(std::string key, int val) {
root = recursivePut(root, key, val);
root->color = BLACK; // root needs to be black or... |
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
// $Id:$
//
// Copyright (C) 1993-1996 by id Software, Inc.
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public Licen... |
#include <cstdio>
#include <iostream>
#include <cmath>
#include <algorithm>
#include <cstring>
#include <map>
#include <set>
#include <vector>
#include <utility>
#include <queue>
#include <stack>
#define sd(x) scanf("%d",&x)
#define sd2(x,y) scanf("%d%d",&x,&y)
#define sd3(x,y,z) scanf("%d%d%d",&x,&y,&z)
#define fi f... |
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/*
* File: templateMatching.cpp
* Author: aqq
*
* Created on 2017年4月13日, 下午3:06
*/
#include "templateMatching.h"
#include "m... |
//
// Created by shankarganesh on 12/9/15.
//
//#include <stdlib.h>
//#include <stdio.h>
//#include "libpng/png.h"
#ifdef ANDROID
//#include "../../../../../../../../../Android/Sdk/ndk-bundle/platforms/android-21/arch-arm/usr/include/android/log.h"
#include <android/log.h>
#include "../../opengl.h"
#endif
#include "L... |
#include "frost/JacGEvalMultiThread.h"
#include "frost/Document.h"
#include "frost/functionlist.hh"
#include "IpTNLP.hpp"
#include <iostream>
#include <thread>
#include <mutex>
#include <vector>
#include <condition_variable>
#include <cassert>
using namespace Ipopt;
using namespace std;
namespace frost
{
class Jac... |
#include "../includes/emulator.hh"
Emulator::Emulator()
{
}
Emulator::Emulator(char* file, int dbg)
: state_(0)
, ram_(new RAM(file))
, display_(ram_)
, dbg_(&cpu_, ram_, dbg)
{
SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO);
screen_ = SDL_SetVideoMode(SCREEN_WIDTH, SCREEN_HEIGHT, 32, SDL_ANYFORMAT... |
/***************************************************************************
* Copyright (C) 2007 by <NAME> *
* <EMAIL> *
* *
* This program is free sof... |
// This file is part of ArboristCore.
/* 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/.
*/
/**
@file indexset.cc
@brief Maintains frontier tree nodes as block... |
#include "MotorController_BST7960.h"
#include "Arduino.h"
#include <algorithm> // min() & max()
#include "string.h" // for memset()
using namespace std; // min() & max()
#define GPIO_PIN_RESET 0
#define GPIO_PIN_SET 1
// use 13 bit precission for LEDC timer
#define LEDC_TIMER_13_BIT 13
template
<typename T> ... |
/* ************************************************************************
* Copyright (c) 2018-2019 Advanced Micro Devices, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software witho... |
#include "wiSprite.h"
#include "wiImage.h"
#include "wiRenderer.h"
#include "wiRandom.h"
#include "wiTextureHelper.h"
using namespace wiGraphics;
wiSprite::wiSprite(const std::string& newTexture, const std::string& newMask)
{
if (!newTexture.empty())
{
textureName = newTexture;
textureResource = wiResourceManag... |
#include <climits>
#include <cstdio>
#include <cstring>
#include <algorithm>
using namespace std;
#define NMAX 300000
#define SIGMA 27
#define EOFCHAR 26
typedef long long int64;
static int n;
static char str[NMAX + 10];
struct Node;
struct Edge {
Edge(int l, int r, Node *nxt) : left(l), right(r), next(nxt) {... |
#include "GPS.h"
#include "mbed.h"
GPS::GPS(PinName tx, PinName rx) : gps(tx,rx){
gps.baud(9600);
printf("Aquecendo...");
}
void GPS::leitura_simples(){
dataValid = 0;
//verifica chegada da informacao
if(gps.readable()){
for(int i=0; i<500; i++){
c = gps.getc();
if(c=='\r'){
i = 500;
}
else{
... |
#include "DMgenerator.h"
#include "branchingratios.h"
#include "decay.h"
#include "constants.h"
#include <cstdlib>
#include <iostream>
#include <fstream>
using std::cout; using std::endl;
//std::ofstream logging("log.dat", std::ofstream::out);
V_decay_gen::V_decay_gen(double MV, double MX, double kap, double alp, c... |
#include <stdarg.h>
#include <stddef.h>
#include <setjmp.h>
#include <math.h>
#include <type_traits>
#include <chrono>
#include <random>
#include <vector>
extern "C" {
#include <cmocka.h>
}
#include "mgsch.h"
#include "projection.h"
using namespace std;
using namespace fdm;
template<typename T>
void test_mgsch(boo... |
/* main.cpp - Copyright 2019/2020 Utrecht University
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... |
/*
* Copyright (c) 2021 Huawei Device 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 ... |
//
// Created by cain on 2018/9/9.
//
#include <malloc.h>
#include <stdlib.h>
#include <memory.h>
#include "StackBlurFilter.h"
#include "FilterUtils.h"
StackBlurFilter::StackBlurFilter() : radius(2) {
}
StackBlurFilter::~StackBlurFilter() {
}
int StackBlurFilter::process(void *pixels, unsigned int width,
... |
#define DEBUG
#define DEBUG2
#include <virtio/console.hpp>
#include <kernel/irq_manager.hpp>
#include <hw/pci.hpp>
#include <cassert>
#include <cstring>
extern "C"
{ void panic(const char*); }
#define VIRTIO_CONSOLE_F_SIZE 0
#define VIRTIO_CONSOLE_F_MULTIPORT 1
#define VIRTIO_CONSOLE_F_EMERG_WRITE 2
#... |
//===-- VectorExtOps.h - Vector Extension dialect ops ------*- tablegen -*-===//
//
// 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
//
//===---------------------------... |
/**
* @file bench_selective_unfiltering.cc
*
* @section LICENSE
*
* The MIT License
*
* @copyright Copyright (c) 2018-2021 TileDB, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the S... |
// Preprocessor Directives
#define STB_IMAGE_IMPLEMENTATION
// Local Headers
#include "glitter.hpp"
#include "shader.h"
// Console Color
#include "consoleColor.hpp"
// System Headers
#include <glad/glad.h>
#include <GLFW/glfw3.h>
// Standard Headers
//#include <cstdio>
//#include <cstdlib>
#include <iostream>
// 声... |
// Copyright(c) 2017-2020, Intel Corporation
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this list of conditions and... |
/*
* Copyright (c) 2015, 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 <st... |
// BSD 3-Clause License
//
// Copyright (c) 2018, <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:
//
// * Redistributions of source code must retain the above copyright notice, this
// ... |
#include "std.h"
#include "animator.h"
#include "object.h"
Animator::Animator( Animator *t ):_seqs( t->_seqs ){
_objs.resize( t->_objs.size() );
_anims.resize( t->_anims.size() );
for( int k=0;k<t->_objs.size();++k ){
_objs[k]=t->_objs[k]->getLastCopy();
_anims[k].keys=t->_anims[k].keys;
}
reset();
}
Ani... |
/*
* Copyright (c) 2019, The Bifrost Authors. 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 con... |
/*
Copyright (c) 2016, 2020, 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, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with certain ... |
// Copyright (c) 2014-2020 The Virie Project
// Copyright (c) 2012-2013 The Cryptonote developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <cstddef>
#include <cstdint>
#include <fstream>
#include <iostream>
#... |
#include "ns3/core-module.h"
#include "ns3/random-variable-stream.h"
#include "ns3/data-rate.h"
#include "ns3/packet.h"
#include <queue>
#include "ppbp-queue.h"
using namespace ns3;
NS_OBJECT_ENSURE_REGISTERED (PPBPQueue);
PPBPQueue::PPBPQueue ()
{
// we must provide a public default constructor,
// implicit or ... |
//
// GLBackendPipeline.cpp
// libraries/gpu/src/gpu
//
// Created by <NAME> on 3/8/2015.
// Copyright 2014 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "GLBackend.h"
#include "GLSha... |
#include "surf.h"
#include "extra.h"
using namespace std;
using namespace FW;
namespace
{
// This is a generic function that generates a set of triangle
// faces for a sweeping a profile curve along "something". For
// instance, say you want to sweep the profile curve [01234]:
//
// 4 9 ... |
#include "relabel_cpu.h"
#include "utils.h"
std::tuple<torch::Tensor, torch::Tensor> relabel_cpu(torch::Tensor col,
torch::Tensor idx) {
CHECK_CPU(col);
CHECK_CPU(idx);
CHECK_INPUT(idx.dim() == 1);
auto col_data = col.data_ptr<int64_t>();
auto idx_data ... |
//
// High performance Graphic Image access (emitter)
// onion software/onitama 2009/12
//
#ifdef HSPWIN
#include "../hsp3/hsp3config.h"
#else
#include "hsp3config.h"
#endif
#ifdef HSPWIN
#include <windows.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "hgdx.h"
#inc... |
// CGPA calculator v0.1 - refactored
/* changelog:
[1] [important] course id limited to 7 characters to improve visual corrections for output table
[2] waiver calculation made a seperate function
[3] table and cgpa output made a seperate function
[4] course details input made a seperate function
*/
#include <... |
#include "rt1w/camera.hpp"
#include "rt1w/params.hpp"
#include "rt1w/ray.hpp"
#include "rt1w/sampling.hpp"
#include "rt1w/transform.hpp"
#include "rt1w/value.hpp"
enum struct ProjectionType { Perspective, Orthographic };
struct _ProjectiveCamera : Camera {
_ProjectiveCamera(const v3f &position,
... |
#include "../gtest.h"
#include <utility>
#include <arbor/event_generator.hpp>
#include <arbor/spike_event.hpp>
#include "util/rangeutil.hpp"
#include "common.hpp"
using namespace arb;
namespace{
pse_vector as_vector(event_seq s) {
return pse_vector(s.first, s.second);
}
}
TEST(event_generators, a... |
#include "stdafx.h"
#include "Level1.h"
#include "Billboard.h"
#include "Collisions.h"
#include "Rasterizer.h"
Level1::Level1( LevelStateMachine& stateMachine ) : levelStateMachine( stateMachine ) { }
bool Level1::OnCreate()
{
try
{
// Renderables
if ( !ModelData::LoadModelData( "Level1_Objects.json" ) ) return... |
/* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */
/*
Vamp Tempogram Plugin
<NAME>, Centre for Digital Music, Queen Mary University of London
Copyright 2014 Queen Mary University of London.
This program is free software; you can redistribute it and/or
modify it under the... |
// Generate small molecule universe (SMU) exhaustively.
#include <algorithm>
#include "Foundational/cmdline/cmdline.h"
#include "Molecule_Lib/molecule.h"
#include "smu.h"
namespace smu {
using std::cerr;
using std::cout;
void
usage(int rc) {
cerr << "Generates SMU molecules\n";
cerr << " -B <smi> cs... |
/*
* main.cpp
*
* Created on: 11.07.2017
* Author: root
*/
#include "getopt_pp.hpp"
#include <iostream>
#include <string>
#include "../libetherstream/libetherstream.hpp"
#include <thread>
#include <list>
extern "C"{
#include <termios.h>
#include <fcntl.h>
#include <ncurses.h>
}
#define SERVICE_SHELL 1
usi... |
#pragma once
#include <cstdint>
using quaternion = float [ 4 ];
using rad_euler = float [ 3 ];
struct model_t;
enum bone_flags {
bone_calculate_mask = 0x1f,
bone_physically_simulated = 0x01,
bone_physics_procedural = 0x02,
bone_always_procedural = 0x04,
bone_screen_align_sphere = 0x08,
bone_screen_align_cylind... |
#include "p2Defs.h"
#include "p2Log.h"
#include "j1App.h"
#include "j1Input.h"
#include "j1Textures.h"
#include "j1Render.h"
#include "j1Window.h"
#include "j1Map.h"
#include "j1PathFinding.h"
#include "Fonts.h"
#include "j1Scene.h"
j1Scene::j1Scene() : j1Module()
{
name.assign("scene");
}
// Destructor
j1Scene::~j1... |
#include "OCLsetting.h"
#include "RTstruct.h"
#include <CL\cl_gl.h>
#include <Windows.h>
#include <fstream>
#define DEBUG_CL
#define USE_DEVICE "Intel"
OCLsetting::OCLsetting(unsigned width /* = 800 */, unsigned height /* = 600 */)
:isInit(false), platform(NULL), device(NULL), context(NULL),
queue(NULL), program(NU... |
#pragma once
#include <iostream>
#include <cstdlib>
#include <string>
#include <sstream>
#include <fstream>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <cuda.h>
#include <cuda_runtime.h>
#include <cuda_gl_interop.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include "utilityCore.hpp"
#in... |
#include "muscle.h"
#include "profile.h"
#include "diaglist.h"
#include "muscle_context.h"
#define TRACE 0
const unsigned KTUP = MuscleContext::finddiags_struct::KTUP;
const unsigned KTUPS = MuscleContext::finddiags_struct::KTUPS;
/*//MOVED TO TLS
const unsigned KTUP = 5;
const unsigned KTUPS = 6*6*6*6*6;
static unsig... |
#include "grsim_vision.hpp"
#include "systime.hpp"
using namespace std;
using namespace arma;
using namespace boost;
using namespace boost::asio;
using namespace boost::posix_time;
using byte = unsigned char;
vec GrSim_Vision::blue_loc_vecs[NUM_ROBOTS];
vec GrSim_Vision::yellow_loc_vecs[NUM_ROBOTS];
double timesta... |
/* This file is part of Jellyfish.
Jellyfish is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Jellyfish is distributed ... |
/**
* @file wpSelect.cpp
* @brief select target way point
* @author <NAME>
* @date 2021.9.21
* @details 位置情報からpublishするtarget way pointとなるpose を選ぶ
* (等間隔で設定されてない5〜10mの少し離れた間隔のwp pointをもとにする)
*/
#include <ros/ros.h>
#include <std_msgs/Int32.h>
#include <std_msgs/String.h>
#include <std_msgs/Bool.h>
#include <ge... |
#include "AiSimApp.hpp"
#include "../sim/world/RandomWorld.hpp"
#include "../util/Random.hpp"
#include "../util/make_unique.hpp"
#include <SFML/Window.hpp>
#include <iostream>
// <NAME>
// October 2013
// AiSimApp.cpp
using namespace cdc;
using namespace std;
using namespace sf;
int getSeed();
void printUserComman... |
//---------------------------
// (c) Reliable Software 2006
//---------------------------
#include "precompiled.h"
#include "SqlHtmlSink.h"
#include "Sql.h"
#include "WikiDef.h"
#include "WikiConverter.h"
#include <File/Dir.h>
void SqlHtmlSink::SqlCmd (Sql::Command const & cmd)
{
switch (cmd.GetType ())
{
case Sql:... |
#include "SMshader.h"
#include <fstream>
#include <sstream>
bool SMshader::CreateShaderProgram(GLuint &vertexShader, GLuint &fragmentShader, std::string &attribStr, std::string &error)
{
program = glCreateProgram();
if (program == 0) {
error = "Could not create shader program";
return false;
}
glAttachShader(... |
#include "apt.h"
#include <iostream>
#include <filesystem>
#include <fstream>
#include "fork.h"
namespace color {
const char* reset = "\033[0m";
const char* red = "\x1B[91m";
const char* green = "\x1B[92m";
const char* yellow = "\x1B[93m";
const char* magenta = "\x1B[95m";
const char* cyan = "\x1B[96m";
}
... |
/*
Parse *.csv-files
*/
#include <iostream>
#include <regex>
#include <fstream>
#include <string>
#include <iterator>
#include <algorithm>
#include <array>
#include <cstdint>
#include <vector>
class CSVDefinition
{
public:
// explicit CSVDefinition (arguments); // type conversion
CSVDefinition() = default; /... |
/*
* Copyright 2012, Blender Foundation.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is d... |
#include <iostream>
#include <unordered_map>
#include <algorithm>
#include <numeric>
#include "IntcodeComputer.h"
#include "Screen.h"
#include "vector"
#include <unordered_map>
#include <iterator>
#include <sstream>
#include <zconf.h>
using namespace std;
struct Pos {
int x;
int y;
Pos move(int direction)... |
// Silence MSVC sprintf unsafe warnings
#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <sstream>
#include <iomanip>
#include <limits>
#include <string>
#include <type_traits>
#include <algorithm>
#include <functional>
#include <ctype.h>
#include "libdivide.h"
#include "type_mappings.h"
inline std::stri... |
#include "./class.h"
#include "../../util/log.h"
#include "../TopologySort.h"
#include "../common/method.h"
#include "ivar.h"
#include "../common/property.h"
#include <map>
#include <algorithm>
extern std::map<const void*,Class> g_classPointers;
Class RegisterClass(old_class* cls, bool hasExt)
{
LOG << "Processing o... |
// Walk and kick game state: Positioning
// Author: <NAME> <<EMAIL>>
// Includes
#include <walk_and_kick/game_states/game_positioning.h>
#include <rc_utils/math_vec_mat.h>
#include <rc_utils/math_funcs.h>
// Namespaces
using namespace walk_and_kick;
using namespace rc_utils;
//
// GamePositioning class
//
// Constr... |
/*
* Copyright (C) 2015 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright 1993-2015 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this software. Any use, reproduction, disclosure, or distribution of
* this software and related... |
// Copyright (c) 2008, <NAME> (<EMAIL>)
//
// This file is part of CROWN, which is distributed under the revised
// BSD license. A copy of this license can be found in the file LICENSE.
//
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty ... |
#include "SdlApplication.hpp"
#include <iostream>
#include <utility>
#include "GraphicsManager.hpp"
#include "InputManager.hpp"
/*
* Recurse through the list of arguments to clean up, cleaning up
* the first one in the list each iteration.
*/
template <typename T, typename... Args>
void cleanup(T *t, Args &&... arg... |
/*******************************************************************************
<NAME>
09-11-2018
******************************************************************************/
#include <Arduino.h>
#include <math.h>
#include "DvG_SerialCommand.h"
#include "ZeroTimer.h"
// Serial : Programming USB p... |
// -*- c-basic-offset: 4 -*-
/*
* html.cc -- HTML handling code for click-pretty
* <NAME>
*
* Copyright (c) 2002 International Computer Science Institute
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to ... |
/* binarization_plugin.cpp
* This is a test plugin, you can use it as a demo.
* 2018-10-12 : by Guochanghao
*/
#include "v3d_message.h"
#include <iostream>
#include <vector>
#include "binarization_plugin.h"
using namespace std;
Q_EXPORT_PLUGIN2(binarization, TestPlugin);
QStringList TestPlugin::menul... |
#include <windows.h>
#include <fstream>
struct PhysRW_t
{
uint64_t PhysicalAddress;
DWORD Size;
DWORD Unknown;
uint64_t Address;
};
struct RegRW_t
{
DWORD Register;
uint64_t Value;
};
struct MSRRW_t
{
DWORD Low;
DWORD Unknown;
DWORD Register;
DWORD High;
};
#define LAST_IND(x,part... |
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out %CPU_CHECK_PLACEHOLDER
// RUN: %GPU_RUN_PLACEHOLDER %t.out %GPU_CHECK_PLACEHOLDER
// XFAIL: level_zero
// UNSUPPORTED: cuda
// UNSUPPORTED: hip
#include <sycl/sycl.hpp>
using namespace sycl;
using accessorPixelT = ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.