text stringlengths 5.71k 33.7k |
|---|
#include <algorithm>
#include <chuffed/vars/int-var.h>
#include <chuffed/core/sat.h>
#include <iostream>
#include <map>
#include <sstream>
extern std::map<IntVar*, std::string> intVarString;
IntVarEL::IntVarEL(const IntVar& other) :
IntVar(other)
, lit_min(INT_MIN)
, lit_max(INT_MIN)
, base_vlit(INT_MIN)
, bas... |
#include "specssl.h"
#include "spec/speccontext.h"
#include "spec/specstatic.h"
#define SPEC_LONG_MAX 2147483647
SpecSSL::SpecSSL(ILog * iLog_, IFileAdapter * iFileAdapter_, IConfig * iConfig_)
: iLog(iLog_), iFileAdapter(iFileAdapter_), iConfig(iConfig_)
{
}
bool SpecSSL::start() {
SSL_library_init();
... |
#include "bufferRecv.hpp"
#include "bufferSend.hpp"
#include "nt_memcpy.h"
#include "prometheusMetrics.hpp"
#include "util.h"
#include "visUtil.hpp"
#include "fmt.hpp"
#include <cstring>
#include <errno.h>
#include <exception>
#include <functional>
#include <memory.h>
#include <signal.h>
#include <stdlib.h>
#include... |
// Copyright 2020 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <android/hidl/memory/1.0/IMemory.h>
#include <android-base/logging.h>
#include <gmock/gmock.h>
#include <gtest/gtest.h>
#include <hidl/HidlSup... |
/*
Copyright (c) 2014 <NAME> <<EMAIL>>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRAN... |
/*
Copyright(c) 2016-2021 <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 limitation the rights
to use, copy, modify, merge, publish, distribute, subl... |
#include <igl/writeDMAT.h>
#include <igl/readDMAT.h>
#include <igl/readMESH.h>
#include <igl/get_seconds.h>
#include <GaussIncludes.h>
#include <ForceSpring.h>
#include <FEMIncludes.h>
#include <PhysicalSystemParticles.h>
#include <ConstraintFixedPoint.h>
#include <boost/filesystem.hpp>
#include <nlohmann/json.hpp>
... |
/**
* This file is part of DSO.
*
* Copyright 2016 Technical University of Munich and Intel.
* Developed by <NAME> <engelj at in dot tum dot de>,
* for more information see <http://vision.in.tum.de/dso>.
* If you use this code, please cite the respective publications as
* listed on the above website.
*
* DSO is free s... |
/*
Copyright 2016 Massachusetts Institute of Technology
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 applicab... |
#include <algorithm>
#include <cmath>
#include <ros/ros.h>
#include <geometry_msgs/Pose2D.h>
#include <std_msgs/Float64.h>
#include <open_base/FrameToFrame.h>
#include <open_base/KinematicsInverse.h>
#include <open_base/Movement.h>
#include <open_base/MovementBezier.h>
#include <open_base/MovementGeneric.h>
#include ... |
#include "src/local_symmetry_mpi.h"
void local_symmetry_parameters_mpi::read(int argc, char **argv)
{
// Define a new MpiNode
node = new MpiNode(argc, argv);
// First read in non-parallelisation-dependent variables
local_symmetry_parameters::read(argc, argv);
// Don't put any output to screen for... |
/*
* Copyright (c) 2006, <NAME> and WhitSoft Development
* 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 noti... |
#ifdef CH_LANG_CC
/*
* _______ __
* / ___/ / ___ __ _ / / ___
* / /__/ _ \/ _ \/ V \/ _ \/ _ \
* \___/_//_/\___/_/_/_/_.__/\___/
* Please refer to Copyright.txt, in Chombo's root directory.
*/
#endif
#include "Vector.H"
#include "Box.H"
#include "SPMD.H"
#include "MayDay.H"
#... |
/*
* Copyright (C) 2015 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... |
//----------------------------------------------------------
// @file : pot_tracked.cpp
// @author : <NAME>
// @version: Ver0.1.4 (since 2014.05.02)
// @date : 2014.11.13
//----------------------------------------------------------
#include <ros/ros.h>
#include <pthread.h>
#include <std_msgs/String.h>
#include <vi... |
/*
* Copyright 2020 <NAME>. All rights reserved.
* License: https://github.com/JJorgeDSIC/CppDecoder#license
*/
#include <Decoder.h>
/**
* @brief Search Graph Node methods' definition
*
*/
SGNode::SGNode() : state_id(0), lprob(0.0), hmmlprob(0.0), lmlprob(0), hyp(0) {}
SGNode::SGNode(const uint32_t state_id, ... |
/*
* HAL.cpp
*
* Created on: 21-11-2018
* Author: <NAME>
*/
#include "HAL.hpp"
#include <stm32l4xx.h>
GPIO HAL::I2C1_SCL(GPIOA, 9);
GPIO HAL::I2C1_SDA(GPIOA, 10);
GPIO HAL::I2C2_SCL(GPIOB, 10);
GPIO HAL::I2C2_SDA(GPIOB, 11);
GPIO HAL::I2C3_SCL(GPIOC, 0);
GPIO HAL::I2C3_SDA(GPIOC, 1);
GPIO HAL::I2C4_SCL... |
#include "config/config.h"
#include "physics_config.h"
#include "core/material.h"
#include "common/cli_params.h"
#include "common/work_pool.h"
#include "common/time_log.h"
#include "io/output_stream.h"
#include "io/load_tri_file.h"
#include "io/load_pri_file.h"
#include "io/load_vox_file.h"
#include "drivers/cpu/simp... |
/**
* @file main.cpp
* @brief Slightly more complex FreeGLUT usage example
*
* @author <NAME> (C) SUPSI [<EMAIL>]
*/
//////////////
// #INCLUDE //
//////////////
// GLM:
#define GLM_FORCE_RADIANS
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_pt... |
/***********************************************************************/
/** BISECTION NUMERICAL METHOD TO GET CATENARY CHAIN 3D POINTS */
/** */
/** Open Source Code */
/** Service Robotics Lab... |
/****************************************************************************/
// Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
// Copyright (C) 2001-2020 German Aerospace Center (DLR) and others.
// This program and the accompanying materials are made available under the
// terms of the Ecli... |
/* Copyright 2018 The TensorFlow Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <assert.h>
#include <unistd.h>
#include "GLES2/gl2.h"
#include "cubes.hpp"
#include "gl_platform.hpp"
#include "gl_utils.hpp"
#include "utils.hpp"
#include "shaders.hpp"
#include "compression.hpp"
#define GLM_FORCE_RADIANS
#includ... |
#include "dfe/Dialect/MaxJ/IR/MaxJOps.h"
#include "dfe/Dialect/MaxJ/IR/MaxJDialect.h"
#include "mlir/Dialect/CommonFolders.h"
#include "mlir/IR/Attributes.h"
#include "mlir/IR/Matchers.h"
#include "mlir/IR/Module.h"
#include "mlir/IR/OpImplementation.h"
#include "mlir/IR/PatternMatch.h"
#include "mlir/IR/Region.h"
#in... |
/*
* 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 not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apac... |
#include <cassert>
#include <iostream>
#include <string>
#include <system_error>
#include <vector>
#include <Windows.h>
#include <SetupAPI.h>
#include <INITGUID.H>
#include "xdma_public.h"
#pragma comment(lib, "setupapi.lib")
using std::uint32_t;
using std::string;
using std::vector;
using std::r... |
// Copyright 2013 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 "content/common/gpu/media/vaapi_wrapper.h"
#include <dlfcn.h>
#include "base/bind.h"
#include "base/logging.h"
#include "base/numerics/safe_con... |
#include "allegro_node_grasp.h"
#include "bhand/BHand.h"
// ROCK-SCISSORS-PAPER(RIGHT HAND)
static double rock[] = {
-0.060443433046814224, 1.718152628368968, 1.5183127728064667, 1.0768768082224522,
-0.05366902617688447, 1.624485735198956, 1.5646042111477811, 1.0817334603483135,
-0.02420332445510799, 1.8175675... |
// HEADER
#include <path_follower/controller/robotcontroller_dynamic_window.h>
// THIRD PARTY
#include <tf/tf.h>
// PROJECT
#include <path_follower/utils/pose_tracker.h>
#include <path_follower/utils/obstacle_cloud.h>
#include <path_follower/parameters/path_follower_parameters.h>
#include <path_follower/collision_avo... |
/*
LodePNG Benchmark
Copyright (c) 2005-2019 <NAME>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
including commercial... |
// Copyright (C) 2015 <NAME>
// This file is part of ZNoise - a C++ noise library
// For conditions of distribution and use, see LICENSE file
#include "Perlin.hpp"
#include "NoiseTools.hpp"
#include <iostream>
#include <exception>
#include <stdexcept>
#include <thread>
Perlin::Perlin() :
gradient2{
{1.f,1.f},{-... |
// This file is part of OpenCV project.
// It is subject to the license terms in the LICENSE file found in the top-level directory
// of this distribution and at http://opencv.org/license.html.
//#include "test_precomp.hpp"
#include "dualquaternion.hpp"
#include <gtest/gtest.h>
//#include <opencv2/ts/cuda_test.hpp>
us... |
//*********************************************************
//
// Copyright (c) Microsoft. All rights reserved.
// This code is licensed under the MIT License (MIT).
// THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
// ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
// IMPLIED WARRANTIES OF FITNESS FOR A PA... |
#include <glad/glad.h>
#include <glfw3.h>
#include <iostream>
#include <Shader.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <Model.h>
#define SRC_WIDTH 800
#define SRC_HEIGHT 600
float Cubevertices[] = {
// positions // normals // texture Coords
-0.5f, -0.5f, -0.5... |
/***************************************************************************
vidhrdw.c
Functions to emulate the video hardware of the machine.
***************************************************************************/
#include "driver.h"
#include "vidhrdw/generic.h"
unsigned char *zaxxon_char_color_bank;
un... |
/*
* Copyright 2000-2008, <NAME>, <<EMAIL>>. All rights reserved.
* Distributed under the terms of the MIT License.
*/
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <Debug.h>
#include <Font.h>
#include <String.h>
#include <Message.h>
#include <TypeConstants.h>
#include "Dum... |
/*
Copyright (c) 2021 <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 Software without restriction,
including without limitation the rights to use, copy, modify, merge,
publish, distribute... |
/*
* xSF - Sound View Dialog
* By <NAME> (CyberBotX) [<EMAIL>]
*
* Partially based on the vio*sf framework
*
* Based on the Sound View dialog box from DeSmuME
* http://desmume.org/
*/
#include <string>
#ifdef __GNUC__
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wold-style-cast"
#elif defined... |
#include "subsystems/Vision/Targets/ReflectiveTape.h"
#include "subsystems/Vision/Utilities.h"
#include <frc/smartdashboard/SmartDashboard.h>
const std::string Vision::ReflectiveTape::k_cameraSettings =
"exposure_auto=1,"
"exposure_absolute=5," // Valid exposures are "5, 10, 20, 39, 78, 156, 312, 625, 1250, 2500... |
#include <cassert>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "defs.h"
#include "image.h"
#define EFT_NONE 0
#define EFT_16B 1
#define FIX_SIZE_16 0x02
#define FIX_SIZE_32 0x07
// EFT_SEG = 1, // Not offset, not 32 bits
// EFT_REL = 2, // Not absolute
// EFT_EXT = 4 // Not interna... |
///////////////////////////////////////////////////////////////////////////////////////
// Data Analysis Code Project for the External Target Facility, HIRFL-CSR, @IMP //
// //
// BINGER/inc/etf/TAMWDC.cxx //
// TAMWDC.cxx -- source file for ... |
#include "defs.h"
#include "block_allocator.h"
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <limits>
#include <string.h>
namespace dynamic{
//___________________stack_allocator___________________________
__forceinline int * stack_allocator::cap_beg()const{
return _capbeg;
};
__forceinline ... |
// MiniMFB: for creating a window and rendering to it
#include "MiniFB.h"
// GLM: for matrix/vector math
#define GLM_FORCE_DEPTH_ZERO_TO_ONE
#include "glm/glm.hpp"
#include "glm/gtx/transform.hpp"
#include "glm/gtc/type_precision.hpp"
#include <cmath>
#include <cstring>
#include <cstdio>
#include <cstdlib... |
/**
* \file WznmWrsrvDlg.cpp
* Wznm operation processor - write specific job C++ code for dialog (implementation)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author <NAME> (auto-generation)
* \date created: 28 Nov 2020
*/
// IP header --- ABOVE
#ifdef WZNMCMBD
#include <Wznmcmbd.h>
#else
#include <Wz... |
#include "NuklearGui.hpp"
#include <iostream>
#ifndef NK_IMPLEMENTATION
#define NK_IMPLEMENTATION
#define NK_SFML_GL3_IMPLEMENTATION
#include "nuklear.h"
#include "nuklear_sfml_gl3.h"
#endif
glh::gui::NuklearGui::NuklearGui()
: window(nullptr)
, ctx(nullptr)
, atlas(nullptr)
, mTitle("")
, mPosX(0)... |
#include "stdafx.h"
#include <stdlib.h>
#include "g72x.h"
static short power2[15] = {1, 2, 4, 8, 0x10, 0x20, 0x40, 0x80,
0x100, 0x200, 0x400, 0x800, 0x1000, 0x2000, 0x4000};
/*
* quan()
*
* quantizes the input val against the table of size short integers.
* It returns i if table[i - 1] ... |
#include <cmath>
#include <limits>
#include "../gtest.h"
#include <arbor/math.hpp>
using namespace arb::math;
TEST(math, pi) {
// check regression against long double literal in implementation
auto pi_ld = pi<long double>;
auto pi_d = pi<double>;
if (std::numeric_limits<long double>::digits>std::nu... |
#include "Arduino.h"
#include "sensors.h"
#include "configs.h"
#include "functions.h"
#include "mqtt_client.h"
#include "Adafruit_MAX31855.h"
#define MAIN_HEATER 1 // GPIO01 -> TX, Main SSR IO pin
#define WATER_COOLER 3 // GPIO03 -> RX, Watter Cooler SSR IO pin
#define AIR_COOLER 16 // GPIO16 -> D0... |
// Bootloader
#include <inttypes.h>
#include <stdio.h>
#include <string.h>
#include <memory.h>
#include <math.h>
#include <ctype.h>
#include "rvcrt0.h"
#include "core.h"
#include "gpu.h"
#include "uart.h"
#include "elf.h"
#include "switches.h"
#include "fat32/ff.h"
const char *FRtoString[]={
"Succeeded\n",
"A har... |
// Copyright (c) 2022 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
//
#include <qt/paperwalletdialog.h>
#include <qt/forms/ui_paperwalletdialog.h>
#include <qt/guiutil.h>
#include <qt/hashcalcdial... |
//
// Author: <NAME> <<EMAIL>>
// Copyright (c) 1994-2018 <NAME>
//
// The MIT License
//
// Permission is hereby granted, free of charge, to any person
// obtaining a copy of this software and associated documentation
// files (the "Software"), to deal in the Software without
// restriction, including without limitati... |
//
// Created by System Administrator on 29/05/2018.
//
#include "heartbeat_t.hpp"
#include <arpa/inet.h>
#include <cmath>
#include <thread>
#include <chrono>
#include <algorithm>
#include <random>
#include <iostream>
#include <ctime>
#include <tins/tins.h>
#include <cperm.h>
#include <sys/socket.h>
#ifdef PF_RING... |
#ifdef CH_LANG_CC
/*
* _______ __
* / ___/ / ___ __ _ / / ___
* / /__/ _ \/ _ \/ V \/ _ \/ _ \
* \___/_//_/\___/_/_/_/_.__/\___/
* Please refer to Copyright.txt, in Chombo's root directory.
*/
#endif
#include <fstream>
#include <iostream>
#include "mappedGridIO.H"
#include "ne... |
////////////////////////////////////////////////////////////////////////////////
//
// Package: Laelaps
//
// Library: liblaelaps
//
// File: laePowertrain.cxx
//
/*! \file
*
* $LastChangedDate: 2016-02-15 15:44:49 -0700 (Mon, 15 Feb 2016) $
* $Rev: 4320 $
*
* \brief Laelaps powertrain class implementatio... |
#include "ESKF.h"
#include "unrolledFPFt.h"
#define SQ(x) (x*x)
#define I_3 (Eigen::Matrix3f::Identity())
#define I_dx (Eigen::Matrix<float, dSTATE_SIZE, dSTATE_SIZE>::Identity())
using namespace Eigen;
using namespace std;
ESKF::ESKF(Eigen::Vector3f a_gravity,
const Eigen::Matrix<float, STATE_SIZE, 1>& init... |
#include <common.h>
#include <game.h>
#include "sfx.h"
extern int globalCoins;
class dStatsMenu_c : public dStageActor_c {
public:
static dActor_c *build();
static dStatsMenu_c *instance;
dStatsMenu_c();
int onCreate();
int onDelete();
int onExecute();
int onDraw();
int beforeExecute() { return tr... |
/*
* Copyright 2020 CyanSemi Semiconductor Co.
*
* 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 applica... |
#include "Game.h"
//DXTK headers
#include "SimpleMath.h"
//system headers
#include <windows.h>
#include <time.h>
//our headers
#include "ObjectList.h"
#include "GameData.h"
#include "drawdata.h"
#include "DrawData2D.h"
#include "Boid.h"
#include "BoidManager.h"
#include <AntTweakBar.h>
using namespace DirectX;
usi... |
#include "stdafx.h"
#include "Item.h"
#include "Tile.h"
#include "ObjMgr.h"
#include "BufferMgr.h"
#include "TextureMgr.h"
#include "TimeMgr.h"
#include "Pipeline.h"
#include "Device.h"
#include "CamMgr.h"
#include "BeatMgr.h"
#include "ObjFactory.h"
#include "Player.h"
#include "Mini_Diamond.h"
#include "Num.h"
CItem... |
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <array>
#include <map>
#include <fstream> // read file streams
#include <sstream> // read string stream from file
#include "Zoom.hpp"
#include "main.hpp"
#include "alphanum.hpp"
using namespace std;
using namespace cv;
namespace fs = std::experimental... |
/* INCLUDES FOR THIS PROJECT */
#include <iostream>
#include <fstream>
#include <sstream>
#include <iomanip>
#include <vector>
#include <cmath>
#include <limits>
#include <string>
#include <cstdlib>
#include <opencv2/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <open... |
#include "hwcpp.hpp"
using target = hwcpp::target<>;
using timing = target::clocking;
using uart = target::uart;
using led = target::led;
using spi = hwcpp::spi_bus_bb_sclk_miso_mosi<
target::d13,
target::d12,
target::d11,
timing
>;
using nrf = hwcpp::nrf24l01_spi_ce_csn<
spi,
target::d9,
... |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation;
*
* This program is distributed in the hope that it will be us... |
/* ---------------------------------------------------------------------------------
Implementation file of TASEDITOR_PROJECT class
Copyright (c) 2011-2013 AnS
(The MIT License)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "S... |
/*
Copyright (c) 2012, <NAME>, UGO VARETTO, SWISS NATIONAL SUPERCOMPUTING CENTRE (CSCS)
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 copyrig... |
/* MD5
converted to C++ class by <NAME> (<EMAIL>)
for bzflag (http://www.bzflag.org)
based on:
md5.h and md5.c
reference implemantion of RFC 1321
Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
rights reserved.
License to copy and use this software is granted provided that it
is identi... |
#include "wx/wxprec.h"
#ifdef __BORLANDC__
#pragma hdrstopcd
#endif
#ifndef WX_PRECOMP
#include "wx/wx.h"
#endif
#include <wx/filefn.h>
#include <wx/filename.h>
#include <wx/log.h>
#include <wx/filedlg.h>
#include <wx/wfstream.h>
#include <wx/stdpaths.h>
#include <wx/utils.h>
#include <wx/txtstrm.h>
#include "appda... |
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in bin... |
/*
IIP Command Handler Member Functions
Copyright (C) 2006-2014 <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, or
(at your option) a... |
/* ----------------------------------------------------------------------
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... |
#include "ModelBRDF.h"
namespace ns_ModelBRDF
{
static const string vs_string_410 =
"#version 410 core \n"
" \n"
"uniform mat4 projectionMatrix; \n"
"uniform mat4 viewMatrix; \n"
"... |
/*
This file is part of MoonRiver Xiangqi Opening Book, distributed under MIT license.
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, includi... |
/*
* Copyright 1993-2010 NVIDIA Corporation. All rights reserved.
*
* Please refer to the NVIDIA end user license agreement (EULA) associated
* with this source code for terms and conditions that govern your use of
* this software. Any use, reproduction, disclosure, or distribution of
* this software and related... |
//===- lib/MC/MCPseudoProbe.cpp - Pseudo probe encoding support ----------===//
//
// 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
//
//===----------------------------... |
//===- LLVMTypeSyntax.cpp - Parsing/printing for MLIR LLVM Dialect types --===//
//
// 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 (c) 2012 The WebRTC project authors. All Rights Reserved.
*
* Use of this source code is governed by a BSD-style license
* that can be found in the LICENSE file in the root of the source
* tree. An additional intellectual property rights grant can be found
* in the file PATENTS. All contribut... |
//
// PlatformSDL.cpp
// General App Chassis
//
// See matched header file for definitive main comment.
//
// The platform may return references to resources, even e.g. pointer to a string.
// In such cases, a reference is assumed to persist (not be weak or scope-dependent)
// and its resource freed intelligently. For... |
//===- AssignNeuronAddress.cpp - assigned neuron address ------------------===//
//
// Copyright 2019 The MLIR 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.... |
/*
* Copyright 2019 NVIDIA Corporation
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in ... |
/*
@file: pure_pursuit_controller_node.cpp
@author: <NAME>
Pure pursuit controller node, subscribes to path planner topic loaded in the parameter server to get waypoints.
*/
#include <ros/ros.h>
#include <bits/stdc++.h>
#include <nav_msgs/Path.h>
#include <geometry_msgs/PoseStamped.h>
#include <tf2_ros/transform_lis... |
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved.
// This source code is licensed under both the GPLv2 (found in the
// COPYING file in the root directory) and Apache 2.0 License
// (found in the LICENSE.Apache file in the root directory).
//
#include <stdio.h>
#include <algorithm>
#include <set>
... |
//===- Tiling.cpp - Implementation of linalg Tiling -----------------------===//
//
// Copyright 2019 The MLIR 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.... |
// Copyright (c) 2009-2010 <NAME>
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "pow.h"
#include "chain.h"
#include "chainparams.h"
#include "primitives/block.h"... |
/*************************************************************************
Crytek Source File.
Copyright (C), <NAME>, 2001-2005.
-------------------------------------------------------------------------
$Id$
$DateTime$
Description: Implements a third person view for vehicles
*******************************************... |
// This provides a telnet interface to the openOcd Debug module
// Adapted from \/ <NAME>`s libtelnet library
// @ https://github.com/seanmiddleditch/libtelnet
// I am dissapointed by the fact that I`m having to use such an infefiicennt approach to transfer data
// apparently i have two restrictions on me being
//... |
// Shasta.
#include "AssembledSegment.hpp"
using namespace shasta;
// Boost libraries.
#include <boost/icl/interval.hpp>
#include <boost/icl/right_open_interval.hpp>
// Standard library.
#include "iterator.hpp"
#include "fstream.hpp"
void AssembledSegment::clear()
{
assemblyGraphEdgeId = AssemblyGraph::invalid... |
/**********************************************************************
*<
FILE: bhkCapsuleObj.cpp
DESCRIPTION: Collision Capsule Object Implementation
CREATED BY: tazpn (Theo)
HISTORY:
V1.0 - Derived from 3ds max prim sphere example
*> Copyright (c) 2006, All Rights Reserved.
**********************************... |
#include "SolarSystem.h"
#include "config.hpp"
#include "external/glad/glad.h"
#include "core/FPSCamera.h"
#include "core/InputHandler.h"
#include "core/Log.h"
#include "core/LogView.h"
#include "core/Misc.h"
#include "core/opengl.hpp"
#include "core/utils.h"
#include "core/various.hpp"
#include "core/Window.h"
#inclu... |
// (C) 2013 Cybozu.
#include "tcp.hpp"
#include "logger.hpp"
#ifdef USE_TCMALLOC
# ifdef TCMALLOC_IN_GOOGLE
# include <google/tcmalloc.h>
# else
# include <gperftools/tcmalloc.h>
# endif
# define MALLOC tc_malloc
# define FREE tc_free
#else
# include <cstdlib>
# define MALLOC std::malloc
# define FREE s... |
// atlas functions
#include <atlas/array.h>
#include <atlas/grid.h>
#include <atlas/mesh.h>
#include <atlas/mesh/actions/BuildEdges.h>
#include <atlas/output/Gmsh.h>
#include <atlas/util/CoordinateEnums.h>
// atlas interface for dawn generated code
#include "interface/atlas_interface.hpp"
// driver includes
#include ... |
/************************************************************
*
* CmdCancel.cpp
*
*/
/************************************************************
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
* OPEN TRANSACTIONS
*
* Financial Cryptography and Digital Cash
* Library, Protocol, A... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <sysexits.h>
#include <sys/stat.h>
#include "class.hpp"
#include "user_define.hpp"
//Read file and input same infomation into array p[1:N] and p[N:2*N] in order to make two body
void readfile(char *filename, Particle *p, long long int N) {
FILE *fp ... |
#include "gradient_sh.hpp"
#include <Eigen/Dense>
#include <cmath>
#include <complex>
#include <fmt/format.h>
#include <fmt/ostream.h>
#include <fstream>
#include <memory>
#include <utility>
using namespace Eigen;
using namespace std::complex_literals;
using std::exp;
using std::pow;
using std::sqrt;
using complex_d... |
/*! \file */
/* ************************************************************************
* Copyright (c) 2020-2021 Advanced Micro Devices, Inc.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the S... |
#include "Canny.h"
using namespace cv;
using namespace std;
const double scale = 128.0; // sum of half Canny filter is 128
static void getCannyKernel(OutputArray _d, double alpha)
{
int r = cvRound(alpha * 3);
int ksize = 2 * r + 1;
_d.create(ksize, 1, CV_16S, -1, true);
Mat k = _d.getMat();
v... |
#include "ActionListener.h"
#include "DummyMessageOutput.h"
#include "EspmGameObject.h"
#include "Exceptions.h"
#include "FindRecipe.h"
#include "MovementValidation.h"
#include "MsgType.h"
#include "PapyrusObjectReference.h"
#include "UserMessageOutput.h"
#include "Utils.h"
MpActor* ActionListener::SendToNeighbours(
... |
/* ----------------------------------------------------------------------
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... |
/*
-------------------------------------------------------------------
EmonESP Serial to Emoncms gateway
-------------------------------------------------------------------
Created for use with the CircuitSetup.us Split Phase Energy Meter by jdeglavina
All adaptation GNU General Public License as below.... |
#include "physics/zm/scream_zm_interface.hpp"
#include "physics/zm/atmosphere_deep_convection.hpp"
#include "ekat/ekat_assert.hpp"
namespace {
// A helper struct and fcn;
struct GridOpts {
GridOpts(const std::string& n, bool out, const ekat::units::Units& u, int idx)
: name(n), isOut(out), unit(u), field_idx(id... |
/*
* Measure performance of SecureTransport handshake
*
* Written by <NAME>.
*/
#include <Security/SecureTransport.h>
#include <clAppUtils/sslAppUtils.h>
#include <clAppUtils/ioSock.h>
#include <security_cdsa_utils/cuFileIo.h>
#include <utilLib/common.h>
#include <CoreServices/../Frameworks/CarbonCore.framework/H... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.