text stringlengths 3.08k 22k |
|---|
#include "FrameDataCache.h"
#include <map>
#include <vector>
#include <algorithm>
#include <mutex>
#include <condition_variable>
typedef struct FrameIndex {
FrameIndex(unsigned char *pBuf, int nLen, bool isKeyFrame, bool bRFlag = false)
: _pBuf(pBuf), _nLen(nLen), _isKeyFrame(isKeyFrame), _isReadFlag... |
#include "inc.h"
#include <math.h>
aINT32 gdAdd(aINT32 &, aINT32, aINT32); // no Reals involved
const aINT32 gig = 1000000000;
bool isGigit(aINT32 i)
{
return (i >= 0 && i < 1000000000);
}
bool isAbsGigit(aINT32 i)
{
return (i > -1000000000 && i < 1000000000);
}
fixedC floatToFixed(d... |
// IsMatrix3d.cpp: implementation of the CMatrix4d class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include <assert.h>
#include <exception>
#include "Matrix4d.h"
using namespace AppFramework;
///////////////////////////////////////////////////////////////... |
#include "test_runner.h"
#include <chrono>
#include <istream>
int q01a(std::istream&);
int q01b(std::istream&);
int q02a(std::istream&);
int q02b(std::istream&);
int q03a(std::istream&);
int q03b(std::istream&);
int q04a(std::istream&);
int q04b(std::istream&);
int q05a(std::istream&);
int q05b(std::istream&);
int q0... |
/*
* MIT License
*
* Copyright (c) 2014 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, m... |
/*
The MIT License (MIT)
Copyright (c) 2013 <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, publis... |
#include <iostream>
#include <string>
#include <BitStream.h>
#include "Gizmos.h"
#include "Input.h"
#include <imgui.h>
#include "Client.h"
#include <GameMessages.h>
#include <GameConstants.h>
using glm::vec3;
using glm::vec4;
using glm::mat4;
using aie::Gizmos;
Client::Client()
{
}
Client::~Client()
{
}
bool Clie... |
#include "Networking_Server.h"
#include "Gizmos.h"
#include "Utilities.h"
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include <glm/ext.hpp>
#include "Bitstream.h"
#include "UpdateFormat.h"
#define DEFAULT_SCREENWIDTH 1280
#define DEFAULT_SCREENHEIGHT 720
Networking_Server::Networking_Server()
{
}
Networking_Serv... |
/** @file
*
* @ingroup modularLibrary
*
* @brief A Viewer Object.
*
* @details
*
* @authors <NAME>
*
* @copyright © 2010, <NAME> @n
* This code is licensed under the terms of the "New BSD License" @n
* http://creativecommons.org/licenses/BSD/
*/
#include "TTViewer.h"
#define thisTTClass TTViewer
#defi... |
// Copyright (c) 2021 MIT
//
// Permission to use, copy, modify, and 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.
//
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR(S) DISCLAIM ALL WARRA... |
/**
* @Author: <NAME> <ketilroe>
* @Date: 2019-04-19T15:02:44+02:00
* @Filename: ICM20649.cpp
* @Last modified by: ketilroe
* @Last modified time: 2019-04-19T16:15:47+02:00
* @Copyright: <NAME>
*/
/*
ICM20649.cpp - Library InvenSense 6-axis gyro and accelerometer (ICM20649)
Created by <NAME>, April, 2... |
#include <stdio.h>
#include <stdlib.h>
#define BRANCO 0
#define CINZA 1
#define PRETO 2
typedef struct NO {
int vertice; // vertice de destino (NO final da aresta)
int peso; // peso da aresta
struct NO *prox; // prox adj
} NO;
typedef struct fila {
NO *inicio;
NO *fim;
} FILA;
typedef struct ver... |
#include "stdafx.h"
#include "../lexertl/generator.hpp"
const char *error_regexes_[] =
{
// re_tokeniser.hpp
"\"",
"(a",
"(a))",
"(?#",
"(?x:/*",
"(?x: ",
"(?z:",
"{",
"{-",
"{+",
"a{-",
"a{-a",
"a{1",
"a{1,",
"a{1,a",
"a{1,1",
"a{1,1a",
"a{0... |
/**
* Copyright (c) 2013-2014 <NAME> <<EMAIL>>, <NAME> <<EMAIL>>
*
* 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,... |
/*
* Copyright 2020 Usbong Social Systems, Inc.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by a... |
/**
* Copyright (c) 2021 <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, di... |
#include <atomic>
#include <cassert>
#include <cstdlib>
#include <functional>
#include <iostream>
#include <list>
#include <memory>
#include <mutex>
#include <string>
#include <type_traits>
#include <grpcpp/grpcpp.h>
#include "helloworld.grpc.pb.h"
#include "common.hpp"
using grpc::Server;
using g... |
#include "NetworkCommunication.h"
#include <iostream>
#include <unistd.h>
#include <errno.h>
#include "Common.h"
#include "../gen/NetworkMessage.pb.h"
#include "Logger.h"
NetworkCommunication::NetworkCommunication()
: _udp_con(CONNECTION_PORT)
, _running(false)
, _nw_thread(&NetworkCommunication::_threadHandle, t... |
/**
@file SensitiveDetector.cpp
@author <NAME>
@date 2020/01/30
**/
#include "SensitiveDetector.hpp"
#include "AnalysisManager.hpp"
#include <iostream>
#include <vector>
#include <G4ParticleDefinition.hh>
#include <G4UnitsTable.hh>
#include <G4Track.hh>
#include <G4Step.hh>
#include <G4HCofThisEvent... |
#include <mesos_exec.h>
#include <signal.h>
#include <cerrno>
#include <iostream>
#include <string>
#include <sstream>
#include <mesos_exec.hpp>
#include <process.hpp>
#include <boost/bind.hpp>
#include <boost/unordered_map.hpp>
#include "common/fatal.hpp"
#include "common/lock.hpp"
#include "common/logging.hpp"
#... |
#include <string>
#include <filesystem>
#include <windows.h>
#include "GameLauncher.h"
#include "Client.h"
typedef std::basic_string<TCHAR, std::char_traits<TCHAR>, std::allocator<TCHAR>> TSTRING;
/*TSTRING operator+(const TCHAR* arg1, const std::filesystem::path& arg2)
{
#ifdef UNICODE
return std::wstring(arg1) ... |
#define STEAMWORKS_CLIENT_INTERFACES
#include "Steamworks.h"
#include <iostream>
#include <iomanip>
#pragma comment( lib, "../Resources/steamclient" )
#pragma comment( lib, "../Resources/steam" )
void ShowError( TSteamError *err )
{
if ( !IS_STEAM_ERROR( (*err) ) )
return;
std::cout << "Error: "... |
// Copyright (c) 2017 University of Minnesota
//
// ADMM-Elastic Uses the BSD 2-Clause License (http://www.opensource.org/licenses/BSD-2-Clause)
// Redistribution and use in source and binary forms, with or without modification, are
// permitted provided that the following conditions are met:
// 1. Redistributions of ... |
#include "Conv.h"
#include <iostream>
#include <cmath>
#include "Data.h"
// Conv Conv::instance;
/*
Public
*/
Conv::Conv(
int convolve,
std::vector<double> psf_amp,
std::vector<double> psf_fwhm,
double psf_beta,
std::vector<double> psf_sigma,
std::vector<double> psf_sigma_overdx,
std::vector<double>... |
/*
SolarCamera.cpp - Camera controller.
*/
#include <SolarCamera.hpp>
SolarCamera::SolarCamera() : myCAM(OV2640, CS) {
SolarCamera::setup();
}
void SolarCamera::setup() {
uint8_t vid, pid;
uint8_t temp;
#if defined(__SAM3X8E__)
Wire1.begin();
#else
Wire.begin();
#endif
// set the CS as an ou... |
/***********[Graph.cc]
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 restriction, including
without limitation the rights to use, copy, modify, merge, publ... |
/*
ZillaLib
Copyright (C) 2010-2019 <NAME>
This software is provided 'as-is', without any express or implied
warranty. In no event will the authors be held liable for any damages
arising from the use of this software.
Permission is granted to anyone to use this software for any purpose,
includ... |
/*
* DetectLabel.cpp
*
* Created on: May 1, 2014
* Author: chd
*/
#include "DetectLabel.h"
DetectLabel::DetectLabel() {
//constructor
int blankWidth = 640; //
int blankHeight = 480; //
blankImage = Mat::ones(blankHeight, blankWidth, CV_8UC3);
blankImage.setTo(Scalar(255,255,255));
... |
/*
Copyright © 2015-2016 by The qTox Project Contributors
This file is part of qTox, a Qt-based graphical interface for Tox.
qTox is libre 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 versi... |
/* Copyright (C) 2014 <NAME>.
* This file is part of 0 A.D.
*
* 0 A.D. is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* 0 A.... |
#include "Multistdafx.h"
#pragma warning(disable:4244)
/*
! @file movietex.cpp
! @bref ムービーテクスチャクラス
! @author <NAME>
*/
#include "SailMovieTexture.h"
#define WM_GRAPHNOTIFY WM_USER+40
//デストラクタ
CMovieTexture::~CMovieTexture() {
}
//-----------------------------------------------------------------------------... |
/*=========================================================================
*
* Copyright 2011-2013 The University of North Carolina at Chapel Hill
* All rights reserved.
*
* Licensed under the MADAI Software License. You may obtain a copy of
* this license at
*
* https://madai-public.cs.unc.edu/vis... |
/*eLiSe06/05/99
Copyright (C) 1999 <NAME>
eLiSe : Elements of a Linux Image Software Environment
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at yo... |
////////////////////////////////////////////////////////////////////////////////
// //
// Author: <NAME> //
// Modified by: <NAME> //
// Upda... |
#include <sstream>
extern "C" {
#include <stdlib.h>
}
#include <iostream>
#include <set>
#include "ReflectionData.h"
#include "CoreTypeReflection.h"
//#include "JSON.h"
ReflectionData::DataVector ReflectionData::Types;
ReflectionData::IDMap ReflectionData::IDs;
ReflectionData::NameVector ReflectionData::Names;
void ... |
/*!
* \file src/solution/main.cc
* \brief Main program function.
*
* The program is a stripped-down simulation of an HMI panel. The main
* function is responsible for building the simulated HMI tree datastructure,
* defining a simulated runtime environment of an HMI panel, as well as
* implementing the approxim... |
#include "piece.h"
#include "badge.h"
#include "user.h"
#include <QCoreApplication>
#include <QDebug>
#include <QGraphicsScene>
#include <QGraphicsSceneMouseEvent>
#include <QRectF>
#include <QVector>
static volatile bool showRotated = false;
class ImageFileMap : public QMap<int, QString> {
public:
ImageFileMap()... |
/************************************************************************
*
* 0.process.cpp - test exercising the rw_process_create(),
* rw_process_kill() and rw_waitpid() functions
*
* $Id$
*
************************************************************************
*
* Licensed to the Apache Software F... |
/* See LICENSE.
The Minor Planet Center accepts astrometry from spacecraft using
a modification of their usual 80-column "punched-card" format. A
second line is used to tell you where the spacecraft was, relative
to the geocenter.
https://minorplanetcenter.net/iau/info/SatelliteObs.html
This code can reset t... |
#include "AddLicense.h"
#pragma warning(disable:4307)
using namespace std;
using namespace license;
typedef std::uint64_t hash_t;
constexpr hash_t prime = 0x100000001B3ull;
constexpr hash_t basis = 0xCBF29CE484222325ull;
char * NAME = "AddLicense";
char * VERSION = "0.1.1";
char * DESCRIPTION = "quick creation of l... |
// parallel inter-sequence alignment
#include <limits>
#include <array>
#include "simdalign.h"
struct slot_t
{
int id;
size_t pos;
slot_t() {}
slot_t(int id, size_t pos) : id(id), pos(pos) {}
inline bool operator==(const slot_t &other) const {
return id == other.id;
}
inline bool... |
//
// ppd.cpp
//
// Copyright (c) 1997-1998 <NAME>
//
// This software is released under the MIT License.
// http://opensource.org/licenses/mit-license.php
//
#include "stdafx.h"
#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
#include <math.h>
#include "smd.h"
/*****... |
// Copyright © 2017-2021 Trust Wallet.
//
// This file is part of Trust. The full Trust copyright notice, including
// terms governing use, modification, and redistribution, is contained in the
// file LICENSE at the root of the source code distribution tree.
#include "Bech32.h"
#include "HexCoding.h"
#include <gtest... |
/******************************************************************
*
* CyberX3D for C++
*
* Copyright (C) <NAME> 1996-2007
*
* File: NodeType.cpp
*
******************************************************************/
#include <string>
#include <cybergarage/x3d/NodeType.h>
#include <cybergarage/x3d/NodeString.h>
#inclu... |
/*
* Copyright 2021 <NAME> <<EMAIL>>
*
* This calculate the M2 variable for the e+ e- --> tau+ tau- process
* using YAM2 (https://github.com/cbpark/YAM2). The decay topology is
*
* X --> Y1 + Y2 --> vis1(p1) inv1(k1) + vis2(p2) inv2(k2)
*
* where X corresponds to sqrt(s) and Y's are the decaying particle (... |
/*
* Copyright (C) 2018 Jolla Ltd. <<EMAIL>>
*
* You may use this file under the terms of the BSD license as follows:
*
* "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 ... |
#include "ofApp.h"
void ofApp::setup() {
string videoPath = "videos/A001C000574.mov";
// string jsonPath = "test-video-timestamps.json";
// string srtPath =
// "/Users/justinblinder/dev/medialab/TwoMobilityFutures/Chandelier/led-video-sync/bin/data/"
// "aom-test_SRT_English.srt";
play... |
#include "navigation.hpp"
#include "../utils/utils.hpp"
#include "rclcpp_action/create_server.hpp"
#include "rclcpp_action/server.hpp"
#include <ctime>
#include <math.h>
Navigation::Navigation(std::string team, int id, int frequency) : rclcpp::Node("navigation_"+team+"_"+std::to_string(id)), Entity(frequency) {
_f... |
#include "opengl.h"
OpenGL::OpenGL(QWidget *parent) :
QGLWidget(parent)
{
x_angle = 0.0f;
y_angle = 0.0f;
radio = 10.0f;
scale_factor = 1.0f;
ground_size = 5;
initializeGL();
resizeGL(GL_SIZE_WIDTH, GL_SIZE_HEIGHT);
QObject::connect(&timer,SIGNAL... |
/*
* Software License Agreement (BSD License)
*
* Point Cloud Library (PCL) - www.pointclouds.org
* Copyright (c) 2015-, Open Perception, Inc.
* Copyright (c) 2015 The MITRE Corporation
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are pe... |
#include <vector>
#include <deque>
#include <algorithm>
#include <numeric>
#define GLOG_NO_ABBREVIATED_SEVERITIES
#include <glog/logging.h>
using namespace google;
#include "Function/volumealgo.h"
#include "../../ngtypes/volume.h"
#include "traceutil.h"
void TraceUtil::GetGradientVectorFlowForTrace(const Vo... |
/**
* Part of Epicinium NeuralNewt
* developed by A Bunch of Hacks.
*
* Copyright (c) 2020 A Bunch of Hacks
*
* 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.apach... |
/*
* If not stated otherwise in this file or this component's Licenses.txt file the
* following copyright and licenses apply:
*
* Copyright 2017 RDK Management
*
* 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 ... |
#include <gtest/gtest.h>
#include "../data/data.h"
#include "compare_pcs.h"
#include "tatami/base/Matrix.hpp"
#include "tatami/base/DenseMatrix.hpp"
#include "tatami/base/DelayedBind.hpp"
#include "tatami/base/DelayedSubset.hpp"
#include "tatami/utils/convert_to_dense.hpp"
#include "tatami/utils/convert_to_sparse.hpp... |
#include "RenderTricks.h"
#include "RendererState.h"
#include "Texture.h"
#include "Model.h"
#include "ShaderProgramCache.h"
#include "GameState.h"
#include "utils/dll_patcher.h"
#include "utils/helpers.h"
#include "GL/glew.h"
#include <glm/mat4x4.hpp>
#include <glm/mat4x3.hpp>
#include <glm/gtc/matrix_transform.hpp... |
#include <ros/ros.h>
#include <image_transport/image_transport.h>
#include <arpa/inet.h>
#include <string>
#include <iostream>
#include <fstream>
#include <sstream>
#include <tf/transform_broadcaster.h>
#include <geometry_msgs/PoseStamped.h>
#include <geometry_msgs/Pose.h>
#include <mrpt/base.h>
#include <mrpt/pos... |
#include "DrawLines.hpp"
#include "PathFont.hpp"
#include "ColorProgram.hpp"
#include "gl_errors.hpp"
#include <glm/gtc/type_ptr.hpp>
//All DrawLines instances share a vertex array object and vertex buffer, initialized at load time:
//n.b. declared static so they don't conflict with similarly named global variables... |
/* ================================================================
*
* AtlasWerks Project
*
* Copyright (c) <NAME>, <NAME>, <NAME>,
* <NAME>. All rights reserved. See Copyright.txt or for details.
*
* This software is distributed WITHOUT ANY WARRANTY; without even the
* implied warranty of MERCHANTABILITY or ... |
// Author: <NAME>
// Copyright (c) 2022
#include "dtx/dtx.h"
DTX::DTX(MetaManager* meta_man,
QPManager* qp_man,
VersionCache* status,
LockCache* lock_table,
t_id_t tid,
coro_id_t coroid,
CoroutineScheduler* sched,
RDMABufferAllocator* rdma_buffer_allocato... |
/*
* Copyright 2007-2021 CM4all GmbH
* All rights reserved.
*
* author: <NAME> <<EMAIL>>
*
* 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
... |
#include "Settings.h"
#include "Debug.h"
#include "OS.h"
#include "PDINI.h"
#include "Records.h"
#include "SDL.h"
#include "SDL_mixer.h"
#include <algorithm>
#include <array>
#include <cstdint>
#include <cstdlib>
#include <cinttypes>
#include <filesystem>
#include <iostream>
#include <optional>
#include <sstream>
names... |
#include "gl/all.hpp"
#include "scene/all.hpp"
#include "file.hpp"
#include "pi.hpp"
#include "root.hpp"
// External libraries.
#include <glad/glad.h>
#define GLFW_INCLUDE_NONE
#include <GLFW/glfw3.h>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <span>
#include <vector>
using namespace tlw;
V... |
#include "gtest/gtest.h"
#include "Value.h"
#include "Parser.h"
//literal
#define TEST_LITERAL(expect, content)\
do {\
Value v;\
v.parse(content);\
EXPECT_EQ(expect, v.get_type());\
} while (0)
TEST(TestParse, HandlesLiteral)
{
TEST_LITERAL(kType::Null, "null");
TEST_LITERAL(kType::True, "true"... |
/*
BFS never whitens a vertex, and thus the test ensures that each vertex
is enqueued at most once, and hence pushed at most once. O(V)
Because the procedure scans the adjacency list of each vertex
only when the vertex is dequed, it scans each adjacency list at most once. Since
the sum of the lengths of all the ad... |
/**************************************************************
* Unauthorized copying of this file, via any medium is strictly prohibited
* Proprietary and confidential
* Written by <NAME> <<EMAIL>>, April 2017
**************************************************************/
#include "Fetcher.h"
#include "curl/curl.h... |
/*-------------relationship.cpp-----------------------------------------------//
*
* Purpose: to model becoming an ideal relationship by shape matching and
* modification using shape contexts. Info here:
* https://en.wikipedia.org/wiki/Shape_context
*
* Notes: Ideal relationship shape will be a... |
// construction/destruction:
template<class TSig, class TCoef>
rsBiquadCascade<TSig, TCoef>::rsBiquadCascade(int newMaxNumStages)
{
if( newMaxNumStages >= 1 )
maxNumStages = newMaxNumStages;
else
maxNumStages = 12;
// allcocate memory for coefficients and buffers:
a1 = new TCoef[maxNumStages];
a2 = ... |
//===--- ModuleAssistant.cpp - Module map generation manager --*- C++ -*---===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
//===-- SymbolFile.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 <allegro.h>
/* This Class is Cell Which will be the place Where Atom/Ball
would kept */
class Cell{
int cell_color ; //= makecol(200,200,200);
int x,y;
int max_ball,current_ball;
int Owner;
BITMAP *C;
public:
Cell();
void set_x_y(in... |
/*
* Copyright (C) 2013 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 applicable ... |
//===--- StringMap.cpp - String Hash table map implementation -------------===//
//
// 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
//
//===---------------------------... |
// Copyright 2017 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 <lib/fidl/coding.h>
#include <lib/fidl/envelope_frames.h>
#include <lib/fidl/internal.h>
#include <lib/fidl/visitor.h>
#include <lib/fidl/walker.h... |
/*
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:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the followi... |
/*
* Copyright (C) 2012 by <NAME> (<EMAIL>)
* Copyright (C) 2012-2019 by UCSC Computational Genomics Lab
*
* Released under the MIT license, see LICENSE.txt
*/
#include "hal.h"
#include <algorithm>
#include <cstdlib>
#include <fstream>
#include <iostream>
using namespace std;
using namespace hal;
/** This is a ... |
/* Copyright (c) 2012-2015, <NAME>
* All rights reserved.
*
* This software may be used and distributed according to the terms of
* the New BSD License, which is incorporated herein by reference.
*/
#include <TBson>
#include <QDateTime>
#include <QRegExp>
#include <QStringList>
#include <QCoreApplication>
#includ... |
//===- jit-runner.cpp - MLIR CPU Execution Driver Library -----------------===//
//
// 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) 2019, The TurtleCoin Developers
// Copyright (c) 2020, The Proximus Project
// Please see the included LICENSE file for more information.
//////////////////////////////////////////
#include <walletbackend/BlockDownloader.h>
//////////////////////////////////////////
#include <config/Config.h>
#inclu... |
/*=========================================================================
*
* Copyright <NAME>, <NAME>, <NAME>. 2011.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.o... |
/**
* \file
* \brief
* \author <NAME>
* \copyright Copyright (c) 2016, <NAME>
* \license MIT, see LICENSE.
*/
#include "read.hh"
/**
* \brief Tokenize one textual expression.
*/
static std::vector<Token> tokenize(std::istream &stream) {
std::vector<Token> tokens;
int listLevel = 0;
class End... |
#include <glm/glm.hpp>
#include <string>
#include <vector>
#include "key.h"
#include "key_data.h"
#include "scad.h"
#include "transform.h"
using namespace scad;
constexpr bool kWriteTestKeys = false;
// Add the caps into the stl for testing.
constexpr bool kAddCaps = false;
enum class Direction { UP, DOWN, LEFT, RI... |
// used: random_device, mt19937, uniform_int_distribution
#include <random>
#include "misc.h"
// used: global variables
#include "../global.h"
// used: cheat variables
#include "../core/variables.h"
// used: convar interface
#include "../core/interfaces.h"
// used: angle-vector calculations
#include "../utilities/math... |
/*
* Copyright (c) 2015 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) 2018, NVIDIA CORPORATION. All rights reserved.
NVIDIA CORPORATION and its licensors retain all intellectual property
and proprietary rights in and to this software, related documentation
and any modifications thereto. Any use, reproduction, disclosure or
distribution of this software and related docum... |
#include "WSMenu.h"
#include "WSEvent.h"
#include "WSEventLoop.h"
#include "WSMenuItem.h"
#include "WSMenuManager.h"
#include "WSScreen.h"
#include "WSWindow.h"
#include "WSWindowManager.h"
#include <LibDraw/CharacterBitmap.h>
#include <LibDraw/Font.h>
#include <LibDraw/GraphicsBitmap.h>
#include <LibDraw/Painter.h>
#i... |
//===--- Fulfillment.cpp - Static metadata search ------------------------===//
//
// 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... |
#include "DataFormats/Provenance/interface/BranchDescription.h"
#include "FWCore/Utilities/interface/EDMException.h"
#include "FWCore/Utilities/interface/Exception.h"
#include "FWCore/Utilities/interface/FriendlyName.h"
#include "FWCore/Utilities/interface/FunctionWithDict.h"
#include "FWCore/Utilities/interface/TypeW... |
//=====-- ShrinkBorrowScope.cpp - Hoist end_borrows to deinit barriers. -=====//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2022 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
/**
*
* MIT License
*
* Copyright (c) 2021 <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, modif... |
// Copyright (c) 2018 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 agr... |
/* mopub_exchange_connector.cc
<NAME>, 15 March 2013
Implementation of the MoPub exchange connector.
*/
#include <algorithm>
#include <boost/tokenizer.hpp>
#include "mopub_exchange_connector.h"
#include "rtbkit/plugins/bid_request/openrtb_bid_request_parser.h"
#include "rtbkit/plugins/exchange/http_auction_hand... |
/*
* Copyright (c) 2020-2021 <NAME> <https://github.com/alex-spataru>
*
* 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... |
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <pybind11/complex.h>
#include <pybind11/chrono.h>
#include <pybind11/functional.h>
#include <seeta/FaceDetector.h>
#include <seeta/FaceLandmarker.h>
#include <seeta/FaceRecognizer.h>
#include <seeta/FaceTracker.h>
#include <seeta/SeetaNetStruct.h>
#inclu... |
/// \file
// optional_v2 library
//
// Copyright <NAME> 2019.
//
// Use, modification and distribution is subject to the
// MIT License. (See accompanying
// file LICENSE.txt or copy at
// https://opensource.org/licenses/MIT)
//
// Project home: https://github.com/Ma-XX-oN/destructive-move
//
// destructive_move.... |
/*
Stockfish, a UCI chess playing engine derived from Glaurung 2.1
Copyright (C) 2004-2008 <NAME> (Glaurung author)
Copyright (C) 2008-2015 <NAME>, <NAME>, <NAME>
Copyright (C) 2015-2016 <NAME>, <NAME>, <NAME>, <NAME>
Stockfish is free software: you can redistribute it and/or modify
it under the terms of t... |
#include "archive.h"
#include <cstring>
#include <boost/iostreams/copy.hpp>
#include <boost/iostreams/filter/zlib.hpp>
#include <boost/iostreams/filtering_stream.hpp>
#include <boost/iostreams/stream.hpp>
#include <core/logger.hpp>
#include <storage/resource.hpp>
namespace {
struct XP3ArchiveHeader {
uint8_t m... |
/*
Copyright (c) 2007 <NAME>. 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 require... |
/**********************************************************************************************
*
* Raylib RPG Example * A simple RPG made using raylib
*
* LICENSE: zlib/libpng
*
* Copyright (c) 2020 <NAME>
*
* This software is provided "as-is", without any express or implied warranty. In no event
* will the... |
#include "IntegrateApp.h"
#include <iostream>
using namespace std;
CIntegrateApp::CIntegrateApp( )
: cols_( 640 ), rows_( 480 )
, volume_( cols_, rows_ )
, volume_size_(3.0)
, exit_( false )
, time_ms_( 0 )
, frame_id_( 0 )
, traj_filename_( "" )
, pose_filename_( "" )
, seg_filename_( "" )
, camera_fil... |
#include <iostream>
#include <cstdint>
#include <fstream>
#include <string>
#include <sstream>
#include <iomanip>
#include "screen.h"
#include "state.h"
#include "opcode.h"
#include "util.h"
using namespace std;
State::State() {
for(int i = 0; i < 16; i++) {
regs[i] = 0x0000;
}
for(int i = 0; i <... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.