text stringlengths 5.71k 33.7k |
|---|
#include <windows.h>
#include <tchar.h>
#include <shlwapi.h>
#include <commctrl.h>
#include "resource.h"
#include "server\VarController.h"
#include "MyMsgProc.h"
#include "server\LowDbAccess.h"
void ChangeOperationType(int Type, HWND RdoBtn1, HWND RdoBtn2, HWND IpHndl, HWND PortHndl, HWND TgtHndl)
{
if (Type == 0) {... |
#pragma once
#include "gl_core_4_5.hpp"
#include <assimp/Importer.hpp>
#include <assimp/postprocess.h>
#include <assimp/scene.h>
#include "GPUResources.hpp"
#include "Logger.hpp"
#include "PhysicalWorld.hpp"
#include "VertexData.hpp"
#include "Yaml.hpp"
struct InternalMeshInfo
{
size_t vertexStart;
size_t inde... |
#include <rgstrtn.h>
//healpixSampling methods
healpixSampling::healpixSampling(int n, pcl::PointCloud<pcl::PointXYZ> InputCloud) : _n(n), _inputcloud(InputCloud)
{
};
void
healpixSampling::generate()
{
*cloud = _inputcloud;
//build ketree ready to search
kdtree.setInputCloud(cloud);
pts = cloud->getMatrixXfMap()... |
/*
Copyright (c) 2019-2021 ZettaDB inc. All rights reserved.
This source code is licensed under Apache 2.0 License,
combined with Common Clause Condition 1.0, as detailed in the NOTICEfile.
*/
#include "config.h"
#include "global.h"
#include "log.h"
#include "sys.h"
#include "sys_config.h"
#include <limits.h... |
// 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 "ui/aura/gestures/gesture_sequence.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "base/time.h"
#include "ui/aura... |
#include <fstream>
#include <math.h>
#include <uWS/uWS.h>
#include <chrono>
#include <iostream>
#include <thread>
#include <vector>
#include "Eigen-3.3/Eigen/Core"
#include "Eigen-3.3/Eigen/QR"
#include "json.hpp"
#include "spline.h"
using namespace std;
// for convenience
using json = nlohmann::json;
// For convert... |
#include <string.h>
#include "plugin.hpp"
#include "Computerscare.hpp"
#include "dtpulse.hpp"
static const int BUFFER_SIZE = 512;
struct FolyPace : Module {
enum ParamIds {
TIME_PARAM,
TRIM,
OFFSET,
SCRAMBLE,
NUM_PARAMS
};
enum InputIds {
X_INPUT,
NUM_INPUTS
};
enum OutputIds {
NUM_OUTPUTS
};
... |
/*
* Copyright 1995, 2016 Perforce Software. All rights reserved.
*
* This file is part of Perforce - the FAST SCM System.
*/
# define NEED_FILE
# define NEED_WINDOWSH
# include <stdhdrs.h>
# include <strbuf.h>
# include <strdict.h>
# include <vararray.h>
# include <strtable.h>
# include <strops.... |
/* Includes, system */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "math.h"
#include "gsl/gsl_matrix.h"
#include "gsl/gsl_vector.h"
#include "gsl/gsl_blas.h"
#include "gsl/gsl_linalg.h"
#include <sys/time.h>
/* Includes, cuda */
#include <cuda_runtime.h>
#include <cublas_v2.h>
#include <shrQAT... |
/*
Copyright (c) 2002-2010 Tampere University.
This file is part of TTA-Based Codesign Environment (TCE).
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, ... |
#include "FeatureExtractor.h"
#include "RawData.h"
#include <cmath>
#include <ctime>
#include <cstdlib>
#include "wtime.h"
#include "mathtool.h"
#include "ThreadPool.h"
SP_RESULT FeatureExtractor::exFeatures(const RawData *data) {
return exFeatures(data, \
sampleRate,
preEmpFactor, \
... |
#include "dungeon.hpp"
#include "level.hpp"
#include "utils.hpp"
#include "PractRand.h"
#include "PractRand/RNGs/sfc64.h"
#include "delaunator.hpp"
#include "kruskal.hpp"
#include <deque>
#include <vector>
#include <iostream>
#include <math.h>
#include <algorithm>
// Uncomment to enable diagonal paths, still experimen... |
// Application includes
#include "EXOnator.hh"
const string EXOnator::FIT_DESCRIPTION = "EXOnator_fit";
// Interval
Interval::Interval(string ref, long start, long end, string name) {
this->ref = ref;
this->name = name;
this->start = start;
this->end = end;
ostringstream strs;
strs << ref << ":" << start << "-"... |
/****************************************************************************
* Copyright (C) 2021 <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 https://mozilla.org/MPL/2.0/.
*****... |
#include "stone/Compile/Lexer.h"
#include "stone/Core/Char.h"
#include "stone/Core/SrcMgr.h"
using namespace stone;
using namespace stone::analysis;
/// CLO8 - Return the number of leading ones in the specified 8-bit value.
static unsigned CLO8(unsigned char C) {
return llvm::countLeadingOnes(uint32_t(C) << 24);
}... |
// Copyright 2018 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "biod/cros_fp_device.h"
#include <fcntl.h>
#include <sys/ioctl.h>
#include <algorithm>
#include <base/strings/string_number_conversions.h>
... |
/*=============================================================================
Name : kineticareader.cpp
System : FME Plug-in SDK
Language : C++
Purpose : IFMEReader method implementations
Copyright (c) 1994 - 2016, Safe Software Inc. All rights reserved.
=============================... |
// BravaisLatticeWithBasis.cpp: implementation of the BravaisLatticeWithBasis class.
//
//////////////////////////////////////////////////////////////////////
#include <vedo/knight/BravaisLatticeWithBasis.h>
#include <aries/utility/Vector3d.h>
#include <aries/utility/Constants.h>
#include <limits>
///////////////////... |
/* -*-Mode: c++;-*-
Copyright (c) 2003-2008 <NAME>, All Rights Reserved
*/
/* UnionFind after Tarjan */
#include "plib.h"
uintptr_t prime2[] = {1,
3,
7,
13,
31,
61,
127,
... |
#include "Content/PumLoader.h"
#include "Streams/FileReader.h"
Pu::PumNode::PumNode(void)
: HasMesh(false), HasSkin(false), HasTranslation(false),
HasRotation(false), HasScale(false), Mesh(0), Skin(0)
{}
Pu::PumNode::PumNode(BinaryReader & reader)
: Mesh(0), Skin(0)
{
const uint32 childCount = reader.ReadUInt32()... |
//
// Created by frol on 25.06.19.
//
#include <iostream>
#include <sstream>
#include <vector>
#include <chrono>
#include <thread>
#include <iomanip> // for (std::fixed, std::setfill, std::setw)
#include "../hydra_api/HydraAPI.h"
#include "../hydra_api/HydraXMLVerify.h"
#include "../utils/mesh_utils.h"
using pugi::... |
/*
* ArcScripts for ArcEmu MMORPG Server
* Copyright (C) 2009 ArcEmu Team <http://www.arcemu.org/>
* Copyright (C) 2008-2009 Sun++ Team <http://www.sunscripting.com/>
* Copyright (C) 2008 WEmu Team
* Copyright (C) 2007-2008 Moon++ Team
*
* This program is free software: you can redistribute it and/or modify
* i... |
/*
Copyright (c) 2015 - present Advanced Micro Devices, Inc. All rights reserved.
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 us... |
#ifdef CH_LANG_CC
/*
* _______ __
* / ___/ / ___ __ _ / / ___
* / /__/ _ \/ _ \/ V \/ _ \/ _ \
* \___/_//_/\___/_/_/_/_.__/\___/
* Please refer to Copyright.txt, in Chombo's root directory.
*/
#endif
#include "NonlinearViscousTensor.H"
#include "QuadCFInterp.H"
#include "CornerCopie... |
/*
This is the source code of SVM
*/
#include <arpa/inet.h>
#include <assert.h>
#include <netinet/in.h>
#include <pthread.h>
#include <sys/socket.h>
#include <sys/time.h>
#include <time.h>
#include <unistd.h>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <iostream>
#include <istream>
#include <ostre... |
#include "rsGlobalExtern.hpp"
#include "rodsErrorTable.h"
#include "miscServerFunct.hpp"
#include "reIn2p3SysRule.hpp"
#include "irods_log.hpp"
#include "irods_plugin_name_generator.hpp"
#include "irods_resource_manager.hpp"
#include "irods_get_full_path_for_config_file.hpp"
#include "server_report.h"
#include "irods_s... |
// Houdini object saver.
// This tool reads object definitions form a hsff file and writes geo/bgeo files for
// later usage in mantra rendering.
//#include <stdio.h>
#include <iostream>
#include <CMD/CMD_Args.h>
#include <GU/GU_Detail.h>
#include "HoudiniObjectSaver.h"
#include "hsff.h"
#include "particleGeo.h"
#i... |
////////////////////// Code to produce K*LL candidates /////////////////////////
#include <vector>
#include <memory>
#include <map>
#include <string>
#include <limits>
#include <algorithm>
#include "FWCore/Framework/interface/global/EDProducer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Paramete... |
/* SPDX-License-Identifier: BSD-2-Clause-Patent
*
* Copyright (c) 2016-2019 Intel Corporation
*
* This code is subject to the terms of the BSD+Patent license.
* See LICENSE file for more details.
*/
#include "son_actions.h"
#include "db/db_algo.h"
#include "tasks/association_handling_task.h"
#include "tasks/bml... |
/*
main.cpp
@authors <NAME>, <NAME>, <NAME>, <NAME>
@Description: Transmitter program for implementing the AIS_CAESAR Protocol PoC
@version 1.0 25/02/19
Compile command, add flag -DSECURITY_LEVEL to set another security level, example -DSECURITY_LEVEL=1
g++ -O2 -DSECURITY_LEVEL=1 main.cpp BloomFilter.cp... |
// Copyright (c) 2018, The Safex Project
//
// 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
// ... |
// AMD AMDUtils code
//
// Copyright(c) 2018 Advanced Micro Devices, Inc.All rights reserved.
//
// Vulkan Samples
//
// Copyright (C) 2015-2016 Valve Corporation
// Copyright (C) 2015-2016 LunarG, Inc.
// Copyright (C) 2015-2016 Google, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a... |
// This file is part of node-lmdb, the Node.js binding for lmdb
// Copyright (c) 2013-2017 <NAME>
// Licensed to you under the terms of the MIT license
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// ... |
#include <fmt/core.h>
#include <vector>
#include <cmath>
#include <cstdlib>
#include <glm/ext/matrix_transform.hpp>
#include <glm/ext/quaternion_trigonometric.hpp>
#include <glm/fwd.hpp>
#include <glm/vector_relational.hpp>
#include <iostream>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm... |
/*
** sectorgeometry.cpp
**
** caches the triangle meshes used for rendering sector planes.
**
**---------------------------------------------------------------------------
** Copyright 2021 <NAME>
** All rights reserved.
**
** Redistribution and use in source and binary forms, with or without
** modification, are perm... |
// large.cpp: Multi-precision integer arithmetic.
// Copyright(c) 1996 <NAME>. All rights reserved.
// This program text is based on Chapter 2 and Appendix A of
//
// <NAME>. (1996) Algorithms and Data Structures in C++,
// Chichester: <NAME>.
#include <strstrea.h>
// This filename strstrea.h is in ... |
#include "gencore.h"
#include "bamutil.h"
#include "jsonreporter.h"
#include "htmlreporter.h"
Gencore::Gencore(Options *opt){
mOptions = opt;
mBamHeader = NULL;
mOutSam = NULL;
mPreStats = new Stats(opt);
mPreStats->setPostStats(false);
mPostStats = new Stats(opt);
mPostStats->setPostStats(... |
#include "downloader/image-downloader.h"
#include <QDir>
#include <QFile>
#include <QImageReader>
#include <QSettings>
#include <QSize>
#include <QUuid>
#include <utility>
#include "extension-rotator.h"
#include "file-downloader.h"
#include "functions.h"
#include "logger.h"
#include "models/api/api.h"
#include "models/... |
//
// Copyright (c) 2014-19, Lawrence Livermore National Security, LLC
// and Kripke project contributors. See the COPYRIGHT file for details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
//
#include <Kripke.h>
#include <Kripke/Core/Comm.h>
#include <Kripke/Core/DataStore.h>
#include <Kripke/Core/Set.h>
#include <K... |
/*
* webcam-demo.cpp
*
* A demo program of End-to-end Scene Text Detection and Recognition.
*
* Created on: Jul 31, 2014
* Author: <NAME> <lgomez AT cvc.uab.es>
*/
#include "opencv2/text.hpp"
#include "opencv2/core/utility.hpp"
#include "opencv2/highgui.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/... |
/*
* Copyright 1993-2015 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this software. Any use, reproduction, disclosure, or distribution of
* this software and related... |
/* Copyright 2019 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 <Arduino.h>
#include "Wire.h"
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include <ArduinoJson.h>
#include <SparkFun_I2C_GPS_Library.h> // https://github.com/sparkfunX/Qwiic_GPS-TitanX1
#include <TinyGPS++.h> // https://github.com/mikalhart/TinyGPSPlus
#include <Telaire.h>
#include <Adafruit_ADS1015.h>... |
/*******************************************************************************
* Copyright (c) 2013, Esoteric Software
* 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. Redistributio... |
//-----------------------------------------------------------------------------
// 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... |
#include "nanort.h"
#define STB_IMAGE_WRITE_IMPLEMENTATION
#include "stb_image_write.h"
#include <stdint.h>
namespace {
// PCG32 code / (c) 2014 <NAME> / pcg-random.org
// Licensed under Apache License 2.0 (NO WARRANTY, etc. see website)
// http://www.pcg-random.org/
typedef struct {
unsigned long long state;
u... |
#include "stdafx.h"
#pragma hdrstop
#include "maTranslator.h"
#include "../../../editors/xrECoreLite/EditObject.h"
#include "../../../editors/xrECoreLite/EditMesh.h"
#include "smoth_flags.h"
//-----------------------------------------------------------------------------------------
BOOL CEditableObject::ParseMAMateria... |
//
// Copyright (c) 2017 The Khronos Group 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 la... |
// Copyright 2019 Google LLC
//
// 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 writi... |
//
// main.cpp
// model
//
// Created by <NAME> on 1/8/19.
// Copyright © 2019 <NAME>. All rights reserved.
//
#include <iostream>
#include <fstream>
#include <string>
#include <unordered_map>
#include <vector>
#include <ctime>
using namespace std;
struct subject {
string q1;
int q1_code;
string q2;
... |
#include "Module.hh"
#include <unistd.h>
#include <stdio.h>
#include <new>
using namespace Pds::Dti;
using Pds::Cphw::Reg;
static inline unsigned getf(const Pds::Cphw::Reg& i, unsigned n, unsigned sh)
{
unsigned v = i;
return (v>>sh)&((1<<n)-1);
}
static inline unsigned setf(Pds::Cphw::Reg& o, unsigned v, unsig... |
/*************************************************************************
* Copyright (C) [2019] by Cambricon, Inc. All rights reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License a... |
/*
* \brief USB HID gamepad to Input session translator
* \author <NAME>
* \date 2016-10-12
*/
/*
* Copyright (C) 2016 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU General Public License version 2.
*/
/* Genode includes */
#include <b... |
/* $Id$ */
/*
* This file is part of OpenTTD.
* OpenTTD 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.
* OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without... |
/**
* \file gaffe_main.cpp: GFA (Graph Alignment Format) Fast Emitter: a new mapper that will be *extremely* fast once we actually write it
*/
#include <omp.h>
#include <unistd.h>
#include <getopt.h>
#include <iostream>
#include <cassert>
#include <vector>
#include <unordered_set>
#include <chrono>
#include <mutex>
... |
#include "Tensor.hpp"
#include <sstream>
using namespace et;
using std::size_t; //Surpress VSCode warnings
size_t g_print_threshold = 1000;
size_t g_truncate_size = 3;
template <typename T>
static size_t prettyPrintTensor(std::ostream& os, const T* arr, Shape shape, size_t depth, size_t max_depth, size_t max_length... |
// C&C NLP tools
// Copyright (c) Universities of Edinburgh, Oxford and Sydney
// Copyright (c) <NAME>
//
// This software is covered by a non-commercial use licence.
// See LICENCE.txt for the full text of the licence.
//
// If LICENCE.txt is not included in this distribution
// please email <EMAIL> to obtain a copy.
... |
#include "pfxbucket.h"
#include "graphics/mesh/submesh/pfxemittermesh.h"
#include "pfxobjects.h"
#include "particlefx.h"
using namespace Tempest;
static void rotate(Vec3& rx, Vec3& ry,float a,const Vec3& x, const Vec3& y){
const float c = std::cos(a);
const float s = std::sin(a);
rx.x = x.x*c - y.x*s;
r... |
// MIT License
//
// Copyright (c) 2018 degski
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, mer... |
/*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be use... |
#include "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 <random>
#include <array>
#include <iostream>
#include <list>
#include <algorithm>
#include <vector>
#include <cstdlib>
#include <chrono>
#include <thread>
#include <list>
#include <deque>
#include <fstream>
#include <string>
// Import things we need from the standard library
using std::chrono::duration_cas... |
//
// test_llgr.cc
// vnsw/agent/test
//
#include "base/os.h"
#include <base/logging.h>
#include <boost/shared_ptr.hpp>
#include <io/event_manager.h>
#include <tbb/task.h>
#include <base/task.h>
#include <cmn/agent_cmn.h>
#include "cfg/cfg_init.h"
#include "oper/operdb_init.h"
#include "controller/controller_init.h... |
#include "pch.h"
#include <cuda_runtime.h>
#include <cublas.h>
#define GLM_ENABLE_EXPERIMENTAL
#include <glm/gtx/transform.hpp>
#include "rigid_transform_3d.h"
#include "icp.h"
#include "cuda_wrapper.cuh"
#include "icp.cuh"
#include "cuda_utils.h"
#include "linear_least_squares.h"
#include "depth_map.h"
#include "mea... |
#include "SSLevel.h"
#include <Core/GlobalSystems.h>
#include <Core/components/TransformComponent.h>
#include <Core/components/ModelComponent.h>
#include <Core/components/RigidBodyComponent.h>
#include <par_shapes.h>
#define STB_PERLIN_IMPLEMENTATION
#include <stb-master/stb_perlin.h>
#include <algorithm>
#include <du... |
/*
* 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 ... |
/*************************************************************************\
C O P Y R I G H T
Copyright 2003 Image Synthesis Group, Trinity College Dublin, Ireland.
All Rights Reserved.
Permission to use, copy, modify and distribute this software and its
doc... |
#include <Layer1.h>
#include <LoRaLayer2.h>
/* Fifo Buffer Class
*/
packetBuffer::packetBuffer()
{
head = 0;
tail = 0;
}
// reads a packet from buffer
Packet packetBuffer::read(){
Packet packet;
memset(&packet, 0, sizeof(packet));
if (head == tail){
// if buffer empty, return empty packet
... |
#include <glm/glm.hpp>
#include <random>
#include <iostream>
#include <ctime>
#include "util.h"
glm::dvec3 randomVec()
{
return glm::dvec3((double)rand() / RAND_MAX, (double)rand() / RAND_MAX, (double)rand() / RAND_MAX);
}
// generates a point of the hammersley point set, based on http://holger.dammertz.org/stuff/n... |
/**
* File: CallgraphManager.cpp
* License: Part of the MetaCG project. Licensed under BSD 3 clause license. See LICENSE.txt file at https://github.com/tudasc/metacg/LICENSE.txt
*/
#include "CallgraphManager.h"
#include "GlobalConfig.h"
#include "Timing.h"
#include "ExtrapConnection.h"
#include "EXTRAP_Model.hpp"... |
/*========================== begin_copyright_notice ============================
Copyright (c) 2000-2021 Intel Corporation
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, inc... |
#include "localconfig.hpp"
// XIA support
#include "xiaapi.hpp"
#include "dagaddr.hpp"
// C++ includes
#include <iostream>
// C includes
#include <string.h> // memset
#include <stdio.h>
#include <pthread.h>
extern "C" {
#include "picoquic.h" // picoquic_create, states, err, pkt types, contexts
//#include "picoquic_... |
/*
* EdgeEvidence.cpp
*
* This is part of CNVthresher. Copyright (C) 2015 by Personalis, Inc.
* Original author: <NAME> <<EMAIL>>
*/
#include <algorithm>
#include <sstream>
#include <iomanip>
#include "EdgeEvidence.h"
#include "GRegion.h"
#include "Fasta.h"
int EdgeEvidence::SoftClipBufferSize = 20;
float Edge... |
/*
* Copyright 2009-2020, KyTea Development Team
*
* 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... |
#include "../../include/valve/hl1bspasset.h"
#include "../../include/valve/hl1bspinstance.h"
#define STB_RECT_PACK_IMPLEMENTATION
#include "../../include/stb/stb_rect_pack.h"
#include <iostream>
#include <sstream>
#include <GL/glextl.h>
#include <glm/gtc/type_ptr.hpp>
using namespace valve::hl1;
BspAsset::BspAsset(D... |
#include "Globals.h" // NOTE: MSVC stupidness requires this to be the same across all modules
#include "FireSimulator.h"
#include "../World.h"
#include "../Defines.h"
#include "../Chunk.h"
#include "Root.h"
#include "../Bindings/PluginManager.h"
// Easy switch for turning on debugging logging:
#if 0
#define FI... |
/*-
* BSD LICENSE
*
* Copyright (c) Intel 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 copyri... |
//==============================================================================
// Micro benchmark for merge-sort functions
//==============================================================================
#include <string>
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <string.... |
#include "esp_cxx/firebase/firebase_database.h"
#include "cJSON.h"
extern "C" {
#include "cJSON_Utils.h"
}
#include <array>
#include "esp_cxx/httpd/http_request.h"
#include "esp_cxx/httpd/mongoose_event_manager.h"
#include "esp_cxx/logging.h"
namespace {
struct RemoveEmptyState {
cJSON* parent;
cJSON* cur;
c... |
//
// ItTiler.cpp
// pixelbridge
//
// Created by <NAME> on 10/13/13.
// Copyright (c) 2013 <NAME>. All rights reserved.
//
#include <cmath>
#include <iostream>
#include "PixelBridgeFeatures.h"
#include "Configuration.h"
#include "ItTiler.h"
/**
* Using a #define because it's used for floats and ints.
*/
#defi... |
/***************************************************************************
# Copyright (c) 2020, 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... |
/*
* Copyright (c) 2012-2016 <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 code must retain the above copyright notice, this
* list of conditions... |
/*
Copyright 2011 - 2015 Occam Robotics Inc - All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and th... |
#include "disasm/disasm.h"
#include "library.h"
#include "util/prof.h"
Disasm g_Disasm;
#if 0
#include <distorm.h>
#include <mnemonics.h>
namespace Disasm_diStorm
{
void Test()
{
DevMsg("Disasm_diStorm::Test BEGIN\n");
LibInfo info = LibMgr::GetInfo(Library::SERVER);
uint32_t lib_ba... |
#include <unistd.h>
#include <fcntl.h>
#include <pthread.h>
#include <sys/types.h>
#include <sys/ioctl.h>
#include <stdlib.h>
#include <stdio.h>
#include <semaphore.h>
#include "burner.h"
#include "snd.h"
#include "config.h"
#include <alsa/asoundlib.h>
extern "C" {
#include "fifo_buffer.h"
#include "thread.h"
}
void... |
#include "geometry.h"
void combine_aabb(const box& a, const box& b, box& out) {
vec3_deep_copy(out[0], a[0]);
vec3_deep_copy(out[1], a[1]);
for (int i = 0; i < 3; i++) {
//get min
out[0][i] = fmin(out[0][i], b[0][i]);
//get max
out[1][i] = fmax(out[1][i], b[1][i]);
}
}
... |
/*
* 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... |
#include <QBencodeDocument>
#include <QBencodeValue>
#include <QDateTime>
#include <QDir>
#include <QFile>
#include <QSettings>
#include "libtorrentaccessor.h"
#include "simpletorrentinfo.h"
#include "utils.h"
LibtorrentAccessor::LibtorrentAccessor()
: ready(false)
{ }
LibtorrentAccessor::~LibtorrentAccessor()
{ ... |
#include "interfaceMiddleman.hpp"
// Debug logging
#define DEBUG 0
#if DEBUG == 1
#define PRINTLN(x) Serial.println(x)
#define PRINTLN2(x, y) Serial.println(x, y)
#define PRINT(x) Serial.print(x)
#define PRINT2(x, y) Serial.print(x, y)
#else
#define PRINTLN(x)
#define PRINTLN2(x, y)
#define PRINT(x)
#define PRINT2(x,... |
/*
*
* Copyright (c) 2018 - 2019 Mateusz 'mteg' Golicz
*
* Distributed under Apache License version 2.0
*
*/
#include "captypes.h"
#include "capaffine.h"
#include "capdebug.h"
#include "svd.h"
#include <cstring>
#define _USE_MATH_DEFINES
#include <cmath>
#include <cstdio>
#include <vector>
/*
* Constructor -... |
//
// TestApp.hpp
// Mural
//
// Created by Sean on 10/22/15.
//
//
#pragma once
#include "cinder/Rand.h"
#include "MuGameController.hpp"
#include "MuCanvas.hpp"
#include "MuCanvasManager.hpp"
#include "MuCanvasContext2D.hpp"
#include "MuImage.hpp"
#include "MuTimer.hpp"
#include "MuCanvasPattern.hpp"
#include ... |
#include <iostream>
#include <math.h>
#include <string>
#include <sstream>
#include <fstream>
using namespace std;
#include <GLUT/glut.h>
#include "Overlay.h"
#include "Seed.h"
#include "TextureLoader.h"
#include "Controls.h"
#include "Camera.h"
#include "World.h"
#include "Target.h"
#include "ProceduralWorld.h"
#inc... |
#include <algorithm>
#include <functional>
#include <memory>
#include <vector>
#include <iostream>
#include <chrono>
#include <random>
#include <math.h>
#include <ctime>
#include <ratio>
#include <fstream>
#include <numeric>
#define DIM 3
using point_t = std::vector< double >;
using indexArr = std::vector< size_t >;... |
/*
* Copyright (c) 2010-2013 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
* not be construed as granting a license to any other intellectual
* property including but not limited to intellectual property relating
* to a hardware implementation of the ... |
#include "Settings.h"
Settings::Settings() {
uint8_t tempMAC[6];
defaultMacAP.set(WiFi.softAPmacAddress(tempMAC));
if(!defaultMacAP.valid()) defaultMacAP.randomize();
}
void Settings::syncMacInterface(){
if(debug) Serial.println("Trying to sync the MAC addr with settings");
if(isSettingsLoaded){
Mac mac... |
/*
* (c) 2009-2010 <NAME> <<EMAIL>>
*
* This file is part of flame.
*
* flame 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 version.
... |
/*
Copyright (c) 2004-2018, <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 code must retain the above copyright
notice, this list of conditions and the following d... |
/* XMRig
* Copyright (c) 2018-2021 SChernykh <https://github.com/SChernykh>
* Copyright (c) 2016-2021 XMRig <https://github.com/xmrig>, <<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... |
// Copyright (c) 2009 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/app/breakpad_win.h"
#include <windows.h>
#include <shellapi.h>
#include <tchar.h>
#include <vector>
#include "base/base_switches.h"... |
// -*- C++ -*-
//
// ======================================================================
//
// <NAME>, U.S. Geological Survey
// <NAME>, GNS Science
// <NAME>, University of Chicago
//
// This code was developed as part of the Computational Infrastructure
// for Geodynamics (http://geodynamics.org).
//
// Copyright ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.