text stringlengths 5.71k 33.7k |
|---|
/*
Copyright 2011. All rights reserved.
Institute of Measurement and Control Systems
Karlsruhe Institute of Technology, Germany
This file is part of libviso2.
Authors: <NAME>
libviso2 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 ... |
/*
Copyright (c) 2017-2020,
Battelle Memorial Institute; Lawrence Livermore National Security, LLC; Alliance for Sustainable Energy, LLC. See
the top-level NOTICE for additional details. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
*/
#include "ZmqCommsSS.h"
#include "../../common/zmqContextManager.h... |
/*
* Copyright (C) 1996-2002 Supernar Systems, Ltd. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* met:
*
* 1. Redistributions of source code must retain the above copyright
* noti... |
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <imgui.h>
#include <backends/imgui_impl_glfw.h>
#include <backends/imgui_impl_opengl3.h>
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <iostream>
... |
/*
This file is part of cpp-ethereum.
cpp-ethereum 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.
cpp-ethereum is ... |
#include <stdio.h>
#include <string>
#include <vector>
#include <sstream>
#include "term_util.h"
#include "color_scheme.h"
#include "hh_scanner.h"
#include <pe_sieve_types.h>
#include "params_info/pe_sieve_params_info.h"
#define VERSION "0.2.2.7-a"
#define PARAM_SWITCH1 '/'
#define PARAM_SWITCH2 '-'
//scan options... |
/*
* Copyright 2009, Haiku, Inc. All Rights Reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
* <NAME> (<EMAIL>)
*/
#include "driver.h"
#define ALIGN(size, align) (((size) + align - 1) & ~(align - 1))
#define PAGE_ALIGN(size) (((size) + B_PAGE_SIZE - 1) & ~(B_PAGE_SIZE - 1))
#define ST... |
#include "solvers/mnsolver.hpp"
#include "common/config.hpp"
#include "common/io.hpp"
#include "common/mesh.hpp"
#include "entropies/entropybase.hpp"
#include "fluxes/numericalflux.hpp"
#include "optimizers/optimizerbase.hpp"
#include "problems/problembase.hpp"
#include "quadratures/quadraturebase.hpp"
#include "toolbo... |
/*
* ASIX AX88172/AX88772/AX88178 USB 2.0 Ethernet Driver.
* Copyright (c) 2008, 2011 S.Zharski <<EMAIL>>
* Distributed under the terms of the MIT license.
*
* Heavily based on code of the
* Driver for USB Ethernet Control Model devices
* Copyright (C) 2008 <NAME> <<EMAIL>>
* Distributed under the terms of the ... |
/*
* This file is part of the BSGS distribution (https://github.com/JeanLucPons/BSGS).
* Copyright (c) 2020 <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, version 3.
*
* This ... |
//===--- ProtocolConformance.cpp - Swift protocol conformance checking ----===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
/* Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or... |
/*
* =====================================================================================
*
* Filename: top_index_service.cc
*
* Description: class definition.
*
* Version: 1.0
* Created: 09/08/2020 10:02:05 PM
* Revision: none
* Compiler: gcc
*
* Author: s... |
/*
* Copyright © 2021 <NAME>. All rights reserved.
* Contacts: <<EMAIL>>
* Licensed under the Apache License, Version 2.0
*/
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <map>
#include <regex>
#include <set>
#include <stdexcept>
#include <system_error>
#include <utility>
#include <fcli/progr... |
/*
* MUSbuilder.cpp - Constructing MUSes from MCSes
* (referred to as MUS covers for historical reasons)
*
* by <NAME> <liffiton @ eecs . umich . edu>
*
* Copyright (C) 2009, The Regents of the University of Michigan
* See the LICENSE file for details.
*
*/
#include "MUSbuilder.h"
#include <map>
#include ... |
/*--------------------------------------------------------------------------*
*
* Microsoft Windows
* Copyright (C) Microsoft Corporation, 1999 - 1999
*
* File: xmlfile.cpp
*
* Contents: Implements extracting console icon from XML file
*
* History: 17-Dec-99 audriusz Created
*
*----... |
//
// Created by 406 on 2019/11/15.
//
#include <iostream>
#include <string>
#include <cstdlib>
#include <vector>
#include <algorithm>
#include <bitset>
#include<time.h>
using namespace std;
/*
* 我决定了,用c++写
* 好的
* 快写
*
* 实现2048RSA加密并给出解密函数验证
* 要求:
* p 和 q 是两个1024的安全素数,根据学号最后一位的数字选择
* p = 74829638746533240988779... |
#include <algorithm>
#include <iostream>
#include <fstream>
#include <sstream>
#include <random>
#include <string>
#include <vector>
#include <cmath>
using namespace std;
typedef long long Z;
const double Pi = 4.0 * atan(1.0);
const double HalfPi = 2.0 * atan(1.0);
const double DegToRadCoef = Pi / 180.0;
const doubl... |
////////////////////////////////////////////////////////////////////////////////
// Copyright 2017 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.apac... |
#include "acmacs-chart-2/selected-antigens-sera.hh"
#include "acmacs-map-draw/figure.hh"
#include "acmacs-py/py.hh"
#include "acmacs-py/py-seq.hh"
#include "acmacs-py/py-antigen-indexes.hh"
namespace acmacs_py
{
template <typename AgSr> static inline bool inside(const acmacs::chart::SelectionData<AgSr> data, const... |
// helper functions (maybe move into class rsSinusoidalPartial )
/*
// useful for freq de-biasing and for phase interpolation in synthesis
template<class T>
T rsFindCosistentPhase(T storedPhase, T computedPhase)
{
T p = storedPhase; // 0..2pi
T q = computedPhase; // 0..inf
T tmp = p;
T k = 0;
T d;
... |
#include "list.h"
#include "gtest/gtest.h"
#include <string>
#include <iostream>
#include <vector>
#include <random> // random_device etc.
using std::cout;
using std::endl;
class listTest : public testing::Test {
protected:
virtual void SetUp() {
list_1.insert(list_1.begin(), 10);
int_iter = list_1.insert(l... |
/*
Copyright (c) 2002-2009 Tampere University.
This file is part of TTA-Based Codesign Environment (TCE).
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, ... |
/*
* Evolves genome repeatedly according to the fitness function described in the paper associated
* with this code.
*
* This version of the program takes parameter info from a JSON file.
*
* Additionally, this version of the program (will be) is able to evolve towards any number of
* target state contexts. The ... |
// AMD AMDUtils code
//
// Copyright(c) 2018 Advanced Micro Devices, Inc.All rights reserved.
//
// Vulkan Samples
//
// Copyright (C) 2015-2016 Valve Corporation
// Copyright (C) 2015-2016 LunarG, Inc.
// Copyright (C) 2015-2016 Google, Inc.
//
// Permission is hereby granted, free of charge, to any person obtaining a... |
#include "utils/CoreUtils.hpp"
#include "utils/GradientUtils.hpp"
using namespace utymap::mapcss;
using namespace utymap::utils;
namespace {
const std::string GradientPrefix = "gradient(";
const std::unordered_map<std::string, Color> colorMap =
{
{"activeborder", Color(180, 180, 180, 255)},
{"act... |
/*
Copyright 2014 Adobe
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)
*/
/****************************************************************************************************/
// identity
#include <binspect... |
/************************************************************************************
Filename : Platform_Linux.cpp
Content : Linux (X11) implementation of Platform app infrastructure
Created : September 6, 2012
Authors : <NAME>
Copyright : Copyright 2012 Oculus VR, Inc. All Rights reserved... |
#include"Lighting.h"
#include"Units.h"
#include"Area.h"
#include"LightingPropagation.h"
static constexpr int chunkColumnChunkYMax = 15;
static constexpr int chunkColumnChunkYMin = -16;
static constexpr int chunksCoumnChunksCount{ chunkColumnChunkYMax - chunkColumnChunkYMin + 1 };
struct Sides {
bool side... |
#include "application.h"
#include "TimeAlarms.h"
#include "Adafruit_LEDBackpack.h"
#include "Adafruit_GFX.h"
#include "Adafruit_MCP9808.h"
#include "Adafruit_TPA2016.h"
#undef now()
#undef swap()
#include <vector>
enum DSTRule {DST_US, DST_EU, DST_OFF};
bool isDST(int dayOfMonth, int month, int dayOfWeek, DSTRule rul... |
/**
* \file QryWznmAppList.cpp
* job handler for job QryWznmAppList (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 <Wznmd.h>
#endif
#include "QryWz... |
/* ----------------------------------------------------------------------------
* Copyright 2017, Massachusetts Institute of Technology,
* Cambridge, MA 02139
* All Rights Reserved
* Authors: <NAME>, et al. (see THANKS for the full author list)
* See LICENSE for the license information
* -------------------------... |
#include <iostream>
#include <vector>
#include <math.h>
#include <algorithm>
#include <fstream>
using namespace std;
class Point{
public:
int x,y;
Point(int x,int y){
this->x=x;
this->y=y;
}
};
int maxPerimetro(vector<Point> points){
int maxx=points[0].x,minx=maxx,maxy=points[0].y,miny... |
#include "GaudiKernel/MsgStream.h"
#include "GaudiKernel/AlgFactory.h"
#include "GaudiKernel/IDataProviderSvc.h"
#include "GaudiKernel/SmartDataPtr.h"
#include "GaudiKernel/Algorithm.h"
#include "Event/TopLevel/Event.h"
#include "Event/TopLevel/EventModel.h"
#include "Event/TopLevel/DigiEvent.h"
#include "Event/Digi/A... |
#include "Queue.hpp"
#include "functions.hpp"
#include <stdio.h>
#include <netdb.h>
#include <netinet/in.h>
#include <stdlib.h>
#include <string.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <fcntl.h> // for open
#include <unistd.h> // for close
#include <threads.h>
#include <iostream>
#include <iomanip>
#... |
/** @file Host.cpp
* @author <NAME> <<EMAIL>>
* @author <NAME> <<EMAIL>>
* @date 2014
* @author toxotguo
* @date 2018
*
* @ author: yujiechen
* @ date: 2018-09-19
* @ modifications:
* 1. modify io_service value from 1 to 2
* (construction of io_service is io_service(std::size_t concurrency_hint);)
* (curr... |
/**
* Copyright (C) 2011 <NAME> (<EMAIL>)
* Copyright (C) 2011 <NAME> (<EMAIL>)
* Copyright (C) 2011 <NAME> (<EMAIL>)
* Copyright (C) 2011 <NAME> (<EMAIL>)
* Copyright (C) 2011 <NAME> (<EMAIL>)
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modifica... |
//===- CZero.cpp: - CZero Security Checks ---------------------------------===//
//
// The SAFECode Compiler
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===----------------... |
#include "PanelConfig.h"
#include "imgui/imgui.h"
#include "Application.h"
#include "ModuleWindow.h"
#include "ModuleInput.h"
#include "ModuleRenderer3D.h"
#include "ModuleResourceManager.h"
#include "ModuleScene.h"
#include "mmgr/mmgr.h"
#include "ModuleTimeManager.h"
PanelConfig::PanelConfig()
{
name = "config";
a... |
#include "burnint.h"
#include "burn_sound.h"
#include "sn76496.h"
#define MAX_SN76496_CHIPS 5
#define MAX_OUTPUT 0x7fff
#define STEP 0x10000
struct SN76496
{
UINT32 UpdateStep;
INT32 VolTable[16]; /* volume table */
INT32 Register[8]; /* registers */
INT32 LastRegister; /* last register written */
INT3... |
/*
* agentclient.cpp
* SecurityAgent
*
* Copyright (c) 2002,2008,2011-2012 Apple Inc.. All Rights Reserved.
*
*/
#include <stdio.h>
/*
For now all the calls into agentclient will be synchronous, with timeouts
On a timeout, we will return control to the client, but we really need to send the appropriate abo... |
#include "knapsacksolver/generator.hpp"
#include "knapsacksolver/algorithms/algorithms.hpp"
#include <iomanip>
#include <sstream>
#include <boost/program_options.hpp>
using namespace knapsacksolver;
std::string path(std::string d, ItemPos n)
{
if (d == "u3") {
return "data/smallcoeff/knapPI_1_" + std::... |
// DlgMain.cpp : implementation of the CDlgMain class
//
/////////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "resource.h"
#include "DlgMain.h"
#include "DlgNotify.h"
class CAPOSettings;
///////////////////////////////////////////////////////////////... |
#include "includes.h"
#include <chrono>
using Clock=std::chrono::high_resolution_clock;
void set_force(Pencil &force, const SolverParams ¶ms, const Grid &grid, const Int j)
{
Real Amp = 1.0/40;
Real kf = params.kf;
for (size_t i=0;i<force.nx_;i++)
{
force(i,0,0) = A... |
#include "kcf.h"
void KCF_Tracker::init(cv::Mat &img)
{
cv::Mat patch;
if (img.channels() == 3){
cv::cvtColor(img, patch, CV_BGR2GRAY);
patch.convertTo(patch, CV_32FC1);
} else {
img.convertTo(patch, CV_32FC1);
}
p_windows_size[0] = patch.cols;
p_windows_size[1] = patch... |
#include "TROOT.h"
#include "TPDF.h"
#include "TPaveStats.h"
#include "cli.hpp"
#include "init_ds.hpp"
#include "consts.hpp"
#include "csalg.hpp"
#include "drawing.hpp"
#include "scattyield.hpp"
#include "protonede.hpp"
#include "treewalk.hpp"
#include "cuts_conf.hpp"
#include "rootscript.hpp"
#include "vertzalg.hpp... |
/*
3D Zernike Moments
Copyright (C) 2003 by Computer Graphics Group, University of Bonn
http://www.cg.cs.uni-bonn.de/project-pages/3dsearch/
... |
/*
* dataGen/main.cpp
*
* Created on: Feb 20, 2017
* Author: dbourge
*
* miniIsosurface is distributed under the OSI-approved BSD 3-clause License.
* See LICENSE.txt for details.
*
* Copyright (c) 2017
* National Technology & Engineering Solutions of Sandia, LLC (NTESS). Under
* the terms of Contract D... |
/**************************************************************************\
*
* This file is part of the Coin 3D visualization library.
* Copyright (C) by <NAME> & Gas Technologies.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License... |
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <glm/vec3.hpp>
#include <glm/mat4x4.hpp>
#include <iostream>
#include "util_misc.h"
#include "callback.h"
#include "camera.h"
#include "shader.h"
// TODO: Remove global variable
Terrain_heights terrain_struct; // Used by generate_terrain to set heights for water ... |
/*
* This file is part of the DUDS project. It is subject to the BSD-style
* license terms in the LICENSE file found in the top-level directory of this
* distribution and at https://github.com/jjackowski/duds/blob/master/LICENSE.
* No part of DUDS, including this file, may be copied, modified, propagated,
* or dis... |
/*
Plugin-SDK (Grand Theft Auto Vice City) source file
Authors: GTA Community. See more here
https://github.com/DK22Pac/plugin-sdk
Do not delete this comment block. Respect others' work!
*/
#include "CRadar.h"
#include "CMenuManager.h"
#include "CEntity.h"
#include "CPools.h"
float& CRadar::cachedCos =... |
/* \class ZMuMuAnalyzer
*
* Z->mu+m- standard analysis for cross section
* measurements. Take as input the output of the
* standard EWK skim: zToMuMu
*
* Produces mass spectra and other histograms for
* the samples in input:
*
* + Z -> mu+mu-, both muons are "global" muons
* + Z -> mu+mu-, one muons is "glo... |
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ident "$Id$"
/*======
This file is part of PerconaFT.
Copyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved.
PerconaFT is free software: you can redistribute it and/or modif... |
#include "ReadAVI.h" // WTF, ostream/fstream
#include <EMULATOR.H>
#include "DRIVER2.H"
#include "C/PAD.H"
#include "C/SYSTEM.H"
#include "C/E3STUFF.H"
#include "C/PRES.H"
#include "C/PAUSE.H"
#include "STRINGS.H"
#include <SDL_timer.h>
#include <AL/al.h>
#include <jpeglib.h>
int UnpackJPEG(unsigned char* src_buf... |
#include "OutputManager.h"
#include "Textures.cpp"
OutputManager::OutputManager(MCUFRIEND_kbv* p) {
tft = p;
}
void OutputManager::oprint(int x, int y, char* text){
(*tft).setCursor(x, y);
(*tft).setTextSize(1);
(*tft).setTextColor(YELLOW);
(*tft).println(text);
}
void OutputManager::rect(int x, int y, int ... |
#pragma once
#include "../core/core_api.hpp"
#include "../framework/framework.hpp"
#include "vs_out_type.hpp"
class MaterialDrPBR : public framework::IMaterial
{
public:
std::shared_ptr<core::Texture> normal_map = nullptr;
std::shared_ptr<core::pbr::IBL> ibl;
core::Vec3 albedo;
float metalness = 0;
float roughn... |
#include <stdio.h>
#include <string.h>
#include <vector>
#include <string>
#include <random>
#include <thread>
#include <algorithm>
#include <sstream>
#include <iomanip>
#include "bitreverse.h"
#include "rng.h"
#ifdef _WIN32
#include<Windows.h>
#include <bcrypt.h>
static void secureRandom(unsigned char *buf, unsigne... |
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... |
//
// Book: OpenCL(R) Programming Guide
// Authors: <NAME>, <NAME>, <NAME>, <NAME>, <NAME>
// ISBN-10: 0-321-74964-2
// ISBN-13: 978-0-321-74964-2
// Publisher: Addison-Wesley Professional
// URLs: http://safari.informit.com/9780132488006/
// http://www.openclprogrammingguide.com
//
// Image... |
// 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 agreed to in writing... |
/*
Copyright (c) 2014-2015 NicoHood
See the readme for credit to other people.
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, ... |
/*******************************************************************************
* TAP2D80 *
********************************************************************************
* Description: ... |
// This source file is part of spaction
//
// Copyright 2014 Software Modeling and Verification Group
// University of Geneva
//
// 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:... |
/****************************************
Step RI --> R,
including functions to balance R in column sum
****************************************/
#include "Header.h"
// We try to switch row sums of R at most _SWITCH_ROWS_TRIAL_MAX steps
// And each step, we attempt a weak switch up to _WEAK_SWITCH_TRIAL_MAX times
#de... |
/*
* AccelGyro_LSM9DS1.cpp
*
* Copyright (C) 2016 <NAME>
*
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
#include <AccelGyro_LSM9DS1.h>
#include <cstdio>
#include <pigpiod_if2.h>
#include <string.h>
#include <Settings.h>
#include <mat... |
#include "BaseUtils.hpp"
#include "Main.hpp"
#include "Game.hpp"
#include "Renderer.hpp"
#include "Cameras.hpp"
#include "Settings.hpp"
#include "ImGuiUtils.hpp"
#include "Texture.hpp"
#include "Mesh.hpp"
#include "../WorkingDir/Shaders/Include/ShaderConstants.h"
extern VecSetting<glm::uvec2> g_Size;
sta... |
//
// settings.cpp
// ultraP
//
// Created by <NAME> on 7/3/19.
// Copyright © 2019 <NAME>. All rights reserved.
//
#include "settings.hpp"
bool setting_param::operator==(const t_set_param &p) const {
return p.name == name;
}
std::string Settings::StringUsage() {
return "ultra <arguments> <input sequence pa... |
#include "draw.h"
#include <iostream>
#include <GL/glu.h>
ShaderProgram::ShaderProgram(const std::string &name) : name(name) {
program = glCreateProgram();
}
ShaderProgram::~ShaderProgram() {
glDeleteProgram(program);
}
Shader& ShaderProgram::addShader(GLenum type, const std::string &name, const std::string ... |
//=---------------------------------------------------------------------=
//
// $Id$ $Name$
//
// The contents of this file are subject to the AAF SDK Public Source
// License Agreement Version 2.0 (the "License"); You may not use this
// file except in compliance with the License. The License is available
// in AAFSD... |
#include <QFile>
#include <QMutexLocker>
#include <srchilite/instances.h>
#include <srchilite/langmap.h>
#include <BufferWorker.h>
#include <FiletypeMap.h>
#include <Filetype.h>
#include <Utility.h>
#include <Helium.h>
#include <AppearanceSettings.h>
BufferWorker::BufferWorker():
_sourceHighlight("xhtml.outlang")
... |
/*========================================================================*
* *
* Distributed by Whiteley Research Inc., Sunnyvale, California, USA *
* http://wrcad.com *
* Copyright (... |
/*
Operators
Copyright 2010-201x held jointly by LANS/LANL, LBNL, and PNNL.
Amanzi is released under the three-clause BSD License.
The terms of use and "as is" disclaimer for this license are
provided in the top-level COPYRIGHT file.
Author: <NAME> (<EMAIL>)
*/
#include <cstdlib>
#include <cmath>
#inc... |
/*
* \file EcalEndcapSimHitsValidation.cc
*
* \author C.Rovelli
*
*/
#include "DQMServices/Core/interface/DQMStore.h"
#include "FWCore/Utilities/interface/Exception.h"
#include "Validation/EcalHits/interface/EcalEndcapSimHitsValidation.h"
#include <DataFormats/EcalDetId/interface/EEDetId.h>
using namespace cms;
... |
//---------------------------------------------------------- -*- Mode: C++ -*-
// $Id$
//
// Created 2008/08/27
//
//
// Copyright 2008 Quantcast Corp.
//
// This file is part of Kosmos File System (KFS).
//
// Licensed under the Apache License, Version 2.0
// (the "License"); you may not use this file except in compli... |
/*
* Copyright 2019 Google LLC
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "modules/particles/include/SkParticleEffect.h"
#include "include/core/SkPaint.h"
#include "include/private/SkTPin.h"
#include "modules/particles/include/SkParticleBinding.... |
/*
* Copyright 2021 The DAPHNE Consortium
*
* 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 ... |
/* Copyright 2021 iwatake2222
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 writing, software
dis... |
#include "stdafx.h"
#include "md5.h"
/* MD5 initialization. Begins an MD5 operation, writing a new context.
*/
void MD5Init(MD5_CTX * context)
{
context->count[0] = context->count[1] = 0;
/* Load magic initialization constants.
*/
context->state[0] = 0x67452301;
context->state[1] = 0xefcdab89;
context->state[... |
/**
* Open Space Program
* Copyright © 2019-2020 Open Space Program Project
*
* 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 li... |
#pragma once
#include <cmath>
void loadTimestampCount (const size_t bc, const MauveBuffer *buffers, MauveBuffer &buffer)
{
size_t nPhrase = 0;
size_t cTimestamp = 0;
while (nPhrase < buffer.phrasec)
{
if (buffer.phrases[nPhrase] == "time")
++cTimestamp;
else if (buffer.phrases[nPhrase] == "usebuffer")
c... |
/**
@file
@brief GUNNS Electrical Converter Output Link implementation
@copyright Copyright 2021 United States Government as represented by the Administrator of the
National Aeronautics and Space Administration. All Rights Reserved.
LIBRARY DEPENDENCY:
((core/GunnsBasicLink.o)
(aspects/electrica... |
/*
* 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... |
/*
* Copyright (c) 2007 The Regents of The University of Michigan
* 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, ... |
/*
* ElectrostaticsRenderer.cpp
*
* Copyright (C) 2010 by Universitaet Stuttgart (VISUS).
* All rights reserved.
*/
#include "stdafx.h"
#define _USE_MATH_DEFINES 1
#include "ElectrostaticsRenderer.h"
#include "mmcore/CoreInstance.h"
#include "mmcore/utility/ShaderSourceFactory.h"
#include "mmcore/param/EnumPar... |
/*
* extractExternal.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 <stdint.h>
#include <unistd.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <getopt.h>
#include <time.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <linux/types.h>
#include <linux/spi/spidev.h>
#include <sys/time.h>
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
#define BM(... |
#include <iostream>
#include <map>
#include <sstream>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "PcapPlusPlusVersion.h"
#include "Packet.h"
#include "IPv4Layer.h"
#include "IPv6Layer.h"
#include "PayloadLayer.h"
#include "PcapFileDevice.h"
#include "SystemUtils.h"
#include "getopt.h"
#define ... |
// ----------------------------------------------------------------------------
// - Open3D: www.open3d.org -
// ----------------------------------------------------------------------------
// The MIT License (MIT)
//
// Copyright (c) 2018-2021 www.open3d.org
//
// Perm... |
//----------------------------------------------------------------------------
//
// TSDuck - The MPEG Transport Stream Toolkit
// Copyright (c) 2005-2021, <NAME>
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following c... |
// Copyright (c) 2019-2020, 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 of source code must retain the above copyright
// notice, this list of ... |
/******************************************************************************
* Filename: MFWebCamRtp.cpp
*
* Description:
* This file contains a C++ console application that captures the realtime video
* stream from a webcam using Windows Media Foundation, encodes it as H264 and then
* transmits it to an RTP end poi... |
#include <unistd.h>
#include <stdio.h>
#include <iostream>
#include <stdlib.h>
#include <assert.h>
#include <rocblas.h>
#include <hip/hip_runtime.h>
#include <hip/hip_fp16.h>
#include <hipblas.h>
#include "fp16_conversion.h"
#include <vector>
#include <fstream>
#include <chrono>
#include <thread>
#include <random>
#inc... |
/*
//@HEADER
// ************************************************************************
//
// KokkosKernels 0.9: Linear Algebra and Graph Kernels
// Copyright 2017 Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
// the U.S. Government retain... |
//========================================================================
// Zinc - Web Server
// Copyright (c) 2019, <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 res... |
/**
Copyright (c) 2015 <NAME>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the foll... |
/*********************************************************************
<NAME> 2013 - 2016
SFML Tiled Map Loader - https://github.com/bjorn/tiled/wiki/TMX-Map-Format
http://trederia.blogspot.com/2013/05/tiled-map-loader-for-sfml.html
Some of the hull decimation code is a based on an ActionScript class
by <NAME>. See:
h... |
//----------------------------------------------------------------------
//
// File: "ViewTokenizer.cpp"
// Created: 30-7-2013
// Author: 津田伸秀
// Description: 表示単位を切り分けるクラス
//
//----------------------------------------------------------------------
//#include <QtGui>
#include "typeSettings.h"
#include ... |
#include "Parser.h"
using namespace lesma;
template<TokenType type, TokenType... remained_types>
bool Parser::AdvanceIfMatchAny() {
if (CheckAny<type, remained_types...>()) {
Advance();
return true;
}
return false;
}
template<TokenType type, TokenType... remained_types>
bool Parser::Chec... |
// cg.cpp: multi-precision, preconditioned Conjugate Gradient iterative solver using Fused Dot Products
// using matrix-vector fused dot product operator, and compensation fused dot product operators
//
// Copyright (C) 2017-2021 Stillwater Supercomputing, Inc.
// Authors: <NAME>
//
// This file is part of the universa... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.