text stringlengths 3.08k 12.5k |
|---|
#include "dialog.h"
#include <QDebug>
#include <QFile>
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonValue>
#include <QListWidget>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QNetworkRequest>
#include <QTcpServer>
#include <QTimer>
#include <QVBoxLayout>
#... |
/*
Copyright (c) 2018, 2020, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with certain ... |
#include <slepceps.h>
#include <petscblaslapack.h>
#include <rokko/localized_matrix.hpp>
#include <rokko/utility/frank_matrix.hpp>
/*
User-defined routines
*/
PetscErrorCode MatMult_myMat(Mat A,Vec x,Vec y);
PetscErrorCode MatGetDiagonal_myMat(Mat A,Vec diag);
#undef __FUNCT__
#define __FUNCT__ "main"
int main(int... |
/**
* Filename: VelocityDispatcher.cpp
* Author: <NAME>, Cogniteam Ltd.
* Date: Nov 26, 2013
*
* The MIT License (MIT)
*
* Copyright (c) 2013 Cogniteam Ltd.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Softwa... |
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <chrono>
#include <hip/hip_runtime.h>
#define POLYNOMIAL_DEGREE 7
#define p_Nggeo 7
#define p_G00ID 1
#define p_G01ID 2
#define p_G02ID 3
#define p_G11ID 4
#define p_G12ID 5
#define p_G22ID 6
#define p_GWJID 0
... |
#include "SSD1322.hpp"
#define CS 10
#define DC 9
void SSD1322::writeByte(unsigned char Data)
{
SPI1.beginTransaction(spiSettingsSSD1322);
SPI1.transfer(Data);
SPI1.endTransaction();
}
void SSD1322::WriteCommand(unsigned char Data)
{
digitalWrite(CS, LOW);
digitalWrite(DC, LOW);
writeByte(Dat... |
/* This file contains third-party source code. The disclaimer below is
* provided by the authors.
*/
/* Revision 0.1
*/
/***********************************************************************/
/************************* DISCLAIMER **********************************/
/******************************************... |
#include "AslrEntry.h"
AslrEntry::AslrEntry(const RangePair& _p):
AvlEntry<RangePair>(_p),
xTotal(_p.x),
numChildren(1)
{
}
AvlEntry<RangePair>* AslrEntry::Clone(const RangePair& _p, PrimitiveHeap& pHeap)
{
AslrEntry* newEntry = (AslrEntry*)pHeap.alloc(sizeof(AslrEntry), 8);
new (newEntry) AslrEntry(... |
/** @file HealpixProj.cxx
@brief implementation of the class HealpixProj
$Header: /nfs/slac/g/glast/ground/cvs/users/echarles/healpix_changes/astro/src/HealpixProj.cxx,v 1.4 2015/11/30 19:38:33 echarles Exp $
*/
// Include files
#include <cstring>
#include "tip/IFileSvc.h"
#include "tip/Image.h"
#include "tip/Header... |
#include <opencv2/opencv.hpp>
using namespace cv;
using namespace std;
using namespace cv;
int first_click = 0;
int Xholder, Yholder;
Point pt[4];
vector <cv::Point> pts;
Mat img_org;
Mat img_show;// show image
int Mousedrag = 0;
Mat img;
Mat imgcopy;
int remove1 = 0;
int id = -1;
void onMouse(int event, int x, int... |
#include<cstdio>
#include<cstring>
#include<algorithm>
#include<vector>
#include<iostream>
using namespace std;
#define mem(Arr,x) memset(Arr,x,sizeof(Arr))
const int maxN=510;
int n,H,St[maxN];
vector<int> T[maxN];
int vis[maxN];
void Ask(int id);
int main()
{
int Case;
scanf("%d",&Case);
while (Case--) {
scan... |
#include "ItemLantern.h"
#include "after/entities/props/props/PropLantern.h"
#include "after/types/terrain/BlockTracker.h"
#include "renderer/light/CLight.h"
#include "engine-common/entities/CParticleSystem.h"
#include "engine/physics/raycast/Raycaster.h"
#include "renderer/logic/model/CModel.h"
#include "renderer/... |
#include "tvectorcalendario.h"
TCalendario
TVectorCalendario::operator[] (const int pos) const
{
TCalendario vacio;
bool rango = pos >= 1 && pos <= _tamano;
if ( rango && _c != NULL)
return _c[pos-1];
else
return vacio;
}
std::ostream&
operator << (std::ostream& os, const TVectorC... |
#include <iostream>
#include <memory>
template<typename T, typename... Args>
std::unique_ptr<T> make_unique(Args&&... args) {
return std::unique_ptr<T>(new T(std::forward<Args>(args)...));
}
class BST {
public:
class Node;
typedef std::unique_ptr<Node> upNode;
class Node {
public:
No... |
/* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
*/
//
// main.cpp
// antlr4-cpp-demo
//
// Created by <NAME> on 13.03.16.
//
#include <iostream>
#include <exception>
#i... |
#include "box.hpp"
#include "shape.hpp"
#include <cmath>
Box::Box() : Shape{"box",{}}, min_ {0.0f,0.0f,0.0f}, max_ {0.0f,0.0f,0.0f} {}
Box::Box(glm::vec3 const& min, glm::vec3 const& max) :
Shape{"box",{}}, max_{max}, min_{min}{
min_.x = std::min(min.x, max.x);
min_.y = std::min(min.y, max.y);
min_.z... |
/******************************************************************************
* Copyright 2017-2018 <NAME> / Sonus Dept. <<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... |
/*Copyright (c) 2014 The Paradox Game Converters Project
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, mer... |
//<NAME>
#include "common.h"
matrix unZigZagMatrix(matrix in) {
matrix unZigZag;
unZigZag.initializeV(8, 8);
bool goingDown = false;
int oldCol = 0;
int oldRow = 0;
int newCol = 0;
int newRow = 0;
do {
//The only real difference from ZigZag to this is
//I switched old with New here
unZigZag.v[oldRow][o... |
#include "check_particle.h"
#include "opic_fwd.h"
#include "config.h"
#include "io_utilities.h"
#include "grid.h"
#include "particles.h"
#include "gather_scatter.h"
#include "call_lua_function.h"
#include <boost/format.hpp>
#include <omp.h>
#include <stdexcept>
/*****************************************... |
#include <gtest/gtest.h>
#include <scf/scf.h>
#include <vector>
// User types for the UserTypeTest test
struct UserType1 {
std::string data{};
int number = 0;
};
std::string ToString(const UserType1 &arg) {
return "{ " + arg.data + ", " + std::to_string(arg.number) + " }";
}
class UserType2 {
public:
... |
#include "stdafx.h"
#include "fh_bitmap.h"
#include <d2d1.h>
#include <d2d1helper.h>
#include <dwrite.h>
#include <wincodec.h>
using namespace ForHonor;
Bitmap::Bitmap(uint32_t posX1, uint32_t posY1, uint32_t posX2, uint32_t posY2)
: posX1(posX1)
, posX2(posX2)
, posY1(posY1)
, posY2(posY2)
, wid... |
// Project : Half-Life Advanced Effects
// File : dllg/screenfade.cpp
// Comment : Allows to alter or surpress pfnGetScreenFade requests
#include <wrect.h>
#include <cl_dll.h>
#include <cdll_int.h>
#include <cvardef.h>
#include "hl_addresses.h"
#include "detours.h"
#include <screenfade.h>
#include... |
/****************************************************************************
**
** Copyright (C) 2017 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the examples of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:BSD$
** Commercial License Usage
** Licensees holding valid comm... |
/*
* MIT License
*
* Copyright (c) 2019-2021 Ecole Polytechnique Federale Lausanne (EPFL)
*
* 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 limit... |
#include <ros/ros.h>
#include <actionlib/client/simple_action_client.h>
#include <actionlib/client/terminal_state.h>
#include <athomerobot_msgs/slamactionAction.h>
#include "athomerobot_msgs/maptools.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <setjmp.h>
#include <iostream>
#include <fstrea... |
///////////////////////////////////////////////////////////////////////////////////////////////////////
/// DemoDetector.cpp
///
/// Description:
/// This program shows you how to use FaceAlignment class in detecting facial landmarks on one image.
/// In this version, we add head pose estimation. See DemoTracke... |
//============================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE... |
/*
Detrended Fluctuation Analysis (DFA) allows us to estimate
Hurst paramter of a given vector.
Requirements:
1. GSL - GNU Scientific Library : https://www.gnu.org/software/gsl/
To compile include following flags:
-I *gsl_path*\gsl\include\,
-L *gsl_path*\gsl\lib\,
-I *gsl_path*\gsl\bin\,
-lgsl
B... |
#include "mesh.h"
vertex::vertex() {
loc.setZero();
normal.setZero();
}
/* This is here to allow for easy breakpoints to find places where copying takes
* place. */
inline void vertexCopy() {
cout << "vertex copied" << endl;
}
inline void meshCopy() {
cout << "mesh copied" << endl;
}
vertex::vertex(const v... |
#include <QDebug>
#include <gmodule.h>
#include "networkmanager.h"
static void added_cb(GObject *client, GAsyncResult *result, gpointer user_data)
{
Q_UNUSED(user_data);
GError *error = NULL;
NMActiveConnection *remote = nm_client_add_and_activate_connection_finish(NM_CLIENT(client), result, &error);
... |
// Class include
#include "VarWeighter.hh"
VarWeighter::VarWeighter(const TString & varwgtconfig)
: fVarWgtConfig(varwgtconfig)
{
std::cout << "Initializing VarWeighter..." << std::endl;
////////////////
// //
// Initialize //
// //
////////////////
// init configuration
VarWe... |
/*
* ArgvTracker.cpp
*
* Created on: Jun 4, 2016
* Author: <NAME>
*/
#include <llvm/Pass.h>
#include <llvm/IR/Module.h>
#include <llvm/IR/Function.h>
#include <llvm/IR/Instruction.h>
#include <llvm/IR/Instructions.h>
#include <llvm/IR/IntrinsicInst.h>
#include <llvm/IR/Intrinsics.h>
#include <llvm/IR/Consta... |
// (C) 1992-2016 Intel Corporation.
// Intel, the Intel logo, Intel, MegaCore, NIOS II, Quartus and TalkBack words
// and logos are trademarks of Intel Corporation or its subsidiaries in the U.S.
// and/or other countries. Other marks and brands may be claimed as the property
// of o... |
#include <SFML/Graphics.hpp>
#include <ctime>
using namespace sf;
//PLAYING FIELD DIMENSIONS//
const int H = 14; // HIGHT
const int W = 14; // WEIGHT
const int HG = 12;
const int WG = 12;
const int h = 12;
int fieldLogicGen[H][W] = {};
int fieldLogic[HG][WG] = {};// PLAYING FIELD
int fieldGrafic[HG][... |
/*
* #%L
* OME-XML C++ library for working with OME-XML metadata structures.
* %%
* Copyright © 2016 Open Microscopy Environment:
* - Massachusetts Institute of Technology
* - National Institutes of Health
* - University of Dundee
* - Board of Regents of the University of Wisconsin-Madison
* - Glenco... |
/*
* Copyright (c) 2015-2017 Wind River Systems, Inc.
*
* SPDX-License-Identifier: Apache-2.0
*
*/
/**
* @file
* Wind River - Titanium Cloud - Regex Utilty Module
*/
#include <iostream>
#include <string>
#include <regex>
using namespace std;
#include "nodeBase.h"
#include "regexUtil.h"
/*****************... |
/* ========================================
* FathomFive - FathomFive.h
* Copyright (c) 2016 airwindows, All rights reserved
* ======================================== */
#ifndef __FathomFive_H
#include "FathomFive.h"
#endif
AudioEffect* createEffectInstance(audioMasterCallback audioMaster) {return new FathomFiv... |
#pragma once
#include "UIs.hpp"
#include "Settings.hpp"
#define BUILD_WITH_EASY_PROFILER
#include <easy/profiler.h>
#include "ProfilerConfig.hpp"
bool DebugUI::visible = true;
void DebugUI::Draw(Game* game) {
EASY_FUNCTION(UI_PROFILER_COLOR);
if(!visible) return;
ImGui::SetNextWindowSize(ImVec2(250, ... |
#include "Utils.h"
#include <iostream> // Added
const Matrix IDENTITY_MATRIX = { {
1, 0, 0, 0,
0, 1, 0, 0,
0, 0, 1, 0,
0, 0, 0, 1
} };
float Cotangent(float angle)
{
return (float)(1.0 / tan(angle));
}
float DegreesToRadians(float degrees)
{
return degrees * (float)(PI / 180);
}
float RadiansToDegrees(... |
#include <layer.h>
#include <layer/convolution.h>
#include <layer/batchnorm.h>
#include <net.h>
namespace ncnn {
class OpFuser {
public:
void fuse(const char* parampath, const char* modelpath) {
Net net;
auto ret = net.load_param(parampath);
if (ret != 0) {
fprintf(stderr, "load... |
#include "SwingStanceState.hh"
#define FOOT_THRESHOLD 20.0 // [N]
#define FOOT_THRESHOLD_INIT 50.0 // [N]
#define TOE_THRESHOLD 20.0 // [N]
#define TOE_THRESHOLD_INIT 50.0 // [N]
#define MIN_STANCE_TIME 0.2 // [s]
#define MIN_SWING_TIME 0.15 // [s]
#define WAIT_BEFORE_SWING 0.005 // [s]
#define THRESHOLD_FOOT_ABS 0... |
#include <cstdlib>
#include <vector>
#include <string>
#include <cstring> // memset
#include <sys/time.h>
#include <signal.h>
#include "ColouringAlgorithm.h"
#include "BrownColouringAlgorithm.h"
#include "DsaturColouringAlgorithm.h"
#include "BrownKormanColouringAlgorithm.h"
#include "BrelazColouringAlgorithm.h"
#inclu... |
/** //
* Copyright (c) 2015-2017, The Kovri I2P Router Project //
* //
* All rights reserved. ... |
/**
* Solution by <NAME>
* This solution need the file problem18CompanionFile (where is written the tree)
* You are given the following information, but you may prefer to do some research for yourself.
1 Jan 1900 was a Monday.
Thirty days has September,
April, June and November.
All the rest have thirty-one,
Saving... |
/*
Profile.cpp
Profile code
(c)2005 Palestar, <NAME>
*/
#define DEBUG_DLL
#include "Debug/Profile.h"
#include "Debug/Assert.h"
#include "Standard/Exception.h"
#include "Standard/Tree.h"
#include "Standard/Time.h"
#include "Standard/Thread.h"
#include <stdio.h>
//--------------------------------------------------... |
/*
* square.cpp
*
* Created on: Dec 20, 2011
* Author: james
*/
#include <cassert>
#include <cstdio>
#include <cstdlib>
#include "defs.h"
#include "globals.h"
dir_t get_dir_slow(square_t from,square_t to) {
int32 f_diff = get_file(from) - get_file(to);
int32 r_diff = get_rank(from) - get_rank(to)... |
#include "SceneSelectLevel.h"
#include "Application.h"
#include "ModuleTextures.h"
#include "ModuleRender.h"
#include "ModuleAudio.h"
#include "ModuleInput.h"
#include "ModuleUI.h"
#include "ModuleFadeToBlack.h"
#include "ModuleLevel.h"
SceneSelectLevel::SceneSelectLevel(bool startEnabled) : Module(startEnabled)
{
}... |
/*
* Copyright 2013 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "GrGLProgramDesc.h"
#include "GrProcessor.h"
#include "GrGLGpu.h"
#include "GrPipeline.h"
#include "SkChecksum.h"
#include "glsl/GrGLSLFragmentProcessor.h"
#include "... |
/*!
* @file newtonoptimizer.cpp
* @brief class for solving the minimal entropy optimization problem using a newton optimizer with line search.
* @author <NAME>
*/
#include "optimizers/newtonoptimizer.h"
#include "common/config.h"
#include "entropies/entropybase.h"
#include "quadratures/quadraturebase.h"
#include "... |
#include "global.h"
#include "monitor_handlers.h"
#include "communication.h"
#include "monitor.h"
#include <stdio.h>
typedef struct _MESSAGE_LIST_ENTRY {
LIST_ENTRY List;
HEDERA_MESSAGE* Message;
} MESSAGE_LIST_ENTRY;
HEDERA_MESSAGE* HandleMessage(HEDERA_MESSAGE* pMsg);
extern HANDLE hCmdPipe;
extern... |
// File: morph.cc
// Abstract: morphological type operators
//
// Created: 07/31/98 by: <NAME>
// Modified:
//
//
#include "morph.h"
void select_area(bframe3d * input, int tol)
{
int i, j, k, l, a;
int xdim, ydim, zdim, num;
int * area_num, * blabel;
input->querydim(&xdim, &... |
/*
// March 2014 - TMRh20 - Updated along with High Speed RF24 Library fork
// Parts derived from examples by <NAME> <<EMAIL>>
*/
/**
* Example for efficient call-response using ack-payloads
*
* This example continues to make use of all the normal functionality of the radios including
* the auto-ack and auto-r... |
/* Copyright (c) 2013 BlackBerry 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 law or agree... |
// -----------------------------------------------------------------------------
// *****************************************************************************
//
// Implementation of algorithms to compute LCP with BWT transform.
// © 2017 All rights reserved.
//
// **********************************************... |
#include "Parser/Parser.h"
// Statement
#include "Parser/Statement/PrintingStatement.h"
#include "Parser/Statement/VariableStatement.h"
// Expression
#include "Parser/Expression/NumberExpression.h"
#include "Parser/Expression/IdentifierExpression.h"
// Expression Operator Arithmetic
#include "Parser/Expression/Opera... |
#include "FloydSteinberg.h"
#include <ImageData.h>
#include <ImageFormat.h>
#include <cassert>
#include <vector>
using namespace std;
using namespace canvas;
struct rgba_s {
rgba_s() : red(0), green(0), blue(0), alpha(0) { }
rgba_s(unsigned int _red, unsigned int _green, unsigned int _blue, unsigned int _alpha ... |
/*************************************************************************\
C O P Y R I G H T
Copyright 2003 Image Synthesis Group, Trinity College Dublin, Ireland.
All Rights Reserved.
Permission to use, copy, modify and distribute this software and its
doc... |
/* -*- coding: utf-8-unix -*-
*
* File: src/units.cpp
*
* Copyright (C) 2021 <NAME>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your opti... |
#pragma once
#include <eosio/eosio.hpp>
#include <eosio/system.hpp>
using namespace eosio;
#define defined_token_contract "token.savact"
// Singletons cannot be shown by the nodes, therefore a multiindextable is used
class globals
{
public:
struct Star {
int64_t amount;
std::vector<char> user; // contains the ... |
// ObjectTalk Scripting Language
// Copyright (c) 1993-2022 <NAME>. All rights reserved.
//
// This work is licensed under the terms of the MIT license.
// For a copy, see <https://opensource.org/licenses/MIT>.
//
// Include files
//
#include <cstring>
#include "ot/exception.h"
#include "application.h"
//
// OtA... |
#include "../include/closest_pair_non_Eu.h"
#include "../include/kth_smallest_non_Eu.h"
#include <tuple>
#include <fstream>
#include <iomanip>
cpp_int ClosestPairDoubling::brute_force(PointList &S) {
cpp_int result = std::numeric_limits<cpp_int>::infinity();
for (int i = 0; i < S.points.size(); i++) {
for (int... |
#include <iostream>
#include <cmath>
using namespace std;
struct Node {
int content;
Node * next;
};
void add (Node * &list, int i) {
Node * nuevo = new Node;
nuevo->content = i;
nuevo->next = list;
list = nuevo;
}
void addNode (Node * &list, Node * node) {
node->next = list;
list = node;
}
void add... |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
//------------ loop macros
#define for0(i, n) for(int i=0; i<n; i++)
#define for1(i, n) for(int i=1; i<=n; i++)
#define fr(i,start, till) for(int i=start; i<=till; i++)
#define frr(i,start, till) for(int i=... |
// Copyright Reality Engine. All Rights Reserved.
#include "Rendering/Opengl/GLContext.h"
#include <glad/glad.h>
#include "Rendering/Opengl/GLShaderHelper.h"
#include "Rendering/Opengl/GLMeshHelper.h"
#include "Rendering/Opengl/GLCubeMap.h"
#include "Rendering/Opengl/GLLight.h"
#include "Core/Maths/Matrix4... |
#include "TDGAJniHelper.h"
#include "TDGALog.h"
#include <string.h>
#define JAVAVM TDGAJniHelper::getJavaVM()
using namespace std;
#define JAVA_CLASS_VIRTUAL "com/tendcloud/tenddata/TDGAVirtualCurrency"
#define JAVA_CLASS_TDGA "com/tendcloud/tenddata/TalkingDataGA"
#define JAVA_CLASS_MISSION "co... |
#include <string.h>
#include <stdio.h>
#include <math.h>
#include <assert.h>
#include "bpnet.h"
//获取训练所有样本数据
void BP::GetData(const Vector<Data> _data)
{
data = _data;
}
//开始进行训练
void BP::Train()
{
printf("Begin to train BP NetWork!\n");
GetNums();
InitNetWork();
int num = data.size();
for(i... |
/*Copyright 2019 DScribe developers
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... |
/* ========================================================================
$File: $
$Date: $
$Revision: $
$Creator: <NAME> $
$Notice: (C) Copyright 2015 by Molly Rocket, Inc. All Rights Reserved. $
======================================================================== */
//
// NOTE(casey): Handmad... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <conio.h>
#include <time.h>
#include <windows.h>
#include <queue>
#include <algorithm>
#define FG FOREGROUND_GREEN
#define FR FOREGROUND_RED
#define FB FOREGROUND_BLUE
#define FI FOREGROUND_INTENSITY
#define dd double
#define ll long long
#define ull ... |
#include <cstdlib>
#include <clocale>
#include <sstream>
#include <getopt.h>
#include <iostream>
#include <memory>
#include <ncpp/NotCurses.hh>
#include <ncpp/Reel.hh>
#include <ncpp/NCKey.hh>
using namespace ncpp;
class TabletCtx {
public:
TabletCtx() :
lines(rand() % 5 + 3),
rgb(rand() % 0x1000000... |
/*
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... |
// spawn robot swarm at customized quantity, positions and orientation using gazebo service
// this node is to be invoked in a launch file for environment setting of gazebo
// parameters from parameter server
// robot name: /swarm_sim/robot_name
// robot urdf: /swarm_sim/robot_name_urdf (replace robot_name wit... |
/*
* eaproxy.cpp: forwards EAPoL packets across ethernet interfaces
*
* Allows forwarding authentication traffic across a gateway that
* doesn't know how to pass EAP packets. Will also proxy
* 802.1Q-encapsulated EAP traffic.
*/
#include <stdio.h>
#include <unistd.h>
#include <string.h>
#include <std... |
/*
Copyright (C) 2011 by <NAME>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, subli... |
//=========================================================================
// Copyright (c) Kitware, Inc.
// All rights reserved.
// See LICENSE.txt for details.
//
// This software is distributed WITHOUT ANY WARRANTY; without even
// the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
// PURPOSE... |
/*
Copyright 2020 The Silkrpc Authors
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed t... |
#include <argos3/core/utility/logging/argos_log.h>
#include <argos3/core/simulator/space/positional_indices/grid.h>
#include <argos3/plugins/simulator/entities/led_entity.h>
using namespace argos;
/****************************************/
/****************************************/
const size_t NUM_LEDS = 10;
/****... |
#include <iostream>
#include <string>
#include <cstdlib>
#include <ctime>
using namespace std;
#define inputSize 10
#define MAX 20
string inputString();
void copyString(string, char[]);
void subString(char[], char[]);
void getString(int, int, char[], char[]);
void NhapMang(int[], int);
void XuatMang(int[], int);
vo... |
#include "Shader.hpp"
#include <fstream>
#include <vector>
Shader::Shader(const std::string &res, const std::string &v, const std::string &f) :
Shader(res, v, f, "")
{ }
Shader::Shader(const std::string &res, const std::string &vName, const std::string &fName, const std::string &gName) {
pid = glCreateProgram()... |
/*
* rcvbuf.cc
* Copyright (C) 2001 by the University of Southern California
* $Id: rcvbuf.cc,v 1.2 2005/08/25 18:58:08 johnh Exp $
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License,
* version 2, as published by the Free Software Foun... |
/*
* play.cpp
* author: <NAME> (<EMAIL>)
* date: August 26 2008
* description: play two strategies against each other in leduc
*/
#include <cassert>
#include <cstdio>
#include <ctime>
#include <getopt.h>
#include "game.hpp"
#include "strategy.hpp"
#ifdef NDEBUG
#undef assert
#define assert(_Expressi... |
//===-- asan_poisoning.cc -------------------------------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
// Copyright (C) 2007 Id Software, Inc.
//
#include "../precompiled.h"
#pragma hdrstop
#if defined( _DEBUG ) && !defined( ID_REDIRECT_NEWDELETE )
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif
#include "FootPrints.h"
#include "HardcodedParticleSystem.h"
/*********... |
/*--------------------------------------------------------------------------------
The MIT License (MIT)
Copyright (c) 2016 Great Hill 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 Soft... |
/*
* Copyright 2018-2021 Membrane Software <<EMAIL>> https://membranesoftware.com
*
* 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... |
/* SPDX-License-Identifier: Apache-2.0 */
/* Copyright 2021 Ricerca Security, Inc. All rights reserved. */
#include <cassert>
#include <cstdint>
#include <cstring>
#include <iostream>
#include <linux/limits.h>
#include <vector>
#include "bitmap.hpp"
#include "cache.hpp"
#include "common.hpp"
#include "decoder.hpp"
#i... |
// Copyright (C) 2008 <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 later version.
... |
#include <iostream>
#include <iomanip>
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
#include <map>
#include <regex>
#include <getopt.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/types.h>
#include <dirent.h>
#include <sys/stat.h>
#define PB push_back
using namespace std;... |
/*-
* SPDX-License-Identifier: Zlib
*
* Copyright (c) 2009-2018 <NAME> <<EMAIL>>
* For conditions of distribution and use, see LICENSE file
*/
#include "kernel/vmpage.h"
#include "kernel/vmarea.h"
#include "kernel/page.h"
#include "kernel/lib.h"
#include "kernel/vmspace.h"
#define DPRINTF(...)
VMPage* VMArea::L... |
//------------------------------------------------------------------
//
// @@@ 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. ... |
// MinimizeToTray
//
// A couple of routines to show how to make it produce a custom caption
// animation to make it look like we are minimizing to and maximizing
// from the system tray
//
// These routines are public domain, but it would be nice if you dropped
// me a line if you use them!
//
// 1.0 29.06.2000 Initi... |
/*
Copyright (c) 2020, VSB - Technical University of Ostrava and Graz University of
Technology
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyr... |
#include "map.h"
#include "game_settings.h"
#include <fstream>
#include <ncurses.h>
#include <sstream>
Map::Map(unsigned int _width, unsigned int _height)
: width(_width), height(_height) {
/**
* @brief Constructor for Map class.
* @param _width Width of the map.
* @param _height Height of the map.
*... |
// Copyright 2017 Open Source Robotics Foundation, Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by appli... |
/*
* Copyright (C) 2015-2021 Swift Navigation Inc.
* Contact: https://support.swiftnav.com
*
* This source is subject to the license found in the file 'LICENSE' which must
* be be distributed together with this source. All other rights reserved.
*
* THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY ... |
//=== UndefResultChecker.cpp ------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#include "command_line.h"
#include "option_parser.h"
#include "plan_manager.h"
#include "search_engine.h"
#include "options/doc_printer.h"
#include "options/predefinitions.h"
#include "options/registries.h"
#include "utils/strings.h"
#include <algorithm>
#include <vector>
using namespace std;
ArgError::ArgError(co... |
#include "AbstractFileStorageDataWrapper.h"
#include "Catalog/ForeignServer.h"
#include "Catalog/ForeignTable.h"
#include "Shared/StringTransform.h"
#include "Shared/misc.h"
#include "Utils/DdlUtils.h"
extern bool g_enable_s3_fsi;
namespace foreign_storage {
AbstractFileStorageDataWrapper::AbstractFileStorageDataWra... |
// This file is slightly larger than is normal, the reason is for more efficient compilation, as pybind11 takes a _long time_ to compile
#include <stdlib.h>
#include <stdio.h>
#include <utility>
#include <pybind11/pybind11.h>
#include "db_info.hpp"
namespace py = pybind11;
using namespace py::literals;
#define MAI... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.