text stringlengths 5.71k 33.7k |
|---|
// license:BSD-3-Clause
// copyright-holders:<NAME>, <NAME>
/*************************************************************************
Atari Tunnel Hunt hardware
*************************************************************************/
#include "emu.h"
#include "includes/tunhunt.h"
/**************************... |
// Copyright 2012 <NAME>, <NAME>, <NAME>, <NAME>, <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 ... |
/******************************************************************************
** Copyright (C) 1999 by CEA
*******************************************************************************
**
** UNIT
**
** Version: 1.0
**
** Author: <NAME>
**
** Date: 04/09/99
**
** File: mr3d_fil... |
#include "midiCCStepper.hpp"
//-------------------------------------------------------------------------------------------------------
AudioEffect* createEffectInstance (audioMasterCallback audioMaster) {
return new MidiCCStepper (audioMaster);
}
MidiCCStepperProgram::MidiCCStepperProgram ()
{
// default Program V... |
int dC,/*vi8e*/ lI4 ,
cB
, wsRV7 , q9 ,q ,
Ja3,sLGUX7, GR ,JeV,yuj
, pJ,Bzl//
,hCAfF ,oYc
,//Fr
rVa
, QCg ,F,
NG4D, R,
j,rU ,DgHl
,
ZT,E4Ne//K2
,
YXfD
//L
,
edH, JNX/*J*///j68
, yD, wN ,IaIj , rnu /*cq*/ ,dsn20,
bKn
,NkwCI; void f_f0()
{volatile int gTxz ,vZdL,Eldm,ojnVO,W5T//
; return ;{ volat... |
// license:BSD-3-Clause
// copyright-holders: <NAME>
/*********************************************************************
img_dsk.cpp
"IMG" disk format
This format is just a raw image of every sector on SSDD 8" floppy
disks as used in Intel MDS-II systems.
Files with this format have no header/... |
/**********************************************************************
Copyright 2020 Advanced Micro Devices, 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/L... |
/**
* UGENE - Integrated Bioinformatics Tools.
* Copyright (C) 2008-2012 UniPro <<EMAIL>>
* http://ugene.unipro.ru
*
* 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... |
#include <stdio.h>
#include <time.h>
#include <curses.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <pthread.h>
#include <gtk/gtk.h>
#define MAX_MESSAGES 100
#define MAX_MESSAGE_LE... |
//===--- ARCMT.cpp - Migration to ARC mode --------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#include "main.h"
const struct vehicle_entry *gta_vehicle_get_by_id(int id) {
id -= VEHICLE_LIST_ID_START;
if (id < 0 || id >= VEHICLE_LIST_SIZE)
return NULL;
return &vehicle_list[id];
}
/* IDs must be sequential */
struct vehicle_entry vehicle_list[VEHICLE_LIST_SIZE] =
{ // model_id, vehicle class, vehicle na... |
// Clang Build Analyzer https://github.com/aras-p/ClangBuildAnalyzer
// SPDX-License-Identifier: Unlicense
#ifdef _MSC_VER
struct IUnknown; // workaround for old Win SDK header failures when using /permissive-
#endif
#include "Analysis.h"
#include "Colors.h"
#include "Utils.h"
#include "external/llvm-Demangle/include... |
// AWSUtilTest.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include "../AWSUtil/Auth.h"
#include <ctime>
#include <iomanip>
#include <iostream>
#include <curl/curl.h>
#include <algorithm>
static size_t WriteMemoryCallback(void *contents, size_t size, size_t nmemb, void *userp)
{
... |
// Copyright 2018 The Clspv 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 by app... |
#include "config.hpp"
#include "field-math.hpp"
#include "gldraw.hpp"
#include "optimizer.hpp"
#include "parametrizer.hpp"
#ifdef WITH_CUDA
#include <cuda_runtime.h>
#endif
Parametrizer field, level1, level2, level3, level4;
void BuildPoolIndices(std::vector<std::pair<std::pair<int, double>, Eigen::Vector2d> >& grou... |
#include <SDL.h>
#include "SoundSystem.h"
#include "UtilityClass.h"
#include "Game.h"
#include "Graphics.h"
#include "KeyPoll.h"
#include "Render.h"
#include "Tower.h"
#include "WarpClass.h"
#include "Labclass.h"
#include "Finalclass.h"
#include "Map.h"
#include "Screen.h"
#include "Script.h"
#include "Logic.h"
#... |
//===- tools/dsymutil/MachODebugMapParser.cpp - Parse STABS debug maps ----===//
//
// The LLVM Linker
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------... |
#include <CL/cl.h>
#include <CL/cl_ext.h>
#include <iostream> // for standard I/O
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define STRING_BUFFER_LEN 1024
using namespace std;
const char *getErrorString(cl_int error);
unsigned char **read_file(const char *name);
// M, K and N must be ... |
/*=========================================================================
Copyright 2009 Rensselaer Polytechnic Institute
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/lice... |
/*
Copyright (c) 1999 - 2010, Vodafone Group Services Ltd
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list... |
#include "CXml.h"
#define WIDE 5000
int parseAttribute(string& attribute, string& attribute_name, string& attribute_content){
unsigned i=0;
while(attribute[i]!= '='){
if(i==attribute.length()) {
attribute_name.clear();
return false;
}
attribute_name += attribute[i];
i++;
}
if(attr... |
/*-
* Copyright 2005,2007,2009 <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 condi... |
/*
* Copyright 2020 The casbin 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 by applicabl... |
// Copyright (c) 2010 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 <algorithm>
#include "base/test/test_timeouts.h"
#include "media/base/mock_filter_host.h"
#include "media/base/mock_filters.h"
#include "net... |
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2019, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are m... |
// ImGui GLFW binding with OpenGL (legacy, fixed pipeline)
// (GLFW is a cross-platform general purpose library for handling windows, inputs, OpenGL/Vulkan graphics context creation, etc.)
// Implemented features:
// [X] User texture binding. Cast 'GLuint' OpenGL texture identifier as void*/ImTextureID. Read the FAQ ... |
//Team memebers - <NAME>, <NAME>, <NAME>
#include "Box3D.h"
GLBox3D::GLBox3D(float width, float height, float length, int rows, int cols ):
_width(width), _height(height), _length(length), _rows(rows), _cols(cols)
{
_center_x = 0.0;
_center_y = 0.0;
_center_z = 0.0;
_program = 0;
}
GL... |
/**************************************************************
*
* 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 "app_screen.h"
#include "esp32/rom/tjpgd.h"
#include <errno.h>
#include <sys/stat.h>
#include <string.h>
#include "esp_freertos_hooks.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_system.h"
#include "esp_log.h"
#include "lwip/sockets.h"
#include "board_def.h"
#define TAG "[Sc... |
/*
* Copyright (c) 2013, <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 a... |
/***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. Y... |
// ==========================================================================
// NGS: Regions of Interest Analysis
// ==========================================================================
// Copyright (c) 2012-2013, <NAME>, Institut Pasteur
// All rights reserved.
//
// Redistribution and use in ... |
/* Copyright 2018 The TensorFlow 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 by applicable law or agreed ... |
#if defined(_MSC_VER)
#pragma warning(disable:4091)
#endif
#include "foobar2000/SDK/foobar2000.h"
#include "foobar2000/helpers/helpers.h"
#include "libopenmpt.hpp"
#include <algorithm>
#include <locale>
#include <string>
#include <vector>
// Declaration of your component's version information
// Since foobar2000... |
//
// Created by kellerberrin on 5/5/20.
//
#include "kgl_analysis_interval.h"
#include "kgl_sequence_complexity.h"
#include "kgl_variant_factory_vcf_evidence_analysis.h"
#include "kgl_variant_filter.h"
#include <fstream>
namespace kgl = kellerberrin::genome;
///////////////////////////////////////////////////////... |
/*
* Copyright (c) 2012 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementation of the funct... |
// RUN: %clang_cc1 -std=c++11 -fsyntax-only -triple %itanium_abi_triple -verify -Wreinterpret-base-class -Wno-unused-volatile-lvalue %s
// RUN: %clang_cc1 -std=c++11 -fsyntax-only -triple %ms_abi_triple -DMSABI -verify -Wreinterpret-base-class -Wno-unused-volatile-lvalue %s
// RUN: not %clang_cc1 -std=c++11 -fsyntax-o... |
/**********************************************************************
* file: types.cc
* licence: Artistic Licence, see file LICENCE.TXT or
* http://www.opensource.org/licenses/artistic-license.php
* descr.:
* authors: <NAME> (<EMAIL>)
*
* date | author | changes
* --------|-------... |
#include <Mercury3D.h>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <Species/LinearViscoelasticSpecies.h>
#include "Species/LinearViscoelasticFrictionSpecies.h"
#include <Species/LinearViscoelasticSlidingFrictionSpecies.h>
#include <Walls/TriangleWall.h>
#include "Walls/TriangulatedWall.h"
#includ... |
/* This is empty for now. The old tracking.cpp node was built using
* a python code called "cod_edi.py". The new opentracking node will
* not do this and will be included in the src folder as a cpp file.
* This code will be written from scratch but use a similar structure
* to the tracking node built by cod_edi.py... |
// =================================================================================================
// Copyright Adobe
// Copyright 2004 Adobe
// All Rights Reserved
//
// NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the terms
// of the Adobe license agreement accompanying it. ... |
// 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
// list of conditions and the ... |
#include "NFS4PS1Loader.h"
#include "Texture.h"
constexpr float carScaleFactor = 1000.f;
std::shared_ptr<Car> NFS4PS1::LoadCar(const std::string &carVivPath)
{
std::filesystem::path p(carVivPath);
std::string vivName = p.filename().string();
std::string carName = vivName.substr(3, vivName.size() - 7);
... |
#include "glad\glad.h"
#include <GLFW\glfw3.h>
#include <array>
#include "GLM\glm.hpp"
#include "GLM\gtc\matrix_transform.hpp"
#include "GLM\gtc\type_ptr.hpp"
#include "GraphicUtils\Imgui\imgui.h"
#include "GraphicUtils\Imgui\imgui_impl_glfw.h"
#include "GraphicUtils\Imgui\imgui_impl_opengl3.h"
#include "GraphicUtil... |
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include "SceneManager.h"
#include "Scenes/Scenes.h"
#include <iostream>
#include <map>
#include <ft2build.h>
#include FT_FREETYPE_H
void framebuffer_size_callback(GLFWwindow* window,... |
/****************************************************************************
**
** Copyright (C) 2015 The Qt Company Ltd.
** Contact: http://www.qt.io/licensing/
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:LGPL21$
** Commercial License Usage
** Licensees holding valid commercia... |
#include <stdafx.h>
#include "Filters.h"
/* ------------------------------------------------------------------- */
inline double GetMedianPosition(std::vector<double> & vValues, double fValue)
{
double fResult = 0;
double fMedian;
double fdValue;
fMedian = Median(vValues);
fdValue = fValue-fMedian;
if (... |
#include "terrainlab/SplatPbrRenderer.h"
#include <heightfield/HeightField.h>
#include <unirender/ShaderProgram.h>
#include <unirender/Texture.h>
#include <shadertrans/ShaderTrans.h>
#include <renderpipeline/UniformNames.h>
#include <painting0/ShaderUniforms.h>
#include <painting0/ModelMatUpdater.h>
#include <painting... |
#include "plotter.hh"
#include "stats.hh"
#include "utils.hh"
#include <fstream>
#include <sstream>
bool plotter::graph(method * mtd, std::string name, std::vector<std::string> & fkeys, metric_type metric) {
// This method is used for the command line parameter GNUPLOT,
// so we do not need to draw any univariate_re... |
//===-------------------------------------------------------------------------------------------------------------===//
// src/CodeGen/CodeGenModule.cpp - Emit LLVM Code from ASTs for a Module
//
// Part of the Fly Project https://flylang.org
// Under the Apache License v2.0 see LICENSE for details.
// Thank you to LLV... |
/*
* <NAME>
* 11/25/14
* Final
* OCR Sudoku Solver
*/
#include <opencv/cv.h>
#include <opencv/highgui.h>
#include <iostream>
#include <cstdio>
#include <vector>
#include <map>
#include <cstdlib>
#include <math.h>
#include <utility>
#include <queue>
#include <climits>
#include <cfloat>
#define SUDOKU_IMAGE_IDX 1
... |
//
// Copyright 2016 Pixar
//
// Licensed under the Apache License, Version 2.0 (the "Apache License")
// with the following modification; you may not use this file except in
// compliance with the Apache License and the following modification to it:
// Section 6. Trademarks. is deleted and replaced with:
//
// 6. Trad... |
// *****************************************************************************
/*!
\file src/PDE/Integrate/Basis.cpp
\copyright 2012-2015 <NAME>,
2016-2018 Los Alamos National Security, LLC.,
2019 Triad National Security, LLC.
All rights reserved. See the LICENSE file f... |
// Shasta.
#include "Assembler.hpp"
#include "OldFastaReadLoader.hpp"
#include "ReadLoader.hpp"
using namespace shasta;
// Standard libraries.
#include "iterator.hpp"
void Assembler::checkReadsAreOpen() const
{
if(!reads.isOpen()) {
throw runtime_error("Reads are not accessible.");
}
if(!readRep... |
#include "../include/entities/Fonts.h"
#include "../include/gladHelper.h"
#include <ft2build.h>
#include FT_FREETYPE_H
#include <map>
#include <filesystem>
#include <iostream>
extern int WINDOW_WIDTH;
extern int WINDOW_HEIGHT;
// Store the relevant information for the font Face
struct CachedFace
{
std::string na... |
#include "MSSM_two_scale_model.hpp"
#include "ew_input.hpp"
#include "logger.hpp"
#include "wrappers.hpp"
#include "../../../Spectrum.hpp"
#include "MSSMSpectrum.hpp"
using namespace flexiblesusy;
void setup(MSSM<Two_scale>& mssm)
{
Eigen::Matrix<double,3,3> Yu;
Eigen::Matrix<double,3,3> Yd;
Eigen::Matrix<d... |
#include <victim_localization/volumetric_map_manager.h>
#include <string.h>
Volumetric_Map::Volumetric_Map(volumetric_mapping::OctomapManager *manager):
m_octree(NULL),
m_gridmap(&gridMap),
m_worldFrameId("/world"), m_baseFrameId("/base"),
m_minSizeX(0.0), m_minSizeY(0.0) , accept_pointCloud(true), stop(false... |
#include "vx_utils.h"
#include <iostream>
#include <fstream>
#include <cstring>
#include <vortex.h>
#include <VX_config.h>
#include <assert.h>
uint64_t aligned_size(uint64_t size, uint64_t alignment) {
assert(0 == (alignment & (alignment - 1)));
return (size + alignment - 1) & ~(alignment - 1);
}
bool... |
/**************************************************************************
***
*** Copyright (c) 1995-2000 Regents of the University of California,
*** <NAME>, <NAME> and <NAME>
*** Copyright (c) 2000-2007 Regents of the University of Michigan,
*** <NAME>, <NAME>, <NAME> and
*** ... |
/* Copyright 2019 Stanford 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 agree... |
/*
* Minion http://minion.sourceforge.net
* Copyright (C) 2006-09
*
* 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.
*
* ... |
//####### Test module for picsar_tables ####################################
//Define Module name
#define BOOST_TEST_MODULE "containers/picsar_tables"
//Include Boost unit tests library & library for floating point comparison
#include <boost/test/unit_test.hpp>
#include <boost/test/tools/floating_point_comparison.hp... |
/*
Simbicon 1.5 Controller Editor Framework,
Copyright 2009 <NAME>, <NAME> and <NAME>.
All rights reserved. Web: www.cs.ubc.ca/~van/simbicon_cef
This file is part of the Simbicon 1.5 Controller Editor Framework.
Simbicon 1.5 Controller Editor Framework is free software: you can
redistribute it and/or modify
... |
/*
Copyright(c) 2020 <NAME>
SPDX-License-Identifier: Apache-2.0
*/
#include "Platform.h"
#include "Hap/Hap.h"
#include "Crypto/Crypto.h"
#include "Crypto/MD.h"
#include "CryptoTest/CryptoTest.h"
#include "Srp.h"
#include "Util/FileConfig.h"
#define ACCESSORY_NAME "WinTest"
#define CONFIG_NAME "WinTest.cfg"
#defin... |
/** @defgroup MleParts Magic Lantern Parts */
/**
* @file CubeDragger.cxx
* @ingroup MlParts
*
* @author <NAME>
*
* The CubeDragger is a translation-only version of the
* SoTransformerDragger. It has the same look and feel as that dragger if you
* forget about all the rotation and scale stuff.
*/
// COPYRIGH... |
//
// FunctionDispatcher.cpp
// MNN
//
// Created by MNN on 2019/08/25.
// Copyright © 2018, Alibaba Group Holding Limited
//
#include <limits>
#include "avx/FunctionSummary.hpp"
#include "backend/cpu/compute/CommonOptFunction.h"
#include "backend/cpu/compute/ConvOpt.h"
#include "backend/cpu/compute/Int8FunctionsO... |
//------------------------------------------------------------------------------
//
// File : platform.cpp
// Description : Abstract base class for Console, Timer
// License : Apache License v2.0 - see LICENSE.txt for more details
// Created : 05/03/2019
//
// (C) 2005-2020 <NAME>
// <EMAIL>
// http://de... |
/* crypto/bn/bn_prime.c */
/* Copyright (C) 1995-1998 <NAME> (<EMAIL>)
* All rights reserved.
*
* This package is an SSL implementation written
* by <NAME> (<EMAIL>).
* The implementation was written so as to conform with Netscapes SSL.
*
* This library is free for commercial and non-commercial use as long as
... |
#include "mex.h"
#include <math.h>
/* give a point and a quadrangle, find whether it is inside the quadrangle*/
bool JudgeInsideQuad( double px1, double py1, double px2, double py2, double px3, double py3, double px4, double py4, double px, double py)
{
double Denominator1=0, Denominator2=0;
double Numerator1=... |
#include <iostream>
#include <set>
#include <chrono>
#include <cstdio>
#include <cstdlib>
#include <so_5/all.hpp>
#include <test/3rd_party/various_helpers/cmd_line_args_helpers.hpp>
#include <test/3rd_party/various_helpers/benchmark_helpers.hpp>
using namespace std::chrono;
enum class dispatcher_type_t
{
one_thre... |
#include <iostream>
#include <stdexcept>
#include <utility>
#include <cmath>
#include <algorithm>
#include <map>
#include <memory>
#include <vector>
typedef std::pair<double,double> Tacka;
const double eps(1E-10);
class Trougao{
Tacka t1,t2,t3;
static double DajOrijentaciju(Tacka t1,Tacka t2,Tacka t... |
#include <Arduino.h>
#include <ScoutHandler.h>
#include <Shell.h>
#include <Scout.h>
#include "backpack-bus/PBBP.h"
#include "backpacks/wifi/WiFiBackpack.h"
#include "util/StringBuffer.h"
#include "util/String.h"
#include "util/PrintToString.h"
extern "C" {
#include <js0n.h>
#include <j0g.h>
#include "key/key.h"
#inclu... |
#include "mapblock.h"
#include "map.h"
bool MapBlock::isValidPositionParent(v3s16 p)
{
if(isValidPosition(p))
{
//std::cout<<"[("<<p.X<<","<<p.Y<<","<<p.Z<<") valid pos. in block]"<<std::endl;
return true;
}
else{
//std::cout<<"[("<<p.X<<","<<p.Y<<","<<p.Z<<") not valid pos. in block]"<<std::endl;
return m... |
/***************************************************************************
# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.
#
# NVIDIA CORPORATION and its licensors retain all intellectual property
# and proprietary rights in and to this software, related documentation
# and any modifications... |
// Copyright 2009, 2010, 2011, 2012 <NAME> <<EMAIL>>
//
// This file is part of HOMER
//
// HOMER 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... |
/**************************************************************
*
* 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 "Mesh.h"
#include "Matrix2.h"
using std::string;
bool Mesh::isWireFrame = false;
Mesh::Mesh(void) {
glGenVertexArrays(1, &arrayObject);
for (int i = 0; i < MAX_BUFFER; ++i) {
bufferObject[i] = 0;
}
numVertices = 0;
type = GL_TRIANGLES;
numIndices = 0;
vertices = nullptr;
textureCoords = nullptr... |
//
// Created by 菊池和気 on 2016/05/12.
//
#include <iostream>
#include <vector>
#include <string>
#include <memory>
#include <fstream>
#include <sstream>
#include <iomanip>
#include <cmath>
// Include GLEW
#ifdef __APPLE__ //For OSX
#include <gl/glew.h>
#define _CRT_SECURE_NO_WARNINGS
#define GL_GLEXT_PROTOTYPES
#en... |
#include <ads1292r/ads1292r.h>
#include <SPI.h>
ads1292r ADS1292; // define class
/************************************************************************************/
//Packet format
#define CES_CMDIF_PKT_START_1 0x0A
#define CES_CMDIF_PKT_START_2 0xFA
#define CES_CMDIF_TYPE_DATA 0x02
#define CES_CMDIF_PKT_STOP 0x0B... |
#include "sys.h"
#include "util.h"
#include <assimp/Importer.hpp>
#include <assimp/scene.h>
#include <assimp/postprocess.h>
#include <IL\il.h>
#define abs(x) ((x)<0 ? -(x):(x))
Mesh::Mesh() {
memcpy(current_matrix, glm::value_ptr(glm::mat4(1.0f)), sizeof(current_matrix));
}
void Mesh::init(std::string path, bool is... |
#include "layer_bank.h"
using namespace std;
// kernel
convolutional_kernel::convolutional_kernel(){}
convolutional_kernel::~convolutional_kernel(){
// w.release();
// wgrad.release();
// wd2.release();
}
void convolutional_kernel::init_config(int width, double weightDecay){
kernel_size = width;
wei... |
#include "ukf.h"
#include "Eigen/Dense"
#include <iostream>
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
/**
* Initializes Unscented Kalman filter
* This is scaffolding, do not modify
*/
UKF::UKF() {
// if this is false, laser measurements will be ignored (except during i... |
//===--- TokenLexer.cpp - Lex from a token stream -------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#include "kinfu_viz_tools.h"
#include "kinfu_tools.h"
using namespace pcl;
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////
namespace kinfu_viz
{
vector<string> getPcdFilesInDir(const string& directory)
{
namespace fs = boost::filesystem... |
/***************************************************************************
*
* 25.min.max.cpp - test exercising 25.3.7 [lib.alg.min.max]
*
* $Id$
*
***************************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor... |
/*Header-MicMac-eLiSe-25/06/2007
MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation
eLiSe : ELements of an Image Software Environnement
www.micmac.ign.fr
Copyright : Institut Geographique National
Author : <NAME>
Contributors : <NAME>, <NAME>.
[1] <NAME>, <NAM... |
/** @file
* Simulates adiabatic 3SAT solver
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <omp.h>
#include <time.h>
#include <sys/types.h> // needed on ARC to find ssize_t
#include <string.h>
#include "3SATGenerator.h" // new SATs aren't generated here though
# include "../../../QuEST_G... |
// Copyright 2009 by BBN Technologies Corp.
// All Rights Reserved.
#include "Generic/common/leak_detection.h" // This must be the first #include
#include "Generic/results/MTResultCollector.h"
#include "Generic/theories/DocTheory.h"
#include "Generic/common/limits.h"
#include "Generic/common/InputStream.h"
#... |
//
// xpmenu.cpp
//
// (C) Copyright 2002-2004 <NAME>.
// All Rights Reserved.
//
#include "xpmenu.h"
#include "../gdi/selector.h"
#include "../gdi/windowdc.h"
#include "../tools/all.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
// Render radioitem bullet.
voi... |
//#include <QCoreApplication>
#include <QDebug>
#include <QVector>
#include <QPointF>
#include <math.h>
#include "../../application/logic/toolbox/toolbox_math_geometry.h"
#include "../../application/logic/model/core/S_Segment.h"
#include "ImathVec.h"
using namespace IMATH_INTERNAL_NAMESPACE;
int test_relocation()... |
/* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
*... |
#include "replacer.h"
#include <stdlib.h>
#include <string.h>
ReplacerBase::ReplacerBase(unsigned int maxLen) {
m_maxLen = maxLen;
m_output = NULL;
m_start = (char*)malloc(m_maxLen * sizeof(char));
m_middle = (char*)malloc(m_maxLen * sizeof(char));
m_end = (char*)malloc(m_maxLen * sizeof(char));
... |
/*
---------------------------------------------------------------------------
Open Asset Import Library (ASSIMP)
---------------------------------------------------------------------------
Copyright (c) 2006-2010, ASSIMP Development Team
All rights reserved.
Redistribution and use of this software in source and bin... |
/*
* Copyright (c) 2015, msyksphinz
* 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 ... |
#include <algorithm>
#include <cassert>
#include <cmath>
#include <complex>
#include <cstdio>
#include <ctime>
#include <fstream>
#include <iostream>
#include <random>
#include <sstream>
#include <string>
#include <vector>
#include <gtest/gtest.h>
// isce3::core
#include <isce3/core/Interp1d.h>
#include <isce3/core/K... |
/*****************************************************************************
*
* $Id$
*
* Copyright (C) 2006-2009 <NAME>, Ingenieurgemeinschaft IgH
*
* This file is part of the IgH EtherCAT Master.
*
* The IgH EtherCAT Master is free software; you can redistribute it and/or
* modify it under the terms ... |
#include <GL/gl.h>
#include <iostream>
#include <math.h>
#include <memory.h>
#include <stdio.h>
#include <stdlib.h>
#include "ZPR.h"
//#include "OGLWrapper.h"
ZPR::ZPR()
{
m_left = 0.0;
m_right = 0.0;
m_bottom = 0.0;
m_top = 0.0;
m_znear = -10.0;
m_zfar = 10.0;
m_mouse_x = 0;
m_mouse_y... |
#include <rabbitxx/experiment.hpp>
#include <rapidjson/writer.h>
#include <rapidjson/stringbuffer.h>
#include <rapidjson/ostreamwrapper.h>
#include <boost/program_options.hpp>
/**
* Module to serialize sets to csv
* This module prints all io events within a set into csv.
*
* TODO
* * options have different leng... |
#include "WProgram.h"
#include "MD.h"
#include "helpers.h"
#include "MidiUartParent.hh"
uint8_t machinedrum_sysex_hdr[5] = {
0x00,
0x20,
0x3c,
0x02,
0x00
};
uint8_t MDClass::noteToTrack(uint8_t pitch) {
uint8_t i;
if (MD.loadedGlobal) {
for (i = 0; i < sizeof(MD.global.drumMapping); i++) {
i... |
//////////////////////////////////////////////////////////////////////
// VCR.cpp
// (c) 2010-2018 <NAME>
//
// This file is distributed as part of the KING source code package
// and may not be redistributed in any form, without prior written
// permission from the author. Permission is granted for you to
// modify ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.