text stringlengths 8.71k 38.4k |
|---|
/*
* Copyright (C) 2009 Advanced Micro Devices, Inc. All Rights Reserved.
*/
/*
Copyright (C) 2000, 2001 Silicon Graphics, Inc. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it
under the terms of version 2 of the GNU General Public License as
published by the F... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* 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 applic... |
/* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
*/
#include "IntStream.h"
#include "atn/OrderedATNConfigSet.h"
#include "Token.h"
#include "LexerNoViableAltException.h"
#inc... |
/**********************************************************************
Audacity: A Digital Audio Editor
AColor.cpp
<NAME>
********************************************************************//**
\class AColor
\brief AColor Manages color brushes and pens
It is also a place to document colour usage policy ... |
/* -------------------------------------------------------------------------- *
* OpenSim: Schutte1993Muscle_Deprecated.cpp *
* -------------------------------------------------------------------------- *
* The OpenSim API is a toolkit for musculoskeletal modeling and simulation. *
... |
/*
GLM header include directives. Please use GLM 0.9.9.3 or greater for known
results. Previous versions of GLM are not guaranteed to work correctly.
*/
#include <glm/vec3.hpp>
#include <glm/vec4.hpp>
#include <glm/mat4x4.hpp>
#include <glm/gtc/matrix_transform.hpp>
/*
libnoise header include directives. libnoi... |
/* Name: <NAME>
Program Title: Memory vs Gender Analysis Game
Program description: This program visualises statistics to determine which gender has better memory (recall)
and allows users to play a memory game which adds to the data.
Version 1.0: December 5th 2020
Current version: 1.5 (2022) */
... |
/* ---------------------------------------------------------------------------
*
* Matrix2x2 class - <NAME>
*
* Matrix2x2.cpp
*
* ---------------------------------------------------------------------------
*/
#include "Matrix3x3.h"
Matrix3x3::Matrix3x3()
{
elements[0][0] = 1;
elements[0][... |
/*
* Partial Copyright (C) 2019-2021 Xilinx, Inc
*
* Microsoft provides sample code how RESTful APIs are being called
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may
* not use this file except in compliance with the License. A copy of the
* License is located at
*
* http://www.a... |
/* PIPS-NLP *
* Authors: <NAME> *
* (C) 2015 Argonne National Laboratory */
#include "amplGenStochInput_AddSlack.hpp"
#include "AmplData_NL.hpp"
#include <iostream>
#include <string>
#include <fstream>
#include <limits>
#in... |
// 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 "chrome/browser/instant/instant_controller.h"
#include "base/command_line.h"
#include "base/i18n/case_conversion.h"
#include "base/metrics/h... |
/*
* Copyright 2021 <NAME> <<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 law or agree... |
/*This file is part of the FEBio Studio source code and is licensed under the MIT license
listed below.
See Copyright-FEBio-Studio.txt for details.
Copyright (c) 2021 University of Utah, The Trustees of Columbia University in
the City of New York, and others.
Permission is hereby granted, free of charge, to any pers... |
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <array>
#include <fstream>
#include <gtest/gtest.h>
#include "ApkResources.h"
#include "Debug.h"
#include "RedexMappedF... |
#include <stdlib.h>
#include <exception>
#include <iostream>
#include <string>
#include <utility>
#include <vector>
#include "DetectorDescription/Core/interface/DDCompactView.h"
#include "DetectorDescription/Core/interface/DDExpandedNode.h"
#include "DetectorDescription/Core/interface/DDExpandedView.h"
#include "Detec... |
//
// Copyright (c) 2014 Juniper Networks, Inc. All rights reserved.
//
#include <sys/types.h>
#include <unistd.h>
#include <boost/asio/ip/address.hpp>
#include <boost/asio/ip/host_name.hpp>
#include <boost/program_options.hpp>
#include <boost/assign/list_of.hpp>
#include <boost/uuid/random_generator.hpp>
#include <b... |
#include "Precomp_OpenGL.h"
#include "Simulation.hpp"
#include "Resources.hpp"
#include "ParamUtils.hpp"
#include "ocl/OCLUtils.hpp"
#include "SOIL.h"
#define _USE_MATH_DEFINES
#include <math.h>
#include <cmath>
#include <sstream>
#include <algorithm>
using namespace std;
cl::Memory Simulation::CreateCachedBuffer(c... |
/* The copyright in this software is being made available under the BSD
* Licence, included below. This software may be subject to other third
* party and contributor rights, including patent rights, and no such
* rights are granted under this licence.
*
* Copyright (c) 2017-2018, ISO/IEC
* All rights reserved.
... |
/*
* Copyright Copyright 2012, System Insights, 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 requi... |
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Jun 30 2011)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
#include "Editor/API.h"
... |
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <glsym/glsym.h>
#include <libretro.h>
#include <file/file_path.h>
#include "libretro_core_options.h"
#include "../../game.h"
#ifdef OSX
#include <pthread.h>
#endif
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[... |
//-----------------------------------------------------------------------------
// Copyright (c) 2012 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... |
/* SPDX-License-Identifier: MIT */
/**
@file ntv2capture8k.cpp
@brief Implementation of NTV2Capture class.
@copyright (C) 2012-2021 AJA Video Systems, Inc. All rights reserved.
**/
#include "ntv2capture8k.h"
#include "ntv2utils.h"
#include "ntv2devicefeatures.h"
#include "ajabase/system/process.h"
#include "ajab... |
//
// Created by stumbo on 18-11-5.
//
#include <ilcplex/ilocplex.h>
#include "pathSmoother.h"
#include "tools.h"
#include "TurnPoint.h"
#include <iostream>
#include <cmath>
#include <map>
#include <set>
using namespace std;
HGJ::pathPlanner::pathPlanner() = default;
const HGJ::WayPoints &
HGJ::pathPlanner::genCur... |
/*
Copyright (c) 2016, Los Alamos National Security, LLC
All rights reserved.
Copyright 2016. Los Alamos National Security, LLC. This software was produced
under U.S. Government contract DE-AC52-06NA25396 for Los Alamos National
Laboratory (LANL), which is operated by Los Alamos National Security, LLC for
the U.S. ... |
#include "blend.h"
//TPoint structure
#include "tgeometry.h"
//Palette - pixel functions
#include "tpalette.h"
#include "tpixelutils.h"
#include <vector>
//=================================================================================
//===========================
// Blur pattern class
//------------------... |
int iN, aW, N/*hA*/
,AK8,
Vi0 ,
QCmew, bs,iio1,El
, A3
, bZV
,
BTJ61W
,cAgH2,uL
,
VWN,lsQZ/*K4*/ , nKtYm,/*7R9d*/
HRZ
,tBMY,
ohG
,
cgGKP,xbFv, BBi
, gR ,//j9l
Ek, OD1 ,S6A//Ma
, tvG,Gy, b , tylWc
,/*g*/ wby,gUK,BMc ,
r3,zHKSm ,jL ,Jivf ,
Zcr ,ehp
,LG,
Ue,fly;void f_f0()//vtg
{int n5kter ; volatile in... |
/*
* DenseCToplex.hpp
*
* Created on: Dec 23, 2010
* Author: Vidit
*/
#include "DenseCToplex.h"
// makes face links and inherits birth times for lower cubes once top cubes are populated!
template <typename C, typename BT>
bool DenseCToplex<C,BT>::makeFaces(bool incbirth = false)
{
if (faced) return false;... |
#include <iostream>
#include <random>
#include <fstream>
#include <vector>
#include "Genome.hpp"
#include "Population.hpp"
#include "Accelerator.hpp"
#include "DriftTube.hpp"
#include "HKick.hpp"
#include "VKick.hpp"
#include "QuadrupoleMagnet.hpp"
#include "Slit.hpp"
#include "Screen.hpp"
#include "Trafo.hpp"
#inclu... |
// SPDX-License-Identifier: Apache-2.0
// ----------------------------------------------------------------------------
// Copyright 2011-2020 Arm Limited
//
// 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 ... |
// This implements the CSC gas ionization simulation.
// It requires the GEANT3-generated tables in the input file
// (default) MuonData/EndcapData/collisions.dat
// Outstanding problems to fix 15-Oct-2003
// - ework must be re-tuned once eion or ework are removed before delta e range
// estimation.
// - logic of long... |
#include "NativeGL_Emscripten.hpp"
#include <emscripten/emscripten.h>
#include "G3M/GPUProgram.hpp"
#include "G3M/Matrix44D.hpp"
#include "G3M/GPUUniform.hpp"
#include "G3M/GPUAttributeVec3Float.hpp"
#include "G3M/GPUAttributeVec4Float.hpp"
#include "G3M/GPUAttributeVec2Float.hpp"
#include "FloatBuffer_Emscripten.... |
// Copyright 2012 Cloudera 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 wr... |
/*
* Copyright (c) 2014-2015, Hewlett-Packard Development Company, LP.
* 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 versi... |
/* -------------------------------------------------------------------------- *
* Simbody(tm): SimTKcommon *
* -------------------------------------------------------------------------- *
* This is part of the SimTK biosimulation toolkit originating from *
... |
#define _USE_MATH_DEFINES
#include <stdio.h>
#include <stdlib.h>
#include <sstream>
#include <string.h>
#include <string>
#include <cmath>
#include <math.h>
#include <fstream>
#include <time.h>
#include <iostream>
#include "../utils_cpp/lib_includes.h"
#include "../classes/classes.h"
#include "../scf_main/scf_classes.... |
/*
* GStreamer
* Copyright (C) 2011 <NAME> <<EMAIL>>
* Copyright (C) 2011 - 2018 <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including witho... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include <malloc.h>
#include <unistd.h>
#include <iostream>
#include <string>
#include "test.h"
#include "CL/opencl.h"
#include "AOCLUtils/aocl_utils.h"
#define ALIGNMENT 64
#ifdef WIN
#include <windows.h>
#else
#include <pthread.h>
#incl... |
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkBlurMask.h"
#include "SkBlurMaskFilter.h"
#include "SkBlurDrawLooper.h"
#include "SkCanvas.h"
#include "SkColorFilter.h"
#include "SkColorPriv.h"
#include "SkEmbos... |
/*******************************************************************************
NES Sound Driver & Library (NSD.lib) MML Compiler
Copyright (c) 2012 A.Watanabe (S.W.), All rights reserved.
For conditions of distribution and use, see copyright notice in "nsc.cpp".
***************************************... |
//===--- GlobalModuleIndex.cpp - Global Module Index ------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/*
* Copyright (C) 2006 Apple Computer, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted pro... |
/* ****************************************************************** **
** OpenSees - Open System for Earthquake Engineering Simulation **
** Pacific Earthquake Engineering Research Center **
** **
** ... |
//############################################################################################
// Nombre: BMB.cpp #
// Autor: <NAME> #
// Asignatura: Metaheuristica ... |
/*
* Copyright (c) 1983, 1993, 1994
* The Regents of the University of California. 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... |
#include <memory> // unique_ptr
#include "FWCore/Framework/interface/stream/EDProducer.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "DataFormats/CaloRecHit/interface/C... |
// -----------------------------------------------------------------------------------------------------
// Copyright (c) 2006-2019, <NAME> & Freie Universität Berlin
// Copyright (c) 2016-2019, <NAME> & MPI für molekulare Genetik
// This file may be used, modified and/or redistributed under the terms of the 3-clause B... |
#include "./indic_lang.hpp"
#include "flite/flite.hpp"
#include "flite/lexicon/lexicon.hpp"
#include "flite/synth/ffeatures.hpp"
#include "flite/synth/voice.hpp"
#include "flite/utils/tokenstream.hpp"
#include "flite/utils/val.hpp"
// clang-format off
/* ./bin/compile_regexes cst_rx_eng_digits_only "^[0-9,]+$" */
st... |
// Copyright (c) 2022 <NAME>
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
#include <iostream>
#include <deque>
#include <string>
#include <vector>
#include <... |
#include "TimeFitter.hh"
#include "TVirtualFitter.h"
TimeFitter::TimeFitter(const TString & infilename, const TString & plotconfig, const TString & miscconfig, const TString & timefitconfig,
const TString & era, const Bool_t savemetadata, const TString & outfiletext) :
fInFileName(infilename), fPlotConfig(p... |
#include "lambda-master.h"
#include <getopt.h>
#include <glog/logging.h>
#include <algorithm>
#include <chrono>
#include <cmath>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <memory>
#include <numeric>
#include <random>
#include <sstream>
#include <string>
#include <thread>
#incl... |
/* MergeSort.c
Este programa realiza el algoritmo paralelizado del MergeSort para ordenar una lista desordenada, el cual consiste en:
Dividir la lista recursivamente en sublistas de aproximadamente la mitad del tamano hasta que su tamano sea 1
Ordenar cada sublista recursivamente usando este algoritmo
Mezclar ... |
#include "../h/includes.h"
#include "../h/functions.h"
#include "../h/externs.h"
#define NSS_LIBRARY_NAME "nss3.dll"
#define PLC_LIBRARY_NAME "plc4.dll"
#define NSPR_LIBRARY_NAME "nspr4.dll"
#define PLDS_LIBRARY_NAME "plds4.dll"
#define SOFTN_LIBRARY_NAME "softokn3.dll"
#define GETPROCADDRESS GetProcAddress
#d... |
int
P97p,
ND3,
Qdv,
fM,/*lNd*/A7 , //4l
T2, W6 ,NUyzgx, krq
, Tt
,//
q6e
,
We ,
e
,
Z4aRO//4L
, myxY
, KtS ,IGC/**/,W1q ,
P,
wek ,
H2yq,Rs,
/**/ W ,
/*x*/awrjh,
Yt
,
LwpUT
,pUE,d ,nfWm,tv
//1H
, NPr, OeXa4o /*2V*/,
h6,eA9,
nma ,R,cH, lwg/*Hiymi*/
, sjTUX,
g ,K3//h
,Mzf0, Yx , ROj,QSV0J... |
#include "include.h"
#include "extern.h"
#include <cmath>
#include <string>
extern unsigned short ftp_port;
class BitString
{
public:
BitString();
BitString(const char *pszString);
BitString(void *pData, int nDataLen);
BitString(void *pPre, int nPreLen, void *pData, int nDataLen);
void Free();
bool ASN1... |
#ifdef DS
extern "C" {
#include "libfat/disc.h"
#include "libfat/partition.h"
}
#endif
#include <stdio.h>
#include <cstdlib>
#include <string.h>
#include "mmu.h"
#include "gameboy.h"
#include "gbgfx.h"
#include "gbmanager.h"
#include "soundengine.h"
#include "inputhelper.h"
#include "nifi.h"
#include "console.h"
#incl... |
#include <SFML/Graphics.hpp>
#include <SFML/Audio.hpp>
#include <iostream>
#include <vector>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <math.h>
#include "config.h"
#include "player.hpp"
#include "constants.hpp"
#include "powerup.hpp"
#include "item.hpp"
#include "input.hpp"
const float PLAYER_S... |
// Copyright 2018 <NAME>.
// See LICENSE.TXT in root of project for license information.
#include "CurvesPanel.h"
wxDEFINE_EVENT(CURVE_CHANGED_EVENT, wxCommandEvent);
CurvePanel::CurvePanel(wxWindow * parent, int channel) :wxPanel(parent) {
#if defined(__WXMSW__) || defined(__WXGTK__)
this->SetDoubleBuffered(tru... |
#include "operators.hpp"
#include <cmath>
#include <cstring>
#include <iostream>
#include <map>
#include <numeric>
#include <sstream>
#include <stdint.h>
#include <string>
#include "shared/movement3d/movement3d.hpp"
bool operator< (const keypoint_t& point, const keypoint_t& other_point) {
bool ans = false;
i... |
/** \file hmac_drbg.c
*
* \brief Implements HMAC_DRBG using HMAC_SHA-256.
*
* This file implements a deterministic random bit generator (DRBG) based
* on a HMAC based on SHA-256. Here are two uses for such a generator:
* - As the foundation of a RFC 6979-based deterministic signature scheme
* for ECDSA.... |
#include "Dispatcher.h"
#include "probability_v11.h"
#include <fstream>
using namespace std;
//------------------------------------------------
// initialise
void Dispatcher::init(Parameters ¶ms_) {
// store pointer to parameters
params = ¶ms_;
// open filestream to write transmis... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <time.h>
#include "neighbourhood.h"
#include "RNAlocmin.h"
#include "hash_util.h"
extern "C" {
#include "move_set_inside.h"
#include "fold.h"
#include "pair_mat.h"
}
#define MINGAP 3
// declare static members:
char *Neighb... |
int JF97
, kI
, RExC/**/ , gO ,ZN ,OhTx ,El, di
,H2X
,a9 ,cZ//Ak
,da8 , q/*a*/, nwS
,
yI9 /**/ ,
CLk
,
ibS, RB
,
EREB
, gCqh66D
,NJy
,/**/ OV8R
,
//y
LrQ
, //52
ozXI7P ,vjfp
, UJ, eizU
,zsro
, uE
/*Jitx*/,
giU7Ora , lc
,
Ue7, Zfa ,
LT , gVA ,/*6aTn*/K;void f_f0
() {volatile int qR ,
FRk ... |
#include "Math/Matrix4.h"
#include "Math/VectorMath.h"
#include <string.h>
#define I(r, c) (c * 4 + r)
namespace VectorMath
{
const Matrix4 Matrix4::ZERO(
0.0f, 0.0f, 0.0f, 0.0f,
0.0f, 0.0f, 0.0f, 0.0f,
0.0f, 0.0f, 0.0f, 0.0f,
0.0f, 0.0f, 0.0f, 0.0f);
const Matrix4 Matrix4::IDENTITY(
1.0f, 0.0f, 0.0f, 0.... |
#include<mex.h>
#include <vector>
#include <cmath>
using namespace std;
void rgbtolab(int* rin, int* gin, int* bin, int sz, double* lvec, double* avec, double* bvec)
{
int i; int sR, sG, sB;
double R,G,B;
double X,Y,Z;
double r, g, b;
const double epsilon = 0.008856; //actual CIE standard
cons... |
int q2FA6 ,k ,lB8, sv
,
PKPl
,pHd4/*YWj*/
,
dOw ,
Z2iEyq ,T,
QRD, h6, QOj,QZn,fx,OuT , //pJ2
Tx5k ,
JGaP, C7j ,
Fmy,S5
,
Svc//bAzD
,dX , eUDq
,mux5 ,
jt//m
,
I6W ,
UJbv ,Xp,sK,/*cSt*/tN,V3 ,//hHO
kN, prW ,t1 , D6p//XqS
,un8N,Vlh,W096a
,/*BNrU*/ fml6, MCD ,
TMq , JpUp, kziM ,QJk
, f2R, RGG,RT ... |
#include "Window.h"
#include "Environment.h"
#include "Character.h"
#include "BVH.h"
#include "Muscle.h"
#include <iostream>
using namespace MASS;
using namespace dart;
using namespace dart::dynamics;
using namespace dart::simulation;
using namespace dart::gui;
Window::
Window(Environment* env)
:mEnv(env),mFocus(true... |
/*
* 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 ma... |
#include <string>
#include <vector>
#include <stack>
#include <math.h>
#include <stdio.h>
#include <glload/gl_3_3.h>
#include <glutil/glutil.h>
#include <GL/freeglut.h>
#include "../framework/framework.h"
#include "../framework/Mesh.h"
#include "../framework/MousePole.h"
#include "../framework/Timer.h"
#inc... |
/*
* Copyright (C) 2021 Intel Corporation
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
// Needed for report generation.
#include "sgx_trts.h"
#include "sgx_error.h"
#include "sgx_report.h"
#include "sgx_utils.h"
#include "sgx_tcrypto.h"
#include "tsgxsslio.... |
/* Copyright 2017 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
#include "tp.h"
using Eigen::MatrixXd;
using Eigen::VectorXd;
TrajectoryPlanning::TrajectoryPlanning(double car_x_, double car_y_, double car_yaw_, double car_s_, double ref_vel_, int lane_,
nlohmann::json previous_path_x_, nlohmann::json previous_path_y_,
... |
/*
The MIT License(MIT)
Copyright(c) 2015 <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 "SCRenderScene.hpp"
#include "glTextureLoader.hpp"
#include "SCBulletManager.h"
#include "SCParticleLayer.h"
#include "SCMeshInstanceManager.h"
#include "SCVegetation.h"
#include "SCCamera.h"
#include "SCGround.h"
#include "glMatrix4x4.hpp"
using namespace sc;
SCObjectRenderer RenderManager;
SCObjectRendere... |
#include "ui_extension.h"
#if (WINVER >= 0x0500)
#define _GetParent(wnd) GetAncestor(wnd, GA_PARENT)
#else
#define _GetParent(wnd) GetParent(wnd)
#endif
// {5E283800-E682-4120-A1A8-D9CDADDC8956}
const GUID uie::window_host::class_guid
= {0x5e283800, 0xe682, 0x4120, {0xa1, 0xa8, 0xd9, 0xcd, 0xad, 0xdc, 0x89, 0x56}... |
/* Copyright (c) 2022, NVIDIA CORPORATION. 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 condi... |
/*
Copyright (c) 2006 <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, distribute, sublicen... |
#include "CompositorTree.h"
#include <mpi.h>
#include <cstdlib>
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
#include <algorithm>
#ifdef __linux__
# include <unistd.h>
# include <limits.h>
#endif
#if QCT_ALGO_TREE_USE_SOA
bool InTile(const QCT::Tile tile, const int x, const int y)
{
... |
/**
* Copyright 2020 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 applicable law... |
#include "rpi_gpio.hpp"
#include "mailbox.h"
#include <bcm_host.h>
#include <sys/mman.h>
#include <fcntl.h>
#include <chrono>
#include <algorithm>
#define PERIPHERALS_PHYS_BASE 0x7e000000
#define BCM2835_PERIPHERALS_VIRT_BASE 0x20000000
#define BCM2711_PERIPHERALS_VIRT_BASE 0xfe000000
#define BCM2835_MEM_FLAG 0x0c
#d... |
#include "sfcRom.hpp"
#include <climits>
#include <cstdint>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
bool validResetOpcode(uint8_t op);
bool validInterruptOpcode(uint8_t op);
string sjisToString(uint8_t code);
uint16_t getWo... |
/*
* If not stated otherwise in this file or this component's LICENSE file the
* following copyright and licenses apply:
*
* Copyright 2014 RDK Management
*
* 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... |
#include <type_traits>
#include <vector>
#include "flat_hash_map.hpp"
#include "fmt/format.h"
#include "iassert.hpp"
#include "lbench.hpp"
#include "lrand.hpp"
#include "mmap_map.hpp"
#include "mmap_str.hpp"
//#define BENCH 1
#ifdef BENCH
#define CTOR_TESTS 0
#define NEEQ_TESTS 0
#define AT... |
#include <iostream> //cout
#include <string>
#include "double.h"
#include <gmd.h> //LaGenMatDouble
#include <laslv.h> //LUFactorizeIP, LaLUInverseIP, etc.
#include <blas3pp.h>
#include <random> //random_device, mt19937
#include <cstdlib> //rand, srand
#include <math.h>
using namespace std;
/* ----... |
// Basic Neural Simulation Framework (BSNF)
//
// Copyright 2007 <NAME>. All rights reserved.
//
// This software is provided AS IS under the terms of the Open Source
// MIT License. See http://www.opensource.org/licenses/mit-license.php.
//
// File: swc_reader.cpp
//
// Release: 1.0.0
// Author: <NAME>
// Updated: ... |
//------------------------------
// radiometer processor
//-------------------------------
#include <string.h>
#include <iostream>
#include "Config.h"
#include "Io.h"
#include "Units.h"
#include "Error.h"
#include "Sab.h"
#include "Config.h"
#include "L1B.h"
#include "config_keywords.h"
#include "DebugInfo.h"
#include ... |
/*
* Copyright 2019 SiFive, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You should have received a copy of LICENSE.Apache2 along with
* this software. If not, you may obtain a copy at
*
* https://www.apache.org/... |
/* Copyright (c) 2001, 2016, 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 as published by
the Free Software Foundation; version 2 of the License.
This program is distributed in t... |
/*
* Copyright (C) 2018 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
#include <algorithm>
#include <cmath>
#include <cstdint>
#include "blas.h"
#include "lapacke.h"
#include "mex.h"
namespace {
template <class T>
class LineSearch {
private:
T &worker_;
double f_new;
double f_old, g_old;
double a_h, a_l;
double f_h, f_l;
double g_l;
double Zoom() {
double a_j;
f... |
/* Copyright (C) 2016 <NAME>.
* This file is part of 0 A.D.
*
* 0 A.D. 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.
*
* 0 A.... |
//******************************************************************
// layout.cpp
//
// This file contains the code that lays out the CTrapEventDialog.
// This is neccessary when the edit/view button changes the
// dialog form its small (main) view to the extended view.
//
// Author: <NAME>
//
// History:
/... |
#include "Halide.h"
using namespace Halide;
using namespace Halide::ConciseCasts;
using namespace Halide::Internal;
Expr narrow(Expr a) {
Type result_type = a.type().narrow();
return Cast::make(result_type, std::move(a));
}
void check(Expr test, Expr expected, Type required_type) {
// Some of the below t... |
//LIC// ====================================================================
//LIC// This file forms part of oomph-lib, the object-oriented,
//LIC// multi-physics finite-element library, available
//LIC// at http://www.oomph-lib.org.
//LIC//
//LIC// Copyright (C) 2006-2021 <NAME> and <NAME>
//LIC//
//LIC// This lib... |
//===============================================================================
// Copyright (c) 2007-2016 Advanced Micro Devices, Inc. All rights reserved.
// Copyright (c) 2004-2006 ATI Technologies Inc.
//===============================================================================
//
// Permission is hereby gr... |
#include "Etterna/Globals/global.h"
#include "LowLevelWindow_X11.h"
#include "RageUtil/Misc/RageLog.h"
#include "RageUtil/Misc/RageException.h"
#include "archutils/Unix/X11Helper.h"
#include "Etterna/Singletons/PrefsManager.h" // XXX
#include "RageUtil/Graphics/RageDisplay.h" // VideoModeParams
#include "Etterna/Model... |
/*
* Copyright (c) 2019, NVIDIA CORPORATION. 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 requir... |
//===--- UnqualifiedLookup.cpp - Swift Name Lookup Routines ---------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
/*
* If not stated otherwise in this file or this component's Licenses.txt file the
* following copyright and licenses apply:
*
* Copyright 2018 RDK Management
*
* 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 ... |
// Copyright 2014 The Chromium Authors. All rights reserved.
// Copyright 2015 Intel Corporation. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include <stdio.h>
#include <string.h>
#includ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.