text stringlengths 5.71k 33.7k |
|---|
//
// general.cpp
//
// (C) Copyright 2000-2005 by <NAME>.
// All Rights Reserved.
//
#include "bcc.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
// Constructor.
GeneralPage::GeneralPage()
{
// Setup icon.
m_nIcon = IDI_GENERAL;
}
// Destructor.
GeneralPag... |
#include "RenderOptionsHook.h"
#include "IDs.h"
#include "dlrendersettings.h"
#include "nsi.hpp"
#include <algorithm>
#include <iostream>
#include <Windows.h>
#include "maxon/utilities/undef_win_macros.h"
#include <string.h>
#include <tuple>
#include <assert.h>
#include "DL_TypeConversions.h"
#define ... |
///
/// \file SI4703.cpp
/// \brief Implementation for the radio library to control the SI4703 radio chip.
///
/// \author <NAME>, http://www.mathertel.de
/// \copyright Copyright (c) 2014-2015 by <NAME>.\n
/// This work is licensed under a BSD style license.\n
/// See http://www.mathertel.de/License.aspx
///
... |
/* =======================================================================================
Copyright 2014-2015 Texas Advanced Computing Center, The University of Texas at Austin
All rights reserved.
Licensed under the BSD 3-Clause License, (the "License"); you may not use this file
except in compliance with the L... |
///////////////////////////////////////////////////////////////////////////////////////////////////
/// \file formic/fqmc/engine/var_dependencies.cpp
///
/// \brief implementation file for the variable dependencies class
///
/////////////////////////////////////////////////////////////////////////////////////////////... |
#include <iostream>
#include <fstream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <cassert>
#include <string>
#include <array>
#include <algorithm>
#include <vector>
#define DOGWIN 1
#define RABWIN -1
using namespace std;
struct pos
{
int rabbit;
array<int,3> dog; //Make su... |
#include <brigand/algorithms/sort.hpp>
#include <brigand/functions/comparison/greater.hpp>
#include <brigand/functions/comparison/less.hpp>
#include <brigand/functions/misc/sizeof.hpp>
#include <brigand/sequences/list.hpp>
#include <brigand/types/bool.hpp>
#include <cstddef>
template <unsigned int... List>
using size_... |
#include "pch.h"
#include "AppSettings.h"
#include "niutils.h"
#include "obj/BSXFlags.h"
#include "obj/BSBound.h"
int Exporter::mVersion=013;
bool Exporter::mSelectedOnly=false;
bool Exporter::mTriStrips=true;
bool Exporter::mExportHidden=false;
bool Exporter::mExportFurn=true;
bool Exporter::mExportLights=false;
boo... |
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include <cstdlib>
#include <cstring>
#include <cstdio>
#include <fcntl.h>
#include <cerrno>
#include <unistd.h>
#include <csignal>
#include <sys/select.h>
#include <sys/types.h>
#include <sys/wait.h>... |
/*
iOwlT: Sound Geolocalization System main Coordenadas
links HPS to FPGA and applies the multilateration algorithm
*/
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <sys/mman.h>
#include "hwlib.h"
#include "socal/socal.h"
#include "socal/hps... |
/* Copyright 2020 Canaan 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<direct_knn.h>
#include<knnreduce.h>
#include<lsh.h>
#include<generator.h>
#include<vector>
#include<cassert>
#include<cmath>
#include<utility>
#include<omp.h>
#include<mpi.h>
#include<CmdLine.h>
#include <ompUtils.h>
#include <ctime>
#include "mpitree.h"
#include "clustering.h"
#include "repartition.h"
#inclu... |
/*******************************************************************************
*
* Copyright (c) 2010-2015 <NAME>
*
* This file is part of MASA-Core.
*
* MASA-Core 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 Softw... |
//
// SegmentParser.cpp
// Clock Signal
//
// Created by <NAME> on 04/05/2018.
// Copyright 2018 <NAME>. All rights reserved.
//
#include "SegmentParser.hpp"
#include "Encoder.hpp"
#include <array>
namespace {
const uint8_t six_and_two_unmapping[] = {
/* 0x96 */ 0x00, 0x01,
/* 0x98 */ 0xff, 0xff, 0x02, 0x03,... |
/*
* Copyright (c) 2010 <NAME> <<EMAIL>>.
* Copyright (c) 2010-2011 <NAME> <<EMAIL>>.
*
* Permission to use, copy, modify, and/or distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies.
*
* THIS... |
/* Tutorial #2: 3D Transient HT using OpenMP and AVX intrinsic functions
Written by: <NAME>, Department of Mechanical Engineering, NCKU
For corrections or queries: <EMAIL>
Function Description
Allocate_Memory(): Allocate the memory for variables a,b and c.
Free_Memory(): Free the variables a,b ... |
// Copyright 2017 Netherlands Institute for Radio Astronomy (ASTRON)
// Copyright 2017 Netherlands eScience Center
//
// 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.apa... |
#include "ros/ros.h"
#include "laser_scanner_infoscreen/trackObjects.h"
#include "sensor_msgs/LaserScan.h"
#include "laser_scanner_infoscreen/biometrics.h"
#include "laser_scanner_infoscreen/biometrics_results.h"
#include "laser_scanner_infoscreen/stepper_control.h"
#include "laser_scanner_infoscreen/gesture_call.h"
#i... |
#include <Python.h>
#include "par.h"
#include "lwnet.h"
#include "actionnet.h"
#include "parseaction.h"
#include "assert.h"
extern Actionary *actionary;
int
Parse::parseSeq(ComplexObj *cobj, ActionNet *actionNet, int parent, int failExitNode, int *startSet, int *endSet)
{
int i;
PyObject *item;
int current... |
#include <stdio.h>
#include <string.h>
#include <string>
#include <iostream>
#include <atomic>
#include <thread>
#ifdef _MSC_VER
#include <boost/program_options.hpp>
#else
#include <unistd.h>
#endif
#include <oem/oem.h>
#define PRINT std::cout << std::endl
#define PRINTSL std::cout << "\r"
#define ... |
#pragma once
#include <vector>
//#include <vulkan/vulkan.hpp>
struct queue_families_t
{
int32_t graphics_family = -1;
int32_t present_family = 1;
inline bool complete(void)
{
return(graphics_family >= 0 && present_family >= 0);
}
};
struct swapchain_details_t
{
VkSurfaceCapabilitiesK... |
#include <bits/stdc++.h>
#define all(x) (x).begin(), (x).end()
using namespace std;
/// УРАВНЕНИЕ and
/// x ^ y & z = 0 ( x = y & z )
/// ПОД x, y, z ПОНИМАЮТСЯ ПЕРЕМЕННЫЕ
/// С НОМЕРАМИ x, y, z СООТВЕТСТВЕННО
class AndEquation
{
public:
int x;
int y;
int z;
AndEquation() {}
AndEquation(int x, int y, int z): x... |
/**
* This file is part of the CernVM File System.
*/
#include "upload_s3.h"
#include "s3fanout.h"
#include "logging.h"
#include "compression.h"
#include "util.h"
#include "file_processing/char_buffer.h"
#include "options.h"
#include <sstream>
using namespace upload;
S3Uploader::S3Uploader(const SpoolerDefinitio... |
#include <algorithm>
#include <cassert>
#include <cctype>
#include <chrono>
#include <cstddef>
#include <cstring>
#include <functional>
#include <memory>
#include <thread>
#include <tuple>
#include <unordered_map>
#include <utility>
#include <variant>
#include <vector>
#include "barelymusician/barelymusician.h"
#inclu... |
/*
Properties for R507A.
by <NAME> (<EMAIL>)
Pseudo-pure fluid thermo props from
"Pseudo-pure fluid Equations of State for the Refrigerant Blends R410A, R404A, R507C and R407C"
by <NAME>, Int. J. Thermophys. v. 24, n4, 2003
*/
#if defined(_MSC_VER)
#define _CRTDBG_MAP_ALLOC
#define _CRT_SECURE_NO_WARNINGS
#includ... |
/*
* Copyright (c) 2016 tildearrow
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish,... |
/*
Copyright 2020 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
... |
/*
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, ... |
/**
*======================================================================
* Student#1: <NAME> Student ID: 3946703
* Student#2: <NAME> Student ID: 5201713
* Course: COMP 472 Section: Lec F
* Instructor: <NAME>
* Assignment #2
*
* Description:
* This is the implementation fi... |
/*
* BrusaMotorController.cpp
*
*
Copyright (c) 2013 <NAME>, <NAME>, <NAME>
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to ... |
/* -*- Mode:C++; c-basic-offset:8; tab-width:8; indent-tabs-mode:t -*- */
/*
* Copyright (c) 1999 Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
... |
#include "TB22HDetectorConstruction.hh"
#include "KBG4RunManager.hh"
#include "KBGeoBoxStack.hh"
#include "KBParameterContainer.hh"
#include "G4AutoDelete.hh"
#include "G4Box.hh"
#include "G4Colour.hh"
#include "G4FieldManager.hh"
#include "G4LogicalVolume.hh"
#include "G4NistManager.hh"
#include "G4PVPlacement.hh"
#... |
// Created by <NAME> on 30.05.2018
// Copyright 2018 ETH Zurich
#undef NDEBUG
#include <array>
#include <cassert>
#include <iostream>
#include <sstream>
#include "geom/block.h"
#include "geom/mesh.h"
#include "geom/mesh.ipp"
#include "util/format.h"
#include "util/suspender.h"
// Returns true if a < b (lex starting ... |
//===-- X86IntelAsmPrinter.cpp - Convert X86 LLVM code to Intel assembly --===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#include "engine.h"
#include <cassert>
const uint FirstThreadRow = 1<< 23;
const uint LastThreadRow = 1<< 24;
const uint SerializeRow = 1<< 25;
struct StreamResult {
int consumed;
int outputCount;
};
struct EncoderBuilder {
// Process groupSize elements from rowIndices2, colIndices2.
// Return the number of ou... |
/******************************************************************************
*
* Project: GDAL
* Purpose: Implements CNSDTF\NSDTF\ImageInfo Grid Format.
* Author: <NAME>, <EMAIL>
* Describe: CNSDTF\NSDTF\ImageInfo Grid format. Reference:GB/T 17798-2007
*
*********************************************************... |
// Tencent is pleased to support the open source community by making ncnn available.
//
// Copyright (C) 2020 THL A29 Limited, a Tencent company. All rights reserved.
//
// Licensed under the BSD 3-Clause License (the "License"); you may not use this file except
// in compliance with the License. You may obtain a copy ... |
#include "transition.hpp"
#include <opencv2/core/core.hpp>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <stdexcept>
using namespace cv;
using namespace std;
namespace transdet
{
//------------------------------------------------------------------------------------
// HE... |
/**< Test Common inherited functions */
#include "NGS++.h"
#include <iostream>
#include <string>
#include <fstream>
#include <vector>
#include <time.h>
#include <thread>
#include <random>
#include <string.h>
#include <time.h>
#include <gtest/gtest.h>
using namespace std;
using namespace NGS;
#define SOMENUMBER 10234... |
/*
* Copyright (C) 2005 - 2013 MaNGOS <http://www.getmangos.com/>
*
* Copyright (C) 2008 - 2013 Trinity <http://www.trinitycore.org/>
*
* Copyright (C) 2010 - 2013 ArkCORE <http://www.arkania.net/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General P... |
#include "StreamCPD.hxx"
#include "StreamMatrix.hxx"
extern "C" {
#include "../admm.h"
#include "../../mttkrp.h"
#include "../../timer.h"
#include "../../util.h"
#include "../../stats.h"
}
#include <math.h>
#ifdef SPLATT_USE_MKL
#include <mkl_cblas.h>
#else
#include <cblas.h>
#endif
/* How often to check global ... |
/*
* Copyright 2020-2021 Hewlett Packard Enterprise Development LP
* Copyright 2004-2019 Cray Inc.
* Other additional copyright holders may be indicated within.
*
* The entirety of this work is licensed under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with... |
/* Copyright 2020 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.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... |
#include <memory>
#include <algorithm>
#include <numeric>
#include <vector>
#include <unordered_set>
#include <unordered_map>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <functional>
#include <core/utils/io>
#include "VertexReuseStats.h"
#include "BatchSimulator.h"
name... |
#include "Space_Invaders.h"
Space_Invaders::Space_Invaders(Font& f)
{
//scores
scr.setPosition(20, 10);
scr.setCharacterSize(26);
scr.setFillColor(Color::White);
scr.setFont(f);
//read from file
std::string hsc;
high.open("res/space/hs.txt");
std::getline(high, hsc);
highscore = std::stoi(hsc);
high.close(... |
//===- Loops.cpp - conversion from Linalg named and generic ops to loops --===//
//
// 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
//
//===---------------------------... |
// Scintilla source code edit control
// File: LexTeX.cxx - general context conformant tex coloring scheme
// Author: <NAME> - PRAGMA ADE - Hasselt NL - www.pragma-ade.com
// Version: September 28, 2003
// Copyright: 1998-2003 by <NAME> <<EMAIL>>
// The License.txt file describes the conditions under which thi... |
#include "GAMER.h"
#include "TestProb.h"
// problem-specific global variables
// =======================================================================================
bool Merger_Coll; // (true/false) --> test (cluster merger / single cluster)
static char Merger_File_Prof1[1000]; // pr... |
#include <algorithm>
#include "visuals.hpp"
#include "../options.hpp"
#include "../helpers/math.hpp"
#include "../helpers/utils.hpp"
RECT GetBBox(C_BaseEntity* ent)
{
RECT rect{};
auto collideable = ent->GetCollideable();
if (!collideable)
return rect;
auto min = collideable->OBBMins();
a... |
/*
* Copyright (c) 2013 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 contributin... |
// Tencent is pleased to support the open source community by making GAutomator available.
// Copyright (C) 2016 THL A29 Limited, a Tencent company. All rights reserved.
// Licensed under the MIT License (the "License"); you may not use this file except in
// compliance with the License. You may obtain a copy of the ... |
////////////////////////////////////////////////////////////////////////////////
// Distributed under the Boost Software License, Version 1.0. //
// (See accompanying file LICENSE or copy at //
// https://www.boost.org/LICENSE_1_0.txt) ... |
/* copyright (c) 2007 <NAME>, see licence.txt for more info */
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <base/math.hpp>
#include <engine/e_config.h>
#include <engine/e_server_interface.h>
extern "C"
{
#include <engine/e_memheap.h>
}
#include <game/version.hpp>
#include <game/collision.hpp>... |
/* Copyright 2019, <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:
*
* * Redistributions of source code must retain the above copyright notice, this list of
* conditions and the ... |
#include "integral.h"
#include "ipoint.h"
#include "utils.h"
#include <vector>
#include <ctime>
#include <iostream>
#include "responselayer.h"
#include "fasthessian.h"
using namespace std;
//-------------------------------------------------------
//! Constructor without image
FastHessian::FastHes... |
/*Header-MicMac-eLiSe-25/06/2007
MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation
eLiSe : ELements of an Image Software Environnement
www.micmac.ign.fr
Copyright : Institut Geographique National
Author : <NAME>
Contributors : <NAME>, <NAME>.
[1] <NAME>, <NAM... |
#include "Isis.h"
#include <cmath>
#include <iostream>
#include <iomanip>
#include <sstream>
#include <string>
#include <vector>
#include "AutoReg.h"
#include "AutoRegFactory.h"
#include "ControlMeasure.h"
#include "ControlMeasureLogData.h"
#include "ControlNet.h"
#include "ControlPoint.h"
#include "Chip.h"
#include ... |
/*
* Adplug - Replayer for many OPL2/OPL3 audio file formats.
* Copyright (C) 1999 - 2007 <NAME>, <<EMAIL>>, et al.
*
* This library 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
* versi... |
//--------------------------------------------------------------------------
//
// Environment:
// This software is part of the EvtGen package developed jointly
// for the BaBar and CLEO collaborations. If you use all or part
// of it, please give an appropriate acknowledgement.
//
// Copyright Informat... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "printing/backend/cups_helper.h"
#include <cups/ppd.h>
#include "base/file_util.h"
#include "base/logging.h"
#include "base/string_number_c... |
#include "form_manager.hpp"
#include "model-sys/menu.hpp"
#include "forms/form_system_config.hpp"
#include "ansi_processor.hpp"
#include "session_data.hpp"
#include "logging.hpp"
#include <iostream>
#include <string>
#include <vector>
#include <cassert>
FormManager::FormManager(config_ptr config, session_data_ptr s... |
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "device.h"
#include "allocator.h"
#include "buffer_collection_token.h"
#include "contiguous_pooled_system_ram_memory_allocator.h"
#include "macro... |
#include <iostream>
#include <fstream>
#include <sstream>
#include <string>
#include <cstdio>
#include "psid.h"
#include "CbmTune.h"
#include "Tedmem.h"
#include "Cpu.h"
#include "Sid.h"
#define MAX_BUFFER_SIZE 0x10000
static unsigned char inputBuffer[MAX_BUFFER_SIZE];
static const unsigned int playerStartAddress = 0... |
/*
Copyright (c) by respective owners including Yahoo!, Microsoft, and
individual contributors. All rights reserved. Released under a BSD (revised)
license as described in the file LICENSE.node
*/
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <float.h>
#include <sstream>
#include "reductions.h"
#inc... |
/* Copyright (c) <2003-2021> <<NAME>, Newton Game Dynamics>
*
* 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,
*... |
// Include loguru first to test that it needs no dependencies:
#define LOGURU_FILENAME_WIDTH 16
#define LOGURU_WITH_STREAMS 1
#define LOGURU_REDEFINE_ASSERT 1
#define LOGURU_USE_FMTLIB 0
#define LOGURU_WITH_FILEABS 0
// #define LOGURU_STACKTRACES 1
// #define LOGURU_RTTI 1
#include "../... |
//
// main.cpp
// OpenGL_2
//
// Created by 洪树斌 on 2018/8/13.
// Copyright © 2018年 洪树斌. All rights reserved.
//
#define STB_IMAGE_IMPLEMENTATION
#include "stb_image.h"
#include <iostream>
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <cmath>
#include "shader.h"
#include <glm/glm.hpp>
#include <glm/gtc/ma... |
#include "pc.h"
#include "DirectX.h"
#include "Engine/Extensions/Default.h"
#if USE_ANSEL
#include "Vendor/Ansel/AnselSDK.h"
#endif
_DirectX::_DirectX() {
}
int _DirectX::Create(const DirectXConfig& config) {
// Save config
cfg = config;
// Temp variables
D3D_FEATURE_LEVEL level;
HRESULT res;
... |
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "lice... |
//! @file
//! @brief Implementation file for the Fighter class
//!
#include "Fighter.h"
#include "Observer.h"
#include <stdlib.h>
#include <random>
#include <fstream>
#include <iostream>
using namespace std;
const int TOT_STATS = 6;
const string filename = "characterSaved.dat";
//! Constructor: passes values to ea... |
// Copyright 2017 The Clspv 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 app... |
#include "mt_connection.hpp"
#include <iostream>
#include <GeoLite2PP.hpp>
#include <boost/lambda/bind.hpp>
#include <boost/lambda/lambda.hpp>
#include "logging.hpp"
#include "list.hpp"
#include "user_dat.hpp"
namespace
{
bool send_message(WinboxMessage& p_msg, boost::asio::ip::tcp::socket& p_socket)
{
... |
/** \class Calorimeter
*
* Fills calorimeter towers, performs calorimeter resolution smearing,
* and creates energy flow objects (tracks, photons, and neutral hadrons).
*
* $Date: 2014-04-16 17:17:35 +0200 (Wed, 16 Apr 2014) $
* $Revision: 1369 $
*
*
* \author <NAME> - UCL, Louvain-la-Neuve
*
*/
#incl... |
// Copyright <NAME> 2010.
// 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 <boost/concept/assert.hpp>
#include <boost/graph/adjacency_iterator.hpp>
#include <boost/graph/dijkstra_sh... |
// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/command_line.h"
#include "base/file_util.h"
#include "base/gfx/gdi_util.h"
#include "skia/ext/platform_device.h"
#include "base/gf... |
// This file is part of comma, a generic and flexible library
// Copyright (c) 2011 The University of Sydney
// 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 cod... |
#include "MixPoisson.h"
#include <iostream>
void MixPoisson::setOrig(const QImage &orig, const Eigen::Matrix<int, -1, -1>& mask) {
int w = mask.cols();
int h = mask.rows();
printf("Copy start\n");
assert(orig.width() == w + 2 && orig.height() == h + 2);
this->mask = mask;
this->orig = orig;
... |
// ======================================================================== //
// Copyright 2018-2019 Intel Corporation //
// //
// Licensed under the Apache License, Version 2.0 (the "License"); //
// y... |
#include <log4cxx/logger.h>
#include <KrisLibrary/Logger.h>
#include "LP_InteriorPoint.h"
#include <math/linalgebra.h>
#include <math/Conditioner.h>
#include <math/SVDecomposition.h>
#include <math/VectorPrinter.h>
#include <math/MatrixPrinter.h>
#include <errors.h>
#include <iostream>
using namespace Optimization;
usi... |
/*
* 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 ma... |
/*
* Copyright (c) 2008-2015 Freescale Semiconductor, Inc.
* Copyright 2016-2018 NXP
* All rights reserved.
*
* SPDX-License-Identifier: BSD-3-Clause
*/
#include <cstring>
#include <algorithm>
#include <sstream>
#include <fstream>
#if WIN32
#include <intrin.h>
#endif
#include <stdio.h>
#include "Keyblob.h"
#incl... |
/* Copyright (c) 2013-2020, MUSEN Development Team. All rights reserved.
This file is part of MUSEN framework http://msolids.net/musen.
See LICENSE file for license and warranty information. */
#include "ObjectsGenerator.h"
#include "Quaternion.h"
CObjectsGenerator::CObjectsGenerator(CAgglomeratesDatabase* _pAg... |
//**************************************************************************\
//* This file is property of and copyright by the ALICE Project *\
//* ALICE Experiment at CERN, All rights reserved. *\
//* *\
//* Prim... |
/* GPC: A library for the solution of General Point Correspondence problems.
Copyright (C) 2006 <NAME> (andrea at censi dot org)
*/
#include "gpc/gpc.h"
#include "gpc/gpc_utils.h"
#include "egsl/gsl_eigen.h"
#include <stdio.h>
#include <math.h>
#include <vector>
using namespace std;
// original version
/* Note th... |
// Copyright (c) 2017-2021, Lawrence Livermore National Security, LLC and
// other Axom Project Developers. See the top-level LICENSE file for details.
//
// SPDX-License-Identifier: (BSD-3-Clause)
/**
* \file
*
* \brief Simple example that uses Slam for generating and processing a simple
* 3D mesh.
*
* \detail... |
/*--------------------------------------------------
* 从xml文件中提取任务信息
* ROS服务端节点
* author: <NAME>
* date: 17/08/01
--------------------------------------------------*/
#include <string.h>
#include <tinyxml2.h>
#include <ros/ros.h>
#include <actionlib/server/simple_action_server.h>
#include <roch_gpsr/TaskRecAction.h>... |
#include "action.h"
#include "../common/ast.hpp"
#include <algorithm>
#include <clang/AST/ASTConsumer.h>
#include <clang/AST/ASTContext.h>
#include <clang/AST/Decl.h>
#include <clang/AST/DeclCXX.h>
#include <clang/AST/Expr.h>
#include <clang/AST/RawCommentList.h>
#include <clang/AST/RecursiveASTVisitor.h>
#include <c... |
/*
* Copyright (C) 2011 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... |
//===- SystemZInstrInfo.cpp - SystemZ Instruction Information --------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===------------------------------------------------------... |
/*
* ARL_Topologies - An extensible topology optimization program
*
* Written in 2017 by <NAME> <<EMAIL>>
* This project constitutes a work of the United States Government and is not
* subject to domestic copyright protection under 17 USC Sec. 105.
* Release authorized by the US Army Research Laboratory
*
* ... |
#include "..\Main.h"
#include "Main_Email.h"
#include <Xml.h>
#define MAX_SIG_TEXT_LEN 12000
//----------------------------
const int SUBJ_SCROLL_DELAY = 2000; //delay to scroll long subject
const int SIGNATURES_VERSION = 292;
#define MAX_SIGNATURES 40
#define MAX_NAME_LENGTH 24
//----------------------------
Cs... |
/*------------------------------------------------------+----------------------
// МикроМир07 Shell commands and tmSyncPos | (c) Epi MG, 2007-2020
//------------------------------------------------------+--------------------*/
#include <QString> /* Old tm.c (c) Attic 1989-91, (c) EpiMG 1997-2003 */
... |
#include "MyAnalyses/CommonTools/interface/Utils.h"
#include "MyAnalyses/ZprimeSearch/bin/Electrons.h"
#include "TMath.h"
#include <algorithm>
#include <cmath>
// constructor -------------------------------------------------------------------------------------
Electrons::Electrons(bool _isMC, bool _doQCD, bool _doHist... |
#include <stdio.h>
#include <fcntl.h>
#include <assert.h>
#include <unistd.h>
#include <string.h>
#include <stdlib.h>
#include <stdint.h>
#include <deque>
#ifdef __linux__
#include <libelf.h>
#else
#include <sys/types.h>
#include <sys/ptrace.h>
#define EM_ARM 40
#define EM_X86_64 62
#define EM_AVR 83
#define EM_AARCH6... |
#include "PLY_loader.h"
#include <string>
#include <fstream>
#include <sstream>
using namespace std;
ply_loader::ply_loader()
{
this->m_totalConnectedQuads = 0;
this->m_totalConnectedPoints = 0;
//m_ModelData.iTotalConnectedTriangles = 0;
}
ply_loader::~ply_loader()
{
cout << "Freeing space ... ";
free(mp_vert... |
/*
Platformer example4: a JumpPad that launches the player
*/
//this code sets up memory leak detection
#ifdef _DEBUG
#define _CRTDBG_MAP_ALLOC
#include <crtdbg.h>
#define DEBUG_NEW new(_CLIENT_BLOCK, __FILE__, __LINE__)
#define new DEBUG_NEW
#endif
#include "Blit3D.h"
#include "CollisionMask.h"
#include "EdgeEntity... |
/* Copyright (c) Stanford University, The Regents of the University of
* California, and others.
*
* All Rights Reserved.
*
* See Copyright-SimVascular.txt for additional details.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated doc... |
/*
* Signature.cpp
*
* Created on: 5 Jul 2011
* Author: jack
*/
#include "Signature.h"
#include "Common.h"
#include "Utils.h"
#include "Statistic.h"
#include "Device.h"
#include "Histogram.h"
#include <fstream>
#include <cstdlib>
#include <cstring>
#include <cassert>
#include <cmath>
#include <list>
#includ... |
#include <iostream>
#include <string>
#include <map>
#include <vector>
#include <set>
#include <queue>
#include "IR.h"
#include "IRMutator.h"
#include "IRVisitor.h"
#include "IRPrinter.h"
#include "type.h"
#include "grad.h"//include头文件以使用parser
#include "buildTable.h"
using namespace Boost::Internal;
/*
* 建立IRTree... |
/*
Copyright 2021 The Silkworm Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or a... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.