text stringlengths 8.71k 38.4k |
|---|
#pragma warning( push )
#pragma warning( disable: 4786 4702 )
#include <string>
#include <vector>
#include <list>
#include <map>
#include <algorithm>
using namespace std;
#pragma warning( pop )
#include <stdio.h>
#include <math.h>
#include "../body.h"
using namespace stk;
#include <gd.h> // nb. borland needs #define W... |
#include <glut.h>
#include <math.h>
#include <stdio.h>
#pragma warning(disable:4996)
#define ORTHO 1
#define PERSPECTIVE 2
// Width & height of texture
#define HEIGHT 512
#define WIDTH 512
void mouse(int button, int state, int x, int y);
void key(unsigned char key, int x, int y);
void init(void);
void reshape(int, ... |
/*
* assignment2_drums
*
* Second assignment for ECS732 RTDSP, to create a sequencer-based
* drum machine which plays sampled drum sounds in loops.
*
* This code runs on BeagleBone Black with the BeagleRT environment.
*
* 2015
* <NAME> and <NAME>
* Queen Mary University of London
*/
/*
*
* <NAME>
*
* "(... |
// Copyright (c) 2017-2017 The Bitcoin Core developers
// Copyright (c) 2016-2019 The MagnaChain Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "chain/branchchain.h"
#include "chain/branchdb.h"
#in... |
/**
collision_identification.cpp
Purpose: a ROS node for identification of collision on Pisa IIT SoftHand fingers using
the IMU Glove.
N.B: The qb_interface_imu node from package qb_interface must be running.
N.B: As of now we are only using the imus of the distal link of each finger for identi... |
/////////////////////////////////////////////////////////////////////////////
// Copyright (C) 1993-1996 Microsoft Corporation. All Rights Reserved.
//
// MODULE: URL.cpp
//
// PURPOSE: All the URL parsing routines THOR would ever need.
//
#include "pch.hxx"
#include "strconst.h"
#include "urlte... |
///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Apr 16 2008)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////
#include "ui.h"
// Using the con... |
/****************************************************************************
*
* Copyright (c) 2018 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. Redistri... |
//**************************************************************************************************
//
// OSSIM Open Source Geospatial Data Processing Library
// See top level LICENSE.txt file for license information
//
//*****************************************************************************************... |
/*
* Copyright 2004-2019 Cray Inc.
* Other additional copyright holders may be indicated within.
*
* The entirety of this work is 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
*
*... |
/*
* Copyright (C) 2011 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 <avatar_locomanipulation/walking/walking_pattern_generator.hpp>
int const WalkingPatternGenerator::SWING_VRP_TYPE = 0;
int const WalkingPatternGenerator::DOUBLE_SUPPORT_TRANSFER_VRP_TYPE = 1;
int const WalkingPatternGenerator::STATE_SWING = 0;
int const WalkingPatternGenerator::STATE_DOUBLE_SUPPORT = 1;
int ... |
/**
* \file XLinkPeptide.cpp
* AUTHOR: <NAME>
* CREATE DATE: 18 September 2014
* \brief Object for Defining a crosslinked peptide in an xlink search
*****************************************************************************/
#include "XLinkPeptide.h"
#include "model/ModifiedPeptidesIterator.h"
#include "model/... |
//LIC// ====================================================================
//LIC// This file forms part of oomph-lib, the object-oriented,
//LIC// multi-physics finite-element library, available
//LIC// at http://www.oomph-lib.org.
//LIC//
//LIC// Copyright (C) 2006-2021 <NAME> and <NAME>
//LIC//
//LIC// This lib... |
//---------------------------------------------------------------------
// Analyze an estrd (range and doppler centroid offset)file generated by
// the sar_processor
// Prints out best time shift and altitude error at periapsis to account
// for the shifts followed by columns of data
// Time SAB range doppler drang(me... |
#include <igl/opengl/glfw/Viewer.h>
#include <igl/writeOBJ.h>
#include <igl/barycenter.h>
#include <igl/readOFF.h>
#include <igl/readDMAT.h>
#include <igl/writeDMAT.h>
#include <igl/readOBJ.h>
#include <igl/jet.h>
#include <igl/slice.h>
#include <igl/boundary_facets.h>
#include <igl/opengl/glfw/imgui/ImGuiMenu.h>
#incl... |
/*
Meddly: Multi-terminal and Edge-valued Decision Diagram LibrarY.
Copyright (C) 2009, Iowa State University Research Foundation, Inc.
This library is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published
by the Free Softwar... |
#include "Codes.h"
#include <string.h>
static AnsiString _cachedData;
static INTEGER _cachedID=0;
INTEGER GetOperatorType(INTEGER ID) {
switch (ID) {
// selectors
case KEY_INDEX_OPEN:
case KEY_INDEX_CLOSE:
case KEY_P_OPEN:
case KEY_SELECTOR_P:
case K... |
/*
Copyright (c) 2014 by <NAME>
This library contains portions of other open source products covered by separate
licenses. Please see the corresponding source files for specific terms.
RI is provided under the terms of The MIT License (MIT):
Permission is hereby granted, free of charge, to any person obtaining a cop... |
/*
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... |
// File: dbintree.cc
// <NAME>
// Applied Research Laboratory
// Department of Computer Science and Engineering
// Washington University in Saint Louis
// <EMAIL>
//
// Class definition for dbintree
#include "stdinc.h"
#include "dlist.h"
#include "dbintree.h"
dbintree::dbintree() {
// Initialize to graph with N verti... |
/* Author: <NAME>
Ph.D. Candidate at the University of Michigan - Ann Arbor*/
#include <memory>
#include <omp.h>
#include <iostream>
#include <string>
#include <thread>
#include <unistd.h>
#include <grpc++/grpc++.h>
#include "cf_service/service/helper_files/client_helper.h"
#include "recommender_service/service/h... |
// bdldfp_decimalplatform.t.cpp -*-C++-*-
#include <bdldfp_decimalplatform.h>
#include <bslmf_issame.h>
#include <bsl_iostream.h>
#include <bsl_cstdlib.h>
#include <bsl_cstring.h>
#include <string.h>
using namespace BloombergLP;
using bsl::atoi;
using bsl::cerr;
using bsl::cou... |
/****************************************************************************
* Authors:
* <NAME> (<EMAIL>)
****************************************************************************/
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/one/EDAnalyzer.h"
#include "FWCore/Framewo... |
/* ----------------------------------------------------------------------
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... |
/*
plysubtract:
Read in two ply files, A and B, and write out A-B, namely,
all triangles in A that are not in B.
Algorithm:
Read in A and B.
For each vertex in B, find the closest vertex in A
(within a limited neighborhood search size). Then, for each
triangle in B, search A for a corresponding triangle ... |
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... |
#include <Adafruit_NeoPixel-ANDnXOR.h>
#include <Arduino.h>
#include <ntlibc.h>
#include <ntopt.h>
#include <ntshell.h>
#include "anim.h"
#include "ANX.h"
#include "life.h"
#include "rf.h"
#include "serial.h"
#include "settings.h"
#include "term.h"
#define UNUSED_VARIABLE(N) do { (void)(N); } while (0)
extern Adafr... |
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of Qt Creator.
**
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance w... |
#include "XmlTagContent.h"
#include "Log.h"
#include "Tools.h"
using namespace sld::enums;
ESldStyleUsageEnum GetStyleUsageByXmlTagContent(wstring aStr)
{
static const Descriptor<ESldStyleUsageEnum> data[] = {
{ L"ThisHeadword", eStyleUsage_ThisHeadword },
{ L"PairHeadword", eStyleUsage_PairHeadword },
{ L"T... |
//
// GTest.cpp - GTESTs
//
// GTESTs
//
// Created by <NAME>, December 2017
// Copyright (c) [2017] Juniper Networks, Inc. All rights reserved.
//
// All rights reserved.
//
// Notice and Disclaimer: This code is licensed to you under the Apache
// License 2.0 (the "License"). You may not use this code except in compl... |
#include <LSP/Synth/MidiChannel.hpp>
#include <LSP/Synth/WaveTable.hpp>
#include <LSP/Synth/Voice.hpp>
using namespace LSP;
using namespace LSP::MIDI;
using namespace LSP::Synth;
MidiChannel::MidiChannel(uint32_t sampleFreq, uint8_t ch, const WaveTable& waveTable)
: mSampleFreq(sampleFreq)
, mMidiCh(ch)
, mWaveTa... |
/****************************************************************************/
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
// Copyright (C) 2005-2020 German Aerospace Center (DLR) and others.
// This program and the accompanying materials are made available under the
// terms of the Ecli... |
// Generated from Query.g4 by ANTLR 4.7.1
#include "QueryLexer.h"
using namespace antlr4;
using namespace antlr4;
QueryLexer::QueryLexer(CharStream *input) : Lexer(input) {
_interpreter = new atn::LexerATNSimulator(this, _atn, _decisionToDFA, _sharedContextCache);
}
QueryLexer::~QueryLexer() {
delete _inter... |
/*
* This file is part of a C++ interface to the Radiative Transfer for Energetics (RTE)
* and Rapid Radiative Transfer Model for GCM applications Parallel (RRTMGP).
*
* The original code is found at https://github.com/RobertPincus/rte-rrtmgp.
*
* Contacts: <NAME> and <NAME>
* email: <EMAIL>
*
* Copyright 2015... |
#include "linelib.h"
line_node::line_node()
{
node = NULL;
node_size = 0;
node_max_size = 1000;
vector_size = 0;
node_file[0] = 0;
node_hash = NULL;
neg_table = NULL;
vec = NULL;
}
line_node::~line_node()
{
if (node != NULL) {free(node); node = NULL;}
node_size = 0;
node_ma... |
#include"../../include/fast_io.h"
#include"../../include/fast_io_device.h"
enum char_class : char8_t
{
ILL = 0, //- C0..C1, F5..FF ILLEGAL octets that should never appear in a UTF-8 sequence
//
ASC = 1, //- 00..7F ASCII leading byte range
//
CR1 = 2, //- 80..8F Continuation range 1
CR... |
#include <cmath>
#include <iostream>
#include "QCPSerialFloatKernel.h"
#include "../RMSDTools.h"
#include "../RMSDCalculationData.h"
using namespace std;
/**
* Highly underperforming class to evaluate CUDA float version.
*/
///////////////////////////////////////////////////////////////
/// Implements the 'inner p... |
//
// Created by kiran on 10/27/18.
//
#include "../../header/apps/DCA.h"
zmq::context_t *ClusterInfoCollectorContext;
zmq::socket_t *ClusterInfoCollectorSubscriber;
/**
Constructor that reads XML Config file to populate required variables
*/
DCA_DATACOLLECTION::DCA_DATACOLLECTION(std::string ID, LOGGING_U... |
/*******************************************************************************
*
* Filename : RooFit_SimFit.cc
* Description : Making simultaneous fit objects
* Author : Yi-Mu "Enoch" Chen [ <EMAIL> ]
*
*******************************************************************************/
#include "TstarAnalysis... |
/*
==============================================================================
This file is part of the JUCE library.
Copyright (c) 2017 - ROLI Ltd.
JUCE is an open source library subject to commercial or open-source
licensing.
By using JUCE, you agree to the terms of both the JUCE 5 End... |
#include <iostream>
#include <math.h>
#include <thread>
#include <mutex>
#include <chrono>
#include <vector>
#include <functional>
#include <boost/filesystem.hpp>
#include <pcl/io/pcd_io.h>
#include "pcl_viewer.h"
#include "pcl_segment.h"
#include "pcl_filter.h"
#include "pcl_octree.h"
#include "pcl_viewpoint.h"
usin... |
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/stream/EDProducer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/Utilities/interface/StreamID.h"
#inc... |
#include <LEDA/core/array.h>
#include <LEDA/core/queue.h>
#include <LEDA/core/stack.h>
#include <LEDA/core/list.h>
#include <LEDA/system/thread.h>
#include <LEDA/core/quicksort.h>
#include <time.h>
#include <assert.h>
#include <sys/time.h>
#include <unistd.h>
#include <pthread.h>
#include <iostream>
using namespace LE... |
#include <iostream>
#include <fstream>
#include <cmath>
#include <vector>
#include <hdf5.h>
#include <hdf5_hl.h>
#include <stdio.h>
#include "tz_utilities.h"
#include "zargumentprocessor.h"
#include "zpoint.h"
#include "tz_fmatrix.h"
#include "tz_farray.h"
#include "tz_darray.h"
#include "tz_image_lib_defs.h"
#include... |
/*
* 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 "SkBitmap.h"
#include "SkCanvas.h"
#include "SkCodecPriv.h"
#include "SkColorSpaceXform.h"
#include "SkRasterPipeline.h"
#include "SkSampler.h"
#include "SkStreamPriv... |
/**
* Project: Open Vehicle Monitor System
* Module: Renault Twizy: low level CAN communication
*
* (c) 2017 <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the So... |
// Copyright (c) 2021 Graphcore Ltd. All rights reserved.
#include "CTCLossPlan.hpp"
#include "CTCPlanInternal.hpp"
#include "PerformanceEstimation.hpp"
#include <poplibs_support/Memoize.hpp>
#include <poplibs_support/PlanConstraints.hpp>
#include <poplibs_support/logging.hpp>
#include <popnn/CTCLoss.hpp>
#include <... |
#include "StdAfx.h"
#include "Keywords.h"
#include "Utilities.h"
#include "Settings.h"
#include <algorithm>
std::vector <Keyword*> Keywords::m_AKeywords;
std::vector <Keyword*> Keywords::m_BKeywords;
std::vector <Keyword*> Keywords::m_CKeywords;
std::vector <Keyword*> Keywords::m_DKeywords;
std::vector <Keyword*> Keyw... |
/*
* obfuscate.cpp
*
* Created on: Aug 28, 2019
* Author: wzeng
*/
#include "parser.h"
#include "grDB_DR.h"
#include <chrono>
#include <set>
#include <cassert>
#define NUM_OPTIONS_TO_SAVE 1
std::pair<ObfusOption, bool> RoutingDB_DR::traverseObfusOpts(
const LayoutDR &layout, int layer, bool singleVpin, si... |
/*********************************************************************
This is a library for our Monochrome OLEDs based on SSD1306 drivers
Pick one up today in the adafruit shop!
------> http://www.adafruit.com/category/63_98
Adafruit invests time and resources providing this open source code,
please support Ada... |
// Copyright (c) 2013 Google 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 conditio... |
#include <cmath> /* Needed only for sqrt call (remove if sqrt removed) */
#include <fstream>
#include <iomanip>
#include <sstream>
#include "vtr_assert.h"
#include "vtr_log.h"
#include "vtr_memory.h"
#include "vtr_math.h"
#include "vpr_types.h"
#include "vpr_error.h"
#include "globals.h"
#include "rr_graph_util.h"
#... |
//===- Analysis.cpp - Analysis Pass -----------------------------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
// Copyright 2022 The Tint 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 ... |
/*
* (c) Copyright 2016 Hewlett Packard Enterprise Development LP
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later ... |
#include "GLViewer.hpp"
GLchar* VERTEX_SHADER =
"#version 330 core\n"
"layout(location = 0) in vec3 in_Vertex;\n"
"layout(location = 1) in vec3 in_Color;\n"
"uniform mat4 u_mvpMatrix;\n"
"out vec3 b_color;\n"
"void main() {\n"
" b_color = in_Color;\n"
"... |
/******************************************************************************
*
* CAEN SpA - Front End Division
* Via Vetraia, 11 - 55049 - Viareggio ITALY
* +390594388398 - www.caen.it
*
***************************************************************************//**
* \note TERMS OF USE:
* This program is fr... |
/////////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2019, The Regents of the University of California
// All rights reserved.
//
// BSD 3-Clause License
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the... |
/**
* @author <NAME>
* @file configtool.cc
* @brief Program that reads canoe config file and writes selected information
* to out.
*
* COMMENTS: Operations on canoe config files, for use with rescoreloop.
*
* Technologies langagieres interactives / Interactive Language Technologies
* Inst. de technologie de l... |
//=============================================================================================================
/**
* @file tmsi.cpp
* @author <NAME> <<EMAIL>>;
* <NAME> <<EMAIL>>
* @since 0.1.0
* @date September, 2013
*
* @section LICENSE
*
* Copyright (C) 2013, <NAME>, <NAME>. All rig... |
#include "Domain.hpp"
#include "IO.hpp"
#include "Geometry.hpp"
#include <fstream>
#include <cassert>
#include <algorithm>
#ifndef SEQUENTIAL
#include <mpi.h>
#endif
Domain::Domain() {
}
Domain::~Domain() {
delete _sdd;
}
void Domain::initRect(real lx, real ly,
unsigned int Nx, unsigned ... |
#include <fcntl.h>
#include <dirent.h>
#include <linux/input.h>
#include <sys/stat.h>
#include <pthread.h>
#include <time.h>
#include <unistd.h>
#include <mutex>
#include <chrono>
#include <memory>
#include "rclcpp/rclcpp.hpp"
#include <chrono>
#include <functional>
#include <memory>
#include <strin... |
#include "iofocus.h"
// keyboard queue stuff
#include "onscreenKeyboard.h"
#include <queue>
#include "3dc.h"
#include "module.h"
#include "inline.h"
#include "strategy_def.h"
#include "gamedef.h"
#include "gameplat.h"
#include "user_io.h"
#include "reentrant_queue.h"
#include <xtl.h>
#include "showcmds.h"
/*
struct K... |
#include "stdafx.h"
#include "Compiler.h"
#include <minmax.h>
#pragma warning(disable:4786) // Browser identifier truncated to 255 characters
#pragma warning(push,3)
#pragma warning(disable:4530)
#include <iostream>
#include <iomanip>
#include <sstream>
#pragma warning(pop)
using namespace std;
#include "..\tracestr... |
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
/* The real numbers we are using --- either double or float */
typedef double REAL;
/* maximum tolerable relative error (for the checking routine) */
#define EPSILON (1.0E-6)
#define CACHE_LINE_SIZE 64
#define NUM_TEMP_M 11 // 11 temp matrices neede... |
#include <CSymbol2D.h>
#include <CStrUtil.h>
#include <cmath>
#include <cassert>
class CSymbol2DList {
public:
typedef std::vector<CSymbol2D> Symbols;
public:
CSymbol2DList(std::initializer_list<CSymbol2D> symbols) :
symbols_(symbols) {
}
const Symbols &symbols() const { return symbols_; }
bool isSym... |
// Copyright (c) 2007-2009 Google Inc.
// Copyright (c) 2006-2007 Jaiku Ltd.
// Copyright (c) 2002-2006 <NAME> and <NAME>
//
// This software is licensed at your choice under either 1 or 2 below.
//
// 1. MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software ... |
//
// Created by root on 11.11.17.
//
// It is wifisound for linux, rewritten in c++.
//
// Used examples:
// opus:
// https://chromium.googlesource.com/chromium/deps/opus/+/1.1.1/doc/trivial_example.c
// pulseaudio:
// https://freedesktop.org/software/pulseaudio/doxygen/pacat-simple_8c-e... |
#include <pcl/common/time.h>
#include <pcl/console/parse.h>
#include <pcl/point_cloud.h>
#include <pcl/point_types.h>
#include <pcl/io/png_io.h>
#include <pcl/io/pcd_io.h>
#include <pcl/visualization/pcl_visualizer.h>
#include <pcl/segmentation/supervoxel_clustering.h>
#include <vtkImageReader2Factory.h>
#include <vtk... |
// ddt TCP client
#include <sstream>
#include <atomic>
#include <thread>
#include <future>
#include <chrono>
#include "ClientTCP.h"
// SILENCE warnings under Clang (gcc is a pain in the ass, as usual)
#if (defined(__clang__) && __clang__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wundef"
#pragm... |
#include "triangle_utils.h"
#include <igl/png/writePNG.h>
#include <igl/triangle/triangulate.h>
#include <igl/boundary_loop.h>
#include <igl/cat.h>
#include <igl/lscm.h>
#include <igl/local_basis.h>
#include <map>
#include <iostream>
#include <igl/edge_flaps.h>
#include <igl/harmonic.h>
#include <igl/slice.h>
#include... |
#include "graph.h"
#include "scheduler.h"
#include <cmath>
#include <set>
#include <queue>
#include <unordered_map>
#include <iostream>
int sameHop(Flow &f, Hop &hop, int start, bool &hopJump) {
for (int i = start; i < f.hops.size(); i++) {
if (i - start != f.hops[i].fwdttl - f.hops[start].fwdttl)
... |
// GUM: GAMBIT Universal Model Machine
// ************************************
/// \file
///
/// Definitions of Feynrules class
///
/// **********************************
///
/// \author <NAME>
/// (<EMAIL>)
/// \date 2018, 2019, 2020
///
/// \author <NAME>
/// (<EMAIL>)
/// \date 2019 July... |
#include "core/caffe.h"
#include <fstream>
Caffe::Caffe(DeepFlow * df, bool verbose)
{
this->df = df;
_verbose = verbose;
}
void Caffe::load(std::string file_path, std::initializer_list<std::pair<std::string, std::array<int, 4>>> inputs)
{
auto net = std::make_shared<caffe::NetParameter>();
std::fstream input(fi... |
int xREO, eyU , paSH ,
D
, O8qZe, N/*waA*/, Xivv ,
LD5o,
YD,
T , PE2TQi
, //R
Dc,
Fuq,Oc,
c3Z,oZ9XC/*aUGR*/,QjvNN
,
qg,ccL,h8a, WU , fPd6T,
nor
, eJER ,
b2p, hp9, ad
,Fh
//O5
, R29 , oS, w8
,
dD2t/*Ijm*/,
/*R*/To,
//A8
o7 ,
Ij,
Rk2Ll
, MqN , HSbA ,Qh,
q4,AHkM , bjL ,//2xgN
MC,ojR
//d
,
biX,//qc
... |
#include <DotClassReader/MethodInfo.hpp>
#include <sstream>
#include <system_error>
MethodInfo::MethodInfo(std::ifstream *file, ConstantPool *cp) {
this->file = file;
this->cp = cp;
mi = std::vector<MethodInfoCte>();
line_table_index = cp->getLineTableIndex();
code_index... |
// ICFPC2020 galaxy solver by foota
// https://icfpc2020-api.testkontur.ru/aliens/send
// b0a3d915b8d742a39897ab4dab931721
#include <iostream>
#include <regex>
#include <string>
#include <vector>
#include <cmath>
#include <random>
#include <queue>
#include "galaxy.hpp"
const int UNIVERSE_CHECK_ITERATIONS = 15;
const... |
//----------------------------------------------------------------------------
//
// Copyright (c) 2013-2017, <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... |
#include "DXUT.h"
#include "DXUTgui.h"
#include "DXUTmisc.h"
#include "DXUTCamera.h"
#include "DXUTSettingsDlg.h"
#include "SDKmisc.h"
#include "SDKmesh.h"
#include "resource.h"
#include "d3dtypes.h"
#include "LoadWorld.hpp"
#include "world.hpp"
#include "GlobalSettings.hpp"
#include <string.h>
#include "GameLogic.hpp"... |
/**
* @file video_capture/gpustitch.cpp
* @author <NAME> <<EMAIL>>
* <NAME> <<EMAIL>>
*
* @brief Gpustitch 360 video stitcher
*/
/*
* Copyright (c) 2021 CESNET z.s.p.o.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, is permitted ... |
//////////////////////////////////////////////////////////////////
// File: bccTetScene.cpp
// Author: <NAME>
// Date: 3/4/2019
// Purpose: Bcc tet based projective dynamics physics library interface to surgical simulator code.
// This version uses the ShapeOp subroutine library of Sofien Bouaziz ( http://ShapeOp.or... |
// (C) 2020-2021 by <NAME> <<EMAIL>>, released under Apache License v2.0
#include <errno.h>
#include <libconfig.h++>
#include <signal.h>
#include <stdio.h>
#include <string>
#include <string.h>
#include <unistd.h>
#include <vector>
#include <sys/types.h>
#include "any_addr.h"
#include "stats.h"
#include "phys_ethernet... |
/*
* Copyright (c) <NAME>.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "apple2tc/DebugState6502.h"
#include "apple2tc/a2io.h"
#include "apple2tc/apple2.h"
#include "apple2tc/apple2plus_rom.h"
#include "apple2tc/sokol/sok... |
// ***************************************************************************
// BamReader_p.cpp (c) 2009 <NAME>
// Marth Lab, Department of Biology, Boston College
// All rights reserved.
// ---------------------------------------------------------------------------
// Last modified: 22 November 2010 (DB)
// --------... |
/******************************************************************************
* INCLUDES
*****************************************************************************/
extern "C"
{
#include "kt.h"
#include "kt_thread.h"
#include "kt_sbucket.h"
#include <stdbool.h>
#include <inttypes.h>
#include <omp.h>
}
#includ... |
/*
* contextReuse.cpp
*
* Verify proper operation of symmetric CSP algorithms when CSSM_CC_HANDLE
* (crypto context) is reused. Tests specifically for Radar 4551700, which
* dealt with a problem with the Gladman AES implementation handling the
* same context for an encrypt followed by a decrypt; other situat... |
/*
* GPAC - Multimedia Framework C SDK
*
* Authors: <NAME>
* Copyright (c) Telecom ParisTech 2006-2012
* All rights reserved
*
* This file is part of GPAC / Symbian GUI player
*
* GPAC is free software; you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public Li... |
//
// F.Ratnikov (UMd), Dec 14, 2005
// Adapted for Castor by <NAME>
//
#include <vector>
#include <string>
#include "CLHEP/Random/RandGauss.h"
#include "CondFormats/CastorObjects/interface/CastorElectronicsMap.h"
#include "CalibCalorimetry/CastorCalib/interface/CastorDbHardcode.h"
CastorPedestal CastorDbHardcode::ma... |
int MdUMN//7
, Yi ,sVOqv
,Jdy ,y0lZ ,//M
l,
Ot, g , Cz0e , Y//zM
,
r, FMN,ana, aIDJ ,c9
,Yql ,QIa,
VF ,zrY, TWX
, Ykg ,
gLH, hc56i0, bSawl
//qE
,WUOF,
Mm6
, zeR
, EpNtM//JE
, sA,zXqv,
qMh,
S1zs ,
e42,S7k ,TN ,msv ,S0 ,CQ3f
,
//
MZvaO , djTay,
Nc4Zxv
, Byg
,//F0
XD/*o*/ ,Jo
,
mG
,
CThS
,
huR28h ;... |
//===--- Passes/Instrumentation.cpp ---------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2015 Scientific Computing and Imaging Institute,
University of Utah.
License for the specific language governing rights and limitations under
Permission is hereby granted, free of charge, to any person o... |
//===--- ArrayPropertyOpt.cpp - Optimize Array Properties -----------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2019 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
/**
* \file CometApplication.cpp
* \brief Runs comet
*****************************************************************************/
#include "util/AminoAcidUtil.h"
#include "util/CarpStreamBuf.h"
#include "util/FileUtils.h"
#include "util/Params.h"
#include "util/StringUtils.h"
#include "CometApplication.h"
#includ... |
// lookup_arithmetic.cpp: generate tables for small posit lookup arithmetic
//
// Copyright (C) 2017-2021 Stillwater Supercomputing, Inc.
//
// This file is part of the universal numbers project, which is released under an MIT Open Source license.
#include <universal/utility/directives.hpp>
#include <chrono>
#include <... |
/*
MP3 - Bezeir Surfaces + Environment Mapping
By <NAME>
November 12th, 2008
*/
#if defined(WIN32)
#include <windows.h>
#elif defined(UNIX)
#include <GL/glx.h>
#endif
#define GLH_EXT_SINGLE_FILE
#include <glh/glh_extensions.h>
#include <glh/glh_glut.h>
#include <glh/glh_obs.h>
#include <utils/read_text_file.h>... |
/*------------------------------------------------------------
Iwa_PNPerspectiveFx
render perspective noise pattern.
------------------------------------------------------------*/
#include "iwa_pnperspectivefx.h"
#include "trop.h"
#include "tparamuiconcept.h"
#include "iwa_fresnel.h"
#include "iwa_simplexnoise.h"
#... |
// Copyright 2006-2015 <NAME> (<EMAIL>).
//
// This file is part of the Carve CSG Library (http://carve-csg.com/)
//
// 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,... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/safe_browsing/safe_browsing_store_file.h"
#include "base/md5.h"
#include "base/metrics/histogram.h"
namespace {
// NOTE(sh... |
#include "dp_data.h"
#include "dp_global.h"
using namespace dp;
int DPlacer::getOptimalX(vector<CriticalPoint>& critiPtsInput,
const unsigned targetCellType,
const int rangeBoundL,
const int rangeBoundR) const {
vector<CriticalPoint*> crit... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.