text stringlengths 8.71k 38.4k |
|---|
/*******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2016 <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 S... |
/*
* BSIDE-ADM20 helper for FlexBV
*
* V0.1 - October 4, 2018
*
*
* Written by <NAME> (<EMAIL>)
*
*/
#include <signal.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <termios.h>
#include <unistd.h>
#i... |
#include <chrono>
#include <cmath>
#include <cstdint>
#include <sstream>
#include <stdexcept>
#include <string>
#include <thread>
#include "SDL.h"
#include "Game.h"
#include "Options.h"
#include "PlayerInterface.h"
#include "../Assets/CityDataFile.h"
#include "../Input/InputActionName.h"
#include "../Interface/Common... |
/*
* eyefinder.cc
*
* Author:<NAME>
* Fixes:
*
* Copyright (c) 2003 Machine Perception Laboratory
* University of California San Diego.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* 1. Redistribut... |
// license:BSD-3-Clause
// copyright-holders:Hau
#include "emu.h"
#include "includes/galastrm.h"
#define X_OFFSET 96
#define Y_OFFSET 60
galastrm_renderer::galastrm_renderer(galastrm_state& state)
: poly_manager<float, gs_poly_data, 2>(state.machine())
, m_state(state)
, m_screenbits(state.m_screen->width(), stat... |
// Copyright 2017-2018 <NAME>
// SPDX-License-Identifier: Apache-2.0
#include <math.h> // round
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "cameraDeWarp.hpp"
cameraDeWarp::cameraDeWarp() {
// initialize lookup table with invalid value to verify if all locations are calculated
for (size_t ... |
// bari3.cpp: <NAME>
//description: it's compiler source to source , convert code from bari3 commands to Arduino c style
// for more description e-mail <EMAIL>
#include <iostream>
#include <fstream>
#include <list>
#include <string>
#include "strprc.h"
#include "bari3.h"
#include "bXML.h"
#include <vector>
#include "... |
// __________ ___ ______ _
// / ____/ __ \____ / (_)___ ___ / ____/___ ____ _(_)___ ___
// / /_ / / / / __ \/ / / __ \/ _ \ / __/ / __ \/ __ `/ / __ \/ _ \
// / __/ / /_/ / / / / / / / / / __/ / /___/ / / / /_/ / / / / / __/
// /_/ \____/_/ /_/_/_/_/ /_/\_... |
/** @file
@brief Example program that uses the OSVR direct-to-display interface
and OpenGL to render a scene with low latency.
@date 2015
@author
<NAME> working through ReliaSolve.com for Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2015 Sensics, Inc.
//
// Licensed under th... |
#include "iers2010.hpp"
#ifdef USE_EXTERNAL_CONSTS
#include "iersc.hpp"
#endif
// Zonal Earth tide model
// Number of terms in the zonal Earth tide model
constexpr int nzont = 62;
// --------------------------------------------------
// Tables of multiples of arguments and coefficients
// -------------------------... |
//
// Created by lenz on 1/31/20.
//
#include "AppDataModel.h"
#include "NetworkRequests.h"
#include "TelegramData.h"
#include <cloverleaf/Logger.h>
std::shared_ptr<MyMemberData> AppDataModel::update_my_member_data(const cJSON* json) {
std::string old_pic_medium, old_pic_small, old_tg_pic;
if (me == nullptr) ... |
// Copyright (c) 2011 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/gfx/native_theme_chromeos.h"
#include "base/logging.h"
#include "grit/gfx_resources.h"
#include "third_party/skia/include/effects/SkGrad... |
#define GLM_FORCE_RADIANS
#include <functional>
#include <algorithm>
#include <cstring>
#include <iostream>
#include <sstream>
#include <map>
#include <set>
#include "config.h"
#include "gl.hpp"
#include "SOIL.h"
#include "glm/gtx/transform.hpp"
#include "GlWindowContext.hpp"
#include "log.hpp"
#include "Path.hpp"
#in... |
/*
Open Tracker License
Terms and Conditions
Copyright (c) 1991-2000, Be Incorporated. 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... |
/*
* This file belongs to the Galois project, a C++ library for exploiting
* parallelism. The code is being released under the terms of the 3-Clause BSD
* License (a copy is located in LICENSE.txt at the top-level directory).
*
* Copyright (C) 2018, The University of Texas at Austin. All rights reserved.
* UNIVER... |
// Copyright 2013 The Flutter 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 "component.h"
#include <dlfcn.h>
#include <fuchsia/mem/cpp/fidl.h>
#include <lib/async-loop/cpp/loop.h>
#include <lib/async/cpp/task.h>
#include ... |
// Copyright (c) 2006-2008 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 <stdlib.h>
#include "skia/ext/image_operations.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/cor... |
#include "L1Trigger/L1TMuonEndCap/interface/SectorProcessorLUT.h"
#include <cassert>
#include <iostream>
#include <fstream>
#include "FWCore/ParameterSet/interface/FileInPath.h"
#include "FWCore/Utilities/interface/Exception.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
SectorProcessorLUT::SectorProc... |
/******************************************************************************
* The MIT License (MIT)
*
* Copyright (c) 2015-2017 <NAME>
* Copyright (c) 2014 Crytek
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softw... |
#define STB_IMAGE_IMPLEMENTATION
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <vector>
#include <windows.h>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include "Com... |
/*******************************************************************************
* Copyright (c) 2000, 2019 IBM Corp. and others
*
* This program and the accompanying materials are made available under
* the terms of the Eclipse Public License 2.0 which accompanies this
* distribution and is available at http://ec... |
/*===================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty o... |
/*
* Configurator.cpp
*
* Copyright (C) 2019 by Universitaet Stuttgart (VIS).
* Alle Rechte vorbehalten.
*/
/**
* USED HOTKEYS:
*
* - Search Module: Ctrl + Shift + m
* - Search Parameter: Ctrl + Shift + p
* - Save Edited Project: Ctrl + Shift + s
* - Delete Graph Item: Delete
*/
#include "s... |
#include "globals.h"
#include "flags.h"
#include "usb/usb.h"
#include "bitmap.h"
#include "fluxmap.h"
#include "decoders/fluxmapreader.h"
#include "readerwriter.h"
#include "protocol.h"
#include "proto.h"
#include "fluxsink/fluxsink.h"
#include "fmt/format.h"
#include "dep/agg/include/agg2d.h"
#include "dep/stb/stb_ima... |
/*
* The Tree Command
* SKELETON IMPLEMENTATION TO BE FILLED IN FOR TASK 3
*/
#include <infos.h>
// function protoypes:
bool does_satisfy_regex(const char* text, const char* pattern, bool do_lookahead);
#define STR_BUF_LEN 256
#define TREE_DEPTH_BEFORE_ROOT -1
#define NO_BRACKET 0
#define RANGE_BRACKET 1
#define... |
/*
===========================================================================
Doom 3 BFG Edition GPL Source Code
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Doom 3 BFG Edition Source Code is free... |
/*
Copyright (c) 2015 <NAME> <<EMAIL>>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRAN... |
/******************************************************************************
* Adapted for Mapguide by <NAME> / Geomap
* $Id: mapquantization.c 11599 2011-04-19 05:14:17Z tbonfort $
*
* Project: MapServer
* Purpose: RGB(A) to Palette Support Functions
* Author: <NAME>
*
**************************... |
/*
* Copyright(C) 2015 by <NAME>
* See license.txt for full license and copyright notice.
*
* Authors: <NAME>
* imgUtils.cpp
*
* Created on : June 11th, 2015
* Author : <NAME>
*
* \brief random functions that are generically useful
*/
#ifdef _WIN32
#include <windows.h>
#include <shlobj.h>
#endif
#include <cstdlib>... |
#include <iostream>
#include <random>
#include <sstream>
#include <fstream>
#include <cmath>
#include <chrono>
#include <string>
#include <cstdio>
#include <utility>
#include <thread>
#include "allegro/allegro.h"
#define N_DINOS 70
#define CDEF (random(-3, 3))
using namespace std;
SpriteMap spritemap;
vector<Sprite>... |
// -*- C++ -*-
//
// Package: Validation/MtdValidation
// Class: EtlDigiHitsValidation
//
/**\class EtlDigiHitsValidation EtlDigiHitsValidation.cc Validation/MtdValidation/plugins/EtlDigiHitsValidation.cc
Description: ETL DIGI hits validation
Implementation:
[Notes on implementation]
*/
#include <stri... |
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <sstream>
#include <set>
#include <unordered_set>
#include <queue>
#include <stack>
#include <bitset>
using namespace std;
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(N... |
/*
Pinball Action arcade machine emulator
Copyright (c) 2004 <NAME>
*/
#include "pinball_action.h"
// Output flip-flops
enum {
FlipScreen = 0x01,
InterruptEnabled = 0x08,
HaveSoundInterrupt = 0x20,
};
// Hardware info
enum {
ScreenWidth = 224,
Scr... |
/*
* Copyright (C) 2005-2015 <NAME> (<EMAIL>).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable la... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//
//=============================================================================//
//
// Message.cpp
//
// implementation of CHudMessage class
//
#include "cbase.h"
#include "hudelement.h"
#include "hud_... |
#include <Urho3D/ProcGeom/MarchingTriangles.h>
#include <Urho3D/Graphics/DebugRenderer.h>
#include <Urho3D/Graphics/Geometry.h>
#include <Urho3D/Graphics/IndexBuffer.h>
#include <Urho3D/IO/Log.h>
#include <Urho3D/Math/Quaternion.h>
#include <Urho3D/Graphics/VertexBuffer.h>
#include <MathGeoLib.h>
#define ... |
#include <vtkh/vtkh.hpp>
#include <vtkh/DataSet.hpp>
#include <vtkh/filters/MarchingCubes.hpp>
#include <vtkh/rendering/RayTracer.hpp>
#include <vtkh/rendering/Scene.hpp>
#include <vtkm/filter/CellMeasures.h>
#include <vtkm/Types.h>
#include <vtkm/cont/DataSetBuilderUniform.h>
#include <vtkm/cont/DataSetFieldAdd.h>
#... |
/***************************************************************
*
* Copyright (C) 1990-2014, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. Y... |
#include "stdafx.h"
#include "build.h"
#include "../xrLC_Light/xrLC_GlobalData.h"
#include "../xrLC_Light/light_point.h"
#include "../xrLC_Light/xrdeflector.h"
#include "../xrLC_Light/xrface.h"
#include "../../xrcdb/xrcdb.h"
#include "../../common/face_smoth_flags.h"
#include "../xrLC_Light/xrThread.h"
c... |
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <gtest/gtest.h>
#include "beanmachine/graph/graph.h"
// TODO[Walid]: Is it essential that we test distributions using ... |
#include "grammar.h"
#include "parse.h"
#include <cstring>
#include <iostream>
#include <map>
#include <set>
#include <string>
#include <vector>
#include "onigmognu.h"
static size_t const kParserMaxLineSize = 4096;
namespace {
static std::string replace_in_string(std::string str, std::string from,
std::string ... |
#include "route_plan.h"
#define TEST ros::package::getPath("vision")+"/route_plan/image.png"
#define TO_RAD M_PI/180.0
#define TO_DEG 180.0/M_PI
Vision::Vision()
{
//image_sub = nh.subscribe(VISION_TOPIC, 1,static_cast<void (Vision::*)(const sensor_msgs::ImageConstPtr&)>(&Vision::imageCb),this);
image_sub = nh.... |
// Copyright (c) 2019 The BCD Core developers
#include <validate/chain_cache.h>
#include <validate/cchain_state.h>
bool fRequireStandard = true;
CFeeRate minRelayTxFee = CFeeRate(DEFAULT_MIN_RELAY_TX_FEE);
// Used to avoid mempool polluting consensus critical paths if CCoinsViewMempool
// were somehow broken and r... |
#include <gtest/gtest.h>
//#include <unsupported/Eigen/MatrixFunctions>
#define private public
#include "alias.h"
#include "mm.h"
#include "group.h"
#include "graph.h"
#include "unittest_helpers.h"
#include "feature.h"
//using namespace Eigen;
using namespace xivo;
/* Class to check dxc(now)_d[everything else]. ... |
/*
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copy... |
/*
* constituent_reorder_model.cc
*
* Created on: Jul 10, 2013
* Author: junhuili
*/
#include <string>
#include <unordered_map>
#include <boost/program_options.hpp>
#include "utils/filelib.h"
#include "trainer.h"
using namespace std;
using namespace const_reorder;
typedef std::unordered_map<std::string... |
#include <assert.h>
#include <iostream>
#include <hwscale/opengl/YUV420PGrabber.h>
#if !defined(YUV420P_USE_APPLE_VAO)
# define YUV420P_USE_APPLE_VAO 0
#endif
YUV420PSize::YUV420PSize()
:y_offset(0)
,u_offset(0)
,v_offset(0)
,y_stride(0)
,u_stride(0)
,v_stride(0)
,yw(0)
,yh(0)
,uvw(0)
,uvh(0)
... |
// *********************************************************
// Copyright (c) Universite catholique de Louvain.
// All rights reserved
//
// Place du Levant, 2
// 1348 Louvain-la-Neuve
// Belgium
// Tel : +32 10 47 23 00
//
// *********************************************************
#inc... |
/*-----------------------------------------------------------------------------
*
* Name: hs.c
* Description: hypersplit packet classification algorithm
* Version: 1.0 (release)
* Author: <NAME> (<EMAIL>)
* Updates: <NAME> (The Technion - Israel Institute of Technology, email: <EMAIL>)
* Date: 5/3... |
/* Propeller WiFi loader
Based on <NAME>'s Pascal loader and <NAME>'s iOS loader.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <unistd.h>
#include "serialprop2connection.h"
#include "loader.h"
#include "proploader.h"
#define MAX_BUFFER_SIZE 32768 /* The maximum... |
//
// $Id: WaypointNavMethod.cpp,v 1.8 2005/12/14 19:25:39 clamatius Exp $
// Copyright (c) 2003, WhichBot 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:
//
// * Redistributio... |
/*
* Copyright 2018 The Tesserae authors.
*
* For the full copyright and license information, please view the LICENSE file
* that was distributed with this source code.
*/
#pragma once
#include <cmath>
#include <cstdio>
#include <numeric>
#include <string.h>
#include "features/bm25/bm25.hpp"
#include "features/... |
/*
Copyright (c) 2016-2018, Xilinx, 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 at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or ag... |
//
// MIT License
// Copyright (c) 2019 Snekoff. All rights reserved.
//
#include "monster.h"
using json = nlohmann::json;
Monster::Monster(Random_Generator_ *Rand_gen, int name_index, int challenge_rating_index) {
ifstream MonJson;
Existing_Monsters E_M;
E_M.fakeParameter = 1;
cout << "Control reach Monster::... |
#include "detection_output_layer.h"
DetectionOutputLayer::DetectionOutputLayer()
{
}
DetectionOutputLayer::~DetectionOutputLayer()
{
}
void DetectionOutputLayer::layer_set_up(vector<Blob>& bottom_data_, vector<Blob>& top_data_)
{
objectness_score_ = 0.01;
num_classes_ = 21;
share_location_ = true;
nu... |
/*
* Copyright 2017-2018, Intel Corporation
*
* 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 ... |
// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... |
#include "msdk_video_encoder.h"
#include <iostream>
// libyuv
#include <libyuv.h>
#include "msdk_utils.h"
const int kLowH264QpThreshold = 34;
const int kHighH264QpThreshold = 40;
MsdkVideoEncoder::MsdkVideoEncoder(std::shared_ptr<MsdkSession> session,
mfxU32 codec)
: session_... |
//
// The MIT License (MIT)
//
// Copyright 2013-2014 The MilkCat Project Developers
//
// 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 th... |
#include "OctTree.h"
/*
TODOs for the QuadTree
-> Free your memory!!!
-> Play with Bin growth heuristic
-> Convert the Bin contents to a void* so the tree can be used for other objects
-> Memory Allocator for OctTree
Essentailly the total size of the array containing the octtree is limited by the depth of the
tr... |
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <harp_mpi_test.hpp>
using namespace std;
using namespace harp;
void mpi_test_extract_subaccum ( mpi_spec_slice_p slice, mpi_matrix & full_data, mpi_matrix & check_data ) {
// inter-gang communicator
boost::mpi::communicator ... |
#include "disassembler.h"
const char Disassembler::op_name_str_orig[128][8] =
{
"aba", "abx", "adca", "adcb", "adda", "addb", "addd", "aim",
"anda", "andb", "asl", "asla", "aslb", "asld", "asr", "asra",
"asrb", "bcc", "bcs", "beq", "bge", "bgt", "bhi", "bita",
"bitb", "ble", "bls", ... |
/* -------------------------------------------------------------------------- *
* Simbody(tm): SimTKcommon *
* -------------------------------------------------------------------------- *
* This is part of the SimTK biosimulation toolkit originating from *
... |
/* functions.c functions for reso.c main program calculations
* <NAME> Nov. .98 */
// Commented and adjusted by <NAME>, Aug 2005
#include <string.h>
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <iostream>
#include "Table.h"
#include "function... |
#include "common.h"
std::string readFile(const std::string filename) {
std::ifstream in;
in.open(filename.c_str());
std::stringstream ss;
ss << in.rdbuf();
std::string sOut = ss.str();
in.close();
return sOut;
}
Mesh loadObj(std::string filename) {
Mesh outMesh;
std::ifstream fin;
fin.open(filen... |
int b9MhF//6oKqb
, th6sZ,
pQ
,
wzc ,
sJ0u ,
J
, B5 , qet,
Y, M
, JIk, dRbLB , JI ,
HVm
,V6i ,
ApWJ, QLr, kr,
yaXv ,
LrB ,vms, ZpPk/**/, qrW
,/*n*/
QBDYi,
jH , E ,Qp,qlMm
,i,/*KnSK*/
ZW,K1E , AXo ,
N4
, gI4I,/*X*/PhCO
,awv , zP7C , NJ ,
C
,G
,
rKp3S9, DCW ,xNvW,c6,
im
,
OXaT,ll9V,JSBw;
v... |
/*~-------------------------------------------------------------------------~~*
* Copyright (c) 2016 Los Alamos National Laboratory, LLC
* All rights reserved
*~-------------------------------------------------------------------------~~*/
//////////////////////////////////////////////////////////////////////////////... |
#include "manipulator.hpp"
bool manipulator::process(std::vector<std::string> parsedValues){
bool toReturn = false;
file fP;
builtInFunc bif;
for (unsigned int y = 0; y < parsedValues.size(); y++){
std::vector<std::string> splitLine = fP.split(parsedValues[y], " ");
for (unsigned int i = 0; i < splitL... |
//
// System.cpp
// Processing system display and control
// Created by Yunzhe on 2017/12/4.
//
#include "system.h"
mat4 model;
mat4 view;
mat4 projection;
mat4 viewport;
GLuint vboHandle[2];
GLfloat angle = 0.0f; // Use this to control the rotation
GLfloat camera[3] = {0, 0, 5}; ... |
/*
============================================================================
SV VCF properties
============================================================================
Copyright (C) 2015 <NAME>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public Lice... |
#include "ofApp.h"
//--------------------------------------------------------------
void ofApp::setup()
{
ofSetLogLevel(OF_LOG_NOTICE);
ofSetVerticalSync(true);
ofFill();
ofSetFrameRate(30);
glPointSize(1);
canvas.render = OF_MESH_WIREFRAME;
#ifdef LEAP_MOTION_ON
hand_id = 0; // 0-... |
// Copyright 2014 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 "components/search_engines/keyword_table.h"
#include <set>
#include "base/json/json_reader.h"
#include "base/json/json_writer.h"
#include "base... |
// This file is used to identify redundant checks and remove them.
#include "SRAnalysisPass.h"
#include "SCIPass.h"
#include "utils.h"
#include "CostModel.h"
#include "llvm/ADT/SmallPtrSet.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/Instructions.h"
#include "llvm/IR/Metadata.h"
#i... |
//--------------------------------------------------------------------------------------------------------------------//
// //
// Tuplex: Blazing Fast Python Data Scien... |
// This file is part of KWIVER, and is distributed under the
// OSI-approved BSD 3-Clause License. See top-level LICENSE file or
// https://github.com/Kitware/kwiver/blob/master/LICENSE for details.
/// \file
/// \brief Test KLV 0104 read / write.
#include "data_format.h"
#include <arrows/klv/klv_0104_new.h>
#includ... |
/*
* Copyright 2016-2018 FlexRAN Authors, Eurecom and The University of Edinburgh
* 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
*
* U... |
// NOTE: File generated by massage_unicode_blocks.py - do not edit
#include <cstdint>
struct unicode_block_t {
uint32_t start;
uint32_t end;
char const* name;
};
static unicode_block_t unicode_blocks[] = {
{ 0x0000, 0x007F, "Basic Latin" },
{ 0x0080, 0x00FF, "Latin-1 Supplement" },
{ 0x0100,... |
/* Copyright 2018 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (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 writing, software
distributed under the License is d... |
/*************************************************************************
*
* Copyright 2016 Realm 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/lice... |
///////////////////////////////////////////////////////////////////////////////
// Copyright (C) 2014, University of Southern California and University of Cambridge,
// all rights reserved.
//
// THIS SOFTWARE IS PROVIDED �AS IS� AND ANY EXPRESS OR IMPLIED WARRANTIES,
// INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRA... |
#include "Validation/HcalDigis/src/HcalSubdetDigiMonitor.h"
#include "DQMServices/Core/interface/DQMStore.h"
#include "DQMServices/Core/interface/MonitorElement.h"
/*struct HistLim
{
HistLim(int nbin, float mini, float maxi)
: n(nbin), min(mini), max(maxi) {}
int n;
float min;
float max;
};*/
HcalSubdetDigi... |
//==================================
// PEDUMP - <NAME> 1997
// FILE: COMMON.C
//==================================
#include <windows.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include "common.h"
#include "symboltablesupport.h"
#include "extrnvar.h"
PIMAGE_DEBUG_MISC g_pMiscDebug... |
/*
* VGMTrans (c) 2002-2019
* Licensed under the zlib license,
* refer to the included LICENSE.txt file
*/
#include "VGMInstrSet.h"
#include "VGMSamp.h"
#include "Root.h"
using namespace std;
// void WriteLIST(vector<uint8_t> & buf, uint32_t listName, uint32_t listSize)
//{
// PushTypeOnVectBE<uint32_t>(buf, 0x4... |
#ifdef _WIN32
#include <windows.h>
#include <windowsx.h>
#else
#include <sys/time.h>
#include <time.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include "ctype.h"
#include "string.h"
#include "math.h"
#include "SDL.h"
#include "SDL_image.h"
#include "SDL_mixer.h"
#include "auxiliar.h"
#include "List.h"
#include... |
// Copyright 2017 The Fuchsia 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 "rndis_host.h"
#include <fuchsia/hardware/ethernet/c/banjo.h>
#include <fuchsia/hardware/usb/c/banjo.h>
#include <stdio.h>
#include <stdlib.h>
#i... |
//
// NodeRenderer.cpp
// GfxPrototype
//
// Created by <NAME> on 10/5/15.
//
//
#include "NodeRenderer.hpp"
#include "ShaderLibrary.hpp"
#include "VertexTypes.hpp"
#include "Material.hpp"
#include "Texture.hpp"
#include "Mesh.hpp"
#include "Animation.hpp"
#include "AnimationController.hpp"
#include "Light.hpp"
#i... |
/*******************************************************************************
Copyright 2006-2012 <NAME> <<EMAIL>>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/lice... |
//
// Solution.cpp
// datastruct
//
// Created by <NAME> on 2019/12/9.
// Copyright © 2019 daixijia. All rights reserved.
//
#include "Solution.hpp"
#include <string>
#include <stack>
#include <queue>
#include <vector>
#include <set>
#include <unordered_set>
#include <iostream>
using namespace std;
/**
有效的括号... |
#include "idocr.h"
using namespace cv;
using namespace std;
string idOCR::cutoutPath = "";
idOCR::idOCR()
{
tesseract::TessBaseAPI *api = new tesseract::TessBaseAPI();
}
idOCR::~idOCR()
{
}
void idOCR::saveImage(string fileName, const Mat & image){
if (fileName.length() < 1) return;
imwrite(file... |
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* vim: set ts=8 sts=4 et sw=4 tw=99:
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
... |
#include <fstream>
#include <string>
#include <cmath>
// BOOST GRAPH LIBRARY (BGL)
#include <boost/graph/adjacency_list.hpp>
#include <boost/graph/graph_utility.hpp>
#include <boost/graph/graphml.hpp>
#include <boost/property_map/dynamic_property_map.hpp>
#include <boost/property_map/property_map.hpp>
#include <boost/... |
#include <string.h>
#include "elements/attributes/attribute.h"
#include "main.h"
#include "pokeyDevice.h"
using namespace std::chrono_literals;
PokeyDevice::PokeyDevice(PokeyDevicePluginStateManager *owner, sPoKeysNetworkDeviceSummary deviceSummary, uint8_t index)
{
_callbackArg = NULL;
_enqueueCallback = NU... |
int Fdbtu
,ui//3
,RS
, xyWC , fiNac ,M , NFNo
,
Awep ,
J ,Kbl
,
yf, ccQ , FCrrd ,qfA0 ,
s13Xh ,g9,rYQA
,Z
,on , Vsy5Q, Hwc, AiG , qH
,//Eb
DH
,/*aqa*/ DU,lJZ//d
,pRlwI
, /*aI*/ tAP,FyD,NS ,d0OG
,Y3c
,
O1Q,
oyq,//
Va , yFufL
,
Hd
,
//zq
lqX,/*aRZ*/ iXv
,
xRV ,
BL6//
,DY ,EKsr,//qE
KZ,vL... |
#pragma once
#include "litiv/3rdparty/sospd/multilabel-energy.hpp"
#include "litiv/3rdparty/sospd/submodular-ibfs.hpp"
namespace sospd {
/** Optimizer using Sum-of-submodular Primal Dual algorithm.
*
* Implements SoSPD algorithm from Fix, Wang, Zabih in CVPR 14.
*/
template<typename ValueType,... |
// Gmsh - Copyright (C) 1997-2019 <NAME>, <NAME>
//
// See the LICENSE.txt file for license information. Please report all
// issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
//
// Contributor(s):
// <NAME>
//
#include <algorithm>
#include <cmath>
#include <time.h>
#include "GmshConfig.h"
#include "SOrientedB... |
/*
* Copyright 2001-2005, Haiku.
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME> <<EMAIL>>
* DarkWyrm <<EMAIL>>
* <NAME> <<EMAIL>>
*/
/** Accelerant based HWInterface implementation */
#include <new>
#include <malloc.h>
#include <stdio.h>
#include <string.h>
#include <Cursor.h>
#i... |
#include "load_dds.hpp"
#define VK_NO_PROTOTYPES
#include <vulkan/vulkan.h>
//#define MEAN_AND_LEAN
//#define NO_MINMAX
//#include <windows.h>
#include <iostream>
/*
Can load easier and more indepth with https://github.com/Hydroque/DDSLoader
Because a lot of crappy, weird DDS file loader files were fou... |
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <getopt.h>
#include <sys/types.h>
#include <sys/epoll.h>
#include <sys/time.h>
#include <sys/select.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/in.h>
#include <netdb.h>
#include <pthread.h>
#include <time.h>... |
#include "ofApp.h"
#include "photon.h"
//--------------------------------------------------------------
void ofApp::setup() {
ofSetWindowTitle("Annoianoids");
//ofSetLogLevel(OF_LOG_VERBOSE);
ofSetFrameRate(60);
ofEnableAlphaBlending();
ofEnableSmoothing();
ofSetWindowShape(1280, 960);
mas... |
// Copyright (c) 2007-2020, <NAME> aka Hrissan
// Licensed under the MIT License. See LICENSE for details.
#include <array>
#include <chrono>
#include <functional>
#include <iomanip>
#include <iostream>
#include <map>
#include <random>
#include <set>
#include <unordered_map>
#include <unordered_set>
#include <crab/cr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.