text stringlengths 8.71k 38.4k |
|---|
//
// HAPFakeGatoScheduleEnergy.cpp
// Homekit
//
// Created on: 23.09.2020
// Author: michael
//
#include "HAPFakeGatoScheduleEnergy.hpp"
#include <base64.h>
#include "HAPLogger.hpp"
#include "HAPServer.hpp"
HAPFakeGatoScheduleEnergy::HAPFakeGatoScheduleEnergy(){
_statusLED = 0x00;
_serialNumber = "";
_... |
#include "FileZ.h"
#include "CommonZ.h"
#include "model.h"
#include "readbmp.h"
#include "windows.h"
#include "direct.h"
#include "time.h"
#include "stdio.h"
#include <iostream>
#include <opencv2/opencv.hpp>
using namespace cv;
using namespace std;
GLint window_size = 200;
GLint patch_size = 0;
GLint black_begin = 0;
... |
// +-------------------------------------------------------------------------
// | Copyright (C) 2017 Yunify, Inc.
// +-------------------------------------------------------------------------
// | Licensed under the Apache License, Version 2.0 (the "License");
// | You may not use this work except in compliance with t... |
#include "ScanBufferDraw.h"
#include "Sort.h"
#include "BinHeap.h"
#include <cstdlib>
using namespace std;
#define ON 0x01
#define OFF 0x00
#define OBJECT_MAX 65535
// NOTES:
// Backgrounds: To set a general background color, the first position (possibly at pos= -1) should be an 'ON' at the furthes... |
// SPDX-License-Identifier: GPL-3.0-only
#include <thread>
#include <mutex>
#include <vector>
#include <cstring>
#include <regex>
#include <invader/map/map.hpp>
#include <invader/resource/resource_map.hpp>
#include <invader/build/build_workload.hpp>
#include <invader/version.hpp>
#include <invader/printf.hpp>
#includ... |
// Mesh.cpp
// created by Kuangdai on 5-May-2016
// AxiSEM3D Mesh
#include "Mesh.h"
#include "ExodusModel.h"
#include "Parameters.h"
#include "Connectivity.h"
#include "DualGraph.h"
#include "GLLPoint.h"
#include "Quad.h"
#include "XMPI.h"
#include "Domain.h"
#include "SolidElement.h"
#include "FluidElement.h"
#incl... |
#include <cstdlib>
#include <numeric>
#include <iostream>
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Casting.h"
#include "llvm/Support/SourceMgr.h"
#include "mlir/IR/Verifier.h"
#include "mlir/Dialect/StandardOps/IR/Ops.h"
#include "mlir/IR/Attributes.h"
#include "mlir/IR/Di... |
#include "tree_234.h"
#include <assert.h>
#include <queue>
#include <string>
Tree234::Tree234() : root_(nullptr) {}
Tree234::~Tree234() {
DeleteNode(root_);
}
void Tree234::DeleteNode(Node *tree) {
if (!tree) {
return;
}
for (int i = 0; i <= tree->GetCount(); i++) {
DeleteNode(tree->GetChild(i));
}
dele... |
/**
* @file llfindlocale.cpp
* @brief Detect system language setting
*
* $LicenseInfo:firstyear=2008&license=viewerlgpl$
* Second Life Viewer Source Code
* Copyright (C) 2010, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser... |
/* -------------------------------------------------------------------------
* launcher.c
* PostgreSQL logical replication worker launcher process
*
* Copyright (c) 2012-2016, PostgreSQL Global Development Group
*
* IDENTIFICATION
* src/backend/replication/logical/launcher.c
*
* NOTES
* This module ... |
#include "astar_search.h"
AstarSearch::AstarSearch()
: node_initialized_(false)
{
ros::NodeHandle private_nh_("~");
private_nh_.param<bool>("use_2dnav_goal", use_2dnav_goal_, true);
private_nh_.param<std::string>("path_frame", path_frame_, "map");
private_nh_.param<int>("angle_size", angle_size_, 40);
priv... |
// Copyright (c) 2016 ASMlover. 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 ofconditions and... |
// Library for sending and receiving SIGFOX messages with Arduino shield based on Radiocrafts RC1692HP-SIG.
#ifdef ARDUINO
#if (ARDUINO >= 100)
#include <Arduino.h>
#else // ARDUINO >= 100
#include <WProgram.h>
#endif // ARDUINO >= 100
#endif // ARDUINO
#include "SIGFOX.h"
// Use a macro for lo... |
//
// Test_Effects.cpp -- C main functions for the basic CSL effect and filter tests.
// See the copyright notice and acknowledgment of authors in the file COPYRIGHT
//
// This program simply reads the run_tests() function (at the bottom of this file)
// and executes a list of basic CSL tests
//
// Examples to add
// ... |
#include "application_solar.hpp"
#include "window_handler.hpp"
#include "utils.hpp"
#include "shader_loader.hpp"
#include "model_loader.hpp"
#include <glbinding/gl/gl.h>
// use gl definitions from glbinding
using namespace gl;
//dont load gl bindings from glfw
#define GLFW_INCLUDE_NONE
#include <GLFW/glfw3.h>
#inc... |
//Copyright [2020] [Indian Institute of Science, Bangalore & Tata Institute of Fundamental Research, Mumbai]
//SPDX-License-Identifier: Apache-2.0
#include <rapidjson/document.h>
#include <rapidjson/istreamwrapper.h>
#include <rapidjson/prettywriter.h>
#include <rapidjson/stringbuffer.h>
#include <algorithm>
#include <... |
/* Copyright (C) 2018 Yosshin(@yosshin4004) */
#include <stdbool.h>
#include <stdint.h>
#include "dds_parser.h"
#undef SIZE_OF_ARRAY
#define SIZE_OF_ARRAY(a) (sizeof(a) / sizeof(a[0]))
static int IntMax(int x, int y){
return (x > y)? x: y;
}
static int IntCeilAlign(int x, int align){
return (x + (ali... |
// Copyright (c) 2013-2018 LG Electronics, 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... |
#include "model.h"
NodeBLAS emptyNode{Vec4(-1.0), Vec4(-1.0), Vec4(-1.0), Vec4(-1.0), Vec4(-1.0), Vec4(-1.0)};
NodeTLAS emptyBounds{Vec4(std::numeric_limits<Float>::min()), Vec4(std::numeric_limits<Float>::min())};
void mergeBounds(NodeTLAS &self, const NodeTLAS &other)
{
self.first = Vec4(std::min(self.first.x, oth... |
// Copyright 2017 <NAME>
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
// HOLDERS BE LIABLE FOR ANY CLAIM,... |
#include "epub.h"
#include <cassert>
#include <ctime>
#include <filesystem>
#include <memory>
#include <dbg.h>
#include <fmt/chrono.h>
#include <fmt/compile.h>
#include <fmt/format.h>
#include <klib/exception.h>
#include <klib/util.h>
#include <spdlog/spdlog.h>
#include <gsl/gsl-lite.hpp>
#include <pugixml.hpp>
#inc... |
//=---------------------------------------------------------------------=
//
// $Id$ $Name$
//
// The contents of this file are subject to the AAF SDK Public Source
// License Agreement Version 2.0 (the "License"); You may not use this
// file except in compliance with the License. The License is available
// in AAFSD... |
#include "tbe.h"
#include <assert.h>
extern const char *preptree(TBE_Tree *fd_nj_plot);
extern char *ecrit_arbre_parenth_unrooted(TBE_Tree *fd_nj_plot, TBE_Node *root);
char* TBE_Compute(char *reftree,char* boottrees){
TBE_Branch *boot_branches;
TBE_Branch *ref_branches;
// Parsing reference tree
TBE_Tree *f... |
#include "half_edges.h"
#include <execution>
#include <algorithm>
#include "debugbreak.h"
half_edge_connectivity::half_edge_connectivity(size_t num_vertices, const std::vector<uint32_t>& indices)
{
reset(num_vertices, indices);
}
void half_edge_connectivity::link_edges(std::vector<std::pair<uint32_t, uint32_t>>& vh)... |
/*
* SHA-512 algorithm as described at
*
* http://csrc.nist.gov/cryptval/shs.html
*/
#include "global.h"
#include "CryptSH512.h"
#define BLKSIZE 128
/*
* Arithmetic implementations. Note that AND, XOR and NOT can
* overlap destination with one source, but the others can't.
*/
#define add(r,x,y) ( r.lo = y.... |
// Copyright (c) 2017-2021 The Freicoin Developers
//
// This program is free software: you can redistribute it and/or
// modify it under the conjunctive terms of BOTH version 3 of the GNU
// Affero General Public License as published by the Free Software
// Foundation AND the MIT/X11 software license.
//
// This progr... |
#define STR_VIEW_CPP17 1
#include "str_view.hpp"
#include <thread>
#define TEST(expr) do { \
if(!(expr)) { \
assert(0 && "TEST FAILED:" #expr); \
printf("TEST FAILED: " #expr "\n"); \
} \
} while(false)
using std::string;
using std::wstring;
static void TestBasicConstructi... |
#include "LapVectorField.h"
void LapVectorField::compute( std::vector<std::vector<CvPoint>> curves_pix, CvSize imgsize, int res ){
// smooth input curves
void getBernsteinCoefficient( std::vector<double> &bc, int n ) ;
std::vector<std::vector<double2>> bezierCurves ;
for( int cid=0; cid<curves_pix.size... |
// Based on <NAME>'s implementations of Perlin noise for Python
// https://github.com/caseman/noise
// Copyright (c) 2008 <NAME>, MIT License.
#include <cmath>
#include <cstring>
#include <cstdint>
// clang-format off
static const float GRAD3[][3] = {
{1,1,0}, {-1,1,0}, {1,-1,0}, {-1,-1,0},
{1,0,1}, {-1,0,... |
/*****************************************************************************/
/* CascOpenStorage.cpp Copyright (c) <NAME> 2014 */
/*---------------------------------------------------------------------------*/
/* Storage functions for CASC */
/* No... |
/******************************************************************************
* SoftSerialIntAP.cpp
* Multi-instance Software Serial Library for STM32Duino
* Using Timers and Interrupts enabling use of any GPIO pins for RX/TX
*
* Copyright 2015 <NAME>, InSyte Technologies
*
Features:
- Fully interrupt driven - no... |
#include "CnSmOpt.h"
#include <cassert>
#include <stdlib.h>
#include "NetwControlInfo.h"
#include "CnSmPkt_m.h"
#include "SimTracer.h"
#include "LogNormalShadowing.h"
Define_Module(CnSmOpt);
void CnSmOpt::initialize(int stage)
{
BaseNetwLayer::initialize(stage);
if(stage == 1) {
hasPar("defaultTtl"... |
#include "resource.h"
#include <windows.h>
#include <tchar.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include "ugldialog.h"
#include "udlgapp.h"
#include "uglut.h"
GLuint teapotList;
/*
* Rim, body, lid, and bottom data must be reflected in x and y;
* handle and spout data across the y axis only.
*/
static int ... |
#include "theme.hpp"
#include <cstring>
#include <boost/tokenizer.hpp>
#include <boost/lexical_cast.hpp>
#include <boost/regex.hpp>
#include <boost/filesystem.hpp>
#include <boost/algorithm/string.hpp>
#include <clocale>
using namespace std ;
static uint parse_enum(const string &name, const std::initializer_list<st... |
#include "Window.h"
#include "glm\glm.hpp"
#include "glm\gtc\matrix_transform.hpp"
#include "glm\gtc\matrix_access.hpp"
#include "ResourcesLoader.h"
#include "Random.h"
#include "Quad.h"
#include "Shader.h"
#include "Camera.h"
#include "Cube.h"
#include "Sphere.h"
#include "Utils.h"
#include "TextRenderer.h"
#include... |
/*
This file is part of Sorts, an interface between Soar and ORTS.
(c) 2006 <NAME>, <NAME>, and <NAME>
Sorts 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... |
/*
* certVerify.cpp - execute cert/CRL verify; display results
*/
#include "certVerify.h"
#include "tpUtils.h"
#include <utilLib/common.h>
#include <clAppUtils/clutils.h>
#include <clAppUtils/tpUtils.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <Security/cssm.h>
#include <Security/oidsalg.... |
// Copyright (c) 2011 The LevelDB Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. See the AUTHORS file for names of contributors.
#include "base/debug/trace_event.h"
#include "base/file_util.h"
#include "base/lazy_instance.h"
#includ... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2016 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... |
/*
Basic structure was taken from:
https://github.com/manvelmk/AES-Rijndael-Encryption/blob/master/AES.cpp
A few edits from this were made to get everything working
*/
#include <stdio.h>
#define blockSize 4
// Macro to find the product of x ({02}) and the argument to xtime modulo {1b}
#define xtime(x) ((x << 1) ^ (((... |
#include "DataFormats/Math/interface/deltaPhi.h"
#include "DataFormats/Math/interface/libminifloat.h"
#include "DataFormats/PatCandidates/interface/PackedCandidate.h"
#include "DataFormats/SiPixelDetId/interface/PixelSubdetector.h"
#include "DataFormats/SiStripDetId/interface/StripSubdetector.h"
#include "DataFormats/... |
// -------- Minimum includes for this module --------------------------------------
#include <FS.h>
#include "externIO.h" // global externals of cpu,...,server
#include "SimpleSRV.h"
// ------ Expected definitions/allocations in main() ------------------------------
#include "externIO... |
#include <common.h>
#include <game.h>
#include <g3dhax.h>
#include "boss.h"
const char* FishingBooFileList [] = { "FishingBoo", NULL };
class daFishinBoo_c : public dEn_c {
public:
int onCreate();
int onDelete();
int onExecute();
int onDraw();
mHeapAllocator_c allocator;
nw4r::g3d::ResFile resFile;
m3d::mdl_... |
/*
Copyright (c) 2010, <NAME> (bgld)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
- Redistributions of source code must retain the above copyright
notice, this list of conditions and the foll... |
#include <imgui.h>
#include <stdio.h>
#include <GL/gl3w.h> // This example is using gl3w to access OpenGL functions (because it is small). You may use glew/glad/glLoadGen/etc. whatever already works for you.
#include <SDL.h>
#include "imgui_impl.h"
#include <json.hpp>
#include <fstream>
#include <tinydir.h>
#include ... |
#include "corpcaOF.h"
#include "corpcaOFUtils.h"
#include "ramsia.h"
using namespace cv;
#ifdef CUDA
using namespace cv::cuda;
#endif
using namespace corpcaOFUtils;
void incSVD(const cv::Mat& v, const cv::Mat& U0, const cv::Mat& S0, const cv::Mat& V0, cv::Mat& U1, cv::Mat& S1, cv::Mat& V1)
{
int Ncols = ... |
// Author: <NAME> - MOX, Politecnico di Milano
// Email: <EMAIL>
// Date: 2020
#include <cmath>
#include <boost/property_tree/json_parser.hpp>
#include <boost/property_tree/ptree.hpp>
#include "model_RDQ20_SE.hpp"
model_RDQ20_SE::model_RDQ20_SE(std::string parameters_file)
: sarcomere("RDQ20-SE") {
// Read... |
// Copyright (c) 2020 The Stealth Developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "chainparams.hpp"
#include <boost/assign/list_of.hpp>
using namespace std;
///////////////////////////////////////////... |
#include "SDOT/LaguerreDiagram.h"
#include "SDOT/PolygonRasterize.h"
// standard includes
#include <iostream>
#include <random>
#include <chrono>
// Additional CGAL includes
#include <CGAL/squared_distance_2.h>
#include <CGAL/number_utils.h>
#include <CGAL/Boolean_set_operations_2.h>
#if defined(_OPENMP)
#include <... |
#include "application.h"
// allow use of itoa() in this scope
extern char* itoa(int a, char* buffer, unsigned char radix);
#define DEBUG 1
#define PORT 48879
#define MAX_DATA_BYTES 128
// table of action codes
// to do: make this an enum?
#define PIN_MODE 0x00
#define DIGITAL_WRITE 0... |
#include <SFGUI/SFGUI.hpp>
#include <SFGUI/Engines/BREW.hpp>
#include <SFGUI/Renderer.hpp>
#include <SFML/Graphics.hpp>
#include <SFML/System/Clock.hpp>
#include <sstream>
class SampleApp {
public:
SampleApp();
void Run();
private:
void OnAddButtonHClick();
void OnAddButtonVClick();
void OnToggleTitlebar... |
#include <cstdio>
#include <unistd.h>
#include <iostream>
#include <slop.hpp>
#include <glm/glm.hpp>
#include <fstream>
#include <sstream>
#include <thread>
#include <X11/extensions/shape.h>
#include "cxxopts.hpp"
#include "x.hpp"
#include "image.hpp"
class MaimOptions {
public:
MaimOptions();
std::string sav... |
#include "My_OpenGl.h"
/*
*默认是不锈钢颜色,顶点着色器和片段着色器
*/
const char *vertexShaderSource = "#version 330 core\n"
"layout (location = 0) in vec3 aPos;\n"
"layout (location = 1) in vec3 color;\n"
"layout (location = 2) in vec3 colorLine;\n"
"out vec4 col;\n"
"uniform mat4 model;\n"
"uniform mat4 view;\... |
int ME,lCE, fEz
, DeV ,ZP ,
YF4tp,
YYWu ,tGtlc
,SHz , bYXG, qaL ,
//65l
YWKm /*wh*/
,//q1
xQHoPA,//mrY
d,Xib, Kt,kkK
,
Cs ,/*r2*/ nP
,zm, Qqas
,U ,
tt,Z7LYr6E
,//p3
iz ,o1vL //R
,
JJzEa
,
Y8
,Tu1wozn,BIe ,
nmQtUE ,m,
Is2
, PW
,
uy2 ,
//wdzR
RkA,HUQqB,iU7
//qix
,kAwS ,
BVu, g,QKj, Z,BDu, vO... |
#include <stdio.h>
#ifndef JLMUNIX
#include <io.h>
#endif
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <time.h>
#include <string.h>
// des8.cpp
// Differential cryptanalysis of 8 Round DES
typedef unsigned char byte;
class Round {
public:
unsigned u... |
// #include "algebra.cpp"
#include "deom.hpp"
#include "mr.cpp"
// #include "pulse.hpp"
#include <gperftools/profiler.h>
#include <stdio.h>
#include <thread> // std::thread
#include <unistd.h>
using namespace std;
using Eigen::Matrix2cd;
using Eigen::MatrixXcd;
using Eigen::VectorXcd;
template <typename T>
int sgn(T v... |
/*
* Copyright 2017 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "SkMaskBlurFilter.h"
#include <cmath>
#include <climits>
#include "SkArenaAlloc.h"
#include "SkNx.h"
#include "SkSafeMath.h"
static const double kPi = 3.1415926535... |
/**
* trfck - local net (layer 2) stats for bsd
* written by <NAME>, <NAME>
* https://github.com/marcin-gryszkalis/trfck
*
* Requires FreeBSD 4.6 or later (because of poll(2) behavior on BPF devs)
*
* Compile with
* $ c++ -o trfck -lpcap trfck.cc
*
*/
char const *revp = "1.43";
// system and C includes
#inc... |
/*
Copyright (c) 1999 - 2010, Vodafone Group Services Ltd
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this list... |
//
// Created by <NAME> and <NAME>
//
#include <iostream>
#include <string>
#include <utility>
#include <vector>
#include <regex>
#include <tuple>
#include <map>
#include <climits>
// ============= DANE ==========================================================
// Enum opisujacy rodzaj zapytania
enum RequestType {
... |
/****************************************************************\
** BB_Sudoku Bit Based Sudoku Solver **
\****************************************************************/
/****************************************************************\
** (c) Copyright <NAME>, 2008-2009. This fil... |
#include "matrix.hpp"
#include <math.h>
#include "quaternion.hpp"
#include "vec3.hpp"
#include <pmmintrin.h>
void Matrix::Multiply( const Matrix& ma, const Matrix& mb, Matrix& out )
{
Matrix result;
Matrix matA = ma;
Matrix matB = mb;
const float* a = matA.m;
const float* b = matB.m;
__m128 a... |
/*
* Copyright (c) 2016, Georgia Tech Research Corporation
* All rights reserved.
*
* Author(s): <NAME> <<EMAIL>>
*
* Georgia Tech Graphics Lab and AMBER Lab
*
* Directed by Prof. <NAME> and Prof. <NAME>
* <<EMAIL>> <<EMAIL>>
*
* This file is provided under the following "BSD-style" License:
* Redistribut... |
int
HGL,hP,m ,tc, CRnq7,
yqJ //kV
,Lic4n//9g
,
ZKC/*GYfU*/
, //rL
hjp , mty ,dU9hpkD, PT7g
/**/,gU,lIyj
,
E71, VY , yuHA , p7Sn ,
e ,
N,k1N
,
Mcx, K6,/*BA2*/ hh , uKw2 ,kRL
,
LfMN,de,
iH9, UyO
,Ue ,
/*E*/ T //NG
,bCW ,Ja,
bAf
, hjGGz
, sa ,yVo , UyQri, RvVVG ,j
,wsK
//i7pZ
, Su,
u ,H2Y//lE... |
#include <iostream>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <vector>
#include <algorithm>
#include <unordered_set>
#include <unordered_map>
#define BLACK 1
#define EMPTY 0
#define WHITE -1
/* these function need to be called by c code (Cpython) */
extern "C" {
// int* territoryEval(int size... |
// ==============================================================
// Copyright Intel Corporation
//
// SPDX-License-Identifier: MIT
// =============================================================
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated docum... |
// Copyright 2013 Cloudera 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 wr... |
/*
* global variable initializaton
*
* @(#)extern.c 4.82 (Berkeley) 02/05/99
*
* Rogue: Exploring the Dungeons of Doom
* Copyright (C) 1980-1983, 1985, 1999 <NAME>, <NAME> and <NAME>
* All rights reserved.
*
* See the file LICENSE.TXT for full copyright and licensing information.
*/
#include <ncurses.h>
#in... |
/**************************************************************************
* CrGammaSecondaryUpward.cc
**************************************************************************
* Read comments at the head of CosmicRayGeneratorAction.cc
* and GLAST-LAT Technical Note (LAT-TD-250.1) by <NAME> et al.
* for overall... |
#include "../systeminc/version.h"
#include "../systeminc/system.h"
//#include <winsock.h>
#include "../systeminc/netmain.h"
#include "../systeminc/lssproto_cli.h"
#include "../wgs/message.h"
#include "../systeminc/login.h"
#include <time.h>
#include <SDL_net.h>
// Nuke 0615: Avoid 7's lock
int isWGS7=0;
... |
#include "loki/search.h"
#include <cstdint>
#include <boost/property_tree/ptree.hpp>
#include <unordered_set>
#include "baldr/graphid.h"
#include "baldr/graphreader.h"
#include "baldr/location.h"
#include "baldr/pathlocation.h"
#include "baldr/tilehierarchy.h"
#include "filesystem.h"
#include "midgard/pointll.h"
#inc... |
// This simple application:
// - listens to Velodyne data chunks
// - takes, say, 5 of them (about a single full rotation)
// - converts to XYZI and puts to an ascii PCD file
// - Exits
// mfallon sept 2012
#include <stdio.h>
#include <inttypes.h>
#include <iostream>
#include <fstream>
#include <sstream>
#include <vec... |
int
ou, L77u, Tat,hlt,
f
,nU1i //
, PS ,AUnG3, phoN, PA1K ,pQR6
,
/*u*/pCh,pT,
l6X,nZR//g8z0
,FH8S,//Id
gpx/**/,Q0BC,//1V
jL/**/ , SNA ,hoO,Zo8e,nc ,wc,g2
,
jM,
Amq
,gd , q,N
,
D32,gR3 ,d8d,
EbK,Rs//yt
,feyh, zwO,
ff6 ,/**/ hfojZ , D ,
p5s70S ,
FXr0n//q7
,Z7Qg
,/*P*/
BV,qHey
,JG, fQG,
f1jf... |
/*
* CYuka.cpp : 幽香の定義
*
*/
#include "CYuka.h"
#include "Gian2001.h"
#include "SECtrl.h"
#include "RndCtrl.h"
/***** [グローバル変数] *****/
CYuka g_YukaInfo; // 幽香の情報格納用クラス
/***** [ 定数 ] *****/
#define YUKA_GST_RANGE 4 // 横アニメ推移の早さ
#define YUKA_EXSHOT_SIZE (10*256) // エキストラショットの当たりサイズ... |
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <limits>
#include <random>
#include <unordered_set>
#include <boost/archive/text_oarchive.hpp>
#include <boost/functional/hash.hpp>
#include "AlgoInput.h"
#include "Algorithm.h"
#include "DatasetBu... |
#include "tasktorrent/tasktorrent.hpp"
#ifdef USE_MKL
#include <mkl_cblas.h>
#include <mkl_lapacke.h>
#else
#include <cblas.h>
#include <lapacke.h>
#endif
#include <Eigen/Core>
#include <Eigen/Cholesky>
#include <fstream>
#include <array>
#include <random>
#include <mutex>
#include <iostream>
#include <map>
#include <m... |
//////////////////////////////////////////////////////////////////
//
// FreeLing - Open Source Language Analyzers
//
// Copyright (C) 2004 TALP Research Center
// Universitat Politecnica de Catalunya
//
// This library is free software; you can redistribute it and/or
// modify it ... |
//
// Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
//
// The contents of this file are covered under the licence agreement in the
// file "LICENCE" distributed with Cforall.
//
// DeclStats.cpp -- Print statistics about a translation unit's declarations.
//
// Author : <NAME>
// Created On ... |
#include "NarxSim.h"
NarxSim::NarxSim() {
Sizeable();
Icon(Imgs::icon());
Title("NARX Simulator");
narx_stage1_5 = 0;
narx_stage1_1 = 0;
normalize = 1;
arch = MLP;
input_count = 0;
old_input_count = 0;
output_count = 1;
series_generated = false;
mynarx.SetData(*this);
mynarx.WhenLog = THISBACK(PostN... |
/*
MIT License
Copyright (c) 2015 <NAME>, <NAME>, <NAME>, <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
... |
// fluxbox-update_configs.cc
// Copyright (c) 2007 Fluxbox Team (fluxgen at fluxbox dot org)
//
// 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... |
/*Class for file input and output*/
#include "fileio_class.hpp"
#include "exceptions.hpp"
void Fileio::set_up (int id_col_val, int ra_col_val, int dec_col_val,
int z_col_val) {
if (id_col_val <= 0)
throw BadArgumentException("Fileio::set_up", "id_col_val", "> 0");
if (ra_col_val <= 0)
throw BadArgu... |
/****************************************************************************
*
* Copyright (c) 2017-2020 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* 1. Red... |
/*
* gpu.cpp
*
* <NAME>
* 2/13/2021
*
* GPU for the PSX.
*/
#include "gpu.hh"
#include <queue>
#include "imgui/imgui.h"
#include "mem/ram.hh"
#include "view/imgui/dbgmod.hh"
#include "view/geometry.hh"
#include "view/view.hh"
#define GPU_INFO(...) PSXLOG_INFO("GPU", __VA_ARGS__)
#define GPU_WARN(...) PSXLOG... |
// this node is the dispersion simulation of two wheel robots
// this is the first simulation program written for two wheel robots
// one way to improve the time efficiency is curve the velocity ratio for different feedback
// in current algorithm, velocity is proportional to the feedback
// the robot tends ... |
#include "cover_tree.h"
#include <limits.h>
#include <values.h>
#include <stdint.h>
#include <iostream>
using namespace std;
struct ds_node {
v_array<float> dist;
point p;
};
float base = 1.3;
float p=0;
float il2 = 1. / log(base);
inline float dist_of_scale (int s)
{
return pow(base, s);
}
inline int get_sca... |
/*************************************************************************
"I Have No Tomatoes"
Copyright (c) 2004, <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
arisin... |
// Copyright (c) 2019 Intel Corporation
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publ... |
// --------------------------- RicGyralSpan.cpp ------------------------
/*! \file
Implementation file for Peter K's RicGyralSpan scheme.
Copyright (C) 2009 by <NAME> - Research Imaging Center - UTHSCSA
\mainpage
This program calculates the gyral span by gyrus. It uses a gyral skeletal
mesh for determination of the ce... |
/**
* This file is part of the CernVM File System.
*/
#include "upload_riak.h"
#include <fcntl.h>
#include <sys/stat.h>
#include <unistd.h>
#include <stdlib.h>
#include <algorithm>
#include "duplex_curl.h"
#include "logging.h"
#include "util.h"
#include "util_concurrency.h"
#include "json_document.h"
using name... |
////////////////////////////////////////////////////////////////////////
// Build MSX1 palette
//
// <NAME> (<EMAIL>)
//
// FLAGS: -std=gnu++14 -g `pkg-config opencv4 --cflags --libs` -Ofast -lpthread -fopenmp -lgomp -Wno-format-nonliteral
#include <opencv2/core.hpp>
#include <opencv2/imgproc.hpp>
#include <opencv2/hi... |
/*
* 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, ... |
#include <SDL2/SDL.h>
#include <SDL2/SDL_opengl.h>
#include "glmath.hpp"
float PI = 3.14159265359;
#include <vector>
#include <string>
#include <cstring>
#include <fstream>
PFNGLGENBUFFERSPROC glGenBuffers;
PFNGLBINDBUFFERPROC glBindBuffer;
PFNGLBINDBUFFERRANGEPROC glBindBufferRange;
PFNGLBUFFERDATAPROC glBufferD... |
#include "Camera.h"
#include "CoreEvents.h"
#include "Engine.h"
#include "Font.h"
#include "FileSystem.h"
#include "Graphics.h"
#include "Input.h"
#include "Material.h"
#include "Technique.h"
#include "IndexBuffer.h"
#include "VertexBuffer.h"
#include "Texture2D.h"
#include "Geometry.h"
#include "Model.h"
#include "Oc... |
/*
Implements Game.hpp.
*/
#include "Game.hpp"
#include <cassert>
#include <algorithm> // shuffle
#include <random>
const std::string suits("cdsh");
const std::string ranks("a23456789tjqka");
static unsigned QuotientRoundedUp(unsigned numerator, unsigned denominator)
{
return (numerator+denominator-1)/deno... |
/**
* Copyright © 2021 <wotsen>.
*
* 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,
* ... |
#include "Game.h"
#include "gl_core_3_2.hpp"
#include <glm\glm.hpp>
#include <glm\gtc\matrix_transform.hpp>
#include <glm\gtc\type_ptr.hpp>
#include <glm\gtx\euler_angles.hpp>
#include "resource/shader/Program.h"
#include <cmath>
#include <algorithm>
#include <imgui.h>
#include "imgui_sdl2.h"
Game::Game()
{
#ifdef _DE... |
int rvgS ,
ixJW
, o57o ,/*K*/zU/*fQLpO*/,/*1N*/WI,
vve
,YmM2q//D
,j1
, Iug
,
V7xhF
,y ,
dS //DB
,J, /*RB*/dEd ,TJs
, /*BW*/Wfq,TXp5k ,V, SC ,gF , Ncw ,//t7H
/*o*/
NL,JPD , JtUw
,Ljh5
,AUlb
,qyk /*f*/, iiaoar/*hO3*/,QU,M4aM
,JB,
OFPs ,lJqFO,bfABL
, IOt
, u ,HFpB
, Ss33,Po ,/*x*/B3x , s7J
, /*2zG... |
int dzo//g
,
OA,
KzE4s,rR , CUe
,AqT ,PB6, pSiV ,
H7v,//4
LsLSW
, r,IEXf
,ue9g,Olw ,
cG3B , /**/jn,
l5o , fdH,
JGGkExS ,
FdQ6
, DI5m, E,MkS//x
,
ZoT, cJbQO6w , vn ,ppoZ,
in6 , H8z,oWX9
,W2b ,EfI
, i5o,
//
F00,W7rXa/*G*/,
lE
,
f
, cND//wNx
,lkw ,IW1lmMm
,B8,Mm
,
Iqf, oGOcSJY
,
iw,
DyA ,b... |
/***************************************************************************
*
* ctype.cpp
*
* $Id: //stdlib/dev/source/stdlib/util/ctype.cpp#4 $
*
***************************************************************************
*
* Copyright (c) 1994-2005 Quovadx, Inc., acting through its Rogue Wave
* Software d... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.