text stringlengths 3.08k 12.5k |
|---|
///////////////////////////////////////////////////////////////////////////////
//
// C++ Source to HTML converter (VC6/7 version)
//
// [ JDG 10/31/2002 ]
//
///////////////////////////////////////////////////////////////////////////////
#include <boost/spirit/core.hpp>
#include <boost/spirit/symbols/symbols... |
// Copyright (C) 2019. Huawei Technologies Co., Ltd. All rights reserved.
// 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,... |
// Muduo - A reactor-based C++ network library for Linux
// Copyright (c) 2010, <NAME>. All rights reserved.
// http://code.google.com/p/muduo/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// * Redistribu... |
/**
* Authentic splay tree. 1ms slower than splay-s
*/
#include <cassert>
#include <cstdio>
#include <cstring>
#include <algorithm>
#include "lct.h"
using std::swap;
static struct Node {
int val, mx, pos;
int fa, lch, rch;
bool rev;
} m[NMAX + 1];
inline void push(int x) {
if (m[x].rev) {
... |
#include "justtoken.hpp"
const account_name MINE_CONTRACT = N(justminepool);
void justtoken::hi(account_name user) { require_auth(user); }
void justtoken::create(account_name issuer, asset maximum_supply) {
require_auth(_self);
auto sym = maximum_supply.symbol;
eosio_assert(sym.is_valid(), "invalid symbol name... |
/****************************************************************************
**
** Copyright (C) 2005-2008 Trolltech ASA. All rights reserved.
**
** This file is part of the example classes of the Qt Toolkit.
**
** Licensees holding a valid Qt License Agreement may use this file in
** accordance with the rights, respo... |
#include "semaphore.h"
#include "typeinfo"
Nan::Persistent<v8::Function> Semaphore::constructor;
Semaphore::Semaphore(char buf[], bool create, char mask[], bool debug, bool retry_on_eintr, unsigned int value /*= 1*/)
{
strcpy(this->sem_name, buf);
if (create)
{
unsigned int bit_mask = strtol(mask, NULL, 8);... |
/**
Copyright 2017 <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 following di... |
// Some tests for vgl_plane_3d
// <NAME>. 17, 2010
#include <iostream>
#include <sstream>
#include <cmath>
#include <vgl/vgl_plane_3d.h>
#include <vgl/vgl_point_3d.h>
#include <vgl/vgl_point_2d.h>
#include <vgl/vgl_vector_3d.h>
#include <vgl/vgl_ray_3d.h>
#include <vgl/vgl_closest_point.h>
#include <vgl/vgl_plane_3d.... |
/* The copyright in this software is being made available under the BSD
* License, included below. This software may be subject to other third party
* and contributor rights, including patent rights, and no such rights are
* granted under this license.
*
* Copyright (c) 2010-2017, ISO/IEC
* All rights reserved.
... |
#include <cassert>
#include <cmath>
#include <complex>
#include <vector>
#include "dsp.h"
#define IzeroEPSILON 1E-21 /* Max error acceptable in Izero */
static int compute_ntaps(double sampling_freq, double transition_width, double param)
{
double a = param / 0.1102 + 8.7;
int ntaps = (int)(a * sampling_freq ... |
//
// This program 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 version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it wil... |
/******************************************************************************
* Project: OGR
* Purpose: OGRGMLASDriver implementation
* Author: <NAME>, <even dot rouault at spatialys dot com>
*
* Initial development funded by the European Earth observation programme
* Copernicus
*
************************... |
/* 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... |
/* <editor-fold desc="MIT License">
Copyright(c) 2018 <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, mer... |
#include "ExpressionMatrix.hpp"
#include "ExpressionMatrixSubset.hpp"
#include "heap.hpp"
#include "SimilarGenePairs.hpp"
#include "timestamp.hpp"
#include "tokenize.hpp"
using namespace ChanZuckerberg;
using namespace ExpressionMatrix2;
#include <numeric>
void ExpressionMatrix::findSimilarGenePairs0(
const str... |
/***************************************************************************
*
* Copyright (C) 2005 <NAME> (<EMAIL>)
*
* 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 ... |
#include <Adafruit_NeoPixel.h>
#include <Arduino.h>
#ifdef __AVR__
#include <avr/power.h>
#endif
#include "lights.h"
#include "constants.h"
uint32_t Wheel(byte WheelPos);
Lights::Lights(unsigned int pin_number) {
led_pin = pin_number;
last_red_score = 100;
last_blue_score = 100;
currentSequence = kSeqD... |
/*
Copyright (c) 2008-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:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the fo... |
/* -------------------------------------------------------------------------- *
* OpenMM *
* -------------------------------------------------------------------------- *
* This is part of the OpenMM molecular simulation toolkit originating from *
... |
#include <opencv2/core/mat.hpp>
#include <thread>
#include <torch/script.h>
#include "i3d.h"
#include "i3dscene.h"
#include "icon.h"
#include "io.h"
#include "kinect.h"
#include "object.h"
#include "od.h"
#include "surface.h"
#include "usage.h"
void loadIcons(cv::Mat& spotifyIcon, cv::Mat& discordIcon, cv::Mat& faceb... |
/*
* ESP32AnalogRead.cpp
*
* Created on: Apr 10, 2020
* Author: hephaestus
* https://github.com/madhephaestus/ESPMutexDemo/blob/DSPTest/ESPMutexDemo.ino
*/
#include "ESP32AnalogRead.h"
ESP32AnalogRead::ESP32AnalogRead(int pinNum) {
if (!(pinNum < 0)) {
attach(pinNum);
}
}
void ESP32AnalogRead::at... |
#include <string>
#include "messages.h"
using std::string;
bool VK::DialogInfo::parse(const json &data) {
if(data == nullptr) {
return false;
}
try {
this->title = data.at("title").get<string>();
if(this->title == " ... " || this->title.empty()) {
this->title = "";
... |
/*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
=================... |
/**
* ///////////////////////
* // MIN COST MAX FLOW //
* ///////////////////////
*
* Authors: <NAME>, <NAME>
**/
/*********************
* Min cost max flow * (Edmonds-Karp relabelling + fast heap Dijkstra)
*********************
* Takes a directed graph where each edge has a capacity ('cap') and a
*... |
#include <ros/ros.h>
#include <ros/console.h>
#include <serial/serial.h>
#include <std_msgs/Float32.h>
ros::Publisher raw_signal_pub;
ros::Publisher signal_qual_pub;
ros::Publisher attention_pub;
ros::Publisher meditation_pub;
/* Lead in and out */
#define SYNC 0xAA
#define EXCODE 0x55
... |
/*
* sc_main.cpp
*
* Created on:
* Author:
*/
#define SC_INCLUDE_DYNAMIC_PROCESSES
#ifdef WITH_SCV
#include <axi/scv/recorder_modules.h>
#include <scv.h>
#include <scv/scv_tr.h>
#endif
#include "scc/report.h"
#include "tlm/scc/tlm_id.h"
#include <ace_axi_adapt.h>
#include <array>
#include <axi/pe/simple_in... |
#include "Enemy_Turret.h"
#include "Application.h"
#include "ModuleCollisions.h"
#include "ModulePlayer.h"
#include "ModuleParticles.h"
#include "ModuleRender.h"
#include <math.h>
#define PI 3.14159265
Enemy_Turret::Enemy_Turret(int x, int y) : Enemy(x, y)
{
angle[0].PushBack({ 337, 1674, 32, 30 });
angle[15].Pus... |
/*
* Copyright 2017-2019 <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 agree... |
#include <Arduino.h>
#include <Wire.h>
#include "flipBoard.h"
#include "panelCommands.h"
FlipBoard::FlipBoard()
{
rtcPanel = 0;
}
void FlipBoard::begin(uint8_t panelInfo[][2], uint8_t prows, uint8_t pcolumns, uint8_t prtcPanel)
{
rows = prows;
columns = pcolumns;
rtcPanel = prtcPanel;
for (int panelCoun... |
/*
* Copyright 2014-present Facebook, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or a... |
#include "fe/subsystems/graphic/renderObject/spriteBatch.hpp"
#include "fe/subsystems/physics/transformable.hpp"
#include "fe/math/matrix.hpp"
#include "fe/debug/profiler.hpp"
#include "fe/feAssert.hpp"
#include <SFML/Graphics/RenderTarget.hpp>
fe::spriteBatch::spriteBatch()
{
}
void fe::spriteBatch::add(fe::... |
/* GNU Ocrad - Optical Character Recognition program
Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011,
2012, 2013 <NAME>.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Fo... |
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "producerconsumer.h"
#include <vespa/vespalib/testkit/testapp.h>
#include <vespamalloc/malloc/allocchunk.h>
#include <vespamalloc/util/callstack.h>
#include <vespa/log/log.h>
LOG_SETUP("linkli... |
/*
* 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... |
/*
* Copyright 2013 Real Logic Ltd.
*
* 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 ... |
/*
* By downloading, copying, installing or using the software you agree to this license.
* If you do not agree to this license, do not download, install,
* copy or use the software.
*
*
* License Agreement
* (3-clause BSD License)
*
* Copyright (C) 2014-2017, s... |
#include "analyzer.h"
analyzer::analyzer(string _source) {
source = _source;
error = false;
line = 0;
}
analyzer::~analyzer() {
token_list.clear();
}
void analyzer::dump() {
cout << source << endl;
}
bool analyzer::proceed() {
bool comment = false;
bool address = false;
int dtype ... |
// Copyright 2016 The Iskip 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... |
#include <stdlib.h>
#include <stdio.h>
#define MAX_TREE_HT 10
struct MinHeapNode {
char data; // 输入的字符数组中的一个字符
unsigned freq; // 字符出现的次数
struct MinHeapNode *left, *right;
};
struct MinHeap { // 最小堆,作为优先队列使用
unsigned size; // 最小堆元素的个数
unsigned capacity; // 最大容量
struct MinHeapNode **array;
... |
#include <iostream>
#include "poo_repository.h"
#include "poo_controller.h"
#include "0_whatzap.h"
#include <vector>
string HELP = R"(help
)";
using namespace std;
class User;
class Chat;
class Registro{
public:
User *user;
int cont {0};
public:
Registro(User *user = nullptr) {
this->user = user... |
//
// Created by mats on 2018-03-08.
//
#include "piece_table/impl/piece_table_impl.h"
#include <fstream>
#include <vector>
#include <cassert>
// Sequence
piece_table_impl::piece_table_impl(const char *buffer, size_t length)
: _original(buffer), _add(),
_size(length) {
auto p = piece(false, 0, le... |
// This source file is part of the polarphp.org open source project
//
// Copyright (c) 2017 - 2018 polarPHP software foundation
// Copyright (c) 2017 - 2018 zzu_softboy <<EMAIL>>
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://polarphp.org/LICENSE.txt for license information
// S... |
/* Copyright 1996 by Abacus Research and
* Development, Inc. All rights reserved.
*/
#include <base/common.h>
#include <rsys/blockdev.h>
#include <hfs/dcache.h>
#include <file/file.h>
#include <algorithm>
using namespace Executor;
/* Opens and returns a new blockdev_t structure. Close it with
* blockdev_close w... |
// UUCode.cpp - Part of Helix
// Copyright (c) 2002 by <NAME>. All rights reserved.
// Started December 14, 2002
#include "CryptoLib\\ExCryptoUUCode.h"
//void UUEncode( char * pSrcFilename, FILE * pSrcFile, FILE * pDstFile )
void ExCryptoUUCode::UUEncode( const std::string & SrcFilenameStdStr, ExAPAutoPtr<E... |
#include "hlapi/hlapi.h"
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/types.h>
#include <string.h>
#include <random>
#include <chrono>
#include "hlapi/hlapi.h"
#include "utils/Logger.h"
#include "utils/minitrace.h"
#include "m0dular/utils/threading.h"
#include "m0dular/utils/pattern_scan.h"... |
/*
*
* Copyright 2011, 2012 by the CALATK development 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 a... |
#include "source_code\Sys_Headers_Precompiled.h"
//#include "Sys_CurveSettings_Wid.h"
//Default constructor
Sys_CurveSettings_Wid::Sys_CurveSettings_Wid(QWidget *parent){
this->ui.setupUi(this);
this->setParent(parent);
this->curveStyleList << "NoCurve" << "Solid" << "Dash" << "Dot" << "DashDot"<<"DashDotDot";
t... |
#include <fstream>
#include <cassert>
#include "pairtree.hpp"
#include "eef1.hpp"
// Create a node of the energytree. A recursive procedure that
// creates all of the energytree.
CTerm::CTerm(int depth, TYPE type) :
m_energy(0.0), m_undoEnergy(0.0)
{
if (depth > 0)
{
if (type == IDENTICAL)
{
m_pChi... |
// Copyright 2014 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
// Original code is licensed as follows:
/*
* Copyright 2013 ZXing authors
*
... |
#include <iostream>
#include <string>
#include <fstream>
#include <cstdio>
using namespace std;
void input();
void searchname();
void searchage();
void searchprogram();
void quit();
void displayall();
void search();
void deleteFile();
void editFile();
int main()
{
system ("title Basi... |
#include <dedicatedslave/data/data.h>
#include <QXmlStreamReader>
#include <QString>
#include <QDebug>
#include <QHash>
#include <iostream>
#include <QFileDialog>
#include <QSqlDatabase>
#include <QList>
#include <QListIterator>
#include <QStringListIterator>
#include <QApplication>
/*!
* \brief DedicatedSlaveData c... |
/* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
*
* Gearmand client and server library.
*
* Copyright (C) 2011 Data Differential, http://datadifferential.com/
* Copyright (C) 2008 <NAME>, <NAME>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modificati... |
// Copyright (c) 2018 <NAME>coin Developer
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "main.h"
#include "client-api/server.h"
#include "client-api/protocol.h"
#include "rpc/server.h"
#include "indexnode-sync.h"
#inc... |
#include "EverythingRunnerEngine.h"
#include "MetaMorpheusTask.h"
#include "DbForTask.h"
#include "../EngineLayer/GlobalVariables.h"
#include "../EngineLayer/EventArgs/StringEventArgs.h"
#include "../EngineLayer/EventArgs/StringListEventArgs.h"
#include "EventHandler.h"
#include "EventArgs/XmlForTaskListEventArgs.h"
#... |
/**************************************************************
*
* 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 y... |
#include <iostream>
#include "L1Trigger/L1TMuonEndCap/interface/PhiMemoryImage.h"
PhiMemoryImage::PhiMemoryImage():_keyStationOffset(0){
for (int i = 0; i < PhiMemoryImage::TOTAL_UNITS; i++) _buffer[i] = 0;
}
PhiMemoryImage::PhiMemoryImage(PhiMemoryImage::value_ptr buffer, int offset):_keyStationOffset(offset){
... |
/*BEGIN_LEGAL
Intel Open Source License
Copyright (c) 2002-2016 Intel Corporation. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
Redistributions of source code must retain the above copyr... |
/*
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, merge, publish, distribute, sub... |
/// \ingroup newmat
///@{
/// \file tmta.cpp
/// Part of matrix library test program.
//#define WANT_STREAM
#include "include.h"
#include "newmatap.h"
#include "tmt.h"
#ifdef use_namespace
using namespace NEWMAT;
#endif
/**************************** test program ******************************/
static void p... |
/*
statusLED.cpp - Library for status LED control (blinking, flash sequences, on, off, pwm)
Created by TheDIYGuy999 May 2016 - April 2021
Released into the public domain.
Dez. 2019: added ESP32 support
Dez. 2019: replaced sigmaDelta function with ledc funvtion, so we can use more 16 instead of 8 timers
*/
#inc... |
#include "StdAfx.h"
#include "UIKeyBinding.h"
#include "UIXmlInit.h"
#include "xrUIXmlParser.h"
#include "UIEditKeyBind.h"
#include "UIScrollView.h"
#include "../xr_level_controller.h"
#include "../string_table.h"
CUIKeyBinding::CUIKeyBinding() {
for (int i = 0; i < 3; i++)
AttachChild(&m_header[i]);
... |
//===--- Entity.cpp - Cross-translation-unit "token" for decls ------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/*
Copyright (C) 2011 by <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute,... |
#include <adaptive_distinguishing_sequence.hpp>
#include <logging.hpp>
#include <mealy.hpp>
#include <reachability.hpp>
#include <read_mealy.hpp>
#include <separating_family.hpp>
#include <splitting_tree.hpp>
#include <test_suite.hpp>
#include <transfer_sequences.hpp>
#include <docopt.h>
#include <algorithm>
#include... |
/* This file is part of Into.
* Copyright (C) Intopii 2013.
* All rights reserved.
*
* Licensees holding a commercial Into license may use this file in
* accordance with the commercial license agreement. Please see
* LICENSE.commercial for commercial licensing terms.
*
* Alternatively, this file may be used und... |
// Fill out your copyright notice in the Description page of Project Settings.
#include "FieldOfViewComp.h"
#include "Engine/World.h"
#include "DrawDebugHelpers.h"
#include "ProceduralMeshComponent.h"
UFieldOfViewComp::UFieldOfViewComp()
{
PrimaryComponentTick.bCanEverTick = true;
viewAngle = 120;
amountOfTraces... |
#include "MebContributor.hh"
#include "Endpoint.hh"
#include "EbLfClient.hh"
#include "utilities.hh"
#include "psalg/utils/SysLog.hh"
#include "psdaq/service/MetricExporter.hh"
#include "psdaq/service/EbDgram.hh"
#include <string.h>
#include <cstdint>
#include <string>
using namespace XtcData;
using namespace Pds:... |
#include "osu_mania.h"
#include <string>
using namespace OSUMANIA;
std::vector<std::vector<int>> hitobjectAtlas;
std::string md5;
void GenHitobjectAtlas(Play* _play)
{
// Clear the vector
for (std::vector<int>& indices : hitobjectAtlas)
{
indices.clear();
std::vector<int>().swap(indices);
}
hitobjectAtlas... |
/*******************************************************************************
@module rennderer-patht
@abbreviation patht ==> path tracing
@link path tracing reference - https://en.wikipedia.org/wiki/Path_tracing
==----------------------------------------------------------------------------==
MIT License
Copyri... |
# include <Siv3D.hpp> // OpenSiv3D v0.4.3
# include <emscripten.h>
struct Bubble
{
// バブルの円の半径
static constexpr int32 CircleR = 30;
// バブルの円
Circle circle;
// バブルのインデックス
int32 index;
// 接続済みなら true に
bool connected = false;
void draw() const
{
if (connected)
... |
#include "parseEdgeFile.hpp"
#include <sstream>
#include <regex>
#include <iostream>
#include <string>
#include <numeric>
void parseEdgeFile(fileObj &ef, dataProp &dp, dataObj &dat){
// Open file
ef.open(fMode::read);
// Check formating errors
efErrCheck(ef);
// Extract properties
edgeExtractProperties(ef, d... |
#include "Camera.h"
//#include "ChunkManager.h"
#include <glm/gtc/matrix_transform.hpp>
Camera::Camera() : Camera(45.0f, 16.0f/9.0f) {}
Camera::Camera(float32 fov, float32 aspectRatio, float32 nearPlane, float32 farPlane) {
setPerspective(fov, aspectRatio, nearPlane, farPlane);
}
Camera::~Camera() {}
void Camera... |
/**********************************************************************************
* MIT License
*
* Copyright (c) 2018 <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 with... |
/*
Developers: DSOR Team -> @isr.ist.pt Instituto Superior Tecnico
Description: Please check the documentation of this package for more info.
*/
// this header incorporates all the necessary #include files and defines the class "Gnss2Utm"
#include "Gnss2Utm.h"
/*
@.@ CONSTRUCTOR: put all dirty work of initializations ... |
// Copyright 2009-2019 NTESS. Under the terms
// of Contract DE-NA0003525 with NTESS, the U.S.
// Government retains certain rights in this software.
//
// Copyright (c) 2009-2019, NTESS
// All rights reserved.
//
// Portions are copyright of other developers:
// See the file CONTRIBUTORS.TXT in the top level directo... |
#include <iostream>
#include <iomanip>
#include <fstream>
#include <cmath>
#include <climits>
#include <string>
/* Program name: main.cpp
* Author: <NAME>
* Date last updated: 4/18/2021
* Purpose: Asks the user for the number of votes received during a ballot, totals the votes, and then finds the percentage each can... |
//
// GISTool_ImageCmds.cpp
// SceneryTools_xcode6
//
// Created by <NAME> on 11/12/16.
//
//
#include "GISTool_ImageCmds.h"
#include "GISTool_Utils.h"
#include "GISTool_Globals.h"
#include "BitmapUtils.h"
#include "AssertUtils.h"
#include "MathUtils.h"
#include "GISUtils.h"
static void inc_rgba(int rgba8, float i... |
// Fill out your copyright notice in the Description page of Project Settings.
#include "KnightActor.h"
#include "CollisionBox.h"
#include "Board.h"
#include "ChessController.h"
// Sets default values
AKnightActor::AKnightActor()
{
// Set Static Mesh Component
static ConstructorHelpers::FObjectFinder<UStaticMesh> F... |
#include <iostream>
#include <sys/time.h>
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <pybind11/numpy.h>
#include "libqpsolver.h"
#include "qpsolver.h"
using namespace std;
namespace py = pybind11;
using pyarray = std::optional<py::array_t<double>>;
bool unit_test_debug_print = false;
double t... |
//
// Created by <NAME> on 2019-10-20.
// Copyright (c) 2019 <NAME>. All rights reserved.
//
#include "LifeBrush.h"
#include "LinearPath.h"
bool LinearPath::conditionallyAddPoint(FVector point, float radius, FSurfaceIndex surfaceIndex)
{
if (!_brushIndex)
clear();
auto& points = _brushPoints.pts;
// check i... |
//===-- Cpu0MCInstLower.cpp - Convert Cpu0 MachineInstr to MCInst ---------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#include "oglwidget.h"
#include <math.h>
#include <iostream>
#define PI 3.14159265358979323846
using namespace std;
static double alpha = 45.0; // rotation angle
// initialize Open GL lighting and projection matrix
void InitLightingAndProjection() // to be executed once before drawing
{
// light positions and c... |
#include "cmdLine.h"
#include "chatClient.h"
#include "color.h"
// 命令行参数
// 比如 add 默认添加还好友
// add -g 添加group
// ls 显示在线好友
// ls -a 显示所有好友
std::unordered_map<std::string, std::string> CmdHandler::commandMap = {
// {"help", "显示所有支持的命令,格式:help"},
{"help", "Show command list, usage: help"},
{"chat", "Chat to ... |
// including header files
#include <iostream>
#include <string.h>
#include <stack>
#include <stdlib.h>
using namespace std;
/*
__author__ = <NAME>
__email__ = <EMAIL>
__Github__ = https://github.com/surajsinghbisht054
*/
///++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
/// ... |
#include "vgraph.h"
#define STB_IMAGE_IMPLEMENTATION
#include "ezsift.h"
#include "stb_image.h"
#include <iostream>
ezsift::Image<unsigned char> read_jpg(const char *filename){
int w, h, c;
unsigned char * rgb_image = stbi_load(filename, &w, &h, &c, 0);
if (!rgb_image) {
fprintf(stderr, "Cannot loa... |
//********************************************************
// Syzygy is licensed under the BSD license v2
// see the file SZG_CREDITS for details
//********************************************************
#include "arPrecompiled.h"
#include "arInteractable.h"
#if (defined(__GNUC__)&&(__GNUC__<3))
#include ... |
// Copyright 2020 <NAME>
#include "../../../modules/task_3/napylov_e_radix_sort_simple_merge/radix_sort_int_sm.h"
#include <mpi.h>
#include <iostream>
#include <vector>
#include <queue>
#include <stack>
#include <random>
#include <ctime>
#include <algorithm>
// #define DEBUG
void print_vec(std::vector<int> vec) {
... |
#include "DateEditor.h"
int DateEditor::getDateInteger() {
string dateString= year + month + day;
int dateInteger = Utils::convertStringIntoInt(dateString);
return dateInteger;
}
string DateEditor::getDateString() {
string date= year + "-" + month + "-" + day;
return date;
}
void DateEditor::setC... |
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
#ident "$Id$"
/*======
This file is part of PerconaFT.
Copyright (c) 2006, 2015, Percona and/or its affiliates. All rights reserved.
PerconaFT is free software: you can redistribute it and/or modif... |
//
// begin license header
//
// This file is part of Pixy CMUcam5 or "Pixy" for short
//
// All Pixy source code is provided under the terms of the
// GNU General Public License v2 (http://www.gnu.org/licenses/gpl-2.0.html).
// Those wishing to use Pixy source code, software and/or
// technologies under differ... |
/*
* This file is part of danmaQ.
*
* DanmaQ 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.
*
* DanmaQ is distributed in the... |
#include "steriocalibration.h"
#include <QDebug>
#define SQUERE 0.0254f //Размер клетки в метрах
#define SX 8 //Кол-во клеток в сетке по X
#define SY 6 //Кол-во клеток в сетке по Y
#include <opencv2/calib3d/calib3d.hpp>
#include <opencv2/imgproc/imgproc.hpp>
using namespace camera;
using namespace cv;
... |
#include <gflags/gflags.h>
#include <glog/logging.h>
#include <time.h>
#include <yaml-cpp/yaml.h>
#include <boost/filesystem.hpp>
#include <cmath>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <memory>
#include <string>
#include <thread>
#include <unordered_map>
#include <vector>
#include "nexus/... |
/*
* Author: rainoftime
* File Description: SAT solver
* Creation Date: 2017.
* Modification History:
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <algorithm>
#include <functional>
#include "pdqsort.h"
#include "sat_solver.h"
#define HALFLIFE 128
#define _DT 32 // RSAT phase select... |
/*
* Copyright (c) 2019 Opticks Team. All Rights Reserved.
*
* This file is part of Opticks
* (see https://bitbucket.org/simoncblyth/opticks).
*
* 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 ... |
// ConsoleApplication1.cpp : This file contains the 'main' function. Program execution begins and ends there.
//
#include "pch.h"
#include <iostream>
#include <fstream>
#include <string>
#include <time.h>
//#include <cuda_runtime.h>
#define RST "\x1B[0m"
#define RED "\x1B[31m"
#define GRN "\x1B[32m"
#define YEL "\x1B... |
/*
* BSD 3-Clause License
*
* Copyright (c) 2018, <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
... |
#include <iostream>
#include <string>
#include "../include/engine/engine.h"
#include "../include/engine/texture.h"
#include "../include/engine/font.h"
#include "../include/engine/text.h"
#include "../include/sprite.h"
#include "../include/player.h"
#include "../include/world.h"
#include "../include/enemy.h"
#define WI... |
#include <string.h>
#include <assert.h>
#include "serviceperiod.h"
#include "defuns.h"
using namespace std;
static time_t get_time_t(int tm_mday, int tm_mon, int tm_year, int tm_sec, int tm_min, int tm_hour)
{
struct tm t;
t.tm_sec = tm_sec;
t.tm_min = tm_min;
t.tm_hour = tm_hour;
t.tm_mday = tm_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.