text stringlengths 5.71k 33.7k |
|---|
// Copyright 2012 the V8 project authors. 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 ... |
/**
* DNS spoofing example application
* ================================
* This application does simple DNS spoofing. It's provided with interface name or IP and starts capturing DNS requests on that
* interface. Each DNS request that matches is edited and turned into a DNS response with a user-provided IP add... |
/*
Copyright 2007-2008 Adobe Systems Incorporated
Copyright 2018 <NAME>
Distributed under the MIT License (see accompanying file LICENSE_1_0_0.txt
or a copy at http://stlab.adobe.com/licenses.html )
Goal: Test compiler optimizations related to idioms for bit rotation
Assumptions:
1) The compile... |
// -*- C++ -*-
//
// Package: SiPixelCondObjForHLTReader
// Class: SiPixelCondObjForHLTReader
//
/**\class SiPixelCondObjForHLTReader SiPixelCondObjForHLTReader.h SiPixel/plugins/SiPixelCondObjForHLTReader.cc
Description: Test analyzer for reading pixel calibration from the DB
Implementation:
<Notes on... |
#include "graph.hpp"
Graph::Graph( ) { }
Graph::~Graph( ) { }
void Graph::generate_grid(const string &datapath, const string &gridpath, const Habitat &habitat,
const int nDemeDensity, const int nIndiv)
{
cerr << "[Graph::initialize]" << endl;
// These two functions can be rewritten t... |
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
#include "mock_server.h"
#include "config.h"
#include <stdlib.h>
#include <string.h>
#include <atomic>
#include <time.h>
#include <memcached/allocator_hooks.h>
#include <memcached/engine.h>
#include <memcached/engine_testapp.h>
#include <... |
#pragma once
#include "Femto"
#include "types.hpp"
#include <algorithm>
#include <type_traits>
template<u32 _bpp, bool _rle = false>
class BitmapFrame {
public:
static constexpr u32 bitsPerPixel = _bpp;
static constexpr bool rle = _rle;
const u8 * const data = nullptr;
const u32 w = 0;
const u32 h... |
/* -------------------------------------------------------------------------- *
* OpenSim Moco: sandboxMarkerTrackingContactWholeBody.cpp *
* -------------------------------------------------------------------------- *
* Copyright (c) 2017 Stanford University and the Authors *
... |
// Copyright (c) 2019 The ION Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "tokens/tokengroupmanager.h"
#include "tokens/tokengroupwallet.h"
#include "dstencode.h"
#include "ionaddrenc.h"
#include "r... |
/*
* Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights t... |
#include "App.h"
#include "Input.h"
#include "Textures.h"
#include "Audio.h"
#include "Render.h"
#include "Window.h"
#include "Scene.h"
//#include "Physics.h"
#include "Defs.h"
#include "Log.h"
Scene::Scene() : Module()
{
name.Create("scene");
}
// Destructor
Scene::~Scene()
{}
// Called before render is available... |
/* RFMIX v2.XX - Local Ancestry and Admixture Analysis
Bustamante Lab - Stanford School of Medicine
(c) 2016 <NAME>
This program is licensed for academic research use only
unless otherwise stated. Contact <EMAIL> for
commercial licensing options.
Academic and research users should cite <NAME>'
pa... |
/** Similarity Search
“© Copyright 2017 Hewlett Packard Enterprise Development LP
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 conditi... |
// 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... |
/*
* Copyright (C) 2010 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... |
// Copyright (c) 2015, helo2804. 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 conditions a... |
#include "verilated.h" // Defines common routines
#include <iostream> // Need std::cout
#include "VTLSimpleL2Cache.h" // From Verilating "top.v"
#define TOP VTLSimpleL2Cache
#define RESET_TIME 10000
#define TEST_END 100000
#define TLMESSAGE_GET 0x4
#define TLMESSAGE_PUTFULLDATA 0x0
#d... |
/*******************************************************************************
* Copyright 2019 Intel 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.o... |
#include "solving.hh"
#include "parsing.hh"
#include <unordered_set>
bool Solver::Variable::update_bound(Solver &s, Clingo::Assignment ass, Bound const &bound) {
if (!has_bound()) {
s.bound_trail_.emplace_back(bound.variable);
this->bound = &bound;
}
return this->bound->value == bound.valu... |
#include "CustomFeatures.h"
#include "utils/FileSystemUtil.h"
#include "utils/StringUtil.h"
#include "Log.h"
#include "Paths.h"
bool CustomFeatures::FeaturesLoaded = false;
CustomFeatures CustomFeatures::GlobalFeatures;
CustomFeatures CustomFeatures::SharedFeatures;
std::map<std::string, EmulatorData> CustomFeatures:... |
#include "eval.h"
using namespace chai;
// include extern vars
const int* maps[7];
bitboard_t pawnIsolatedMask[64];
bitboard_t pawnPassedMask[2][64];
bitboard_t upperMask[64];
bitboard_t lowerMask[64];
bitboard_t pawnShield[2][64];
bitboard_t xMask[64];
int manhattenDistance[64][64];
// 0 == a / 1 == b
float interpo... |
/*BEGIN_LEGAL
Intel Open Source License
Copyright (c) 2002-2017 Intel 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 of source code must retain the above copyright noti... |
/*
The MIT License
Copyright (c) 2019 Lehrstuhl Informatik 11 - RWTH Aachen University
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
t... |
// Avisynth v2.5. Copyright 2002 <NAME>-Gould et al.
// http://www.avisynth.org
// 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)... |
//
// Copyright (c) 2014-19, Lawrence Livermore National Security, LLC
// and Kripke project contributors. See the COPYRIGHT file for details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
//
#include <Kripke/Generate.h>
#include <Kripke/Core/Comm.h>
#include <Kripke/Core/Field.h>
#include <Kripke/Kernel.h>
#include ... |
///////////////////////////////////////////////////////////////////////////
//
// Copyright (c) DreamWorks Animation LLC
//
// All rights reserved. This software is distributed under the
// Mozilla Public License 2.0 ( http://www.mozilla.org/MPL/2.0/ )
//
// Redistributions of source code must retain the above copyrigh... |
#include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h>
#include "SDL_utils.h"
#include "Draw.h"
#include "Draw2D.h"
#include "Draw3D.h"
//#include "drawDrawUtils.h"
#include "AeroCraftGUI.h" // THE HEADER
void render( const AeroCraft& craft){
glPushMatrix();
Mat3d camMat;
camMat.setT(craft.rotMat);
... |
/**************************************************************
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to y... |
#include "burnint.h"
#include "bitswap.h"
static INT32 decrypt_type0(INT32 val,INT32 param,INT32 swap)
{
if (swap == 0) val = BITSWAP08(val,7,5,3,1,2,0,6,4);
if (swap == 1) val = BITSWAP08(val,5,3,7,2,1,0,4,6);
if (swap == 2) val = BITSWAP08(val,0,3,4,6,7,1,5,2);
if (swap == 3) val = BITSWAP08(val,0,7,3,2,6,4,1,5)... |
#include "capture/ac_analyzer.h"
#include <algorithm>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <gflags/gflags.h>
#include "capture/color.h"
#include "gui/pixel_color.h"
#include "gui/util.h"
using namespace std;
DEFINE_bool(strict_ojama_recognition, true, "use strict ojama recognition.");... |
//
// Created by ayotundedemuren on 10/28/19.
//
#include "magnetic_field.h"
#include <math.h>
#include <iostream>
#include "../../eigen-git-mirror/Eigen/Dense"
#include <../../pybind11/include/pybind11/pybind11.h>
#include <../../pybind11/include/pybind11/eigen.h>
using namespace std;
using namespace Eigen;
namespac... |
#include "smas_shrink_bisimulation.h"
#include "sym_smas.h"
#include "../option_parser.h"
#include "../plugin.h"
#include <cassert>
#include <iostream>
#include <limits>
#include <ext/hash_map>
using namespace std;
using namespace __gnu_cxx;
static const int infinity = numeric_limits<int>::max();
/* A successor... |
#include "stdafx.h"
#include "powerup.h"
#include <cmath>
#include <iostream>
#include <string>
#include "ace/Default_Constants.h"
#include "ace/OS_Memory.h"
#include "ace/OS.h"
#include "ace/Log_Msg.h"
#include "common.h"
#include "state.h"
#include "configuration.h"
#include "player_aircraft.h"
#include "screen.... |
#include "network_classes.hpp"
//////////////////////////////////////////////////////////
/////////////////// CLASS CLASSDATA //////////////////////
//////////////////////////////////////////////////////////
////////////////////////////////////////
// Function ClassData //
// Load network, mean file... |
/* This file is part of Into.
* Copyright (C) Intopii 2013.
* All rights reserved.
*
* Licensees holding a commercial Into license may use this file in
* accordance with the commercial license agreement. Please see
* LICENSE.commercial for commercial licensing terms.
*
* Alternatively, this file may be used und... |
//===-- Solver.cpp --------------------------------------------------------===//
//
// The KLEE Symbolic Virtual Machine
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===------------------------------------------------------... |
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... |
/*
* file: Gps.h
* created: 20161009
* author(s): mr-augustine
*/
#include <string.h>
#include <stdlib.h>
#include "Gps.h"
static int8_t buffer_index;
static uint8_t sentence_index;
static gps_buffer_t gps_buffers[NUM_GPS_SENTENCE_BUFFS];
static volatile uint8_t gps_no_buff_avail = 0;
static volatile uint8_t gps... |
/* USER CODE BEGIN Header */
/**
******************************************************************************
* @file : main.c
* @brief : Main program body
******************************************************************************
* @attention
*
* <h2><center>© Copyright (c) 2019 ST... |
/*
jklFile.cc
Description :
This file implements the JKLFile class to real .jkl files, as well as a derivation of the Tokenizer class.
Author :
<NAME> (<EMAIL> at <EMAIL>)
*/
#include "platform/platform.h"
#include "console/console.h"
#include "console/simBase.h"
#include "core/color.h"
#inc... |
//----------------------------------------------------------------------------------------------------------------------
// The MIT License (MIT)
//
// 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... |
// btlmt_asyncchannel.t.cpp -*-C++-*-
// ----------------------------------------------------------------------------
// NOTICE
//
// This component is not up to date with current BDE coding standards, and
// should not be used as an example f... |
//
// main.cpp
// OpenGL_3D_1
//
// Created by <NAME> on 11.12.2020.
// Copyright © 2020 <NAME>. All rights reserved.
//
#include <iostream>
#include <vector>
#define GLM_FORCE_LEFT_HANDED
#include "glm/glm.hpp"
#include "glm/common.hpp"
#include "glm/gtc/type_ptr.hpp"
#include "glm/gtc/constants.hpp"
#include "... |
/*
* This file is part of acados.
*
* acados is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 3 of the License, or (at your option) any later version.
*
* acado... |
#include <ros/ros.h>
#include <vector>
#include <Eigen/Geometry>
#include <exception>
#include <moveit_visual_tools/moveit_visual_tools.h>
#include <trajectory_msgs/JointTrajectory.h>
#include <trajectory_msgs/JointTrajectoryPoint.h>
#include <geometry_msgs/Pose.h>
#include <moveit/move_group_interface/move_group_inte... |
//
// ofxLaserDacEtherdream.cpp
// ofxLaserRewrite
//
// Created by <NAME> on 07/11/2017.
//
//
#include "ofxLaserDacEtherdream.h"
using namespace ofxLaser;
#ifdef _MSC_VER
#include <Windows.h>
#endif
void DacEtherdream :: setup(string ip) {
// Etherdreams always talk on port 7765
Poco::Net::SocketAddress sa... |
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "LegacyInliner.h"
#include "DexPosition.h"
#include "DexUtil.h"
#include "IRInstruction.h"
#include "Show.h"
#include "... |
#include "core/settings.hpp"
#include "game/game_core.hpp"
#include "game/level_gen.hpp"
#include "render/ren_aal.hpp"
#include "render/ren_imm.hpp"
#include "render/ren_light.hpp"
#include "vaslib/vas_containers.hpp"
#include "vaslib/vas_log.hpp"
#include "ec_render.hpp"
#include "presenter.hpp"
// for screenshot & d... |
// 推送识别关节点后的摄像头数据到RTMP直播流
#include <stdio.h>
#include <cstdlib>
extern "C"
{
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include <libswscale/swscale.h>
#include <libavutil/imgutils.h>
#include <libavutil/mathematics.h>
#include <libavutil/time.h>
// #include <libavdevice/avdevice.h>
};
#includ... |
/*+**************************************************************************/
/*** ***/
/*** This file is distributed under a BSD license. ***/
/*** See LICENSE.txt for details. ***/
/***... |
/**
* \file
* \brief Main file for printstrings tool
* \date 8-8-2012
* \author <NAME>
*/
#include <main.custom_assert.hpp>
#include <main.logger.hpp>
#include <main.printstrings.hpp>
typedef std::unordered_map<std::size_t, std::string> labelmap_t;
typedef labelmap_t::iterator labelmap_iterator_t;
labelmap_t vma... |
#include <gflags/gflags.h>
#include <glog/logging.h>
#include <cstring>
#include <map>
#include <string>
#include <vector>
#include "caffe/caffe.hpp"
#include "boost/algorithm/string.hpp"
#include <iostream>
#include <fstream>
#include <map>
#include <utility>
#include <algorithm>
using caffe::Blob;
using caffe::Caf... |
/*********
CTIS164 - Template Source Program
----------
STUDENT : <NAME>
SECTION : 164-2
HOMEWORK: FIRSTT HOMEWORK
----------
PROBLEMS:
----------
ADDITIONAL FEATURES:
When space is clicked rockets get faster and slower.
All rockets are connected to one point.
*********/
/*#ifdef __APPLE__
#include <GL... |
// spine sample code
// document http://ja.esotericsoftware.com/spine-c#SpineC-Runtime-Documentation
#include "stdafx.h"
#include <stdio.h>
#include <string>
#include <iostream>
#include <vector>
#include <fstream>
#include <sstream>
#include "spine\extension.h"
#include "spine\spine.h"
//#include <crtdbg.h>
//co... |
/*
pbrt source code Copyright(c) 1998-2010 <NAME> and <NAME>.
This file is part of pbrt.
pbrt 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... |
#include "feature_estimator.h"
#include <Eigen/Dense>
namespace {
int calculate_medoid_index(std::vector<Eigen::Vector3d> &points) {
std::vector<double> distances(points.size(), 0);
for (auto i = 0u; i < points.size(); ++i) {
for (auto j = 0u; j < points.size(); ++j) {
const double distance = (points[i... |
//
// initial setup : <NAME> & <NAME>
// Translated from Fortran code.
//
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "SimGeneral/GFlash/interface/Gflash3Vector.h"
#include "SimGeneral/GFlash/interface/GflashEMShowerProfile.h"
#include "SimGeneral/GFlash/interface/GflashHistogram.h"
#include "Si... |
#include <Arduino.h>
#include <ESP_EEPROM.h>
uint32_t resetRegister, bloccoMotoreRegister, eventRegister, overflowImpulsiRegister;
#define resetRegisterAddress 0
#define eventRegisterAddress 8
#define bloccoMotoreRegisterAddress 16
#define overflowImpulsiAddress 24
//Valori di inizializzazione dopo aggiornamen... |
/*
* Localizer.cpp
*
* Created on: Jul 23, 2018
* Author: sujiwo
*/
#include <Eigen/Eigen>
#include <opencv2/calib3d.hpp>
#include <opencv2/core/eigen.hpp>
#include "KeyFrame.h"
#include "Localizer.h"
#include "MapPoint.h"
#include "Optimizer.h"
#include "utilities.h"
#include <omp.h>
const int OrbDescri... |
/*
* lms-agent.cc
* Copyright (C) 2001 by the University of Southern California
* $Id: lms-agent.cc,v 1.3 2005/08/25 18:58:07 johnh Exp $
*
* 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 Softwar... |
/*
Copyright (c) 2009-2013, Intel 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 of source code must retain the above copyright notice, this list of conditions a... |
/*
This program will add histograms (see note) and Trees from a list of root files and write them
to a target root file. The target file is newly created and must not be
identical to one of the source files.
Syntax:
hadd targetfile source1 source2 ...
or
hadd -f targetfile source1 source2 .... |
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/*
* Copyright (c) 2009 CTTC
*
* 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 ... |
// -*- compile-command: "g++ -std=c++11 -Wno-pmf-conversions -Wall -Werror -Weffc++ -pedantic -DINCLUDE_MAIN `mysql_config --cflags` -U NDEBUG -o fods fods.cpp `mysql_config --libs`" -*-
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <fcntl.h>
#include <time.h> // provide date/time funct... |
#include <iostream>
#include <sstream>
#include <nuschl/exceptions.hpp>
#include <nuschl/interpreter3.hpp>
#include <nuschl/s_exp.hpp>
#include <nuschl/util/s_exp_helpers.hpp>
#include <algorithm>
using namespace std::literals::string_literals;
namespace {
//! Empty stack by swap idiom
template <typename T> void cl... |
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
/* */
/* This file is part of the library KASKADE 7 */
/* see http://www.zib.de/projects/kaskade7-finite-element-toolbox */
... |
/*===========================================================================*\
* *
* ACG Localizer *
* Copyright (C) 2011-2012 by Computer Graphics Group, RWTH Aachen *
* ... |
//
// Copyright 2020 <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 agr... |
#include <bits/stdc++.h>
using namespace std;
const int MOD = 998244353; // 998244853;
template <typename T>
struct modular {
constexpr modular() : val(0){}
constexpr modular(const modular<T>& _m) : val(_m.val) {}
template <typename U> constexpr modular(const U& _r = U()) {
val = -MOD <= _r && _... |
/*
* Copyright (c) 2016 ARM Limited. All rights reserved.
* SPDX-License-Identifier: Apache-2.0
* 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... |
/* inclusions *****************************************************************/
#include "../interface/join.hpp"
/* constants ******************************************************************/
const string &JOIN_TREE_END_WORD = "=";
const string &JT_WORD = "jt";
const string &VAR_ELIM_WORD = "e";
/* classes *****... |
// Copyright 2018, 2019 <NAME>
/// @file
/// @brief Support for Electra A/C protocols.
/// @see https://github.com/ToniA/arduino-heatpumpir/blob/master/AUXHeatpumpIR.cpp
/// @see https://github.com/crankyoldgit/IRremoteESP8266/issues/527
/// @see https://github.com/crankyoldgit/IRremoteESP8266/issues/642
/// @see https... |
//LZRW1.cpp: compressor by <NAME>. A very fast LZ compressor.
// addapted to MFVC++ by <NAME>
#include "stdafx.h"
//#include "Wally.h"
#define FLAG_BYTES 4 /* Number of bytes used by copy flag. */
#define FLAG_COMPRESS 0 /* Signals that compression occurred. */
#define FLAG_COPY 1 /* Signals that a... |
/*
* Matrix4.cpp
*
* Created on: Oct 29, 2010
* Author: ziba
*/
#include "Matrix4.h"
#include <math.h>
#include <stdio.h>
Matrix4::Matrix4() {
for(int i = 0; i < 16; i++){
this->values[i] = 0;
}
}
void Matrix4::Print()
{
int i = 0;
for(i = 0; i < 16; i++){
printf("%g,%f\t",values[i],valuesf[i]);
... |
/**********************************************************************
*
* Copyright (c) 2005, Tsujii Laboratory, The University of Tokyo.
* All rights reserved.
*
* @file lexmerge_main.cc
* @version Time-stamp: <2009-12-23 10:09:04 yusuke>
* Main program of lexmerge
*
***********************************... |
#include "ros/ros.h"
#include "geometry_msgs/PoseStamped.h"
#include "nav_msgs/Path.h"
#include "geometry_msgs/Point32.h"
#include "sensor_msgs/PointCloud.h"
#include <opencv2/opencv.hpp>
#include <opencv2/core/core.hpp>
#include <Eigen/Dense>
#include <chrono>
#include <iostream>
#include <vector>
using namespace std;... |
/***
LegoBitmap - Converts BMP into a Lego Mosaic
Copyright (c) 2014 <NAME>
***/
#include "LegoMosaic.h"
#include <deque>
#include <thread>
#include <cstdlib>
int BrickDefinitionCompare( const void* b0, const void* b1 )
{
BrickDefinition* brick0 = (BrickDefinition*)b0;
BrickDefinition* brick1 = (BrickD... |
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <errno.h>
#include <math.h>
#include <string.h>
#include <time.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sstream>
#include <string>
#ifdef __APPLE__
#include <TargetConditionals.h>
#endif
#if defined(__ANDROID__) || defined(_MSC_VER... |
/*
* Copyright (C) 2022 Open Source Robotics Foundation
*
* 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 appl... |
#include "cascadeclassifier.h"
#include <queue>
using namespace std;
static const char* stageTypes[] = { CC_BOOST };
static const char* featureTypes[] = { CC_HAAR, CC_LBP };
CvCascadeParams::CvCascadeParams() : stageType(defaultStageType),
featureType(defaultFeatureType), winSize(cvSize(24, 24)) {
name = CC_... |
///////////////////////////////////////////////////////////////////////////////
// SOFTWARE COPYRIGHT NOTICE AGREEMENT //
// This software and its documentation are copyright (2011) by the //
// Broad Institute. All rights are reserved. This software is supplied //
... |
/*--------------------------------------------------------------------------------
Copyright (c) Microsoft Corporation. All rights reserved.
*/
/**
\file
\brief String encoding conversion tests
\date 2011-Jan-10 17:50 GMT
*/
/*------------------------------------------------------------... |
/*
* This file is part of `et engine`
* Copyright 2009-2016 by <NAME>
* Please, modify content only if you know what are you doing.
*
*/
#include <random>
#include <et/geometry/geometry.h>
using namespace et;
static const float fRandMax = static_cast<float>(RAND_MAX);
const vec3 et::unitX(1.0f, 0.0f, 0.0f);
co... |
/**************************************************************************
***
*** Copyright (c) 1995-2000 Regents of the University of California,
*** <NAME>, <NAME> and <NAME>
*** Copyright (c) 2000-2007 Regents of the University of Michigan,
*** <NAME>, <NAME>, <NAME> and
*** ... |
/* This software and supporting documentation are distributed by
* Institut Federatif de Recherche 49
* CEA/NeuroSpin, Batiment 145,
* 91191 Gif-sur-Yvette cedex
* France
*
* This software is governed by the CeCILL-B license under
* French law and abiding by the rules of distribution of free soft... |
/**
* Copyright (c) 2014-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "NetlinkSubscriber.h"
#include "NetlinkException.h"
#include "NetlinkTypes.h"
#include <algorithm>
#include <array>
#include <... |
/************************************************************/
/* NAME: <NAME> */
/* ORGN: UNH */
/* FILE: CourseKeepMRAS.cpp */
/* DATE: 2015-01-15 */
/**********... |
/*
* #%L
* BSD implementations of Bio-Formats readers and writers
* %%
* Copyright (C) 2005 - 2016 Open Microscopy Environment:
* - Board of Regents of the University of Wisconsin-Madison
* - Glencoe Software, Inc.
* - University of Dundee
* %%
* Redistribution and use in source and binary forms, with or... |
#define PROGNAME "NTC_Thermostat.cpp"
#define PROGVERSION "V0.03"
#define PROGDATE "2021-11-10"
#include <Arduino.h>
#include <avr/wdt.h>
#undef isPlotter
#ifdef isPlotter
#include "Plotter.h"
Plotter p;
double x;
#endif
#define isDIPSwitch
// dip switches are used to control the temperature setting for the t... |
// © 2018 <NAME> - All Rights Reserved
#include <gdk/glh.h>
#include <gdk/nlohmann_json_util.h>
#include <gdk/opengl.h>
#include <gdk/vertexdata.h>
#include <nlohmann/json.hpp>
#include <iostream>
#include <stdexcept>
using namespace gdk;
static constexpr char TAG[] = "VertexData";
const gdk::lazy_ptr<gdk::Vertex... |
/*
* Copyright (c) 2014-2021, NVIDIA CORPORATION. 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 ... |
#include <i0rCore/Common.hpp>
#include "Addresses.hpp"
PFNGLATTACHSHADERPROC pglAttachShader = NULL;
PFNGLBINDBUFFERPROC pglBindBuffer = NULL;
PFNGLBINDVERTEXARRAYPROC pglBindVertexArray = NULL;
PFNGLBUFFERDATAPROC pglBufferData = NULL;
PFNGLCOMPILESHADERPROC pglCompileShader = NULL;
PFNGLCREATEPROGRAMPROC pglCreatePr... |
#include"precoimgPixel.h"
Preco_imgPixel::Preco_imgPixel(int row, int col, Mat& image, double w):imagePixel(image) {
weight = w;
}
void Preco_imgPixel::showImage() {
if (imagePixel.empty()) // Check for invalid input
{
cout << "Could not open or find the image" << std::endl;
return;
}
namedWindow("Displ... |
//=======================================================================
// Authors: <NAME> and <NAME>
// Chapter 3 - 3D Volumetric Data Visualization
// Copyrights & Licenses:
// Instructions:
// - Left click and drag with the mouse to rotate around
// - Scroll up and down to zoom in and out (or Page Up/Down)
// - Pr... |
/*
* Copyright 2019 Carnegie Technologies
*
* 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 l... |
//
// adclock - a program for driving an analog time display on the Beaglebone
//
// The MIT License (MIT)
//
// Copyright (c) 2014 <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 Softw... |
#include "Piksi.hpp"
#include <cstring>
#ifndef DESKTOP
#include <Arduino.h>
#endif
using namespace Devices;
// Initialize callback nodes so that C++ doesn't complain about them not being
// defined.
sbp_msg_callbacks_node_t Piksi::_startup_callback_node;
sbp_msg_callbacks_node_t Piksi::_log_callback_nod... |
// =============================================================================
// PROJECT CHRONO - http://projectchrono.org
//
// Copyright (c) 2014 projectchrono.org
// All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found
// in the LICENSE file at the top level of t... |
#include "lab_m1/Tema1/Tema1.h"
#include "lab_m1/Tema1/transform2D.h"
#include "lab_m1/lab3/object2D.h"
using namespace std;
using namespace m1;
//a collision tople which contains if it happened, the direction it happened on and the direction vector
typedef std::tuple<bool, Direction, glm::vec2> Collision;
/*
* ... |
// BKPlots.cpp : Defines the entry point for the console application.
//
// On windows the standard resources are used to hold the PLplot palletes, fonts and shapes
// On linux the PLplot palletes, font and shapes are loaded linked in binary images
// Linux example
// a file named foo.bar with some example tex... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.