text stringlengths 5.71k 33.7k |
|---|
/*
* Copyright 2016 - 2019 <NAME>, <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, ... |
#include <Arduino.h>
#include <math.h>
#include <string.h>
#include <ctype.h>
// Translated from the WSJT Fortran code by <NAME>
/////////////////////////////////////////////////////////
///////////// G R I D 2 D E G /////////////
/////////////////////////////////////////////////////////
// Choose whic... |
#include "burnint.h"
#include "msm6295.h"
#include "burn_sound.h"
#include "x1010.h"
UINT8 *X1010SNDROM;
INT32 X1010_Arbalester_Mode = 0;
struct x1_010_info * x1_010_chip = NULL;
void x1010_sound_bank_w(UINT32 offset, UINT16 data)
{
#if defined FBA_DEBUG
if (!DebugSnd_X1010Initted) bprintf(PRINT_ERROR, _T("x1010_so... |
// This file is a wrapper around the cost model that loads and saves
// weights, and maintains state of various kinds. For the actual cost
// model, see cost_model_generator.cpp
#include <algorithm>
#include <cmath>
#include <fstream>
#include <iostream>
#include <map>
#include <random>
#include <unistd.h>
#include <... |
/** \copyright
* Copyright (c) 2020, <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... |
#include "bib.hpp"
vector<Symb> tabelaSimbolos;
deque<Instruction> listaInstrucoes;
vector<Function> listaFuncoes;
int pos_count = 0;
int label_count = 0;
int inst_count = 0;
int func_count = 0;
int arg_count = 0;
int contStackSize = 0;
int maiorStackSize = 0;
int MAX_STACK = 1... |
#include "processor/Factorizer.hpp"
#include "processor/Simplifier.hpp"
#include "terms/BinaryTerm.hpp"
#include "terms/GeneralTerm.hpp"
#include "terms/Index.hpp"
#include "terms/IndexSpaceMeta.hpp"
#include "utils/IndexSpaceResolver.hpp"
#include "IndexHelper.hpp"
#include <gmock/gmock.h>
#include <gtest/gtest.h>
... |
#include <cstdio>
#include <iostream>
#include <string>
#include <vector>
#include <deque>
#include <map>
#include <list>
#include <memory>
#include <algorithm>
using namespace std;
void p1014() {
int n, m;
struct Node {
int count;
Node* next[26];
Node() : count(0) {
for (int i = 0; i < 26; i++)
nex... |
#include "header.h"
#include "gui.h"
#define debounceDelay 600 //ms
/**********************************Global********************************/
float WUTimeStart_LCD = 0.0; // This need to be Global
int WUTimeStartF_LCD = 0; // This need to be Global
int DisplayPageNum = 2; // This need to be Global
int SnoozK... |
/*
* Copyright (c) 2019 Opticks Team. All Rights Reserved.
*
* This file is part of Opticks
* (see https://bitbucket.org/simoncblyth/opticks).
*
* 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 ... |
// Win32SocketPeer.cpp
#include <winsock2.h> //makes sure to link with Ws2_32.lib
#include "FoundationKit.h"
#include "Socket.h"
#include "Win32SocketPeer.h"
#include <algorithm>
#include "SocketException.h"
using namespace VCF;
using namespace VCFNet;
bool Win32SocketPeer::WinSockStarted = false;
s... |
#include "Matrix4.h"
Matrix4::Matrix4() {
this->elements[0] = 1.0;
this->elements[1] = 0.0;
this->elements[2] = 0.0;
this->elements[3] = 0.0;
this->elements[4] = 0.0;
this->elements[5] = 1.0;
this->elements[6] = 0.0;
this->elements[7] = 0.0;
this->elements[8] = 0.0;
this->elements[9] = 0.0;
th... |
/**
* This is a simple batch gradient descent with
* the Armijo line search; it is not a part of libsdca.
**/
#include <iostream>
#include "mex_util.h"
#include "solve/solvedef.h"
#include "util/util.h"
#ifndef MEX_GD
#define MEX_GD "mex_gd"
#endif
#ifndef LIBSDCA_VERSION
#define LIBSDCA_VERSION "0.0.0"
#endif
... |
#include "spherelit.h"
#include "kVector.h"
#include <math.h>
using kBase::v3D;
using kBase::dotProduct;
using kBase::crossProduct;
/*************************************************
* Fixed Camera
*************************************************/
FixedCamera::FixedCamera(const v3D &x, const v3D &d, unsigned int ... |
// mc-mesher
// <NAME>
#include "mc_mesher.h"
#include "McmMeshBuffer.h"
#include "McmCommon.h"
#include "McmLookupTable.h"
#include <unordered_map>
void generateCubeNormal(const float* voxel, const int memBoundedOffsets[24], const float corners[8], uint32_t whichCorner, Vector3<float>* normals)
{
switch (whichC... |
// Copyright 2021 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 "arc/setup/arc_property_util.h"
#include <algorithm>
#include <memory>
#include <tuple>
#include <vector>
#include <base/command_line.h>
#in... |
/*
Copyright The Overlaybd 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 agreed to i... |
#include "AliAnalysisTaskNucleiKineCor.h"
#include <Riostream.h>
#include <AliAnalysisManager.h>
#include <AliCollisionGeometry.h>
#include <AliGenCocktailEventHeader.h>
#include <AliGenEventHeader.h>
#include <AliGenPythiaEventHeader.h>
#include <AliHeader.h>
#include <AliInputEventHandler.h>
#include <AliLog.h>
#incl... |
/*==============================================================================
Mosaic: Live Visual Patching Creative-Coding Platform
Copyright (c) 2018 <NAME> aka n3m3da <<EMAIL>>
Mosaic is distributed under the MIT License. This gives everyone the
freedoms to use Mosaic in any context: commercial ... |
/**
* \file QryWznmFilList.cpp
* job handler for job QryWznmFilList (implementation)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author <NAME> (auto-generation)
* \date created: 28 Nov 2020
*/
// IP header --- ABOVE
#ifdef WZNMCMBD
#include <Wznmcmbd.h>
#else
#include <Wznmd.h>
#endif
#include "QryWz... |
#include <math.h>
#include <string>
#include <vector>
#include <unordered_map>
#include <stdexcept>
typedef std::unordered_map<std::string, std::pair<uint64_t, uint64_t> >
counts_t;
// count of word occurances in a doc
typedef std::unordered_map<std::string, uint64_t> word_counts_t;
// a tokenized document
ty... |
#include <cmath>
#include "math/gamemath.h"
#include "terrain/grass.h"
#include "utils/random.h"
#include "utils/timehelper.h"
#include "utils/flexarray.h"
#include "utils/fileutils.h"
#include "graphics/gluhelper.h"
#include "graphics/terrainpolygon.h"
Grass::Grass(int density, glm::vec3 center, glm::vec3 randomizati... |
/*
* Copyright (C) 2012 Open Source Robotics Foundation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by appl... |
#include "core.h"
#include "wbactionrosacheckline.h"
#include "configmanager.h"
#include "Components/wbcomprosatransform.h"
#include "Components/wbcomprosacamera.h"
#include "Components/wbcomprosaheadtracker.h"
#include "Components/wbcomprosamesh.h"
#include "Components/wbcompowner.h"
#include "wbactionstack.h"
#includ... |
/*
* simulator.cpp
* HRVO Library
*
* Copyright 2009 University of North Carolina at Chapel Hill
*
* 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
*
* https://www.apache.org/licen... |
/* ----------------------------------------------------------------------
LAMMPS - Large-scale Atomic/Molecular Massively Parallel Simulator
http://lammps.sandia.gov, Sandia National Laboratories
<NAME>, <EMAIL>
Copyright (2003) Sandia Corporation. Under the terms of Contract
DE-AC04-94AL85000 with San... |
#include "ukf.h"
#include "Eigen/Dense"
#include <iostream>
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
/**
* Initializes Unscented Kalman filter
* This is scaffolding, do not modify
*/
UKF::UKF() {
// if this is false, laser measurements will be ignored (except during i... |
#include <gtkmm.h>
#include "mainWindow.hpp"
#include <list>
#include <fstream>
#include <unordered_map>
#include <unordered_set>
#include <sirEdit/main.hpp>
#include <sirEdit/data/tools.hpp>
#include <sirEdit/data/specUpdater.hpp>
#include <thread>
#include <iostream>
using namespace std;
using namespace sirEdit;
usi... |
/*
#
# UFFBAPS - Unified Force Field for Binding And Protein Stability
# Copyright (C) 2010 <NAME> & <NAME>
#
# 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 3 of the Licen... |
#include "Maya_InstantMeshes.h"
#define kPluginNodeId 0x19970000
#define kPluginNodeName "Maya_InstantMeshes"
MObject Maya_InstantMeshes::sourceMesh;
MObject Maya_InstantMeshes::sourceMeshTransform;
MObject Maya_InstantMeshes::resultMesh;
MObject Maya_InstantMeshes::remeshAs;
MObject Maya_InstantMeshes::vertexCount;
... |
/** Network topology
*
* 100Mb/s, 1ms
* n0--------------|
* | 45Mb/s, 2ms
* nG-----------------n4
* 100Mb/s, 4ms |
* n1--------------|
* |
* ... |
/*
* This file Copyright (C) 2009-2015 Mnemosyne LLC
*
* It may be used under the GNU GPL versions 2 or 3
* or any future license endorsed by Mnemosyne LLC.
*
* $Id$
*/
#include <cassert>
#include <cstdlib>
#include <QDateTime>
#include <QDir>
#include <QFile>
#include <libtransmission/transmission.h>
#includ... |
/** @defgroup MleDPPMaster Magic Lantern Digital Playprint Library API - Master */
/**
* @file genppscript.cpp
* @ingroup MleDPPMaster
*
* PlayPrint Layout Script Generator
*
* Given a workprint, it creates a default layout TCL script which can be edited
* and used as input to genpp.
*/
// COPYRIGHT_BEGIN
//... |
/*
note: we remove the first 16 bp from Read 1 (and quality string)!
update: remove 16 bp barcode and 6 bp linker sequence from read 1.
Writen by <NAME>, MPIPZ Email: <EMAIL>
*/
#include <iostream>
#include <fstream>
#include <sstream>
#include <map>
#include <vector>
#include <string>
#... |
// Arquivo MakeFont.cpp
// Criado em 30/05/2021 as 02:31 por Acrisio
// Cria arquivo de font de mono bit map para o PangYa com base no código do HL
#include <windows.h>
#include <tchar.h>
#include <iostream>
#include <fstream>
#include <vector>
#include <cmath>
#include <stdarg.h>
#include <gdiplus.h>
#include <ob... |
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <iostream>
#include <cstring>
#include "framework.h"
#include "benchmark.h"
#define IMAGE_DIV 2
typedef struct{
std::vector<cv::Point> contour;
std::string name;
}shape_template_t;
std::vec... |
#include <pybind11/pybind11.h>
#include <pybind11/stl.h> // vector用
#include <pybind11/numpy.h>
#include <algorithm>
#include <iostream>
#include <pybind11/stl.h>
#include <vector>
#include <string>
#include <pybind11/eigen.h>
#include <Eigen/Dense>
namespace py = pybind11;
using namespace pybind11::literals;
int ... |
#include "THitMapDiscordant.h"
#include "TPixHit.h"
#include <iomanip>
#include <iostream>
#include <stdexcept>
#include <string>
// ROOT includes
#include "TStyle.h"
#include "TROOT.h" // useful for global ROOT pointers (such as gPad)
#include "TGaxis.h"
#include "TH2F.h"
#include "TMarker.h"
#include "Rtypes.h"
#in... |
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <X11/Xlib.h>
typedef long double num;
num c = 3e8;
void lorentztran(num x1,num t1,num &x2,num &t2,num v)
{
num gamma=1.0/sqrt(1.0-v*v/(c*c));
x2=(x1-v*t1)*gamma;
t2=(t1-v*x1/(c*c))*gamma;
}
int main()
{
num x1=0,t1=1.0/c,x2,t2,v,s,s2,s3,t3;
... |
///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2014, <NAME>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source ... |
#include <vmm.h>
#include <global.h>
#include <assert.h>
#include <error.h>
#include <sync.h>
#include <kdebug.h>
#include <list.hpp>
#include <queue.hpp>
#include <utils.hpp>
void VMM::init() {
checkVmm();
}
List<VMM::VMA>::DLNode * VMM::findVma(List<MM>::DLNode *mm, uptr32_t addr) {
#ifdef VMM_DEBUG
... |
/*
* Copyright (c) 2020 <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of con... |
// Copyright (c) 1996-2006 by Autodesk, Inc.
//
// By using this code, you are agreeing to the terms and conditions of
// the License Agreement included in the documentation for this code.
//
// AUTODESK MAKES NO WARRANTIES, EXPRESS OR IMPLIED, AS TO THE CORRECTNESS
// OF THIS CODE OR ANY DERIVATIVE WORKS WH... |
#include "TextRenderer.h"
#include "PNG.h"
static const int TEXT_SIZE = 22;
static const int TEXT_BORDER = 12;
TextRenderer& TextRenderer::GetInstance()
{
static TextRenderer instance = TextRenderer();
return instance;
}
TextRenderer::TextRenderer()
{
}
TextRenderer::~TextRenderer()
{
}
v... |
#include "hungarian.h"
#include <stdlib.h>
#include <math.h>
#include <float.h>
#include <limits.h>
#define NMAX 1000000
void solveAssignmentProblemintRect(int **Array, int **Result, int m, int n) {
// IMPORTANT! The values of Array[size1][size2] are changed in this routine
//
// adopted from KNUTH 1994 (The Stan... |
#include <Windows.h>
#if defined(_WIN32)
#include <dxgi.h> // for GetDefaultAdapterLuid
#pragma comment(lib, "dxgi.lib")
#endif
#include "VR_Manager.h"
#include "../OVR/Common/Win32_GLAppUtil.h"
#include "OculusTextureBuffer.h"
#include "geometry.h"
#include "functions.h"
VR_Manager::VR_Manager()
{
}
VR_Manager::~V... |
//final edited code
#include<opencv2/opencv.hpp>
#include<iostream>
#include<string.h>
#include<stdlib.h>
using namespace cv;
using namespace std;
int threshvalue=100;
void CannyThreshold(Mat src_gray, Mat& edge_gray, int lowThreshold, int highThreshold, int kernel_size)
{
//blur( src_gray, edge_gray, Size(3,3) );
... |
#include "RecoMuon/MuonIdentification/interface/MuonHOAcceptance.h"
#include <iostream>
#include <algorithm>
#include <cmath>
//#include "TTree.h"
#include "TMultiGraph.h"
#include "TGraph.h"
#include "DataFormats/HcalDetId/interface/HcalDetId.h"
#include "CondFormats/HcalObjects/interface/HcalChannelQuality.h"
#in... |
// Author <NAME>, <EMAIL>
// Chair of Media Technology, Technical University of Munich, 2018-2019
// Parts of these were done while being at research visit to group of Bernd Girod IVMS at Stanford University
#include <iostream>
#include <fstream>
#include <iomanip>
#include <chrono>
// OpenCV
#include "opencv2/core/c... |
#include "MultiModel.h"
/******************************************************************************************
readLabelFile.cpp READ IN LABEL FILE WHEN --label IS SPECIFIED
FORMAT OF LABEL FILE:
FILE := (COMMENTLINE | DATALINE | REFCLASSLINE)*
COMMENTLINE := <whitespace>*(#<any chara... |
static char help[] = "Solve small CMEs to benchmark intranode performance.\n\n";
#include<iomanip>
#include <petscmat.h>
#include <petscvec.h>
#include <petscviewer.h>
#include <Sys.h>
#include <armadillo>
#include <cmath>
#include <sys/stat.h>
#include "FspSolverMultiSinks.h"
namespace six_species_cme {
// stoichiom... |
// Tricubic B2 version with or without finite differences
// Moments multiplied by B^(-1)^T
#include <iostream>
#include <vector>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <fstream>
#include <sstream>
#include <iomanip>
#include "tricubic_utils.h"
using namespace std;
//************************... |
/* Copyright (c) 2018 <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, dis... |
/*
* Zombie.cpp
*
* Created on: May 31, 2017
* Author: Carl
*/
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include "Zombie.h"
#include "../Particless.h"
// Clear all zombie
void Zombie::clear(Zombie zombie[]){
count = 0;
for (int i = 0; i < max; i++) {
zombie[i].alive = false;
}
}
v... |
/*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#include <boost/bind.hpp>
#include <boost/asio/ip/host_name.hpp>
#include <boost/foreach.hpp>
#include <boost/tokenizer.hpp>
#include <boost/assign/list_of.hpp>
#include <isc/hmacmd5.h>
#include <isc/hmacsha.h>
#include "base/contrail_ports.h"
... |
/*
* HttpServer.cpp
*
* Created on: Aug 30, 2017
* Author: kolban
*/
#include <fstream>
#include "HttpServer.h"
#include "SockServ.h"
#include "Task.h"
#include <esp_log.h>
#include "HttpRequest.h"
#include "HttpResponse.h"
#include "FileSystem.h"
#include "WebSocket.h"
#include "GeneralUtils.h"
static cons... |
#include "site.h"
#include <QFile>
#include <QNetworkCookie>
#include <QNetworkCookieJar>
#include <QNetworkDiskCache>
#include <QStringList>
#include <QUrlQuery>
#include <QDir>
#include <QTimer>
#include "page.h"
#include "image.h"
#include "source.h"
#include "profile.h"
#include "api.h"
#include "custom-network-acc... |
/* ================================================================================
* Copyright: (C) 2021, SIRRL Social and Intelligent Robotics Research Laboratory,
* University of Waterloo, All rights reserved.
*
* Authors:
* <NAME> <<EMAIL>>
*
* CopyPolicy: Released under the terms of the BSD 3-Cl... |
/*
* Licensed to the OpenAirInterface (OAI) Software Alliance under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The OpenAirInterface Software Alliance licenses this file to You under
* the OAI Public Lic... |
//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-2022 <NAME> and <NAME>
//LIC//
//LIC// This lib... |
/*
* Copyright (c) 2014, <NAME>
* MIT License, see the LICENSE.md file in the root folder.
*/
#include "plainRFM69.h"
/*
Public Methods
*/
void plainRFM69::setRecommended(){
// p67, 200 ohm, internal AGC loop.
this->setLNA(RFM69_LNA_IMP_200OHM, RFM69_LNA_GAIN_AGC_LOOP);
// p71, 3 preambl... |
// Class to calculate cross-sections (mb) for various targets Z > 28
#include "Activia/ActSTSpallation.hh"
#include "Activia/ActClassify.hh"
#include "Activia/ActFormulae.hh"
#include "Activia/ActNucleiData.hh"
#include "Activia/ActSTSigUpdates.hh"
#include <cmath>
#include <iostream>
using std::cout;
using std::end... |
/*
* Copyright 2019 Xilinx, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to... |
/*
* 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 "GrDrawVerticesOp.h"
#include "GrDefaultGeoProcFactory.h"
#include "GrOpFlushState.h"
#include "SkGr.h"
std::unique_ptr<GrDrawOp> GrDrawVerticesOp::Make(GrPaint&& pa... |
#include "segway_sim/safety_filter_node.hpp"
ros::NodeHandle *nh_;
ros::NodeHandle *nhParams_;
ros::Subscriber sub_state_;
ros::Subscriber sub_inputDes_;
ros::Publisher pub_inputAct_;
ros::Publisher pub_info_;
ros::Publisher pub_backupTraj_;
segway_sim::input inputDes_;
segway_sim::input inputAct_;
segway_sim::stat... |
// SPDX-License-Identifier: Apache-2.0
/**
* Copyright (C) 2020 <NAME> <<EMAIL>>
*
* @file main.cpp
* @date 05 Oct 2020
* @see https://github.com/nnstreamer/nntrainer
* @author <NAME> <<EMAIL>>
* @bug No known bugs except for NYI items
* @brief This is VGG Example with
*
*/
#include "bitmap_helpers.h"
#inc... |
#include "AnimationImporter.h"
#include "Globals.h"
#include "ResourceFileAnimation.h"
#include "application.h"
#include "ModuleFileSystem.h"
#include "ModuleEditor.h"
#include "GameObject.h"
#include "ComponentMesh.h"
#include "ResourceFileBone.h"
#include "ComponentBone.h"
#include "ModuleResourceManager.h"
#inclu... |
//============================================================================
// Name : dnasegmentwrapper.cpp
// Author : <NAME>
// Contributors :
// Version : 1.00
// Copyright : Copyright 2017 Geoscience Australia
//
// Licensed under the Apache License, Version 2.0 (the "License... |
//
// Copyright (C) 2014 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... |
//
// 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 the following disclaimer.
// * Redistributions in bin... |
#include "../common/util.h"
#include "../common/shader.h"
#include "../common/camera.h"
#include "mesh.h"
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#define WIDTH (640 * 2)
#define HEIGHT (480 * 2)
#define NUM_ASTEROIDS 2000
#define NUM_POINT_LIGHTS 32
#define SEED 1... |
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <memory.h>
/*
* Globals
*/
static const char *keyword_introspect = "Introspect";
static const char *keyword_struct = "struct";
static const char *keyword_enum = "enum";
static bool printAllTokens = false;
static bool generateOutput = true;
/*
* ... |
#define SALVAGEMECHAREA_CPP
/*************************************************************************************************\
SalvageMechArea.cpp : Implementation of the SalvageMechArea component.
//---------------------------------------------------------------------------//
// Copyright (C) Microsoft Corporation.... |
/* $Id: Paraclu.cpp,v 1.27 2016/08/02 07:21:36 severin Exp $ */
/***
NAME - EEDB::SPStreams::Paraclu
SYNOPSIS
DESCRIPTION
Port of the paraclu program into a ZENBU SPStream module
Copyright 2011 <NAME>
Find clusters in 1-dimensional data, using the method described in
MC Frith et al. Genome Res. 2008 18(1... |
// Copyright 2017 Google 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... |
#define NO_TIMER_VECTORS 1
#include <Main.h>
#include <Delay.h>
#include <Timer.h>
#include <ADC.h>
#include <Pins.h>
template <class T> const T& max(const T& a, const T& b) { return (a<b) ? b : a; }
template <class T> const T& min(const T& a, const T& b) { return (a<b) ? a : b; }
static uint32_t map(uint32_t x, uint... |
// -*- C++ -*-
//
// Package: SiPixelMonitorRawData
// Class: SiPixelRawDataErrorSource
//
/**\class
Description:
Produces histograms for error information generated at the raw2digi stage for the
pixel tracker.
Implementation:
Takes a DetSetVector<SiPixelRawDataError> as input, and uses it to populat... |
/**
* Copyright (C) 2020 Xilinx, Inc
*
* 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.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writi... |
//----------------------------------------------------------------------------
//
// 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... |
#include "otoc.h"
#include <fstream>
#include "NormCalculator.h"
#define IS_ZERO(x) (std::abs(x) < 1e-10)
std::vector<i64> StringToVector(std::string str) {
std::istringstream iss(str);
std::vector<i64> ret;
i64 val;
while (iss >> val) {
ret.push_back(val);
}
return ret;
}
void LoadNormFromFile(int L, int M... |
//
//
// spoutDirectX9.cpp
//
// Functions to manage DirectX9 texture sharing
//
// ====================================================================================
// Revisions :
//
// 09.10.20 - separated from SpoutDirectX class
// 23.01.21 - Create DX9 examples
// 23.01.21 - Change d3dpp.EnableAutoDepthSt... |
/*
*
* Copyright 2016 gRPC 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 la... |
/*****************************************************************************************
* *
* OpenSpace *
* ... |
#include "dialog.h"
#include "ui_dialog.h"
#include <QSerialPort>
#include <QSerialPortInfo>
#include <string>
#include <QDebug>
#include <QMessageBox>
#include <QDateTime>
Dialog::Dialog(QWidget *parent) :
QDialog(parent),
ui(new Ui::Dialog)
{
ui->setupUi(this);
ui->tempLcdNumber->displa... |
/* Starshatter OpenSource Distribution
Copyright (c) 1997-2004, Destroyer Studios LLC.
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 t... |
/*
* !!! DO NOT EDIT THIS FILE !!!
*
* This file was automagically crafted by GED's model parser.
*/
#include "ged_fragments.h"
const ged_ins_field_position_fragment_t FragmentsTable0[2] =
{
{ 47, 47, 1, 15, 0x8000 }, // 0
{ 12, 13, 0, 11, 0x3000 } // 1
}; // FragmentsTable0[]
const ged_i... |
/*-------------------------------------------------------------------------
*
* varsup.c
* postgres OID & XID variables support routines
*
* Copyright (c) 2000-2015, PostgreSQL Global Development Group
*
* IDENTIFICATION
* src/backend/access/transam/varsup.c
*
*--------------------------------------------... |
//=======================================================================
// Copyright <NAME> 2013-2016.
// Distributed under the terms of the MIT License.
// (See accompanying file LICENSE or copy at
// http://www.opensource.org/licenses/MIT)
//=======================================================================
... |
#include "Defs.h"
#include "p2Log.h"
#include "Footman.h"
#include "j1App.h"
#include "j1Render.h"
#include "j1Collision.h"
#include "j1Map.h"
#include "j1Pathfinding.h"
#include "j1EntityFactory.h"
#include "j1Movement.h"
#include "j1PathManager.h"
#include "Goal.h"
#include "j1Scene.h" // isFrameByFrame
#include "... |
/****************************************************************************
*
* Copyright (c) 2012-2016 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Red... |
#include <Graphics/Inc/Graphics.h>
#include <Math/Inc/EngineMath.h>
#include <assimp/Importer.hpp> // C++ importer interface
#include <assimp/scene.h> // Output data structure
#include <assimp/postprocess.h> // Post processing flags
#include <cstdio>
using namespace JimmyGod::Graphics;
using BoneIndexLooku... |
//-
// ==========================================================================
// Copyright 1995,2006,2008 Autodesk, Inc. All rights reserved.
//
// Use of this software is subject to the terms of the Autodesk
// license agreement provided at the time of installation or download,
// or which otherwise accompan... |
//
// Nim.cpp
//
// This program uses the minimax algorithm to play a game of 3-pile Nim.
//
// Here's a typical starting configuation:
//
// Row 0: ooo
// Row 1: oooo
// Row 2: ooooo
//
// The program is general enough to change the number of rows or number of
// coins in each row.
//
// -----------... |
#pragma once
#include "Common/binary_tree.h"
#include "tidal_tensor.hpp"
#ifdef ORBIT_SAMPLING
#include "orbit_sampling.hpp"
typedef OrbitalSamplingManager OrbitManager;
#else
#include "pseudoparticle_multipole.hpp"
typedef PseudoParticleMultipoleManager OrbitManager;
#endif
//! class to store necessary information ... |
#if defined(_WIN32) && !defined(WIN32)
#define WIN32
#endif
#include "32blit.hpp"
#include "UserCode.hpp"
#ifndef NO_FFMPEG_CAPTURE
#include "VideoCapture.hpp"
#endif
#include <SDL.h>
#include <random>
#include <cmath>
#include <iostream>
#include <chrono>
#include <ctime>
#include <string>
#include <sstream>
#define ... |
// file : liblava/resource/texture.cpp
// copyright : Copyright (c) 2018-present, Lava Block OÜ
// license : MIT; see accompanying LICENSE file
#include <liblava/resource/format.hpp>
#include <liblava/resource/texture.hpp>
#include <bitmap_image.hpp>
#include <selene/img/pixel/PixelTypeAliases.hpp>
#include <s... |
#include "ShaderCamera.h"
using namespace std;
ShaderCamera::ShaderCamera() {
init();
}
GLvoid ShaderCamera::init() {
FOVY = 60.0;
FOVX = 60.0;
ASPECT_RATIO = 1.0;
NEAR_CLIPPING_PLANE = 1.0;
FAR_CLIPPING_PLANE = 10e4;
DEFAULT_TRANSLATE_STEP = 0.0;
DEFAULT_ROTATE_ANGLE = 0.0;
memset( m_translate... |
// From OpenCV's samples/c directory
// Example 13-3. Training snippet for boosted classifiers
//
/* *************** License:**************************
Oct. 3, 2008
Right to use this code in any way you want without warrenty, support or any guarentee of it working.
BOOK: It would be nice if you cited it:
Learni... |
/* GVERB -- long reverberator
based on the original "gverb/gigaverb" by <NAME>
kouhia at nic.funet.fi
code taken from the Max/MSP port by <NAME>, <<EMAIL>>
(see "origcopyright.txt" accompanying this instrument)
p0 = output start time
p1 = input start time
p2 = duration
*p3 = output amp multiplier
... |
#ifdef _MSC_VER
#define _CRT_SECURE_NO_WARNINGS
#endif
#include <cmath>
#include <algorithm>
#include <ctime>
#include <cstdlib>
#include <cstdio>
#include <vector>
#include <iomanip>
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include "clipper.hpp"
using namespace st... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.