text stringlengths 3.08k 22k |
|---|
/*
// Copyright (c) 2021 Hewlett-Packard Development Company, L.P.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless requi... |
/*
* Copyright (c) 2019 <NAME>
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include <iostream>
#include "delfem2/bem.h"
#include "delfem2/primitive.h"
#include <GLFW/glfw3.h>
#include "delfem2/opengl/glfw/viewer_glfw.h"
#includ... |
#include "Common.h"
#include "PathFinding.h"
#include "MapTools.h"
namespace { auto & bwemMap = BWEM::Map::Instance(); }
namespace { auto & bwebMap = BWEB::Map::Instance(); }
using namespace UAlbertaBot;
inline bool validChoke(const BWEM::ChokePoint * choke, int minChokeWidth, bool allowMineralWalk)
{
if (((Cho... |
#include "./Swapchain.h"
#include <vulkan/vulkan_core.h>
#include "PhysicalDevice.h"
#include "LogicalDevice.h"
#include "Instance.h"
#include "GraphicsPipeline.h"
extern Window g_Window;
extern std::unique_ptr<PhysicalDevice> g_physicalDevice;
extern std::unique_ptr<LogicalDevice> ... |
/* test_weakSignal_plugin.cpp
* This is a test plugin, you can use it as a demo.
* 2019-5-18 : by YourName
*/
#include "v3d_message.h"
#include <vector>
#include "test_weakSignal_plugin.h"
#include <iostream>
#include <QFileDialog>
using namespace std;
Q_EXPORT_PLUGIN2(test_weakSignal, TestPlugin);
QStringList ... |
/*
* Copyright (c) 2010, <NAME>, <NAME>, <NAME>,
* <NAME>, <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... |
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <random>
// 1879700 <NAME>
using namespace std;
// function prototype:
void printIntVector(vector<int> intv);
void printCharVector(vector<char> charv);
void squareAndPrint(int x);
void palindrome(vector<int> vint);
void palindrome(... |
#include "stdafx.h"
#include "effectorshot.h"
#include "../PSObject.h"
#include "../xr_trims.h"
#include "hudmanager.h"
#include "WeaponHUD.h"
#include "WeaponM134.h"
#include "entity.h"
void __stdcall CWeaponM134::RotateCallback_norm(CBoneInstance* B)
{
CWeaponM134*W = (CWeaponM134*)B->Callback_Param;
... |
/************************************************************************************
* Copyright (C) 2017, Copyright Holders of the ALICE Collaboration *
* All rights reserved. *
* ... |
/*`
* Copyright 2017 <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 ag... |
//
// Created by gurth on 9/16/20.
//
#include <iostream>
#include <string>
#include <getopt.h>
#include <yaml-cpp/yaml.h>
#include "error.h"
#include "process.h"
using namespace std;
Process::Process()
{
this_info=default_info;
}
Process::Process(system_info sysinfo)
{
this_info=sysinfo;
}
Process::~Proce... |
/*
* Copyright (c) 2016-2016 <NAME> http://www.irlan.net
*
* 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,
* inclu... |
/*
* main_optimize.cpp
* Date: 2013-01-28
* Author: <NAME> (<EMAIL>)
*/
#define FUSION_MAX_VECTOR_SIZE 20
#include <gpcxx/tree/basic_tree.hpp>
#include <gpcxx/generate/uniform_symbol.hpp>
#include <gpcxx/generate/node_generator.hpp>
#include <gpcxx/generate/ramp.hpp>
#include <gpcxx/operator/mutation.hpp>
#includ... |
/**
*
* Author: <NAME>
* Homepage: https://github.com/gabrielclavero/gc-acm-solutions
*
*/
#include <iostream>
using namespace std;
const int MAXDIGITS = 1000;
const int PLUS = 1;
const int MINUS = -1;
typedef struct {
char digits[MAXDIGITS];
int signbit;
int lastdigit;
} bignum;
void print_bignum(bignum *n);
v... |
///////////////////////////////////////////////////////////////////////////////
// Dem Bones - Skinning Decomposition Library //
// Copyright (c) 2019, Electronic Arts. All rights reserved. //
///////////////////////////////////////////////////////////////////////////////
... |
/*******************************************************************************
Copyright (c) 1999-2009 by Text Analysis International, Inc.
All rights reserved.
********************************************************************************
*
* NAME: URL.CPP
* FILE: c:\dev\nlplite\url.cpp
* CR: 02/11/99 AM.
* SUBJ:... |
/*
* Copyright (c) 2017, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, ... |
/*
<NAME>, & <NAME>. (2017).
"Sequential image segmentation based on min- imum spanning tree representation".
Pattern Recognition Letters, 87 , 155–162.
https://doi.org/10.1016/j.patrec.2016.06.001 .
*/
#include "smst.h"
void smst::mat2array()
{
for (int i = 0; i < M; i++) {
for (int j = 0; j < N; j++)... |
/**
* Copyright (c) 2021 OceanBase
* OceanBase CE is licensed under Mulan PubL v2.
* You can use this software according to the terms and conditions of the Mulan PubL v2.
* You may obtain a copy of Mulan PubL v2 at:
* http://license.coscl.org.cn/MulanPubL-2.0
* THIS SOFTWARE IS PROVIDED ON AN "AS IS" BAS... |
#include <complex>
#include <iostream>
#include <fstream>
#include <sstream>
#include <numeric>
#include <string>
#include <typeinfo>
#include <time.h>
#define NRUNS 10
#include "CL/sycl.hpp"
#include "oneapi/mkl.hpp"
using index_t = std::int64_t;
template <typename T>
inline void read_carray(std::ifstream& f, int ... |
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2020 Couchbase, 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
*
* ... |
#include <sstream> // ostringstream
#include <iomanip> // std::setw
#include <stdio.h> // printf
#include "allocore/math/al_Constants.hpp"
#include "allocore/system/al_Time.hpp"
/* Windows */
#if defined(AL_WINDOWS)
#include <windows.h>
/*
Info on Windows timing:
http://windowstimestamp.com/description
*/
/*
// single... |
/*
* Program: Period98
*
* File: project.cpp
* Purpose: implementation-file for
* project
* Author: <NAME>
* Created: 1996
* Copyright: (c) 1996-1998, <NAME>
*/
#include <fstream.h>
#include <sys/stat.h>
#include <ctype.h>
#include <string.h>
#include "version.h"
#includ... |
//----------------------------------*-C++-*----------------------------------//
/*!
* \file test_BoundaryDiffusion.cc
* \author <NAME>
* \date Apr 1, 2012
* \brief Test of BoundarySN class
*/
//---------------------------------------------------------------------------//
// LIST OF TEST FUNCTIONS
#define TES... |
/*
* Copyright (C) 2006-2013 Music Technology Group - Universitat Pompeu Fabra
*
* This file is part of Essentia
*
* Essentia is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation (FSF), either version... |
#include "cubemapgen.h"
#include <chrono>
#include "types.h"
#include "imageutils.h"
#include "CubeMap.h"
using hrc = std::chrono::high_resolution_clock;
typedef hrc::time_point tp;
NAN_METHOD(GetTestSphere) {
if (!info[0]->IsArray()) Nan::ThrowError("first argument must be an array");
v8::Local<v8::Array> jsA... |
/*
(C) DMHSW 2020
Starter file for GSGE projects. Recommended you work from this base.
*/
// using namespace gekRender;
#include "FontRenderer.h"
#include "gekrender.h"
// My AL Utils
#include "GekAL.h"
// Engine
#include "GkEngine.h"
// C stuff
#include <chrono>
#include <clocale>
#include <cstdlib>
using namespace... |
#include "stdafx.h"
#include "utils.h"
#include "Operators.h"
#include "Builder.h"
#include "Variables.h"
#include "Operands.h"
using namespace SCRambl;
using namespace SCRambl::Operators;
/* Operators::Operation */
Operand Operation::EvaluateAuto(const Operand& lop, const Operand& rop) {
ASSERT(m_AutoType != max_op... |
// conversions have to be registered for each object file
#include "../tnl_conversions.h"
#include "MeshWriters.h"
#include "../typedefs.h"
#include <TNL/Meshes/Readers/MeshReader.h>
#include <TNL/Meshes/Writers/VTKWriter.h>
#include <TNL/Meshes/Writers/VTUWriter.h>
#include <TNL/Meshes/Writers/VTIWriter.h>
templat... |
#pragma once
#include <tuple>
#include <string_view>
#include "expected.hpp"
#include <opencv2/core/mat.hpp>
#include <glad/glad.h>
#include <SDL2/SDL.h>
#include <SDL2/SDL_keycode.h>
class Window
{
SDL_Window *m_sdl_window;
SDL_GLContext m_gl_context;
static struct initiative {initiative () {std::cout << "let'... |
#include <StdInc.h>
#include <Hooking.h>
#include <EntitySystem.h>
#include <MinHook.h>
#include <sstream>
#include <msgpack.hpp>
namespace rage
{
class netObject;
class fwEvent
{
public:
virtual ~fwEvent() = 0;
virtual void m_8() = 0;
virtual bool Equals(rage::fwEvent* other) = 0;
virtual int32_t G... |
/*
Copyright 2020 <NAME> and the splitflap contributors
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 applicab... |
// NavManager.cpp - implements the class for keeping track of navigation points
//
// Copyright (c) 2015 by <NAME>
//
// This file is distributed under the MIT license, which basically says
// you can do what you want with it and I take no responsibility for bugs.
// See http://www.opensource.org/licenses/mit-lic... |
/*
* main.cpp
*
* Created on: Jan 11, 2016
* Author: tzhou
* Modified on Mar 17, 2017
* Add weight and more options
*/
#include <iostream>
#include <fstream>
#include <vector>
#include <algorithm>
#include <sys/stat.h>
#include <random>
#include <functional>
#include "pl-dis.hpp"
using namespace st... |
/* Copyright 2017 <NAME>
This file is part of TopNetCpp, a translation and enhancement of
Fortran TopNet.
TopNetCpp 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 Li... |
/*
*
* TP 1 Técnicas de programación concurrentes I
* Integrantes:
* <NAME>
* <NAME>
* Pereira, Fernando
*
*/
#include <stdlib.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <unistd.h>
#include <iostream>
#include <errno.h>
#include "logger/Logger.h"
#include "parser/Parser.h"
#include "common.h"
#includ... |
/*
* app.cpp
* star3map
*
* Created by <NAME> on 1/31/10.
* Copyright 2010 __MyCompanyName__. All rights reserved.
*
*/
#include "app.h"
#include "r3/command.h"
#include "r3/common.h"
#include "r3/console.h"
#include "r3/draw.h"
#include "r3/filesystem.h"
#include "r3/init.h"
#include "r3/linear.h"
#includ... |
// license:BSD-3-Clause
// copyright-holders:<NAME>
/***************************************************************************
video.c
Functions to emulate the video hardware of the machine.
***************************************************************************/
#include "emu.h"
#include "includes/exedex... |
#include "Player.h"
#include <cstdlib>
using namespace std;
// =========================== Kind of Like Getters ============================
string Player::getName() const{
return name;
}
bool Player::isDead() const {
return hp <= 0;
}
vector<Card*> Player::getHand(){
return hand;
}
int Player::getMagic() con... |
/*
* mainMenu.cpp
*
* Created on: Feb 25, 2016
* Author: motey
*/
/*
* Menu text for each item
* Pointer to code to execute
* Which is selected
* Escape exits sub task and returns to main task
* Select by position on screen
* Map screen to element
* Basic screen is 512x512
*/
#include "../headers... |
/*
* Adplug - Replayer for many OPL2/OPL3 audio file formats.
* Copyright (C) 1999 - 2007 <NAME>, <<EMAIL>>, et al.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* versi... |
// STD Headers
#define _USE_MATH_DEFINES
#include <array>
#include <cmath>
#include <iostream>
#include <chrono>
#include <thread>
// freeglut
#include <GL/glew.h>
#include <GL/freeglut.h>
#include <glm/gtx/transform.hpp>
// OpenCV
#include <opencv2/core.hpp>
#include <opencv2/imgcodecs.hpp>
#include <opencv2/imgpro... |
#include "PanelAbout.h"
#include <imgui.h>
#include "M_Editor.h"
#include "optick.h"
PanelAbout::PanelAbout(M_Editor* editor)
{
panelName = "About";
this->editor = editor;
}
PanelAbout::~PanelAbout()
{
}
bool PanelAbout::Awake()
{
return true;
}
bool PanelAbout::Update()
{
OPTICK_EVENT();
if(editor->toggleAb... |
/* field.c - by <NAME>, SGI */
/* Using the accumulation buffer for depth of field (camera focus blur). */
#include <GL/glut.h>
#include <stdlib.h>
#include <stdio.h>
const GLdouble FRUSTDIM = 100.f;
const GLdouble FRUSTNEAR = 320.f;
const GLdouble FRUSTFAR = 660.f;
/*
** Create a single component texture map
*/
G... |
/*
* Copyright (C) 2013-2018 Apple Inc. 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 conditi... |
// -*- indent-tabs-mode: nil -*-
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <arc/ArcLocation.h>
#include <arc/UserConfig.h>
#include <arc/compute/Job.h>
#include "EMIESClient.h"
/*
bool stat(const EMIESJob& job, XMLNode& state);
bool info(const EMIESJob& job, Job& info);
bool suspend(const E... |
/*
* So, this is the main program, the driver which reads the source code
* and lets the tokenizer, the parser and the compiler communicate.
*
* TODO: What if some part of the compiler (most likely tokenizer) wants
* to read some file other than the main AEC program? Such a problem
* isn't easily solvable with th... |
// Copyright (c) 2009-2010 <NAME>
// Copyright (c) 2009-2017 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <uint256.h>
#include <utilstrencodings.h>
#include <stdio.h>
#include <string.h>... |
/*
* This file is part of the CAF spoki driver.
*
* Copyright (C) 2018-2021
* Authors: <NAME>
*
* All rights reserved.
*
* Report any bugs, questions or comments to <EMAIL>
*
*/
#include <chrono>
#include "spoki/atoms.hpp"
#include "spoki/cache/shard.hpp"
#include "spoki/collector.hpp"
#include "spoki/defau... |
/*
* Copyright (c) 2020, University of Southampton and Contributors.
* All rights reserved.
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <spdlog/spdlog.h>
#include <systemc>
#include <tuple>
#include <vector>
#include "libs/make_unique.hpp"
#include "libs/strtk.hpp"
#include "ps/ConstantCurrentState.hpp"
#i... |
#include "Thunker.h"
#include <xlOil/Register.h>
#include <xlOilHelpers/Exception.h>
#include <xlOil/Log.h>
// See asmjit/core/build.h
#define ASMJIT_STATIC
#define ASMJIT_NO_LOGGING
#define ASMJIT_NO_VALIDATION
#define ASMJIT_NO_JIT
// We could also define NO_BUILDER, NO_COMPILER and NO_INTROSPECTION for x64
// but ... |
#include "sdk.h"
#include "Autowall.h"
#include "GameUtils.h"
#include "Math.h"
#include "Menu.h"
#include "global.h"
CAutowall* g_Autowall = new CAutowall;
#define HITGROUP_GENERIC 0
#define HITGROUP_HEAD 1
#define HITGROUP_CHEST 2
#define HITGROUP_STOMACH 3
#define HITGROUP_LEFTARM ... |
#include "FEAnalyzer.h"
#include <math.h>
#include <algorithm>
#include <array>
#include <iostream>
#include <vector>
#include <Eigen/Dense>
#include <QQuickItem>
#include <QVariant>
#include <QVariantList>
#include <QQmlProperty>
struct InputNode
{
Vec2f pos; // a vector2 with the (x , y) postion of the node in ... |
/*
Licensed to the Software Freedom Conservancy (SFC) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The SFC licenses this file
to you under the Apache License, Version 2.0 (the "License");
you may not use this f... |
// SPDX-License-Identifier: MIT
#include <cmath>
#include <limits.h>
#include <string.h>
#include <thread>
#include "util/util.h"
#include "util/datatypes.h"
#include "core/vertex-store.h"
#include "util/config.h"
#include "algorithm/algorithm-common.h"
#include "main/execute.h"
#define ALPHA 0.85
#define EPSILON ... |
/*
Copyright (c) 2007-2019 Contributors as noted in the AUTHORS file
This file is part of libzmq, the ZeroMQ core engine in C++.
libzmq is free software; you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License (LGPL) as published
by the Free Software Found... |
#include "jsonreader.h"
#include <fstream>
#include <iostream>
#include <rapidjson/document.h>
#include <rapidjson/filereadstream.h>
#include "rapidjson/filewritestream.h"
#include "rapidjson/prettywriter.h"
void JsonReader::close(){
}
bool JsonReader::initialize(AllData& alldata){
auto fname = alldata.params.inp... |
/*
handler.cpp
Dynamic HTTP Server by Cpp(DHSbC, Internal as DHBoC)
2020-01-21
<NAME>
*/
/*
MIT License
Copyright (c) 2020 <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software ... |
#include <iostream>
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <malloc.h>
#include <fstream>
#include <string>
using namespace std ;
#include "maintenance.h"
// But : Réinitialiser les trois fichiers csv à leut état initial
// Cela permet que les fichiers de départs ... |
#include "timer/timer_beh.hpp"
////////////////////////////////////////////////////////////////////////////////
//
// ####### ### # # ##### ##### ##### ##### # #
// # # ## ## # # # # # # # #
// # # # # # # # # # ... |
#include <queue>
#include <random>
#include <stdio.h>
#include <string>
#include <tchar.h>
#include <vector>
#include <Windows.h>
#include "point_search.h"
#include "processInfo.h"
#include "timer.h"
/* seed our random number generator - see https://msdn.microsoft.com/en-us/library/aa387694.aspx */
#define SystemFunc... |
#include "client.h"
#include <string>
#include <iostream>
#include <sstream>
#include "tfhe-math/arithmetic.h"
// Número de bits con los que queremos trabajar
const int nb_bits = 64;
const int float_bits = 10;
const int n_values = 48;
// Valores [ (x1, y1), ... , (xn, yn) ]
float cabogata_1417[48][2] = {
{1.0, 12... |
/*---------------------------------------------------------------------------*\
Copyright (C) 2011-2015 OpenFOAM Foundation
-------------------------------------------------------------------------------
License
This file is part of CAELUS.
CAELUS is free software: you can redistribute it and/or modify it
... |
/* Includes ------------------------------------------------------------------*/
#include <memory>
#include <stdlib.h>
#include <fibre/protocol.hpp>
#include <fibre/crc.hpp>
/* Private defines -----------------------------------------------------------*/
/* Private macros -------------------------------------------... |
/* WiFi Example
* Copyright (c) 2016 ARM Limited
*
* 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 ... |
#include <opencv2/highgui.hpp>
#include <opencv2/videoio.hpp>
#include <opencv2/opencv.hpp>
#include <string>
#include <thread>
#include <mutex>
#include <ctime>
//using namespace cv;
typedef unsigned char byte;
using std::cout;
using std::endl;
using std::mutex;
void mostrarFrame(int i);
void mostrarFrame(cv::Vide... |
#include <core/KVMNetwork.hpp>
#include <core/KVMVM.hpp>
#include <iostream>
#include <cstring>
#include <cassert>
#include <pthread.h>
namespace DmN::KVM::testing {
inline void check(NWR nwr) {
if (nwr != NWR::SUCCESS)
throw;
}
namespace VM {
void *print(void **args, size_t ar... |
#include "joint-enc-dec-morph.h"
using namespace std;
using namespace cnn;
using namespace cnn::expr;
string BOW = "<s>", EOW = "</s>";
unsigned MAX_PRED_LEN = 100;
JointEncDecMorph::JointEncDecMorph(
const unsigned& char_length, const unsigned& hidden_length,
const unsigned& vocab_length, const unsigned& num_la... |
#include "mlle.h"
std::vector<Eigen::Index> findIndicesOfNearest(const Eigen::MatrixX3f &X, Eigen::Index i) {
Eigen::MatrixX3f X_Xi_diff = X - X.row(i).replicate(X.rows(), 1);
Eigen::VectorXf d = X_Xi_diff.rowwise().squaredNorm(); // distances (unsorted)
// folowing: https://stackoverflow.com/a/12399290 to sort... |
#include "portselectbox.h"
#include "stk500port.h"
#include <QListView>
PortSelectBox::PortSelectBox(QWidget *parent) :
QComboBox(parent)
{
isMouseOver = false;
isDropDown = false;
discoverTimer.setParent(this);
discoverTimer.setInterval(1000);
connect(&discoverTimer, SIGNAL(timeout()), this, ... |
#include "cryptfiledevice.h"
#include <openssl/evp.h>
#include <openssl/modes.h>
#include <limits>
#include <QtEndian>
#include <QDataStream>
#include <QFile>
#include <QFileDevice>
#include <QVector>
#include <QCryptographicHash>
// TODO: remove fixed header length in version 2
static int const kHeaderLength = 1... |
#include "stdafx.h"
#include <lua.h>
#include <regex>
#include <thread>
#include <fstream>
#include <iterator>
#include <map>
#include <unordered_map>
#include <Windows.h>
#include <boost/tokenizer.hpp>
#include <LuaBridge/LuaBridge.h>
#include <LuaBridge/detail/Iterator.h>
#include <boost/property_tree/ptree.hpp>
#in... |
#include <math.h>
#include <time.h>
#include <stdio.h>
#include <string.h>
#include <stdexcept>
#include <mpi.h>
#include <vector>
#include <iostream>
#include <iomanip>
#include <float.h>
#include <algorithm>
#include "pct/Point.hpp"
#include "pct/Grid.hpp"
#include "pct/Pixel.hpp"
#include "pct/DTypes.hpp"
#include ... |
/****************************************************************************
**
** Copyright (C) 2016 The Qt Company Ltd.
** Copyright (C) 2016 <NAME> <<EMAIL>>
** Contact: https://www.qt.io/licensing/
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** Commercial License Usage
*... |
#include "Gaussian1DFit.h"
Gaussian1DFit::Gaussian1DFit(size_t n, double* datax, double* datay,
double a0, double b0, double c0, double d0,
size_t max_iter, double ptol, double gtol, double ftol) :
max_iter(max_iter), ptol(ptol), gtol(gtol), ftol(ftol),
info(-1), rss(-1)
{
fdf_params = ... |
#include "pom/io_std/all.hpp"
#include "pom/io_format/srtm/all.hpp"
#include "pom/io_format/wavefront/all.hpp"
#include "pom/maths/noise.hpp"
#include "pom/maths/vector/all.hpp"
#include "pom/terrain/all.hpp"
#include <cmath>
#include <iostream>
#include <QImage>
#include <vector>
#include <fstream>
using namespace p... |
#include "stdafx.h"
#include "Collider2D.hpp"
#include "Collider2DCircle.hpp"
#include "Collider2DRectangle.hpp"
#include "Collider2DPolygon.hpp"
#include "Collider2DLine.hpp"
#include "settings.hpp"
Collider2D::Collider2D(ColliderType type, int collisionLayer) : type(type), collisionLayer(collisionLayer) {}
bool Col... |
// Copyright (c) 2015-2016 Hypha
#include "hyphawebmanager.h"
#include "RequestHandlerFactory.h"
#include "hyphawebmanager/hyphawebmanager-version.h"
#include <chrono>
#include <iostream>
#include <thread>
#ifdef __linux__
#include <fcntl.h>
#include <signal.h>
#include <stdio.h>
#include <sys/stat.h>
#include <sys/t... |
/*
* Copyright (c) 2005, <NAME> and IFS Institute for Software at HSR Rapperswil, Switzerland
* All rights reserved.
*
* This library/application is free software; you can redistribute and/or modify it under the terms of
* the license that is included with this library/application in the file license.txt.
*/
#in... |
#include <Arduino.h>
#include "esp_system.h"
#include <TMCStepper.h>
#include <AccelStepper.h>
#include "OneButton.h"
#include <U8g2lib.h>
#include "config.h"
#include "WiFi.h"
#include <HTTPClient.h>
HardwareSerial SerialDriver(Serial1);
TMC2209Stepper driver(&SerialDriver, R_SENSE, DRIVER_ADDRESS);
AccelStepper step... |
/******************************************************************************
Copyright (C) 2013 by <NAME> <<EMAIL>>
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... |
/*******************************************************************
*
* $Id: StEEmcSmdGeom.cxx,v 1.13 2010/08/26 22:48:55 ogrebeny Exp $
*
* Author: <NAME>
*
* Revisions:
*
* 01/28/04 <NAME> -- StRoot independent code moved to a
* separate EEmcSmdGeom class. StEEmcSmdGeom now derives from
* that class, imp... |
/*
* Copyright 2012 <NAME>, <<EMAIL>>
* All rights reserved. Distributed under the terms of the MIT License.
*/
#include <exception>
#include <fstream>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <string.h>
#include <ByteOrder.h>
#include <FindDirectory.h>
#include <Path.h... |
/*
* Copyright (C) 2011-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 copyright
* notice, this li... |
#include "Scene.h"
#include <vector>
#include <string>
#include <iostream>
#include <fstream>
#include <sstream>
void IndexArray::AddVertex(int x, int y, int z) {
m_array.push_back(x - 1);
m_array.push_back(y - 1);
m_array.push_back(z - 1);
m_array.push_back(0);
m_array.push_back(0);
m_array.p... |
/*
* atom.c - atom utility
*
* Copyright (c) 2008, Ueda Laboratory LMNtal Group
* <<EMAIL>>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
* ... |
/*
* Copyright (C) 2020 Open Source Robotics Foundation
*
* 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 appl... |
/**************************************************************************
WOW/Votrax SC-01 Emulator
<EMAIL>
Modified to match phonemes to words
<EMAIL>
**************************************************************************
wow_sh_start - Start emulation, load samples from Votrax subdirectory
wow_sh_... |
/*
* Copyright (C) 2006-2013 Music Technology Group - Universitat Pompeu Fabra
*
* This file is part of Essentia
*
* Essentia is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation (FSF), either version... |
// TMonsterAI.cpp: implementation of the TMonsterAI class.
// GS-N 1.00.18 JPN 0x0055A7A0 - Completed
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "gObjMonster.h"
#include "TMonsterAI.h"
#include "TMonsterAIRule.h"
#include "TMonsterAIUnit.h"
#include "TMonsterAIU... |
// Copyright 2021 <NAME>
#include <mpi.h>
#include <vector>
#include <random>
#include <algorithm>
#include <iostream>
#include "../../../modules/task_3/shmanalov_a_radix_sort_with_batcher_merge/radix_sort_with_batcher_merge.h"
std::vector<int> generationRandomVector(int size) {
std::random_device random;
std:... |
#include "precompiled.h"
using namespace mix;
using ::testing::NiceMock;
namespace {
Sign ReverseSign(Sign sign)
{
return ((sign == Sign::Negative) ? Sign::Positive : Sign::Negative);
}
struct LDParam
{
int address;
WordValue value;
WordField field;
};
std::ostream& operator<<(std::ostream& ... |
#include "ha_mqtt_rgbw_light_with_discovery.h"
volatile uint8_t effect = EFFECT_NOT_DEFINED;
///////////////////////////////////////////////////////////////////////////
// CONSTRUCTOR, INIT() AND LOOP()
///////////////////////////////////////////////////////////////////////////
AIRGBWBulb::AIRGBWBulb(void) {
anal... |
/**************************************************************
*
* 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 "idt.h"
#include "arch/x86_64/ports.h"
#include "lib/stdio.h"
#include "arch/x86_64/timer/pit.h"
#include "drivers/keyboard/keyboard.h"
#include "drivers/mouse/mouse.h"
#include "drivers/screen/screen.h"
static void DefaultExceptionHandler(Registers* registers)
{
kprintf("Recieved interrupt #%x with err... |
#include "application.hpp"
#include "version.hpp"
#include "performance_logger.hpp"
#include "performance_application_def.hpp"
#include <reference_manager.hpp>
#include <utilities/MathUtilities.h>
#include <utilities/LoggerUtilities.h>
#include <SFML/Graphics.hpp>
/******************************************... |
#include "include/Game.h"
#include "include/GameState.h"
constexpr unsigned int winWidth{800}, winHeight{600};
std::vector<Entity *> entitiesToRender;
std::vector<Enemy *> AIsToMove;
std::vector<Pickup *> pickups;
Game::Game() : m_window({winWidth, winHeight}, "Legend of the Swamp"),
m_texmgr(),
... |
#include "StdAfx.h"
#include <sstream>
#include <string>
#include <vector>
#include "LayoutInfo.h"
#define EXTRA_INFO_IDENTIFIER 13
CLayoutInfo::CLayoutInfo(LPCTSTR layoutPath)
{
m_isLoaded = false;
m_maxSourceLength = 0;
m_isShiftPressed = m_isControlPressed = m_isAltPressed = m_isCapsLock = m_isWindo... |
// $Id$
/*
Meddly: Multi-terminal and Edge-valued Decision Diagram LibrarY.
Copyright (C) 2009, Iowa State University Research Foundation, Inc.
This library is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published
by the Fre... |
#include "ButtonHandler.h"
#include "Debug.h"
#define PIN_BTN_DATAIN A1
#define PIN_BTN_CLKEN A3
#define PIN_BTN_CLK A0
#define PIN_BTN_PLOAD A2
#define NUM_74HC165 1
#define DATA_WIDTH NUM_74HC165 * 8
#define PULSE_WIDTH_USEC 5
#define DEBOUNCE_DELAY 50
#define ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.