text stringlengths 3.08k 12.5k |
|---|
/**
* UGENE - Integrated Bioinformatics Tools.
* Copyright (C) 2008-2012 UniPro <<EMAIL>>
* http://ugene.unipro.ru
*
* 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... |
/* This system will read input files in .obj format, build scene graphs using them, and render the results. */
/* Display at most 10 objects */
/* arg is path of the file */
/* Name: <NAME> */
/* UTEID: am65355 */
/* CSID: ama */
#include <stdlib.h>
#include <stdio.h>
#include <vector>
#ifdef MACINTOSH
#include <Ope... |
// This file is part of the LITIV framework; visit the original repository at
// https://github.com/plstcharles/litiv for more information.
//
// Copyright 2015 <NAME>; pierre-luc.st-charles<at>polymtl.ca
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compl... |
//
// xpcommands.cpp
// xlua
//
// Created by <NAME> on 4/12/16.
//
// Copyright 2016, Laminar Research
// This source code is licensed under the MIT open source license.
// See LICENSE.txt for the full terms of the license.
#include <cstdio>
#include "xpcommands.h"
#define XPLM200 1
#include <XPLMUtilities.h>
#in... |
/* ---------------------------------------------------------------------------
** This software is in the public domain, furnished "as is", without technical
** support, and with no warranty, express or implied, as to its usefulness for
** any purpose.
**
** main.cpp
**
** ---------------------------------------------... |
/*
Copyright (c) 2007 <NAME>. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless require... |
/*
* Player - One Hell of a Robot Server
* Copyright (C) 2005-2006
* <NAME>, <NAME>
*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (... |
#include "calculate_coeff.h"
//#define test_coef_ide_exp
//#define test_bldshps
//#define test_3d2dland
//#define test_2dslt_def
iden ide[G_train_pic_id_num];
Eigen :: MatrixXf bldshps(G_iden_num,G_nShape*3*G_nVerts);
//#ifdef win64
std::string fwhs_path = "D:/sydney/first/data_me/FaceWarehouse";
std... |
#include <stdio.h>
#include <png.h>
int // 0 on failure, 1 on success
save_png(const char *filename, // filename
unsigned char* buffer, // buffer of an image
int w, // width of image
int h, // height
int b) // color depth/ bytes per pixel
{
int y; // Current row
const unsigned char *ptr; // Pointer to i... |
#include "stdafx.h"
#include <Snap.h>
#include <stdio.h>
#include <omp.h>
PSOut StdOut = TStdOut::New();
int main(int argc, char* argv[]) {
// PSVNet PGraph = PSVNet::New();
// PCVNet PGraph = PCVNet::New();
PMVNet PGraph = PMVNet::New();
int NTypeId1 = PGraph->AddNType(TStr("Photo"));
int NTypeId2 = PGraph->... |
/* ****************************************************************** **
** OpenSees - Open System for Earthquake Engineering Simulation **
** Pacific Earthquake Engineering Research Center **
** **
** ... |
#include <libadb/encoding/base64.hpp>
#include <algorithm>
#include <execution>
#include <ranges>
#include <libadb/types/helpers/ranges/range.hpp>
namespace
{
constexpr std::string_view eTable{"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"};
constexpr uint8_t toByte(char a)
{
if... |
#include <grasp_execution/GraspEligibilityChecker.h>
#include <convenience_ros_functions/ROSFunctions.h>
#include "GraspStateHelper.h"
using convenience_ros_functions::ROSFunctions;
using grasp_execution::GraspEligibilityChecker;
GraspEligibilityChecker::GraspEligibilityChecker(ros::NodeHandle& node,
const float&... |
//
// Copyright (c) 2009, Tweak Software
// 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, th... |
/*
This file is part of Server_Shell.
Server_Shell is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
Server_Shell is ... |
#include "terrain/Water.hpp"
#include "blue/Context.hpp"
#include "Resources.hpp"
#include "blue/ResourcesPath.h"
#include <algorithm>
#include <fstream>
void Water::import_from_file(const std::string& filename)
{
auto path_extended = paths::getResourcesPath() + filename;
std::vector<char> data;
SDL_RWops* file ... |
// Copyright (c) 2019 Graphcore Ltd. All rights reserved.
#define BOOST_TEST_MODULE GatherSimpleTest
#include <poplibs_support/TestDevice.hpp>
#include <iostream>
#include <boost/test/unit_test.hpp>
#include <poplar/Engine.hpp>
#include <popops/Gather.hpp>
#include <popops/codelets.hpp>
#include <poputil/TileMapping... |
/*
* Copyright 2019, Offchain Labs, 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 ag... |
//+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1992 - 1998
//
// File: RegSettingsIO.cxx
//
// Contents: Register Settings IO functions
//
// Written by <NAME>
//
//-----------------------... |
/*
* Copyright (c) 2009-2010, Oracle and/or its affiliates. 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,
... |
#include "ThreadPool.h"
ThreadPool::ThreadPool() : m_pool_size(DEFAULT_POOL_SIZE)
{
m_pool_state = STOPPED;
busy_ = 0;
//cout << "Constructed ThreadPool of size " << m_pool_size << endl;
}
ThreadPool::ThreadPool(int pool_size) : m_pool_size(pool_size)
{
m_pool_state = STOPPED;
busy_ = 0;
memBuffer_ = ... |
// Copyright (c) 2013-2018 FRC Team 3512. All Rights Reserved.
#include "WpiClient.hpp"
#include <cstring>
#include <iostream>
#include <map>
#include <system_error>
#include <QImage>
#include "MjpegClient.hpp"
#include "mjpeg_sck_selector.hpp"
constexpr uint8_t WpiClient::k_magicNumber[];
WpiClient::WpiClient(co... |
/*
* Copyright (C) 2008-2012 TrinityCore <http://www.trinitycore.org/>
* Copyright (C) 2006-2009 ScriptDev2 <https://scriptdev2.svn.sourceforge.net/>
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software ... |
#include <Loader.hpp>
#include <Mod.hpp>
#include <CApiMod.hpp>
#include <InternalMod.hpp>
#include <Log.hpp>
#undef snprintf
#include <json.hpp>
#include <ZipUtils.h>
USE_LILAC_NAMESPACE();
template<> Result<Loader::MetaCheckResult> Loader::checkBySchema<1>(std::string const& path, void* jsonData);
#define JSON_ASS... |
#include <algorithm>
#include "pangaeaapi.h"
#include "util/concat.h"
#include "util/stringsplit.h"
#include "util/curl.h"
#include "util/configuration.h"
#include "util/exceptions.h"
PangaeaAPI::Parameter::Parameter(const Json::Value &json, const std::vector<Parameter> ¶meters) {
name = json.get("name", "").asS... |
#include <cstdio>
#include <cstring>
#include <cmath>
#include <algorithm>
using namespace std;
const double eps = 1e-10;
inline int dcmp(double e) { if (fabs(e) < eps) return 0; return e < 0 ? -1 : 1; }
struct Point {
double x, y;
void read() { scanf("%lf%lf", &x, &y); }
Point(double x = 0, double y = 0): x(x), y... |
#include "Model/Model.hpp"
#include <SDL2/SDL_rwops.h>
#include <iostream>
#include <string>
const std::string version = "0.0.1";
bool z_mode = false;
bool cpp_mode = false;
inline std::string get_file_name(const std::string &path) {
std::size_t pos;
pos = path.rfind('\\');
if (pos != std::string::npos) {
re... |
/******************************************************************************
* *
* Copyright (C) 2021 <NAME> Italiano di Tecnologia (IIT) *
* All Rights Reserved. *
* ... |
#include <iostream>
#include <exception>
#include <vector>
#include <string>
#ifdef WIN32
#include <windows.h>
#else
#include <string.h>
#include <stdio.h>
#include <termios.h>
#include <unistd.h>
#endif
#include "GameBoard.h"
#include "KeyPeg.h"
#include "CodePeg.h"
using namespace std;
void SetStdinEcho(bool enab... |
// game.cpp
// game class implementation.
#include <vector>
#include "window.hpp"
#include "object.hpp"
#include "player.hpp"
Game::Game() {
tick = 0;
}
unsigned int Game::get_tick() {
return tick;
}
Player Game::get_current_player() {
return *current_player;
}
std::vector<Player*> Game::get_players() {
r... |
#include <PathPlanner.h>
#include <iostream>
#include <fstream>
#include <stdexcept>
#include <memory>
#include <docopt/docopt.h>
using PathPlanner = yaqwsx::PathPlanner<int>;
static const char usage[] =
R"(PathPlanner demo.
Usage:
pathplanner <trajectory> <output_dir> [options]
pathplanner (-h | --h... |
#include "mat3.h"
#include <math.h>
#include "vec2.h"
#include <iostream>
/*1. + mat3()
Constructor que inicializa las variables de instancia a sus valores por default. El valor por default de n contiene todos sus
valores inicializados en 0.
*/
cgmath::mat3::mat3() : n{0}
{
}
/*2. + mat3(diagonal:float)
Constructor ... |
#include <math.h>
#include <fstream>
#include <string>
#include <conio.h>
#include <iostream>
#include <iomanip>
using namespace std;
#include "math_parameters.h"
ofstream log_fout("log_data.out"); // need to define log_fout in main.cpp
// math_grunts.h --------------------------------------------------... |
#include <iostream>
#include "flame/config.h"
#include "flame/base.h"
# define C0 2.99792458e8
// Good practice to enclose all local definitions in an anonymous namespace
// equivalent of static functions in plain C.
namespace {
//! [StateDef]
struct State1D : public StateBase
{
double x, // transver... |
// -*- C++ -*-
//
// Package: HGCalWaferInFileOrientation
// Class: HGCalWaferInFileOrientation
//
/**\class HGCalWaferInFileOrientation HGCalWaferInFileOrientation.cc
test/HGCalWaferInFileOrientation.cc
Description: <one line class summary>
Implementation:
<Notes on implementation>
*/
//
// Original ... |
/* vim: set sw=4 sts=4 et foldmethod=syntax : */
#include "symmetries.hh"
#include "config.hh"
#include <istream>
#include <ostream>
#include <sstream>
#include <string>
#include <vector>
#if defined(STD_FS_IS_EXPERIMENTAL)
# include <experimental/filesystem>
#elif defined(STD_FS_IS_STD)
# include <filesystem>
#el... |
#include "command_line_arguments.h"
#include <cassert>
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
#include "target_registry.h"
std::string ToString(PreambleType preamble_type) {
switch (preamble_type) {
case PreambleType_Default: {
return "default";
} break;
case ... |
// Copyright 2008-2011 <NAME>, <EMAIL>
// https://sourceforge.net/projects/x3c/
//
// 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... |
#pragma once
#include "IVideoSink.hpp"
#include "DisplayGenerator.hpp"
#include "ImageCart.hpp"
#include "ImageProperties.hpp"
struct RenderFrame;
class WinImgui11;
class WinImgui9;
class Manager;
class IEncoder;
class WinRenderer
{
public:
WinRenderer();
~WinRenderer();
void setEncoder( ... |
/*
Copyright 2016, <NAME>, Institute for Systems Biology
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 i... |
// SPDX-FileCopyrightText: 2021 CERN
// SPDX-License-Identifier: Apache-2.0
#include "geant4_mock.h"
#include "G4Types.hh"
#include "G4Box.hh"
#include "G4LogicalVolume.hh"
#include "G4Material.hh"
#include "G4NistManager.hh"
#include "G4PVPlacement.hh"
#include "G4PVReplica.hh"
#include "G4SystemOfUnits.hh"
#includ... |
/*
* Label.cpp
*
* Copyright (c) 2015, <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... |
// Copyright (c) 2013 University of Pennsylvania
//
// 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, modif... |
/****************************************************************************
*
* Copyright (c) 2018 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. Redistri... |
/* Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License, version 2.0,
as published by the Free Software Foundation.
This program is also distributed with certai... |
#include <grend/gameEditor.hpp>
#include <imgui/imgui.h>
#include <imgui/backends/imgui_impl_sdl.h>
#include <imgui/backends/imgui_impl_opengl3.h>
using namespace grendx;
static void editPointLight(gameMain *game, gameLightPoint::ptr light) {
ImGui::Text("%s", "Point light properties");
ImGui::Separator();
ImGui:... |
#define SZ 100
#include <cstdint>
#include "xf_utils_hw/multiplexer.hpp"
struct Pix {
uint8_t r;
uint8_t g;
uint8_t b;
};
void sender(char* in, hls::stream<ap_uint<16> >& s) {
using namespace xf::common::utils_hw;
uint64_t u;
u = (uint64_t)(*in++) & 0xff;
u |= ((uint64_t)(*in++) & 0xff) ... |
#pragma once
#include "EngineMinimal.h"
#include "VoxelIndex.h"
//======================================================================================================================================================================
//
//================================================================================... |
// Copyright 2011 The Kyua Authors.
// 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... |
// I am deferent, I am Scorpio!
# include <iostream>
# include <fstream>
# include <windows.h>
# include <string.h>
using namespace std;
/*
class
*/
class Inventory
{
public:
void readItems();
void displayItem();
int getItemID();
float getPrice();
float getQuantity();
int return_ItemID();
void updateQua... |
// Copyright (c) 2013-2020 <NAME>
// License: Academic Free License ("AFL") v. 3.0
// AFL License page: https://opensource.org/licenses/AFL-3.0
#pragma once
#include "SSVOpenHexagon/Online/Sodium.hpp"
#include "SSVOpenHexagon/Online/DatabaseRecords.hpp"
#include "SSVOpenHexagon/Utils/Clock.hpp"
#include <SFML/Netwo... |
#include <gtest/gtest.h>
#include <iostream>
#include <models/linear_oblivious_tree.h>
#include <models/polynom/linear_monom.h>
#include <models/polynom/polynom.h>
#include <data/dataset.h>
#include <data/grid_builder.h>
#include <core/vec.h>
#include <core/vec_factory.h>
#include <methods/boosting.h>
#include <metho... |
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <Fmod/fmod.h>
#include <Fmod/fmod_common.h>
#include <Fmod/fmod.hpp>
#include <Fmod/fmod_errors.h>
#include <iostream>
#include <vector>
#include <time.h>
... |
/* MIT License
Copyright (c) [2016] [<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... |
//g++-5 -Wall --std=c++11 -g -o algo_sort_num_smaller_elements_in_right algo_sort_num_smaller_elements_in_right.cc
/**
* @file Count number of smaller elements to right
*/
// https://leetcode.com/problems/count-of-smaller-numbers-after-self/
#include <iostream> /* std::cout */
#include... |
// ------------------------------------------------
// File : main.cpp
// Date: ??-apr-2004
// Author: giles & mode7
// Desc:
// see .cpp for details
//
// (c) 2002-2004 peercast.org
// ------------------------------------------------
// This program is free software; you can redistribute it and/or modify
// it under ... |
#include <GLFW/glfw3.h>
#include <glad/glad.h>
#include <glog/logging.h>
#include <imgui.h>
#include <imgui_impl_glfw.h>
#include <imgui_impl_opengl3.h>
#include <implot.h>
#include "imgui/imgui_functor.h"
#include "gui/sna_workspace.h"
#include "util/config.h"
static void glfw_error_callback(int error, const char* d... |
//
// Created by <NAME> on 28/07/18.
//
#include <libgba-sprite-engine/gba/tonc_memmap.h>
#include <stdexcept>
#include <libgba-sprite-engine/allocator.h>
#ifdef CODE_COMPILED_AS_PART_OF_TEST
#include <libgba-sprite-engine/gba/tonc_core_stub.h>
#else
#include <libgba-sprite-engine/gba/tonc_core.h>
#endif
#include <li... |
#include <vector>
#include <string>
#include <sstream>
#include <fstream>
#include "network.hpp"
#include "parser.hpp"
void Network::write() {
cout << "BAYES" << endl;
cout << nvar << endl;
cout << nvalue[0];
for (int v = 1; v < nvar; v++)
cout << " " << nvalue[v];
cout << endl << endl;
cout << ncpt <... |
#include "FreeCamera.h"
FreeCamera::FreeCamera() {
position.set(0.0f, 0.0f, 2.4f);
forward.set(0.0f, 0.0f, 0.0f);
up.set(0.0f, 0.0f, 0.0f);
side.set(0.0f, 0.0f, 0.0f);
lookAt.set(1.0f, 1.0f, 5.0f);
setYaw(0);
setPitch(0);
setRoll(0);
update();
}
FreeCamera::~FreeCamera() {}
void FreeCamera::update() {
floa... |
/**
* A crude NTPv3 client implementation, inspired by <NAME>'s ntpclient
* https://github.com/lettier/ntpclient
* http://www.lettier.com
*
* Author: <NAME> <drozdziak1 at gmail>
*/
#include <arpa/inet.h>
#include <sys/socket.h>
#include <sys/types.h>
#include <netdb.h>
#include <unistd.h>
#include <cstring>
... |
//------------------------------------------------------------------------------
/*
This file is part of Beast: https://github.com/vinniefalco/Beast
Copyright 2013, <NAME> <<EMAIL>>
Portions of this file are from JUCE.
Copyright (c) 2013 - Raw Material Software Ltd.
Please visit http://www.juce.com... |
/*
*
* Game Development Build
* https://github.com/TheBenPerson/Game
*
* Copyright (C) 2016-2018 <NAME> <<EMAIL>>
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restrictio... |
#include <string>
#include <regex>
#include <vector>
#include <sstream>
#include <iostream>
#include "med/ScanParser.hpp"
#include "med/MedException.hpp"
#include "med/MedCommon.hpp"
#include "med/SubCommand.hpp"
#include "mem/StringUtil.hpp"
using namespace std;
string ScanParser::getOp(const string &v) {
string ... |
#include "odom_2_odomrel_alg_node.h"
Odom2OdomrelAlgNode::Odom2OdomrelAlgNode(void) :
algorithm_base::IriBaseAlgorithm<Odom2OdomrelAlgorithm>()
{
//init class attributes if necessary
//this->loop_rate_ = 2;//in [Hz]
last_pose_(0) = 0;
last_pose_(1) = 0;
last_pose_(2) = 0;
public_node_handle_.param<double>(... |
//
// Copyright 2012 <NAME> and <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 o... |
#include"Var.h"
#include"Num.h"
#include"Char.h"
#include"Str.h"
#include"GenIR.h"
#include"Error.h"
Var::Var(vector<int> scopepath,Var *val)
{
_clear();
this->literal = val->literal;
this->externed = val->externed;
this->type = val->type;
this->name = GenIR::genLb();
this->isPt... |
#include "Motor.h"
#include "Cubic.h"
#include <BasicLinearAlgebra.h>
// Values
#define s -0.00001 // Small neg value
#define mass 1.199 // Mass (kg)
#define l 0.119511505722 // Length of pendulum arm (m)
#define ix 0.004281 // Inertia x
#define iy 0.02183 // Inertia y
#define iz 0.02189 // Inertia z
#d... |
#include <iostream>
#include <cmath>
#include <cstdlib>
#include <vector>
#include <string>
#include <math.h>
using namespace std;
int primes();
int conversion();
void curve();
void rational();
int conversion(long double number) //This function converts decimals to integers
{
string stringDouble = to_string(num... |
/*
* Copyright (C) 2006-2013 Music Technology Group - Universitat Pompeu Fabra
*
* This file is part of Essentia
*
* Essentia is free software: you can redistribute it and/or modify it under
* the terms of the GNU Affero General Public License as published by the Free
* Software Foundation (FSF), either version... |
#include "Climber.h"
#include "Game.h"
enum ClimberAnims {
WALKING_LEFT, WALKING_RIGHT,
CLIMBING_LEFT, CLIMBING_RIGHT,
LEDGING_LEFT, LEDGING_RIGHT
};
Climber::Climber() : Job(Jobs::CLIMBER) {
state = CLIMBING_RIGHT_STATE;
}
void Climber::initAnims(ShaderProgram &shaderProgram) {
_jobSprite = Sp... |
/*
// Copyright (c) 2000-2009, Texas Engineering Experiment Station (TEES), a
// component of the Texas A&M University System.
// All rights reserved.
// The information and source code contained herein is the exclusive
// property of TEES and may not be disclosed, examined or reproduced
// in whole or in part withou... |
#include <iostream>
#include <fstream>
#include <sstream>
#include <algorithm>
#include <vector>
#include <array>
#include <map>
#include <cmath>
using namespace std;
typedef int64_t i64;
typedef int32_t i32;
typedef uint64_t u64;
typedef uint32_t u32;
typedef string st;
typedef stringstream ss;
typedef double db;
... |
/*
Author: Dr. Ing. <NAME>
Email: <EMAIL>
Description:
Determine optimized parameters using N measurements and an initial
Notes:
Array is used Instead of Vector because it support element operations.
include_directory (... include ${Eigen_INCLUDE_DIRS} ...)
*/
#include <eigen3/E... |
#include "CbApi.h"
static JavaVM * g_Vm = nullptr;
static JNIEnv * g_Env = nullptr;
bool cbapi_Initialize(const cbJava *java, cbHeadMountedDisplay *headMountedDisplay)
{
bool status = false;
g_Vm = java->Vm;
g_Env = java->Env;
jclass cls = g_Env->FindClass("org/cocos2dx/cpp/CbAPIWrapper");
do{
... |
#include <stdio.h>
#include <nt.h>
#include <ntrtl.h>
#include <nturtl.h>
#include <windows.h>
#include <shellapi.h>
#include <winldap.h>
#include <stdlib.h>
#include <dfslink.hxx>
#include <dfsroot.hxx>
#include <dfstarget.hxx>
#include "dfsutil.hxx"
#include "dfspathname.hxx"
#define INFO4(x, y) ... |
#include "BubbleGraph.hpp"
using namespace shasta;
#include <boost/graph/iteration_macros.hpp>
#include "fstream.hpp"
#include <numeric>
BubbleGraph::BubbleGraph(const AssemblyGraph& assemblyGraph)
{
addBubbles(assemblyGraph);
addEdges(assemblyGraph);
}
BubbleGraph::vertex_descriptor BubbleGraph::getVert... |
#include <manhattan_area.hpp>
#include <range/v3/core.hpp>
#include <range/v3/view/iota.hpp>
#include <algorithm>
#include <cassert>
#include <iterator>
#include <numeric>
#include <ostream>
#include <regex>
#include <string>
#include <unordered_map>
#include <unordered_set>
bool operator==(Coordinate const& lhs, Co... |
#include <janice.h>
#include <janice_io_opencv.h>
#include <janice_harness.h>
#include <iostream>
#include <fstream>
#include <fast-cpp-csv-parser/csv.h>
void print_usage()
{
printf("Usage: janice_cluster_media sdk_path temp_path data_path input_file output_file [-algorithm <algorithm>] [-threads <int>] [-gpu <i... |
#include <tis_driver/tis_driver.h>
//#include <ros/ros.h>
#include <opencv2/opencv.hpp>
#define FOURCC(A, B, C, D) ((A) | (B << 8) | (C << 16) | (D << 24))
ros::Publisher pub_image;
TisDriver::TisDriver()
{
pub_image = nh.advertise<sensor_msgs::Image>("/hanse/camera/front", 1000);
openDevices();
selectVi... |
/*****************************************************************************
** DARWIN: A FRAMEWORK FOR MACHINE LEARNING RESEARCH AND DEVELOPMENT
** Distributed under the terms of the BSD license (see the LICENSE file)
** Copyright (c) 2007-2017, <NAME>
** All rights reserved.
**
*************************************... |
#include <stdlib.h>
#include <assert.h>
#include <time.h>
#include <iostream>
#include <fstream>
#include <vector>
#include <set>
#include <boost/numeric/ublas/matrix.hpp>
#include "../Point.h"
#include "../ANN.h"
#include "../RMSUtils.h"
#include "../IOUtil.h"
using namespace std;
vector<Point> validDirs;
vector<do... |
/*
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 or agreed to in writing, so... |
//==============================================================================
// Kd-tree Partition
//
// @author: <NAME>
// @description: Program for printing out a set of (x,y) points in the order
// they are visited during an in-order traversal of the kd-tree
// @version: 0.0.1 19/11/2015
//====================... |
/*
* Copyright 2019 <NAME>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
#include <gtest/gtest.h>
#include "gtensor/gtensor.h"
#include "gtensor/complex.h"
#ifdef GTENSOR_HAVE_DEVICE
using space = gt::space::device;
#else
using space = gt::space::host;
#endif
template <typename E>
struct MemberTest
{
using type = E;
MemberTest(E&& e) : e_(e) {}
E e_;
};
template <typename E>
Me... |
#include <iostream>
#include <vector>
#include <string>
#include <fstream>
#include <sstream>
#include <cstdlib>
#include <cmath>
using namespace std;
class Observation {
private:
double *dimensions;
int length;
public:
Observation(int numberOfDimensions) {
this->length = numberOfDimensions;
this->dimens... |
#include "font.h"
#include "gfx/images/image2D.h"
void Font::init()
{
FT_Error result = FT_Init_FreeType(&free_type_library);
SK_ASSERT(!result, "FreeType: Couldn't initialize free type");
}
void Font::cleanup()
{
FT_Done_FreeType(free_type_library);
}
Font::Font(std::string_view file, uint32_t size)
: character... |
#include <map>
#include <vector>
#include <cstdio>
#include <numeric>
#include <iostream>
#include <algorithm>
const double EPS = 1e-7;
const double PI = 3.1415926535897932384626;
const long long INF = 1ll << 50;
const int MAXP = 40001;
const int MAXN = 1010001;
int n, g, p[MAXP], d[MAXN];
long long a, b;
bool visit... |
//=======================================================================
// Copyright 2001 <NAME>, <NAME>, <NAME>,
//
// This file is part of the Boost Graph Library
//
// You should have received a copy of the License Agreement for the
// Boost Graph Library along with the software; see the file LICENSE.
// I... |
/*******************************************************************************
* Copyright (c) 2021, <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 sourc... |
#include <iostream>
#include <cstdio>
#include <cstring>
#include <cassert>
#include <cctype>
#include <vector>
using namespace std;
typedef long long lint;
#define cout cerr
#define ni (next_num<int>())
template<class T>inline T next_num(){
T i=0;char c;
while(!isdigit(c=getchar())&&c!='-');
bool flag=c=='-';
flag... |
#include <iostream>
#include <sstream>
#include <armadillo>
#include <cpp-argparse/OptionParser.h>
#include <besiq/io/covariates.hpp>
#include <glm/irls.hpp>
#include <glm/models/normal.hpp>
#include <plink/plink_file.hpp>
#include "gene_environment.hpp"
using namespace arma;
using namespace optparse;
const std::... |
#pragma once
#include <algorithm>
inline void FloatEq(float val1, float val2) { EXPECT_FLOAT_EQ(val1, val2); }
inline void FloatEq(double val1, double val2) { EXPECT_DOUBLE_EQ(val1, val2); }
inline void FloatLe(float val1, float val2) {
EXPECT_PRED_FORMAT2(testing::FloatLE, val1, val2);
}
inline void FloatLe(dou... |
// Copyright (c) 2010-2011 Zipline Games, Inc. All Rights Reserved.
// http://getmoai.com
// based on zpipe.c Version 1.2 as provided to the public domain 9 November 2004 by <NAME>
#include "pch.h"
#include <stdio.h>
#include <string.h>
#include <assert.h>
#include <zlib.h>
#include <uslscore/USByteStream.h>
#includ... |
#include <fieldplotter/vectorfield.h>
#include <fieldplotter/chargesystem.h>
#include <fieldplotter/fieldlines.h>
#include <fieldplotter/scene.h>
#include <GLFW/glfw3.h>
#include <iostream>
using namespace std;
GLFWwindow* window;
Scene* renderer;
VectorField* debug_vectorfield;
bool lmbPressed = false;
bool altPres... |
/**************************************************************
*
* 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 y... |
#include <iostream>
#include <fstream>
#include "opencv2/video/tracking.hpp"
#include "opencv2/highgui/highgui.hpp"
using namespace cv;
using namespace std;
inline bool isFlowCorrect(Point2f u)
{
return !cvIsNaN(u.x) && !cvIsNaN(u.y) && fabs(u.x) < 1e9 && fabs(u.y) < 1e9;
}
static Vec3b computeColor(float fx, f... |
#include "types.h"
/*
* --INFO--
* Address: ........
* Size: 00009C
*/
void _Error(char*, ...)
{
// UNUSED FUNCTION
}
/*
* --INFO--
* Address: ........
* Size: 0000F4
*/
void _Print(char*, ...)
{
// UNUSED FUNCTION
}
/*
* --INFO--
* Address: 8011D95C
* Size: 000084
*/
NCamera::NCamera(Camera*)
{
/*
.... |
/*
*
* keychain_test_helper
* ledger-core
*
* Created by <NAME> on 16/05/2018.
*
* The MIT License (MIT)
*
* Copyright (c) 2018 Ledger
*
* 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 So... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.