text stringlengths 3.08k 22k |
|---|
//===---------- TypeChecksOpt.h - Remove safe runtime type checks ---------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===----------... |
// Copyright (c) 2019-2020 LG Electronics, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or... |
//######################################################################
//
// GraspIt!
// Copyright (C) 2002-2009 Columbia University in the City of New York.
// All rights reserved.
//
// GraspIt! is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as publi... |
/******************************************
*MIT License
*
*Copyright (c) [2019] [<NAME>, <NAME>, <NAME>]
*
*Permission is hereby granted, free of charge, to any person obtaining a copy
*of this software and associated documentation files (the "Software"), to deal
*in the Software without restriction, including without... |
//
// Created by moqi on 2020/5/28.
//
#define LOG_TAG "ffmpegVideoFilter"
#include "ffmpegVideoFilter.h"
#include <base/media/AVAFPacket.h>
#include <utils/ffmpeg_utils.h>
#include <utils/frame_work_log.h>
#include <utils/timer.h>
extern "C" {
#include <libavcodec/avcodec.h>
#include <libavfilter/buffersink.h>
#incl... |
/*
* Copyright 2001-2004 <NAME>.
* Distributed under the Boost Software License, Version 1.0.
* (See accompanying file LICENSE_1_0.txt or copy at
* http://www.boost.org/LICENSE_1_0.txt)
*/
#include "jam.h"
#include "modules.h"
#include "hash.h"
#include "lists.h"
#include "native.h"
#include "object.h"
#include ... |
#pragma GCC optimize("O3")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,tune=native")
#pragma GCC target("avx2")
// #include <bits/stdc++.h>
#include <iostream>
#include <fstream>
#include <sstream>
#include <algorithm>
#include <vector>
#include <math.h>
#include <cmath>
#include <set>
#include <map>
... |
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <queue>
using namespace std;
typedef int flow_t;
typedef int cost_t;
const cost_t INF = 987654321;
struct edge_t {
in... |
/**-------------------------------------------------------------------------
@example i2c_master_slave.cpp
@brief This example demonstrate the use of I2C in both master and slave mode
Two I2C devices are created, one in master mode and the other in slave mode.
User is require to connected the wire to the appropriate ... |
//Includes
#include "sig2poly.c"
//Declarations
const valarray<size_t> oktypes = {1u,2u,101u,102u};
const size_t I = 1u, O = 2u;
size_t dim, L, Lx;
int mnz, u;
//Description
string descr;
descr += "Gets polynomial params starting from the signal (sig).\n";
descr += "This does linear prediction (LP) for each vector in... |
//
// Created by kr2 on 12/25/21.
//
#include "PBDSolverCPU.hpp"
#include "GUI.hpp"
#include "NSearch.hpp"
#include "common.hpp"
#include <chrono>
PBDSolver::PBDSolver(float _border, float _radius, float _epsilon)
: Solver(_border, _radius, _epsilon)
{
// Do nothing
buffer = makePBuffer();
nsearch = makeNS... |
//
// StateMachine.cpp
// SecondaryTaskPlugin
//
// Created by <NAME> on 20/10/2021.
//
#include "StateMachine.hpp"
#include <assert.h>
#include <cmath>
#include <functional>
#include <stdarg.h>
#include <stdlib.h>
#include <string>
#include <thread>
class Timer
{
std::atomic<bool> running{false};
public:
... |
/*
* Copyright (c) 2012-2015 Advanced Micro Devices, Inc.
* All rights reserved.
*
* For use for simulation and test purposes only
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of sourc... |
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// Geometry.cc
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#include "Geometry.hh"
#include "G4Box.hh"
#include "G4Tubs.hh"
#include "G4LogicalVolume.hh"
#include "G4PVPlacement.hh"
#include "G4PVReplic... |
#include <pcl/console/parse.h>
#include <pcl/point_types.h>
#include <pcl/point_cloud.h>
#include <pcl/point_representation.h>
#include <pcl/io/pcd_io.h>
#include <pcl/ros/conversions.h>
#include <pcl/keypoints/uniform_sampling.h>
#include <pcl/features/normal_3d.h>
#include <pcl/features/fpfh.h>
#include <p... |
// Copyright (c) 2012 The Chromium Embedded Framework Authors.
// Portions 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 "libcef/browser/browser_host_impl.h"
#include <gtk/gtk.h>
#include ... |
/*
* Copyright 2016, Pythia authors (see AUTHORS file).
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Redistributions of source code must retain the above copyright
* notice, t... |
/*
* libjingle
* Copyright 2004, Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the f... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkSimple2DLayoutStrategy.cxx
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distri... |
/*
* ===========================================================================
* Loom SDK
* Copyright 2011, 2012, 2013
* The Game Engine Company, LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy o... |
#include<d3d11.h>
#include "FirstPersonCamera.h"
FirstPersonCamera::FirstPersonCamera(void): target_( XMFLOAT3( 0.0f, 0.0f, 0.0f ) ),
position_( XMFLOAT3( 3.0f, 10.0f, -30.0f )), direction_( XMFLOAT3( 0.0f, 0.0f, 1.0f ) )
{
SetDistance( 2.0f, 1.0f, 10.0f );
SetRotation( 0.0f, 0.0f, -XM_PIDIV4/3, XM_PIDIV4/2... |
/*
* Copyright (c) 2017, <NAME> University.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of ... |
#include<map>
#include<iostream>
#include<limits>
#include<memory>
template<typename K, typename V>
class interval_map {
V m_valBegin;
std::map<K,V> m_map;
public:
// constructor associates whole range of K with val
interval_map(V const& val)
: m_valBegin(val)
{ /*m_map.insert({std::numeric_limits<K>::lowest(), m... |
#include "cute.h"
#include "test_Box.h"
#include "Box.h"
const MatVec<lengthT, 3> box_dimension{10,20,30};
const unsigned DIM3{3};
void emptyBox() {
Box<3> box { box_dimension };
ASSERTM("", box.size() == 0 );
}
void boxSize10() {
Box<3> box { box_dimension, 10 };
ASSERTM("", box.size() == 10 );
}
void boxAbm... |
// Author : <NAME> - CED18I039
// g++ LineClip.cpp -o LineClip -lGL -lGLU -lglut -lGLEW
#include <GL/glew.h>
#include <GL/freeglut.h>
#include <bits/stdc++.h>
using namespace std;
int refPoints = -1;
float xmin = 200+rand()%400,
ymin = 200+rand()%400,
xmax = 900-rand()%200,
ymax = 900-rand()%200;... |
/// \file fon9/io/IoDev_UT.cpp
/// \author <EMAIL>
#include "fon9/io/SimpleManager.hpp"
#include "fon9/TestTools.hpp"
#ifdef fon9_WINDOWS
#include "fon9/io/win/IocpTcpClient.hpp"
#include "fon9/io/win/IocpTcpServer.hpp"
using IoService = fon9::io::IocpService;
using IoServiceSP = fon9::io::IocpServiceSP;
using TcpCli... |
#include "CController.h"
//-----------------------------ctor---------------------------------------
//
//------------------------------------------------------------------------
CController::CController(int cxClient,
int cyClient):m_iNumSpawnedFromTheMul... |
#include <iostream>
//#include <algo.h>
#include <algorithm>
#include <string>
#include <sstream>
#include "calcdb.h"
#include "eclat.h"
using namespace std;
int *Dbase_Ctrl_Blk::FreqIdx=NULL;
int *Dbase_Ctrl_Blk::FreqMap=NULL;
int Dbase_Ctrl_Blk::MaxTransSz=0;
int Dbase_Ctrl_Blk::TransSz=0;
int *Dbase_Ctrl_Blk::Tran... |
/******************************************************************************
Copyright (c) 2021-2022 Bytedance Inc.
ASTC Texture Decompression.
astc compression tool: https://github.com/ARM-software/astc-encoder/releases
version required: v2.2+
command:
astcenc-sse4.2 -cl test1.png test1.astc 6x6 -medium ... |
//
// Gestiona todos los sensores relacionados con el clima
// Temperatura, humedad, presion, lluvia, luz
//
#include "Climate.h"
void ClimateClass::init(byte tempMin, byte tempMax, byte pLight, byte pRain, float latitude, float longitud, int timezone)
{
pinRain = pRain;
pinLight = pLight;
_tempMin =... |
/***************************************************************************
vidhrdw.c
Functions to emulate the video hardware of the machine.
***************************************************************************/
#include "driver.h"
#include "vidhrdw/tms34061.h"
#include "cpu/m6809/m6809.h"
... |
#include "SIM900HTTPClient.h"
SIM900HTTPClient::SIM900HTTPClient() : GSM(TX_PIN, RX_PIN) {
}
bool SIM900HTTPClient::begin() {
return GSMBegin();
}
bool SIM900HTTPClient::GSMBegin() {
GSM.begin(BAUD_RATE);
for(int i = 0; i < 5; ++i) {
if(sendATCommandAndExpects("AT", "AT") || sendATCommandAndExpects("AT", "OK... |
/*
* 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 ... |
// -*- C++ -*-
//
// ----------------------------------------------------------------------
//
// <NAME>, U.S. Geological Survey
//
// This code was developed as part of the Computational Infrastructure
// for Geodynamics (http://geodynamics.org).
//
// Copyright (c) 2010-2017 University of California, Davis
//
// See ... |
#include "Halide.h"
#include "halide_image_io.h"
#include "halide_test_dirs.h"
#include <fstream>
using namespace Halide;
template<typename T>
void test_round_trip(Buffer<T> buf, std::string format) {
// Save it
std::ostringstream o;
o << Internal::get_test_tmp_dir() << "test_" << halide_type_of<T>() << ... |
#include <iostream>
#include <cstdlib>
#include <stdexcept>
#include <tclap/CmdLine.h>
#include <rpiCommonTools.hxx>
#include "rpiTRex.hxx"
/**
* TRex (Toy Registration EXample) executable.
* This method is a fully ITK registration method implemented into the RPI framework.
* The method is simple and gives a cle... |
/*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% A Host implementation of Bag of Visual Words
% by: <NAME> and <NAME>
% <EMAIL>
% <EMAIL>
% University of Bonn- MSc Robotics & Geodetic Engineering
% alirezaahmadi.xyz ... |
#include "mmu.h"
#include <cassert>
#include <iostream>
#include "utils.h"
using namespace std;
MMU::MMU() {
ram = new uint8_t[0x8000];
// Create a bank big enough for the 32KB RAM if necessary.
switchable_ram_bank_ = new uint8_t[0x10000];
bootROM = NULL;
cartridgeROM = NULL;
overlayBootROM = true;
}
v... |
// 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 may... |
/**************************************************************************/
/* */
/* WWIV Version 5.x */
/* Copyright (C)1998-2019, WWIV Software Services */
/* ... |
#include "SimulationCore_pcp.h"
#include "Step_S2D_CHM_s_uUp.h"
Step_S2D_CHM_s_uUp::Step_S2D_CHM_s_uUp() :
Step(&solve_substep_S2D_CHM_s_uUp), model(nullptr) {}
Step_S2D_CHM_s_uUp::~Step_S2D_CHM_s_uUp() {}
int Step_S2D_CHM_s_uUp::init_calculation(void)
{
if (is_first_step)
{
for (size_t pcl_id = 0; pcl_id < mo... |
/**
*
* Based on: https://github.com/RAKWireless/WisBlock/blob/master/examples/RAK4630/solutions/Environment_Monitoring/Environment_Monitoring.ino
* Updated to match https://www.arduino.cc/en/Reference/StyleGuide
* This code reads tempreature, pressure etc. from an environment sensor and uploads it via Helium netwo... |
/*************************************************************************/
/* noise.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
#include "readsTools.hpp"
#include <string>
#include <vector>
#include <iostream>
using namespace std;
//Static members/attributes;
const std::map<char,uint8_t> ReadsTools::nuc = {{'A',0},{'T',1},{'G',2},{'C',3},{'X',4}};
const std::vector< std::vector< int8_t > > ReadsTools::scoreMatrix =
std::vector< std::vecto... |
/*
* Recursive Neural Networks: neural networks for data structures
*
* Copyright (C) 2018 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including wit... |
#include <starpu_mpi.h>
#include <starpu_profiling.h>
#include "data.h"
/* Take 24 bits for the tile id, and 7 bits for descriptor id.
These values can be changed through the call MORSE_user_tag_size(int tag_width, int tag_sep) */
#define TAG_WIDTH_MIN 20
static int tag_width = 31;
static int tag_sep = 24;
static... |
#include "ContinuousTimeCollisionHandler.h"
#include <iostream>
#include "ContinuousTimeUtilities.h"
// BEGIN STUDENT CODE //
// Given the start position (oldpos) and end position (scene.getX) of two
// particles, and assuming the particles moved in a straight line between the
// two positions, determines whether th... |
/**
* @file
* @brief Defines the entry point for the console application.
* This implements "expand AJN.CAB -F:* <destination>" and
* deleting all the files and subdirectories during the uninstall.
*/
/******************************************************************************
*
*
* Copyright (c) 2013, All... |
//*************************************************************
//
// Debugging functions
//
// Microsoft Confidential
// Copyright (c) Microsoft Corporation 1995
// All rights reserved
//
//*************************************************************
#include "common.hxx"
HINSTANCE ghDllInstance = 0... |
/*
* AT&T Unix 7th Edition memory allocation routines.
*
* Modified by <NAME>, Freiburg i. Br., Germany, February 2005.
*
* Copyright(C) Caldera International Inc. 2001-2002. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that t... |
// License: Apache 2.0. See LICENSE file in root directory.
// Copyright(c) 2017 Intel Corporation. All Rights Reserved.
#include <librealsense2/rs.hpp> // Include RealSense Cross Platform API
#include <opencv2/opencv.hpp> // Include OpenCV API
#include <System.h>
void exportToFileYML(std::ofstream & filestream, ... |
// The code is open source under the MIT license.
// Copyright 2019-2020, <NAME>, TU Braunschweig, Algorithms Group
// https://ibr.cs.tu-bs.de/alg
//
// 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
// th... |
/*-------------------------------------------------------------
usbstorage.c -- Bulk-only USB mass storage support
Copyright (C) 2008
<NAME> (svpe) <<EMAIL>>
Copyright (C) 2009-2010
tueidj, rodries, Tantric
Stripped down nintendont port by FIX94
Modified by Palapeli for Saoirse (2022)
This software is provided 'as-i... |
//
// glue.h
// example-simple
//
// Created by <NAME> on 16/10/2019.
//
#include "liveCodeUtils.h"
#include <stdio.h>
#include <chrono>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
using namespace std;
namespace liveCodeUtils {
std::chrono::system_clock::time_point startTime;
};
void liveC... |
/**************************************************************************/
/* */
/* WWIV Version 5.x */
/* Copyright (C)1998-2021, WWIV Software Services */
/* ... |
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
#include <ctime>
#include <opencv2/opencv.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <imgproc/derivative_gradient.hpp>
#define DISABLE_DC_ZERO_FIX
#include <imgproc/quadratureG2.hpp>
#include <imgproc/quadratureS.hpp>
#incl... |
#pragma once
// sdk dump - leave as is for easier reference
// network protocol stuff
// Used to classify entity update types in DeltaPacketEntities.
enum UpdateType
{
EnterPVS = 0, // Entity came back into pvs, create new entity if one doesn't exist
LeavePVS, // Entity left pvs
DeltaEnt, // There is a delta ... |
/* Copyright (c) 2015, <NAME> <<EMAIL>>
* Licensed under the MIT license. See the license file LICENSE.
*/
#pragma once
#include <Eigen/Dense>
#include <dpMM/global.hpp>
#include <dpMM/normal.hpp>
#include <dpMM/iw.hpp>
#include <dpMM/sphere.hpp>
#define LOG_2PI 1.837877066409345... |
/* Isolation forests and variations thereof, with adjustments for incorporation
* of categorical variables and missing values.
* Writen for C++11 standard and aimed at being used in R and Python.
*
* This library is based on the following works:
* [1] Liu, <NAME>, <NAME>, and <NAME>.
* "... |
/*****************************************************************************************
* *
* OpenSpace *
* ... |
// FormatString.cpp - Common stuff for handling printf/scanf formats -*- C++ -*-
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/* -*- C++ -*-
* Copyright 2019-2021 LibRaw LLC (<EMAIL>)
*
LibRaw uses code from dcraw.c -- <NAME>'s raw photo decoder,
dcraw.c is copyright 1997-2018 by <NAME>, dcoffin a cybercom o net.
LibRaw do not use RESTRICTED code from dcraw.c
LibRaw is free software; you can redistribute it and/or modify
it un... |
/*
* Copyright 2019 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
#pragma once
inline void CalculateBoundaryOfDomain(const PS::S32 &np,
const PS::F64vec pos_sample[],
const PS::S32 cid,
const PS::S32 &istart,
const PS::S32 &iend,
const PS::F64ort pos_root_domain,
PS::F64 & xlow,
PS::F64 & xhigh) {
if(istart ==... |
/*****************************************************************************
* This file is part of the Project RBC
*
* Copyright (c) 2016-2017, <NAME> <<EMAIL>>
* Copyright (c) 2016-2019, <NAME> <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* ... |
/*
* @file TTWebSocket.cpp
* @group network library
* @brief Jamoma WebSocket server
* @see TTWebSend, TTWebReceive
*
* @copyright © 2013, <NAME>
* License: This code is licensed under the terms of the "New BSD License"
* http://creativecommons.org/licenses/BSD/
*
* @details Use cross platform civetweb server... |
#include "Waves.h"
#include <ModelManager.h>
#include <TextureManager.h>
#include <DXTrace.h>
#pragma warning(disable: 26812)
using namespace DirectX;
using namespace Microsoft::WRL;
uint32_t Waves::RowCount() const
{
return m_NumRows;
}
uint32_t Waves::ColumnCount() const
{
return m_NumCols;
}
void Waves:... |
#include "graph.cpp"
#include <algorithm>
#include <iostream>
#include <queue>
#include <vector>
using namespace std;
class ExtendedGraph : public DirGraph<char> {
public:
bool matchWord(const char* word) const
{
// empty word check
if (word[0] == '\0')
return true;
char ... |
// Note: it is important for the pins to be #defined here to allow the fast reads to work properly as the need to know the pins at compile time
#define PinCamVsync 2 // EMC_04
#define PinCamHref 3 // EMC_05
#define PinCamPpclk 4 // EMC_06
#define PinCamXclk 5 // EMC_08
#define PinCamD0 14 // AD_B1_02
#define P... |
#include "tag.h"
#include <bitset>
using namespace std;
using namespace UTILS;
const int TAG::NumCells = 29;
TAG::TAG(int opponents)
: NumOpponents(opponents)
{
NumActions = 5;
NumObservations = NumCells + 1;
RewardRange = 10 * NumOpponents;
Discount = 0.95;
}
STATE* TAG::Copy(const STATE& state) ... |
#include <ros/ros.h>
#include <rosbag/bag.h>
#include <rosbag/view.h>
// ROS messages
#include <sensor_msgs/LaserScan.h>
#include <geometry_msgs/Pose.h>
#include <geometry_msgs/PoseArray.h>
#include <visualization_msgs/Marker.h>
#include <visualization_msgs/MarkerArray.h>
// Custom messages
#include <leg_tracker/lase... |
#include "amulet.h"
/*
* This is the allocator we use for Lua. We use a custom allocator to
* take advantage of the fact that Lua already keeps track of the sizes
* of objects, and tells us the object's size when freeing it. We also
* don't need to worry about thread safety, since each Lua engine only runs
* on o... |
#include "btree_test_env.h"
#include "gtest/gtest.h"
#include "sthread.h"
#include "sm_options.h"
#include "sthread.h"
#include "lock_raw.h"
#include "lock_core.h"
#include "sm_base.h"
#include "log_core.h"
#include "log_lsn_tracker.h"
#include "lock.h"
#include "w_okvl_inl.h"
#include "w_endian.h"
#include "../common/... |
/*
Copyright (C) 2018 <NAME>
This file is part of RALibretro.
RALibretro 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.
RALibretro is dis... |
#include <tiramisu/tiramisu.h>
#include <string.h>
#include "baryon_wrapper.h"
using namespace tiramisu;
/*
* The goal is to generate code that implements the reference.
* baryon_ref.cpp
*/
void generate_function(std::string name, int size)
{
tiramisu::init(name);
constant N("N", size);
constant T("... |
#include "Common.hpp"
class Test_Base_Variant : public ::testing::Test {};
class TestRefObject1 : public RefObject {};
TEST_F(Test_Base_Variant, SetAndGet)
{
//* [ ] default
Ref<Variant> v0 = makeVariant();
ASSERT_EQ(VariantType::Null, v0->type());
//* [ ] Bool
{
Ref<Variant> var = makeVariant(true);... |
//
// Created by ounols on 19. 6. 6.
//
#include "AssetMgr.h"
#include "../MacroDef.h"
#include "../Util/AssetsDef.h"
#include "../Util/MoreString.h"
#include "EngineCore.h"
#include "ResMgr.h"
#include <iostream>
#ifdef __linux__
#include <sys/types.h>
#include <dirent.h>
#elif WIN32
#include <windows.h>
#endif
#... |
// Copyright (c) 2020 midnightBITS
// This code is licensed under MIT license (see LICENSE for details)
#include <gtest/gtest.h>
#include <diags/printer.hpp>
#include <diags/sources.hpp>
#include <numeric>
#include <support/outstrstream.hpp>
#include <support/test_with_diagnostics.hpp>
namespace diags::noenum::string... |
//===- pragmaHandler.cc - Pragmas used to emit MLIR--------------*- 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
//
//===---------------------------... |
// SafeArryGUID.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
//#include <objbase.h>
//#include <comutil.h>
#include <string>
#include<atlsafe.h>
#include<iostream>
using namespace std;
#pragma comment(lib, "rpcrt4.lib")
// Import .NET framework mscorlib. //rename_namespace("NameSp... |
/*
* WiFiStation
* Copyright (c) 2021 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and 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 T... |
#include "Mesh.h"
Mesh::Mesh(std::vector<Vertex> vertices, std::vector<unsigned int> indices,std::vector<texture> textures)
{
x_InitModelMatrix();
this->x_vertices = vertices;
this->x_indices = indices;
this->x_textures = textures;
x_setup_mesh();
}
Mesh::Mesh(PrimitiveType primitive)
{
x_InitModelMatrix();
sw... |
/*
Copyright (c) 1999 - 2010, Vodafone Group Services Ltd
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 condit... |
#include "stdafx.h"
enum {backread_on_seek = 1024};
void seekabilizer_backbuffer::initialize(t_size p_size)
{
m_depth = m_cursor = 0;
m_buffer.set_size(p_size);
}
void seekabilizer_backbuffer::write(const void * p_buffer,t_size p_bytes)
{
if (p_bytes >= m_buffer.get_size())
{
memcpy(m_buffer.ge... |
/**
* @file ANN_MLP_.cpp
* @brief mex interface for ANN_MLP
* @author <NAME>
* @date 2012
*/
#include "mexopencv.hpp"
using namespace std;
using namespace cv;
// Persistent objects
namespace {
/// Last object id to allocate
int last_id = 0;
/// Object container
map<int,CvANN_MLP> obj_;
/// Option values for ANN_... |
/* --------------------------------------------------------------------------
*
* File ResManager.cpp
* Description Resource Manager
* Author <NAME>
*
* --------------------------------------------------------------------------
*
* Copyright (C) 2010-2012 XMSof... |
/*
* Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
* Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
*
* 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 ... |
/*
* 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 ... |
/*
* libjingle
* Copyright 2012, Google Inc.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* this list of conditions and the f... |
#include <iostream>
#include <iomanip>
#include <fstream>
#include <string>
#include <regex>
#include <vector>
#include <set>
#include <random>
#include <cctype>
#include <cstring>
#ifdef _WIN32
#include <Windows.h>
#endif
const ::std::regex seps1{"((\\s\\-)|(\\:\\s))"};
const ::std::regex seps2{"\\,"};
using list_... |
// Copyright (c) 2019 The DeepOnion developers
// Distributed under the MIT/X11 software license
#include <base58.h>
#include <net.h>
#include <rpc/safemode.h>
#include <rpc/server.h>
#include <validation.h>
#include <wallet/coincontrol.h>
#include <wallet/wallet.h>
#include <univalue.h>
UniValue getlastanontxinfo(c... |
//
// Created by kiosk on 2020/1/23.
//
#include "FastcgiHandler.h"
#include "../http/Currency.h"
enum state {
S_NOPE, S_CR, S_CRLF, S_CRLFCR, S_CRLFCRLF
};
template<typename T>
unsigned char Type(T n) {
return static_cast<unsigned char>(n);
}
void FastCgiHandler::SendFastCgi(const std::unique_ptr<HTTPMessag... |
//
// Created by huangkun on 2020/2/12.
//
#include <opengv2/tracking/TrackingBase.hpp>
#include <opengv2/frame/CameraFrame.hpp>
#include <opengv2/map/MapBase.hpp>
opengv2::TrackingBase::TrackingBase(MapBase::Ptr map)
: state(NOT_INITIALIZED), map_(std::move(map)), system_(nullptr), landmarkCounter_(0) {}
vo... |
// ----------------------------------------------------------------------------
// FILE: CIDDocComp_Info.hpp
// DATE: Fri, Oct 01 19:41:29 2021 -0400
//
// This file was generated by the Charmed Quark CIDIDL compiler. Do not make
// changes by hand, because they will be lost if the file is regenerated.
// ---------... |
#include <time.h>
#include <SFML/Graphics.hpp>
#include <list>
using namespace sf;
const int W = 1200;
const int H = 800;
float DEGTORAD = 0.017453f;
class Animation {
public:
float Frame, speed;
Sprite sprite;
std::vector<IntRect> frames;
Animation() {}
Animation(Texture &t, int x, int y, i... |
#include "tromble_loss.h"
#include "fast_lexical_cast.hpp"
#include <boost/algorithm/string/predicate.hpp>
#include <boost/circular_buffer.hpp>
#include <boost/functional/hash.hpp>
#include <boost/range/iterator_range.hpp>
#include <boost/tokenizer.hpp>
#include <boost/unordered_map.hpp>
#include <cmath>
#include <fs... |
// Copyright (c) 2019 PaddlePaddle Authors. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required... |
// Copyright 2017 <NAME>
//
// 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... |
#include "CellularAutomaton.h"
#include <random>
#include <iostream>
#include <iomanip>
CellularAutomaton::CellularAutomaton(int cubeDimension, Rule rule) :
cubeDimension(cubeDimension),
cells(cubeDimension),
previousGenerationCells(cubeDimension),
rule(rule)
{
}
CellularAutomaton::~CellularAutomaton()
{
}
vo... |
#include "model.h"
#include "collision.h"
#include "constants.h"
#include "ensembles.h"
#include "joints.h"
#include "utils.h"
using Eigen::Matrix3d;
using Eigen::Matrix4d;
using Eigen::Quaterniond;
using Eigen::Vector3d;
using Eigen::Vector3f;
// static double angle1 = 0.5;
// static double angle2 = 0;
// BoxTest
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.