text stringlengths 5.71k 33.7k |
|---|
/* Copyright (c) 2017, MariaDB
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 the hope that it will be useful,
but WITHOUT AN... |
/*
Copyright 2021 (c) <NAME> <<EMAIL>>
See The FreeType Project LICENSE for license terms.
Decode-only part of JBigCodec. Drop-in compatible with LibReaderEx's.
*/
#include <cstdlib>
#include <cstring>
#include "JBigDecode.h"
void JBigCodec::ByteIn()
{
unsigned int v3;
unsigned int v1 = this->read_count;
... |
#include "shapes/gdprocbox.h"
using namespace godot;
void GDProcBox::_register_methods() {
register_property<GDProcBox, float>("width", &GDProcBox::set_width, &GDProcBox::get_width, 1.0);
register_property<GDProcBox, float>("height", &GDProcBox::set_height, &GDProcBox::get_height, 1.0);
register_property<GDProcBox... |
/*
* Copyright (c) 2004, 2019, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
#include "IsometryObjective.h"
IsometryObjective::IsometryObjective(const QuadTopology& quadTop, const Eigen::VectorXd& x0) :
quadTop(quadTop), vnum(quadTop.v_n) {
refL.resize(quadTop.E.rows()); refL.setZero();
set_ref(x0);
IJV.resize(quadTop.E.rows()*36);
}
void IsometryObjective::set_ref(const Eigen::VectorX... |
/*
// Copyright (c) 2018 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.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicab... |
// Fill out your copyright notice in the Description page of Project Settings.
#include "OpenSeeComponent.h"
#include "Math/Quat.h"
// Sets default values for this component's properties
UOpenSeeComponent::UOpenSeeComponent()
{
// Set this component to be initialized when the game starts, and to be ticked every fra... |
#include "features.h"
#include "../globals.h"
#include "../render/render.h"
#include "../helpers/imdraw.h"
#include "../helpers/console.h"
#include "../helpers/entities.h"
#include "../helpers/autowall.h"
#include "../esp.hpp"
#include "../valve_sdk/interfaces/ISurface.h"
#include "../settings.h"
#include "./../helpers... |
#include "vbiE_mnornSgma_DISP.h"
bool vDisparityModule::configure(yarp::os::ResourceFinder &rf){
//set the name of the module
yarp::os::RFModule::setName(rf.check("name", yarp::os::Value("vDisparity")).asString().c_str());
// std::string moduleName =
// rf.check("name", yarp::os::Value("vDisparity")).... |
#include "MainView.hpp"
#include <iostream>
#include <SDL/SDL.h>
#include <SDL/SDL_framerate.h>
#include <SDL/SDL_gfxPrimitives.h>
#include <cmath>
#include <thread>
#include <iostream>
#include <map>
#include <memory>
#include "car/Car.hpp"
#include "utils/Log.hpp"
#include "IA/IA.hpp"
#include "car/Camera.hpp"
#inclu... |
//===-- barriers.cc - Measure barrier operation timing ----------*- C++ -*-===//
//
// Part of the LOMP 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 "SolarSystem.h"
#include "Assets.h"
#include "ecs/component/SceneNavigationCamera.h"
#include "ecs/Registry.h"
#include "imgui/imgui.h"
#include "Window.h"
#include "shared/Prefabs.h"
#include "NcEngine.h"
#include <shared/FreeComponents.h>
namespace
{
constexpr float MercuryDistance = 1.0f;
constexpr... |
#include <algorithm>
#include <cassert>
#include <cstdint>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <memory>
#include <set>
#include <string>
using namespace std;
#include "jit/llvm_ir_kernel_loader.h"
#include "command_line.h"
// #include "inc/codeobject.h"
// #include "in... |
#include "FluidSim.hpp"
/*! \brief Select boundary condition handling scheme
The vorticity reassigned to this vortex should be such that
the fluid velocity, relative to the body surface, is zero.
We can approximate this in a number of ways. Here are some options:
(a) Ignore all other contributions other tha... |
/**
* @file lriovis.cpp
* @brief
* @author <NAME> (<EMAIL>)
* @version 1.0
* @date 2021-05-14
*/
#include "lriovis.hpp"
using namespace cv;
/**
* @brief 初始化画布
* @param src 引用类型用于存储画布
* @param real_x x轴向的画布总长度起点
* @param real_y y轴向的画布总长度
* @param real_origin 画布的起点
* @... |
// -*- mode:C++; tab-width:8; c-basic-offset:2; indent-tabs-mode:t -*-
// vim: ts=8 sw=2 smarttab
/*
* Ceph - scalable distributed file system
*
* Copyright (C) 2015 Red Hat, Inc.
*
* This is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License vers... |
#include "./sbml_test1.h"
int oxygen_substrate_idx;
int glucose_substrate_idx;
int energy_cell_idx;
int ingest_oxy_cell_idx;
int ingest_glu_cell_idx;
// These are for C
// #define STATIC_RRC
#include "rrc_api.h"
#include "rrc_types.h"
// #include "rrc_utilities.h"
extern "C" rrc::RRHandle createRRIn... |
#include <cstdint>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <memory>
#include <string>
#include <vector>
#include "snarkfront.hpp"
using namespace snarkfront;
using namespace snarklib;
using namespace std;
void printUsage(const char* exeName) {
cerr << "Usage: " << exeName << " [options... |
#include <lava/sill/makers/glb-mesh.hpp>
#include <lava/sill/i-mesh.hpp>
#include "../glb/loader.hpp"
/**
* @note It is very important to be able to write this
* kind of file (generating meshes) without any access
* to impl(). Otherwise, it means that the end user
* won't be able to create its own meshes from sc... |
#include "gvbeditor.h"
#include <QApplication>
#include <QByteArray>
#include <QDir>
#include <QFileInfo>
#include <QLabel>
#include <QMessageBox>
#include <QPalette>
#include <QState>
#include <QTimer>
#include <QToolBar>
#include <QToolTip>
#include <QVBoxLayout>
#include <QtMath>
#include <optional>
#include <utili... |
// Author: <NAME>
// Email : <EMAIL>
#include <vector>
#include <string>
#include <cstring>
#include <algorithm>
#include <iostream>
#include <fstream>
#include <sstream>
#include <unordered_map>
#include <unordered_set>
#include <cmath>
#include <ctime>
#include <sys/stat.h>
#include <getopt.h>
#include <chrono>
// ... |
int /*ZM*/ j4,XLYn,
Z, Rrj
,av
, EYcHd ,BlaF//MZYOF
,
y2,
oTD ,QD
,
JSz , YkSR
, Z6/*VeaU*/,WWUA
, c , //t1A
k9M, vHE5,YflL //q
,TEK,
s3g , hi,/*ZU*/
XUJ
,DuG6 , ysVG
,zNp ,SkgRd, p9,fI ,SC6Sx , mFOD
,VTmq ,v,
Ttgrc
,zqf,PZQweY, tb ,//8Kq
K9,
TR ,
Nj
; void f_f0(){
{ //
{
volatile int F... |
#include "BBE/BrotBoxEngine.h"
#include <iostream>
#include <future>
constexpr int32_t WINDOW_WIDTH = 1280;
constexpr int32_t WINDOW_HEIGHT = 720;
// Inspired from: https://mikeash.com/pyblog/fluid-simulation-for-dummies.html
// Thank you <NAME>!
class FluidSquare {
private:
constexpr static int32_t iter = 4;
si... |
#include "frame/manager.hpp"
#include "frame/scheduler.hpp"
#include "frame/objectselector.hpp"
#include "frame/aio/aioselector.hpp"
#include "frame/aio/aiosingleobject.hpp"
#include "frame/aio/openssl/opensslsocket.hpp"
#include "frame/message.hpp"
#include "frame/file/filestream.hpp"
#include "utility/dynamictype.... |
/*
Copyright (c) 2016 Doobie (<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 rights to use, copy, modify, merge, publish, dist... |
#include <bits/stdc++.h>
#ifdef LOCAL
#include "code/formatting.hpp"
#else
#define debug(...) (void)0
#endif
using namespace std;
static_assert(sizeof(int) == 4 && sizeof(long) == 8);
template <typename Fun>
class y_combinator_result {
Fun fun_;
public:
template <typename T>
explicit y_combinator_resul... |
/*
-- MAGMA (version 2.0) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date
@author <NAME>
@author <NAME>
@author <NAME>
*/
// includes, system
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>... |
#include "spdlog/spdlog.h"
#include <Eigen/Dense>
#include <cmath>
#include <iomanip>
#include <nanogui/nanogui.h>
#include "lodepng.h"
#include "renderer.hpp"
using namespace Eigen;
using namespace nanogui;
using namespace SnowSimulator;
Renderer::Renderer(Screen &screen, Grid &grid, MaterialPoints &materialPoints)... |
// @HEADER
// ************************************************************************
//
// Intrepid Package
// Copyright (2007) Sandia Corporation
//
// Under terms of Contract DE-AC04-94AL85000, there is a non-exclusive
// license for use of this work by or on behalf of the ... |
#include <stdio.h>
#include <stdlib.h>
#include <memory>
#include <cstring>
#include "math.h"
#include "mex.h"
#include "cblas.h"
// #include "mex_solve_x_cg.h"
/*
This implementation is mainly for the graph guided flsa (projection) problem.
*/
/*
struct graph
{
int *edge_head;
int *edge_tail;
int ed... |
/*
* Redistribution and use in source and binary forms, with or without modification, are permitted
* provided that the following conditions are met:
* 1. Redistributions of source code must retain the above copyright notice, this list of
* conditions and the following disclaimer.
* 2. Redistributions in bin... |
// Copyright (c) 1997-2001 ETH Zurich (Switzerland).
// All rights reserved.
//
// This file is part of CGAL (www.cgal.org).
//
// $URL$
// $Id$
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-Commercial
//
//
// Author(s) : <NAME> <<EMAIL>>
#include <iostream>
#include <sstream>
#include <fstream>
#in... |
//
// Copyright (c) 2017, <NAME>
// All rights reserved.
//
// This source code is licensed under the BSD-style license found in the
// LICENSE file in the root directory of this source tree.
//
#include "MMUit.hpp"
#include <iostream>
// MARK: - MMU emulation
// LEVEL 0 -> LEVEL 1 -> LEVEL 2.1 -> LEVEL 3.0 -> ... |
/**
* @file src/retdec/retdec.cpp
* @brief RetDec library.
* @copyright (c) 2019 Avast Software, licensed under the MIT license
*/
#include <llvm/ADT/Triple.h>
#include <llvm/Analysis/CallGraph.h>
#include <llvm/Analysis/CallGraphSCCPass.h>
#include <llvm/Analysis/LoopPass.h>
#include <llvm/Analysis/RegionPass.h>
... |
#include "mbed.h"
#include "greentea-client/test_env.h"
#include "unity.h"
#include "utest.h"
using namespace utest::v1;
// static functions
template <typename T>
T static_func5(T a0, T a1, T a2, T a3, T a4) { return a0 | a1 | a2 | a3 | a4; }
template <typename T>
T static_func4(T a0, T a1, T a2, T a3) { return a0 |... |
//-----------------------------------------------------------------------------
//
// File and Version Information:
// $Id: BdbTime.cc 496 2010-01-13 17:10:44Z stroili $
//
// Description:
// Class BdbTime.
// This is a persistent time class.
//
// Environment:
// Software developed for the BaBar De... |
int
//nhy
KFUs , EqfJW ,/*q*/LG8yG
,DwuCd//
,iG3ZT , Tb ,xrUXk3,
F6z,
HRe,
WKUd
, DsVIn
, F7Yp ,zL, TG ,r,
ZU3UX,lTW ,
Ev2,
Kn1et
,
LtZ,
myDMc ,
Of , J3Vqr
//
,tml ,ev4O5,//nc1Y
ZjE, sudEcZ7 ,
AJ ,gu , RJS,
t0t ,
tiv
,/*o*/Mrn ,
aG
,Ix, KbX
,sUW ,e1q, i3
, KPs,/*7i*/wLFB , a7
, wwb ;void
... |
#ifndef _USE_MATH_DEFINES
#define _USE_MATH_DEFINES
#endif
#include <cmath>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include "vec.h"
#include "MDSim.h"
#include <GL/glut.h>
#include <GL/freeglut_ext.h>
//#define sprintf_s snprintf
using namespace std;
int gPlotMode = 0, gN = 0, gW, gH;
double gL, gPhi... |
/* Parallel Mechanism Control in MuJoCo
*/
#include "mujoco.h"
#include "glfw3.h"
#include "mjgraphics.hpp"
#include "stdio.h"
#include "assert.h"
#include "lapacke.h"
// MuJoCo data structures
mjModel* m = NULL; // MuJoCo model
mjData* d = NULL; // MuJoCo data
GUI gui; ... |
/*-------------geometrical.cpp------------------------------------------------//
*
* geometrical optics
*
* Purpose: to simulate light going through a lens with a variable refractive
* index. Not wave-like.
*
* Notes: This file was mostly written by Gustorn. Thanks!
* Negative refractiv... |
#include <fcntl.h>
#include <sys/syscall.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <sys/un.h>
#include <signal.h>
#include <sys/wait.h>
#include <sys/types.h>
#include <unistd.h>
#include <libunwind.h>
#include <cxxabi.h>
#include <iostream>
#include <cassert>
#include <cstdlib>
#include <string>
#inc... |
/* keybox-openpgp.c - OpenPGP key parsing
* Copyright (C) 2001, 2003, 2011 Free Software Foundation, Inc.
*
* This file is part of GnuPG.
*
* GnuPG 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... |
/*
** Copyright (C) 1998-2005 <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... |
/*******************************************************************************
MIT License
Copyright (c) 2021 <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, includin... |
/***********************************************************************************
* Copyright (c) 2017, UT-Battelle
* Copyright (c) 2021, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are... |
#include <iostream>
#include <PathManager.hpp>
#include <Stopwatch.hpp>
#include <Scaffolder.hpp>
enum ParseState {
NONE, OLL, OLP, OHL, OHP, RB_ATT, BT_ATT, LEN_THR, W_SIZE, R_THR
};
ulong try_parse_pos_num(const char *s) {
try {
long v = std::stol(s);
if (v < 0) {
std::cerr << ... |
#include <iostream>
#include <string>
#include <fstream>
#include <list>
#include <vector>
#include <set>
#include <assert.h>
#include <string.h>
using namespace std;
struct block {
u_long clock;
uint64_t index;
uint32_t bb_addr;
int pid;
};
struct result {
int direction;
struct block block1... |
// Standard
#include <iostream>
#include <map>
#include <memory>
#include <stdexcept>
#include <string>
#include <vector>
// SDL2
#include <SDL.h>
#include <SDL2_gfxPrimitives.h>
#include <SDL_ttf.h>
#include <SDL_video.h>
// Boost
#include <boost/variant/static_visitor.hpp>
// ColorConverter
#include <ColorConverte... |
///// c++ Program for a simple Timing Analyzer
/// Author : <NAME> <PASSWORD>
#include <iostream>
#include <string>
#include <fstream>
#include <map>
#include<vector>
#include <stdlib.h>
#include <unordered_map>
using namespace std;
double findMax(std::vector<float> &f){
double max = f[0];
for (size_t i = 1; i < ... |
#include "channel.hpp"
using namespace std;
//extern int errno;
//int err;
static FILE *logfp = NULL;
struct timeval timestamp;
/* three sending modes for sender */
union send_mode {
unsigned int ttr;
unsigned int n_blocks;
char *tracefilepath;
};
/* connection parameters */
struct tcp_conn {
int sockfd;... |
#include <SDL.h>
#include <SOIL2.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <stdio.h>
#include <sstream>
#include <fstream>
#include <SDL2plus.hpp>
#include <GLplus.hpp>
#include <GLmesh.hpp>
#include <tiny_obj_loader.h>
#include <OVR.h>
class Scene
{
... |
#include <bits/stdc++.h>
#define rep(i, l, r) for ((i) = (l); (i) < (r); (i)++)
#define all(x) (x).begin(), (x).end()
using namespace std;
class BTreeNode {
vector<int> keys; // An array of keys
int t; // Minimum degree (defines the range for number of keys)
vector<BTreeNode*> C; // An array of child pointer... |
#include <cstdio>
#include "common.h"
#include "log.h"
#include "tools.h"
#include "frameheaders.h"
#include "hbrmpframe.h"
#include "smpteprofile.h"
using namespace std;
/*!
* \brief: LIST OF SUPPORTED SMPTE PROFILE FOR IP2VF
*/
SMPTEProfile g_profile[] = {
// name standard MAP w ... |
int k6 , wkMV/*V*/,wLZT ,
MHE , lR, Rpc , o8
,
U6 ,L, Y6U
,ws7 ,
//
UF, he6 , NFDJ
,p4v
, PP/*TJp*/,Rh
, VZiA
,
NL,blK,T, aVMl , M8RE
,v8
,//
eAG,
hj,v ; void f_f0(){for /*TPH*/(int i=1 ;i<
1 ;++i
);{volatile int Ep,hm ,
HqZsA
, ZGm, xdk;v /*Ptnf*/
= xdk + Ep
+
hm+ HqZsA/**/ + ZGm ;
{{
{ ... |
#include "HelloWorldScene.h"
#if (CC_TARGET_PLATFORM != CC_PLATFORM_WIN32)
#include <unistd.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#else
#include <io.h>
#include <WS2tcpip.h>
#endif
#include <vector>
#include <string>
#define SCREENLOG_IMPLEMENTATION
#include "ScreenLog.h"
//#define EN... |
#include <iostream>
#include <vector>
#include <fstream>
#include <cstring>
#include <stdint.h>
#include <malloc.h>
using namespace std;
/* Type for a 16-bit quantity. */
typedef uint16_t Elf32_Half;
typedef uint16_t Elf64_Half;
/* Types for signed and unsigned 32-bit quantities. */
typedef uint32_t Elf32_Word;
ty... |
#include "GuideWireMoulding.h"
//vtk
#include <vtkPolyData.h>
#include <vtkPoints.h>
#include <vtkMath.h>
#include <vtkCellData.h>
#include <vtkPointData.h>
#include <vtkTransform.h>
#include<vtkDoubleArray.h>
#include <vtkFloatArray.h>
#include <vtkGenericCell.h>
#include <vtkCell.h>
#include <vtkPolyLine.h>
#include... |
/**
* 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... |
/*
* VapourSynth D2V Plugin
*
* Copyright (c) 2012 <NAME>
*
* This file is part of d2vsource.
*
* d2vsource is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License,... |
/**
* 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 ... |
/* Copyright (c) 2011-2014 ETH Zürich. 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 conditi... |
#include "application.h"
#include "connection.h"
#include "log.h"
#include "reactor.h"
#include "smp.h"
#include "distributor.h"
#include "http/http_parser.h"
#include "proto/wan.pb.h"
#include <chrono>
#include <memory>
#include <vector>
#include <list>
#include <random>
using namespace infgen;
using namespace std::... |
#include "SimCalorimetry/HGCalSimProducers/interface/HGCHEbackDigitizer.h"
#include "CLHEP/Random/RandPoissonQ.h"
#include "CLHEP/Random/RandGaussQ.h"
#include "Geometry/HGCalGeometry/interface/HGCalGeometry.h"
#include "Geometry/HcalTowerAlgo/interface/HcalGeometry.h"
#include "vdt/vdtMath.h"
using namespace hgc_d... |
/*************************************************************************/
/* arvr_server.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
//----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2021, <NAME>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following c... |
// Local-Hyperion includes
#include "LedDeviceNanoleaf.h"
#include <utils/QStringUtils.h>
#include <ssdp/SSDPDiscover.h>
// Qt includes
#include <QEventLoop>
#include <QNetworkReply>
#include <QtEndian>
//std includes
#include <sstream>
#include <iomanip>
// Constants
namespace {
const bool verbose = false;
const bo... |
//===-- StringExtractorGDBRemote.cpp --------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
/******************************************************************************
* Copyright (c) Intel Corporation - All rights reserved. *
* This file is part of the LIBXSMM library. *
* *
... |
// Copyright (c) 2010-2022, Lawrence Livermore National Security, LLC. Produced
// at the Lawrence Livermore National Laboratory. All Rights reserved. See files
// LICENSE and NOTICE for details. LLNL-CODE-806117.
//
// This file is part of the MFEM library. For more information and source code
// availability visit ht... |
//========= Copyright 1996-2005, Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
//=============================================================================//
#include "cbase.h"
#include "hud_pdump.h"
#include "iclientmode.h"
#include "predictioncopy.h"
#include "vgui/ISurface.h"
#include... |
#include "sdrplay_stub.h"
#include <pthread.h>
#include <semaphore.h>
#include <math.h>
#define DEBUG_STUB (0)
#define LNAGRTHRES 59
typedef struct SR
{
double DisplayValue; //Values to display in DialogBox
double SampleRate; //Sample Rate to be programmed to SDRplay
int DownSample; //Re... |
//
// CaraFaceTracker.cpp
// interface/src/devices
//
// Created by <NAME> on 7/22/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 "CaraFaceTracker.h"
#include <S... |
/*
Open Asset Import Library (assimp)
----------------------------------------------------------------------
Copyright (c) 2006-2012, assimp team
All rights reserved.
Redistribution and use of this software in source and binary forms,
with or without modification, are permitted provided that the
following ... |
//
// AnimDebugDraw.cpp
//
// Copyright 2015 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 <qmath.h>
#include "animdebugdraw_vert.h"
#include "animdebugdraw_frag.h"
#include <gpu/Batc... |
#include "World.hpp"
#include "io.hpp"
#include "util.hpp"
#include <fstream>
#include <set>
using io::tell;
using std::string;
using std::to_string;
using std::vector;
using util::chainsMatch;
using util::stringToInt;
using util::writeLine;
const char labelEnd = ':';
const string l_bookName = "Name";
const string... |
#include <cmath>
#include <vector>
#include <iostream>
#include <algorithm>
#include "DataFormats/MuonDetId/interface/CSCDetId.h"
#include "DataFormats/MuonDetId/interface/RPCDetId.h"
#include "DataFormats/MuonDetId/interface/DTChamberId.h"
#include "DataFormats/MuonDetId/interface/MuonSubdetId.h"
#include "L1Trigger... |
/* -*- mode:C++; c-basic-offset:4 -*-
Shore-kits -- Benchmark implementations for Shore-MT
Copyright (c) 2007-2009
Data Intensive Applications and Systems Labaratory (DIAS)
Ecole Polytechnique Federale de Lausanne
All Rights Reserved.
... |
/**
* Author: C<NAME>
* Copyright: Crownstone (https://crownstone.rocks)
* Date: Apr 23, 2015
* License: LGPLv3+, Apache License 2.0, and/or MIT (triple-licensed)
*/
#include <ble/cs_Characteristic.h>
#include <storage/cs_State.h>
// #define PRINT_CHARACTERISTIC_VERBOSE
CharacteristicBase::CharacteristicBase() ... |
/*
*
Problem Statement:
Prime digit replacements:
By replacing the 1st digit of the 2-digit number *3, it turns out that six of
the nine possible values: 13, 23, 43, 53, 73, and 83, are all prime.
By replacing the 3rd and 4th digits of 56**3 with the same digit, this 5-digit
number is the first example having seve... |
/*
* Copyright (C) 2008 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... |
/* -----------------------------------------------------------------------------
Software License for The Fraunhofer FDK AAC Codec Library for Android
© Copyright 1995 - 2018 Fraunhofer-Gesellschaft zur Förderung der angewandten
Forschung e.V. All rights reserved.
1. INTRODUCTION
The Fraunhofer FDK AAC Codec Lib... |
/* Copyright (c) <2003-2019> <Newton Game Dynamics>
*
* 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 any purpose,
* includi... |
/*
* ir.c
*
* Created on: Jul 12, 2016
* Author: alvaro
*
* DCDN IR Library
*
* Theory of operation:
* The IR tx/rx library encodes data using pulse widths modulated at 38kHz
*
* A bit is encoded by a 'mark' and a 'space'.
*
* A mark is always the same width duri... |
// Format and unformat commands
#include "SAMdisk.h"
#include "record.h"
/*
uint8_t abAtomLiteBoot[] =
{
0xEB, 0x3C, 0x90, 0x41, 0x4C, 0x42, 0x32, 0x2E, 0x34, 0x18, 0x35, 0x00, 0x02, 0x02, 0x8E, 0x04,
0x02, 0x20, 0x00, 0x00, 0x40, 0xF8, 0x01, 0x00, 0x3F, 0x00, 0x10, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x00, ... |
#include "wiOcean.h"
#include "wiRenderer.h"
#include "wiResourceManager.h"
#include "shaders/ShaderInterop_Ocean.h"
#include "wiScene.h"
#include "wiBackLog.h"
#include "wiEvent.h"
#include "wiTimer.h"
#include <algorithm>
#include <vector>
using namespace wiGraphics;
using namespace wiScene;
namespace wiOcean_Inte... |
/*
integration.cpp
Copyright (c) 2014-2021 <NAME>
This file is distributed under the terms of the MIT license.
Please see the file 'LICENCE.txt' in the root directory
or http://opensource.org/licenses/mit-license.php for information.
*/
#include "mpi_common.h"
#include "integration.h"
#include "error.h"
#inclu... |
/*
#############################################################################
# Author: <NAME>
# Email: <EMAIL>
#
#
# Created Date: 2017/11/14
# Modified Date: 2021/04/10
#
# Centre for Intelligent Sensing, Queen Mary University of London, UK
#
#############################################... |
//##################################################################################################
//
// Bootloader - read RAMFS and load the kernel.
//
//##################################################################################################
#include "uart.h"
#include "elfloader.h"
#include "ldr-config.... |
/*
* goostring-format-checker.cc
*
* This file is licensed under the GPLv2 or later
*
* Clang++ compiler plugin that checks usage of GooString::format-like functions
*
* Copyright (C) 2014 <NAME> <<EMAIL>>
* Copyright (C) 2021 <NAME> <<EMAIL>>
*/
#include <cctype>
#include <clang/Frontend/FrontendPluginRegis... |
/*
* Copyright 2008-2009, <NAME>, <EMAIL>
* Copyright 2002-2008, <NAME>, <EMAIL>
* Distributed under the terms of the MIT License.
*
* Copyright 2001, <NAME>. All rights reserved.
* Distributed under the terms of the NewOS License.
*/
#include "debug_commands.h"
#include <setjmp.h>
#include <stdio.h>
#include... |
/*
Copyright 2018 <NAME>
This file is part of RWRP/RedWolf Recovery Project
TWRP is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later versio... |
//
// Created by <NAME> on 06.03.2022.
//
#include <stack>
#include <regex>
#include "Parser.h"
#include "ExpValBool.h"
#include "ExpValInteger.h"
#include "ExpValDouble.h"
#include "ExpValString.h"
#include "ExpOpSum.h"
#include "ExpOpSub.h"
#include "ExpOpMult.h"
#include "ExpOpDiv.h"
#include "ExpOpAssignVar.h"
#in... |
/**
* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
*
* Copyright (c) 2016 LIBSCAPI (http://crypto.biu.ac.il/SCAPI)
* This file is part of the SCAPI project.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Permission is hereby granted, free of charge, to any person o... |
#include "log.h"
// TODO: Put this on a place that actually makes sense
// Set useSharedSpi true for use of an SPI sensor.
const bool useSharedSpi = true;
/******************************************************************************
PRIVATE DEFINITIONS
*******************************... |
// Copyright 2019 The MediaPipe Authors.
//
// 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 <conio.h>
#include <fstream>
#include <iostream>
#include <math.h>
#include <sstream>
#include <string>
#include <stdlib.h>
#include <windows.h>
using namespace std;
using std::string;
struct node //A structure, which contains all the data (int + pointer) for each element (node) in the linked lis... |
/**
* loggerd, a daemon for recording logs and telemetry
*
* Copyright (c) 2017-2018 Parrot Drones SAS.
*
* 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 c... |
#include "sunflowSkyNode.h"
#include <iostream>
#include <cmath>
using namespace std;
float X = 0.525731112119133606;
float Z = 0.850650808352039932;
MTypeId sunflowSkyNode::id( 0x00114155 );
MObject sunflowSkyNode::size;
MObject sunflowSkyNode::resolution;
MObject sunflowSkyNode::sunVector;
MObject... |
#include "Animation.h"
#include "Model.h"
#include "Prefab.h"
#include "RuntimeData.h"
#include "AnimationEngine.h"
#include "GameData/anim_definitions.h"
#include <QDebug>
#include <QFile>
#include <QHash>
#include <QSet>
#include <cassert>
using namespace SEGS;
namespace
{
// animated geometries
QHash<QString, Ge... |
//
// "$Id: Alternative.cxx 2871 2002-12-10 02:01:07Z easysw $"
//
// Theme plugin file for FLTK
//
// Copyright 1999 <NAME> and others.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Library General Public
// License as published by the Free Software Foundat... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.