text stringlengths 3.08k 12.5k |
|---|
#include "../include/player.h"
#include "../include/globalCtx.h"
#include "../include/keymap.h"
#include <cmath>
#include <string>
#include <vector>
#if defined(_WIN32) || defined(WIN32)
#define M_PI 3.14159265358979323846
#endif
extern GlobalCtx* context;
float limitArmMovement(float angle);
Player::Player(GLfloat... |
#include <math.h>
#include <algorithm>
#include "RWFile.h"
#include "mf.h"
struct data
{
double x;
double y;
double m;
};
// pixval: Measure
// fileout: Archivo de Output
//
int PairCorrelation(simplmat <double> &pixval, char * outFile,
double minBoxSize, double maxBoxSize, double deltaBoxSize, i... |
#include <iostream>
#include <cassert>
#include <algorithm>
#include <CGAL/QP_models.h>
#include <CGAL/QP_functions.h>
#include <CGAL/Gmpz.h>
const int debug_level = 0;
#define DEBUG(min_level, x) \
if (debug_level >= min_level) \
{ \
std::cerr << x << std::endl; \
}
type... |
/*
Copyright (c) 2002-2020 Tampere University.
This file is part of TTA-Based Codesign Environment (TCE).
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, ... |
#include "UbtcBackStage.h"
#include <QTimer>
#include <QDebug>
#include <QCoreApplication>
#include <QDir>
#include <QProcess>
#include "DataDefine.h"
#include "IDEUtil.h"
#include "popwidget/commondialog.h"
#include "datarequire/DataRequireManager.h"
static const int NODE_RPC_PORT = 55555;//node端口 test formal... |
/*
* Copyright (c) 2014-2022 The Voxie Authors
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, mer... |
#include "pch.h"
#define BoolToYN(x) ((x) ? "yes" : "no")
#define NVFTS_SUBKEY "SYSTEM\\CurrentControlSet\\Services\\nvlddmkm\\FTS"
#define NVFTS_VAL "EnableRID70579"
typedef void(*execfunc_t)(void*);
ILogger gLog(true);
#define Message(fmt, ...) gLog.Message(fmt, __VA_ARGS__)
using namespace StrHelpers;
static... |
/*
Copyright 2016 <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 writing, software
distributed ... |
#include <cassert>
#include <cassert>
#include <iostream>
#include <string>
#include <vector>
#include <regex>
#include <sstream>
#include <set>
#include <map>
namespace {
using WeightInfo = std::map<std::string, std::map<std::string, std::uint64_t>>;
int Solve01(const WeightInfo &weight_info, const std::string &col... |
/*
* OpenGL specs Add-on for BeHappy
*
* (c) 1999 <NAME>
*
*/
#include "Add-On.h"
#include "HappyLink.h"
#include "HTMLFile.h"
#include "BHAdd-ons.h"
#include <Alert.h>
// don't touch these!
// these two variables are used by BeHappy to be shure it's compatible with the add-on
const uint16 BHVersion = BHAO_VERSION;
... |
// NetworkMap.cpp: implementation of the NetworkMap class.
//
//////////////////////////////////////////////////////////////////////
#include "NetworkMap.h"
#include <stdio.h>
#include <ace/INET_Addr.h>
using namespace std;
//////////////////////////////////////////////////////////////////////
// Construction/Destru... |
#include "http.h"
#include <stdlib.h>
// HTTP Status Code
static const char *http_status_msg_1xx[] = {
"Continue", // 100
"Switching Protocols", // 101
"Processing", // 102 (WebDAV; RFC 2518)
"Early Hints" // 103 (RFC 8297)
};
static const char *http_status_msg_2xx[] = {
... |
#include <iostream>
#include <sstream>
#include <Eigen/Core>
#include <gtest/gtest.h>
#include "test/utils.hpp"
#include "ldaplusplus/NumpyFormat.hpp"
using namespace Eigen;
using namespace ldaplusplus;
// T will be available as TypeParam in TYPED_TEST functions
template <typename T>
class TestNumpyData : public... |
/*****************************************************
* PROJECT : IO Catcher *
* LICENSE : Apache 2.0 *
* COPYRIGHT: 2020-2022 Bull SAS All rights reserved *
*****************************************************/
/*******************************************... |
// Brass.C -- hacked version (by BGG) for RTcmix from Perry/Gary's STK
// original head/comment:
/***************************************************/
/*! \class Brass
\brief STK simple brass instrument class.
This class implements a simple brass instrument
waveguide model, a la Cook (TBone, HosePlayer).... |
// Copyright 2021 HUYA
//
// 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... |
// © Copyright (c) 2018 SqYtCO
#include "core.h"
#include "cellsystem.h"
#include "hashlifesystem.h"
#include <fstream>
#if __cplusplus < 201703L
#include <experimental/filesystem>
namespace std
{
namespace filesystem = experimental::filesystem;
}
#else
#include <filesystem>
#endif
Configuration Core::config;
std:... |
#include <iostream>
#include <vector>
#include <chrono>
#include <thread>
#include <SDL2/SDL.h>
#include <SDL2/SDL_image.h>
#include <SDL2/SDL_timer.h>
#include <map>
#include <limits.h>
using namespace std;
const int DISPLAY_HEIGHT = 64;
const int DISPLAY_WIDTH = 32;
class chip8 {
public:
uint8_t v[16];
u... |
#include "CallableWithSelfOrArgs.h"
#include "System/BoolVec.h"
#include "System/rcast.h"
#include "Inst/HostId.h"
#include "TypeLambda.h"
#include "Varargs.h"
#include "Lambda.h"
#include "Scope.h"
#include "TCI.h"
#include "Vm.h"
TypeLambda::TypeLambda() : TypeInSane( "Lambda" ) {
}
bool TypeLambda::destroy_attrs()... |
/* Copyright (C) 2010-2013 The Trustees of Indiana University. */
/* */
/* Use, modification and distribution is subject to the Boost Software */
/* License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at */
/* http:... |
/*
* Copyright (C) 2014 The Android Open Source Project
* 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 ... |
/*=========================================================================
Program: Insight Segmentation & Registration Toolkit
Module: $RCSfile: SurfaceToImage.cxx,v $
Language: C++
Date: $Date: 2012/12/07 19:08:59 $
Version: $Revision: 1.1.1.1 $
Copyright (c) Insight Software Consortium. A... |
//
// Created by <NAME> on 2019-07-09.
//
#include <cpptoml.h>
#include "rpc/grpc_client.hpp"
#include "core/Instance.h"
#include "utils/utils.h"
#include "core/MockRPCService.h"
class RaftControl final : public Control::Service {
public:
struct ControlEvent : public Event {
std::string cmd;
enum... |
// https://leetcode-cn.com/problems/unique-binary-search-trees-ii/
#include <cstdio>
#include <vector>
using namespace std;
struct TreeNode {
int val;
TreeNode *left;
TreeNode *right;
TreeNode(int x) : val(x), left(NULL), right(NULL) {}
};
TreeNode* create(initializer_list<int> a)
{
if (a.size() == 0) return NUL... |
#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>
#include <limits.h>
#include <vector>
#include "../common/common_rand.h"
#include "../common/common.h"
#define MIN_NODES 20
#define MAX_NODES ULONG_MAX
#define MIN_EDGES 2
#define MAX_INIT_EDGES 4
#define MIN_WEIGHT 1
#de... |
/*
#
# ----------------------------------------------------------------------------
#
# Copyright 2019 IBM 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.apache.or... |
#include <vector>
#include <iostream>
#include <cmath>
#include "prediction.h"
using namespace std;
vector<double> prediction_front(vector<vector<double>> sensor_fusion,int path_size, const double &lane, double future_car_s){
double too_close = -1;
double targete_vel = -1;
double too_close_min = 1000;
... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkImageButterworthHighPass.cxx
Copyright (c) <NAME>, <NAME>, <NAME>
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This softwar... |
#include "hidmanagertreemodel.h"
class TreeItem {
public:
enum TreeItemType {
RootType,
GroupType,
EntryType
};
explicit TreeItem(const QList<QVariant> &data, TreeItem *parent = 0x0)
: _children(), _data(data), _parent(parent) {}
~TreeItem() { qDeleteAll(_children); }
vo... |
#include <algorithm>
#include <cassert>
#include <chrono>
#include <cmath>
#include <cstdint>
#include <cstdlib>
#include <fstream>
#include <functional>
#include <iostream>
#include <random>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <vector>
using namespace std;
us... |
/*
DDS, a bridge double dummy solver.
Copyright (C) 2006-2014 by <NAME> /
2014-2018 by <NAME> & <NAME>.
See LICENSE and README.
*/
#include <iostream>
#include <iomanip>
#include <vector>
#include "../include/dll.h"
#include "../include/portab.h"
#include "testcommon.h"
#include "TestTimer.h"
#include... |
#include "RelaxedUT.h"
#include "UT.h"
#include <iostream>
using namespace RelaxedUnscentedTransformation;
using namespace Eigen;
// This example considers the most simple, y=x mapping where the length of vector x is 4
// The original UT is used on the following implementation of the function:
VectorXd IdentityFull(... |
#include<iostream>
#include <bits/stdc++.h>
using namespace std;
///Maximum size of the Array
int mx=100;
void create_bst(int T[], int data, int index);
void preorder(int T[], int index);
void postorder(int T[], int index);
void inorder(int T[], int index);
int bsearch(int T[], int data, int index);
void bdelete(i... |
#include <cstdlib>
#include <cstdio>
#include <vector>
#define TINYEXR_IMPLEMENTATION
#include "tinyexr.h"
const char* GetPixelType(int id)
{
if (id == TINYEXR_PIXELTYPE_HALF) {
return "HALF";
} else if (id == TINYEXR_PIXELTYPE_FLOAT) {
return "FLOAT";
} else if (id == TINYEXR_PIXELTYPE_UINT) {
retu... |
#include<ros/ros.h>
#include<opencv2/opencv.hpp>
#include<cv_bridge/cv_bridge.h>
#include<geometry_msgs/Twist.h>
#include<dynamic_reconfigure/server.h>
#include<zaryabot_bringup/parameterConfig.h>
#include<zaryabot_bringup/working_state.h>
#include<zaryabot_bringup/zarya.h>
#define H_max1 180
#define H_min1 165
#def... |
/*
* Copyright (c) 2019 MariaDB Corporation Ab
*
* Use of this software is governed by the Business Source License included
* in the LICENSE.TXT file and at www.mariadb.com/bsl11.
*
* Change Date: 2026-01-04
*
* On the date above, in accordance with the Business Source License, use
* of this software will be g... |
//
// Created by mochangsheng on 2016/11/7.
//
#include "HelloWorld.h"
#include "../Log.h"
#include <stdio.h>
#define REGISTER_CLASS ("com/mcs/javabuild/helloworld/HelloWorld")
static void sendMsgJNI(JNIEnv *env, jobject thiz, jstring msg) {
const char* msgStr = env->GetStringUTFChars(msg, NULL);
... |
/*
chip_tester.cpp - Main file of the IC-testing system.
Revision 0
Features:
-
2018/05/24, <NAME>
(c) Nyanko.ws
*/
#include <wiring.h> // For GPIO.
#include <SPI.h>
#include <SD.h>
#include "serialcomm.h"
void readIndex() {
// Read the index file.
// This file is a simple line-based text-file, ... |
/*------------------------------------------------------------------------------*
* (c)2016, All Rights Reserved. *
* ___ ___ ___ *
* /__/\ / /\ / /\ *
* \ \:\ / /:/ / /::\ *
* ... |
/* Copyright 2019 The TensorFlow Authors. 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 law or a... |
//===-- ObjectFileBreakpad.cpp -------------------------------- -*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
#include <render/particleRender/particle_render.h>
#include <render/util/color_map.h>
static const char *vertexShaderSource = R"(#version 450
in vec4 posAttr;
in vec2 uvAttr;
in vec4 position;
in float renderIntensity;
in float volume;
uniform vec4 camera_right;
uniform vec4 camera_up;
uniform mat4 perspective_matri... |
/**************************************************
* This is a C translation from Masek's matlab code
* Author:
* <NAME>
* <EMAIL>
* Computer Vision Research Laboratory
* Department of Computer Science & Engineering
* U. of Notre Dame
***************************************************/
/*% findlin... |
/**
* PANDA 3D SOFTWARE
* Copyright (c) Carnegie Mellon University. All rights reserved.
*
* All use of this software is subject to the terms of the revised BSD
* license. You should have received a copy of this license along
* with this source code in a file named "LICENSE."
*
* @file config_audio.cxx
* @au... |
#include <ambisonix/AmbComponent.h>
#include <string.h>
static const float fSqrt3_2 = sqrtf( 3.f ) / 2.f;
static const float fSqrt_3_8 = sqrtf( 3.f / 8.f );
static const float fSqrt15_2 = sqrtf( 15.f ) / 2.f;
static const float fSqrt_5_8 = sqrtf( 5.f / 8.f );
//================================================... |
#include <string>
#include <vector>
#include <iostream>
#include <iomanip>
#include <fstream>
#include <chrono>
#include "cantera/base/stringUtils.h"
//#include "cantera/IdealGasMix.h"
//#include "cantera/thermo/StoichSubstance.h"
//#include "cantera/InterfaceLatInt.h"
//#include "cantera/Interface.h"
#include "io.h"... |
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... |
#include "ColorPicker.hpp"
#include "../../../../globals.hpp"
std::unique_ptr<Color[]> GUI::ColorPicker::m_gradient = nullptr;
std::unique_ptr<Color[]> GUI::ColorPicker::m_alphaBar = nullptr;
std::unique_ptr<Color[]> GUI::ColorPicker::m_hueBar = nullptr;
int GUI::ColorPicker::m_gradientID = 0;
int GUI::ColorPicker::m... |
// Copyright 2017 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 <memory>
#include <string>
#include <vector>
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "... |
// Copyright (c) 2009-2021 The Regents of the University of Michigan
// This file is part of the HOOMD-blue project, released under the BSD 3-Clause License.
#include "hoomd/CellList.h"
#include "hoomd/CellListStencil.h"
#include "hoomd/Initializers.h"
#ifdef ENABLE_HIP
#include "hoomd/CellListGPU.h"
#endif
#includ... |
/*
* =========================================================================================
* Name : dbLib.cpp
* Author : <NAME>, <NAME>
* Email : <EMAIL>
* Copyright : Faculty of Computer Science and Engineering - Bach Khoa University
* Description : library for Assignment 1 - Data structu... |
#include <SVDisplay.hpp>
extern bool finish; // from SVApp
float lastX = 1280 / 2.f; // last x pos cursor
float lastY = 720 / 2.f; // last y pos cursor
float deltaTime = 0.f;
float lastFrame = 0.f;
bool firstMouse = true;
bool demo_key_press = false;
bool topview_key_press = false;
static void frame_buffer_size_ca... |
#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <unistd.h>
#include <stdint.h>
#include <assert.h>
#include <sys/resource.h>
#include "common/visionipc.h"
#include "common/swaglog.h"
#include "extractor.h"
#ifdef DSP
#include "dsp/gen/calculator.h"
#else
#include "turbocv.h"
#endif
#include <zmq... |
/*
* Copyright (c) 2019 Opticks Team. All Rights Reserved.
*
* This file is part of Opticks
* (see https://bitbucket.org/simoncblyth/opticks).
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the ... |
/*
* Copyright 2017 Fraunhofer Institute for Manufacturing Engineering and Automation (IPA)
*
* 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... |
// Copyright 2017 The Fuchsia 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... |
/*
* Copyright 2013-2021 <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 ... |
#include "globals.h"
#include "flags.h"
#include "fluxmap.h"
#include "bytes.h"
#include "protocol.h"
#include "fluxsink/fluxsink.h"
#include "decoders/fluxmapreader.h"
#include "lib/fluxsink/fluxsink.pb.h"
#include "proto.h"
#include "fmt/format.h"
#include "fluxmap.h"
#include "scp.h"
#include <fstream>
#include <sys... |
#include "stdafx.h"
#include "EOSAIPlayerInteraction_Trade.h"
#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif
void CEOSAIPlayerInteraction_Trade::Set( long iTurn,
long iRequestingPlayer, long iSentToPlayer,
CString m_strTradeAgreement,
EOSAIEnumTradeAgreemen... |
// (C) Copyright <NAME> 2005.
// Use, modification and distribution are subject to 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)
#define BOOST_MATH_OVERFLOW_ERROR_POLICY ignore_error
#include <boost/math/concepts/real_concept... |
//===-- ThreadKDP.cpp -------------------------------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------------... |
/**
* Part 2 of TokenScript example
*
* This demo builds on the example 1 adding cryptography and full but inflexible security
* To get up and running you will need to:
* 1. Complete Wallet Bridge 1 example
* 2. Fill in WiFi credentials.
* 3. Copy wallet address in AlphaWallet (Settings/My Wallet Address) and a... |
/*
* (c) Copyright 2019 Xilinx, Inc. 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 ap... |
// Copyright (c) 2003-2019 Xsens Technologies B.V. or subsidiaries worldwide.
// 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 ... |
#include <dmzLuaKernel.h>
#include "dmzLuaKernelPrivate.h"
#include <dmzLuaKernelValidate.h>
#include <dmzSystem.h>
#include <dmzTypesString.h>
#include <dmzRuntimeLog.h>
#include <luacpp.h>
using namespace dmz;
namespace {
static const char LogName[] = "dmz.runtime.log";
inline Log**
log_check (lua_State *L, int ... |
/*
* The MIT License (MIT)
*
* Copyright (c) 2021 <NAME> <<EMAIL>>
*
* 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 ... |
/*
* Copyright (c) 2020, NVIDIA 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.apache.org/licenses/LICENSE-2.0
*
* Unless required by applic... |
/*
* Copyright (c) 2017 - 2018, 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, ... |
#include <iostream>
#include <string>
#include <vector>
#include "common.h"
#include "filer.hpp"
ZZStats gStats;
static void show_usage(std::string name)
{
std::cerr << "Usage: " << name << " <option(s)>\n"
<< "Options:\n"
<< "\t-h,--help\t\t\tShow this help message\n"
<< "\t-t,--test\t\t\tTest case [sbc(singl... |
/*
Author: <NAME>
Main Entry point for deliverables supporting IntelPairHmm
Latest Version: 1.0 on Feb.27th 2020
*********************
Definition for "testcase"
typedef struct {
size_t rs_len, hap_len;
vector <uint8_t> q;
vector <uint8_t> i;
vector <ui... |
/*
* Copyright (c) 2017, Intel Corporation
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the "Software"),
* to deal in the Software without restriction, including without limitation
* the rights to use, copy, modify, merge, publis... |
/** @file
@brief Implementation of tool to install a self-signed USB CDC driver
selectively on old VID/PID pairs, only if they meet certain criteria.
@date 2015
@author
Sensics, Inc.
<http://sensics.com/osvr>
*/
// Copyright 2015 Sensics, Inc.
//
// Licensed under the Apache License, Vers... |
//===- MCAsmBackend.cpp - Target MC Assembly Backend ----------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===---------------------------... |
#include <bits/stdc++.h>
#define all(x) (x).begin(), (x).end()
#define gc getchar_unlocked()
#define pc(x) putchar_unlocked(x)
template<typename T> void scan(T &x){x = 0;bool _=0;T c=gc;_=c==45;c=_?gc:c;while(c<48||c>57)c=gc;for(;c<48||c>57;c=gc);for(;c>47&&c<58;c=gc)x=(x<<3)+(x<<1)+(c&15);x=_?-x:x;}
template<type... |
#pragma once
#include <SFML/Graphics.hpp>
#include <optional>
#include <unordered_set>
#include "3rd/json.hpp"
#include "Math/Vector.hpp"
#include "Math/Rectangle.hpp"
#include "Physics/World.hpp"
#include "Structure/Portal.hpp"
#include "Structure/Structure.hpp"
#include "Structure/Plateforme.hpp"
#include "Struct... |
//****************************************************************************
// "Those Funny Funguloids!"
// http://funguloids.sourceforge.net
// Copyright (c) 2006-2007, <NAME>
//
// This software is provided 'as-is', without any express or implied warranty.
// In no event will the authors be held liable for a... |
/**
* Copyright (C) <NAME>
* This file is part of "Grume"
*
* "Grume" 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, version 2 only.
*
* "Grume" is distributed in the hope that it will be useful,
* b... |
#include "Enemy.h"
#include "GraphicAssetResources.h"
#include "GraphicObject.h"
#include "PlayerInfo.h"
#include "SquareNormalState.h"
#include "Transform.h"
SquareNormalState::SquareNormalState()
{
_attackWarningBeamPrototype = std::make_shared<GraphicObject>(Resources::Graphics::WARNING_BEAM_EFFECT, 0.5);
}
Squar... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
///////////////////////////////////////////////////////////////////////////////////////////////////
#include <gtest/gtest.h>
#include "api/memory.hpp"
#include <api/input_layout.hpp>
#include <api/topology.hpp>
#include <api/network... |
/*
* Copyright (C) 2010 - 2012 Project SkyFire <http://www.projectskyfire.org/>
*
* Copyright (C) 2011 - 2012 ArkCORE <http://www.arkania.net/>
*
* 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 Found... |
// tag::header[]
#include <torch/torch.h>
#define cimg_use_jpeg
#include <CImg.h>
using torch::Tensor;
// end::header[]
// at the time of writing this code (shortly after PyTorch 1.3),
// the C++ api wasn't complete and (in the case of ReLU) bug-free,
// so we define some Modules ad-hoc here.
// Chances are, that you ... |
#define IX(i, j) ((i) + (N + 2) * (j))
#define SWAP(x0, x) \
{ \
float *tmp = x0; \
x0 = x; ... |
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2019 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of... |
// Copyright © 1996-2018, Valve Corporation, All rights reserved.
//
// Purpose: Launcher for hammer, which is sitting in its own DLL
#include "base/include/windows/windows_light.h"
#include "appframework/AppFramework.h"
#include "datacache/idatacache.h"
#include "datacache/imdlcache.h"
#include "filesystem.h"
#incl... |
#include "irods/rodsPath.h"
#include "irods/rodsErrorTable.h"
#include "irods/miscUtil.h"
#include "irods/rodsLog.h"
#include "irods/rmUtil.h"
#include "irods/rcGlobalExtern.h"
#include <sys/time.h>
int
rmUtil( rcComm_t *conn, rodsArguments_t *myRodsArgs,
rodsPathInp_t *rodsPathInp ) {
if (!rodsPathInp) {... |
// -*- C++ -*-
//
// Package: ScalersRecover
// Class: ScalersRecover
//
/**\class ScalersRecover ScalersRecover.cc DataFormats/ScalersRecover/src/ScalersRecover.cc
Description: EDAnalyzer to fetch trigger scalers and convert it to SQL
Implementation:
This module may be used to recover L1 trigger scaler... |
/*
* This file is part of the EK9000 device support module. It is subject to
* the license terms in the LICENSE.txt file found in the top-level directory
* of this distribution and at:
* https://confluence.slac.stanford.edu/display/ppareg/LICENSE.html.
* No part of the EK9000 device support module, including th... |
/*/////////////////////////////////////////////////////////////////////////////////
/// An
/// ___ ____ ___ _____ ___ ____
/// / _ \ / ___|_ _|_ _/ _ \| _ \
/// | | | | | _ | | | || | | | |_) |
/// | |_| | |_| || | | || |_| | _ <
/// \___/ \____|___| |_| \___/|_| \_\
/// ... |
#include "Tests_pcp.h"
#include "Model_T3D_ME_s.h"
#include "test_geometry.h"
namespace
{
class Model_test : public Model_T3D_ME_s
{
public:
int alloc_grids(Cube box, double _hx, double _hy, double _hz)
{
int res = 0;
//res = search_bg_grid.alloc_grids(box, _hx, _hy, _hz);
//search_bg_grid.set_mesh_info(*th... |
/*
* Copyright (C) <NAME>, 2020
*
* Do not share this file with anyone
*
* Do not post this file or derivatives of
* of this file online
*
*/
#include <iostream>
#include <cstdlib>
#include "parser.h"
#include "symbol_table.h"
#include <sstream>
#include <string.h>
#include <vector>
#include "my_LexicalAnalyzer... |
/*
* Player - One Hell of a Robot Server
* Copyright (C) 2006
* <NAME>
*
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at y... |
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <climits>
using namespace std;
class TileCutting {
public:
int calc(int l, int h, int q) {
int ret = 2*l;
q -= l;
ret += 2*(h/2) + 2*(h%2);
if (q>0 &... |
/*
* iupolectl.cpp
*
* CPI que implementa um container OLE
*/
#include "tOleHandler.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "iup.h"
#include "iupole.h"
#include "iup_object.h"
#include "iup_register.h"
#include "iup_attrib.h"
#include "iup_stdcontrols.h"
#inc... |
// View.cpp : implementation of the CView class
//
/////////////////////////////////////////////////////////////////////////////
#include "pch.h"
#include "resource.h"
#include "View.h"
#include "TreeNodeBase.h"
CView::CView(IMainFrame* frame) : m_pFrame(frame), m_FilterBar(this) {
}
BOOL CView::PreTranslateMessage(... |
/*
For more information, please see: http://software.sci.utah.edu
The MIT License
Copyright (c) 2020 Scientific Computing and Imaging Institute,
University of Utah.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the ... |
// This is an open source non-commercial project. Dear PVS-Studio, please check it.
// PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
#include "QtIrbis.h"
using irbis::fastParse32;
//=========================================================
const QString AlphabetTable::FileName = "ISISACW.... |
#include "tabu_search.hpp"
tabu_search::tabu_search(const int & tabu_list){
// std::cout << "starting schtuff" << std::endl;
// first = true;
numIter = 0;
best_score = 1000000;
current_state_score = 10000000;
for(int i = 0; i < 20; ++i){
this->state.at(i) = i + 1;
}
// this-... |
#include "StdTuvokDefines.h"
#include <stdexcept>
#include <GL/glew.h>
#include "GLCommon.h"
using namespace GLCommon;
size_t GLCommon::gl_internal_bit_size(GLenum internalformat) {
switch(internalformat) {
// deprecated formats, assume 8bit per component
case GL_INTENSITY: return 8;
case GL_... |
//
//
/**
\class modules::MuonCleanerBySegmentsT MuonCleanerBySegmentsT.h "MuonAnalysis/MuonAssociators/interface/MuonCleanerBySegmentsT.h"
\brief Removes duplicates from a muon collection using segment references.
This module removes duplicates from a muon collection using segment references.
... |
/*
* See the file LICENSE for redistribution information.
*
* Copyright (c) 2004,2009 Oracle. All rights reserved.
*
*
*******
*
* Compression API
*
* A very simple Berkeley DB XML program that demonstrates
* compression API usage.
*
* This program demonstrates:
* Registration of a custom compression cla... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.