text stringlengths 8.71k 38.4k |
|---|
/* Digger Remastered
Copyright (c) <NAME> 1998-2004 */
#include "def.h"
#include "sprite.h"
#include "input.h"
#include "hardware.h"
#include "digger.h"
#include "drawing.h"
#include "main.h"
#include "sound.h"
#include "monster.h"
#include "scores.h"
#include "bags.h"
#ifdef _WINDOWS
#include "win_dig.h"
#endif
... |
/******************************************************************************
*
* Project: ADAGUC Server
* Purpose: ADAGUC OGC Server
* Author: <NAME>, plieger "at" knmi.nl
* Date: 2013-06-01
*
******************************************************************************
*
* Copyright 2013, Royal Ne... |
#include "base/glfw_base.h"
#include <iostream>
#include "common/camera.h"
#include "common/shader.h"
#include "common/texture.h"
// settings
const unsigned int SCR_WIDTH = 800;
const unsigned int SCR_HEIGHT = 600;
class GlfwBaseCallbackImpl : public GlfwBaseCallback {
public:
GlfwBaseCallbackImpl() {
}
boo... |
/* FILE: chunkenergy.cc -*-Mode: c++-*-
*
* Abstract chunk energy class, derived from Oxs_Energy class. This
* file also contains the implementation of the Oxs_ComputeEnergies()
* friend function.
*/
#include <assert.h>
#include <string>
#include "chunkenergy.h"
#include "energy.h"
#include "mes... |
/*
* Copyright 2009-2021 The VOTCA Development Team (http://www.votca.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/licenses/LICENSE-2.0
*
* Unle... |
#include "stdafx.h"
#include "fbxtool.h"
#include <cstdio>
#include <stdlib.h>
#include <fbxsdk.h>
#include <map>
#include <iostream>
#include <fstream>
#include "rapidjson/document.h"
#include "rapidjson/prettywriter.h"
#include "Common.h"
#include "DisplayCommon.h"
#include "GeometryUtility.h"
#include "clara.hpp"
... |
#ifdef CH_LANG_CC
/*
* _______ __
* / ___/ / ___ __ _ / / ___
* / /__/ _ \/ _ \/ V \/ _ \/ _ \
* \___/_//_/\___/_/_/_/_.__/\___/
* Please refer to Copyright.txt, in Chombo's root directory.
*/
#endif
// dtgraves Tues Nov 20 2001
#include "BaseIVFactory.H"
#include "EBIndexSpa... |
/// @file
/// @brief Defines scancode maps for PS/2 keyboards.
#include "devices/generic/gen_keyboard.h"
// Don't attempt to document all of these!
/// @cond
// The normal scan codes are those not prefixed by 0xE0. "Special" scan codes are those prefixed by 0xE0.
extern const KEYS ps2_set_2_norm_scancode_map[256];
e... |
#include "node_genetics.hh"
#include "sorter_container.hh"
#include "util.hh"
#include <iostream>
#include <algorithm>
#include <SFML/Graphics.hpp> //TEMP
/* NodeGeneticNeuralNetwork - public member functions */
NodeGeneticNeuralNetwork::NodeGeneticNeuralNetwork(double learningRate_, double momentum_) :
Exte... |
#include "ndt_feature_finder/ndt_corner.hpp"
std::vector< perception_oru::ndt_feature_finder::NDTCornerBundle > perception_oru::ndt_feature_finder::NDTCorner::getAllCorners(const perception_oru::NDTMap& map, const Eigen::Vector3d& robot_pose)
{
auto corners_temp = getAllCorners(map);
std::vector< NDTCornerBundle >... |
#include <boost/format.hpp>
#include "stdhdrs.h"
#include "Log.h"
#include "NPCProto.h"
#include "Server.h"
#include "../ShareLib/DBCmd.h"
#ifdef PREMIUM_CHAR
#include "../ShareLib/packetType/ptype_premium_char.h"
#endif
///////////////////
// ANPCPtoro member
CNPCProto::CNPCProto()
: m_name(MAX_CHAR_NAME_LENGTH +... |
//-*-c++-*-
/**************************************************************************/
/**
** @file tLithologyManager.cpp
**
** @brief Implementation of the tLithologyManager class.
**
** For information regarding this program, please contact <NAME> at:
**
** Cooperative Institute for Research in Envir... |
/**
* @file SolidAttribToVolume.cpp
* Solid attrib データからVolumeDataへ変換するモジュール
*/
#include "SolidAttribToVolume.h"
#include "../Core/vxmath.h"
#include <string.h>
#include <algorithm>
#include <string>
#include <cfloat>
namespace {
/**
* BoundingBox[BB]中のpointデータのオフセットを求める
* @param x X座標
* @pa... |
/**
* Copyright (c) 2019, Horizon Robotics, Inc.
* All rights reserved.
* @Author:
* @Mail: @horizon.ai
*/
#include "rtspclient/rtspclient.h"
#include "hobotlog/hobotlog.hpp"
#include "mediapipemanager/mediapipemanager.h"
#include "rtspclient/AudioG711Sink.h"
#include "rtspclient/H264Sink.h"
#include "rtspclient/... |
//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
// File Joiner utility.
//
// module: fj.cpp
// $Revision: 88 $
// $Date: 2012-08-14 19:07:32 +0400 (Вт, 14 авг 2012) $
// description:
// Main module.
// Allows to attach multiple files to... |
/**
* @file main.cpp
* @author <NAME>, <NAME>
* @brief The main cpp file for our final_project node for the ENPM809Y Final Project
* @version 0.1
* @date 2021-12-15
*
* @copyright Copyright (c) 2021
*
*/
#include <actionlib/client/simple_action_client.h>
#include <fiducial_msgs/FiducialTransformArray.h>
#in... |
/* NAME:
E3Errors.c
DESCRIPTION:
Implementation of Quesa API calls.
COPYRIGHT:
Copyright (c) 1999-2007, Quesa Developers. All rights reserved.
For the current release of Quesa, please see:
<https://github.com/jwwalker/Quesa>
Redistribution and us... |
#include "PBDConstraints.h"
#include <PositionBasedDynamics/PositionBasedDynamics.h>
#include <Simulation/IDFactory.h>
#include <Simulation/SimulationModel.h>
#include "../utils/debug_logging.h"
using namespace PBD;
const Real eps = static_cast<Real>(1e-6);
/*
int UVFEMTriangleConstraint::TYPE_ID = IDFactory::getI... |
/*
* Authors:
* <NAME> <<EMAIL>>
*
* This file includes the main function
* The code here parses the command line arguments, and sets up the problem for the layout solver
* and invokes Gecode Search engines to solve the defined problem
*/
#include "layout-solver.h"
#include "optionparser.h"
#include <iostream> ... |
/*
WorldServer.cpp
This object is used to route verbs for one or more clients
(c)1999 Palestar Development, <NAME>
*/
#include "Debug/Assert.h"
#include "Standard/Timer.h"
#include "Standard/SortedArray.h"
#include "Standard/Time.h"
#include "Resource/Resource.h"
#include "Factory/WidgetWrap.h"
#include "Network/... |
// 6502Emu.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include <stdio.h>
#include "6502.h"
typedef unsigned char byte;
typedef unsigned short ushort;
byte mem[65536];
long cycles, lastPage, t1, t2, t3;
typedef struct {
byte a, x, y, p;
byte sp;
... |
/* COPYRIGHT (c) 2014 <NAME>, <NAME>, and <NAME>
* All rights reserved.
*
* \file tests.cpp
*
*/
#include <fstream>
#include "graphgenerators.hpp"
#include "graphconversions.hpp"
#include "ls_bag.hpp"
#include "frontierseg.hpp"
#include "bfs.hpp"
#include "dfs.hpp"
#include "benchmark.hpp"
#include "edgelist.hpp"... |
#include <FishEngine/ClassID.hpp>
#include <map>
static std::map<int, std::string> ClassIDToClassName {
{ 1, "GameObject" },
{ 2, "Component" },
{ 3, "LevelGameManager" },
{ 4, "Transform" },
{ 5, "TimeManager" },
{ 6, "GlobalGameManager" },
{ 8, "Behaviour" },
{ 9, "GameManager" },
{ 11, "AudioManager" },
{... |
/* Copyright (C) 2013 Ion Torrent Systems, Inc. All Rights Reserved */
#include "SpliceVariantHypotheses.h"
#include "StackEngine.h"
bool SpliceVariantHypotheses(const Alignment ¤t_read, const EnsembleEval &my_ensemble,
const LocalReferenceContext &local_context, PersistingThreadObject... |
#include <stdio.h>
#include <ctype.h>
#include <unistd.h>
#include <raimd/md_dict.h>
#include <raimd/hash32.h>
using namespace rai;
using namespace md;
/* crc_c */
uint32_t
MDDict::dict_hash( const void *key, size_t len, uint32_t seed ) noexcept
{
return hash32( key, len, seed );
}
uint32_t
MDDictIdx::file_linen... |
/**
* Copyright (C) 2021 Lachesis <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DI... |
#include "gtest/gtest.h"
#include "../src/transformer.h"
using namespace std;
using namespace lh;
float query_kernel[36] = {-0.07848196, -0.18097023, 0.06933199, -0.07760319, 0.11389876, 0.05236414,
-0.02015782, 0.00233333, -0.00281469, -0.01525305, 0.17362033, -0.01600084,
... |
// Copyright (c) 2012 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 "net/socket/ssl_server_socket_openssl.h"
#include <openssl/err.h>
#include <openssl/ssl.h>
#include "base/callback_helpers.h"
#include "bas... |
#include "MainWindow.h"
#include <lua.hpp>
#include <LuaBridge/LuaBridge.h>
#include <functional>
#include <QtWidgets/QFileDialog>
#include <fstream>
#include <sstream>
#include <windows.h>
#include <QtWidgets/QTreeWidgetItem>
#include <qdir.h>
#include <qmessagebox.h>
#include <qdesktopservices.h>
#include "Tool.h"
#i... |
/*
* Copyright (c) 2020-2021 Samsung Electronics Co., Ltd. All rights reserved.
* 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 rig... |
/*
* Adplug - Replayer for many OPL2/OPL3 audio file formats.
* Copyright (C) 1999 - 2008 <NAME> <<EMAIL>>, et al.
*
* 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 by the Free Software Foundation; either
* versi... |
/*
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 you under the Apache License, Version 2.0 (the
"License"); you may no... |
//============================================================================
// Name :
// Author : Avi
// Revision : $Revision: #127 $
//
// Copyright 2009-2020 ECMWF.
// This software is licensed under the terms of the Apache Licence version 2.0
// which can be obtained at http://www.apache.org/lice... |
/*
* Copyright (c) 2007-2008 by <NAME>
* Heavily based on the original usb_serial driver which is:
*
* Copyright (c) 2003 by <NAME> <<EMAIL>>
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME>, <EMAIL>
*/
#include <new>
#include "SerialDevice.h"
#include "USB3.h"
#include "ACM.h"
#inc... |
/*
This file is part of Bohrium and copyright (c) 2012 the Bohrium
team <http://www.bh107.org>.
Bohrium is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3
of the License, or (at your option) ... |
/*
* advanced_dialog.cpp
* PHD Guiding
*
* Created by <NAME>.
* Copyright (c) 2006-2010 <NAME>.
* All rights reserved.
*
* This source code is distributed under the following "BSD" license
* Redistribution and use in source and binary forms, with or without
* modification, are permitted prov... |
#include <pybind11/pybind11.h>
#include <pybind11_generics/iterator.h>
#include <pybind11_generics/optional.h>
#include <pybind11_generics/tuple.h>
#include <cbag/common/transformation.h>
#include <cbag/layout/flip_parity.h>
#include <cbag/layout/grid_object.h>
#include <cbag/layout/routing_grid.h>
#include <cbag/lay... |
#include "util/assert.h"
#include "util/int_size.h"
#include "x86/backend.h"
#include "x86/builder.h"
using namespace x86::builder;
static constexpr int volatile_register[] = {0, 1, 2, 6, 7, 8, 9, 10, 11};
// Get the index of the register. AH/CH/DH/BH are not considered here as they will never appear in our generate... |
/* Copyright (c) 2018 PaddlePaddle Authors. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by ... |
#include <vlog/inmemory/inmemorytable.h>
#include <vlog/fcinttable.h>
#include <vlog/support.h>
#include <kognac/utils.h>
#include <kognac/filereader.h>
#include <zstr/zstr.hpp>
void dump() {
}
std::vector<std::string> readRow(istream &ifs) {
char buffer[65536];
bool insideEscaped = false;
char *p = &bu... |
//#include <stdio.h>
//#include <GLES2/gl2.h>
#include <string>
#include <iostream>
#include <fstream>
#include "md5.h"
#include "SDL.h"
#include "SDL_ttf.h"
#include "SDL_image.h"
#include "PDL.h"
using namespace std;
extern "C" {
#include "coremark.h"
#include "curl.h"
}
int request (char* hostname, char* api, c... |
/**
* \file DlgWznmPrjNew.cpp
* job handler for job DlgWznmPrjNew (implementation)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author <NAME> (auto-generation)
* \date created: 28 Nov 2020
*/
// IP header --- ABOVE
#ifdef WZNMCMBD
#include <Wznmcmbd.h>
#else
#include <Wznmd.h>
#endif
#include "DlgWznm... |
#include <iostream>
#include <string>
#include <Ogre.h>
#include <OgreApplicationContext.h>
#include <OgreCameraMan.h>
#include <boost/uuid/uuid.hpp>
#include <boost/uuid/uuid_generators.hpp>
#include <boost/uuid/random_generator.hpp>
#include <boost/uuid/uuid_io.hpp>
#include "util.h"
#include "axes_helper_factory.h... |
// -*- indent-tabs-mode: nil -*-
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <string>
#include <list>
#include <unistd.h>
#include <sys/types.h>
#include <signal.h>
#include <arc/ArcLocation.h>
#include <arc/GUID.h>
#include <arc/Logger.h>
#include <arc/StringConv.h>
#include <arc/URL.h>
#include <arc/... |
#include "stdafx.h"
// Include
#include "MapTile.h"
#include "Map.h"
// General
#include "MapChunk.h"
// Additional
#include "MapHelpers.h"
#include "MapChunkLiquid.h"
#include "MapChunkMaterial.h"
#include "Liquid/LiquidBaseInstance.h"
namespace
{
inline uint8 lerpUInt8(uint8 a, uint8 b, uint8 f)
{
const float... |
char TableName[][33]=
{
{"Entry Point Structure"}, //-1
{"BIOS Information"}, //0
{"System Information"},
{"Base Board Information"},
{"System Enclosure or Chassis"},
{"Processor Information"},
{"Memory Controller Information"},
{"Memory Module Information"},
{"Cache Information"},
{"Port Connector... |
#include <AK/StringBuilder.h>
#include <LibELF/ELFDynamicObject.h>
#include <assert.h>
#include <mman.h>
#include <stdio.h>
#include <stdlib.h>
#define DYNAMIC_LOAD_DEBUG
//#define DYNAMIC_LOAD_VERBOSE
#ifdef DYNAMIC_LOAD_VERBOSE
# define VERBOSE(fmt, ...) dbgprintf(fmt, ##__VA_ARGS__)
#else
# define VERBOSE(f... |
/*
Copyright (C) 2009 <NAME>
<EMAIL>
*/
#include "ts.h"
// TODO: join TS
// 1) M2TS timecode (0-1073741823)
/*
The extra 4-byte header is composed of two fields. The upper 2 bits are the copy_permission_indicator and the lower 30 bits are the arrival_time_stamp. The arrival_time_stamp is equal to the lower 30 ... |
/*
* Copyright 2020 VDO Dev Inc <<EMAIL>>
*
* 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 la... |
/*
Copyright (c) 2011, 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 cer... |
//
// C++ Implementation: stereomatch
//
// Description: eliminate the false matches with epipolar geometry constraint.
// See http://www.math-info.univ-paris5.fr/~moisan/epipolar/
//
// Copyright (c) 2007 <NAME> <<EMAIL>>
// Changelog : 2011 Use Eigen SVD <Pierre Moulon>
//
// Copyright: See COPYING file th... |
#include <resources/Font.h>
#include <vector>
#include <Renderer.h>
#include <utils/Log.h>
#include <resources/ResourceManager.h>
#include <themes/ThemeElement.h>
#include <utils/math/Misc.h>
FT_Library Font::sLibrary = nullptr;
int Font::getSize() const { return mSize; }
std::map< std::pair<Path, int>, std::weak_pt... |
///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) DreamWorks Animation LLC
//
// All rights reserved. This software is distributed under the
// Mozilla Public License 2.0 ( http://www.mozilla.org/MPL/2.0/ )
//
// Redistributions of source code must retain the above copyrigh... |
#include <memory>
#include <random>
#include <algorithm>
#include <iostream>
#include <unordered_set>
#include <unordered_map>
#include <functional>
#include <core/utils/memory>
#include <core/utils/io>
#include <GL/error.h>
#include "InvocationChecker.h"
extern const char invocation_counter_... |
#define _CRT_SECURE_NO_WARNINGS
#include <Windows.h>
#include <stdio.h>
#include <subauth.h>
#include <bcrypt.h>
#include <ntstatus.h>
#include <fstream>
#include "pMemDump.h"
#include <iostream>
#include <string>
#pragma warning(disable:4996)
ULONGLONG max_physical_memory = 0;
ULONGLONG start = 0;
ULONGLONG end = 0;... |
#include "assignment2_modified.hpp"
#include "interpolation_modified.hpp"
#include "parametric_shapes_modified.hpp"
#include "config.hpp"
#include "core/Bonobo.h"
#include "core/FPSCamera.h"
#include "core/Log.h"
#include "core/LogView.h"
#include "core/Misc.h"
#include "core/node.hpp"
#include "core/ShaderProgramMana... |
// TriangleMesh.cpp: implementation of the TriangleMesh class.
//
//////////////////////////////////////////////////////////////////////
#include "TriangleMesh.h"
#include "LinearAlgebra.h"
#include <fstream>
using namespace rmsmesh;
// [RMS] need to export stl vector template instantiations
//template ... |
#include <algorithm>
#include <iostream>
#include <vector>
#ifdef __APPLE__
# define __gl_h_
# define GL_DO_NOT_WARN_IF_MULTI_GL_VERSION_HEADERS_INCLUDED
# define GLFW_INCLUDE_GLCOREARB
#endif
#define GLM_ENABLE_EXPERIMENTAL
#include <glm/gtx/norm.hpp>
#include <imgui.h>
#include <imgui_impl_glfw.h>
#include <imgui_... |
#include <string>
#include <iostream>
#include <curl/curl.h>
#include <fstream>
#include <vector>
#include <cstring>
#include <boost/filesystem.hpp>
#include <filesystem>
#include <boost/crc.hpp>
#include <istream>
#include <chrono>
#include <ctime>
#include <cstdio>
#include <iomanip>
// function inserting the entri... |
// Copyright 2020 Makani Technologies LLC
//
// 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 ... |
#include <stdafx.h>
#include "systemGenerator.h"
#include "file/g3dFileLoader.h"
#include "gravityEngine/gravityEngine.h"
CSystemGenerator::CSystemGenerator()
{
srand( GetCurrentTime( ) );
}
CSystemGenerator::~CSystemGenerator()
{
}
#define STANDARD_DENSITY 10000.0
void
CSystemGenerator::generateRandomSystem(... |
/*
* Copyright (C) 2019 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... |
#include "engaging.h"
#include <fstream>
#include <cstdlib> // For srand() and rand()
#include <Eigen/SVD>
#include <RobotUtilities/utilities.h>
#include <RobotUtilities/TimerLinux.h>
#include <solvehfvc.h>
#define PI 3.14159265
using namespace RUT;
using std::cout;
using std::cerr;
using std::endl;
using std::st... |
/// Example of using OctNet for denoising using a single convolutional layer
/// as auto-encoder.
///
/// @author <NAME>
/// @file 3d_auto_encoder.cpp
#define N_THREADS 4
#include <cstdlib>
#include <iostream>
#include <vector>
#include <cassert>
#include <cmath>
#include "octnet/core/types.h"
#include "octnet/core/c... |
#include "keymapping.h"
#include <map>
#include <rfb/keysym.h>
#define USB_HID_KEY_MOD_LCTRL 0x01
#define USB_HID_KEY_MOD_LSHIFT 0x02
#define USB_HID_KEY_MOD_LALT 0x04
#define USB_HID_KEY_MOD_LMETA 0x08
#define USB_HID_KEY_MOD_RCTRL 0x10
#define USB_HID_KEY_MOD_RSHIFT 0x20
#define USB_HID_KEY_MOD_RALT 0x40
#define USB... |
// -*-Mode: C++;-*-
//*BeginLicense**************************************************************
//
//---------------------------------------------------------------------------
// TAZeR (github.com/pnnl/tazer/)
//---------------------------------------------------------------------------
//
// Copyright ((c)) 2019, ... |
/*
MIT License
Copyright (c) 2020 <NAME> & <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish... |
#include<iostream>
#include<glad/glad.h>
#include<GLFW/glfw3.h>
#include<glm/glm.hpp>
#include<glm/gtc/matrix_transform.hpp>
#include<glm/gtc/type_ptr.hpp>
#include "imgui.h"
#include "imgui_impl_glfw.h"
#include "imgui_impl_opengl3.h"
#include "Model.h"
#include "Shader.h"
#include "Camera.h"
#include "stb_image.... |
//===- CodeGenInstruction.cpp - CodeGen Instruction Class Wrapper ---------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
//===-- ValueObjectPrinter.cpp --------------------------------------------===//
//
// 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 "stdafx.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "reltoabs.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#define new DEBUG_NEW
#endif
#define False 0
#define True 1
typedef struct
{
char scheme[ 32 ];
BOOL isSite;
char site[ 128 ];
char path[ 256 ... |
// THIS IS A RAW SPARSELIZARD CODE FILE!
// VALIDATED CODE BUT NOT CLEANED
// PLEASE REFER TO OTHER EXAMPLES FOR A SMOOTH SPARSELIZARD INTRODUCTION
// CREDITS: <NAME>
// Time simulation of a thermaoacoustic wave propagation
// Cylindrical wave created by a volumic heat source ( models laser beam)
// Thermovis... |
/*
* Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
#include "objects/font/font.h"
#include "modules/font/fontmodule.h"
#include "modules/graphics/graphics.h"
#include "common/matrix.h"
#include "deko3d/graphics.h"
#include "deko3d/deko.h"
#include "utf8/utf8.h"
using namespace vertex;
using namespace love;
#define FONT_MODULE() (Module::GetInstance<FontModule>(Mo... |
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2015, <NAME>.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
... |
// Copyright (c) 2009-2010 <NAME>
// Copyright (c) 2009-2014 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or https://www.opensource.org/licenses/mit-license.php .
#include "pow.h"
#include "consensus/upgrades.h"
#include "arith_uint256.h"
#include "ch... |
/**********
Copyright 2017 Xilinx, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, softw... |
/// LSU EE X70X GPU Prog / Microarch
//
/// Quick and dirty code for boxes.
// $Id:$
#include "phys-obj-box.h"
#include "world.h"
class pLine {
public:
pLine(){};
pLine(pCoor s, pVect d, float l):start(s),dir(d),len(l){};
pLine(pCoor s, pCoor e):start(s)
{
pNorm dirn(s,e);
dir = dirn;
len = dirn... |
// Copyright 2014 The Galactic Bloodshed Authors. All rights reserved.
// Use of this source code is governed by a license that can be
// found in the COPYING file.
import gblib;
import std;
#include "gb/shootblast.h"
#include "gb/GB_server.h"
#include "gb/buffers.h"
#include "gb/build.h"
#include "gb/defense.h"
#in... |
/*
https://github.com/peterix/dfhack
Copyright (c) 2011 <NAME> <<EMAIL>>
A thread-safe logging console with a line editor for windows.
Based on linenoise win32 port,
copyright 2010, <NAME> <jon_p_griffiths at yahoo dot com>.
All rights reserved.
Based on linenoise, copyright 2010, <NAME> <antirez at gmail dot com>.
T... |
//
// Created by justanhduc on 10/24/20.
//
#include "Raycaster.hpp"
#include "TSDFUtilitiesCPU.h"
#include "PngUtilities.hpp"
float3cpu compute_ray_direction_at_pixel( const float3cpu& origin, uint16_t pix_x, uint16_t pix_y, const Mat33CPU & rot, const Mat33CPU& kinv ) {
// Get point at depth 1mm. This is the d... |
/*
* Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
/*
* Copyright 2017-2018 Metrological
*
* 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 agre... |
/******************************************************************************
*
* Project: ADAGUC Server
* Purpose: ADAGUC OGC Server
* Author: <NAME>, plieger "at" knmi.nl
* Date: 2013-06-01
*
******************************************************************************
*
* Copyright 2013, Royal Ne... |
// tCOMUtil.cpp: implementation of the tCOMUtil class.
//
//////////////////////////////////////////////////////////////////////
#include <stdio.h>
#include <ocidl.h>
#include <shlwapi.h>
#include <wchar.h>
#include "tCOMUtil.h"
#include "tLuaCOMException.h"
#include "tUtil.h"
//////////////////////////////////////... |
#define DEBUG_TYPE "vegen-loop-fusion"
#include "LoopFusion.h"
#include "CodeMotionUtil.h"
#include "ControlEquivalence.h"
#include "DependenceAnalysis.h"
#include "UseDefIterator.h"
#include "llvm/ADT/EquivalenceClasses.h"
#include "llvm/ADT/PostOrderIterator.h"
#include "llvm/Analysis/IVDescriptors.h" // RecurKind
#... |
#include "ICM20948.h"
#include <hardware/gpio.h>
#define I2C_PORT i2c0
IMU_ST_SENSOR_DATA gstGyroOffset = { 0, 0, 0 };
ICM20948::ICM20948() = default;
ICM20948::~ICM20948() = default;
char ICM20948::I2C_ReadOneByte(uint8_t reg) {
uint8_t buf;
i2c_write_blocking(I2C_PORT, I2C_ADD_ICM20948, ®, 1, true);
i2c_... |
#include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h>
#include <string>
#include <cstring>
#include <vector>
#include <fstream>
#include "glmath.hpp"
float PI = 3.14159265359;
PFNGLGENBUFFERSPROC glGenBuffers;
PFNGLBINDBUFFERPROC glBindBuffer;
PFNGLBINDBUFFERRANGEPROC glBindBufferRange;
PFNGLBUFFERDATAPROC glBufferD... |
/*****************************************************************
* HMMER - Biological sequence analysis with profile HMMs
* Copyright (C) 1992-2003 Washington University School of Medicine
* All Rights Reserved
*
* This source code is distributed under the terms of the
* GNU General Public License. See the f... |
//========================================================================================
// Athena++ astrophysical MHD code
// Copyright(C) 2014 <NAME> <<EMAIL>> and other code contributors
// Licensed under the 3-clause BSD License, see LICENSE file for details
//=====================================================... |
/*
* Copyright (C) 2012-2014 <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 conditi... |
#include "SceneDribbleAMP.h"
#include "sim/SimSphere.h"
const double cSceneDribbleAMP::gComBallDistThreshold = 2;
double cSceneDribbleAMP::CalcReward(int agent_id) const
{
double reward = 0;
if (mMode == eModeTest)
{
reward = CalcRewardTest(agent_id);
}
else
{
reward = CalcRewardTrain(agent_id);
}
return ... |
#include <GLAD/glad.h>
#include <GLFW/glfw3.h>
#include "Shader.h"
#include "Camera.h"
#include "Model.h"
#include "stb_image.h"
#include <GLM/glm.hpp>
#include <GLM/gtc/matrix_transform.hpp>
#include <GLM/gtc/type_ptr.hpp>
#include <iostream>
#include <fstream>
#include <string>
#include <sstream>
const unsigned i... |
/***************************************************************************
**************************************************************************
SOFT: SO(3) Fourier transform code
Version 1.0
<NAME>, <NAME>
{<EMAIL>,<EMAIL>
Contact: <NAME>
<EMAIL>... |
#include "ReebGraphConstruction.h"
#include <queue>
#include <unordered_map>
#include <containers/sequential/graph/algorithms/dijkstra.h>
#include <containers/sequential/graph/algorithms/graph_input_output.h>
#include "MPProblem/Environment/Environment.h"
#include "MPProblem/MPProblem.h"
#include "Workspace/Workspac... |
#ifdef LSGL_ENABLE_MPI
#include <mpi.h>
#endif
#ifdef _WIN32
#include "../../gles/gles_c_api.h" // GLES + LSGL EXT.
//#include <GLES2/gl2.h>
#else
#include "../../gles/gles_c_api.h" // GLES + LSGL EXT.
//extern void lsglSetCamera(float eye[3], float lookat[3], float up[3], float fov);
//extern void lsglSetPointSize(... |
#include <chrono>
#include <cstring>
#include <memory>
#include <mutex>
#include <thread>
#include <openssl/ssl.h>
#include "base/callback.h"
#include "base/common.h"
#include "base/exc.h"
#include "event/socket.h"
extern "C" {
#include <fcntl.h>
#include <netdb.h>
#include <sys/socket.h>
#include <sys/types.h>
#inc... |
#include "THDM_SCPV1.h"
#include "QuarticSolver.h"
using namespace std;
using namespace Eigen;
THDM_SCPV1::THDM_SCPV1():Basic_Model(3)
{
// The basic DOF is 3
}
bool THDM_SCPV1::Set_Potential_Parameters(double m112, double m222, double m122, double lam1, double lam2, double lam3, double lam4, double lam5)
{
... |
/*
american fuzzy lop - LLVM-mode instrumentation pass
---------------------------------------------------
Written by <NAME> <<EMAIL>> and
<NAME> <<EMAIL>>
LLVM integration design comes from Laszlo Szekeres. C bits copied-and-pasted
from afl-as.c are Michal's fault.
Copyright 2015, 20... |
int o,
//n
Jo ,
K ,ctmuT
, l
, //M
LU
,kP
, S , zE
,SmKJL
, BH , wA1
,
XOU
, ZPUV,ZDIY/**/ ,hf4 ,qy , E5 , c
,//Tvue
AM , Q9cZZk,bK
,LgI ,LmqN , nuY ,/*xO*/
h5l6, B5kma ,k,X3 , g52QV ,
thFH,//60M
OF , iaf ,g,qBKm, dds
, Q0
, pXHr5 ,PI
,QQC /*oRN*/, //w
I9t
,
Yguw
, //7
pT86, O2m,OPP ,HbrH ,MxS... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.