text stringlengths 5.71k 33.7k |
|---|
/**
* Copyright 2020 Huawei Technologies Co., Ltd
*
* 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... |
/*
Copyright (C) 2014 TopCoder Inc., All Rights Reserved.
@author TCSASSEMBLER, caoweiquan322
@version 1.1
*/
#include "stdafx.h"
#include <exception>
#include "Mesh.h"
void Mesh::serializeDatSurface(ostream& out, const vector<int>& index,
const vector<Vecto... |
#define BOOST_TEST_MODULE scfixed
#define BOOST_TEST_DYN_LINK
#ifndef DONT_USE_BOOST
#include <boost/test/included/unit_test.hpp>
#else
#define BOOST_CHECK_EQUAL(a,b) ((a) == (b));
#define BOOST_AUTO_TEST_CASE(x) int sc_main(int argc, char* argv[])
#endif
//
#define CHECK_EQ(a,b) BOOST_CHECK_EQUAL(a,b)
#ifdef CHECK_... |
/*
* Copyright (C) 2012-2013 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 b... |
#include <cstdlib>
#include <iostream>
#include <vector>
#include <string>
#include <stdlib.h>
#include <sstream>
#include <climits>
#include <cstring>
#include <fstream>
using namespace std;
/* Command line parsing */
#include <getopt.h>
/* DyninstAPI includes */
#include "BPatch.h"
#include "BPatch_binaryEdit.h"
#i... |
/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: ImageRegistration6o.cxx
Language: C++
Date: $Date$
Version: $Revision$
Copyright (c) Insight Software Consortium. All rights reserved.
See ITKCopyright.tx... |
#include <utils.h>
#include <light.h>
#include <camera.h>
#include <mesh.h>
const int WIDTH = 800;
const int HEIGHT = 600;
const int BUNNY = 0;
const int SPHERE = 1;
const int PLANE = 2;
GLFWwindow *window;
///Create a Camera
Camera camera(vec3(0.0f, 0.0f, 3.0f));
bool keys[1024];
GLfloat lastX = (float)WIDTH/2, l... |
/**
* @file
* @brief Equirectangular rectangle conversion, importance calculation etc.
* @version 1.08: add delta to the importance calculation functions
* @author <NAME>, yh3g09 (<EMAIL>,<EMAIL>, <EMAIL>, <EMAIL>)
* @date March 27, 2017-April 20, 2020
* @copyright None.
*/
#include "Headers.h"
#include Equirec... |
/******************************************************************************
Copyright (c) 2013 jbyu. All rights reserved.
******************************************************************************/
#include "VectorEngine.h"
#include "tsSWF.h"
#include "DefineShape.h"
#include "tesselator.h"
#include <a... |
#include "ShapeContextPro.h"
#include <cmath>
ShapeContextPro::ShapeContextPro(SCConfig config) :
sIterations(config.maxNumSamples), sSampleSize(config.sampleSize)
{
sPointsA = 0;
sPointsB = 0;
sScores = 0;
sDataSize = 0;
sLandmarkIds = 0;
sDetectionIds = 0;
}
ShapeContextPro::~ShapeContextPro()
{
}
void ... |
#include "an_static_planner/an_static_planner.h"
bool Planner_c::Init_(void) {
ROS_DEBUG("[planner] Entering init");
loop_rate_ = DEFAULT_LOOP_RATE;
grid_length_ = DEFAULT_GRID_LENGTH;
grid_width_ = DEFAULT_GRID_WIDTH;
epsilon_ = DEFAULT_EPSILON;
new_plan_ = true;
lanes_received_ = false;... |
// discord.cpp
// Copyright (c) 2020, zhiayang
// Licensed under the Apache License Version 2.0.
#include "picojson.h"
#include "db.h"
#include "defs.h"
#include "rate.h"
#include "async.h"
#include "config.h"
#include "synchro.h"
#include "discord.h"
#include "network.h"
using namespace std::chrono_literals;
const... |
// __BEGIN_LICENSE__
//
// Copyright (C) 2010-2012 Stanford University.
// All rights reserved.
//
// __END_LICENSE__
#include <iostream>
#include <math.h>
#include <algorithm>
#include <string.h>
#include <list>
// Code for numerically integrating over the unit disk
#include "gauss_2d_sphere.h"
// The GNU Scientifi... |
/*
#
# Copyright © 2019 <NAME>
#
# Identifies kernels corresponding to spectra
#
*/
/*
This C++ version of idX is the second iteration of the algorithm.
The first version, written in Python, explored the possibilities of
using a JSON Lines formatted collection of peptide sequence information
as a practical method of i... |
/*
* Copyright (c) 2021, the Basil authors
* All rights reserved.
*
* This source code is licensed under the 3-Clause BSD License, the full text
* of which can be found in the LICENSE file in the root directory
* of this project.
*/
#include "token.h"
#include "utf8.h"
#include "errors.h"
namespace basil {
... |
// -*- Mode: C++ -*-
// FmIndex.cc
//
#include "FmIndex.h"
// LIFECYCLE ------------------------------------------------------------
FmIndex::FmIndex(): mSeq(NULL), mL(NULL), mOcc(NULL), mC(NULL), mPos(NULL), mNew(false)
{
mBaseRep = new Nuc4_BaseRep();
mSeq = SeqStore(mBaseRep);
}
... |
#include "cpu/CPUAst.hpp"
using namespace AST;
static std::map<std::string, AllocaInst *> NamedValues;
static std::map<std::string, std::unique_ptr<PrototypeAST>> FunctionProtos;
std::unique_ptr<ExprAST> LogError(const char *Str) {
fprintf(stderr, "Error: %s\n", Str);
return nullptr;
}
Value *LogErrorV(cons... |
/*
* Author: <NAME> <<EMAIL>>
* Copyright (c) 2015 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, including
* without limitation the rights t... |
#include "motion/generator/DistributedGenerator.hpp"
#include "motion/generator/ActionGenerator.hpp"
#include "motion/generator/DeadGenerator.hpp"
#include "motion/generator/HeadGenerator.hpp"
#include "motion/generator/NullGenerator.hpp"
#include "motion/generator/RefPickupGenerator.hpp"
#include "motion/generator/Sta... |
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <learnopengl/shader_m.h>
#include <learnopengl/camera.h>
#include <iostream>
void framebuffer_size_callback(GLFWwindow* window, int width, int height);
void mouse_ca... |
// Copyright (c) 2009-2010 <NAME>
// Copyright (c) 2017-2019 The SXL Developers
// Copyright (c) 2020 The IDeer Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "assettx.h"
#include "config/const.h"
#incl... |
/*
Copyright (c) 2007 <NAME>. 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 require... |
#include <cstdio>
#include <cmath>
#include <3ds.h>
#include <citro3d.h>
#include "starlight/datatypes/Vector2.h"
#include "starlight/datatypes/VRect.h"
#include "starlight/datatypes/Color.h"
#include "basic_shader_shbin.h"
#include "RenderCore.h"
using starlight::Vector2;
using starlight::VRect;
using starlight::... |
// Demo: maps.cpp
// Author: <NAME> (<EMAIL>)
// Date: 7/25/2021
#include <stdio.h>
#include <curl/curl.h>
#include <string>
#include <filesystem>
#include <iostream>
#include <map>
#include <cmath>
#include <vector>
#include <queue>
#include <memory>
#include <thread>
#include <mutex>
#include <condition_variable... |
#include "Measurement.h"
/* Definition of the probe array */
Pins probes[3] = {probe_a, probe_b, probe_c};
/* Performs a full measurement between two probes, evaluating the counter-resistor to use */
ADCData measureData(Pins probe_a, Pins probe_b) {
// Data to be returned
ADCData data;
// First perform a quick... |
/** @file
A brief file description
@section license License
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you und... |
#include "lm_cut_heuristic.h"
#include "option_parser.h"
#include "plugin.h"
#include "task_proxy.h"
#include "task_tools.h"
#include <cassert>
#include <iostream>
#include <limits>
#include <vector>
using namespace std;
// construction and destruction
LandmarkCutHeuristic::LandmarkCutHeuristic(const Options &opts... |
/** Example 024 CursorControl
Show how to modify cursors and offer some useful tool-functions for creating cursors.
It can also be used for experiments with the mouse in general.
*/
#include "tutorial.h"
const int DELAY_TIME = 3000;
enum ETimerAction
{
ETA_MOUSE_VISIBLE, ETA_MOUSE_INVISIBLE,
};
/*
Structure... |
#include "stdafx.h"
#include "resource.h"
#include "SimpleDivX_Defines.h"
#include "Utils.h"
#include "Mytooltips.h"
#include "LanguageSupport.h"
#include ".\allcontrolssheet.h"
#define NOLANGDEFINED "not defined"
// For general use :
#define FRAMES_KEY "FRAMES"
#define FRAMES_VALUE "Frames"
#define WIDTH_KEY "WIDTH"... |
//
// This code was created by <NAME> '99 (ported to Linux/GLUT by <NAME> 2002 with help from the lesson 1 basecode for Linux by <NAME>)
//
// If you've found this code useful, please let me know.
//
// Visit me at www.xs4all.nl/~chtang
// (email <NAME> at <EMAIL>)
//
#include <GL/glut.h> // Header File For The GLU... |
/**
Provides ROS services to access functionality of grasp_planning_graspit.
Copyright (C) 2016 <NAME>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License,... |
#include "csm/csm_all.h"
#include "csm/utils.h"
#include "csm/laser_data_yogo.h"
#include "csm/sm_config.h"
#include "icp/icp_yogo.h"
#include "icp/icp_optimization.h"
#include <g2o/core/block_solver.h>
#include <g2o/core/sparse_optimizer.h>
#include <g2o/core/factory.h>
#include <g2o/core/optimization_algorithm_facto... |
#include <ESP8266WiFi.h>
#include <ESP8266mDNS.h>
#include <ArduinoOTA.h>
#include <FS.h>
#include <Hash.h>
#include <ESPAsyncTCP.h>
#include <ESPAsyncWebServer.h>
#include <SPIFFSEditor.h>
#include "quaternionFilters.h"
#include "MPU9250.h"
MPU9250 IMU(Wire, 0x68);
AsyncWebServer server(80);
AsyncWebSocket ws("/ws"... |
#include "engine.hpp"
#include "utils.hpp"
#include <iostream>
#include <algorithm>
#include <random>
#include <chrono>
using namespace chessqdl;
/**
* @details Starts a new standard game of chess with the engine as \p color pieces
*/
Engine::Engine(enumColor color, int depth, bool v, bool p) {
bitboard = Bitboa... |
#include "stdafx.h"
#include <GWCA/Context/GameContext.h>
#include <GWCA/Context/CharContext.h>
#include <GWCA/Managers/ChatMgr.h>
#include <GWCA/Managers/UIMgr.h>
#include <GWCA/Utilities/Hooker.h>
#include <GWCA/Utilities/Scanner.h>
#include <GuiUtils.h>
#include <Modules/Resources.h>
#include <Modules/ChatLog.h... |
#include "BehaviourController.h"
#include <MathLib/Trajectory.h>
BehaviourController::BehaviourController(Character* b, IKVMCController* llc, WorldOracle* w){
this->bip = b;
this->lowLCon = llc;
this->wo = w;
//we should estimate these from the character info...
legLength = 1;
ankleBaseHeight = 0.04;
shouldPre... |
#include "../../apps.h"
#define TFTW 320 // screen width
#define TFTH 240 // screen height
#define TFTW2 160 // half screen width
#define TFTH2 120 // half screen height
// game constant
#define SPEED 1
#define GRAVITY 9.8
#define JUMP_FORCE 2.15
#define SKIP_TICKS 20.0 // 1000 / 50fps
#define MAX_FRAMESKIP 5
// bir... |
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <string.h>
#include <openssl/aes.h>
#include <openssl/rsa.h>
#include <openssl/x509.h>
#include <openssl_helpers.h>
#include <openssl/rand.h>
#include <openssl/hmac.h>
#include <openssl/s... |
#include "stdhdr.h"
#include "classtbl.h"
#include "digi.h"
#include "sensors.h"
#include "simveh.h"
#include "missile.h"
#include "object.h"
#include "sensclas.h"
#include "Entity.h"
#include "team.h"
#include "Aircrft.h"
/* 2001-03-15 S.G. */#include "campbase.h"
/* 2001-03-21 S.G. */#include "flight.h"
/* 2001-03-21... |
// jhcSituation.cpp : semantic network description to be matched
//
// Written by <NAME>, <EMAIL>
//
///////////////////////////////////////////////////////////////////////////
//
// Copyright 2018-2020 IBM Corporation
// Copyright 2020-2021 Etaoin Systems
//
// Licensed under the Apache License, Version 2.0 (the "Lice... |
#include <iostream>
#include <sstream>
#include <SDL_image.h>
#include <SDL_opengl.h>
#include <unistd.h>
#include <physfs.h>
#include "gl_screen.h"
#include "gl_pagedtexture.h"
#include "log.h"
#include "buffercache.h"
#include "physfsrwops.h"
#include "m_exceptions.h"
#include "gui.h"
#include "timer.h"
#include "dat... |
// Part_of_Speech_Labeller.cpp : Defines the entry point for the console application.
//
#include "CSVReader.h"
#include "TrieDS.h"
#include <map>
//structure that stores all the words from CSV files created in Python environment
struct Vocabulary
{
//initialize a csv reader to read documents
csvreader r... |
// opencv/2.4.13.2
// fltk/1.3.4
#include <Fl/Fl.h>
#include <Fl/Fl_window.H>
#include <FL/FL_Button.H>
#include <FL/Fl_Input.H>
#include <FL/fl_ask.H>
#include <FL/Fl_File_Chooser.H>
#include "opencv2/core.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/photo.hpp"
... |
#include "PluginConfig.hpp"
#include "main.hpp"
#define GET(obj, fieldName, method, required) auto itr = obj.FindMember(fieldName.data()); \
if (itr == obj.MemberEnd()) { \
if (required) { \
getLogger().warning("Failed to find required field: %s! Could not load config", fieldName.data()); \
} \
ret... |
/*
* LEGAL NOTICE
* This computer software was prepared by Battelle Memorial Institute,
* hereinafter the Contractor, under Contract No. DE-AC05-76RL0 1830
* with the Department of Energy (DOE). NEITHER THE GOVERNMENT NOR THE
* CONTRACTOR MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY
* LIABILITY FOR THE USE OF... |
//
// This file is part of T-Rex, a Complex Event Processing Middleware.
// See http://home.dei.polimi.it/margara
//
// Authors: <NAME>, <NAME>
//
// 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 F... |
#define DPCT_USM_LEVEL_NONE
#include <CL/sycl.hpp>
#include <dpct/dpct.hpp>
#include "dslash.h"
void make_back(
const su3_matrix* d_fat,
const su3_matrix* d_lng,
const size_t* d_bck,
const size_t* d_bck3,
su3_matrix* d_fatbck,
su3_matrix* d_lngbck,
const int total_even_sites,
... |
#include "core/coordinator.h"
#include "raylib.h"
#include "systems/InputReactorSystem.h"
#include "systems/PhysicsSystem.h"
#include "systems/WorldSystem.h"
#include "systems/CameraSystem.h"
#include "systems/RenderSystem.h"
#include "systems/AnimationSystem.h"
#include "core/ControllerInputHandler.h"
#include "co... |
/*******************************************************************************
INTEL CORPORATION PROPRIETARY INFORMATION
This software is supplied under the terms of a license agreement or nondisclosure
agreement with Intel Corporation and may not be copied or disclosed except in
accordance with the terms of t... |
#include <iostream>
#include <cstdlib>
#include <poplar/Engine.hpp>
#include <poplar/IPUModel.hpp>
#include <poputil/TileMapping.hpp>
#include <poplar/DeviceManager.hpp>
#include <poplar/CycleCount.hpp>
#include <popops/AllTrue.hpp>
#include <popops/ElementWise.hpp>
#include <popops/Fill.hpp>
#include <popops/codelets.... |
#include <arrayfire.h>
#include <iostream>
#include <vector>
#include <fstream>
#include <cmath>
#include <tuple>
#include <algorithm>
#include <chrono>
using af::span;
using af::seq;
double gammac = 1.3;
double k = 150.0;
double R = 8.31;
double mu = 0.29;
double c = R / (mu * (gammac - 1));
double v_sound = 343.0;
... |
/*********************************************************************
* Software License Agreement (BSD License)
*
* Copyright (c) 2008, <NAME>, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* ... |
// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2020 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... |
/** @file
A brief file description
@section license License
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you und... |
/*
* gTexture.cpp
*
* Created on: May 10, 2020
* Author: noyan
*/
#include "gTexture.h"
#include <iostream>
#if defined(WIN32) || defined(LINUX)
#include <GL/glew.h>
#include <GL/gl.h>
#include <GL/glu.h>
#endif
#if defined(APPLE)
#include <OpenGL/gl.h>
#include <GL/glew.h>
#include <OpenGL/glu.h>
#include ... |
#include <iostream>
#include <fstream>
#include "execute.h"
#include "TestCase.h"
#include "default_config.h"
/*
Generates a file in json format containing all of the information defined in
config.json for easier parsing.
*/
// =====================================================================
// ==========... |
#include <string>
#include <fstream>
#include <sstream>
#include <g3log/g3log.hpp>
#include <g3log/logworker.hpp>
#include <curlpp/cURLpp.hpp>
#include <tclap/CmdLine.h>
#include "camhd_client.h"
#include "interval.h"
#include "regions.h"
#include "movie_workers/optical_flow.h"
#include "stitcher.h"
#include <ope... |
//
// Shortcut support routines for the Fast Light Tool Kit (FLTK).
//
// Copyright 1998-2018 by <NAME> and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
// file is missing or damaged, see the licen... |
#pragma warning(disable:4819)
/*
* Copyright 1993-2013 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 ... |
/*
* Copyright (c) 2015, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*
*/
#include <fo... |
///////////////////////////////////////////////////////////////////////////////
// SOFTWARE COPYRIGHT NOTICE AGREEMENT //
// This software and its documentation are copyright (2014) by the //
// Broad Institute. All rights are reserved. This software is supplied //
... |
/**
* Copyright (C) 2020 Xilinx, Inc
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may
* not use this file except in compliance with the License. A copy of the
* License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writi... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... |
/*
* (C) 2020 see Authors.txt
*
* This file is part of MPC-BE.
*
* MPC-BE 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.
*
*... |
/*
* Dark Souls 3 - Open Server
* Copyright (C) 2021 <NAME>
*
* This program is free software; licensed under the MIT license.
* You should have received a copy of the license along with this program.
* If not, see <https://opensource.org/licenses/MIT>.
*/
#include "Server/GameService/GameManagers/Boot/BootMana... |
#include "stdafx.h"
#include "programStreamDemuxer.h"
#include "pesPacket.h"
#include "tsPacket.h"
#include "mpegVideo.h"
#include "wave.h"
using namespace std;
static const uint32_t LPCM_FREQS[4] = { 48000, 96000, 44100, 32000 };
//#define min(a,b) a<=b?a:b
ProgramStreamDemuxer::ProgramStreamDemuxer... |
//========================================================================================
// Athena++ astrophysical MHD code
// Copyright(C) 2014 <NAME> <<EMAIL>> and other code contributors
// Licensed under the 3-clause BSD License, see LICENSE file for details
//=====================================================... |
// Copyright 2016 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 "gn/analyzer.h"
#include <algorithm>
#include <iterator>
#include <memory>
#include <set>
#include <vector>
#include "base/json/json_reader.h"
... |
/*
BLAKE2 reference source code package - reference C implementations
Copyright 2012, <NAME> <<EMAIL>>. You may use this under the
terms of the CC0, the OpenSSL Licence, or the Apache Public License 2.0, at
your option. The terms of these licenses can be found at:
- CC0 1.0 Universal : http://creativ... |
#include "octree.h"
#include "build.h"
void octree::allocateParticleMemory(tree_structure &tree)
{
//Allocates the memory to hold the particles data
//and the arrays that have the same size as there are
//particles. Eg valid arrays used in tree construction
int n_bodies = tree.n;
//MULTI_GPU_MEM_INCREASE% ... |
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include "Shader.h"
#include "Camera.h"
#include "LTC_data.h"
#include <iostream>
constexpr float PI = 3.14159265359;
constexpr int g_width = 1024;
constexpr int g_height = ... |
/*
* File: optic_flow.cpp
*
* Author: <NAME>
*
* Date: 18.09.2016
*/
#include "optic_flow.h"
OF::OF(){
}
OF::~OF(){
}
// diff -0,5 0 0,5
void OF::diffXY(CMatrix<float> Image, CMatrix<float> &dx, CMatrix<float> &dy){
int w =Image.xSize();
int h =Image.ySize();
Image=Neumann_bound... |
/*
* visualize_spline_wavelets.cpp (version 1.0)
* Intended to create plots of synthesis spline wavelets.
*
* This software is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
* either expressed or implied.
*
* Contact: <NAME>, <NAME>
*/
#include <cstdlib>
#include <iostream>
... |
#include <stdafx.h>
#include "BitmapExt.h"
#include "DSSTools.h"
#include "MultiBitmapProcess.h"
#include "StackingTasks.h"
#include "DSSProgress.h"
#include <algorithm>
#include <iostream>
#include "Multitask.h"
#include "avx_output.h"
/* ------------------------------------------------------------------- */
static ... |
#include "test_lite.h"
#include "saber/lite/funcs/saber_pooling.h"
using namespace anakin::saber;
using namespace anakin::saber::lite;
int cluster = 0;
int threads = 4;
int test_iter = 10;
bool compare_result = false;
bool global_pool = false;
int num = 1;
int ch_in = 32;
int h_in = 112;
int w_in = 112;
int kernel... |
/************************************************************************
Copyright 2019-2020 eBay 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
https://www.apache.org/licenses/LICENSE-2.0... |
/*****************************************************************************************
* *
* OpenSpace *
* ... |
#include "wpn_collection.hpp"
weapon_collection::weapon_collection()
{
}
weapon_collection::~weapon_collection()
{
if (priquel_config)
xr_delete (priquel_config);
if (patch_config)
xr_delete (patch_config);
if (settings)
{
xr_delete (settings);
}
delete_data (extract_list);
}
void... |
#include "nexus/backend/tensorflow_model.h"
#include <glog/logging.h>
#include <boost/filesystem.hpp>
#include <cstdint>
#include <memory>
#include <opencv2/opencv.hpp>
#include <random>
#include "nexus/backend/slice.h"
#include "nexus/backend/utils.h"
#include "nexus/common/image.h"
namespace fs = boost::filesyste... |
#include "voxel_block_serializer.h"
#include "../math/vector3i.h"
#include "../thirdparty/lz4/lz4.h"
#include "../voxel_buffer.h"
#include "../voxel_memory_pool.h"
#include <core/io/marshalls.h>
#include <core/io/stream_peer.h>
//#include <core/map.h>
#include <core/os/file_access.h>
namespace {
// TODO Introduce ver... |
int rMkQ,UaWP9,WGn5,vTZUb//oC
,
T40//
,Jo
/*hPt*/ ,
jG6
,Fc2/*yrBS*/ ,
dkKXJ/*g*/, Pylz ,
s,eP
//z
//a
, TLrx ,
PoG , Tb4,
/*3*/ OHKg ,
Bew, RlC1
,T ,//n
wsvI, N
, xiT , G0IH ,f4 ,WYysjQi,
ar0F , UY,
lL
,uf
,
FNy/*3K*/,CE, /*f*/ Va,D6k
,
C/*gtBn*/,E1 ; void
f_f0 () { int mWBK;
volatile int i... |
// This license applies to strassen-dp, Strassen-Winograd’s Matrix Multiplication
// Algorithm on GPU
// Copyright (c) 2013, The Ohio State University
// All rights reserved.
// Contact: <NAME> <<EMAIL>>
// Written by: <NAME>, <NAME> and <NAME>
// Reference: Pai-Wei Lai; <NAME>.; <NAME>., "Accelerating
/... |
#include "gpsdrive/gpsdrive.h"
#include <sys/time.h>
#include <Eigen/Dense>
#include <algorithm>
#include <string>
#include "gpsdrive/config.h"
#include "hw/car/car.h"
#include "hw/gps/ubx.h"
#include "hw/imu/imu.h"
#include "hw/imu/mag.h"
#include "hw/input/js.h"
#include "inih/cpp/INIReader.h"
#include "inih/ini.h... |
/**
* |------------------------|
* | Nuua Program Structure |
* |------------------------|
*
* Copyright 2019 <NAME> <<EMAIL>>
* https://nuua.io
*/
#include "../include/program.hpp"
#include "../include/memory.hpp"
#include "../../Logger/include/logger.hpp"
#include "../include/value.hpp"
#include <algorithm>
s... |
// Copyright (c) <NAME>
// Licensed under the MIT License.
#include <cstring>
#include "field_types.h"
#include "raw_ui.h"
#include "es9028pro.h"
#include "es9028pro_rt.h"
#include "es9028pro_ui.h"
static bool str_eq_insensitive(const std::string& a, const std::string& b)
{
return std::equal(a.begin(), a.end(), b.... |
#include <cstdio>
#include <cstdlib>
#include <dlfcn.h>
#include <sys/mman.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include "Vfloppy.h"
#include "verilated.h"
#include "verilated_vcd_c.h"
#include "shared_mem.h"
//------------------------------------------------------... |
/*
* Copyright (c) 2005, 2018, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
// Copyright (c) 2018 Baidu.com, 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 ... |
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/// ///
/// Copyright C 2019, <NAME> ... |
/* dbsknu.f -- translated by f2c (version 20100827).
This file no longer depends on f2c.
*/
#include "slatec-internal.hpp"
/* Table of constant values */
static integer const c__15 = 15;
static integer const c__5 = 5;
static integer const c__3 = 3;
static integer const c__2 = 2;
static integer const c__1 = 1;
in... |
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include "practicas/P6.hpp"
#include "practicas/P7.hpp"
#include "practicas/P8.hpp"
using namespace grafos::pmc;
using alg::arista;
using alg::BigGrafo;
using grafos::Lista;
using grafos::ma::Grafo;
using std::vector;
using ::testing::ElementsAre;
using ::testing::Elem... |
#include "vga.hpp"
Graphics::Graphics()
: miscPort(0x3c2)
, crtcIndexPort(0x3d4)
, crtcDataPort(0x3d5)
, sequencerIndexPort(0x3c4)
, sequencerDataPort(0x3c5)
, graphicsControllerIndexPort(0x3ce)
, graphicsControllerDataPort(0x3cf)
, attributeControllerIndexPort(0x3c0)
, attributeCon... |
#include <sys/time.h>
#include <pass.h>
#include <sys/ioctl.h>
#include <fcntl.h>
#include "armor.h"
#include <dynProcess.h>
#include <Symtab.h>
#include <AddrLookup.h>
#include <common/opt/passi.h>
PASS_ONCE();
#include <PatchModifier.h>
using namespace Dyninst::PatchAPI;
using namespace Dyninst::InstructionAP... |
/*
* menu_images.h
*
* Created on: 14-Nov-2020
* Author: reymor
*
* Brief: Main Functions
*/
/* Start of includes */
#include <stdio.h>
extern "C" {
#include "main.h"
}
#include "debug.h"
#include "menu_images.h"
/* End of include */
/* Start of Tiny ML includes */
#include "tensorflow/lite/micro/micro... |
#include "lager/data_format_parser.h"
/**
* @brief Generates xml error string and stores in member lastError
* @param ex is a SAXParseException to process (Xerces re-uses the SAX in the DOM parsing)
*/
void XercesErrorHandler::reportParseException(const xercesc::SAXParseException& ex)
{
char* message = xercesc:... |
/*
* This file is part of SRS project.
*
* SRS 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.
*
* SRS is distribut... |
// Fermilab Software Legal Information (BSD License)
// Copyright (c) 2008-2019, Fermi Research Alliance, LLC
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// Redistributions of source... |
// Game that plays homage to classic arcarde games like Space Invaders and Galaga
#include <stdint.h>
#include "sprite.h"
#include "console.h"
#include "invaders.h"
void Explode(uint16_t X, uint16_t Y);
int FirePressed();
void playInvaders(uint16_t demo_mode)
{
// Variables for the Invaders game
#define MAX_INVADERS... |
#include <raimd/md_msg.h>
using namespace rai;
using namespace md;
namespace rai {
namespace md {
static const uint32_t MAX_MSG_CLASS = 64,
MATCH_HASH_SIZE = 256;
static uint32_t md_group_cnt, /* size of md_match_group */
md_add_cnt; /* size of md_match_arr */
static... |
/*
KCANVAS PROJECT
Common 2D graphics API abstraction with multiple back-end support
(c) livingcreative, 2015 - 2017
https://github.com/livingcreative/kcanvas
canvastypes.cpp
canvas types implementation
*/
#include "canvastypes.h"
using namespace k_canvas;
const kColor kColor::P... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.