text stringlengths 5.71k 33.7k |
|---|
/*
* PwDatabaseV3.cpp
*
* Copyright (c) 2014-2016 <NAME>.
* Licensed under the MIT license.
*/
#include "PwDatabaseV3.h"
#include <QObject>
#include <QDataStream>
#include "sbreturn.h"
#include "husha2.h"
#include "huaes.h"
#include "db/PwUuid.h"
#include "util/Util.h"
// DB unlock stages progress percentage
// ... |
#include "aes_128_cbc_pcsk.h"
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
using namespace relax;
static const uint8_t sbox[256] = {
//0 1 2 3 4 5 6 7 8 9 A B C D E F
0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, ... |
// Last update: April 5, 2013
// This is main.
// This is MD simulation of an electrolyte confined within planar walls
// Problem : Compute density profiles of ions trapped within planar walls
/* Useful studies :
1. Role of dielectric contrast
2. Role of valency of ions
3. Role of varying salt con... |
/* verify.c - Verify a messages signature
* Copyright (C) 2001, 2002, 2003, 2007,
* 2010 Free Software Foundation, Inc.
*
* This file is part of GnuPG.
*
* GnuPG is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Fre... |
/*
* Copyright (C) [2021] Futurewei Technologies, Inc. All rights reserved.
*
* OpenArkCompiler is licensed under the Mulan Permissive Software License v2.
* You can use this software according to the terms and conditions of the
* MulanPSL - 2.0.
* You may obtain a copy of MulanPSL - 2.0 at:
*
* https://opens... |
// Test routines to make sure a variety of system calls are or are not
// available in capability mode. The goal is not to see if they work, just
// whether or not they return the expected ECAPMODE.
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/mount.h>
#include <sys/mman.h>
#inclu... |
/*
* Copyright (c) 2016 <NAME> University, <NAME> <<EMAIL>>
*
* For License information please see the LICENSE file in the root directory.
*
*/
#include <limits>
#include <math.h>
#include <ros/ros.h>
#include <tf/tf.h>
#include <geom_cast/geom_cast.hpp>
#include "mav_fcs/copter_interface.h"
using namespace mavfcs... |
/* ******************************************************************** */
/* See the file COPYRIGHT for a complete copyright notice, contact */
/* person and disclaimer. */
/* ******************************************************************** */
/*
* copied... |
#include<iostream>
#include<fstream>
#include<stdlib.h>
#include<string>
#include<thread>
#include<unistd.h>
#include<atomic>
#include<vector>
#include<stddef.h>
#include<time.h>
#include<mutex>
#include"mpi.h"
#include<random>
#include<string>
using namespace std;
vector< vector<int> > graph;
/*
In this program, M... |
/**
* @file elastic_gate.cpp
* @brief 2D elastic gate deformation due to dam break force.
* @details This is the one of the basic test cases, also the first case for
* understanding SPH method for fluid-structure-interaction (FSI) similation.
* @author <NAME>, <NAME> and <NAME>
* @version 0.1
*/
/**
* @... |
////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2019 <NAME>
// Copyright (c) 2019 <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)
/////////////////////... |
// Copyright (c) 2012-2017 VideoStitch SAS
// Copyright (c) 2018 stitchEm
#include "ntv2Helper.hpp"
FrameRate aja2vsFrameRate(const NTV2FrameRate frameRate) {
switch (frameRate) {
case NTV2_FRAMERATE_6000:
return FrameRate(60, 1);
case NTV2_FRAMERATE_5994:
return FrameRate(60000, 1001);
case... |
/*
* Copyright (C) 2008 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 PLL_SX.cpp
@author <NAME>
@brief Parameter calculations for CLKGEN PLL
*/
#include "PLL_SX.h"
#include <math.h>
#include <fstream>
#include <string.h>
/** @brief Class constructor.
Initialization of VCO frequencies, Min, Max
PLL frequencies, threshold frequency is done there.
*/
PLL_SX::PLL_SX()
{
... |
/*
Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2020 MariaDB Foundation
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; version 2 of the Li... |
//==============================================================================
/*
Software License Agreement (BSD License)
Copyright (c) 2003-2016, CHAI3D.
(www.chai3d.org)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted pro... |
#include <iostream> // cin, cout
#include <ctime> // clock_t, clock(), CLOCKS_PER_SEC
#include <gmpxx.h> // GMP
#include <list> // list
#include <cstring> // stdcmp()
#include <cassert> // assert()
#include <algorithm>
#include <stdlib.h>
#include <cmath>
/* IMPLEMENTED ALGORITHM */
#include "squf... |
#include <iostream>
#include <map>
#include <sstream>
#include <utility>
#include <vector>
#include "chessboard.hpp"
#include "constants.hpp"
#include "helpers.hpp"
Chessboard::Chessboard(const char *fen) {
// Default arg is starting position:
// rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1
this->fr... |
/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... |
#include "aby3/sh3/Sh3Encryptor.h"
#include "aby3/sh3/Sh3BinaryEvaluator.h"
#include "aby3/Circuit/CircuitLibrary.h"
#include "cryptoTools/Network/IOService.h"
#include "cryptoTools/Common/Log.h"
#include <random>
#include "cryptoTools/Crypto/PRNG.h"
using namespace oc;
using namespace aby3;
//
//void createBinarySha... |
//
// Math.inl
//
// Copyright (c) 2011 <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, modi... |
/* --------------------------------------------------------------------------
*
* File CEnemy.cpp
* Description Game Enemy
* Author <NAME>
*
* --------------------------------------------------------------------------
*
* Copyright (C) 2010-2012 XMSoft. All rig... |
//-------------------------
//Class RangeDopplerFile
//---------------------------
#include <string>
#include <math.h>
#include <map>
#include "Error.h"
#include "Units.h"
#include "Time.h"
#include "Array.h"
#include "Constants.h"
#include "Config.h"
#include "Plot.h"
#include "Utils.h"
#include "RangeDopplerFile.h... |
// Copyright (c) 2012 The WebM 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 contributing projec... |
//
// Copyright <NAME> (<EMAIL>), <NAME> (<EMAIL>) 2014-2018
//
// 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 <td/telegram/Client.h>
#include <td/telegram/Log.h>
#include <td/telegram/td_api.h>
#includ... |
#include "main_windows.h"
#include "setting.h"
#include <QApplication>
#include <QProgressBar>
#include <QIcon>
#include <QPushButton>
#include <QLayout>
#include <QLabel>
#include <QPixmap>
#include <QSize>
#include <QTimer>
#include <QComboBox>
#include <QMenu>
#include <QMessageBox>
#include <QMovie>
#include <QChec... |
/***************************************************************************
# Copyright (c) 2015-21, NVIDIA CORPORATION. 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... |
#include <execinfo.h>
#include "Poco/evnet/evnet_lua.h"
#include "Poco/evnet/EVLHTTPRequestHandler.h"
#include "Poco/evnet/EVUpstreamEventNotification.h"
#include "Poco/evdata/evredis/ev_redis.h"
int socket_live(int fd);
void init_pool_type(const char * db_type, Poco::evnet::evl_pool::queue_holder *qhf);
void * get... |
/***********************************************************************
* Copyright 1998-2020 CERN for the benefit of the EvtGen authors *
* *
* This file is part of EvtGen. *
* ... |
#define EIGEN_DEFAULT_DENSE_INDEX_TYPE int32_t
#include "../repos/stl_reader/stl_reader.h"
#include <array>
#include <deque>
#include <chrono>
#include <random>
#include <fstream>
#include <iostream>
#include <Eigen/Dense>
using Triangle = std::array<Eigen::Vector3f, 3u>;
using CudaTriangle = Eigen::Vector3f*;
using... |
#include <iostream>
#include <iomanip>
#include <memory>
#include <sstream>
#include <algorithm>
#include <vector>
#include <cmath>
#include <chrono>
#include <random>
#if defined(_OPENMP)
#include <omp.h>
#endif
// This might not be defined in cmath
#define M_PI 3.14159265358979323846
/*
* NOTE:
* There are also ... |
#include <cstdlib>
#include <fstream>
#include <sstream>
#include <glog/logging.h>
#include <cv_bridge/cv_bridge.h>
#include <tf2_eigen/tf2_eigen.h>
#include <Eigen/Geometry>
#include "asa_ros/asa_ros_node.h"
namespace asa_ros {
AsaRosNode::AsaRosNode(const ros::NodeHan... |
// Copyright 2017 Google 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 agreed to in... |
#include "light-field-renderer.hpp"
#include <exception>
#include <iostream>
#include <fstream>
#include <nanogui/nanogui.h>
#include <glm/gtx/transform.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <nanogui/opengl.h>
#include "../shaders/light-field-renderer.vert"
#include "../shaders/light-field-renderer... |
#include "gtest/gtest.h"
#include <cagey-math/Vector2.hh>
#include <cagey-math/Vector4.hh>
#include <cagey-math/VectorFunc.hh>
#include <cstdint>
using namespace cagey::math;
TEST(Vector4Test, Vector4SizeTest)
{
ASSERT_EQ(sizeof(Vector4<short>), sizeof(short[4]));
ASSERT_EQ(sizeof(Vector4f), sizeof(float[4]));
... |
#include <vector>
#include <string>
#include <sstream>
#include "armor.h"
#include "disk.h"
#include "magic.h"
#include "error_handling.h"
#include "game.h"
#include "colors.h"
#include "coordinate.h"
#include "io.h"
#include "item.h"
#include "level.h"
#include "misc.h"
#include "monster.h"
#include "options.h"
#incl... |
#include <cfloat>
#include <chrono>
#include <iomanip>
#include <iostream>
#include <limits.h>
#include <math.h>
#include <omp.h>
#include <string>
#include <time.h>
#include "Probabilistic.h"
#include "Sp_sampler.h"
#include "utilities.h"
#define SEED 42
using namespace std;
// The status class contains the data a... |
#include "shared/utils.h"
#include "shared/most_common.h"
#include "shared/lrs_test.h"
#include "non_iid/collision_test.h"
#include "non_iid/lz78y_test.h"
#include "non_iid/multi_mmc_test.h"
#include "non_iid/lag_test.h"
#include "non_iid/multi_mcw_test.h"
#include "non_iid/tuple.h"
#include "non_iid/compression_test.h... |
//========================================================================================
// Copyright (c) 2020. Triad National Security, LLC. All rights reserved.
//
// This program was produced under U.S. Government contract 89233218CNA000001 for Los
// Alamos National Laboratory (LANL), which is operated by Triad N... |
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <vector>
#include <math.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h>
#include "Draw2D.h"
#include "AppSDL2OGL.h"
#include "SDL_utils.h"
#include "GUI.h"
#include "testUtils.h"
//#include "testUtils.h"
#include "CommodityNetwork.h"
using... |
#include "SC_PlugIn.h"
#include "../FrameLib_Exports/FrameLib_Objects.h"
static InterfaceTable *ft;
// Declare struct to hold unit generator state
struct FrameLib_SC_UGen : public Unit
{
typedef void (*FLCalcFunc)(FrameLib_SC_UGen *, int);
FrameLib_Multistream *mObject;
FrameLib_Proxy *mProxy;
FLC... |
/******************************************************************************
** Copyright (C) 2008 by CEA
*******************************************************************************
**
** UNIT
**
** Version: 1.0
**
** Author: <NAME>
**
** Date:
**
** File:
**
***********... |
#include "mazegenerator.h"
int get2DIndex(int x, int y, int width){
return x*width+y;
}
void MazeGenerator::RegisterBlocks(Core::Engine* engine){
Core::TileSystem* tileSystem = GetTileSystem();
//shadow tile selector
auto shadowSelector = [](Core::TileSystem* tileSystem, Maths::Vector2<int> loc) ->... |
#pragma once
#include <filesystem>
class c_config final {
public:
void run(const char*) noexcept;
void load(size_t) noexcept;
void save(size_t) const noexcept;
void add(const char*) noexcept;
void remove(size_t) noexcept;
void rename(size_t, const char*) noexcept;
void reset() noexcept;
constexpr auto& get_c... |
// *=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*
// ** Copyright UCAR, CSU (c) 1990 - 2018
// ** University Corporation for Atmospheric Research (UCAR)
// ** National Center for Atmospheric Research (NCAR)
// ** Colorado State University
// ** BSD licence applies
// ** DISCLAIMER: THIS SOFT... |
// -*- C++ -*-
//
// Package: HiGenAnalyzer
// Class: HiGenAnalyzer
//
/**\class HiGenAnalyzer HiGenAnalyzer.cc
Description: Analyzer that studies (HI) gen event info
Implementation:
<Notes on implementation>
*/
//
// Original Author: <NAME>, <NAME>
// Created: Tue Dec 18 09:44:41 EST 2007
... |
#include <cassert>
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <map>
#include <set>
#include <stdexcept>
#include <sstream>
#include <string>
#include <thread>
#include <vector>
#include <sys/poll.h>
#include <sys/stat.h>
#include <unistd.h>
#include <cxxopts.hpp>
#include <bzip2.hpp>
#include... |
/**
* File: boggle.cpp
* ----------------
* Implements the game of Boggle.
*/
#include <cctype>
#include <iostream>
using namespace std;
#include "simpio.h"
#include "gwindow.h"
#include "gboggle.h"
#include "random.h"
#include "set.h"
#include "lexicon.h"
const int kBoggleWindowWidth = 650;
const int kBoggleWi... |
/*
## Copyright (C) <2017> <bioMerieux, Universite <NAME> 1,
## Centre National de la Recherche Scientifique>
## 1. This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU Affero General Public License as published
## by the Free Software Foundation version 3 of the Lice... |
/*
* commons.cpp
*
* Created on: Dec 20, 2017
* Author: hazem
*/
#include "commons.h"
std::string getURL(){
std::string url = UDP_PROTOC;
url.append("://");
url.append(DEFAULT_SERVER_ADDRESS);
url.append(":");
url.append(DEFAULT_DATA_PORT);
// std::cout << "[Server] Binding URL: " << url << std::en... |
/*Snem 0.1 by <NAME>
I/O, or $42xx*/
#include "snes.h"
extern int intthisline;
int dmaops=0;
extern int framenum;
extern int oldnmi;
int padpos,padstat;
unsigned short pad[4];
void readjoy()
{
pad[0]=0;
if (SnesJoy1[6])
pad[0]|=0x8000;
if (SnesJoy1[4])
pad[0]|=0x4000;
if (SnesJoy1[... |
#include "import.h"
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include <ctype.h>
#include <stdarg.h>
#include <regex>
#include <vector>
#include <sstream>
#include <string>
enum ColType { CT_NONE, CT_INT, CT_REAL, CT_TEXT };
// Number of rows to examine when determining column ty... |
//-----------------------------------------------------------------------------
// Torque Game Engine
// Copyright (C) <EMAIL>, Inc.
//-----------------------------------------------------------------------------
#include "game/net/TCPQuery.h"
#include "game/net/tcpObject.h"
#include "platform/platform.h"
#include "p... |
#include <RStdata.H>
Real RStdata::Pa_per_ATM = 101325;
static bool saturated = false;
RStdata::RStdata(int slev, int nlevs, Layout& layout, NLScontrol& nlsc, RStstruct& _inputs, const RockManager* rm)
: RSdata(slev,nlevs,layout,nlsc,rm), inputs(_inputs)
{
Porosity = 0;
KappaCCavg = 0;
Lambda = 0;
PCapParam... |
/* -*- coding: utf-8-unix -*-
*
* File: src/glyphmanager.cpp
*
* Copyright (C) 2021 <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 yo... |
#include <ctime>
#include <cmath>
#include <algorithm>
#include <iostream>
#include <fstream>
#include <sstream>
#include <memory>
#include <numeric>
#include <iomanip>
#include "tatum/util/tatum_assert.hpp"
#include "tatum/timing_analyzers.hpp"
#include "tatum/graph_walkers.hpp"
#include "tatum/analyzer_factory.hpp"... |
#include <CL/sycl.hpp>
#include <dpct/dpct.hpp>
#include "tuningParameters.h"
#include "qtclib.h"
#include "OptionParser.h"
#include "libdata.h"
#include "cudacommon.h"
#define _USE_MATH_DEFINES
#include <float.h>
#include "comm.h"
using namespace std;
#include "kernels_common.h"
#include "kernels_compact_storage.h... |
#include <stdio.h>
#include <string>
#include <sstream>
#include <strstream>
#include "llvm/ADT/Statistic.h"
#include "llvm/IR/Function.h"
#include "llvm/IR/Constants.h"
#include "llvm/IR/Module.h"
#include "llvm/IR/Value.h"
#include "llvm/Pass.h"
#include "llvm/Support/Debug.h"
#include "llvm/Support/Alignment.h"
#i... |
#include "global.h"
#include "tick.h"
#include "volumeinformation.h"
#include "matrix.h"
#include "enums.h"
#include "staticfunctions.h"
QColor Tick::m_textColor = Qt::white;
QString Tick::m_labelX = "Height";
void Tick::setLabelX(QString lbl) { m_labelX = lbl; }
QString Tick::labelX() { return m_labelX; }
QString T... |
#include "octree.h"
#include "nvToolsExt.h"
//External imports in order to call thrust or cub functions which have been compiled by nvcc
extern "C" void thrustDataReorderU4 (const int N, my_dev::dev_mem<uint> &permutation, my_dev::dev_mem<uint4> &dIn, my_dev::dev_mem<uint4> &dOut);
extern "C" void thrustDataReorderF... |
// ####################################
// Multithreaded raytracing algorithm
// ####################################
#pragma omp parallel for
for ( int j = 0; j < height; ++j )
{
// Each thread must have its own random generator
Random rnd;
for ( int i = 0; i < width; ++i )
{
// generate ra... |
/*
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 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be usefu... |
#include "Globals.h"
#include "Application.h"
#include "ModuleRender.h"
#include "ModuleSceneIntro.h"
#include "ModuleInput.h"
#include "ModuleTextures.h"
#include "ModuleAudio.h"
#include "ModulePhysics.h"
#include "ModuleFonts.h"
#include "ModulePlayer.h"
#include "Animation.h"
ModuleSceneIntro::ModuleSceneIntro(A... |
//
// Created by <NAME> on 03/12/2021.
//
#include <iostream>
#include <cstdio>
#include <vector>
#include <chrono>
#include <clocale>
#include <omp.h>
#include <unordered_map>
#include "../include/efanna2e/index_nsg.202103121531.neighbor_distance_step.h"
using idi = unsigned;
void load_true_NN(
const char *... |
//******************************************************************
//
// Copyright 2015 Intel Mobile Communications GmbH All Rights Reserved.
//
//-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except ... |
#include "multivectorunit.h"
#include <bitstring.h>
#include <multivector.h>
void multivector_unit::empty_multivectors() {
// default constructor
ict::multivector<int> a;
IT_ASSERT(a.empty());
IT_ASSERT(a.size() == 0);
IT_ASSERT(a.root().empty());
// copy constructable
ict::multivector<in... |
/******************************Module*Header*******************************\
* Module Name: test.c
*
* Created: 09-Dec-1992 10:51:46
* Author: <NAME> [kirko]
*
* Copyright (c) 1991 Microsoft Corporation
*
* Contains the test
*
\**************************************************************************/
#in... |
// -*- mode: C++; c-file-style: "cc-mode" -*-
//*************************************************************************
// DESCRIPTION: Verilator: Add temporaries, such as for premit nodes
//
// Code available from: http://www.veripool.org/verilator
//
//***************************************************************... |
#include <string>
#include <unordered_set>
#include <vector>
#include <memory>
#include "third-party/fmt/format.h"
#include "common/log/log.h"
#include "common/common_types.h"
#include "common/util/FileUtil.h"
#include "common/util/json_util.h"
#include "decompiler/ObjectFile/ObjectFileDB.h"
#include "common/util/diff... |
/******************************************************************************
* ____ _ _____ *
* / ___| / \ | ___| C++ *
* | | / _ \ | |_ Actor *
... |
//===- llvm/lib/Target/X86/X86CallLowering.cpp - Call lowering ------------===//
//
// 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
//
//===---------------------------... |
/*
This file is part of solidity.
solidity 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.
solidity is distributed in the hope that i... |
//===- UnwindInfoSection.cpp ----------------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
#include "../MainInclude.hpp"
#include "visuals.hpp"
#include "../options.hpp"
#include "../valve_sdk/csgostructs.hpp"
#include "../helpers/math.hpp"
#include "../helpers/utils.hpp"
#include "../valve_sdk/sdk.hpp"
#include <iostream>
#include <iomanip>
#include <cmath>
#include <limits>
#include "GrenadeTra.hpp"
#ifnde... |
//#define VNET_DEBUG
//#define VNET_DEBUG_RX
//#define VNET_DEBUG_TX
#ifdef VNET_DEBUG
#define VDBG(fmt, ...) printf(fmt, ##__VA_ARGS__)
#else
#define VDBG(fmt, ...) /* fmt */
#endif
#ifdef VNET_DEBUG_RX
#define VDBG_RX(fmt, ...) printf(fmt, ##__VA_ARGS__)
#else
#define VDBG_RX(fmt, ...) /* fmt */
#endif
#ifdef VNE... |
#include <iostream>
#include "stream.h"
#ifndef YAML_PREFETCH_SIZE
#define YAML_PREFETCH_SIZE 2048
#endif
#define S_ARRAY_SIZE(A) (sizeof(A) / sizeof(*(A)))
#define S_ARRAY_END(A) ((A)+S_ARRAY_SIZE(A))
#define CP_REPLACEMENT_CHARACTER (0xFFFD)
namespace YAML {
enum UtfIntroState {
uis_start,
uis_utfbe_b1,
ui... |
// Tester.cpp: implementation of the CTester class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "malloc.h"
#include "Tester.h"
#include "fbasicvisual.h"
#include "fhierrarhyvisual.h"
#include "ftimer.h"
#include "ffileops.h"
#include "visibilitytest... |
#include <gtest/gtest.h>
#include <gmock/gmock.h>
#include <stdint.h>
#include <sys/stat.h>
#include <string>
#include <stout/gtest.hpp>
#include <stout/json.hpp>
#include <stout/stringify.hpp>
#include <stout/strings.hpp>
using std::string;
using boost::get;
TEST(JsonTest, DefaultValueIsNull)
{
JSON::Value ... |
#include <iostream>
#include <fstream>
#include <stdio.h>
#include <string>
#include "getPath.h"
using namespace std;
//#define DATA_RATE 6
#define FIX_RATE 1
void nodeLink::assign(int id1, int id2, float _cost){
ends[0] = id1;
ends[1] = id2;
cost = _cost;
}
getPath::getPath(char* fileName)... |
//
// Implementation file for implementation of data analysis aft 900 GeV
//
// Author: <NAME>
//
#include "Riostream.h"
#include "TH1.h"
#include "TTree.h"
#include "TParticle.h"
#include "TRandom.h"
#include "TLorentzVector.h"
#include "AliLog.h"
#include "AliESDEvent.h"
#include "AliESDVertex.h"
#include "AliESDt... |
/*
* Player - One Hell of a Robot Server
* Copyright (C) 2002
* <NAME>, <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 2 of the License, or
* (at yo... |
/*************************************************************************/
/* optimize.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
// includes, system
#include <CL/sycl.hpp>
#include <dpct/dpct.hpp>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "srad.h"
#include "../../common.hpp"
#ifdef TIME_IT
#include <sys/time.h>
#endif
// includes, project
// includes, kernels
#include "srad_kernel.dp.cp... |
// Copyright (c) 2015-2018 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... |
#include "ros/ros.h"
#include "ros/console.h"
#include "nav_msgs/Odometry.h"
#include "quadrotor_msgs/PolynomialTrajectory.h"
#include "quadrotor_msgs/PositionCommand.h"
#include "geometry_msgs/PoseStamped.h"
#include "tf/tf.h"
#include "tf/transform_datatypes.h"
#include "bezier_base.h"
#include <eigen3/Eigen/Dense>
#... |
// -*- C++ -*-
//
// Package: Core
// Class : FWTableViewManager
//
// Implementation:
// <Notes on implementation>
//
// Original Author:
// Created: <NAME> 6 22:01:27 EST 2008
//
// system include files
#include <iostream>
#include <functional>
#include <algorithm>
#include "TEveManager.h"
#i... |
#include <vector>
#include <map>
#include <thread>
#include <ros/ros.h>
#include <std_msgs/String.h>
#include <geometry_msgs/PoseStamped.h>
#include <visualization_msgs/MarkerArray.h>
#include <autoware_msgs/LaneArray.h>
#include <sound_play/sound_play.h>
geometry_msgs::Point makePoint(const double x, const double y... |
/*
* 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 ... |
#include "Main.h"
// OpenGL Stuff
void controlCB(int control)
{
if ( control == RAYCAST )
{
if(raycast == false)
raycast = true;
else
raycast = false;
}
if ( control == GRADIENT )
{
if(gradient == false)
{
gradient = true;
GUIXToonRoll->disable();
jittering->disable();
... |
/* Copyright (c) <2009> <<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 commercia... |
/****************************************************************************
* Copyright (c) 2015 - 2016, CEA
* 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 mus... |
#include "ttest.h"
#include "tsystem.h"
#include "tfilepath_io.h"
#include "tlevel_io.h"
#include "tfx.h"
#include "tparam.h"
#include "tpalette.h"
#include "ttoonzimage.h"
#include "trasterimage.h"
#include "tstroke.h"
#include "tcolorstyles.h"
#include <set>
#include <sstream>
#if defined(LINUX) || defined(FREEB... |
//=================================================================================================
//
// Baking Lab
// by MJP and <NAME>
// http://mynameismjp.wordpress.com/
//
// All code licensed under the MIT license
//
//==========================================================================================... |
#include "Core/util.h"
#include "KOMO/komo.h"
#include "Kin/F_qFeatures.h"
#include <Kin/kin.h>
#include <cassert>
#include <cmath>
#include <iostream>
//#include <iomanip>
#include <yaml-cpp/yaml.h>
#include "car_utils.h"
static double velocity(const arrA& results, int t, double dt) {
const double tol = 0.1; //... |
#include "CParticleEmitter.h"
#include "core/time/time.h"
#include "core/system/io/CSegmentedFile.h"
#include "core-ext/system/io/Resources.h"
#include "core/math/random/Random.h"
#include <sstream>
using namespace std;
// Constructor
CParticleEmitter::CParticleEmitter ( void )
: CLogicObject()
{
// Set initial st... |
#include "include/ConsoleEngine.h"
std::atomic<bool> Console::atomActive(false);
std::condition_variable Console::gameFinished;
std::mutex Console::mux;
void Console::CreateConsole(int width, int height, int fontWidth, int fontHeight, wchar_t title[]) {
scrWidth = width;
scrHeight = height;
this->fontWid... |
#pragma once
/*
Sparse factorizations of ColumnMatrix
LEUP, PUEL, UELP, PLEU
as well as shape commutation relations
*/
#include "col_matrix.hpp"
#include <vector>
#include <map>
// factorization struct
template <class TC>
struct SparseFact {
// struct to hold factorization LEUP, PUEL, etc.
ColumnMatrix<TC>... |
#include "PrecompilationDefine.h"
#include <math.h>
#include "Hud.h"
#include "Tools.h"
#include "Vision.h"
void Vision::renderVisionContours(cv::InputOutputArray image) {
cv::drawContours(image, m_contours, -1, cv::Scalar(0, 0, 255), 2);
}
void Vision::renderVisionTargetCandidates(cv::InputOutputArray image) {... |
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
typedef uint32_t in_addr_t;
typedef uint8_t macaddr_t[6];
const in_addr_t multicasting_ip = 0x090000e0;
macaddr_t multicasting_mac;
uint8_t flag[8192];
#define RIP_MAX_ENTRY 25
#define TABLE_MAX_ITEM 1000
#define PACKET_MAX_LENGTH 2048
... |
/*
<NAME>
Cisco Systems, Inc.
*/
/*
Copyright (c) 2015-2017 Cisco Systems, 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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.