text stringlengths 3.08k 22k |
|---|
#include "neogeo.h"
unsigned char* NeoTextROM;
int nNeoTextROMSize = -1;
bool bBIOSTextROMEnabled;
static char* NeoTextTileAttrib = NULL;
static int nBankswitch;
static int nBankLookupAddress[40];
static int nBankLookupShift[40];
static unsigned char* pTile;
static unsigned char* pTileData;
static uns... |
/*****************************************************************************
*
* Copyright (c) 2011 - 2013, CEA
* 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 ... |
/*****************************************************************************/
/*!
*\file dpllt_minisat.cpp
*\brief Implementation of dpllt module using MiniSat
*
* Author: <NAME>
*
* Created: Fri Sep 08 11:04:00 2006
*
* <hr>
*
* License to use, copy, modify, sell and/or distribute this software
* and its ... |
#include <iostream>
#include <random>
#include <string>
#include <vector>
#include <Ktt.h>
#if defined(_MSC_VER)
const std::string kernelPrefix = "";
#else
const std::string kernelPrefix = "../";
#endif
#if KTT_CUDA_EXAMPLE
const std::string defaultKernelFile = kernelPrefix + "../Examples/Transpose/Transpose.cu"... |
/***********************************************************************
* Copyright 1998-2020 CERN for the benefit of the EvtGen authors *
* *
* This file is part of EvtGen. *
* ... |
/**
* Implementation of the 'Lexer' class.
*/
#include <fstream>
#include <sstream>
#include <string>
#include <vector>
#include "interpreter/Lexer.h"
#include "interpreter/LexerException.h"
using namespace std;
/**
* Get the next character from the buffer.
*/
char Lexer::gchar() {
char c;
if (bufcount >... |
/* FILE: scriptuzeeman.cc -*-Mode: c++-*-
*
* Uniform Zeeman (applied field) energy, derived from Oxs_Energy class,
* specified from a Tcl proc.
*
*/
#include <limits>
#include <string>
#include <vector>
#include "oc.h"
#include "nb.h"
#include "director.h"
#include "scriptuzeeman.h"
OC_USE_STRING;
... |
// Copyright 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 "PckFile.h"
#include <filesystem>
#include <iostream>
using namespace pcktool;
// ------------------------------------ //
PckFile::PckFile(const std::string& path) : Path(path) {}
// ------------------------------------ //
bool PckFile::Load()
{
Contents.clear()... |
// Copyright (c) <NAME> (<EMAIL>)
// For other contributors see Contributors.txt
//
// 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 ... |
#include "ECAL2DPositionCalcWithDepthCorr.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/Utilities/interface/isFinite.h"
#include <cmath>
#include <unordered_map>
#include "DataFormats/EcalDetId/interface/EcalSubdetector.h"
#include "Geometry/CaloGeometry/interface/CaloCellGeometry.h"
... |
//
// Created by <NAME> on 09/05/17.
//
#include "Vocabulary.h"
#include <iostream>
#include <unordered_map>
#include <algorithm>
#include <math.h>
#include "ioutils.h"
using namespace std;
using namespace mmt;
using namespace mmt::fastalign;
void ParseHeader(const string &header, size_t *outSize, bool *outCaseSensi... |
#include "Esp32MiniFridge.h"
#include "sdkconfig.h"
//#define _GLIBCXX_USE_C99
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_wifi.h"
#include "esp_system.h"
#include "esp_event.h"
#include "esp_event_loop.h"
#include "nvs_flash.h"
#include "rom/rtc.h"
#include "driver/gpio.h"
#include "esp_l... |
#include "stdafx.h"
#include "WinDesktopDup.h"
WinDesktopDup::~WinDesktopDup() {
Close();
}
Error WinDesktopDup::Initialize() {
// Get desktop
HDESK hDesk = OpenInputDesktop(0, FALSE, GENERIC_ALL);
if (!hDesk)
return "Failed to open desktop";
// Attach desktop to this thread (presumably for cases where this i... |
/*
* Copyight 2020
* All rights reserved. Distributed under the terms of the MIT License.
*/
#include "ICal.h"
#include <iostream>
#include <iomanip>
#include <sstream>
#include <Catalog.h>
#include <DataIO.h>
#include <DateTime.h>
#include <List.h>
#include <Notification.h>
#include <StringList.h>
#include <Stri... |
/*
* Questo programma è stato creato a scopo scolastico. Andremo ad usare i seguemti concetti principali della OOP
* Incapsulamento: cioè il ragruppare le funzionalità di un oggetto in metodi
* L'Eredità : andremo a creare un sistema di eredità con una SuperClasse e SottoClasse
* L'overloading : La possibilità di usar... |
#include "simulation/ElementCommon.h"
static int update(UPDATE_FUNC_ARGS);
static int graphics(GRAPHICS_FUNC_ARGS);
void Element::Element_WSTE() {
Identifier = "DEFAULT_PT_WSTE";
Name = "WSTE";
Colour = PIXPACK(0x222222);
MenuVisible = 1;
MenuSection = SC_POWDERS;
Enabled = 1;
Advection = 0.1f;
AirDrag = 0.0... |
#include <Arduino.h>
#include<EEPROM.h>
#include <Keyboard.h>
#include<Keypad.h>
char button_bindings[16][21];
String tmp_keys;
uint8_t button_number;
const uint8_t button_limit=30;/////////
uint8_t number_of_buttons;
struct modifiers{
String button_name;
unsigned char button_value;
}modifier_keys... |
#include <memory>
#include <gtest/gtest.h>
#include "WCESingleLayerOptics.hpp"
#include "WCECommon.hpp"
#include "WCEMultiLayerOptics.hpp"
using namespace SingleLayerOptics;
using namespace FenestrationCommon;
using namespace SpectralAveraging;
class TestSpecularLayer_102 : public testing::Test
{
protected:
vir... |
/*
* License Agreement
*
* Copyright (c) 2007, 2008, 2009 Advanced Micro Devices Inc.
*
* All rights reserved.
*
* Redistribution and use in any form of this material and any product thereof including
* software in source or binary forms, along with any related documentation, with or
* without modification (... |
/*
See readme
*/
#include "ofApp.h"
#define AUDIO_BUFFER_SIZE 256
#define AUDIO_SAMPLE_RATE 44100
#define FFT_WINDOW_SIZE 512
#define FFT_MAG_SIZE FFT_WINDOW_SIZE/2
#define FFT_HOP_SIZE AUDIO_BUFFER_SIZE
#define SPECTROGRAM_SIZE 128
#define SPECTROGRAM_PLOT_SIZE SPECTROGRAM_SIZE*5
//------------------------------... |
//===- OffloadWrapper.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 "rsbench.h"
// Handles all material creation tasks - returns Material struct
SimulationData get_materials(Input input, uint64_t * seed)
{
SimulationData SD;
SD.num_nucs = load_num_nucs(input);
SD.length_num_nucs = 12;
SD.mats = load_mats(input, SD.num_nucs, &SD.max_num_nucs, &SD.length_mats);
SD.concs... |
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include "../../conversions/include/vrep_conversion.h"
#include "mrpt/graphs/CNetworkOfPoses.h"
#include "mrpt/graphslam/CGraphSlamEngine.h"
#include "mrpt/graphslam/apps_related/TUserOptionsChecker.h"
#include "mrpt/obs/CActionCollection.h"
#incl... |
// this code was lifted from SO (license).
#define USE_FMA true
/* max. rel. error = 1.72863156e-3 on [-87.33654, 88.72283] */
[[nodiscard]] __m128 __mm_exp_ps ( __m128 x ) noexcept { // https://stackoverflow.com/a/47025627/646940
__m128 t, f, e, p, r;
__m128i i, j;
__m128 l2e = _mm_set1_ps ( 1.442695041... |
#include "thingfinder.h"
using namespace scene;
const auto FRAME_INTERVAL = 60;
/*****************************************************************/
/******** THING FINDER *******************************************/
/*****************************************************************/
ThingFinderScene::ThingFinderScene... |
#include "common.hpp"
#include <three/cameras/perspective_camera.hpp>
#include <three/core/geometry.hpp>
#include <three/lights/point_light.hpp>
#include <three/materials/line_basic_material.hpp>
#include <three/objects/line.hpp>
#include <three/renderers/renderer_parameters.hpp>
#include <three/renderers/gl_renderer.... |
#pragma once
#include "interface_define.hpp"
#include "../math/math.hpp"
#include <d3d9.h>
using button_code_t = int;
using color32_s = float;
#define FLOW_OUTGOING 0
#define FLOW_INCOMING 1
#define MAX_FLOWS 2 // in & out
class i_net_channel_info {
public:
virtual void nop0() = 0;
virtual const char* get_i... |
//
// DriedFlower.cpp
// DynamicCast
//
// Created by penghubingzhou on 2021/5/11.
// Copyright © 2021 penghubingzhou. All rights reserved.
//
/* BSD 3-Clause License
Copyright (c) 2021, penghubingzhou
All rights reserved.
Redistribution and use in source and binary forms, with or without
modificat... |
#include "MazeRoute.h"
#include "UpdateDB.h"
ostream &operator<<(ostream &os, const Solution &sol) {
os << "cost=" << sol.cost << ", len=" << sol.len << ", vertex=" << sol.vertex
<< ", prev=" << (sol.prev ? sol.prev->vertex : -1);
return os;
}
db::RouteStatus MazeRoute::run() {
GridGraphBuilder gra... |
inline Mat4::Mat4() :
x(1.0f, 0.0f, 0.0f, 0.0f),
y(0.0f, 1.0f, 0.0f, 0.0f),
z(0.0f, 0.0f, 1.0f, 0.0f),
w(0.0f, 0.0f, 0.0f, 1.0f) {}
inline Mat4::Mat4(Vec4 _x, Vec4 _y, Vec4 _z, Vec4 _w) :
x(_x), y(_y), z(_z), w(_w) {}
inline Mat4::Mat4(const Mat4 & _mat) :
x(_mat.x), y(_mat.y), z(_mat.z), w(_mat.w) {}
inline... |
#include "stdhdrs.h"
#include "Log.h"
#include "Cmd.h"
#include "Character.h"
#include "Server.h"
#include "CmdMsg.h"
#include "doFunc.h"
#include "dofuncAdmin.h"
#ifdef DURABILITY
extern void do_Durability(CPC* ch, CNetMsg::SP& msg);
#endif
CCmdList::CCmdList()
{
}
void CCmdList::AddMessage()
{
// Chatting
Add(M... |
/*
* Copyright (c) 2007
* Shrew Soft 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
* notice, this list ... |
#include <ModbusUART.h>
// riaps:keep_header:begin
// riaps:keep_header:end
namespace distributedvoltage {
namespace components {
// riaps:keep_construct:begin
ModbusUART::ModbusUART(const py::object* parent_actor ,
const py::dict actor_spec ,
... |
//--------------------------------------------------------------------------
// File and Version Information:
// $Id: EidEventTriplet.cc 622 2010-09-13 09:48:16Z stroili $
//
// Description:
// See .hh for details.
//
// Author List:
// <NAME> University of Pennsylvania
// <NAME> ... |
#include "IVideoThreadThermalCam.h"
#include <QImage>
#include <QPainter>
#include <QDebug>
#include <QString>
IVideoThreadThermalCam::IVideoThreadThermalCam(QObject *parent,
QString _XML_File_Setting, QString _Name)
: IVideoThread(parent,_Name)
{
if(::evo_irima... |
#include <memory>
#include <cassert>
#include <vector>
#include <string>
#include <algorithm>
#include <unordered_map>
#include <jit/jit.h>
// forward declaration for Visitor
class BinaryExprAST;
class UnaryExprAST;
class NumberExprAST;
class IdentifierExprAST;
// visitor interface
class Visitor {
public:
... |
#include <cmath>
#include <limits>
#include <iostream>
#include <fstream>
#include <vector>
#include <algorithm>
#include "Math/Math.h"
#include "RaytracingEngine.h"
struct Light {
Light(const Vector3f& p, const float i) : position(p), intensity(i) {}
Vector3f position;
float intensity;
};
struct Materia... |
// Copyright 2018 The Fuchsia 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 "garnet/examples/ui/hello_views/app.h"
#include <fuchsia/sys/cpp/fidl.h>
#include <fuchsia/ui/app/cpp/fidl.h>
#include <fuchsia/ui/scenic/cpp/fid... |
/*
* Musepack demuxer
* Copyright (c) 2006 <NAME>
*
* This file is part of FFmpeg.
*
* FFmpeg 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 your op... |
/*
* Copyright (C) 2010 The Android Open Source Project
*
* 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 app... |
#include "rose.h"
#include <Rose/CommandLine.h> // Commandline support in librose
#include <Sawyer/CommandLine.h>
using namespace std;
using namespace Sawyer::Message::Common; // if you want unqualified DEBUG, WARN, ERROR, FATAL, etc.
Sawyer::Message::Facility mlog; // a.k.a., Rose::Diagnostics::Facility
bool enable_d... |
/*******************************************************
*
* Copyright (c) 2021 5Voxel Co., Ltd.
*
*******************************************************/
#include <ros/ros.h>
#include <image_transport/image_transport.h>
#include <sensor_msgs/image_encodings.h>
#include <pcl_ros/point_cloud.h>
#include <pcl/poin... |
/*
* Copyright (c) 2019 ARM Limited.
*
* SPDX-License-Identifier: MIT
*
* 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 ... |
/*!
\file source.cpp
\brief Source file
\author
\date
*/
#include "header.hpp"
#include <iomanip>
#include <queue>
/*!
\brief Constructor with initializer list
\param[in] list of format { { 0, 1, 2, ... }, { 1, 0, 2, ... }, { 2, 0, 1, ... }, ... }
In each sub-list, the ... |
//////////////////////////////////////////////////////////////////////////
// Family Basic Keyboard //
//////////////////////////////////////////////////////////////////////////
void EXPAD_Keyboard::Reset()
{
bGraph = FALSE;
bOut = FALSE;
ScanNo = 0;
}
BYTE E... |
/*
* SmartMatrix Library - Methods for interacting with foreground layer
*
* Copyright (c) 2014 <NAME> (Pixelmatix)
*
* 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 restrictio... |
#include "calendar.h"
using namespace std;
//--------------------------
Account::Account ( string Name, string Surname, string Nickname ) {
m_Name = Name;
m_Surname = Surname;
m_Nickname = Nickname;
}
//--------------------------
string Account::getName () const { return m_Name; }
//------------------------... |
#include "GLCD.h"
#include "Board_Buttons.h"
#include <stdio.h>
#include "game_elements.cpp"
#include "cmsis_os.h"
#include "LPC17xx.h"
#include "PIN_LPC17xx.h"
#include "DAC_LPC1768.h"
//#define DEBUG
#define BRICK_LINE_HEIGHT_BEGINNING 270 //it leaves 50 pixel from the higher border of the screen to the first line... |
/* Orignal skeleton is:
Pre: SKELETON:
With the array index wrappers api_out,Annon
And (fromvars) []
Under dimensions [interface_len = p (^2) ]
With conversion function IdentityConversion
>(new binding):
With the array index wrappers dir
And (fromvars) [norm]
Under dimensions []
With conversion function IdentityCo... |
/*
* Program to calculate difference between date and times.
*
* Command line usage syntax:
* - Only dates:
* calctime <Start Date> <End Date>
* - Date and Time with 24-hour clock:
* calctime <Start Date> <Start Time> <End Date> <End Time>
* - Date and Time with 12-hour clock:
* calctime ... |
///////////////////////////////////////////////////////////////////////////////
//
// @@@ START COPYRIGHT @@@
//
// Licensed to the Apache Software Foundation (ASF) under one
// or more contributor license agreements. See the NOTICE file
// distributed with this work for additional information
// regarding copyright o... |
//
// Created by corentin on 23/02/18.
//
#include <algorithm>
#include "GenerateResponse.hpp"
GenerateResponse::GenerateResponse() = default;
GenerateResponse::~GenerateResponse() = default;
bool GenerateResponse::exec(zia::api::HttpDuplex &http)
{
if (http.resp.status != zia::api::http::common_status::ok)
... |
/*
* All or portions of this file Copyright (c) Amazon.com, Inc. or its affiliates or
* its licensors.
*
* For complete copyright and license terms please see the LICENSE at the root of this
* distribution (the "License"). All use of this software is governed by the License,
* or, if provided, by the license below or t... |
#include "opencv2/opencv.hpp"
#include "opencv2/imgproc/imgproc.hpp"
#include "opencv2/highgui/highgui.hpp"
#include<fstream>
#include<iostream>
#include<stdlib.h>
using namespace std;
using namespace cv;
struct data
{
int img[28][28];
} s1;
struct CONT
{
int topx,topy,width,height;
}cntr;
int main(int argc,char *a... |
//-----------------------------------------------------------------------------
// Function: WebcamSMGetSM
//-----------------------------------------------------------------------------
void webcamSSMSaliencyCore(videoInput &vi, int dev_id, saliencyMap *SM, // input
IplImage *& inputFrame,... |
#include "NavMesh.h"
#include "Agent.h"
#include "Timing.h"
#include "poly2tri/poly2tri.h"
NavMesh::NavMesh(float width, float height) {
m_polygons.push_back({});
m_polygons[0].push_back(new p2t::Point(0, 0));
m_polygons[0].push_back(new p2t::Point(0, height));
m_polygons[0].push_back(new p2t::Point(width, height... |
// file: Visual_hull/Nef_3/subdiv.C
#include <CGAL/Simple_cartesian.h>
#include <CGAL/Polyhedron_3.h>
#include <CGAL/IO/Polyhedron_iostream.h>
#include <CGAL/squared_distance_3.h>
#include <CGAL/Timer.h>
#include <iostream>
#include <algorithm>
#include <vector>
using std::cout;
using std::cerr;
using std::cin;
using... |
#include <xx_three/xx_three.h>
#include <gfx-pbr/Api.h>
// @author alteredq / http://alteredqualia.com/
// Luminosity http://en.wikipedia.org/wiki/Luminosity
static string luminosity_vertex =
"$input a_position, a_texcoord0\n"
"$output v_uv0\n"
"#include <filter.sh>\n"
"void main()\n"
"{\n"
" v_uv0 = u_sourc... |
// license:BSD-3-Clause
// copyright-holders:<NAME>,<NAME>
/*
SSP1601 disassembler
written by <NAME>
updated for SSP1601 by <NAME>
*/
#include "emu.h"
#include "ssp1601d.h"
const char *const ssp1601_disassembler::reg[16] =
{
"-", "X", "Y", "A",
"ST", "STACK", "PC", "P",
"EXT0", "EXT1", "EXT2",... |
#include <iostream>
#include<fstream>
#include <sys/socket.h>
#include <errno.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include<string>
#include <map>
#include <pthread.h>
#include <sys/stat.h>
#include <dirent.h>
//#include <unistd.h>
//c 语言与 c++库的冲突,放在 A 的命名空间便于引用
namespace A {
//防止 c++变异器对函数名的特殊处理,防止... |
/** Copyright (C) 2016, 2017 European Spallation Source ERIC */
//===----------------------------------------------------------------------===//
///
/// \file Cluster.cpp
/// \brief Cluster class implementation
///
//===----------------------------------------------------------------------===//
#include <common/reduct... |
#include "Tile.hpp"
#include <plog/Log.h>
#include <IServer.h>
#include <Resources/ResourceManager.hpp>
#include <Network/Differences.hpp>
#include <World/World.hpp>
#include <World/Map.hpp>
#include <World/Objects.hpp>
#include <World/Atmos/Atmos.hpp>
Tile::Tile(Map *map, apos pos) :
map(map), pos(pos),
has... |
#include "../src/Particles/Particle.h"
#include "gtest/gtest.h"
using namespace SAPHRON;
TEST(Site, DefaultConstructor)
{
Particle s({0.0, 0.0, 0.0}, {0.0, 0.0, 0.0}, "L1");
auto pos = s.GetPosition();
ASSERT_EQ(0.0, pos[0]);
ASSERT_EQ(0.0, pos[1]);
ASSERT_EQ(0.0, pos[2]);
Director d1 {0.0, 0.0, 0.0};
ASSERT... |
/** My first Galois program -*- C++ -*-
*/
#include "Galois/Galois.h"
#include "Galois/Graph/Graph.h"
#include <boost/iterator/counting_iterator.hpp>
#include <iostream>
#include <string>
#include <sstream>
using namespace std;
//typedef Galois::Graph::FirstGraph<std::string,std::string,true> Graph;
... |
#include "GameScreen.hpp"
#include <oficina2/oficina.hpp>
#include <oficina2/io.hpp>
#include <oficina2/input.hpp>
#include <oficina2/benchmark.hpp>
#include <oficina2/ofscheme.hpp>
using namespace oficina;
glm::mat4 vp, projection, view, parallax_vp;
bool m_super = false,
m_oldsuper = false,
m_showbg = tru... |
/*
Author: <NAME>
E-mail: <EMAIL>
Date: 2020/03/30
Modified by: <NAME>
Date: 2020/06/22
*/
#include <gtest/gtest.h>
#include <time.h>
#include "../../src/common/benchmarkoptionsparser.h"
#include "../../src/common/utility.h"
#include "../common/basetest.h"
#... |
/**
\file
\author <NAME>
*/
#include "VisualEffectDialog.h"
#include <cnoid/Archive>
#include <cnoid/Button>
#include <cnoid/CheckBox>
#include <cnoid/ComboBox>
#include <cnoid/Separator>
#include <cnoid/SpinBox>
#include <QDialogButtonBox>
#include <QGridLayout>
#include <QLabel>
#include <QHBoxLayout>
#include... |
#include "string.h"
#include <curl/curl.h>
bool request_favicon_from_website(String url, Size_Mem *icon_file);
Bitmap
get_favicon_from_website(String url)
{
// Url must be null terminated
// mit very screwed
// stack overflow, google has extra row on top?
// onesearch.library.uwa.edu.au is 8 bit
... |
// ---------------------------------------------------------------------------
//
// The ab-initio based multiscale library
//
// S / P H I / n X
//
// Copyright: Max-Planck-Institute for Iron Research
// 40237 Duesseldorf, Germany
//
// Contact: https://sxlib.mpie.d... |
// -*- coding: us-ascii-unix -*-
// Copyright 2012 <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 applica... |
/*
calculator08buggy.cpp
Helpful comments removed.
We have inserted 3 bugs that the compiler will catch and 3 that it won't.
*/
/* GRAMMAR
* =======
* Calculation:
* Statement
* Print
* Quit
* Calculation Statement
*
* Statement:
* Declaration
* Expression
*
* Declaration... |
#include "rush_thinker.h"
#include <array>
#include <limits>
#include <numeric>
#include <sstream>
#include <vector>
#include <gflags/gflags.h>
#include <glog/logging.h>
#include "base/base.h"
#include "base/time.h"
#include "core/plan/plan.h"
#include "core/rensa/rensa_detector.h"
#include "core/core_field.h"
#incl... |
#include "Renderer.h"
#include "manager.h"
#include "Scene.h"
#include "Input.h"
#include "camera.h"
using namespace Aegis;
CCamera* CCamera::pCamera = nullptr;
XMMATRIX CCamera::m_ViewMatrix;
XMMATRIX CCamera::m_ProjectionMatrix;
float CCamera::Lenght_Z = 15.0f;
float CCamera::Lenght_Y = 4.0f;
void CCamera::Init(... |
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "skip/SmallTaggedPtr.h"
#include <gtest/gtest.h>
using skip::SmallTaggedPtr;
using skip::detail::UIntTypeSelector;
nam... |
#include <gtest.h>
#include "liberal-pool.h"
using namespace kl;
using namespace kl::private_internal;
// TODO build and run on 32bits
// TODO build and run on 32bits
// TODO build and run on 32bits
// Expectations for bits set
static const cpu_word_t kNoBitsSet = static_cast<cpu_word_t>(0u);
static const cpu_word_t... |
#include "hirschfye_qmc.hpp"
HirschFyeQMC::HirschFyeQMC(const double * gtau0, const int ntau, const double beta, const double U, const unsigned long seed, const unsigned long seedDist):
nsweeps_(0),
nchain_(0),
N_(ntau),
lambda_(std::log(std::exp(beta/ntau*U/2.0) + std::sqrt(std::pow(std::exp(beta/ntau*U/2.0),... |
#include <stdio.h>
// #include <cblas.h>
// cublas
// #include <cuda_runtime.h>
// #include "cublas_v2.h"
#include <mkl.h>
#include "tmblas.h"
#include "read_matrix.h"
#include <stdlib.h>
#include <sys/time.h>
#include <mkl_spblas.h>
#include <string.h>
#define ALIGN 128
double calculateMM(char *filename,int select_t... |
// -*- C++ -*-
//
// Package: BSCTrigger
// Class: BSCTrigger
//
/**\class BSCTrigger BSCTrigger.cc L1TriggerOffline/BSCTriggerSimulation/src/BSCTrigger.cc
Description: <one line class summary>
Implementation:
<Notes on implementation>
*/
//
// Original Author: <NAME> *:0
// Created: Wed Jul 16 16:1... |
// MIT License
//
// Copyright(c) 2019 <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, merg... |
#include "yolo_cpu.hpp"
Napi::Object Yolo_cpu::Init(Napi::Env env, Napi::Object exports) {
Napi::Function func =
DefineClass(env,
"Yolo_cpu",
{InstanceMethod("start", &Yolo_cpu::start)});
Napi::FunctionReference* constructor = new Napi::FunctionReference();
... |
// database.cpp
// Copyright (c) 2020, zhiayang
// Licensed under the Apache License Version 2.0.
#include <stdio.h>
#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <filesystem>
#include "db.h"
#include "timer.h"
#include "twitch.h"
#include "markov.h"
#include "discord.h"
#include "synchro.h"
#i... |
/****************************************************************************
*
* Copyright (c) 2017 - 2018 by Rockchip Corp. All rights reserved.
*
* The material in this file is confidential and contains trade secrets
* of Rockchip Corporation. This is proprietary information owned by
* Rockchip Corporat... |
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <time.h>
#include "sfs_index.h"
#include <sys/uio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <errno.h>
#include <rtsLog.h>
#include <rts.h>
// #include <byteswap.h>
// #define swap16(x) bswap_16(x)
... |
//
// Created by Administrator on 2021/1/23 0023.
//
#include "RtmpPush.h"
RtmpPush::RtmpPush(const char *url, JqhCallJava *jqhCallJava) {
this->url = static_cast<char *> (malloc(512));
// 拷贝一份
strcpy(this->url, url);
this->queue = new JqhQueue();
this->jqhCallJava = jqhCallJava;
}
RtmpPush::~Rtm... |
/*
* Copyright 2012, The Android Open Source Project
*
* 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 applica... |
// license:BSD-3-Clause
// copyright-holders:<NAME>
/***************************************************************************
asapdasm.c
Disassembler for the portable ASAP emulator.
Written by <NAME>
***************************************************************************/
#include "emu.h"
#include... |
#include<stdio.h>
#include<unistd.h>
#include "dlib/image_io.h"
#include "dlib/image_processing/generic_image.h"
#include "face_recognization.h"
#include<cstring>
using namespace dlib;
static int convert2rgbfile(const char *imagepath, int *weight, int *height)
{
dlib::array2d<dlib::rgb_pixel> m;
load_image(m,... |
/*
* Copyright (C) 2021 ZMP Inc <EMAIL>
*
* Distributed under the MIT License (http://opensource.org/licenses/MIT)
*
* Written by btran
*/
#include "rc110_custom_detect_net.hpp"
#include <jetson-inference/tensorConvert.h>
#include <algorithm>
#include <string>
#include <vector>
namespace
{
// indices of confi... |
#include "OnlineGreedyTaskPlanner.hpp"
#include "partition.hpp"
#include "permutations.hpp"
#include "algorithms.hpp"
#include <memory>
namespace onlinegreedytaskplanner
{
OnlineGreedyTaskPlanner::OnlineGreedyTaskPlanner(ros::NodeHandle &nh_, const std::string &name) : OnlineCentralizedTaskPlanner(nh_, name)
{
}
s... |
#include <vector>
#include <iostream>
#include <algorithm>
#include <math.h>
#include <fstream>
#include <signal.h>
#include "time.h"
#include "rplidar.h" //RPLIDAR standard sdk, all-in-one header
#include <opencv2/opencv.hpp>
#include <thread>
#include "kdtree.h"
#include "Display.h"
#include "ICP.h"
... |
// Copyright 2021 <NAME>
#include "../../../modules/task_3/vanyushkov_m_odd_even_sort/odd_even_sort.h"
#include <random>
#include <vector>
// we will consider a vector with positive elements
void vec_gen(int* vec, int len) {
// https://stackoverflow.com/questions/13445688/how-to-generate-a-random-number-in-c
... |
/*
* 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 ... |
/* \class testAnalyzer
* author: <NAME>
* version 0.1
* TriggerEfficiency module
*
*/
#include "FWCore/Framework/interface/EDAnalyzer.h"
#include "FWCore/Utilities/interface/InputTag.h"
#include "FWCore/Framework/interface/Event.h"
#include "DataFormats/Common/interface/Handle.h"
#include "DataFormats/Candidate/in... |
//*********************************************************
// Read_Performance.cpp - read the link delay file
//*********************************************************
#include "Demand_Service.hpp"
#include "Delay_File.hpp"
#include "Time_Step.hpp"
//---------------------------------------------------------
// Rea... |
/*==========================================================================
* Copyright (c) 2006 <NAME>. All Rights Reserved.
*
* Use of the Lemur Toolkit for Language Modeling and Information Retrieval
* is subject to the terms of the software license set forth in the LICENSE
* file included with this software ... |
//===-- Heuristic.cpp - Interface to PA heuristics ------------------------===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===--------... |
#include <stdlib.h> // for NULL, abort
#include <iostream> // for cerr
#include <set> // for _Rb_tree_const_iterator, etc
#include <vector> // for vector
#include "FileData.h" // for FileData
#include "FileQueue.h... |
// lk.cpp
// Compute sequential k-opt moves
#include <string.h>
#include <stdio.h>
#include <cstdlib>
#include "main.h"
#include "helpers.h"
#include "lk_checkers.h"
#include "lk.h"
int _lk_move(Int** dist, Int** near, Int* pos2node, Int* node2pos, Int* cs, Int* csh, Int* new_edges, Int* old_edges, Int saving, Int ... |
#include "../../BenchmarkNode.h"
#include "cnn_cfg.hpp"
#include <stdint.h>
#include <stdlib.h>
#include <iostream>
#include <algorithm>
#include <vector>
#define NUM_LAYER 1
#define K 100
#define N_FEA 96
#define N_QUERY 16
#define N_CENT 512
#define FOUT11 32
int ly[13][9] = {
{DATA, FOUT11, CONV11_I, CONV11_I, C... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.