text stringlengths 3.08k 22k |
|---|
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
// RUN: %HOST_RUN_PLACEHOLDER %t.out
// #2252 Disable until all variants of built-ins are available in OpenCL CPU
// runtime for every supported ISA
// RUNx %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.ou... |
#include <algorithm>
#include <cstdio>
#include <vector>
using namespace std;
typedef pair<int, int> ii;
typedef vector<ii> vii;
typedef vector<int> vi;
#define DFS_WHITE -1
#define DFS_BLACK 1
vector<vii> AdjList;
void printThis(char* message) {
printf("==================================\n");
p... |
#include <cmath>
#include <cstdint>
#include <string>
#include <iostream>
#include <fstream>
#include <limits>
#include <vector>
#include <iomanip>
#include <algorithm>
#include <memory>
#include "core/camera.h"
#include "core/mat4.h"
#include "core/ray.h"
#include "core/vec2.h"
#include "core/vec3.h"
#include "core/... |
// Concord
//
// Copyright (c) 2018 VMware, Inc. All Rights Reserved.
//
// This product is licensed to you under the Apache 2.0 license (the "License").
// You may not use this product except in compliance with the Apache 2.0 License.
//
// This product may include a number of subcomponents with separate copyright
// ... |
#include <iostream>
#include <queue>
#include "../matslise2d.h"
#include "../util/quadrature.h"
#include <matslise/util/legendre.h>
using namespace matslise;
using namespace std;
using namespace Eigen;
using namespace quadrature;
template<typename Scalar>
vector<typename Matscs<Scalar>::Sector> initializeMatscs(cons... |
/**
* \class L1GtVmeWriterCore
*
*
* Description: core class to write the VME xml file.
*
* Implementation:
* Core class to write the VME xml file: L1GtVmeWriter is an EDM wrapper for this class.
* L1GtVmeWriterCore can also be used in L1 Trigger Supervisor framework, with another
* wrapper - it must... |
#include <Windows.h>
#include <string>
#include "sceneManagement.h"
#include "font.h"
#include "Title.h"
#include "fade.h"
#include "sprite.h"
#include "texture.h"
#include "input.h"
#include "common.h"
#include "sound.h"
#include "buttonInput.h"
#define COLOR_CHANGESPEED 3
#define ANIMATION_SPAN 5
#define ANIMATION_... |
/*****************************************************************/
/* NAME: <NAME> */
/* ORGN: Dept of Mechanical Eng / CSAIL, MIT Cambridge MA */
/* FILE: TS_Info.cpp */
/* DATE: July 7th 2011 ... |
//Copyright (c) 2012, University of Cambridge
//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 condit... |
/*
* Copyright 2018 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/gpu/text/GrAtlasManager.h"
#include "src/codec/SkMasks.h"
#include "src/core/SkAutoMalloc.h"
#include "src/gpu/GrGlyph.h"
#include "src/gpu/GrImageInfo.h"
#incl... |
/*-
* SPDX-License-Identifier: Zlib
*
* Copyright (c) 2009-2018 <NAME> <<EMAIL>>
* For conditions of distribution and use, see LICENSE file
*/
#include <ananas/types.h>
#include <ananas/errno.h>
#include <ananas/util/utility.h>
#include "kernel/kmem.h"
#include "kernel/lib.h"
#include "kernel/result.h"
#include "k... |
/*
* See header file for a description of this class.
*
* \author <NAME> - INFN Torino
*/
#include "DQMOffline/Muon/interface/SegmentTrackAnalyzer.h"
#include "DataFormats/Common/interface/Handle.h"
#include "DataFormats/MuonDetId/interface/MuonSubdetId.h"
#include "RecoMuon/TransientTrackingRecHit/interface/M... |
//=============================================================================
//
// Adventure Game Studio (AGS)
//
// Copyright (C) 1999-2011 <NAME> and 2011-20xx others
// The full list of copyright holders can be found in the Copyright.txt
// file, which is part of this source code distribution.
//
// The AGS sourc... |
/*
Tencent is pleased to support the open source community by making
PhxRPC available.
Copyright (C) 2016 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 of the Licen... |
/****************************************************************************
* Copyright (c) 2015 - 2016, CEA
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* 1. Redistributions of source code mus... |
#include "utils.h"
#include <string.h>
// Shameless copy
std::string strtrim(const std::string &str)
{
size_t front = 0;
while (std::isspace(str[front]))
++front;
size_t back = str.size();
while (back > front && std::isspace(str[back - 1]))
--back;
return str.substr(front, back - front);
}
std::vector<std... |
/*
* Copyright 2017 MapD Technologies, 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 o... |
/********************************************************************
Written by <NAME>
Please see the file HEART_LICENSE.txt in the source's root directory.
*********************************************************************/
#include "hStringUtil.h"
/*
* Wildcard matching engine for use with SFTP-based fi... |
/***************************************************************
*
* Copyright (C) 1990-2007, Condor Team, Computer Sciences Department,
* University of Wisconsin-Madison, WI.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you
* may not use this file except in compliance with the License. Y... |
#include "mesh-utils.hpp"
// We will use "Tiny OBJ Loader" to read and process '.obj" files
#define TINYOBJLOADER_IMPLEMENTATION
#include <tinyobj/tiny_obj_loader.h>
#include <iostream>
#include <vector>
#include <unordered_map>
#include <filesystem>
#include "common-vertex-types.hpp"
#include "common-vertex-attribu... |
/**
* @file
* An object representing a logged-in account.
*/
#include "ABC_Login.h"
#include "ABC_LoginDir.h"
#include "ABC_LoginServer.h"
#include "ABC_Account.h"
#include "util/ABC_Crypto.h"
#include <ctype.h>
#define ACCOUNT_MK_LENGTH 32
/**
* Deletes a login object and all its contents.
*/
void ABC_LoginFre... |
#include "core/nsselecter/joinedselectormock.h"
#include "core/nsselecter/sortexpression.h"
#include "gtest/gtest.h"
namespace {
using reindexer::Point;
using reindexer::SortExpression;
namespace SortExprFuncs = reindexer::SortExprFuncs;
ArithmeticOpType operation(char ch) {
switch (ch) {
case '+':
return OpPl... |
/*******************************************************************************
Copyright (c) 1995-96 Microsoft Corporation
Abstract:
Implements windowless controls ViewFilter and ViewFilterSite
interfaces.
*******************************************************************************/
ST... |
/*****************************************************
Name: <NAME>: <EMAIL>
Description: Based on "user.h" and "network.h", define
different functions connecting different users
*****************************************************/
#include "user.h"
#include "network.h"
#include <iostream>
#include <fstream>
#includ... |
#include <log2plot/logger.h>
#include <task.h>
#include <scene.h>
#include <pose_estim.h>
#include <visp/vpRobotCamera.h>
#include <visp/vpQuadProg.h>
#include <numeric>
constexpr double side = 2;
constexpr int steps = 201; // between -side and +side
constexpr double step = (2*side)/(steps-1);
constexpr double inf =... |
#include <iostream>
#include <cstring>
#include <cmath>
#include "datatypes.h"
#include "predictors.h"
#include "profile.h"
#include "library_fixed.h"
#include "model_fixed.h"
#include "vars_fixed.h"
using namespace std;
using namespace seedot_fixed;
using namespace vars_fixed;
MYINT vars_fixed::tmp6[20][1];
MYINT v... |
/**
* particle_filter.cpp
*
* Created on: July
* Author: <NAME>
*/
#include "particle_filter.h"
#include <math.h>
#include <algorithm>
#include <iostream>
#include <iterator>
#include <numeric>
#include <random>
#include <string>
#include <vector>
#include "helper_functions.h"
using std::string;
using std::vec... |
#include <iostream>
#include <fstream>
#include <sstream>
#include <stdexcept>
#include "Pathfinder.h"
const int NUM_FILES = 5; // the total number of files to be read from
const std::string fileArray[NUM_FILES] = { "file1.txt", "file2.txt", "file3.txt", "file4.txt", "file5.txt" }; // the string array containing the... |
// ROS INCLUDES
#include <ros/ros.h>
#include <sensor_msgs/Image.h>
// GSTREAMER INCLUDES
#include <gst/gst.h>
#include <gst/rtsp-server/rtsp-server.h>
#include <gst/rtsp-server/rtsp-media-factory.h>
#include <gst/app/app.h>
#include <thread>
#include <sys/types.h>
#include <ifaddrs.h>
#include <netinet/in.h>
#includ... |
/*
* Copyright (c) 2015, Nagoya University
* 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 ... |
/*
* Copyright (c) 2010 Jice
* 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... |
/***********************************************************************************************************************
* *
* libscopeprotocols ... |
#include <unistd.h>
#include "vodus_encoder.hpp"
void encode_avframe(AVCodecContext *context, AVFrame *frame, AVPacket *pkt, FILE *outfile)
{
avec(avcodec_send_frame(context, frame));
for (int ret = 0; ret >= 0; ) {
ret = avcodec_receive_packet(context, pkt);
if (ret == AVERROR(EAGAIN) || ret ... |
// Copyright (c) 2014-2017 The Dash Core developers
// Copyright (c) 2017-2018 - The SmartCash Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "netbase.h"
#include "smartnodeconfig.h"
#include "util.h"
#i... |
/** This is free and unencumbered software released into the public domain.
The authors of ISIS do not claim copyright on the contents of this file.
For more details about the LICENSE terms and the AUTHORS, you will
find files of those names at the top level of this repository. **/
/* SPDX-License-Identifier: CC0-1.0 ... |
//************************************************************************
// *
// Copyright (C) 2004 *
// University Corporation for Atmospheric Research *
// All Rights Reserved *
// *
//************************************************************************/
//
// File: mai... |
#include "Globals.h"
#include "Application.h"
#include "ModuleCamera3D.h"
#include "ModuleInput.h"
#include "ModuleEditor.h"
#include "C_Transform.h"
#include "C_Mesh.h"
#include "GameObject.h"
ModuleCamera3D::ModuleCamera3D(Application* app, bool start_enabled) : Module(app, start_enabled)
{
right = float3(1.0f, 0.... |
/*
* **************** Abstract constraints of predefined arities **************
*/
#include "tb2abstractconstr.hpp"
#include "tb2ternaryconstr.hpp"
#include "tb2binconstr.hpp"
#include "search/tb2clusters.hpp"
/*
* Constructors and misc.
*
*/
/// \return size of the cartesian product of all initial domains in ... |
// Copyright 2012 Google Inc. 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 ap... |
#include <math.h>
#include <algorithm>
#include <iostream>
#include "heuristics/qubo/beasley1998.h"
#include "util/random.h"
Beasley1998Solution::Beasley1998Solution(const QUBOSolution &x) :
QUBOSolution(x) {}
void Beasley1998Solution::SA(double T) {
// PAPER: randomly select a variable k
int k = Random::RandInt(... |
#include "CnSmp.h"
#include <cassert>
#include <stdlib.h>
#include "NetwControlInfo.h"
#include "CnSmpPkt_m.h"
#include "SimTracer.h"
#include "LogNormalShadowing.h"
Define_Module(CnSmp);
void CnSmp::initialize(int stage)
{
BaseNetwLayer::initialize(stage);
if(stage == 1) {
posture = par("posture")... |
/***************************************************************************
* Software License Agreement (BSD License) *
* Copyright (C) 2012 by <NAME> <<EMAIL>> *
* *
* Redistribution and use in sourc... |
/*
* Copyright (c) 2014-2017, the neonavigation 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
* not... |
// PRT_3D.cpp
// created by Kuangdai on 19-May-2017
// 3D particle relabelling transformation
#include "PRT_3D.h"
#include "SolidElement.h"
#include "FluidElement.h"
#include "SolverFFTW_N3.h"
#include "SolverFFTW_N6.h"
#include "SolverFFTW_N9.h"
PRT_3D::PRT_3D(const RMatXN4 &X) {
int Nr = X.rows();
mXFlat0... |
// renderer.cc
#include "hello.h"
#include "es2ld.h"
#include <glm/gtc/matrix_transform.hpp>
#pragma GCC diagnostic ignored "-Wsign-compare"
#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
#define STB_IMAGE_IMPLEMENTATION
#include <stb_image.h>
#pragma GCC diagnostic pop
#pragma GCC diagnostic pop
IRen... |
//===- Example.cpp - Our running example ----------------------------------===//
//
// Copyright 2019 The MLIR Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.... |
//////////////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2017 KDE Laboratory, University of Tsukuba, Tsukuba, Japan. //
// //
// The JsSpinnerSPE/StreamingCube and the accom... |
/**
* @file
* @author <NAME>
* @version 1.0
*
* @section LICENSE
*
* Copyright [2012] [Carnegie Mellon University]
*
* 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... |
/**********************************
* = Header File Inclusion =
**********************************/
#include <boost/algorithm/string.hpp>
#include <Wt/WAnchor>
#include <Wt/WApplication>
#include <Wt/WContainerWidget>
#include <Wt/WDialog>
#include <Wt/WMessageBox>
#include <Wt/WSignalMapper>
#include <Wt/WText>
#i... |
#include "application.hpp"
application::application( void ) {
if ( !_init( ) ) {
std::cout << "Application init -> error!";
system( "pause" );
return;
} else
std::cout << "Application init done!\n";
// Главный цикл
while( _sf_render_window->isOpen( ) ) {
while( _sf_render_window->pollEvent( *_sf_event )... |
// Copyright 2016 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// Helper program for setting WiFi transmission power.
#include <string>
#include <vector>
#include <linux/nl80211.h>
#include <net/if.h>
#include... |
/*
* Copyright © 2012 Intel Corporation
*
* 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, pub... |
// Copyright 2010-2014 RethinkDB, all rights reserved.
#include "containers/disk_backed_queue.hpp"
#include "arch/io/disk.hpp"
#include "buffer_cache/alt.hpp"
#include "buffer_cache/blob.hpp"
#include "buffer_cache/cache_balancer.hpp"
#include "buffer_cache/serialize_onto_blob.hpp"
#include "serializer/log/log_seriali... |
/* Copyright (c) <2003-2019> <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,
* includi... |
#include <iostream>
#include <string>
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <cstdarg>
#include "tron.h"
using namespace std;
static _float uTMv(_int n, _float *u, _float *M, _float *v)
{
const _int m = n-4;
_float res = 0;
_int i;
for (i=0; i<m; i+=5)
res += u[i]*M... |
/*
* Copyright (c) 2013, <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 conditio... |
/*
* classes.cpp
*
* Created on: Jan 25, 2019
* Author: iconmaster
*/
#include "lib_classes.hpp"
#include "error.hpp"
#include "session.hpp"
#include <sstream>
#include <sys/stat.h>
using namespace std;
using namespace iconus;
using namespace boost::filesystem;
iconus::ClassImage ic... |
//----------------------------------------------------------------------------
//
// 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... |
/*
===========================================================================
Doom 3 BFG Edition GPL Source Code
Copyright (C) 1993-2012 id Software LLC, a ZeniMax Media company.
This file is part of the Doom 3 BFG Edition GPL Source Code ("Doom 3 BFG Edition Source Code").
Doom 3 BFG Edition Source Code is free... |
/**
Copyright 2009-2017 National Technology and Engineering Solutions of Sandia,
LLC (NTESS). Under the terms of Contract DE-NA-0003525, the U.S. Government
retains certain rights in this software.
Sandia National Laboratories is a multimission laboratory managed and operated
by National Technology and Engineering... |
/*
* Copyright 2018 The Project Oak 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 o... |
// Distributed under the MIT License.
// See LICENSE.txt for details.
#include "Domain/Creators/Cylinder.hpp"
#include <algorithm>
#include <array>
#include <cmath>
#include <memory>
#include <unordered_map>
#include <variant>
#include <vector>
#include "Domain/BoundaryConditions/None.hpp"
#include "Domain/BoundaryC... |
//===--- OptRemarkGenerator.cpp -------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
#include <opencv2/core/core.hpp>
#include "opencv2/highgui/highgui.hpp"
#include "opencv2/objdetect/objdetect.hpp"
#include "opencv2/video/background_segm.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "SDL2/SDL.h"
#include <raspicam_cv.h>
#include <stdio.h>
#include "MiniPID.h"
#include "servo.h"
//#define USE... |
/****************************************************************************
*
* Copyright (c) 2018-2021 <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 o... |
//===- sdbm-api-test.cpp - Tests for SDBM expression APIs -----------------===//
//
// Copyright 2019 The MLIR Authors.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.... |
#include <cstdio> // sscanf
//#include <cmath> //pow sqrt ...
//#include <cstdlib> // exit
//#include <iostream>
//#include <fstream>
//#include <ctype.h>
//#include "Definitions.h"
//#include "Portability.h" // my_srand
#include "Utils_2.h"
#include "LDPC.h"
#include "BSC_Channel.h"
#include "AWGN_Channel.h"
#include... |
#include "Volumen.h"
#include <algorithm>
#include <cassert>
#include <cmath>
#include <cstddef>
#include <iomanip>
#include <limits>
#include <numeric>
#include <queue>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <vector>
#include "Imagen.h"
Volumen::Volumen(std::string nombre_base, int tam)
... |
/* Copyright 2016 <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 writi... |
/*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 "Sarene.h"
#include "Platform/OpenGL/OpenGLShader.h"
#include "imgui/imgui.h"
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
class ExampleLayer : public Sarene::Layer
{
public:
ExampleLayer()
: Layer("Example"), m_Camera(-1.6f, 1.6f, -0.9f, 0.9f), m_CameraPosition(0.0f)
{
m_Ve... |
/*
* AWSClient.cpp
*
* See AWSClient.h for description.
* See http://docs.aws.amazon.com/AmazonS3/latest/API/sig-v4-header-based-auth.html
*
*/
#include "AWSClient4.h"
#include "Utils.h"
#include "DeviceIndependentInterfaces.h"
#include "AWSFoundationalTypes.h"
#include "sha256.h"
#include <string.h>
#include ... |
/*
** Copyright 2015 Centreon
**
** 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 ... |
/*
* 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
* vers... |
/*
MIT License
Copyright (c) 2022 mgmk2
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, distribu... |
extern "C" {
#include <runtime/runtime.h>
}
#include "thread.h"
#include "array.hpp"
#include "deref_scope.hpp"
#include "device.hpp"
#include "helpers.hpp"
#include "manager.hpp"
#include "snappy.h"
#include "stats.hpp"
#include "zipf.hpp"
// crypto++
#include "cryptopp/aes.h"
#include "cryptopp/filters.h"
#include ... |
#include <sstream>
#include <set>
/** -- fusion functions -- **/
/**
FUSION output is written to OUT_DIR/fusion.txt where 'OUT_DIR' is the specified
output directory for kallisto. fusion.txt is a tab separated text file with 10 columns
TYPE NAME1 SEQ1 KPOS1 NAME2 SEQ2 KPOS2 INFO POS1 POS2
TYPE can be one of... |
/*
Copyright (c) 2012, <NAME> (kb1vc)
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... |
// Copyright (c) 2010 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/file_util.h"
#include "base/path_service.h"
#include "base/scoped_ptr.h"
#include "gfx/gfx_paths.h"
#include "gfx/icon_util.h"
#include... |
// $Id: buildmodel.cc 1285 2012-03-22 01:12:42Z mikewong899 $
/**
* \page buildmodel buildmodel
*
* Creates a Naive Bayesian classifier \ref model "model" from a set of
* positive and negative training data.
*
* \section buildmodel_input Input
* \li A \ref feature_vector "feature vector file" of known similar s... |
#include <QApplication>
#include "cvhelper.h"
#include "dbhelper.h"
using namespace cv;
CVHelper::CVHelper()
{
QString pth = QApplication::applicationDirPath();
//preload DNNs since at least one instance of CVHelper is always on
color_net = new MColorNet(pth+COLORIZATION_NET_FILE,pth+COLORIZATION_NET_WEI... |
// Copyright 2020 PDFium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
#include "core/fpdfapi/render/cpdf_rendertiling.h"
#include <limits>
#include... |
/*
* Copyright (c) 2018-2019 Confetti Interactive Inc.
*
* This file is part of The-Forge
* (see https://github.com/ConfettiFX/The-Forge).
*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional inf... |
#include <iostream>
#include "Genetic.h"
#include "BuildOperator.h"
#include "BuildRandomOperator.h"
#include "RemoveOperator.h"
#include "RemoveRandomOperator.h"
#include "ReplaceOperator.h"
#include "ReplaceRandomOperator.h"
#include <set>
#include <algorithm>
using namespace std;
State breed(const State &s1, cons... |
/**************************************************************************//**
*
* @file Claw_frames.h
* @author <NAME>, taurob GmbH
* @date 30 May 2016
* @brief Library for communication with taurob gripper (claw), protocol handling
*
*
* Copyright (c) 2016 taurob GmbH. All rights reserved.
* Perfektastras... |
#include "crypto.h"
// reference:
// https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.202.pdf
// https://csrc.nist.gov/CSRC/media/Projects/Cryptographic-Standards-and-Guidelines/documents/examples/SHA3-256_Msg0.pdf
// round constants rc(t)
// taken from OpenSSL iotas[]
const uint64_t rc[] = {
0x0000000000000001, ... |
#include "main.h"
bool curses_started = false;
void end_curses() {
if (curses_started && !isendwin())
endwin();
}
void start_curses() {
if (curses_started) {
refresh();
}
else {
initscr();
start_color();
cbreak();
noecho();
intrflush(stdscr, false);
keypad(stdscr, true);
... |
/*
* Copyright (c) 2020, 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 requi... |
#include "cmesh.h"
#include "glwidget.h"
#include <qmath.h>
#include <iostream>
#include <QFile>
#include <QTextStream>
#include <QOpenGLFunctions>
using namespace std;
CMesh::CMesh()
: m_count(0), m_primitive(0)
{
}
CMesh::~CMesh()
{
m_vbo.destroy();
delete m_vao_binder;
}
void CMesh::add(const QVector... |
// Copyright(c) 2018, Intel Corporation
//
// 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 fol... |
/*
MIT License
Copyright (c) 2018 <NAME>, prince.chrismc(at)gmail(dot)com
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, cop... |
#include "Player.h"
Player::Player(Ogre::SceneManager* _scnMan, Ogre::SceneNode* _scnNode)
: GameEntity(_scnMan, _scnNode)
{
// Set the player tag
tag = Ogre::String("player");
// Add the helicopter mesh to the player's node
Ogre::Entity* tmpEnt = scnMan->createEntity("Heli.mesh");
model->attachObje... |
//////////////////////////////////////////////////////////////////
// example93.cpp
//
// Copyright (c) 2015 <NAME>
//
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
#include <iostream>
// include headers to s... |
/* This software is licensed under the MIT License:
* https://github.com/spacehuhntech/esp8266_deauther */
#include "settings.h"
#include "A_config.h" // Default Settings
#include "EEPROMHelper.h" // To load and save settings_t
#include "debug.h"
#include "language.h" // prnt and prntln
#define MAGIC_NUM 341... |
//
// Created by <NAME> on 2019-02-08.
//
#include <iostream>
#include <sstream>
#include <cmath>
#include <cstdlib>
#include <string>
#include <memory>
#include <vector>
#include <map>
#include <unordered_map>
#include <set>
#include <unordered_set>
#include <deque>
#include <queue>
#include <stack>
#include <algorit... |
/*
* Copyright 2009, <NAME>, <EMAIL>.
* Distributed under the terms of the MIT License.
*/
#include <stdio.h>
#include <string.h>
#include <fs_cache.h>
#include <fs_interface.h>
#include <file_cache.h>
#define MAX_VECS 32
class Map {
public:
Map(const char* name, off_t size);
~Map();
void SetTo(const cha... |
#include "GvtCalculator.h"
#include "Lp.h"
#include "Log.h"
#include "GvtRequestMessage.h"
#include <spdlog/spdlog.h>
GvtCalculator::GvtCalculator() {
// Do nothing
}
GvtCalculator::GvtCalculator(Lp *pLp) :
fLp(pLp), fColour(WHITE), fRedTime(ULONG_MAX), fIsAcceptingRequests(true) {
fNextLpInRing = (pLp->GetRa... |
#include "vboteapot.hpp"
#include "teapotdata.hpp"
//#include <GL/glew.h>
//#include <GL/gl.h>
//#include <cstdio>
//#include <glm/glm.hpp>
//#include <glm/gtc/matrix_transform.hpp>
//#include <glm/gtc/matrix_inverse.hpp>
//#include <glm/gtc/type_ptr.hpp>
//#include <glm/gtc/constants.hpp>
//set grid = 64... |
/** This is free and unencumbered software released into the public domain.
The authors of ISIS do not claim copyright on the contents of this file.
For more details about the LICENSE terms and the AUTHORS, you will
find files of those names at the top level of this repository. **/
/* SPDX-License-Identifier: CC0-1.0 ... |
/**********************************************************************************************
* FABRIK 2D inverse kinematics solver - Version 1.0.0
* by <NAME> <<EMAIL>>
*
* Copyright (C) 2018 <NAME>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GN... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.