text stringlengths 8.71k 38.4k |
|---|
/*
* Original work Copyright (c) 2007, Carnegie Mellon University
* Modified work 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 are met:
* * Redistributions of source code... |
#include <iostream>
#include <stdexcept>
#include <cstring>
#include <stdio.h>
#include "ppu.h"
#include "events.h"
#include "renderer.h"
#include "core.h"
#define CLOCKS_PAR_LINE (341)
#define DRAWABLE_LINES (240)
#define SCAN_LINES (262)
/* Control Register1 &H2000 */
#define FLAG_NMI_ON_VB (0x80)
#define FLAG_PPU_... |
#include "wayspid/safeD9.h"
void push(double vx, double vy, double vz, double p, double q, double r){
geometry_msgs::Twist t;
t.linear.x = vx;
t.linear.y = vy;
t.linear.z = vz;
t.angular.x = p;
t.angular.y = q;
t.angular.z = r;
velocities.erase(velocities.begin());
velocities.push_ba... |
/////////////////////////////////////////////////////////////////////////////
// The Software is provided "AS IS" and possibly with with faults. Intel
// disclaims any and all warranties and guarantees, express, implied or
// otherwise, arising, with respect to the software delivered hereunder,
// including but not... |
#include "Globals.h"
#include "Application.h"
#include "ModuleScene2.h"
#include "ModuleTextures.h"
#include "ModuleRender.h"
#include "ModulePlayer.h"
#include "ModulePlayer2.h"
#include "ModuleInput.h"
#include "ModuleFadeToBlack.h"
#include "ModuleSceneWinP1.h"
#include "ModuleSceneWinP2.h"
#include "ModuleSceneTie.... |
/***********************************************************************
* Copyright 1998-2020 CERN for the benefit of the EvtGen authors *
* *
* This file is part of EvtGen. *
* ... |
#include <chrono>
#include <thread>
#include "../gl.h"
#include "Display.h"
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <external/stb_image.h>
#include <external/glm/glm.hpp>
#include <external/glm/gtc/matrix_transform.hpp>
#include <external/glm/gtc/type_ptr.hpp>
#include "igl/igl_inline.h"
#include <i... |
#include "Globals.h"
#include "Application.h"
#include "ModuleMap.h"
#include "ModulePlayer.h"
#include "ModulePhysics3D.h"
#include "Primitive.h"
#include "PhysBody3D.h"
#include "ModuleAudio.h"
ModuleMap::ModuleMap(Application* app, bool start_enabled) : Module(app, start_enabled)
{
}
ModuleMap::~ModuleMap()
{
}
... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <ctype.h>
#include <pthread.h>
#include <fstream>
//http://libserial.sourceforge.net/doxygen/
#include <iostr... |
//===--- TargetInfo.cpp - Information about Target machine ----------------===//
//
// 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
//
//===---------------------------... |
/*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkCodec.h"
#include "SkMSAN.h"
#include "SkJpegCodec.h"
#include "SkJpegDecoderMgr.h"
#include "SkJpegUtility_codec.h"
#include "SkCodecPriv.h"
#include "SkColorPriv... |
#include "glewOutput.h"
void glewPrintExt (const char* name, GLboolean def1, GLboolean def2, GLboolean def3){
unsigned int i;
printf( "\n%s:", name);
for (i=0; i<62-strlen(name); i++) printf( " ");
printf( "%s ", def1 ? "OK" : "MISSING");
if (def1 != def2)
printf( "[%s] ", def2 ? "OK" : "... |
#include "core.h"
#include "font.h"
#include "mesh.h"
#include "irenderer.h"
#include "texturemanager.h"
#include "vector2.h"
#include "ivertexdeclaration.h"
#include "idatastream.h"
#include "mathcore.h"
#include "ivertexbuffer.h"
#include "iindexbuffer.h"
#include "configmanager.h"
#include "reversehash.h"
#include ... |
// __BEGIN_LICENSE__
// Copyright (c) 2006-2013, United States Government as represented by the
// Administrator of the National Aeronautics and Space Administration. All
// rights reserved.
//
// The NASA Vision Workbench is licensed under the Apache License,
// Version 2.0 (the "License"); you may not use this f... |
// Copyright 2018 The Chromium OS 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 "hermes/modem_qrtr.h"
#include <algorithm>
#include <array>
#include <utility>
#include <base/bind.h>
#include <base/logging.h>
#include <ba... |
#include "draw.h"
#include "control.h"
#include "textures.h"
#include "atlas.h"
#include "flog.h"
/* {
GVAR: logical_device -> startup.cpp
GVAR: command_buffer -> control.cpp
GVAR: pipeline_layout -> render.cpp
GVAR: pipelines -> render.cpp
GVAR: y_wheel = window.cpp;
GVAR: time1 -> window.cpp
GVAR: meshe... |
/* Copyright (C) 2013 Ion Torrent Systems, Inc. All Rights Reserved */
//! @file TargetsManager.cpp
//! @ingroup VariantCaller
//! @brief BED loader
#include "TargetsManager.h"
#include <stdlib.h>
#include <algorithm>
#include <fstream>
#include "BAMWalkerEngine.h"
//#include "ExtendParameters.h"
TargetsMa... |
#include "GLViewer.hpp"
GLchar* VERTEX_SHADER =
"#version 330 core\n"
"layout(location = 0) in vec3 in_Vertex;\n"
"layout(location = 1) in vec3 in_Color;\n"
"uniform mat4 u_mvpMatrix;\n"
"out vec3 b_color;\n"
"void main() {\n"
" b_color = in_Color;\n"
" gl_Position = u_mvpMatrix * vec4(in_Vertex, 1);\n"
"}";
GLchar... |
#include "aghInclude.h"
#include <iostream>
using namespace std;
void showTestResult(int number, bool result) {
if (result) {
cout << "[" << number << "] PASSED\n";
}
else {
cout << "[" << number << "] FAILED\n";
}
}
int main(void) {
// --------------------------------------------... |
//===- MipsRegisterBankInfo.cpp ---------------------------------*- C++ -*-===//
//
// 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 "state.h"
#include "ace/Global_Macros.h"
#include "ace/OS_Memory.h"
#include "ace/OS.h"
//#include "gettext.h"
#include "highscore.h"
#include "configuration.h"
#include "audio.h"
#include "background.h"
#include "menu.h"
#include "OpenGL_common.h"
#include "powerup.h"
#include "player... |
/*
===========================================================================
Doom 3 BFG Edition GPL Source Code
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Doom 3 BFG Edition Source Code is free... |
//===-- AutoUpgrade.cpp - Implement auto-upgrade helper functions ---------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/*************************************************************************
* Copyright (c) 2016-2020, NVIDIA CORPORATION. All rights reserved.
*
* See LICENSE.txt for license information
************************************************************************/
#include "comm.h"
#include "info.h"
#include "graph.h"... |
/************************************************
Copyright (c) 2019, Systems Group, ETH Zurich.
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 c... |
int q ,Nk73//r
,
obaBVz ,wx/*H2F*/,
GQVjj ,/**/ cF
,jAmM,
Q
,X ,WK4h, sG
//
,RK3S7 ,
/*8*/GA8, dK,
HSj
, qi7ot2,y ,
fwH,spGI ,qOku46,
dU ,Humk ,L
,Asv/*Zw*/,//DS
go,
lK7Lq /*gK*/,/*TO*/QH7y
, Dzg,
KD //PkA
, IyRk ,
v0m,XB
,ajak
,KTS,
ep,
TCVmj,
nrAtpaa,Bn3
, lkei,V//N
,
J2mj
,eZ
,CDMP ,
GYYa... |
#include "optimize.h"
#include "optutil.h"
#include <nlopt/nlopt.hpp>
#include <eigen/Core>
#include <eigen/Dense>
#include <exception>
#include <set>
#include <iostream>
#include <iomanip>
#include <stdio.h>
#include <algorithm>
//#define TEST_OBJECTIVE
#ifdef TEST_OBJECTIVE
#include <chrono>
#include <thread>
#endif... |
// 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:
//
// Redistributions of source code must retain the above copyright notice, this
// list of conditions and th... |
/**
* Local copy benchmark for various containers
*/
#include <libdash.h>
#include <iostream>
#include <iomanip>
#include <vector>
#include <string>
#include <cstring>
#include <limits>
#include <malloc.h>
#ifdef DASH_ENABLE_IPM
#include <mpi.h>
#endif
using std::cout;
using std::endl;
using std::setw;
using std... |
// See LICENSE_CELLO file for license and copyright information
/// @file control_adapt.cpp
/// @author <NAME> (<EMAIL>)
/// @date 2013-04-25
/// @brief Charm-related mesh adaptation control functions.
/// @ingroup Control
///
/// This file controls adaptive mesh refinement on a distributed
/// array of ... |
// -*- C++ -*-
//
// Package: Geometry
// Class : TGeoMgrFromDdd
//
// Implementation:
// [Notes on implementation]
//
// Original Author:
// Created: Fri Jul 2 16:11:42 CEST 2010
//
#include "Fireworks/Geometry/interface/TGeoMgrFromDdd.h"
#include "FWCore/ParameterSet/interface/ParameterSet... |
//
/// \class l1t::Stage2Layer2JetAlgorithmFirmwareImp1
///
/// \author: <NAME> and <NAME>
///
/// Description: Implementation of Jad's asymmetric map overlap algorithm with donut subtraction
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "L1Trigger/L1TCalorimeter/interface/Stage2Layer2JetAlgorith... |
#include <fstream>
#include "BrokenCore.h"
#include "Application.h"
#include "ModuleFileSystem.h"
#include "ModuleResourceManager.h"
#include "Optick/include/optick.h"
#include "PhysFS/include/physfs.h"
#include "Assimp/include/cfileio.h"
#include "Assimp/include/types.h"
#ifndef _WIN64
# pragma comment( lib, "PhysF... |
/*
* A-Star algorithm by <NAME>
*/
#include "ithelib.h"
#include "media.hpp"
#include "init.hpp"
#include "core.hpp"
#include "gamedata.hpp"
#include "console.hpp"
#include "object.hpp"
#include "linklist.hpp"
#include "map.hpp"
#include "slotalloc.hpp"
#include <math.h>
#include <string.h>
// Defines
#defin... |
#include "GNSSambres.hpp"
/** Comapring two Z-transformed ambiguities */
bool comp_Zamb(
Z_Amb Z1, ///< Z-ambiguity 1
Z_Amb Z2) ///< Z-ambiguity 2
{
if ( Z1.size() != Z2.size()) return false;
for( auto& [key,coef] : Z1)
{
if ( Z2.find(key) == Z2.end() ) return false;
if ( Z2[key] != coef ) return fals... |
#include <ntlm/ntlm.h>
#include "util.h"
#include <openssl/rand.h>
#include <cstring>
std::string make_type1_msg(std::string domain, std::string host, int ntlm_resp_type)
{
std::string upper_domain = to_uppercase(domain);
std::string upper_host = to_uppercase(host);
size_t dom_len = upper_domain.length();
... |
/* _______________________________________________________________________
DAKOTA: Design Analysis Kit for Optimization and Terascale Applications
Copyright 2014 Sandia Corporation.
This software is distributed under the GNU Lesser General Public License.
For more information, see the README file in t... |
// Copyright © <NAME>: <<EMAIL>>
#include "../../../../LKBox/include/LKBox/Core.h"
//#include "../../../../LKBox/include/LKBox/Debug.h"
#include <glad/glad.h>
#include <GLFW/glfw3.h>
//#include <btBulletDynamicsCommon.h>
#include "../imgui/imgui.h"
#include "../imgui/imgui_impl_glfw.h"
#include "../imgui/imgui_im... |
/*
* Copyright 2020 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
/******************************************************************************\
| OpenGL 4 Example Code. |
| Accompanies written series "Anton's OpenGL 4 Tutorials" |
| Email: anton at antongerdelan dot net ... |
#include "Globals.h"
#include "ComponentParticleSystem.h"
#include "ComponentCamera.h"
#include "Application.h"
#include "ModuleRenderer3D.h"
#include "ModuleResources.h"
#include "ModulePrograms.h"
#include "GameObject.h"
#include "ResourceTexture.h"
#include "OpenGL.h"
#include "DebugDraw.h"
#include <algorithm>
... |
// Neko.cpp: implementation of the CNeko class.
//
//////////////////////////////////////////////////////////////////////
#include <windows.h>
#include "NekoCommon.h"
#include "NekoSettings.h"
#include "Neko.h"
#include "resource.h"
#include <math.h>
//maths calculations
#define g_dSinPiPer8 0.3826834323651 /... |
//
// ROAM Simplistic Implementation
// All code copyright <NAME> (Jan, 2000)
// <EMAIL>
//
// Based on the Tread Marks engine by Longbow Digital Arts
// (www.LongbowDigitalArts.com)
// Much help and hints provided by <NAME>, LDA.
//
#include <windows.h>
#include <math.h... |
// license:LGPL-2.1+
// copyright-holders:<NAME>, <NAME>
/***************************************************************************
Functions to emulate the video hardware of the machine.
TODO
====
Harmonise draw_sprites code and offload it into taitoic.c, leaving this
as short as possible (TC0080VCO has sprites a... |
/*! \file Peridigm_AlbanyDiscretization.cpp */
//@HEADER
// ************************************************************************
//
// Peridigm
// Copyright (2011) Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
// the U.S.... |
// This program is free software: you can use, modify and/or redistribute it
// under the terms of the simplified BSD License. You should have received a
// copy of this license along this program. If not, see
// <http://www.opensource.org/licenses/bsd-license.html>.
//
// Copyright (C) 2012, <NAME> <<EMAIL>>
// All ri... |
#include <cassert>
#include <iostream>
#include <sstream>
#include <set>
#include <cstring>
#include <algorithm>
#include <vector>
#include <cstdint>
#include <tuple>
#include <optional>
namespace {
struct Data {
int x1;
int x2;
int y1;
int y2;
int z1;
int z2;
bool on;
bool operator<(... |
/****************************************************************************
* CrPositronPrimary.cc:
****************************************************************************
* Read comments at the head of CosmicRay PrimaryGeneratorAction.cc
* and GLAST-LAT Technical Note (LAT-TD-250.1) by <NAME> et al.
* for... |
#include <seeds.rainbows.hpp>
#include <algorithm>
#include <../capi/eosio/action.h>
void rainbows::create( const name& issuer,
const asset& maximum_supply,
const name& withdrawal_mgr,
const name& withdraw_to,
const name& fre... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <iostream>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <png.h>
#include <jpeglib.h>
GLuint loadJPEG (const char * filename,int &w, int &h, GLuint &_format)
{
unsigned long x, y;
GLuint textureID;
unsigned long data_size; ... |
/*******************************************************************************
Filename : Main.cpp
Content : Simple test app to test openxr hands
Created : Sept 2020
Authors : <NAME>
Language : C++
Copyright: Copyright (c) Facebook Technologies, LLC and its affiliates. All rights reserve... |
// This file is part of the LITIV framework; visit the original repository at
// https://github.com/plstcharles/litiv for more information.
//
// Copyright 2015 <NAME>; pierre-luc.st-charles<at>polymtl.ca
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compl... |
#include "server.h"
#include "message.h"
#include <QKeySequence>
#include <X11/keysym.h>
Server::Server(QObject* parent) :
QObject(parent),
socket_(new QTcpSocket(this)),
//Finds out message size. It does not depend on message content.
messageSize_(Message(Message::Action::KEY_PRESS, Qt::Key_0).seriali... |
/*! @file
@brief DIFF差分表示
@author MIK
@date 2002/05/25 ExecCmd を参考にDIFF実行結果を取り込む処理作成
@date 2005/10/29 maru Diff差分表示処理を分離し、ダイアログあり版・ダイアログなし版の両方からコール
*/
/*
Copyright (C) 1998-2001, <NAME>
Copyright (C) 2001, GAE, YAZAKI, hor
Copyright (C) 2002, hor, MIK
Copyright (C) 2003, MIK, ryoji, genta
Copyright (C) 2004... |
// TnzCore includes
#include "tsystem.h"
#include "tstopwatch.h"
#include "tthreadmessage.h"
#include "timagecache.h"
#include "tlevel_io.h"
#include "trasterimage.h"
#include "timageinfo.h"
#include "trop.h"
#include "tsop.h"
// TnzLib includes
#include "toonz/toonzscene.h"
#include "toonz/sceneproperties.h"
#inclu... |
// Copyright 2014 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
// Original code is licensed as follows:
/*
* Copyright 2006 <NAME>.
*
* Lic... |
#include "RecoMET/METAlgorithms/interface/CSCHaloAlgo.h"
#include "FWCore/Common/interface/TriggerNames.h"
/*
[class]: CSCHaloAlgo
[authors]: <NAME>, The University of Florida
[description]: See CSCHaloAlgo.h
[date]: October 15, 2009
*/
using namespace reco;
using namespace std;
using namespace edm;
#include ... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "mkldnn_concat_node.h"
#include <map>
#include <utility>
#include <vector>
#include <mkldnn_extension_utils.h>
#include "details/ie_exception.hpp"
#include <legacy/ie_layers.h>
#include "mkldnn.hpp"
#include "mkldnn/iml_t... |
//
// AudioMixerSlave.cpp
// assignment-client/src/audio
//
// Created by <NAME> on 11/22/16.
// Copyright 2016 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "AudioMixerSlave.h"
#in... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2021 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... |
//-----------------------------------------------------------------------------
// Copyright (c) 2015 GarageGames, LLC
//
// 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 restrictio... |
/* Copyright (C) 2015 Ion Torrent Systems, Inc. All Rights Reserved. */
//////////////////////////////////////////////////////////////////////////////
// Derived from QSimScan project, released under MIT license
// (https://github.com/abadona/qsimscan)
//////////////////////////////////////////////////////////////////... |
#include <mex.h>
#include <stdio.h>
#include <map>
#include <string>
#include "../GCoptimization.h"
// MATLAB 2014a: mxCreateReference is NO LONGER AVAILABLE :(
//extern "C" mxArray *mxCreateReference(const mxArray*); // undocumented mex function
#define GCO_EXPORT(func) \
extern "C" void func(int nlhs, mxArray *p... |
//===- VectorToSCF.cpp - Conversion from Vector to mix of SCF and Std -----===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
/*! @file
@brief ファイル読み込みクラス
@author Moca
@date 2002/08/30 新規作成
*/
/*
Copyright (C) 1998-2001, <NAME>
Copyright (C) 2002, Moca, genta
Copyright (C) 2003, Moca, ryoji
Copyright (C) 2006, rastiv
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held li... |
/*
* Copyright (c) 2014, 2020, 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 ... |
// Project2.cpp : Ce fichier contient la fonction 'main'. L'exécution du programme commence et se termine à cet endroit.
//
#define WIN32_LEAN_AND_MEAN
//#include <windows.h>
//#include <winsock2.h>
//#include <ws2tcpip.h>
#include <stdlib.h>
#include <stdio.h>
#include "pch.h"
#include "framework.h"
#i... |
#include "triggers.h"
#include <iostream>
#include <sstream>
#include <deque>
#include <map>
#include "ast/all.h"
using namespace Mugen;
using namespace TriggerHandler;
static const std::string getNextFunctionName(){
/* Used to generate a useable function to handle infix's and unary's */
static int FUNCTION... |
/*************************************************************************
This file is part of the ParaNut project.
Copyright (C) 2019 <NAME> <<EMAIL>>
Hochschule Augsburg, University of Applied Sciences
Redistribution and use in source and binary forms, with or without modification,
are permitted pro... |
#include "Pch.h"
#include "GameResources.h"
#include "Item.h"
#include "Ability.h"
#include "Building.h"
#include "BaseTrap.h"
#include "Ability.h"
#include "Language.h"
#include "Game.h"
#include "GameGui.h"
#include "Level.h"
#include <ResourceManager.h>
#include <SoundManager.h>
#include <Mesh.h>
#include <Scene.h>
... |
/*
* File: testAnEnIS.cpp
* Author: <NAME> <<EMAIL>>
*
* Created on Aug 4, 2018, 4:09:20 PM
*/
#include <numeric>
#include "testAnEnIS.h"
#include "boost/bimap/bimap.hpp"
#include "boost/assign/list_of.hpp"
#include "boost/assign/list_inserter.hpp"
#include "ForecastsPointer.h"
#include "ObservationsPointer.h"... |
#include "LCToSCAssociatorByEnergyScoreImpl.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "SimDataFormats/CaloAnalysis/interface/SimCluster.h"
LCToSCAssociatorByEnergyScoreImpl::LCToSCAssociatorByEnergyScoreImpl(
edm::EDProductGetter const& productGetter,
bool hardScatterOnly,
std:... |
/* Copyright 2011 SRI International
* See ICENSE for other credits and copying information
*/
#include "util.h"
#include <event2/event.h>
#include <event2/buffer.h>
#include <event2/bufferevent.h>
#include <event2/listener.h>
#include <errno.h>
#ifdef _WIN32
# undef near
# undef far
# define ENOTCONN WSAENOTCONN
... |
//
// ApplicationCompositor.cpp
// interface/src/ui/overlays
//
// Created by <NAME> on 5/27/14.
// Copyright 2014 High Fidelity, Inc.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
//
#include "ApplicationComposito... |
/**
* Copyright (c) 2017-present, Facebook, 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 ... |
//
// Created by <NAME> on 3/18/18.
//
#define MAX(x, y) (((x) > (y)) ? (x) : (y))
#define MIN(x, y) (((x) < (y)) ? (x) : (y))
#include "EditorGUI.hpp"
#include <Logger.hpp>
#include "components/MeshRenderer.hpp"
#include <Plane.hpp>
#include <string>
#include "Material.hpp"
#include "Logger.hpp"
#ifndef EMSCRIPTEN
/... |
// #include <iostream>
// #include <avatar_locomanipulation/ik_module/ik_module.hpp>
// #include <avatar_locomanipulation/tasks/task.hpp>
// #include <avatar_locomanipulation/tasks/task_6dpose.hpp>
// #include <avatar_locomanipulation/tasks/task_6dpose_wrt_midfeet.hpp>
// #include <avatar_locomanipulation/tasks/task_6... |
#include "pch.h"
typedef struct {
unsigned long total[2]; /*!< number of bytes processed */
unsigned long state[8]; /*!< intermediate digest state */
unsigned char buffer[64]; /*!< data block being processed */
unsigned char ipad[64]; /*!< HMAC: inner padding */
unsigned char opad[64]; /*!< HMAC: outer ... |
// MIT License
// Copyright (c) 2020 <NAME>, <NAME>, <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... |
//
// cache.cpp
// MemoryCrawler
//
// Created by larryhou on 2019/4/9.
// Copyright © 2019 larryhou. All rights reserved.
//
#include "cache.h"
#include <sys/stat.h>
#include <string>
SnapshotCrawlerCache::SnapshotCrawlerCache()
{
__sampler.begin("SnapshotCrawlerCache");
}
void SnapshotCrawlerCache::open(co... |
/*
* Main authors:
* <NAME> <<EMAIL>>
*
* This file is part of Unison, see http://unison-code.github.io
*
* Copyright (c) 2016, RISE SICS AB
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditio... |
//--------------------------------------------------------------------------
//
// Environment:
// This software is part of the EvtGen package developed jointly
// for the BaBar and CLEO collaborations. If you use all or part
// of it, please give an appropriate acknowledgement.
//
// Copyright Informat... |
#include "Test_Math_Common.hpp"
class Test_Quaternion : public ::testing::Test
{
protected:
virtual void SetUp() {}
virtual void TearDown() {}
};
//------------------------------------------------------------------------------
TEST_F(Test_Quaternion, Basic)
{
const Quaternion sample1 = Quaternion::m... |
// C++.
#include <cassert>
#include <sstream>
// Qt.
#include <QDialog>
#include <QPushButton>
#include <QSortFilterProxyModel>
#include <QStandardItemModel>
#include <QVariant>
// Infra.
#include <QtCommon/Util/QtUtil.h>
// Local.
#include <RadeonGPUAnalyzerGUI/include/qt/rgTargetGpusDialog.h>
#include <RadeonGPUAn... |
/* -------------------------------------------------------------------------- *
* OpenMM *
* -------------------------------------------------------------------------- *
* This is part of the OpenMM molecular simulation toolkit originating from *
... |
/* Clusters of voronoi nodes are analyzed and then compacted to a single
* voronoi node for each cluster.
* Different methods of pruning.
* Useful in material science where the high symmetry voronoi nodes
* are taken as interstitial sites
* Author: <NAME>
* Date: Dec 09, 2013
*/
#include <vector>
#include <se... |
// =============================================================================
// Copyright 2017 National Technology & Engineering Solutions of Sandia, LLC
// (NTESS). Under the terms of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
//
// Permission is hereby grante... |
/**
* @file SQLExec.cpp - implementation of SQLExec class
* @Professor: <NAME>
* @Students: <NAME>, <NAME>
* @see "Seattle University, CPSC5300, Summer 2018"
*/
#include <algorithm>
#include "SQLExec.h"
#include "EvalPlan.h"
using namespace std;
using namespace hsql;
// define static data
Tables *SQLExec::tables ... |
#include <iostream>
#include <string>
#include <fstream>
#include <set>
#include <llvm/Support/CommandLine.h>
#include <nlohmann/json.hpp>
typedef nlohmann::json json_t;
#define ENABLE_FIX_ICS_2019_RESULTS FALSE
static llvm::cl::opt<std::string> InputFilename(
llvm::cl::Positional, llvm::cl::Required,
llvm::cl:... |
/*
*
* Author: <NAME>
*
* This program is intended to be controlling robotic arm Lynxmotion AL5D through the leap motion sensor
* This program must be run as user root!
*
*/
/* ----------------------------------------------------------------------------------------- */
#include <iostream>
#include <fcntl.h>
#in... |
/* bitcalc.c: utilities to deal with bits and masks
Copyright (c) 2012-2016, <NAME>
<EMAIL>, www.retrocmp.com
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction,... |
#include "tsmToUTM.h"
//============================================================================
// Name : tsmUTM
// Author : NULL
// Version : 2012-7-25 V1.0
// Copyright : yg
// Description : UTM投影转换代码
//============================================================================
void... |
int btX ,
xGf ,
hgr ,yDv , lYxD ,
YuE ,T/*l*/, nJj
, xG, YvO95w
,Ofz,lF15
, /*b1K*/
KX6Er, iS3
, dS,
ACY//qh
,T1f4 ,
UK,R , Rv1cGU/*ir*/, x9/*NE*/,aBb,Vnp,ZEp
, pjZg //spBN
,
Kx,D,
nI3, pj
,
/*IDC*/ov4qO , qLjZA,jW2e, h , QMOXK , KgVO,h0Wx, a7
,
P5EdD ;
void
f_f0/*e*/()/*P0pv*/{
volatile ... |
// Copyright (c) 2011 <NAME> <<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 DISCLAIM... |
#include "MyMaterials.hh"
#include "G4UnitsTable.hh"
#include "G4Material.hh"
#include "G4MaterialTable.hh"
#include "G4NistManager.hh"
MyMaterials::MyMaterials() {
CreateMaterials();
}
MyMaterials::~MyMaterials() {}
MyMaterials* MyMaterials::instance = 0;
MyMaterials* MyMaterials::GetInstance() {
if (instance... |
#include <cmath>
#include "mtcnn.h"
bool cmpScore(Bbox lsh, Bbox rsh) {
if (lsh.score < rsh.score)
return true;
else
return false;
}
bool cmpArea(Bbox lsh, Bbox rsh) {
if (lsh.area < rsh.area)
return false;
else
return true;
}
//MTCNN::MTCNN(){}
MTCNN::MTCNN(const std::string &model_path) {
std::vector... |
// Copyright 2019 <Huawei Technologies Co., Ltd>
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ... |
#include "mjolnir/restrictionbuilder.h"
#include "mjolnir/graphtilebuilder.h"
#include "mjolnir/dataquality.h"
#include "mjolnir/osmrestriction.h"
#include "mjolnir/complexrestrictionbuilder.h"
#include <future>
#include <thread>
#include <queue>
#include <boost/filesystem/operations.hpp>
#include "midgard/logging.h... |
/*
* Copyright (c) 2016, ARM Limited, All Rights Reserved
* SPDX-License-Identifier: Apache-2.0
*
* 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/LICE... |
/*
* GraphicsDriver.cpp
* Copyright 1999-2000 Y.Takagi. All Rights Reserved.
*/
#include <algorithm>
#include <cstdio>
#include <cstdarg>
#include <Alert.h>
#include <Bitmap.h>
#include <Debug.h>
#include <Message.h>
#include <PrintJob.h>
#include <Region.h>
#include <TextControl.h>
#include <TextControl.h>
#inclu... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.