text stringlengths 3.08k 22k |
|---|
// Copyright 2009 Google 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 applicable law or agreed to in... |
//=========================================================================
// 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... |
#include "ProjectiveDynamicsSolver.h"
ProjectiveDynamicsSolver::ProjectiveDynamicsSolver(TetrahedralMesh* _tetmesh) : m_tetmesh(_tetmesh)
{
m_DT = (1.0f / 60.0f);
m_nNodes = m_tetmesh->GetNumNodes();
m_nTets = m_tetmesh->GetNumTetrahedrals();
m_nDof = m_nNodes * 3;
m_Mass = new float[m_nNodes*m_nNodes];
m_Lapl... |
#include "common.h"
#include <MQTT.h>
#include <ArduinoOTA.h>
// Because the mqttClient object is defined outside the class, then the constant it uses must also be outside the class.
static const uint16_t _mqttMaxPacketSize = MQTT_MAX_PACKET_SIZE; // Size of buffer for incoming MQTT message
WiFiClient wifiMQTTClient;... |
#include <QtCore/QCoreApplication>
#include <QVector3D>
#include <QVector>
#include <QRandomGenerator>
#include <iostream>
#include <QDebug>
#include <QString>
#include <QStringList>
#include <QFile>
#include <QDataStream>
#include <QTextStream>
#define TINYOBJLOADER_IMPLEMENTATION
#include "tiny_obj_loader.h"
bool d... |
/*********** LICENSE HEADER *******************************
JR Middleware
Copyright (c) 2008-2019, DeVivo AST, Inc
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Redistributions of... |
//Copyright (c) 2013 Singapore-MIT Alliance for Research and Technology
//Licensed under the terms of the MIT License, as described in the file:
// license.txt (http://opensource.org/licenses/MIT)
/*
* File: Utils.cpp
* Author: <NAME> <<EMAIL>>
*
* Created on June 12, 2013, 4:59 PM
*/
#include "Utils.hp... |
//
// Created by Harold on 2021/6/24.
//
#include <iostream>
#include <iomanip>
#include <opencv2/core.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/highgui.hpp>
#include "m_mesh_split.h"
#include "m_mesh_vertices_filter.h"
#include "../utils/io/arg_parser_o3d.h"
#include "stopwatch.h"
// <img, pixel_size... |
/** \copyright
* 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 retain the above copyright notice,
* this list of... |
#include <vector>
#include <boost/spirit/include/qi.hpp>
#include <boost/spirit/include/phoenix.hpp>
namespace qi = boost::spirit::qi;
namespace phx = boost::phoenix;
template <typename Container, typename Iter>
struct srec_parser: qi::grammar<Iter, Container()> {
srec_parser(): srec_parser::base_type(start) {
sta... |
#include <Windows.h>
#include <debugger/client/run.h>
#include <debugger/debugger.h>
#include <debugger/client/stdinput.h>
#include <debugger/bridge/delayload.h>
#include <base/filesystem.h>
#include <base/path/self.h>
#include <base/util/format.h>
#include <base/util/unicode.h>
#include <lua.hpp>
static int errfunc(l... |
#include <assert.h>
#include <math.h>
#include <time.h>
#include <algorithm>
#include <cstdlib>
#include <cstdio>
#include <mutex>
#include <string>
#include <thread>
#include "../UCT.h"
const std::string patternsFile = "patterns.pat";
UCTNode *root;
// http://www.ai-junkie.com/ga/intro/gat2.html
const bool mutate... |
// // See LICENSE_CELLO file for license and copyright information
// /// @file enzo_EnzoRefineMass.cpp
// /// @author <NAME> (<EMAIL>)
// /// @date 2013-04-23
// /// @brief Implementation of Enzo RefineMass class
// #define DEBUG_REFINE
#include "enzo.hpp"
#include "charm_simulation.hpp"
#include "enzo... |
#include "mouse.h"
#include "viewmatrix.h"
#define BUFSIZE 512
extern int g_window_width, g_window_height, gameState, sphereid_now, stickid_now;
int move_sphere = 0, move_stick = 0;
float yaw = 0, pitch = 0;
float mouseX, mouseY;
int tmp_index;
//used to designate the 2 spheres corresponding to the stick
int tmpSp1 =... |
#include "SimpleLateFusion.hpp"
SimpleLateFusion::SimpleLateFusion(string videoPath, int vDicSize, int aDicSize, vector< pair<int,int> > keyframes, string aDescFolder, bool tempFiles) {
this->videoPath = videoPath;
this->vDicSize = vDicSize;
this->aDicSize = aDicSize;
this->keyframes = keyframes;
this->aDescFolde... |
#include "crptkPCH.h"
//-----------------------------------------------------------------------------
//
// File: CBC64WS4.cpp
//
// Microsoft Digital Rights Management
// Copyright (C) 1998-1999 Microsoft Corporation, All Rights Reserved
//
// Description:
//
//---------------------------------------------... |
/*
Copyright (c) 2018 <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, ... |
/* Copyright 2019 Husky Data Lab, CUHK
Authors: <NAME> (<EMAIL>)
*/
#include "core/rdma_mailbox.hpp"
void RdmaMailbox::Init(vector<Node> & nodes) {
// Init RDMA
RDMA_init(node_.get_local_size(), config_->global_num_threads + 1, node_.get_local_rank(), buffer_->GetBuf(), buffer_->GetBufSize(), nodes);
i... |
/*
* This source file is part of RmlUi, the HTML/CSS Interface Middleware
*
* For the latest information, see http://github.com/mikke89/RmlUi
*
* Copyright (c) 2008-2010 CodePoint Ltd, Shift Technology Ltd
* Copyright (c) 2019 The RmlUi Team, and contributors
*
* Permission is hereby granted, free of charge, to... |
/******************************************************************************
** Copyright (C) 1998 by CEA
*******************************************************************************
**
** UNIT
**
** Version: 1.0
**
** Author: <NAME>
**
** Date: 98/01/12
**
** File: CMem.cc
... |
//
// test-networkprotocol.cpp
// networkprotocol
//
// Created by Logan on 1/20/18.
//
#include <boost/asio.hpp>
#include <boost/bind.hpp>
#include <boost/shared_ptr.hpp>
#include <boost/test/unit_test.hpp>
#include <iostream>
#include <memory>
#include <thread>
#include <Connection.hpp>
#include <SimpleRetryProt... |
/*
* Large parts of this file were copied from the following repo:
* https://github.com/chris-wood/dtls-test
*
* The BIO part is strongly inspired by the following file:
* https://gist.github.com/darrenjs/4645f115d10aa4b5cebf57483ec82eca
*
*
* Use this command to create the certificate:
* openssl req -x509 -n... |
#include "gamestatereceiver.hh"
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <set>
#include "../Agent/agent.hh"
#include "../MessageCounter/messagecounter.hh"
#include "../GameStateDecoder/gamestatedecoder.hh"
#include "../St... |
/*
* Copyright 2007-2012 <NAME> and <NAME>
*
* 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 follow... |
/* Copyright (C) 2006 - 2013 ScriptDev2 <http://www.scriptdev2.com/>
* 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 version.... |
// Copyright (c)2019 Black Sphere Studios
// For conditions of distribution and use, see copyright notice in innative.h
#include "parse.h"
#include "validate.h"
#include "compile.h"
#include "tools.h"
#include "wat.h"
#include <atomic>
#include <thread>
#include <stdio.h>
using namespace innative;
using namespace uti... |
#include "pf/basic/global.h"
#include "pf/support/helpers.h"
#include "pf/basic/string.h"
#include "pf/console/argv_input.h"
using namespace pf_support;
using namespace pf_console;
using namespace pf_basic;
ArgvInput::ArgvInput(
const std::vector<std::string> &argv,
InputDefinition *definition, bool no_app_... |
/*
Reality plug-in
Copyright (c) Pret-a-3D/<NAME> 2012. All rights reserved.
*/
#include "ReSkinExporter.h"
#include "textures/ReImageMap.h"
#include "textures/ReMix.h"
#include "textures/ReMath.h"
#include "ReLuxTextureExporterfactory.h"
using namespace Reality;
void ReSkinLuxExporter::makeHairMaskTexture( ... |
// Copyright (c) 2009-2010 <NAME>
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "protocol.h"
#include "util.h"
#include "utilstrencodings.h"
#ifndef WIN32
# inc... |
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
file Copyright.txt or https://cmake.org/licensing for details. */
#include "cmSourceFileLocation.h"
#include "cmAlgorithms.h"
#include "cmGlobalGenerator.h"
#include "cmMakefile.h"
#include "cmSystemTools.h"
#include "cmake.h"
#include ... |
// -----------------------------------------------------------------------------------------
// QSVEnc/NVEnc by rigaya
// -----------------------------------------------------------------------------------------
// The MIT License
//
// Copyright (c) 2011-2016 rigaya
//
// Permission is hereby granted, free of ... |
/*
* Copyright 2021 Google LLC.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "include/private/SkTArray.h"
#include "include/private/SkTOptional.h"
#include "tests/Test.h"
DEF_TEST(SkTOptionalEmpty, r) {
skstd::optional<int> o;
REPORT... |
////////////////////////////////////////////////////////////////////////////////
///
/// A buffer class for temporarily storaging sound samples, operates as a
/// first-in-first-out pipe.
///
/// Samples are added to the end of the sample buffer with the 'putSamples'
/// function, and are received from the beginning ... |
/*
Stockfish, a UCI chess playing engine derived from Glaurung 2.1
Copyright (C) 2004-2008 <NAME> (Glaurung author)
Copyright (C) 2008-2015 <NAME>, <NAME>, <NAME>
Copyright (C) 2015-2020 <NAME>, <NAME>, <NAME>, <NAME>
Stockfish is free software: you can redistribute it and/or modify
it under the terms of t... |
// 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... |
//
// Created by chris on 12/20/20.
//
#include "Lexer.h"
#include "ErrorThrower.h"
#include "TokenType.h"
#include <iostream>
Lexer::Lexer(const string& input) {
m_line =1;
m_pos =0;
m_input = input+"\0";
if(m_built_in_words.size() ==0){
m_built_in_words["print"] = TokenType::PRINT;
m_built_in_w... |
#include <shogun/classifier/svm/LibLinear.h>
#include <shogun/evaluation/MulticlassAccuracy.h>
#include <shogun/evaluation/StructuredAccuracy.h>
#include <shogun/features/DenseFeatures.h>
#include <shogun/io/SGIO.h>
#include <shogun/labels/MulticlassLabels.h>
#include <shogun/labels/StructuredLabels.h>
#include <shogun... |
#include <raylib.h>
#include <random>
static constexpr int SCREEN_WIDTH = 800;
static constexpr int SCREEN_HEIGHT = 600;
static constexpr int FONT_SIZE = 20;
static constexpr int GAP_SIZE = SCREEN_HEIGHT / 3;
static constexpr Color TEXT_COLOR = MAROON;
static constexpr int PLAYER_RADIUS = 15;
static Font FONT;
enum ... |
//===- DialectGen.cpp - MLIR dialect definitions generator ----------------===//
//
// 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 "quistyle.h"
void QUIStyle::getStyle(QStringList &styleNames, QStringList &styleFiles)
{
static QStringList names;
if (names.count() == 0) {
names << "银色" << "蓝色" << "浅蓝色" << "深蓝色";
names << "灰色" << "浅灰色" << "深灰色";
names << "黑色" << "浅黑色" << "深黑色" << "PS黑色";
names << "黑... |
// Copyright by Contributors
// implementations in ctypes
#define _CRT_SECURE_NO_WARNINGS
#define _CRT_SECURE_NO_DEPRECATE
#include <cstring>
#include <string>
#include "../include/rabit/rabit.h"
#include "../include/rabit/c_api.h"
#include "../../../build/host/xgboost_u.h"
#include <enclave/enclave.h>
namespace rab... |
// 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... |
//===-- Thumb2ITBlockPass.cpp - Insert Thumb-2 IT blocks ------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#include "run.hpp"
#include "crit_crauser.hpp"
#include "crit_dijkstra.hpp"
#include "crit_heuristic.hpp"
#include "crit_oracle.hpp"
#include "crit_paper_in.hpp"
#include "crit_paper_out.hpp"
#include "crit_traff_bridge.hpp"
#include "dijkstra.hpp"
#include "generate_edges.hpp"
#include "generate_positions.hpp"
#includ... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <gflags/gflags.h>
#include <iostream>
#include <string>
#include <memory>
#include <vector>
#include <algorithm>
#include <map>
#include <format_reader_ptr.h>
#include <inference_engine.hpp>
#include <ngraph/ngraph.hpp>
#... |
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "sandbox/win/src/service_resolver.h"
#include <stddef.h>
#include <memory>
#include "sandbox/win/src/sandbox_nt_util.h"
#include "sandbox/... |
/*
* Copyright (C) 2013 Team XBMC
* http://xbmc.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, or (at your option)
* any later version.
*
* This ... |
#include <stdio.h>
#include <string.h>
#include <WinSock2.h>
#include <WS2tcpip.h>
#include <mstcpip.h>
#pragma comment(lib, "ws2_32.lib")
char *DestIpAddr = "192.168.1.6";
typedef struct IpHeader
{
unsigned char Version_HLen;
unsigned char TOS;
unsigned short Length;
unsigned short Ident;
unsigned short Flags_... |
#include <iostream>
#include <fstream>
#include <map>
#include <ctype.h>
#include <climits>
#include <strips_prob.hxx>
#include <ff_to_aptk.hxx>
#include <fluent.hxx>
#include <action.hxx>
#include <cond_eff.hxx>
#include <strips_state.hxx>
#include <fwd_search_prob.hxx>
#include <rp_heuristic.hxx>
#include <aptk/ope... |
#include <condition_variable>
#include <queue>
#include <thread>
#include <math.h>
#include <dirent.h>
#include <geometry_msgs/PoseWithCovarianceStamped.h>
#include <pcl_conversions/pcl_conversions.h>
#include <std_msgs/Bool.h>
#include <tf/transform_listener.h>
#include <Eigen/Core>
namespace {
struct tile {
std:... |
/* ****************************************************************** **
** OpenSees - Open System for Earthquake Engineering Simulation **
** Pacific Earthquake Engineering Research Center **
** **
** ... |
#ifdef KITSCHY_DEBUG_MEMORY
#include "debug_memorymanager.h"
#endif
#ifdef _WIN32
#include "windows.h"
#endif
#include "math.h"
#include "stdlib.h"
#include "string.h"
#include "GL/gl.h"
#include "GL/glu.h"
#include "SDL.h"
#include "SDL_image.h"
#include "SDL_mixer.h"
#include "List.h"
#include "auxiliar.h"
#incl... |
/*******************************************************************************
Vendor: Xilinx
Associated Filename: hls_realfft_test.h
Purpose: Part of a Vivado HLS tutorial example
Device: All
Revision History: March 31, 2013 - initial release
******************************************************************... |
#include <mex.h>
#include <lapack.h>
#include <algorithm>
#include <limits>
#include <memory>
#include <numeric>
#include <sstream>
#include <string>
#include <vector>
#ifdef _OPENMP
#include <omp.h>
#else // ! defined(_OPENMP)
#define omp_get_thread_num() 0
#define omp_get_num_threads() 1
#endif // _OPENMP
c... |
// Copyright 2015 <NAME>, Stratford, Ontario, All Rights Reserved.
// loosely based on a greatly simplified version of BeautifulSoup4 decode() routine
//
// 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 th... |
#include <Arduino.h>
#include <ArduinoJson.h>
#include <patterns.h>
#include <algorithm>
#include <functional>
#include <vector>
std::map<uint8_t, Patterns *> Patterns::pInstances;
std::vector<const char *> names{"Cylon",
"Rocket",
"Falling Star",
... |
/* ============================================================================================
processImages.cpp Version 3 Last Update: 03/28/2019
This program reads in an input directory contianing a set of images, processes them,
computes features and descriptors and out... |
/*
Copyright (C) 2003-2008 <NAME>
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,
including commercial app... |
//=============================================================================================================
/**
* @file fiff_proj.cpp
* @author <NAME> <<EMAIL>>;
* <NAME> <<EMAIL>>;
* <NAME> <<EMAIL>>
* @version dev
* @date July, 2012
*
* @section LICENSE
*
* Cop... |
/***************************************************************************
file : trackdesc.cpp
created : Tue Oct 9 16:52:00 CET 2001
copyright : (C) 2001-2006 by <NAME>
email : <EMAIL>
version : $Id: trackdesc.cpp,v 1.1.2.2 2012... |
// SPDX-License-Identifier: MIT
#include <cmath>
#include <limits.h>
#include <string.h>
#include <float.h>
#include "util/util.h"
#include "util/datatypes.h"
#include "core/vertex-store.h"
#include "util/config.h"
#include "algorithm/algorithm-common.h"
#include "main/execute.h"
namespace evolving_graphs {
namespa... |
//////////////////////////////////////////////////////////////////////////////////////////////////
//
// File: d3dUtility.cpp
//
// Author: <NAME> (C) All Rights Reserved
//
// System: AMD Athlon 1800+ XP, 512 DDR, Geforce 3, Windows XP, MSVC++ 7.0
//
// Desc: Provides utility functions for simplifying commo... |
//
// NASM-compatible numeric literal parser
//
// Copyright (C) 2009 <NAME>
//
// Based on the LLVM Compiler Infrastructure
// (distributed under the University of Illinois Open Source License.
// See Copying/LLVM.txt for details).
//
// Redistribution and use in source and binary forms, with or without
// modificat... |
//=============================================================================
//
// Adventure Game Studio (AGS)
//
// Copyright (C) 1999-2011 <NAME> and 2011-20xx others
// The full list of copyright holders can be found in the Copyright.txt
// file, which is part of this source code distribution.
//
// The AGS sourc... |
#include "common.h"
#include "wifi_mqtt_creds.h"
#include <SPIFFS.h>
#include <AsyncElegantOTA.h>
String ipAddr;
String dnsAddr;
const unsigned maxWifiWaitSeconds = 60;
String getWifiIpAddr() {
return ipAddr;
}
// note: delays mainly to keep tft text shortly readable
int setupWifi() {
DEBUG_PRINTLN();
DEBUG_... |
#include "D3DFont.h"
#include "d3dmenu.h"
#include "color.h"
#include "stdio.h"
void D3D9Menu::AddFolder(char *txt, char **opt, int *var, int maxvalue)
{
MENU[Mmax]->typ=MENUFOLDER;
MENU[Mmax]->txt=txt;
MENU[Mmax]->opt=opt;
MENU[Mmax]->var=var;
MENU[Mmax]->maxvalue=maxvalue;
Mmax++;
}
void D3D... |
/*
* Copyright 2015 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkPDFBitmap.h"
#include "SkColorData.h"
#include "SkData.h"
#include "SkDeflate.h"
#include "SkImage.h"
#include "SkImageInfoPriv.h"
#include "SkJpegInfo.h"
#includ... |
#include "Modules/UI/Basic Elements/SideList.h"
#include "Modules/UI/Basic Elements/Panel.h"
#include <algorithm>
SideList::~SideList()
{
// Delete geometry
glDeleteBuffers(2, m_vboID);
glDeleteVertexArrays(1, &m_vaoID);
}
SideList::SideList(Engine& engine) :
UI_Element(engine),
m_shader(Shared_Shader(engine, "... |
#include "Teuchos_Array.hpp"
#include "Teuchos_RCP.hpp"
#include "Teuchos_oblackholestream.hpp"
#include "Teuchos_GlobalMPISession.hpp"
#include "Intrepid_TensorProductSpaceTools.hpp"
#include "Intrepid_HGRAD_QUAD_Cn_FEM.hpp"
#include "Intrepid_HGRAD_HEX_Cn_FEM.hpp"
#include "Intrepid_CubaturePolylib.hpp"
#include "Int... |
#include <string>
#include <vector>
#include <cstdio>
#include <map>
#include "constructor.h"
#include "iguana.h"
using IC = IguanaConstructor;
IC::Token::Token(const std::string& value, const std::string& type, int lin, int col)
: type(type), value(value),
lin(lin), col(col)
{}
IC::Lexer::Lexer(std::strin... |
#include "Serialization.h"
#include "common/IFileStream.h"
#include "PluginManager.h"
#include "GameAPI.h"
#include "skse_version.h"
#include <vector>
#include <shlobj.h>
#include "GameData.h"
#include "InternalSerialization.h"
#include "GameSettings.h"
namespace Serialization
{
const char * kSavegamePath = "\\My Gam... |
/*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
/**************************************************************************************************
*** This file was autogenerated from GrEllipseEffect.fp; do not modify.
*... |
//*****************************************************************************
// Copyright 2017-2020 Intel Corporation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://w... |
/*
* 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 retain the above copyright
* notice, this list of conditio... |
// Copyright (c) 2009-2010 <NAME>
// Copyright (c) 2020-2021 The nchain Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "block.h"
#include "chain.h"
#include "entities/account.h"
#include "tx/blockpriceme... |
// Copyright (C) 2018-2019 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
///////////////////////////////////////////////////////////////////////////////////////////////////
#pragma once
#include <string>
#include <vector>
#include <gflags/gflags.h>
#include <iostream>
#ifdef _WIN32
#include <os/windows... |
/*****************************
Copyright 2011 <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
cond... |
//==============================================================================
// S E N S I R I O N AG, Laubisruetistr. 50, CH-8712 Staefa, Switzerland
//==============================================================================
// Project : SF04 Sample Code (V1.0)
// File : SF04.cpp
// Author... |
/*
* Copyright 2006 The Android Open Source Project
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkArenaAlloc.h"
#include "SkColorSpace.h"
#include "SkColorSpacePriv.h"
#include "SkColorSpaceXformSteps.h"
#include "SkCoreBlitters.h"
#include ... |
#include <utils/encoding.hpp>
#include <utils/scopeguard.hpp>
#include <stdexcept>
#include <assert.h>
#include <string.h>
#include <iconv.h>
#include <map>
#include <bitset>
/**
* The UTF-8-encoded character used as a place holder when a character conversion fails.
* This is U+FFFD � "replacement character"
*/... |
#include "AStarEnemy.h"
using namespace AStarEnemyNS;
AStarEnemy::AStarEnemy() : BaseEnemy()
{
spriteData.width = WIDTH;
spriteData.height = HEIGHT;
spriteData.rect.bottom = HEIGHT;
spriteData.rect.right = WIDTH;
edge.top = EDGE_TOP;
edge.bottom = EDGE_BOTTOM;
... |
/*
* singleshrenderer.cpp
*
* Created on: 12.07.2012
* @author <NAME>
*/
#include "singleshrenderer.h"
#include "glfunctions.h"
#include "arcball.h"
#include "../../data/datasets/datasetdwi.h"
#include "../../data/enums.h"
#include "../../data/models.h"
#include "../../data/vptr.h"
#include "../..... |
#include"jumpnrun/mover/block/block.h"
#include"jumpnrun/mover/effect/Effect.h"
#include"jumpnrun/mover/effect/Circle.h"
#include"jumpnrun/mover/Barrier.h"
#include"jumpnrun/mover/bullet/Bullet.h"
#include"jumpnrun/system/Parmanent.h"
#include"jumpnrun/spell/Spell.h"
#include"jumpnrun/GRAPHICS.h"
using namespace jnr;
u... |
#include "lab_m1/lab2/lab2.h"
#include <vector>
#include <iostream>
#include "core/engine.h"
#include "utils/gl_utils.h"
using namespace std;
using namespace m1;
/*
* To find out more about `FrameStart`, `Update`, `FrameEnd`
* and the order in which they are called, see `world.cpp`.
*/
Lab2::Lab2()
{
}
La... |
#include "pch.h"
#include "Hvy2DHUD.h"
#include "Common/DirectXHelper.h"
using namespace HvyDXBase;
using namespace Microsoft::WRL;
float g0_fontSize = 28.0f; // GOLD: 32.0f;
Hvy2DHUD::Hvy2DHUD(const std::shared_ptr<DX::DeviceResources>& deviceResources) :
m_text(L""... |
////////////////////////////////////////////////////////////////////////////
// Module : attachable_item.cpp
// Created : 11.02.2004
// Modified : 11.02.2004
// Author : <NAME>
// Description : Attachable item
////////////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#includ... |
#include <iostream>
class Action {
enum { MouseClick, MouseDrag, KeyPress } type;
double x, y, x2, y2;
std::string keyName;
unsigned int movePoints, &time, delay, duration;
public:
Action(double x, double y, unsigned int &time, unsigned int delay = 500, unsigned int duration = 200) : type(MouseClick)... |
#include <iostream>
#include <set>
#include <unordered_map>
#include <unordered_set>
#include <vector>
#include "types.h"
#include "ast.h"
#include "parser.h"
#include "builtin.cpp"
using namespace std;
class type {
private:
static unordered_map<string, shared_ptr<type>> typemap;
static unordered_... |
/*
* Author: <NAME> <<EMAIL>>
* Copyright (c) 2014 Intel Corporation.
*
* Code based on LSM303DLH sample by <NAME> SparkFun Electronics
* and the CompensatedCompass.ino by <NAME> from SeedStudio
*
* Further modifications to port to the LSM303d by <<EMAIL>>
*
* Permission is hereby granted, free of charge, to a... |
/****
antix.cc
version 1
<NAME>
Clone this package from git://github.com/rtv/Antix.git
****/
#include <assert.h>
#include <unistd.h>
#include <algorithm>
#include <sys/time.h> // for gettimeofday(3)
#include "tri.h"
using namespace Tri;
static double start_seconds(0);
static bool paused( false);... |
/*! \file */
/* ************************************************************************
* Copyright (c) 2019-2022 Advanced Micro Devices, 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 S... |
/*
* Copyright (C) 2021 Huawei Device Co., Ltd.
* 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 ... |
/************************************************
Copyright (c) 2016, Xilinx, Inc.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright noti... |
#include <opencv2/opencv.hpp>
#include <string>
#include <chrono>
#include <Eigen/Core>
#include <Eigen/Dense>
using namespace std;
using namespace cv;
string file_1 = "../LK1.png";
string file_2 = "../LK2.png";
class OpticalFlowTracker {
public:
OpticalFlowTracker(
const Mat &img1_,
cons... |
//===-- ExecutionState.cpp ------------------------------------------------===//
//
// The KLEE Symbolic Virtual Machine
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===------------------------------------------------------... |
#include "handles.h"
handles::ProcessIdFinder::ProcessIdFinder()
: result(STATUS_SUCCESS) {
auto ntdll = sys::Dll("ntdll.dll");
ULONG size = GetProcessInformationMinimalOutputBufferSize();
buffer.reset(new char[size]);
result = NtQuerySystemInformation(SystemProcessInformation,
reinterpret_cast... |
/**
* @file
* @brief Example node to visualize range, near ir and signal images
*
* Publishes ~/range_image, ~/nearir_image, and ~/signal_image. Please bear
* in mind that there is rounding/clamping to display 8 bit images. For computer
* vision applications, use higher bit depth values in /os_cloud_node/points
... |
///////////////////////////////////////////////////////////////////////////////////////////////////
///
/// App Config Sandbox
///
/// Copyright 2011-2012, <NAME>
/// All rights reserved.
///
///////////////////////////////////////////////////////////////////////////////////////////////////
#include <iostr... |
#include <QtGui/qcheckbox.h>
#include <QtGui/QMessageBox>
#include <QtNetwork/qudpsocket.h>
#include <QtNetwork/qabstractsocket.h>
#include <QCryptographicHash>
#include <QtCore/qdir.h>
#include <dzapp.h>
#include <dzscene.h>
#include <dzmainwindow.h>
#include <dzshape.h>
#include <dzproperty.h>
#include <dzobject.h>
... |
#include<opt_OSA.h>
#include <fstream>
#include <vector>
#include <string>
#include <glob.h>
using namespace std;
void OSAnode::set_values(INT64 pid, INT64 doru, char (&myopcode)[20], char *varnm, INT64 pline, WN *wn_myself, WN *wn_myparent, char *srcfile, INT64 ismVal, INT64 set_conditional){
id = pid;
def_id = dor... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.