text stringlengths 3.08k 12.5k |
|---|
#include "pgm.h"
#include "bitswap.h"
/*
IGS Asic3 emulation
Used by:
Oriental Legends
*/
static UINT8 asic3_latch[3];
static UINT8 asic3_x;
static UINT8 asic3_reg;
static UINT16 asic3_hold;
static UINT16 asic3_hilo;
static void asic3_compute_hold(INT32 y, INT32 z)
{
UINT16 old = asic3_hold;
... |
/*
* 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 <tuple>
#include "sfml-drawer.hpp"
#include "body-exceptions.hpp"
SFMLDrawer::SFMLDrawer(std::shared_ptr<sf::RenderWindow> _window) {
window = std::move(_window);
font = getFont();
}
void SFMLDrawer::setScale(float new_scale) {
scale = new_scale;
}
void SFMLDrawer::drawGround(
const b2Body& ... |
#include "src/web_server/ui_template.hh"
#include "sim/sessions/session.hh"
#include "sim/users/user.hh"
#include "simlib/concat_tostr.hh"
#include "simlib/file_info.hh"
#include "simlib/json_str/json_str.hh"
#include "simlib/string_transform.hh"
#include "simlib/string_view.hh"
#include "src/web_server/capabilities/co... |
/*
* ukf.cpp
*
* Created on: Apr 8, 2017
* Author: ddigges
*/
#include <iostream>
#include "ukf.h"
UKF::UKF() {
//TODO Auto-generated constructor stub
Init();
}
UKF::~UKF() {
//TODO Auto-generated destructor stub
}
void UKF::Init() {
}
/*************************************************************... |
/*=====================================================================
QGroundControl Open Source Ground Control Station
(c) 2009, 2015 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
This file is part of the QGROUNDCONTROL project
QGROUNDCONTROL is free software: you can redistribute it and/or modi... |
/**
* @file k-partition-problem.cpp
* @author prakash (<EMAIL>)
* @brief
In the k-partition problem, we need to partition a multiset of positive
integers into k disjoint subsets that have equal sum. Design and implement an
algorithm for solving the k-partition problem
* @version 0.1
* @date 2021-08-07
*... |
// HTML 5 GUI Demo
// Copyright (c) 2019 <NAME>
//
// Distributed under the MIT Software License
// See accompanying file LICENSE.txt or copy at
// https://opensource.org/licenses/MIT
//
#include <iostream>
#include <boost/beast/core.hpp>
#include <boost/beast/websocket.hpp>
#include <boost/asio/ip/tcp.hpp>
#include ... |
/* namen: <NAME> & <NAME>
datum: 06 okt 2015
beschrijving: een programma om boodschappen te maken en te ontcijferen met behulp van je eigen geheimen getal
compiler: gcc version 5.1.1 20150618 (Red Hat 5.1.1-4) (GCC)
compile syntax: g++ -Wall -o davidmaurits2 davidmaurits2.cpp */
#include <iostream> //voor ... |
#include "stdafx.hxx"
#include "rdo-recursive-copy.hxx"
#include "krn.hxx"
#include "util/unicode/boost-filesystem-util.hxx"
#include "util/unicode/boost-program-options-util.hxx"
#include <boost/program_options.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/algorithm/string/find.hpp>
#include <filesystem>... |
/*
* libxspf - XSPF playlist handling library
*
* Copyright (C) 2006-2008, <NAME> / Xiph.Org Foundation
* 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... |
#include <opencv2\opencv.hpp>
#include <iostream>
#include <vector>
using namespace std;
using namespace cv;
void match_min(vector<DMatch> matches, vector<DMatch>& good_matches)
{
double min_dist = 10000, max_dist = 0;
for (int i = 0; i < matches.size(); i++)
{
double dist = matches[i].distance;
if (dist < min... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/net/spdyproxy/http_auth_handler_spdyproxy.h"
#include <string>
#include <vector>
#include "base/basictypes.h"
#include "bas... |
/**
* Example of use of photos C++ interface. Pythia events are
* generated first and photos used for FSR.
*
* @author <NAME>
* @date 6 July 2009
*/
//pythia header files
#include "Pythia.h"
#include "HepMCInterface.h"
//MC-TESTER header files
#include "Generate.h"
#include "HepMCEvent.H"
#include "Setup.H"
//... |
/*************************************************************************
File Name: main.cpp
Author: <NAME>
Descriptions:
Created Time: Mon 17 Oct 2016 11:41:53 PM EDT
*********************************************************************/
#include <sstream> /*istringstream*/
#include <fstream> /*if... |
#include <log4cxx/logger.h>
#include <KrisLibrary/Logger.h>
#include "AngleBracket.h"
#include <math/misc.h>
#include <math3d/basis.h>
#include "errors.h"
//Simplest form, assumes p and the disk D lie on the x axis
//(Actually in 2d)
//Point is (p,0). Disk's center is (c,0), radius is r.
AngleInterval AngleBracket_1... |
#include "Hzzws/Smoother.h"
#include <RooDataSet.h>
#include <RooNDKeysPdf.h>
#include <RooKeysPdf.h>
#include <TFile.h>
#include <TH1F.h>
#include <TH2F.h>
#include <RooCmdArg.h>
#include <RooArgList.h>
#include <RooRealVar.h>
#include "RooPlot.h"
#include <algorithm>
#include "Hzzws/Helper.h"
const bool makeValid... |
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
#include "road_label.h"
// debug
#include <iostream>
/******************************************
* public *
* ****************************************/
// initial static class number
// double RoadLabelor:... |
#include <algorithm>
#include <array>
#include <cassert>
#include <iostream>
#include <list>
#include <map>
#include <regex>
#include <string>
struct Classifier {
void add_ranges(std::string const &s) {
static const std::regex re("(.+): (\\d+)-(\\d+) or (\\d+)-(\\d+)");
std::smatch m;
if (std::regex_sear... |
#include <QDir>
#include <QSettings>
#include <QDebug>
#include "arduinosketch.h"
#include "hardwarelayoutwidget.h"
ArduinoSketch::ArduinoSketch(QWidget *parent) : QWidget(parent)
{
}
QStringList ArduinoSketch::convertSketch(const QString inoFilename, HardwareLayoutWidget *hwl)
{
m_log.clear();
m_includefil... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#include <pal.h>
#include "fxr_resolver.h"
#include <fx_ver.h>
#include <trace.h>
#include <utils.h>
namespace
{
... |
/*
Copyright (c) 2013, Durham University
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditi... |
#include "ImGuiWrapper.hpp" // IWYU pragma: associated
#include <GL/glcorearb.h>
#include <GL/gl3w.h>
#include <GLFW/glfw3.h>
#include "core/Exception.hpp"
#include "imgui_internal.h"
#include <examples/imgui_impl_opengl3.h>
#include <examples/imgui_impl_glfw.h>
#include "util/define_logger.hpp"
using namespace aima:... |
#include "Halide.h"
using namespace Halide;
int (*cuStreamCreate)(void **, uint32_t) = nullptr;
int (*cuCtxCreate)(void **, uint32_t, int) = nullptr;
int (*cuCtxDestroy)(void *) = nullptr;
int (*cuMemAlloc)(void **, size_t) = nullptr;
int (*cuMemFree)(void *) = nullptr;
int (*cuCtxSetCurrent)(void *) = nullptr;
stru... |
#include "core.h"
#include "ray.h"
#include "triangle.h"
#include "aabb.h"
#include "collisionmesh.h"
#include "collisioninfo.h"
#include "mathcore.h"
#include "sphere.h"
#include "ellipsoid.h"
Ray::Ray()
: m_Point(Vector(0.0f, 0.0f, 0.0f)),
m_Direction(Vector(0.0f, 0.0f, 0.0f)) {}
Ray::Ray(const Vector& Po... |
/*
Tencent is pleased to support the open source community by making
Plato available.
Copyright (C) 2019 THL A29 Limited, a Tencent company.
All rights reserved.
Licensed under the BSD 3-Clause License (the "License"); you may
not use this file except in compliance with the License. You may
obtain a copy... |
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <iostream>
#include <algorithm>
#include <list>
#include "mTxmq.h"
using namespace mTxmqdetail;
using namespace std;
static const int ALIGNMENT=4096; //128;
double ran()
{
static unsigned int seed = 76521;
seed = seed *1812433253 + 12345;
re... |
//SwitchPixelGameEngine v0.1 build pass
//warning please use v0.1
// Copyright (C) 2020 tiansongyu
//
// This file is part of SwitchPixelGameEngine.
// Last Updated: 2020/11/5
#include"SwitchPixelGameEngine.h"
#include<stack>
#include<iostream>
#include<vector>
using namespace std;
class Mazes :public SwitchPixelGam... |
#include <iostream>
#include <sstream>
#include <string>
#include <algorithm>
#include "mdal.h"
using namespace std;
mdField::mdField() {
isWord = false;
isRequiredNow = false;
requiredSeqBegin = false;
requiredBlkBegin = false;
requiredAlways = false;
requiredBy = nullptr;
requiredWhe... |
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "StructuredPrinter.h"
#include <cmath>
#include <iterator>
#include "hermes/Support/JSONEmitter.h"
#include "llvm/ADT/Sma... |
//*****************************************************************************
// Copyright 2017-2020 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://w... |
#include "header_helpers.h"
#include <mutex>
#include <QRegularExpression>
#include <QStringBuilder>
#include "src/file_processor/git/GitBlameLine.h"
#include "src/logger/log.h"
namespace {
std::unique_ptr<std::set<QString>> gBrokenCommitsInstance;
std::once_flag create;
} // namespace
namespace header_helpers {... |
/**
*
*
* Copyright (c) 2008-2009 All rights reserved.
*/
#if ARDUINO>=100
#include <Arduino.h> // Arduino 1.0
#else
#include <Wprogram.h> // Arduino 0022
#endif
#include <stdint.h>
#include <avr/pgmspace.h>
#include <stdio.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include "pins... |
/*
* GraphBLAS Template Library (GBTL), Version 3.0
*
* Copyright 2020 Carnegie Mellon University, Battelle Memorial Institute, and
* Authors.
*
* THIS MATERIAL WAS PREPARED AS AN ACCOUNT OF WORK SPONSORED BY AN AGENCY OF
* THE UNITED STATES GOVERNMENT. NEITHER THE UNITED STATES GOVERNMENT NOR THE
* UNITED STA... |
#include "Cube.h"
#include <iostream>
using namespace std;
Cube::Cube(Mesh* mesh) : SceneObject(mesh){
_position.x = ((rand() % 49) - 25);
_position.y = ((rand() % 49) - 25);
_position.z = ((rand() % 49) - 25);
_rotationChange = 0.5f + ((rand() % 20) - 10);
_mesh = new TexturedMesh();
_mesh->vertexCo... |
#include <iostream>
#include <string>
#include <vector>
#include <memory>
#include <stdio.h>
#include <regex>
#include <unordered_map>
#include <unordered_set>
#include <map>
#include <random>
#include <queue>
#include <stack>
#include <deque>
#include <set>
using namespace std;
template<typename T>
class Comp_fn
{
b... |
/*
* Copyright (c) 2012-2021, The OSKAR Developers.
* See the LICENSE file at the top-level directory of this distribution.
*/
#include <gtest/gtest.h>
#include <fitsio.h>
#include "convert/oskar_convert_fov_to_cellsize.h"
#include "mem/oskar_mem.h"
#include "math/oskar_cmath.h"
#include <cstdio>
#include <cstdli... |
#include "InitializerChecker.h"
using namespace clang;
using namespace std;
weak_ptr<IvarInfo> findIvarInfo(set<shared_ptr<IvarInfo>> &set, const ObjCIvarDecl *ivarDecl) {
weak_ptr<IvarInfo> result;
if (ivarDecl) {
for (auto &info : set) {
if (info->getIvarDecl() == ivarDecl) {
... |
/*
* File: SimilarityFileCreator.cpp
* Author: vivekdhiman
*
* Created on 12 December, 2014, 10:34 PM
*/
#include "SimilarityFileCreator.h"
SimilarityFileCreator::SimilarityFileCreator() {
}
SimilarityFileCreator::~SimilarityFileCreator() {
}
void SimilarityFileCreator::print(string s){
cout << "DEBUG: "... |
// This code contains NVIDIA Confidential Information and is disclosed to you
// under a form of NVIDIA software license agreement provided separately to you.
//
// Notice
// NVIDIA Corporation and its licensors retain all intellectual property and
// proprietary rights in and to this software and related documentation... |
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
using namespace std;
struct Bag {
int ind;
vector<Bag> inside;
Bag(int ind_): ind(ind_) {}
};
int getInd(int x, const vector<Bag> &v) {
for (int ... |
#include "LayerConv.h"
using namespace swarm;
void LayerConv::convolve(const Int3 &pos, std::mt19937 &rng, const FloatBuffer &inputStates) {
Int3 stateSize = getStateSize();
int paramStartIndex = _paramsPerMap * pos.z;
float activation = _parameters[paramStartIndex + _paramsPerMap - 1]; // Bias
int ... |
#include "stddefx.h"
#ifndef INCLUDED_STRING
#include <string>
#define INCLUDED_STRING
#endif
#ifndef INCLUDED_CALC_FIELDPARAMETER
#include "calc_fieldparameter.h"
#define INCLUDED_CALC_FIELDPARAMETER
#endif
#ifndef INCLUDED_CALC_FIELDLEAF
#include "calc_fieldleaf.h"
#define INCLUDED_CALC_FIELDLEAF
#endif
#ifndef I... |
/*********************************************************************/
/* Copyright (c) 2016, EPFL/Blue Brain Project */
/* <NAME> <<EMAIL>> */
/* All rights reserved. */
/* ... |
/**
@file poprob.cpp
@brief merge and transpose individual likelihood files to a population likelihood file
@author <NAME>
@date 04/01/2011
*/
#include <algorithm>
#include <iostream>
#include <stdint.h>
#include <cstdlib>
#include <cstring>
#include <fstream>
#include <sstream>
#include <cstdio>
#include <string>
#inc... |
#define BOOST_TEST_DYN_LINK
#include <boost/test/unit_test.hpp>
#include "Grid.hpp"
#include "SketchUtils.hpp"
#include "CountMinSketch.hpp"
BOOST_AUTO_TEST_CASE( GridTest_PositiveDimRanges ) {
float gridSize = 0.2;
Grid* grid = new Grid(gridSize);
std::vector<double> point = { 0.1, 0.1 };
std::vector<int> coor... |
#include "ipc.h"
Napi::Object IPC::Init(Napi::Env env) {
Napi::Function func = DefineClass(env, "IPC",
{
InstanceMethod("getPID", &IPC::GetPID),
InstanceMethod("getMainThreadId", &IPC:... |
#include <vector>
#include <list>
#include <map>
#include <set>
#include <deque>
#include <stack>
#include <bitset>
#include <algorithm>
#include <functional>
#include <numeric>
#include <utility>
#include <sstream>
#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cmath>
#include <cstdlib>
#include <c... |
/**
* Copyright (c) 2007-2012, <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 conditi... |
#include "toonz/tcamera.h"
#include "toonz/stage.h"
#include "tstream.h"
#include "texception.h"
//=============================================================================
// TCamera
TCamera::TCamera()
//: m_size(12, 9), m_res(768, 576), m_xPrevalence(true)
//: m_size(36, 20.25),
: m_size(16, 9),
... |
// Copyright (c) 2020 The Merge Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <chainparams.h>
#include <consensus/params.h>
#include <miner.h>
#include <node/context.h>
#include <pos/kernel.h>
#include... |
#include <iostream>
using namespace std;
#include <list>
#include <vector>
#include <map>
class ArrayUtil{
public:
static long* multiplyArrayValues(const long *values, const int ARRAY_SIZE);
};
class StringUtil{
public:
static bool checkUniqueness(string s);
};
bool StringUtil::checkUniqueness(string s) {
... |
//Data Structure includes
#include<vector>
#include<stack>
#include<set>
#include<map>
#include<queue>
#include<deque>
#include<string>
//Other Includes
#include<iostream>
#include<algorithm>
#include<cstring>
#include<cassert>
#include<cstdlib>
#include<cstdio>
#include<cmath>
#include<sstream>
//some common functionn... |
//------------------------------------------------------------------------------
// Copyright (C) 2017 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.... |
/*
* The contents of this file are subject to the Mozilla Public
* License Version 1.1 (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.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS... |
//------------------------------------------------------------------------------
// SimpleSoundTest.cpp
//
// Unit test for the game kit.
//
// Copyright (c) 2001 OpenBeOS Project
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files (t... |
// Basic Neural Simulation Framework (BSNF)
//
// Copyright 2007 <NAME>. All rights reserved.
//
// This software is provided AS IS under the terms of the Open Source
// MIT License. See http://www.opensource.org/licenses/mit-license.php.
//
// File: test_baker_100.cpp
//
// Release: 1.0.0
// Author: <NAME>
// Update... |
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
// $Id: apt-config.cc,v 1.11 2003/01/11 07:18:44 jgg Exp $
/* ######################################################################
APT Config - Program to manipulate APT configuration files
This program will parse a config file and then do s... |
#pragma GCC optimize(3)
#include <cstdio>
#include <cstring>
#include <climits>
#include <queue>
#include <vector>
#include <algorithm>
using namespace std;
#define NMAX 3000
#define MMAX 18000
#define INF 0x3f3f3f3f
inline int mmin(int a, int b) {
return a < b ? a : b;
}
class NetworkFlow {
public:
Netw... |
#include "engine/game.h"
#include <stddef.h>
#include <iostream>
#include <string>
Game::Game() : Game(0) {}
Game::Game(const size_t size) :
size_(size),
pieces_(size * size, Piece()), // initialize pieces with default data
board_(size * size, kInvalidPieceId) // initislize empty board
{}
... |
/*
Copyright (c) 2005-2015, University of Oxford.
All rights reserved.
University of Oxford means the Chancellor, Masters and Scholars of the
University of Oxford, having an administrative office at Wellington
Square, Oxford OX1 2JD, UK.
This file is part of Chaste.
Redistribution and use in source and binary forms... |
/*
* Copyright 2018 <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 wr... |
#include <ros/ros.h>
#include <std_msgs/Bool.h>
#include <std_msgs/String.h>
#include <std_msgs/Float32.h>
#include <sensor_msgs/LaserScan.h>
#include <geometry_msgs/Twist.h>
#include <geometry_msgs/Pose.h>
#include <geometry_msgs/PoseWithCovarianceStamped.h>
#include <geometry_msgs/PoseWithCovariance.h>
#include <tf/t... |
/*
============================================================================
Name : Coordinate.cpp
Author : <NAME>
Version : 1.0
Copyright : Your copyright notice
Description : CCoordinate implementation
============================================================================
*/
#include <eikenv.h... |
/*
Copyright 2005 <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 wri... |
// Copyright (c) 2019 Intel Corporation.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to
// deal in the Software without restriction, including without limitation the
// rights to use, copy, modify, merge, pub... |
#include <iostream>
#include <functional>
#include <map>
#include <vector>
#include <string>
#include <string.h>
#include <stdio.h>
#include <fstream>
#include <istream>
#include <iostream>
#include <unistd.h>
#include <sys/types.h>
#include <fstream>
#include <sstream>
#include <memory>
#include <cstdio>
#include <std... |
/*
* Copyright (c) 2013-2019 Huawei Technologies Co., Ltd. All rights reserved.
* Copyright (c) 2020-2021 Huawei Device Co., Ltd. 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. Redist... |
/*
Copyright (c) 2007 <NAME>. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless require... |
#include "globals.h"
#include "flags.h"
#include "sector.h"
#include "imagereader/imagereader.h"
#include "image.h"
#include "crc.h"
#include "logger.h"
#include "mapper.h"
#include "fmt/format.h"
#include "lib/config.pb.h"
#include "fmt/format.h"
#include <algorithm>
#include <iostream>
#include <fstream>
/* The best... |
/**
\file
\author <NAME>
*/
#include "Thruster.h"
#include <cnoid/Archive>
#include <cnoid/EigenUtil>
#include <cnoid/MeshGenerator>
#include <cnoid/Link>
#include <cnoid/SceneDevice>
#include <cnoid/SceneMarkers>
#include <cnoid/SceneShape>
#include <cnoid/StdBodyLoader>
#include <cnoid/StdBodyWriter>
using na... |
#include "ecs/ecs_editor.h"
#include "ecs/ecs_resources.h"
#include "ecs/ecs_scene.h"
#include "ecs/ecs_utilities.h"
#include "volume_generator.h"
#include "camera.h"
#include "debug_render.h"
#include "dev_ui.h"
#include "loader.h"
#include "pmfx.h"
#include "file_system.h"
#include "hash.h"
#include "input.h"
#incl... |
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
using namespace std;
struct Cand {
int votes, pos;
Cand(int votes_=-1, int pos_=-1): votes(votes_), pos(pos_) {}
};
bool operator<(const Cand &a, con... |
/****************************************************************************//*
* Copyright (C) 2021 <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, i... |
/* Copyright (c) <2003-2011> <<NAME>, 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 purp... |
/*!
* \author <NAME> - <EMAIL>
*
* @section LICENSE
*
* Open-WBO, Copyright (c) 2013-2022, <NAME>, <NAME>, <NAME>
* UpMax, Copyright (c) 2022, <NAME>, <NAME>, <NAME>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "S... |
#include "dpi-bypass.h"
#include "dns.h"
#include "hostlist.h"
extern struct Settings settings;
extern JavaVM* javaVm;
extern jclass utils_class;
extern jclass localdnsserver_class;
int resolve_host_over_doh(std::string host, std::string & ip)
{
std::string log_tag = "CPP/resolve_host_over_doh";
// Make requ... |
#include "Grid.hpp"
#include <iostream>
#include "PopUp.hpp"
//#include "GameObjectsDefault.hpp"
Grid::Grid(TileManager & tileManager, unsigned int width, unsigned int tileSize, std::shared_ptr<LevelManagerPocketAnimalsSync> levelSync, std::shared_ptr<PopUp> dialog,
std::shared_ptr<NPCTracker> npcs, std::shared_ptr<... |
/*
Implementation of the Naive Simulation Class.
Author : <NAME> (<EMAIL>)
*/
#include "Simulation.h"
Simulation::Simulation(Graph *G_wbl)
{
G = G_wbl;
RNG.SetState(0, 0);
}
void Simulation::GenerateCascade(vector<Node2Time>& cascade, vector<Node2Time>& visitedNodes, set<unsigned>& initialSet, double TimeH... |
#include "Application.h"
#include "glew/include/glew.h"
#include "Globals.h"
#include "FileSys.h"
#include "Time.h"
#include "JSON.h"
#include <string>
#include "parson/parson.h"
Application::Application(int argc, char* args[]) : argc(argc), args(args), want_to_save(false), want_to_load(false), in_game(false)
{
windo... |
/* Copyright (c) 2017, United States Government, as represented by the
* Administrator of the National Aeronautics and Space Administration.
*
* All rights reserved.
*
* The Astrobee platform is licensed under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with... |
#include <SDL.h>
#include "r_draw.hh"
#include "e_profiler.hh"
#include "cube.hh"
#define GLM_FORCE_PURE
#include <glm/glm.hpp>
#include <glm/ext.hpp>
#define WIDTH 640
#define HEIGHT 480
// render targets and buffers
FRenderTarget* g_colorRT;
FRenderTarget* g_depthRT;
FVertexBuffer* g_cubeVB;
FIndexBuffer* g_c... |
// Copyright (c) 1999, California Institute of Technology
// U. S. Government sponsorship under NASA contract is acknowledged
#include <stdio.h>
#include <fstream.h>
#include <string.h>
#include <stdlib.h> // Cause of main()
#include <iomanip.h> // Cause of main()
#include <unistd.h> // Cause of main(... |
#include "linux_parser.h"
#include <dirent.h>
#include <unistd.h>
#include <string>
#include <vector>
using std::stof;
using std::string;
using std::to_string;
using std::vector;
// DONE: An example of how to read data from the filesystem
string LinuxParser::OperatingSystem() {
string line;
string key;
string... |
/*
* Getting Started example sketch for nRF24L01+ radios
* This is a very basic example of how to send data from one node to another
* Updated: Dec 2014 by TMRh20
*/
#include <arduino.h>
#include <SPI.h>
#include "RF24.h"
/********************* External User Config *****************************/
/******* Compile ... |
/*
Multivariate Regression and Classification Using an Adaptive Neuro-Fuzzy
Inference System (Takagi-Sugeno) and Simulated Annealing Optimization.
Copyright (c) 2021 <NAME>
=== Arguments ===
func Function to minimize
LB Lower boundaries of the search space
UB Upper boundaries of ... |
//===---- Token.cpp - ---*- C++ -*-===//
//
// Created by zeta on 17-7-28.
//
// This file is distributed under the GPLv3 Open Source
// License. See LICENSE for details.
//
//===----------------------------------------------------------------------===//
//
//
//
//
//===--------------------------------... |
#include "Propagator.h"
#include "Utilities.h"
Propagator::Propagator(int variables, AssignmentStore* assignments)
{
watchedClauses = new ClauseList[2 * variables + 2];
binaryClauses = new IntVector[2 * variables + 2];
propStack = new int[variables];
this->assignments = assignments;
}
void Propagator::... |
#include <../../nrnconf.h>
// This may look like C code, but it is really -*- C++ -*-
/*
Copyright (C) 1989 Free Software Foundation
This file is part of the GNU C++ Library. This library is free
software; you can redistribute it and/or modify it under the terms of
the GNU Library General Public License as published... |
// The MIT License (MIT)
//
// Copyright (c) 2017 <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, mo... |
#include "core.h"
#include <lace/try.h>
#include "context.h"
#include "reactor.h"
#include "trigger.h"
#include "scheduler.h"
#include "signal_set.h"
#include "signal_stack.h"
#include "file_descriptor.h"
#include "signal_suppressor.h"
#include <pwd.h>
#include <grp.h>
#include <cassert>
#include <cstdlib>
#include... |
/*
This file is a part of EMIPLIB, the EDM Media over IP Library.
Copyright (C) 2006-2016 Hasselt University - Expertise Centre for
Digital Media (EDM) (http://www.edm.uhasselt.be)
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU ... |
/*
* Gray: A Ray Tracing-based Monte Carlo Simulator for PET
*
* Copyright (c) 2018, <NAME>, <NAME>, <NAME>, <NAME>
*
* This software is distributed under the terms of the MIT License unless
* otherwise noted. See LICENSE for further details.
*
*/
#include "Gray/VrMath/Quaternion.h"
#include "Gray/... |
#include "hermes1d.h"
#include "python_api.h"
#include "h1d_wrapper_api.h"
static int N_eq = 1;
int N_elem = 40; // number of elements
double A = 0, B = 20; // domain end points
int P_init = 2; // initial polynomal degree
double l = 0;
double lh... |
#include "stdafx.h"
#include "CWorldPhysics.h"
#include "CPhysicsDebugDraw.h"
#include "CEntityPhysics.h"
CWorldPhysics::CWorldPhysics() {
m_pWorldPhysics = 0;
m_vGravity.x = m_vGravity.y = 0;
m_bInit = 0;
}
float CWorldPhysics::GetMeterToPixelFactor() {
return METER_TO_PIXEL;
}
float CWorldPhysics:... |
/*
This file is part of Kismet
Kismet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
Kismet is distributed in the ... |
// Copyright 2020, General Electric Company. All rights reserved. See https://github.com/xcist/code/blob/master/LICENSE
#include "Photon.hpp"
#include <math.h>
#define TMax(a,b) ((a) > (b) ? (a) : (b))
#define TMin(a,b) ((a) < (b) ? (a) : (b))
#define Swap(a,b) {float t = a; a = b; b = t;}
#define sgn(a) ((a) < 0 ? ... |
#include <heltec.h>
#include "paradrone.h"
static bool should_redraw = false;
static long last_redraw_millis = -1;
static void screen_draw();
static void sprintd(char *buf, long delta);
void screen_init() {
Heltec.display->init();
Heltec.display->flipScreenVertically();
Heltec.display->setTextAlignment(TEXT_ALI... |
/*
* CP411
* <NAME>
*
* Created on: Nov 23, 2017
* Authors: <NAME>
* <NAME>
*
*/
#include"main.hpp"
int widthG = 1366;
int heightG = 768;
int pState = 2;
int CSIZE = 20;
bool colorW = false;
float colors[3] = {1,0,0};
Button buttons[20];
bool introVisit = true;
cellMap map;
cellMap3D map3D;
... |
#include <sstream>
#include <string>
#include <vector>
#include "gmock/gmock.h"
#include "block_system.hpp"
#include "perm.hpp"
#include "perm_group.hpp"
#include "perm_set.hpp"
#include "test_main.cpp"
using namespace mpsym;
using namespace mpsym::internal;
static std::string block_to_string(BlockSystem::Block co... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.