text stringlengths 5.71k 33.7k |
|---|
/*
* Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later ve... |
/*
* Copyright 2016 The Native Client Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/*
* NaCl tests for limited file access
*/
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <stdlib.h... |
#include <iostream>
#include <string>
#include <fstream>
#include <grpcpp/grpcpp.h>
#include "inference_service.grpc.pb.h"
using grpc::Server;
using grpc::ServerBuilder;
using grpc::ServerContext;
using grpc::Status;
using grpc::ServerReader;
using grpc::StatusCode;
using inferer::Inferer;
using inferer::Request;
u... |
/*
Copyright (c) 2003-2004, <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... |
#include <ctime>
#include <vector>
#include <cmath>
#include "../common/XorShift.h"
#include "../common/UnionFind.h"
#include "SlitherlinkGenerator.h"
#include "SlitherlinkField.h"
#include "SlitherlinkProblem.h"
#include "SlitherlinkDatabase.h"
#include "SlitherlinkProblemConstraint.h"
static int FieldHa... |
#include <windows.h>
#include <GL/glut.h>
#include <stdio.h>
#include <iostream>
#include <MMSystem.h>
#include <string>
#include <sstream>
using namespace std;
float posX=20, posY=0, posZ=0;
float robX=-18, robY=-14;
float legL=0, legR=0;
float mountainX=0;
int l=0, r=0;
float move_unit = 0.1f, cloudX = 0;
float sco... |
/****************************************************************************//*
* 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, includ... |
/*
Copyright (c) 2013, NVIDIA CORPORATION. All rights reserved.
Copyright (c) 2013, <NAME>. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
* Redistributions of source code must ... |
/******************************************************************************
*
* MRF101 Amplifier by AD5GH
*
* ARDUINO MEGA DISPLAY & CONTROL BOARD SOFTWARE
* LEFT LCD FUNCTION ROUTINES
*
* Distributed under the terms of the MIT License:
* http://www.opensource.org/licenses/mit-license
*
* See http://www.ad5gh.com f... |
/**
* \file variable_name_similarity.cpp
* \author <NAME> <<EMAIL>>, <NAME> <<EMAIL>>
* \date August 23, 2012
*/
#include "rose.h"
#include "string_functions.h"
#include <sstream>
#include <vector>
#include "compass2/compass.h"
using std::string;
using std::vector;
using namespace Rose::StringUtility;
e... |
/*
* Copyright (c) 2016-2019 <NAME> https://irlanrobson.github.io
*
* 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... |
#pragma once
/**
This library was created by <NAME>
You can find some of his work here http://rezoner.net/
Redistribution or modification must be agreed.
Yes this library is old, yes it does not follow current coding standards, deal with it.
*/
#include <string.h>
#include "xSimpleTypes.h"
#include "glMatrix4... |
// MIT License
// Copyright (c) 2021 <NAME>
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, p... |
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <iostream>
#include <sstream>
#include <fstream>
#include <vector>
#include <algorithm>
#include <set>
#include <time.h>
#include <cstddef>
/*
#include <boost/archive/text_iarchive.hpp>
#include <boost/iostreams/filtering_stream.hpp>
#include <boost/i... |
/* From SimpleFits Package
* Designed an written by
* author: <NAME>
* Humboldt Foundations
*/
#include <functional>
#include <cmath>
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "RecoTauTag/ImpactParameter/interface/TauA1NuConstrainedFitter.h"
#include "RecoTauTag/ImpactParameter/interface/PD... |
/**
* \file PnlBrlySegDetail.cpp
* job handler for job PnlBrlySegDetail (implementation)
* \copyright (C) 2016-2020 MPSI Technologies GmbH
* \author <NAME> (auto-generation)
* \date created: 11 Jan 2021
*/
// IP header --- ABOVE
#ifdef BRLYCMBD
#include <Brlycmbd.h>
#else
#include <Brlyd.h>
#endif
#include "P... |
#include <iostream>
#include <fstream>
#include <sstream>
#include <cassert>
//#include <NTL/mat_ZZ_p.h>
#include <NTL/mat_ZZ.h>
//#include <NTL/ZZ_p.h>
#include <NTL/ZZ.h>
//#include <NTL/vec_ZZ_p.h>
#include <NTL/vec_ZZ.h>
#include <cmath>
#include <stack>
using namespace std;
using namespace NTL;
const ZZ w(1ll <<... |
#include "twoDimPD.hpp"
int compare_vector_and_tpd(b_vec *v, const uint64_t *arr, size_t bits_to_compare) {
constexpr size_t slot_size = sizeof(uint64_t) * CHAR_BIT;
size_t word_count = (bits_to_compare + slot_size - 1) / slot_size;
size_t bit_count = 0;
for (size_t i = 0; i < word_count; i++) {
... |
// g++ FirstStep.cpp -o FirstStep -I/usr/local/include/opencv -I/usr/local/include -L/usr/local/lib -lopencv_calib3d -lopencv_highgui -lopencv_imgcodecs -lopencv_imgproc -lopencv_core
#include <iostream>
#include <fstream>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui.hpp>
using namespace cv;
using... |
#include "TilemapDAO.h"
#include "Lua.h"
#include "Game.h"
#include <tmxlite/Map.hpp>
#include <tmxlite/TileLayer.hpp>
#include <tmxlite/ObjectGroup.hpp>
void TilemapDAO::save_map(std::string filename, Tilemap & map) {
std::ofstream outfile(Path::MAPS + filename + ".map", std::ofstream::binary);
if (outfile.fail()) ... |
#include "imageview.h"
#include <QPainter>
#include <QDebug>
#include <math.h>
#include <iostream>
#include "../include/geometry.h"
#include "qlearning.h"
//#include "../include/cobjregistry.h"
//#include "../include/car_autopilot.h"
//static CObjRegistry& MREG = CObjRegistry::getInstance2();
int ImageView::getKey(P... |
/*Header-MicMac-eLiSe-25/06/2007
MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation
eLiSe : ELements of an Image Software Environnement
www.micmac.ign.fr
Copyright : Institut Geographique National
Author : <NAME>
Contributors : <NAME>, <NAME>.
[1] <NAME>, <NAM... |
#include <M5EPD.h>
#include <WiFi.h>
#include <ArduinoJson.h>
#include <HTTPClient.h>
#include <FS.h>
#include <LITTLEFS.h>
#include <ezTime.h>
#include <regex>
#include "M5PanelWidget.h"
#include "defs.h"
#define ERR_WIFI_NOT_CONNECTED "ERROR: Wifi not connected"
#define ERR_HTTP_ERROR "ERROR: HTTP code "
#... |
/* Copyright (c) 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:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the foll... |
#include "M2EDM.h"
#include "M2Helpers.h"
//===================================================
// EDMPART
//===================================================
void EDMPart::SetHasPositions(bool b) {
EDMPart::hasPosition = b;
}
void EDMPart::SetHasNormals(bool b) {
EDMPart::hasNormals = b;
}
void EDMPart::SetHas... |
/* -*- mode:C++; c-basic-offset:4 -*-
Shore-kits -- Benchmark implementations for Shore-MT
Copyright (c) 2007-2009
Data Intensive Applications and Systems Labaratory (DIAS)
Ecole Polytechnique Federale de Lausanne
All Rights Reserved.
Permi... |
/* (03-Aug-2014) [Tab/Indent: 8/8][Line/Box: 80/74] (View.cpp) *
********************************************************************************
| |
| Copyright (c) 2015, <NAME> |
| ... |
//===--- GenDistributed.cpp - IRGen for distributed features --------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2020 - 2021 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... |
/*
The MIT License (MIT)
Copyright (c) 2016 <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, mod... |
#include <iostream>
//#include "Vector2D.h"
//#include "ScalarField.h"
#include "ScalarField.h"
#include "MacGrid2D.h"
//#include "MacGrid2D.cpp"
//#include "Vector2D.h"
//#include "Vector2D.cpp"
#include <math.h>
#if defined(__APPLE__) || defined(__MACOSX)
#include "glfw.h" // Include OpenGL Framework library
#els... |
/*
Copyright (c) 2006-2014, <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 dis... |
/*
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... |
/*
* Copyright (c) 2014-2016, imec
* All rights reserved.
*/
#include <iostream>
#include <fstream>
#include <string>
#include <algorithm>
#include <random>
#include <unistd.h>
#include "io.h"
#include "bpmf.h"
using namespace std;
using namespace Eigen;
#ifdef BPMF_HYBRID_COMM
#define BPMF_GPI_COMM
#define BPM... |
// Copyright (C) 2008-2011 <NAME> and <NAME>
//
// This file is part of DOLFIN.
//
// DOLFIN 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... |
#include <ros/ros.h>
#include <kuka_manipulation_moveit/KukaMoveit.hpp>
#include <kuka_cv/Color.h>
#include <kuka_cv/RequestPalette.h>
#include <kuka_cv/RequestCanvas.h>
#include <std_srvs/Empty.h>
#include <visualization_msgs/Marker.h>
#include <boost/thread/thread.hpp>
// TF
#include <tf2_ros/transform_listener.h>
... |
/**
BSD 3-Clause License
This file is part of the Basalt project.
https://gitlab.com/VladyslavUsenko/basalt.git
Copyright (c) 2019, <NAME> and <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:
*... |
// Copyright 2018 Google LLC
//
// 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 writi... |
#include "launcher.h"
#include <stdio.h>
#include <sys/types.h>
#include <dirent.h>
#include <errno.h>
#include <ctype.h>
#include <unistd.h>
#include <sys/wait.h>
#include <sys/prctl.h>
#include <signal.h>
#include <stdlib.h>
#include <string.h>
#include <sys/select.h>
#include <poll.h>
#include <assert.h>
#include <... |
/* --------------------------------------------------------------------------
*
* File Main.cpp
* Description Application Entrance.
* Author <NAME>
*
* --------------------------------------------------------------------------
*
* Copyright (C) 2010-2012 XMSoft... |
/* training_data_tool.cc
<NAME>, 4 February 2004
Copyright (c) 2004 <NAME>. All rights reserved.
This file is part of MLDB. Copyright 2015 mldb.ai inc. All rights reserved.
A tool to analyze training data sets.
*/
#include "mldb/plugins/jml/jml/training_data.h"
#include "mldb/plugins/jml/jml/training_ind... |
// Copyright (c) 1995 by <NAME> <<EMAIL>>
// This file is free software, distributed under the MIT License.
#include "xapp.h"
#include <xcb/xcb.h>
#include <xcb/render.h>
#include <signal.h>
#include <stdio.h>
#include <unistd.h>
#include <errno.h>
#define unsigned const unsigned // xbm format does not include a const... |
/**
* 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 "DelInit.h"
#include <algorithm>
#include <map>
#include <string>
#include <vector>
#include <unordered_set>
#include <u... |
// Copyright (c) 2014 <NAME>
// Copyright (c) 2014 <NAME>
// Copyright (c) 2018 <NAME>
//
// SPDX-License-Identifier: BSL-1.0
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
// This is the fourth in a series ... |
//=- ReachableCodePathInsensitive.cpp ---------------------------*- C++ --*-==//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
/*
* Copyright 2015 Aerospike, Inc.
*
* Portions may be licensed to Aerospike, Inc. under one or more
* contributor license agreements.
*
* 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 a... |
// Copyright (C) 2019-2020 Zilliz. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable l... |
#ifdef WINDOWS
#include <windows.h>
#endif
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <SDL.h>
#include "editeur.h"
#include "menu.h"
#include "jeux.h"
#include "tableau.h"
#include "mouse.h"
using namespace std;
/*** Variables globales ***/
/*********... |
// Copyright (c) <NAME>
// Licensed under the MIT License
#include "PropulsionSubsys.h"
// ==============================================================
// Single-rotor implementation
// ==============================================================
class Rotor {
public:
enum SpinDirection {
SPIN_LEFT,
SPIN_RI... |
#include "testApp.h"
/*
// OPENFRAMEWORKS + LEAP MOTION SDK 2.0 HAND SKELETON DEMO
// By <NAME> (@golan), http://github.com/golanlevin
// Uses ofxLeapMotion addon by <NAME>, with assistance from <NAME>
// Supported in part by the Frank-Ratchye STUDIO for Creative Inquiry at CMU
*/
/* Note on OS X, you must have t... |
// File Name: tracking.cpp
// Author: <NAME>
// Create Time: 2018/12/20 10:11
#include "tracking_class.h"
#include <iostream>
#include <stdio.h>
double dist_sqr(Point_t a, Point_t b){
return (a.x - b.x) * (a.x - b.x) + (a.y - b.y) * (a.y - b.y);
}
double sum(Point_t a){
return (a.x*a.x + a.y*a.y);
}
int Ma... |
/*
*
* Copyright 2015 gRPC 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 agree... |
////////////////////////////////////////////////////////////////////////////////
// Copyright (c) 2014-2019, Lawrence Livermore National Security, LLC.
// Produced at the Lawrence Livermore National Laboratory.
// Written by the LBANN Research Team (<NAME>, et al.) listed in
// the CONTRIBUTORS file. <<EMAIL>>
//
// LL... |
// DJClusterAgent.cpp: implementation of the CDJClusterAgent class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include <stdlib.h>
#include <malloc.h>
#include <math.h>
#include <float.h>
#include <afxtempl.h>
#include "Chunkify.h"
#include "DJClusterAgent.... |
#include "polynomial_conv.h"
#include "param_util.h"
/*************************************************************************
Generated by https://people.sc.fsu.edu/~jburkardt/cpp_src/triangle_dunavant_rule/triangle_dunavant_rule.html
Quadrature points of a unit right triangle for degree - 4 polynomials
x ... |
#include "NetService.h"
#include "PhantomDB.h"
#ifdef IPHONE_OS
#include "encrypt.h"
#else
#include "../PhantomEngine/encrypt.h"
#endif
int NetService::s_userID = 0;
NetService* g_netservice = 0;
NetService* GetNetService()
{
if(!g_netservice)
g_netservice = new NetService();
return g_netservice;
}
NetSer... |
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#pragma once
#include <test/t... |
// Copyright (c) 2009-2022 The Regents of the University of Michigan.
// Part of HOOMD-blue, released under the BSD 3-Clause License.
#include <iostream>
#include <functional>
#include "hoomd/ConstForceCompute.h"
#include "hoomd/md/ComputeThermo.h"
#include "hoomd/md/TwoStepNVTMTK.h"
#ifdef ENABLE_HIP
#include "hoom... |
#include "RecoLocalCalo/HcalRecAlgos/interface/HcalSeverityLevelComputer.h"
#include "CondFormats/HcalObjects/interface/HcalChannelStatus.h"
#include "DataFormats/METReco/interface/HcalCaloFlagLabels.h"
#include "DataFormats/METReco/interface/HcalPhase1FlagLabels.h"
#include "DataFormats/HcalDetId/interface/HcalGeneric... |
#include <iostream>
#include <stdlib.h>
#include <fstream>
#include <string>
#include <sstream>
#include <time.h>
#include <math.h>
#include <vector>
#include <algorithm>
#include <set>
#include <map>
#include <unordered_set>
#include <iomanip>
using namespace std;
#define cut_off_to_not_save_all_transactions_in_ram ... |
#include <random>
#include <iostream>
#include <fstream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <unordered_map>
#include <unordered_set>
#include <map>
#include <cmath>
#include <ctime>
#include <queue>
#include <vector>
#include <omp.h>
#include <limits>
#include <sys/time.h>
#include <set... |
#include "imgui/imgui.h"
#define IMGUI_DEFINE_MATH_OPERATORS
#include "imgui/imgui_internal.h"
#include "imguiCustom.h"
void ImGuiCustom::colorPicker(const char* name, float color[3], float* alpha, bool* rainbow, float* rainbowSpeed, bool* enable, float* thickness, float* rounding, bool* outline) noexcept
{
ImGui... |
// CLASSIFICATION: UNCLASSIFIED
/***************************************************************************/
/* RSC IDENTIFIER: ORTHOGRAPHIC
*
* ABSTRACT
*
* This component provides conversions between Geodetic coordinates
* (latitude and longitude in radians) and Orthographic projection
* coordinates... |
//*******************************************************************************
// This program generates 2D quad and triangular grids in a rectangular domain.
//
// Note that this is separate conceputally and practically from the
// Euler 2D code to read in a grid.
// (and we want to keep it that way!)
//
// B... |
/****************************************************************************
*
* Copyright (c) 2012-2016 PX4 Development Team. 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. Red... |
/**************************************************************************\
*
* This file is part of the Coin 3D visualization library.
* Copyright (C) by <NAME> & Gas Technologies.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License... |
#pragma once
#include <bits/stdc++.h>
using namespace std;
__int128_t abs(__int128_t x) { return x >= 0 ? x : -x; }
// For 2D computational geometry problems
struct Pt2 {
using T = int32_t; // points, vectors, coefs, manh -- integer/frac/quot
using L = int64_t; // crosses, dotes, dist2, norm2 -- integ... |
// curl localhost:12048/updatable_config/pulsar_pointing/0 -X POST -H 'Content-Type:
// application/json' -d '{"ra":100.3, "dec":34.23, "scaling":99.0}'
#include "hsaPulsarUpdatePhase.hpp"
#include "buffer.h"
#include "bufferContainer.hpp"
#include "configUpdater.hpp"
#include "hsaBase.h"
#include "restServer.hpp"
#... |
// 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 you under the Apache License, Version 2.0 (the
// "License"); you may n... |
#include "Validation/Geometry/interface/MaterialBudgetHcalHistos.h"
#include "DetectorDescription/Core/interface/DDFilter.h"
#include "DetectorDescription/Core/interface/DDLogicalPart.h"
#include "DetectorDescription/Core/interface/DDSplit.h"
#include "DetectorDescription/Core/interface/DDValue.h"
#include "FWCore/Uti... |
/*
* Copyright (C) 2014 Intel Corporation. All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless requir... |
/*============================================================================
* <NAME>
* routines for Lagrange arcs
* Largrange arcs are defined here in a manner analogous to
* Lagrange polynomial interpolation.
* Langrange polynomial interpolation is typically defined using
* Cartesian coordinates in the R^2... |
// Fix INVALID_HANDLE_VALUE redefinition warning
#ifndef _LINUX
#define WIN32_LEAN_AND_MEAN
#include "windows.h"
#endif
#ifndef NULL
#define NULL nullptr
#endif
#include "interface.h"
#include "filesystem.h"
#include "engine/iserverplugin.h"
#include "game/server/iplayerinfo.h"
#include "toolframework/ienginetool.h"
... |
// #define CGAL_IDENTIFICATION_XY 2
// #define CGAL_SL_VERBOSE 1
#include <string>
#include <cstring>
#include <vector>
#include <fstream>
#include <CGAL/Exact_rational.h>
#include <CGAL/Cartesian.h>
#include <CGAL/Arr_geodesic_arc_on_sphere_traits_2.h>
#include <CGAL/Arr_curve_data_traits_2.h>
#include <CGAL/Arr_ex... |
#include <uWS/uWS.h>
#include <fstream>
#include <iostream>
#include <string>
#include <vector>
#include "Eigen-3.3/Eigen/Core"
#include "Eigen-3.3/Eigen/QR"
#include "helpers.h"
#include "json.hpp"
#include "spline.h"
// #include "fsm.h"
// for convenience
using nlohmann::json;
using std::string;
using... |
////////////////////////////////////////////////////////////////////////////
// **** WAVPACK **** //
// Hybrid Lossless Wavefile Compressor //
// Copyright (c) 1998 - 2007 Conifer Software. //
// ... |
/**
* This source file implements the SwarmControllerNode class, which is also a
* Node class via enhancement.
*
* Version: 1.0.0
* Created on: 30/10/2016
* Modified on: 30/10/2016
* Author: <NAME> (<EMAIL>)
* Maintainer: <NAME> (<EMAIL>)
*/
#include "SwarmControllerNode.h"
SwarmControllerNode::Swarm... |
//
// SatelliteModule.cpp
// SatelliteClass
//
// Created by <NAME> on 21/02/2019.
// Copyright © 2019 <NAME>. All rights reserved.
//
#include "SatelliteModule.h"
#include <iostream>
#include <cmath>
#include <string>
#include <random>
using namespace std;
const int Nmax = pow(2, 15); // maximum levels in the a... |
//========= Copyright Valve Corporation, All rights reserved. ============//
//
// Purpose:
//
// $NoKeywords: $
//
//===========================================================================//
#include <stdio.h>
#include <stdlib.h>
#include <direct.h>
#include "tier1/strtools.h"
#include <conio.h>
#include "tier1/u... |
// CLASSIFICATION: UNCLASSIFIED
/***************************************************************************/
/* RSC IDENTIFIER: MOLLWEIDE
*
* ABSTRACT
*
* This component provides conversions between Geodetic coordinates
* (latitude and longitude in radians) and Mollweide projection coordinates
* (easti... |
// Fill out your copyright notice in the Description page of Project Settings.
#include "Misc/GTRandomObjectPlacer.h"
#include <Components/BoxComponent.h>
#include <Components/InstancedStaticMeshComponent.h>
#include <Components/StaticMeshComponent.h>
#include <DrawDebugHelpers.h>
#include <Engine/StaticMesh.h>
#incl... |
// -*- C++ -*-
//
// Package: L1Trigger/skeleton
// Class: skeleton
//
/**\class skeleton skeleton.cc L1Trigger/skeleton/plugins/skeleton.cc
Description: [one line class summary]
Implementation:
[Notes on implementation]
*/
//
// Original Author: <NAME>
// Created: Thu, 05 Dec 2013 17:39:27 G... |
/*
Copyright libCellML 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 applicable law or agreed to in writing, softwa... |
// RACC - AI development project for first-person shooter games
// (http://racc.bots-united.com/)
//
// Rational Autonomous Cybernetic Commandos AI
//
// bmpfile.cpp
//
#include <racc.h>
// width and height of the debug bitmap image
#define DEBUG_BMP_WIDTH 2000
#define DEBUG_BMP_HEIGHT 2000
char *b... |
#include "common.hpp"
#include "params.hpp"
#include <mutex>
#include "net/udp_client.hpp"
#include "net/udp_server.hpp"
#include "dsp/persistent.hpp"
#include "dsp/pwm.hpp"
#include "dsp/overlay.hpp"
#include "dsp/pchip.hpp"
#include "io/gpio.hpp"
#include "sync.hpp"
using namespace std::chrono_literals;
const arr_t... |
/*
LZ78 basic algorithm implementation with varying dictionnary size, no reset of dictionnary
Copyright (C) 2010 <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, ... |
// Ŭnicode please
#include "texture_mapping.h"
#include <glm/glm.hpp>
#include <glm/ext.hpp>
#include <GL/glew.h>
#include <GLFW/glfw3.h>
#include "main.h"
#include <vector>
#include "sora/OVR_Types.h"
#include "sora/filesystem.h"
#include "sora/low_level_c_file.h"
#include "haruna/gl/shader.h"
#include "haruna/g... |
//------------------------------------------------------------------
//
// @@@ START COPYRIGHT @@@
//
// 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. ... |
#pragma once
#include "../../JObject.hpp"
class JString;
namespace android::system
{
class OsConstants : public JObject
{
public:
// Fields
static jint AF_INET();
static jint AF_INET6();
static jint AF_UNIX();
static jint AF_UNSPEC();
static jint AI_ADDRCONFIG();
static jint AI_ALL();
static jint ... |
// Copyright (c) 2006-2008 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 <algorithm>
#include <windows.h>
#include "chrome/browser/url_fixer_upper.h"
#include "base/file_util.h"
#include "base/logging.h"
#in... |
#include "taptests.hpp"
#include "edit.hpp"
std::wstring inspect (
std::wstring::const_iterator s, std::wstring::const_iterator const e)
{
std::wstring t;
t.push_back ('"');
for (; s < e; ++s)
switch (*s) {
default: t.push_back (*s); break;
case '\t': t.append (L"\\t"); break;
... |
#include "Render.h"
#include <array>
#include <istream>
#include <functional>
#include <fstream>
#include <set>
#include <sstream>
#include <vector>
#include "VarsCollection.h"
#include "Paths.h"
#include "Logging.h"
namespace {
using namespace std::string_view_literals;
constexpr std::string_view k_Include... |
//
// Copyright (c) 2016 - 2017 Mesh Consultants Inc.
// 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, mod... |
/** @file Frame.cpp
* @brief Inicia o Frame de execução com vetor de variáveis locais, operandos,
* contador de programa e ponteiro para pool de constantes.
* @bug No know bugs.
*/
#include "Frame.h"
#include "MethodInfo.h"
#include "AttributeInfo.h"
#include "Instruction.h"
#include "InstructionsFunc.h"
#... |
/*
* contrib/pageinspect/btreefuncs.c
*
*
* btreefuncs.c
*
* Copyright (c) 2006 <NAME> <<EMAIL>>
*
* Permission to use, copy, modify, and distribute this software and
* its documentation for any purpose, without fee, and without a
* written agreement is hereby granted, provided that the above
* copyright not... |
#include "CVirtualPotential.h"
#include <iostream>
using namespace std;
CVirtualPotential::CVirtualPotential()
{
//wallThickness = min(WALL_END_Y - WALL_START_Y, WALL_END_X - WALL_START_X)/WALL_THICKNESS_FACTOR;
wallThickness = 30;
for (int i=0; i<WIDTH_PIX; i++)
{
for (int j=0; j<HEIGHT_PIX; j++)
{
poten... |
#include "Common.hpp"
#include "../backend/Position.hpp"
#include "../backend/Game.hpp"
#include "../backend/Move.hpp"
#include "../backend/Search.hpp"
#include "../backend/TranspositionTable.hpp"
#include "../backend/Evaluate.hpp"
#include "../backend/Material.hpp"
#include "../backend/Endgame.hpp"
#include "../backe... |
/*
* Compare two fluid files for mismatches
*/
#include <cstdlib>
#include <iostream>
#include <fstream>
#include <string.h>
#include <math.h>
#include <assert.h>
#include "particles.hpp"
////////////////////////////////////////////////////////////////////////////////
//Which error codes to ret... |
#include "p2Defs.h"
#include "p2Log.h"
#include "j1App.h"
#include "Player.h"
#include "j1InGameScene.h"
#include "j1SceneSwitch.h"
#include "j1Textures.h"
#include "j1Collision.h"
#include "j1Pathfinding.h"
#include "j1Input.h"
#include "j1Map.h"
#include "j1Audio.h"
#include "j1EntityManager.h"
#include "j1CharacterS... |
#include "framework.h"
#include "particle.h"
using namespace prototyper;
framework frm;
/////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////
bool move_camera( camera<float>& cam, flo... |
// Copyright (C) 2020 Intel Corporation
/*
API example
=======
curl -d '{
"pipeline":"launcher.object_detection",
"method":"start",
"parameter":"{
\"source\":\"device=/dev/video0\",
\"sink\":\"v4l2sink device=/dev/video2\",
\"resolution\":\"width=800,height=600\"
}"
}' -H "Content-Type: application/json" -X POST http:... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.