text stringlengths 3.08k 12.5k |
|---|
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the QtScxml module of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** Commercial License Usage
** Licensees holding vali... |
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SampleCode.h"
#include "SkView.h"
#include "SkCanvas.h"
#include "SkGradientShader.h"
#include "SkPath.h"
#include "SkRegion.h"
#include "SkShader.h"
#include "SkUtil... |
#include "global_loop_pipelining.h"
#include "../DDDG.h"
// Global loop pipelining.
//
// After loop unrolling, we define strict control dependences between basic
// block, where all the instructions in the following basic block depend on the
// prev branch instruction. To support loop pipelining, which allows the nex... |
/*
* treelist.cpp
*
* Created on: Mar 27, 2015
* Author: jahnka
*/
#include <stdbool.h>
#include <vector>
#include <stdlib.h>
#include <stdio.h>
#include <string>
#include <iostream>
#include <sstream>
#include <math.h>
#include <queue>
#include "matrices.h"
#include "treelist.h"
#include "rand.h"
using n... |
/*
MIT License
Copyright (c) 2017 ZetaChain_Native
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 <windows.h>
#include <psapi.h>
#include "engine.h"
void ShowMessage(char* msg){
MessageBox(NULL,msg,"Message",MB_OK);
}
SStr inttostr(int x){
SStr res;
int i,j,arr[15];
if (x == 0){
res.s[0] = '0';
res.s[1] = 0;
return res;
}
if (x < 0){
res.s[0] = '-';
x = -x;
j = 1;
... |
// Copyright 2018 The Beam Team
//
// 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 agre... |
// Copyright 2011 <NAME>
//
// BlockStreamReader.cpp
// MTV headers.
#include <Core/BlockStreamHeader.pb.h>
#include <Core/Dataflow/BlockStream/BlockStreamReader.h>
#include <Core/Util/Util.h>
using MTV::BlockStream::BlockStreamHeader;
using MTV::BlockStreamReader;
// System headers.
#include <algorithm>
#include <io... |
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkBitmap.h"
#include "SkCanvas.h"
#include "SkPath.h"
#include "Test.h"
#define DIMENSION 32
static void drawAndTest(skiatest::Reporter* reporter, const SkPath& ... |
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License, Version 1.0 only
* (the "License"). You may not use this file except in compliance
* with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* o... |
#include "uifooter.h"
#include <QDebug>
#include <QLabel>
#include <QPainter>
#include <QStaticText>
#include "clientmodel.h"
#include "walletmodel.h"
#include "bitcoinunits.h"
#include "optionsmodel.h"
#include "transactiontablemodel.h"
#include "transactionfilterproxy.h"
#include "guiutil.h"
#include "guiconstants.h... |
// Copyright 2020 <NAME>
#include <mpi.h>
#include <cmath>
#include <algorithm>
#include <functional>
#include <limits>
#include <numeric>
#include <random>
#include <utility>
#include <vector>
#include "shell_sort_batcher_merge.h"
Vector createRandomVector(int elements_count) {
std::random_device rd;
std::mt... |
////////////////////////////////////////////////////////////////////////////////
//
// Copyright 2006 - 2015, <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 res... |
// Copyright 2014 Google Inc. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
#include "packager/media/base/aes_encryptor.h"
#include <openssl/aes.h>
#include "packager/base/... |
#include "Lpc.h"
#include "AberthRoots.h"
#include <cmath>
#include <complex>
#include <random>
#include <iostream>
#include <wx/app.h>
std::vector<double> vc::model::Lpc::sWindow;
std::vector<double> vc::model::Lpc::analyze(const std::vector<double>& data, double preemphFrequency, double sampleRate)
{
const int ... |
//
// Created by cc on 2019-02-28.
//
#include "CodeShell.h"
#include <QToolButton>
#include <QHBoxLayout>
CodeShell::CodeShell(const QString &title, QWidget *contentWgt, QWidget *parent)
: QFrame(parent), _pContentWgt(contentWgt), _title(title)
{
initUi();
}
CodeShell::~CodeShell()
{
}
/**
*
*/
void Cod... |
#include <iostream>
#include <string>
#include <vector>
#include <log.hxx>
#include <cl.hxx>
#include <sol.hpp>
#include <ut/utility.hxx>
#include <sdl_input.hxx>
#include <renderer_factory.hxx>
#include <common.hxx>
// LUA state object
sol::state g_State;
// SDL input wrapper
proto::sdl_input g_Inpu... |
#include "Tile.h"
#include <Morph\Looks\LookSprite.h>
#include "GlobalTextureCont.h"
#include "Wall.h"
#include "Door.h"
#include "Stairs.h"
#include "Enemy.h"
#include "Item.h"
#include <Morph\Room.h>
#include "UIDungeon.h"
Tile::Tile(const sf::Vector2f &offset, const std::string &floor) : morph::Object(offset, 20) {... |
#include <iostream>
#include <math.h>
#include "gcp/program/Program.h"
#include "gcp/models/GaussianClusterModel.h"
#include "gcp/util/Astrometry.h"
#include "gcp/util/Exception.h"
#include "gcp/util/LogStream.h"
#include "gcp/util/IoLock.h"
#include "gcp/util/Exception.h"
#include "gcp/pgutil/PgUtil.h"
#include "... |
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <cuda.h>
#include <cuda_runtime.h>
#include <string.h>
#include "stringlib.h"
using namespace std;
#include "us_class.h"
void us::initialize(char *cfgFileName)
{
char *token;
char *firstToken;
char temp[LONGCHAR];
char listGroup1[LONGCHAR];
char ... |
#include <cstdio>
#include <map>
#include <queue>
#include <algorithm>
using namespace std;
static const int di[] = {0, -1, 1, 0, 0}, dj[] = {0, 0, 0, -1, 1};
inline int h(int s, const unsigned short hh[3][256], int N)
{
unsigned short l = 0;
for (int i = 0; i < N; i++) {
l = max(l, hh[i][(s>>(i<<3))&0xff]);
... |
/* Copyright (c) 2006, NIF File Format Library and Tools
All rights reserved. Please see niflib.h for license. */
//-----------------------------------NOTICE----------------------------------//
// Some of this file is automatically filled in by a Python script. Only //
// add custom code in the designated areas o... |
#include <opencv2/core/core.hpp>
#include <opencv2/highgui/highgui.hpp>
#include <iostream>
#include <fstream>
#include <boost/filesystem.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
#include <signal.h>
// Globals
struct sigaction g_action_sigterm;
struct sigaction g_action_sigusr1;
struct sigaction g... |
//
// Created by <NAME> on 23/10/2017.
//
#include "../include/Pipeline.h"
using namespace std;
template<class T>
static unsigned int levenshtein_distance(const T &s1, const T &s2) {
const size_t len1 = s1.size(), len2 = s2.size();
std::vector<unsigned int> col(len2 + 1), prevCol(len2 + 1);
for (unsi... |
//
// Mach-O relocation
//
// Copyright (C) 2004-2012 <NAME>
//
// 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 condit... |
//
// Created by huangkun on 2020/8/12.
//
#include <opencv2/opencv.hpp>
#include <opengv2/viewer/PointLandmarkViewer.hpp>
#include <opengv2/frame/CameraFrame.hpp>
opengv2::PointLandmarkViewer::PointLandmarkViewer(const std::string &strSettingPath, MapBase::Ptr map,
... |
/*************************************************************************
"BeatGames" Source File.
Copyright (C), BeatGames, 2014-2015
-------------------------------------------------------------------------
-------------------------------------------------------------------------
History:
- 10.01.2015 21:34 : Cr... |
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
#include <queue>
using namespace std;
bool done[50][5000];
struct state {
int at, cost;
state(int at_, int cost_): at(at_), cost(cost_) {}
}... |
#include "gpcSRC.h"
#include "gpcSRCinst.h"
#include "gpcSRClnk.h"
#include "gpccrs.h"
extern U1 gpaALFsub[];
extern char gpaALF_H_sub[];
gpcLZY* gpMEM::memPRINT( gpcLZY* pPRNT, I4 *pI4, I4 nI4 )
{
U8 //nLEN,
s;
I4x2 AB;
gpeCsz cAB;
I4 i = nI4-1, nCPY, nSKIP = 0;
gpPTR *pPi = (gpPTR*)pUn(pI4[i],sizeof(gpPTR));
... |
/*
ATEM Tally by <NAME> 2020
A simple tally light that shows an input's tally state using NodeRed as a server
https://github.com/Kardinia-Church/ATEM-Tally
main.cpp file responsible for the main entry point and code functions
*/
#define VERSION strip.Color(255, 0, 255)
#include <Adafruit_NeoPixel.h>
#includ... |
/**
* Copyright Soramitsu Co., Ltd. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0
*/
#include "ametsuchi/impl/postgres_block_storage.hpp"
#include "common/hexutils.hpp"
#include "logger/logger.hpp"
using namespace iroha::ametsuchi;
using shared_model::interface::types::HeightType;
PostgresBlockStor... |
/**
* Copyright (C) 2019-2022 Xilinx, Inc
*
* 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://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agre... |
// See the file "COPYING" in the main distribution directory for copyright.
#include "paraglob/paraglob.h"
#include "ahocorasick/AhoCorasickPlus.h"
paraglob::Paraglob::Paraglob()
: my_ac(new AhoCorasickPlus) {}
paraglob::Paraglob::Paraglob(const std::vector<std::string>& patterns)
: my_ac(new AhoCorasickPlus) {... |
/**
* @file introduction_to_pca.cpp
* @brief This program demonstrates how to use OpenCV PCA to extract the orientation of an object
* @author OpenCV team
*/
#include "opencv2/core.hpp"
#include "opencv2/imgproc.hpp"
#include "opencv2/highgui.hpp"
#include <iostream>
using namespace std;
using namespace cv;
// F... |
#include <memory.h>
#include <ctime>
#include <cstdio>
#include <cstdlib>
#include <climits>
#include <cctype>
#include <cstring>
#include <climits>
#include <cmath>
#include <vector>
#include <string>
#include <memory>
#include <functional>
#include <set>
#include <map>
#include <bitset>
#include <stack>
#include <que... |
#include <cstdio>
#include <cstring>
#include <vector>
#include <algorithm>
using namespace std;
#define NMAX 100000
#define MOD 998244353
#define PRIV 3
using i64 = long long;
using vi = vector<i64>;
i64 add(i64 a, i64 b) {
a += b;
if (a >= MOD)
a -= MOD;
return a;
}
i64 qpow(i64 a, i64 k) {
... |
#include "axis.h"
bool Axis::computeMotionControls(int time_passed)
{
double seconds_passed = 1000L / time_passed;
double distance_left = distanceToGo();
double dist_to_stop = distanceToStop();
bool approaching_target = sign(dist_to_stop) == sign(distance_left);
bool slowdown = (fabs(distance_left) > fabs(di... |
// Thesis.cpp : Defines the entry point for the console application.
//
#include "OpenCL.h"
#include "ConvNN.h"
#include "util.h"
#include "opencv2/core/core.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
void read_Mnist(std::string filename, std::vector<std::ve... |
///////////////////////////////////////////////////////////////////////////////
//
// File main.cpp
//
// MIT License
// Copyright (c) 2020 EigenMM
// 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... |
//
// Copyright Copyright 2009-2021, AMT – The Association For Manufacturing Technology (“AMT”)
// 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
//
// ... |
/***************************************************************************
copyright : (C) 2006 by <NAME>
email : <EMAIL>
copyright : (C) 2004 by <NAME>
email : <EMAIL>
(original MPC implementation)
**********************... |
/*
FILE: discrepancy.cpp
AUTHOR: <NAME> (<EMAIL>)
DATE: 3/5/2019
Description:
Calculates metrics about actual point densities vs expected point densitites
*/
#include "codegen.h"
#include <algorithm>
#include <set>
#include "shared/graph.h"
static float CalculateDiscrepancy(const std::vector<Vec2>& samples)
{
/... |
/* (c) <NAME>. See licence.txt in the root of the distribution for more information. */
/* If you are missing that file, acquire a complete release at teeworlds.com. */
#include <game/generated/protocol.h>
#include <game/server/gamecontext.h>
#include "hammer.h"
CHammer::CHammer(CGameWorld *pGameWorld, ... |
#include "Population.h"
#include "Individual.h"
#include "Style.h"
// DMcTools
#include "Math/Random.h"
#include <fstream>
Population::Population() { m_FNameBase = std::string("Ex") + std::to_string(irand(1000, 10000)); }
void Population::MoveParentToZoo(size_t i)
{
Zoo.push_back(Parents[i]);
Parents.erase... |
#pragma once
#include <algorithm>
#include <cmath>
#include <iostream>
#include <vector>
#include "Utility.hpp"
constexpr double pi = 3.1415926535897932384626433832795028841971694;
constexpr double EarthRadiusKm = 6371.0;
constexpr double KmInADegree = (pi*EarthRadiusKm)/180.0;
inline double RadiansToDegrees(double ... |
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkData.h"
#include "SkGeometry.h"
#include "SkPaint.h"
#include "SkPath.h"
#include "SkPDFUtils.h"
#include "SkStream.h"
#include "SkString.h"
#include "SkPDFTypes... |
#include <sodium.h>
#include <memory.h>
#include <vector>
#include <stdexcept>
#include "sodium-buffer.hpp"
#include "sodium-initializer.hpp"
#include "convert.hpp"
/*
Wrap sodium_malloc to ensure that memory is allocated on an 8-byte boundary
by allocating extra bytes if necessary.
Per the sodium_malloc documentatio... |
// Ejercicio 10 - All tests passed!
// Autor: <NAME>
// Fecha: 19/10/2020
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
// Muestra un vector por std::cerr, del tipo que sea
template <class T> void muestraVector(const std::vector<T>& vector) {
std::cerr << "El vector... |
// (C) Copyright <NAME> 2012.
//
// Distributed under the FreeBSD Software License (See accompanying file license.txt)
#include <gtest/gtest.h>
#include <grid.h>
#include <iostream>
#include <random> //c++11
#include "grad.h"
#include "basic_access_strategy.h"
typedef ls::Grad<Real, ls::BasicReadAccessStrategy > _Bas... |
// g++ qrd-mgs-batch.cpp -g -I ../util -I ../../../../Halide/include -L ../../../../Halide/bin $EMULATOR_LIBHALIDE_TO_LINK -lz -lpthread -ldl -std=c++11 -DVERBOSE_DEBUG
// env HL_DEBUG_CODEGEN=4 PRAGMAUNROLL=1 BITSTREAM="${HOME}/tmp/a.aocx" CL_CONTEXT_EMULATOR_DEVICE_INTELFPGA=1 INTEL_FPGA_OCL_PLATFORM_NAME="$EMULATOR... |
#include "bigssMathEigen.h"
#include <iostream>
#include <algorithm>
#include <Eigen/Dense>
void BIGSS::ax_xb(const Eigen::MatrixX4d &A, const Eigen::MatrixX4d &B, Eigen::Matrix4d &X)
{
Eigen::Matrix3d mList, xtmp, mat;
Eigen::Vector3d rotMat;
Eigen::MatrixXd C;
Eigen::VectorXd d;
size_t n... |
////////////////////////////////////////////////////////////////////////////////
//
// This file is part of the romato library.
//
// Copyright 2013-2022 <NAME>
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (the "Software"),
// ... |
#include <iostream>
#include <fstream>
#include <lacze_do_gnuplota.hh>
#include <utility>
#include "../inc/Matrix3x3.h"
#include "Cuboid.h"
#include "Vector3D.h"
#include "scene.h"
void menuDisplay();
int main() {
/* Initialize "Lacze do gnuplota" to work with in class scene*/
double XRange[2] = {0, 200};
... |
#include "views/gamelist/GridGameListView.h"
#include "ThemeData.h"
#include "Window.h"
#include "Log.h"
#include "views/ViewController.h"
#include "SystemData.h"
// ===========================================================================
// Part of this was written by Aloshi but was never finished and added to ES.... |
#include <iostream>
#include <iomanip> // for setw formatter
#include <map>
#include <set>
#include <string>
#include "imdb.h"
using namespace std;
/**
* Function: stall
* ---------------
* Interrupts code execution until the user hits
* the return key. Self-explanatory implementation.
*/
static void stall()
{
... |
#include <iostream>
#include <math.h>
#include "ScalarField.h"
template <class T>
ScalarField<T>::ScalarField(int xSize,
int ySize,
int xPadding,
int yPadding,
float xDisplacement,
float yD... |
#include <iostream>
#include <iomanip>
#include <random>
#include <cmath>
#include <chrono>
#include <getopt.h>
#include "TROOT.h"
#include "TFile.h"
#include "TCanvas.h"
#include "TH1F.h"
#include "TF1.h"
#include "TStyle.h"
#include "TPad.h"
#include "KinKal/MatEnv/MoyalDist.hh"
void print_usage() {
printf("Usage:... |
/*
* Copyright (C) 2008-2010 TrinityCore <http://www.trinitycore.org/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later ve... |
#include "spdrfiledata.h"
#include "SpdrLog"
#include <QCoreApplication>
#include <QCryptographicHash>
#include <QFile>
#include <QFileInfo>
#include <QDir>
/*!
\class SpdrFileData
\ingroup libspdr
\internal
\brief Used to cache the information about a file.
Can be used to compare two files
and dump fil... |
// Copyright (c) 2014-2018 Bauhaus-Universitaet Weimar
// This Software is distributed under the Modified BSD License, see license.txt.
//
// Virtual Reality and Visualization Research Group
// Faculty of Media, Bauhaus-Universitaet Weimar
// http://www.uni-weimar.de/medien/vr
#include <lamure/types.h>
#include <lamu... |
/*************************************************************
* > File Name : P2486.cpp
* > Author : Tony
* > Created Time : 2019/10/23 21:12:40
* > Algorithm : TreeChainSplit
**************************************************************/
#include <bits/stdc++.h>
using namespace s... |
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <iostream>
#include <sstream>
#include <cstdlib>
#include <string>
#include <unistd.h>
#include <cmath>
#include "window.h"
using namespace std;
const double pi = std::acos(-1);
Xwindow::Xwindow(int width, int height): width{width}, height{height} {
d = XOpenDi... |
//Morse Code Receiver/Transmitter v0.1
// - <NAME> - 10/08/2020
//Note: This should actually be done by logic hardware in e.g. an FPGA,
// not an inaccurate software implementation like this!
//Note: RX pin of one board connects to TX pin of the other board.
// For MKR boards change RX to pin 4 and TX to pin ... |
#include "quadtree.h"
#include <cfloat> // FLT_EPSILON
void PolygonMask::precompute()
{
// see http://alienryderflex.com/polygon/
int i, j = size - 1;
constant.resize(size);
multiple.resize(size);
for (i = 0; i < size; ++i)
{
if (polyY[j] == polyY[i])
{
constant[i] = polyX[i];
multip... |
#include <stdio.h>
#include <stdlib.h>
#include <sys/times.h>
#include <unistd.h>
#include "kiss_fft.h"
#include "kiss_fftnd.h"
static int gaussian_shaped_labels(kiss_fft_cpx *pData,
float *pTmp,
float sigma,
int wid... |
#include <form.h>
#include <iomanip>
#include <vector>
#include "NetworkProps.hh"
class NetworkProps::Impl {
WINDOW* win_;
FORM* form_;
std::vector<FIELD*> fields_;
std::string essid_;
snm::ConnectionProps props_;
enum Fields : uint32_t {
First,
AutoConnect = First,
En... |
// (C) 2016 University of Bristol. See License.txt
#include "Zp_Data.h"
void Zp_Data::init(const bigint& p,bool mont)
{ pr=p;
mask=(1<<((mpz_sizeinbase(pr.get_mpz_t(),2)-1)%(8*sizeof(mp_limb_t))))-1;
montgomery=mont;
t=mpz_size(pr.get_mpz_t());
if (t>=MAX_MOD_SZ)
throw max_mod_sz_too_small(t... |
// 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 <fcntl.h>
#include <fuchsia/sysinfo/c/fidl.h>
#include <grpc++/grpc++.h>
#include <lib/async-loop/cpp/loop.h>
#include <lib/fdio/fdio.h>
#include ... |
/*
* Copyright (c) 2017-2018 CelePixel Technology Co. Ltd. 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 r... |
#define LOG_TAG "silk-sharedh264-enc"
#include "SharedSimpleH264Encoder.h"
#include <algorithm>
#include <memory>
#include <vector>
#include <utils/Thread.h>
#include <utils/SystemClock.h>
#include <log/log.h>
using namespace android;
class SharedSimpleH264EncoderImpl;
class EncoderPool;
static std::vector<std::sh... |
#include<cmath>
#include<vector>
#include<functional>
#include<algorithm>
#include<exception>
#include<stdexcept>
#include<cassert>
#include<typeinfo>
#include<cstdio>
#include<cstring>
#include<map>
#include<random>
#include<omp.h>
#include<stdlib.h>
//#define USELOCALSAMPLESORT
#include "simdsort.hpp"
#include ... |
#include "sdk.h"
#include "global.h"
#include "Draw.h"
#include "GameUtils.h"
HWND G::Window = nullptr;
CScreen G::Screen = CScreen();
std::vector<FloatingText> G::DamageHit;
std::vector<Vector> G::walkpoints;
Vector G::vecUnpredictedVel = Vector(0, 0, 0);
QAngle G::LastAngle = QAngle();
QAngle G::AAA... |
/*---------------------------------------------------------------------------*\
Copyright (c) 2019, UCHICAGO ARGONNE, LLC.
The UChicago Argonne, LLC as Operator of Argonne National
Laboratory holds copyright in the Software. The copyright holder
reserves all rights except those expressly granted to licensees,
and U.S... |
#include "UI_Configuration.h"
#include "Application.h"
#include "SDL/include/SDL_cpuinfo.h"
#include "mmgr\mmgr.h"
UI_Configuration::UI_Configuration()
{
Enable(true);
setPos(ImVec2(20, 20));
fps_app.resize(GRAPH_SIZE);
ms_app.resize(GRAPH_SIZE);
memory.resize(GRAPH_SIZE);
}
UI_Configuration::~UI_Configuration... |
#include "sensor-board/peripheral/adc.h"
#include "com/can_pb.h"
#include "com/serial.hpp"
#include "utility/timing.h"
#include "utility/macros.h"
#include "utility/Metro.hpp"
#include "config.h"
can_msg can_raw_msg;
Serial serial;
Metro wait_heartbeat(1000);
Metro wait_adc_update(1000);
Can_PB canpb(CONST_CAN_RX_... |
/***************************************************************************
* Server GUI "angelina" for "Projektkurs C++" WS 07/08 *
* *
* *
* This program is free software; you can redistribute it and/or modify... |
#include <algorithm>
#include <iostream>
#include <ctime>
#include <cstdlib>
#include <unordered_map>
#include <map>
#include <vector>
#include <queue>
using namespace std;
#define INPUT_SIZE 64000 // 1 page means 1MB
#define RAM_SIZE 4000 // 1 means 1MB
#define STORAGE_SIZE 1000
#define ZPOOL_RATE 40 // ... |
#include "mgrs.h"
#include "utm_mgrs.h"
#include "latlon_utm.h"
#include "strutil.h"
using namespace geodesy;
Mgrs::Mgrs(int zone, char band, char e100k, char n100k, double easting,
double northing, Datum datum)
{
if (!(1 <= zone && zone <= 60)) throw std::range_error("invalid MGRS zone");
... |
// link_check implementation -----------------------------------------------//
// Copyright <NAME> 2002.
// 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 "link_check.hpp"
#include <boost/regex.hpp... |
/*
* Copyright (c) 2014 <NAME>, Inc. All rights reserved.
*/
#include "bgp/bgp_config.h"
#include "base/string_util.h"
const char *BgpConfigManager::kMasterInstance =
"default-domain:default-project:ip-fabric:__default__";
const int BgpConfigManager::kDefaultPort = 179;
const uint32_t BgpConfigManager::kDef... |
#include "Watchy_TEKO.h"
#define DARKMODE false
const uint8_t BATTERY_SEGMENT_WIDTH = 7;
const uint8_t BATTERY_SEGMENT_HEIGHT = 11;
const uint8_t BATTERY_SEGMENT_SPACING = 9;
const uint8_t WEATHER_ICON_WIDTH = 48;
const uint8_t WEATHER_ICON_HEIGHT = 32;
String textstring;
void WatchyTEKO::drawWatchFace() {
display... |
//===----------------------------------------------------------------------===//
//
// Copyright 2020-2021 The ScaleHLS Authors.
//
//===----------------------------------------------------------------------===//
#include "scalehls/Transforms/Utils.h"
#include "mlir/Dialect/Affine/LoopUtils.h"
#include "mlir/Dialect/A... |
// (C) Copyright 2016-2021 Xilinx, Inc.
// All Rights Reserved.
//
// 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 yo... |
//
// Created by moqi on 2019-08-28.
//
#include "PBAFFrame.h"
#include "AVAFPacket.h"
extern "C" {
#include <libavutil/frame.h>
#include <libavutil/imgutils.h>
}
PBAFFrame::PBAFFrame(CVPixelBufferRef pixelBuffer, int64_t pts, int64_t duration) : mPBuffer(CVPixelBufferRetain(pixelBuffer))
{
mInfo.pts = pts;
... |
// Copyright(c) 2019, 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 required b... |
/* 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 "MediaPipeFaceMeshObserverComponent.h"
#include "MediaPipePipelineComponent.h"
#include "MediaPipeShared.h"
#include "ump_api.h"
#include "mediapipe/modules/face_geometry/protos/face_geometry.pb.h"
#include "DrawDebugHelpers.h"
// Matrix.TransformFVector4(MP_TO_UE(V.pos));
UMediaPipeFaceMeshObserverCompone... |
// Adafruit Circuit Playground speaker library
// by <NAME> / Paint Your Dragon.
#include <Arduino.h>
#include "Adafruit_CPlay_Speaker.h"
// -------------------------------------------------------------------------
// Sets up Circuit Playground speaker for PWM audio output: enables 48 KHz
// high-speed PWM mode, con... |
#include <bits/stdc++.h>
using namespace std;
inline char read() {
static const int IN_LEN = 1000000;
static char buf[IN_LEN], *s, *t;
if (s == t) {
t = (s = buf) + fread(buf, 1, IN_LEN, stdin);
if (s == t) return -1;
}
return *s++;
}
template<class T>
inline void read(T &x) {
st... |
// By <NAME>, Obsidium Software
#define GET_INSTRINFO_ENUM
#define GET_INSTRINFO_MC_DESC
#ifdef CAPSTONE_X86_REDUCE
#include "X86GenInstrInfo_reduce.inc"
#else
#include "X86GenInstrInfo.inc"
#endif
#include <stdio.h>
#include <stdbool.h>
#include <stdint.h>
#include <string>
static const char *x86DisassemblerGetInst... |
#include <iostream>
#include <fstream>
#include "IR.hpp"
#include "AST.hpp"
#include "GRCPrinter.hpp"
#include "cverilog.hpp"
#include <string.h>
using namespace AST;
using namespace GRCDot;
using namespace CVER;
struct beeble_options {
bool gensm; ofstream smfile;
bool gendot; ofstream dotfile;
bool genver, g... |
/*
Copyright [2020] <NAME>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distri... |
//========================================================================
//
// UnicodeRemapping.cc
//
// Copyright 2018 Glyph & Cog, LLC
//
//========================================================================
#include <aconf.h>
#ifdef USE_GCC_PRAGMAS
#pragma implementation
#endif
#include <stdio.h>
#include ... |
/*
* GridTools
*
* Copyright (c) 2014-2019, ETH Zurich
* All rights reserved.
*
* Please, refer to the LICENSE file in the root directory.
* SPDX-License-Identifier: BSD-3-Clause
*/
#include "../../tools/multiplet.hpp"
#include "gtest/gtest.h"
#include <gridtools/common/gt_assert.hpp>
#include <gridtools/stora... |
/*
* Copyright (C) 2016 <NAME>
* All rights reserved.
*/
#include "assets/load_dir.h"
#include "assets/minigltf.h"
#include "gfx/gl/driver.h"
#include "gfx/camera.h"
#include "sdl_helper.h"
#include "common/log.h"
#include "use/mesh.h"
#include "gfx/scene.h"
#include "gfx/asset_render.h"
#include "gfx/deferred.h"
#i... |
#include "Isis.h"
#include "IsisDebug.h"
#include "IException.h"
#include "Pvl.h"
#include "ControlNet.h"
#include "ControlNetFilter.h"
#include "ControlNetStatistics.h"
#include "PvlGroup.h"
#include "Progress.h"
using namespace Isis;
using namespace std;
void ReadDefFile(ControlNetFilter & pcNetFilter, Pvl & pvlDef... |
#include "devices/tiago.h"
#include <boost/bind.hpp>
#include <chrono>
#include <regex>
#include <sstream>
#include <string>
#include <thread>
std::string TiagoState::JOINT_NAMES[TiagoState::NUM_JOINTS];
double TiagoState::JOINT_THRESHOLD = 0.0; // TODO, check if it is proper here
//double Robot1Interface::CONTROL_... |
////////////////////////////////////////////////////////////////////////////
// Module : ai_chimera_fire.cpp
// Created : 26.05.2003
// Modified : 26.05.2003
// Author : <NAME>
// Description : Fire and enemy parameters for all the chimera monsters
///////////////////////////////////////////////////////////... |
/*
This file is part of solidity.
solidity is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
solidity is distributed in the hope that i... |
// Copyright 2019 The Dawn 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 agreed t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.