text stringlengths 5.71k 33.7k |
|---|
/*
* Copyright (c) 2003-2009,2012 Apple Inc. All Rights Reserved.
*
* @APPLE_LICENSE_HEADER_START@
*
* This file contains Original Code and/or Modifications of Original Code
* as defined in and that are subject to the Apple Public Source License
* Version 2.0 (the 'License'). You may not use this file except i... |
#include "UI.h"
#include "Cluster.h"
#include "Scene/Scene.h"
#include "Config.h"
#include "Renderer/Renderer.h"
#include "Log/UISink.h"
#include "Log/Log.h"
#include <glm/gtc/type_ptr.hpp>
#include <glm/gtc/color_space.hpp>
#include <bx/string.h>
#include <IconsForkAwesome_c.h>
#include <functional>
#include <cctype>... |
#include "chip8.h"
// initialize registers, memory, and external variables
void Chip8::initialize() {
// Set program variables
pc = 0x200;
opcode = 0;
I = 0;
sp = 0;
// clear memory
for (int i = 0; i < 4096; i++) memory[i] = 0;
for (int i = 0; i < 16; i++) {
stack[i] = 0;
... |
//===- standalone-opt.cpp ---------------------------------------*- C++ -*-===//
//
// This file is licensed 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
//
//===-------------------------------... |
//------------------------------------------------------------------------------
/// @brief SnuPL/0 parser
/// @author <NAME> <<EMAIL>>
/// @section changelog Change Log
/// 2012/09/14 <NAME> created
/// 2013/03/07 <NAME> adapted to SnuPL/0
/// 2014/11/04 <NAME> maintain unary '+' signs in the AST
/// 2016/04/01 <NAME>... |
/*******************************************************************************
Vendor: Xilinx
Associated Filename: fft_top.cpp
Purpose: Xilinx FFT IP-XACT IP in Vivado HLS
Revision History: September 26, 2013 - initial release
*****************************************... |
//=============================================================================================================
/**
* @file eegosportsdriver.cpp
* @author <NAME> <<EMAIL>>;
* <NAME> <<EMAIL>>;
* <NAME> <<EMAIL>>
* @version 1.0
* @date July, 2014
*
* @section LICENSE
*
* Copyright (C) 201... |
//
// Created by <NAME> on 2/4/20.
//
#include "DepthSegmentation.h"
#include "multilabel_graph_cut.h"
#include "utils/sorted_data_structures.hpp"
DepthSegmentation::DepthSegmentation(const std::vector<BoundedPlane> &bboxes, const std::vector<Cylinder> &cylinders, const std::vector<int> &bbox_clusters, Image &image, ... |
/**
* \file QryWzemPrdList.cpp
* job handler for job QryWzemPrdList (implementation)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author <NAME> (auto-generation)
* \date created: 1 Dec 2020
*/
// IP header --- ABOVE
#ifdef WZEMCMBD
#include <Wzemcmbd.h>
#else
#include <Wzemd.h>
#endif
#include "QryWze... |
// Filename: makePrcKey.cxx
// Created by: drose (19Oct04)
//
////////////////////////////////////////////////////////////////////
//
// PANDA 3D SOFTWARE
// Copyright (c) Carnegie Mellon University. All rights reserved.
//
// All use of this software is subject to the terms of the revised BSD
// license. You should... |
/* FCE Ultra - NES/Famicom Emulator - Emscripten OpenGL ES 2.0 utils
*
* Copyright notice for this file:
* Copyright (C) 2015 Valtteri "tsone" Heikkila
*
* 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 Softw... |
#include <algorithm>
#include <cmath>
#include <iostream>
#include <vector>
#include <blazert/blazert.h>
#include <blaze/math/Column.h>
#define NOMINMAX
#include "../common/tiny_obj_loader.h"
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "../common/stb_image_write.h"
using ft = double;
constexpr ft pi = 3.141592... |
#include "../DSM.hh"
#include "DSMAlgo_EM201_2013_a.hh"
int DSMAlgo_EM201_2013_a::ajpBarrel(DSM& dsm, int offset) const
{
int jpBits[6];
// BC101-106
for (int ch = 0; ch < 6; ++ch)
{
jpBits[ch] = dsm.channels[ch] >> offset & 0x3;
// printf("The channel %d jp bit is %d\n", ch, jpBits[ch]); ... |
// Include standard headers
#include <stdio.h>
#include <stdlib.h>
#include <vector>
#include <iostream>
#include <float.h>
// Include GLEW
#include <GL/glew.h>
// Include GLFW
#include <GLFW/glfw3.h>
GLFWwindow* window;
// Include GLM
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtx/... |
#include "HtNaiveBayes.h"
#include <math.h>
#include "stroper.h"
#include "referset.h"
#include "htmlql.h"
#if defined(_DEBUG) && defined(DEBUG_NEW)
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#define DEBUG_THIS_FILE
#endif
double _ADD_LOGS_MAX_DIFF = log(1e-30);
HtN... |
/**************************************************************
*
* 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... |
/* -*- mode: c++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
Copyright (C) 2008 <NAME>
This file is part of QuantLib, a free-software/open-source library
for financial quantitative analysts and developers - http://quantlib.org/
QuantLib is free software: you can redistribute it and/or modif... |
#include "application_solar.hpp"
#include "window_handler.hpp"
#include "utils.hpp"
#include "shader_loader.hpp"
#include "model_loader.hpp"
#include <glbinding/gl/gl.h>
// use gl definitions from glbinding
using namespace gl;
//dont load gl bindings from glfw
#define GLFW_INCLUDE_NONE
#include <GLFW/glfw3.h>
#inc... |
/*-****************************************************************************
$Archive: SinnerTwin/JY008C637-ILM_SDK/source/Primitive_ref.cpp$
$Revision: 1$
$Date: Monday, February 01, 2010 6:04:35 PM$
$Author: timm$
Template: cpp_file.cpp 3.0
********************************************************************... |
#include "EarpieceMixer_F32_UI.h"
void EarpieceMixer_F32_UI::printHelp(void) {
Serial.println(F(" EarpieceMixer: Prefix = ") + String(quadchar_start_char) + String(ID_char) + String("x"));
Serial.println(F(" w/W/e/E/d: Inputs: PCB Mics, Mic on Jack, Line on Jack, BT, PDM Earpieces"));
Serial.println(F(" t/T... |
#include "HelloWorldScene.h"
#include "SimpleAudioEngine.h"
#include "TheEventData.h"
//声明cocos2d的命名空间
//#define USING_NS_CC using namespace cocos2d
USING_NS_CC;
//创建场景
Scene* HelloWorld::createScene()
{
// 'scene' is an autorelease object
//场景节点
auto scene = Scene::create();
// 'layer' is an... |
#include <phypp.hpp>
void print_help();
int phypp_main(int argc, char* argv[]) {
if (argc < 3) {
print_help();
return 0;
}
vec1s suffix;
std::string outdir;
bool background = false;
std::string target;
bool verbose = false;
bool do_sigma_clip = true; // enabl... |
/*
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) 2012 <copyright holder> <email>
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 ve... |
#include "worldbox.h"
WorldBox::WorldBox(QOpenGLWidget *_glWidget)
{
glWidget = _glWidget;
glWidget->makeCurrent();
initializeOpenGLFunctions();
loadCubeMapTexture();
shaderIndex = 3;
numShaders = 0;
}
WorldBox::~WorldBox()
{
destroyVBOs();
destroyShaders();
}
void WorldBox::destroy... |
#include <cmath>
#include <utility>
#include <numeric>
#include "gtest/gtest.h"
#include "../config.h"
#include "../file.h"
#include "../individual.h"
#include "../ga.h"
#include "../problem.h"
#include "../file.h"
std::vector<int> dim_flat (std::vector<int> const & v) { return v; }
template <typename T>
std::vector<... |
// RUN: %clang_cc1 %s -std=c++1z -fsyntax-only -verify -pedantic
// RUN: %clang_cc1 %s -std=c++1z -fsyntax-only -verify -pedantic -fno-signed-char
// RUN: %clang_cc1 %s -std=c++1z -fsyntax-only -verify -pedantic -fno-wchar -Dwchar_t=__WCHAR_TYPE__
# 6 "/usr/include/string.h" 1 3 4
extern "C" {
typedef decltype(sizeo... |
#include "./pxtn.h"
#include "./pxtnMem.h"
#include "./pxtnService.h"
void pxtnService::_moo_constructor()
{
_moo_b_init = false;
_moo_b_valid_data = false;
_moo_b_end_vomit = true ;
_moo_b_mute_by_unit = false;
_moo_b_loop = true ;
_moo_fade_fade = 0;
_moo_ma... |
/* Program 6 - Unscrambler (no classes, no undo)
The user is presented with a board that is filled with scrambled words.
They have to rotate the rows and columns to get the words displayed in the right order.
Author: <NAME>
Date: 27 Nov 2021
Class: CS 141, Fall 2021, UIC
System: VSCode on Win... |
#include "core/math/Math.h"
#include "core/math/random/Random.h"
#include "core/settings/CGameSettings.h"
#include "core/system/io/CBinaryFile.h"
#include "core-ext/system/io/serializer.h"
#include "core-ext/system/io/serializer/ISerialBinary.h"
#include "core-ext/system/io/serializer/OSerialBinary.h"
#include "after... |
/*!
* \file File text.cpp
* \brief Implementation of the class Text
*
* Auxiliary documentation
* \sa text.hpp
*/
#include <text.hpp>
#include <camera.hpp>
#include <game.hpp>
#include <resources.hpp>
#include <assert.h>
/*!
@class Text
@brief This class provides the all the text and text box related meth... |
// Copyright (C) 2021-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "custom_kernels.hpp"
#include <algorithm>
#include <map>
#include <opencv2/gapi/cpu/gcpukernel.hpp>
#include <opencv2/gapi/gcommon.hpp>
#include <opencv2/gapi/util/optional.hpp>
#include <opencv2/imgproc.hpp>
#include <u... |
#include "libMTSClient.h"
#include <math.h>
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
#include <tchar.h>
#else
#include <dlfcn.h>
#endif
const static double ln2=0.693147180559945309417;
const static double ratioToSemitones=17.31234049066756088832; // 12./log(2.)
typedef void (*mts_pv)(void*);
ty... |
#include "mwclient/parser.h"
#include <algorithm>
#include <string>
#include <string_view>
#include "cbl/log.h"
#include "cbl/unittest.h"
#include "parser_test_util.h"
using std::string;
using std::string_view;
namespace wikicode {
// A simple recursive computation of node depth, used as a reference to check the dep... |
#include <../Headers/game.hpp>
std::vector<std::vector<GridCell>> Game::createGrid(sf::Vector2u windowSize) {
unsigned int amountOfColumn = windowSize.x / PIXEL16;
unsigned int amountOfRow = windowSize.y / PIXEL16;
unsigned int amountOfRect = amountOfRow * amountOfColumn;
float x = 0;
float y = 0;
... |
#include <iostream>
#include <fstream>
#include <sstream>
#include <filesystem>
#include <cmath>
#include <thread>
#include <sys/types.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include "gdal_priv.h"
#include "cpl_conv.h" // for CPLMalloc()
#include "ogrsf_frmts.h"
#include <fcntl.h>
#include "../vendor/cxxopts.h... |
////////////////////////////////////////////////////////////////////////////
//
// Copyright 2021 Realm Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/li... |
/////////////////////////////////////////////////////////////////////////////
// SOFTWARE COPYRIGHT NOTICE AGREEMENT //
// This software and its documentation are copyright (2005) by the //
// Broad Institute/Massachusetts Institute of Technology. All rights //
// are... |
#include "event_analysis.hpp"
//Analysis::Analysis(std::shared_ptr<Branches> data_, std::shared_ptr<Histogram> hist_, std::shared_ptr<Environment> envi_, int run_type_,std::shared_ptr<Forest> a_Forest_, int thread_id_, int run_num_){
Analysis::Analysis(std::shared_ptr<Branches> data_, std::shared_ptr<Histogram> hi... |
//无人机追踪目标(此处先直接用目标位置进行追踪)
//无人机吊舱根据视觉算法的反馈调节角度,保证目标在相机中心位置
//ROS 头文件
#include <ros/ros.h>
#include <iostream>
#include "mission_utils.h"
#include "gimbal_control.h"
#include "message_utils.h"
using namespace std;
using namespace Eigen;
#define NODE_NAME "gimbal_control_demo"
#define PI 3.1415926
bool hold_mode;
bool... |
/** @file test_perf.cpp
*
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <string>
#include <fstream>
#include <sstream>
#include <getopt.h>
#include "rq_api.h"
#include "test_utils.h"
using namespace std;
#define PAGE_SZ 4096
typedef struct {
clock_t interCompi... |
/*
Copyright 2014 Google Inc. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in ... |
#ifndef __PROGTEST__
//#include <ctime>
#include "flib.h"
#endif //__PROGTEST__
/**
* Swaps values of given parameters.
*/
void swap(int32_t *x, int32_t *y){
int32_t temp = *x;
*x = *y;
*y = temp;
}
/**
* CMinHeap101 class stores 101 elements
*/
class CMinHeap101 {
private:
int32_t m_HeapArr[101]... |
#include "stdafx.h"
#include "CSuperResolutionMgr.h"
#include "shaders/fsr_easu_cs_d3d.h"
#include "shaders/fsr_rcas_cs_d3d.h"
constexpr auto GTA5_FSR_EPSILON = 0.01;
extern gta5_fsr_cfg_t g_Cfg;
CSuperResolutionMgr& CSuperResolutionMgr::instance()
{
static CSuperResolutionMgr instance;
return instance;
}
... |
#include "dos_2_5.h"
#define FLAG_NEVER_USED 0x00
#define FLAG_DELETED 0x80
#define FLAG_IN_USE 0x40
#define FLAG_LOCKED 0x20
#define FLAG_DOS2 0x02
#define FLAG_OPENED 0x01
#define DIR_FIRST_SECTOR 361
#define DIR_SIZE 8
using namespace std;
const size_t VTOC2_OFFSET = 16;
const size_t VTOC_BUF_SIZE = 256;
const ... |
#include "WProgram.h"
#include "helpers.h"
#include "Elektron.hh"
#include "MNMMessages.hh"
#include "MNMPattern.hh"
#include "MNMParams.hh"
void MNMPattern::clearPattern() {
for (uint8_t i = 0; i < 6; i++) {
for (uint8_t j = 0; j < 64; j++) {
paramLocks[i][j] = -1;
noteNBR[i][j] = -1;
}
}
lock... |
#include "tinyexr.h"
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "stb_image_write.h"
#include <array>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
// From Filament.
static inline void RGBMtoLinear(const float rgbm[4], float line... |
/**********************************************************
Copyright 2014 by <NAME> and <NAME>,
Department of Informatics, Bioengineering, Robotics, and Systems
Engineering University of Genova.
This is a free software: you can redistribute it and/or modify it
under the terms of the CC-BY Public License, Version 4.0,... |
#include "wrapper.h"
void *task(void * input)
{
while(1)
{
wrapper * d = ((wrapper*)input);
pthread_mutex_lock(&(d->mutex));
d->imu.update(d->EULER, d->LINACC, d->ANGVEL);
pthread_mutex_unlock(&(d->mutex));
Sleep(1);
}
}
Eigen::Matrix3d rotmatrix(Eigen::Vector3d a)
{
// a: roll/pitch/yaw or XYZ Tait-Br... |
// Copyright (c) 1999, California Institute of Technology
// U. S. Government sponsorship under NASA contract is acknowledged
//////////////////////////////////////////////////////////////////////////////
//
// SclkTime.cc
//
// This class defines the standard SCLK time object. It defines the
// mechanism to inse... |
/******************************************************************************
*
* DOT3D - An OpenGL dot file viewer
* <NAME>, 2003
*
* map overview display
*
*****************************************************************************/
#include "mapcodegen.h"
//--------------------------------------------... |
/*
* This file is open source software, licensed to you under the terms
* of the Apache License, Version 2.0 (the "License"). See the NOTICE file
* distributed with this work for additional information regarding copyright
* ownership. You may not use this file except in compliance with the License.
*
* You may ... |
#include <algorithm>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <tuple>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <variant>
#include <vector>
using namespace std;
template <typename CompareSeco... |
#include <cstdio>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <vector>
#include <boost/format.hpp>
#include <boost/log/core.hpp>
#include <boost/log/trivial.hpp>
#include <boost/log/utility/setup/file.hpp>
#include <boost/log/utility/setup/common_attributes.hpp>
#include <boost/program_options.h... |
/*******************************************************************************
*
* MIT License
*
* Copyright (c) 2017 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
* ... |
//
// 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... |
#pragma once
#include <cstddef> // for std::byte
#include <utility>
#include <ostream>
#include <array>
#include <tuple>
#include <string_view>
#include <string>
// for development
#include <type_traits>
#include <vector>
#include <iostream>
#include <functional>
#include <numeric>
#include <sstream> // for... |
#include <lanelet2_core/LaneletMap.h>
#include <lanelet2_core/geometry/Area.h>
#include <lanelet2_core/geometry/Lanelet.h>
#include <lanelet2_core/primitives/Area.h>
#include <lanelet2_core/primitives/Lanelet.h>
#include <lanelet2_core/primitives/LineString.h>
#include <lanelet2_core/primitives/Point.h>
#include <lanel... |
// Copyright 2019 The IREE Authors
//
// Licensed 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
// IREE source.mlir -> execution output test runner.
// This is meant to be called from LIT for F... |
/*
* Copyright (c) 2014-2022 The Voxie Authors
*
* 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, mer... |
////////////////////////////////////////////////////////////////////////////////
// Copyright 2017 Intel Corporation
//
// 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.apac... |
#include "CK3World.h"
#include "Imperator/ImperatorWorld.h"
#include "Imperator/Characters/Character.h"
#include "Imperator/Countries/Country.h"
#include "Imperator/Provinces/Province.h"
#include "Configuration/Configuration.h"
#include "Province/CK3Provinces.h"
#include "Province/CK3ProvinceMappings.h"
#include "Title... |
/****************************************************************************
*
* Copyright (c) 2012-2022 PX4 Development Team. 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. Red... |
// Copyright Regents of the University of Minnesota and Brown University, 2010. All rights are reserved.
/**
* /author <NAME> (dfk)
*
* /file vrg3d-server.cpp
* /brief
*
*/
#include <vrg3d/VRG3D.h>
using namespace G3D;
#define DEVICE_THREAD_SLEEP 1
#define WAIT_FOR_EVENTREQ_SLEEP 0.5 //0.0
#define WAIT_FOR_... |
/*
** ClanLib SDK
** Copyright (c) 1997-2016 The ClanLib Team
**
** This software is provided 'as-is', without any express or implied
** warranty. In no event will the authors be held liable for any damages
** arising from the use of this software.
**
** Permission is granted to anyone to use this software for a... |
// Copyright 1996-2019 Cyberbotics 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 or agr... |
//
// cnn.cpp
// Jacobian
//
// Created by <NAME>
//
#include "bpnn.hpp"
#include "utils.hpp"
//#include <Eigen/unsupported/CXX11/Tensor>
#include "cnn.hpp"
#define LARGE_NUM 1000000 // Remove me.
#if (!RECKLESS)
#define checknan(x, loc) if(x==INFINITY || x==NAN || x == -INFINITY) throw ValueError("Detected NaN ... |
/* -------------------------------------------------------------------------------
* Copyright (c) 2018, OLogN Technologies AG
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributio... |
/*
** Copyright (C) 2000-2010 <NAME> <<EMAIL>>
**
** 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... |
/*
* Copyright (c) 2013-2015 Cisco Systems, Inc. and others. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*
*/
/**... |
/*
* Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... |
/// \ingroup newmat
///@{
/// \file tmt8.cpp
/// Part of matrix library test program.
//#define WANT_STREAM
#include "include.h"
#include "newmatap.h"
#include "tmt.h"
#ifdef use_namespace
using namespace NEWMAT;
#endif
// **************************** test program ******************************
void Transpo... |
/*
* Copyright 2004-2010, <NAME>, <EMAIL>.
* Copyright 2011, <NAME>, <EMAIL>.
* Distributed under the terms of the MIT License.
*/
#include <boot/platform.h>
#include <boot/menu.h>
#include <boot/platform/generic/text_console.h>
#include <boot/platform/generic/text_menu.h>
#include <string.h>
// position
stati... |
// 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 "nacl_io/kernel_intercept.h"
#include <assert.h>
#include <errno.h>
#include <string.h>
#include "nacl_io/kernel_proxy.h"
#include "nacl_io... |
/*
* Copyright 2018 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 applica... |
/*
* Exchange.cpp
*
* Created on: Nov 19, 2016
* Author: rocco
*/
#include "Exchange.h"
#include <stdlib.h>
#include <stdio.h>
#include <cmath>
Exchange::Exchange() : price(1000.0), TIME(new fakeTime()), exp(nullptr) {}
Exchange::Exchange(int mov1, int mov2, char expt, int numTests)
{
price = 1000.0;
TI... |
#include <uWS/uWS.h>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include "Eigen-3.3/Eigen/Core"
#include "Eigen-3.3/Eigen/QR"
#include "helpers.h"
#include "json.hpp"
#include <algorithm>
#include "spline.h"
// for convenience
using nlohmann::json;
using std::string;
using std::vector;... |
// stringtable.cpp
//
// Created by <NAME> (Jarulf).
//
// Many thanks to <NAME> (Ondo) for information
// about the structure and algorithms regarding
// the file "string.tbl".
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "Dll.h"
#include "common.h"
enum {
// File info. Some are not used by ... |
/* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
<NAME>, <EMAIL>
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with San... |
/*
Copyright 2016 Australian Centre for Robotic Vision
*/
#include <apc_3d_vision.hpp>
#include <eigen_conversions/eigen_msg.h>
#include <image_transport/image_transport.h>
#include <ros/ros.h>
#include <tf/transform_broadcaster.h>
#include <tf/transform_datatypes.h>
#include <tf/transform_listener.h>
#include <t... |
/* -*- indent-tabs-mode: nil -*- */
#include <event2/thread.h>
#include <gflags/gflags.h>
#include <iostream>
#include <openssl/err.h>
#include <signal.h>
#include <stdlib.h>
#include <string>
#include <unistd.h>
#include "config.h"
#include "log/cert_checker.h"
#include "log/cert_submission_handler.h"
#include "log... |
/*
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 distributed in the hope that it will be usefu... |
///////////////////////////////////////////////////////////////////////////////
// main.cpp
// ========
// drawing a icosahedron using vertex array (glDrawElements)
// dependency: freeglut/glut
//
// AUTHOR: <NAME> (<EMAIL>)
// CREATED: 2018-07-17
// UPDATED: 2018-07-31
////////////////////////////////////////////////... |
/**
* @file pca9685.cpp
*
*/
/* Copyright (C) 2017-2018 by <NAME> mailto:<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... |
/*
* Copyright (c) 2018 Confetti Interactive Inc.
*
* This file is part of The-Forge
* (see https://github.com/ConfettiFX/The-Forge).
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional informat... |
/*
* Window.cpp
*
* Copyright (C) 2008, 2016 MegaMol Team
* Alle Rechte vorbehalten.
*/
#include "stdafx.h"
#include "gl/Window.h"
#include "utility/HotFixes.h"
#include "mmcore/utility/log/Log.h"
#include "WindowManager.h"
#include <cassert>
#include <algorithm>
#include <sstream>
#include <string>
#include <ios... |
/*
* Copyright (C) 2005 - 2012 MaNGOS <http://www.getmangos.com/>
*
* Copyright (C) 2008 - 2012 Trinity <http://www.trinitycore.org/>
*
* Copyright (C) 2010 - 2012 ArkCORE <http://www.arkania.net/>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General P... |
#include "linear_gkr/zk_verifier.h"
#include "infrastructure/RS_polynomial.h"
#include "infrastructure/utility.h"
#include "linear_gkr/zk_prover.h"
#include "poly_commitment/poly_commit.h"
#include <iostream>
#include <cstdio>
inline bool verify_merkle(__hhash_digest h, std::vector<__hhash_digest> merkle_path, int len,... |
//===-- RuntimeDyld.cpp - Run-time dynamic linker for MC-JIT ----*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/*
* 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 distributed in the hope that it will be use... |
#include "main.h"
#include "timer.h"
#include "airplane.h"
#include "floor.h"
#include "enemy.h"
#include "checkpoint.h"
#include "dashboard.h"
#include "land.h"
#include "ammunition.h"
#include "volcano.h"
#include "addons.h"
#include "parachute.h"
#include "smokering.h"
using namespace std;
GLMatrices Matrices;
GLM... |
/*******************************************************************************************************************************
Copyright (c) 2020 <NAME> (<EMAIL>, <EMAIL>)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation
files (the "Software"... |
/*! \brief Implementation of methods of TTClusterBuilder.h
* \details Here, in the source file, the methods which do depend
* on the specific type <T> that can fit the template.
*
* \author <NAME>
* \author <NAME>
* \author <NAME>
* \author <NAME>
* \date 2013 - 2020
*
*/
#include "L1Trigger/Tr... |
/*
* Warhammer Age of Sigmar battle simulator.
*
* Copyright (C) 2019 by <NAME> - <EMAIL>
*
* This code is licensed under the MIT license (MIT) (http://opensource.org/licenses/MIT)
*/
#include <ManoAMano.h>
#include <Dice.h>
#include <Roster.h>
#include <Board.h>
#include <gloomspitegitz/BadMoon.h>
#include <plog... |
/*
Tutorial and copyright: https://lodev.org/cgtutor/raycasting.html
A lot is similar to raycaster_flat.cpp, and only new parts are commented here
g++ *.cpp -lSDL -O3 -W -Wall -ansi -pedantic
g++ *.cpp -lSDL
*/
#include <cmath>
#include <string>
#include <vector>
#include <iostream>
#include "quickcg/quickc... |
#include <iostream>
#include <math.h>
#include <unistd.h>
// legion stuff
#include "legion.h"
using namespace LegionRuntime;
using namespace LegionRuntime::HighLevel;
#include "matrix.hpp" // for Matrix class
#include "hmatrix.hpp" // for HMatrix class
enum {
TOP_LEVEL_TASK_ID = 0,
SPMD_TASK_ID = 1,
};
const ... |
/*
* Copyright (C) 2010 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... |
// Local headers
#include <glm/vec3.hpp>
#include "program.hpp"
#include "gloom/gloom.hpp"
#include "gloom/shader.hpp"
#include "gloom/camera.hpp"
#include "glm/glm.hpp"
#include "sceneGraph.hpp"
#include <glm/gtc/type_ptr.hpp>
#include <GLFW/glfw3.h>
#include <glad/glad.h>
#include <math.h>
#include <stdio.h>
#include... |
#include <SDL.h>
#include <SDL_image.h>
#include <SDL_ttf.h>
#include <SDL_mixer.h>
#include <iostream>
#include <random>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
SDL_Window* window;
SDL_Renderer* renderer;
bool init_everything();
bool init_sdl();
bool create_window();
bool create_renderer();
void... |
#include <CQImage2D.h>
#include <QApplication>
#include <QPainter>
#include <QTimer>
#include <QKeyEvent>
#include <CCosTable.h>
#include <CSinTable.h>
#include <CTanTable.h>
#include <CATanTable.h>
#include <CSqrtTable.h>
#include <CExpTable.h>
#include <CThread.h>
#include <limits>
static CCosTable cos_table(1000);... |
/*-
* Copyright (c) 2019 <NAME><<EMAIL>>
*
* Licensed under the BSD-3-Clause license, see LICENSE for full information.
*
*/
#include <algorithm>
#include <xtra_rhel.h>
#include <functional>
#include <Utils/Log.h>
#include <Utils/Timer.h>
#include <Business/EventHandler.h>
#include <Business/EventRepos.h>
us... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.