text stringlengths 5.71k 33.7k |
|---|
#include "GuiWindow.hpp"
#include "imgui/imgui_impl_opengl3.h"
#include "imgui/Fonts.hpp"
#include <mutex>
// global variables
static std::mutex g_mutex;
static int g_count;
static GLFWcursor* g_MouseCursors[ImGuiMouseCursor_COUNT] = {};
// static functions
static void errorCallback(int error, const char* descript... |
// Copyright <NAME> 2011.
// Distributed under the Boost Software License, Version 1.0.
// (See copy at http://www.boost.org/LICENSE_1_0.txt)
#include "opengl.h"
#include "VFMeshRenderer.h"
#include <rmsdebug.h>
using namespace rms;
VFMeshRenderer::VFMeshRenderer( const VFTriangleMesh * pMesh, const Mesh... |
///////////////////////////////////////////////////////////////////////
// Author: <NAME>
//
// Library for Generic Sideband Subtraction Methods.
//
// This library is designed to be a tool which serves two purposes.
// Its primary purpose is to provide a generic framework for doing
// sideband subtraction. It will a... |
/*
* darknet_bridge.cpp : Darket cpp and python interfaces
*
* Copyright 2018 Valkka Security Ltd. and <NAME>.
*
* Authors: <NAME> <<EMAIL>>
*
* This file is part of Valkka cpp examples
*
* Valkka cpp examples is free software: you can redistribute it and/or modify
* it under the terms of the MIT License.... |
/*
BMP280_DEV is an I2C/SPI compatible library for the Bosch BMP280 barometer.
Copyright (C) <NAME> 2019
V1.0.0 -- Initial release
V1.0.1 -- Added ESP32 HSPI support and change library to unique name
V1.0.2 -- Modification to allow external creation of HSPI object on ESP32
V1.0.3 -- Changed library name in... |
#include "move.h"
#include <unistd.h>
#include <stdlib.h>
#include <assert.h>
#include "dungeon.h"
#include "heap.h"
#include "move.h"
#include "npc.h"
#include "pc.h"
#include "character.h"
#include "utils.h"
#include "path.h"
#include "event.h"
#include "io.h"
#include "npc.h"
#include "object.h"
void do_combat(du... |
#include "tradeogre.h"
#include <bits/stdint-uintn.h>
#include <algorithm>
#include <chrono>
#include <initializer_list>
#include <sstream>
#include <stdexcept>
#include <string>
#include <thread>
#include <utility>
#include <vector>
#include <imtjson/binary.h>
#include <imtjson/ivalue.h>
#include <imtjson/object.h>
... |
#include "ALConstraint.h"
#include "BrownianBody.h"
#include "H5Cpp.h"
#include "LBFGSBWrapper.h"
#include "Model.h"
#include "OPSMesh.h"
#include "ViscosityBody.h"
#include <stdio.h>
#include <string>
#include <vector>
#include <vtkPolyDataReader.h>
using namespace H5;
using namespace OPS;
#define ARR_SIZE 300
stru... |
// **********************************************************************
// @@@ 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 ownership.... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* License); you ma... |
/*
***************************************************************************************
MJM -2021-
---------------------------------------------------------------------------------------
=======================================================================================
Notes: <NONE>
... |
#include <tiramisu/tiramisu.h>
#include <tiramisu/utils.h>
#include "configure.h"
using namespace tiramisu;
Halide::Buffer<float> Hfilter(FOUT_BLOCKING, FIN_BLOCKING, K, K, FIN_NB_BLOCKS, FOUT_NB_BLOCKS);
void gen_random_dense_weights()
{
srand(1);
Halide::Buffer<float> Hinput(FIN_BLOCKING, N + 2, N + 2, FIN_NB_B... |
/*************************************************************************/
/* main_timer_sync.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
/*
* wrjpgcom.c
*
* Copyright (C) 1994-1995, <NAME>.
* This file is part of the Independent JPEG Group's software.
* For conditions of distribution and use, see the accompanying README file.
*
* This file contains a very simple stand-alone application that inserts
* user-supplied text as a COM (comment)... |
/*
* This file belongs to the Galois project, a C++ library for exploiting parallelism.
* The code is being released under the terms of the 3-Clause BSD License (a
* copy is located in LICENSE.txt at the top-level directory).
*
* Copyright (C) 2018, The University of Texas at Austin. All rights reserved.
* UNIVER... |
/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you ... |
/**
* math_induction.cpp
*
* Created on: Jul 21, 2016
* Author: asaparov
*/
#include "tree_semantics.h"
#include "tree_semantics_hdp.h"
#include "parser.h"
#include "hdp_grammar.h"
typedef hdp_grammar<rule_prior<dense_categorical<double>, sparse_categorical<sequence, double>>, tree_semantics> hdp_tree_gra... |
/*
* 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.
*/
#define DEBUG_TYPE "typeinference"
#include "hermes/Optimizer/Scalar/TypeInference.h"
#include "hermes/IR/Analysis.h"
#include "her... |
int T5Q5/*5v5*/ , jpn9,
Fz , Mc,
Zq3W,Lrngd ,
TU9z
//46Ib
,L
,s8Svec
,ug, CAU , //vC
UyG4 ,/*5fN*/I2bMg, Q
, A2,
S
, Pk, j38vsmN,
/**/lO/*n3a*/ ;
void f_f0
(){
return ;
{ /**/{{
int
XC1
;volatile int oI,/*3JI*/ q2
,
pw ,Ew5E ; XC1=/*l4p*/Ew5E/**/+
oI+ q2+
pw
; ; { return ;
}{{} }} ;} ... |
//
// Created by Ciaran on 5/17/2020.
//
#include "filesystem"
#include "iostream"
#include "raptor2.h"
#include "redland/LibrdfParser.h"
#include "redland/LibrdfWorld.h"
#include "gtest/gtest.h"
#include <fstream>
//#include "AnnotationSamples.h"
using namespace redland;
class LibrdfParserTests : public ::testing::T... |
#include "../include/BPlusTree.h"
BPlusTree::BPlusTree(string file_path)
:file_path(file_path)
{
db_fd = fopen(file_path.c_str(), "rb+");
if (db_fd == nullptr) {
db_fd = fopen(file_path.c_str(), "wb+");
fclose(db_fd);
}
if (swap_in(&header, OFFSIZE_OF_HEADER) == 0) {
LeafNod... |
/**
* %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
*
* Copyright (c) 2016 LIBSCAPI (http://crypto.biu.ac.il/SCAPI)
* This file is part of the SCAPI project.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* Permission is hereby granted, free of charge, to any p... |
// Copyright 2013-2016 Stanford University
//
// 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... |
/* USER CODE BEGIN Header */
/*------------------------------------------------------------------------------
* _____ ___ __ ________ ___ ____________
* / ___// | / / / ____/ |/ / / _/ _/ _/
* \__ \/ /| | / / / __/ / /|_/ / / / / / / /
* ___/ / ___ |/ /___/ /___/ / / / ... |
// **********************************************************************
// @@@ 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 ownership.... |
#include <leatherman/execution/execution.hpp>
#include <leatherman/file_util/directory.hpp>
#include <leatherman/util/scope_exit.hpp>
#include <leatherman/util/posix/scoped_descriptor.hpp>
#include <leatherman/logging/logging.hpp>
#include <leatherman/locale/locale.hpp>
#include <boost/algorithm/string.hpp>
#include <b... |
/* Copyright 2001, 2019 IBM Corporation
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the
* following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the
* following d... |
// Copyright 2016 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Command line tool to parse data. Data is read from stdin as string or
// protobuf and returned through stdout in string or protobuf format. The tool... |
/**
* SPDX-License-Identifier: GPL-2.0-or-later
*
* This file is part of osm2pgsql (https://osm2pgsql.org/).
*
* Copyright (C) 2006-2022 by the osm2pgsql developer community.
* For a full list of authors see the git log.
*/
#include <algorithm>
#include <array>
#include <cstring>
#include <stdexcept>
#include ... |
// -*- C++ -*-
// Copyright (C) 2004-2017 Free Software Foundation, Inc.
// This library 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, or (at
// your option) any later version.
// This... |
/* Copyright 2014-2017 Rsyn
*
* 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 "bitmap.h"
#include <stdexcept>
#include <algorithm>
#include <cstdlib>
#include <cstring>
#include <cassert>
#include <png.h>
#include <zlib.h>
#include "os.h"
#include "util.h"
#define ERROR_GENERIC "unknown read error"
static const char xyzMagicNumber[] = {'X', 'Y', 'Z', '1'};
static const char bmpMag... |
#include <ros/ros.h>
#include <image_transport/image_transport.h>
#include <cv_bridge/cv_bridge.h>
#include <sensor_msgs/image_encodings.h>
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>
// For spatial mapping utilities
#include "SpatialMapper.h"
// Msg types
#include <urVision/weedData... |
/**************************************************************************
* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
* *
* Author: The ALICE Off-line Project. *
* Contributors ... |
/*
*/
/* <copyright>
Copyright (c) 2006-2016 Intel Corporation. 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
... |
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2020-2021 Couchbase, 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
*
* ... |
#include <dpputils/audio/ytplayer.h>
#include <dpp/dpp.h>
#include <dpp/nlohmann/json.hpp>
#include <dpp/fmt/format.h>
#include <dpputils/api/songinfo.h>
using vc_map_t = std::unordered_map<uint64_t, dpp::discord_voice_client *>;
using id_map_t = std::unordered_map<uint64_t, uint64_t>;
struct botctx_t {
dpp::cluste... |
#include "Geometry.h"
#include <functional>
typedef bool(*CollisionDetector)(const Geometry& a_shape1, const Geometry& a_shape2,
Geometry::Collision* a_collision);
static bool Flip(CollisionDetector a_detector,
const Geometry& a_shape1, const Geometry& a_shape2,
Geometry::Collision* a_collision)
{
... |
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
#include "interpreter.hpp"
#include "nnfusion/engine/pass/codegen/cpu_codegen_pass.hpp"
#include "nnfusion/engine/pass/codegen/cuda_codegen_pass.hpp"
#include "nnfusion/engine/pass/codegen/rocm_codegen_pass.hpp"
#include "nnfusion/engine/pass/e... |
#include <chrono>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <fstream>
#include <functional>
#include <iostream>
#include <map>
#include <memory>
#include <thread>
#include "config/compiler_features.h"
#include <detail/libatbus_error.h>
#include "detail/libatbus_channel_export.h... |
/****************************************************************************
IMC.H
Owner: cslim
Copyright (c) 1997-1999 Microsoft Corporation
IME Context abstraction class
History:
21-JUL-1999 cslim Created
*****************************************************************... |
/**
* \file BifurcationPlot.cpp
* \brief Bifurcation Plot Class
*/
#include "BifurcationPlot.h"
// class constructor
BifurcationPlot::BifurcationPlot(wxWindow* parent, wxWindowID id, const wxPoint& pos,
const wxSize& size, long style, const wxString& name)
: ChaosPl... |
/*
* Copyright (c) 2013-2017, <NAME> <<EMAIL>>, Adafruit
* <<EMAIL>>
* All rights reserved.
*
* This is mostly a re-mix of <NAME>s excellent Free-DAP code - we just
* put both halves into one library and wrapped it up in Arduino compatibility
*
* Redistribution and use in source and binary forms, with or withou... |
#include "template_slot.h"
#include "gist.h"
#include <boost/lexical_cast.hpp>
#include <glog/logging.h>
/* constructor ( with random initialization ) */
/* TODO: potential inconsistency with the initial size for w_colors set to 0 */
TemplateSlot::TemplateSlot( const Gist& gist, unsigned int f , unsigned int t )
:... |
#include "ukf.h"
#include "Eigen/Dense"
#include <iostream>
using namespace std;
using Eigen::MatrixXd;
using Eigen::VectorXd;
using std::vector;
/**
* Initializes Unscented Kalman filter
* This is scaffolding, do not modify
*/
UKF::UKF() {
// if this is false, laser measurements will be ignored (except during i... |
#include <iostream>
#include <cstring>
#include <vector>
#include <fstream>
#include "cpu_6502.h"
/*
* see https://wiki.nesdev.com for details on nes hardware.
*/
/*
* HARDWARE
*/
/*
* THE NES has 0xFFFF (64 KiB) of memory.
*
* $0000-$07FF - 2KiB of internal RAM
* $0800-$0FFF -
* $1000-$17FF -
* $1800-$1F... |
//! \file richards.cc
#include "richards.h"
Richards::Richards (Grid grid, Settings stgin) :
OdeSsp3 (grid.get_n()+1),
stg (copy_settings(stgin)),
n (grid.get_n()),
dep (grid.get_dep()),
ze (grid.get_ze()),
zc (grid.get_zc()),
delz (grid.get_delz()),
delze (grid.get_delze(... |
/*******************************************************************************
* Copyright (C) 2020-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
******************************************************************************/
#include "peak.h"
#include <algorithm>
#include <utility>
#include <vector>
... |
#include <condition_variable>
#include <iostream>
#include <list>
#include <memory>
#include <mutex>
#include <string>
#include <thread>
// Define the macros to fit compile environment.
// 環境に合わせてマクロを定義する。
//#define WEBRTC_ANDROID 1
//#define WEBRTC_IOS 1
//#define WEBRTC_LINUX 1
//#define WEBRTC_MAC 1
//#define WEBR... |
#include "pch.h"
#include "compress_interface.h"
#include "../dependencies/compressonator/Compressonator/Header/Compressonator.h"
#include <thread>
#include <stdexcept>
#include "interface.h"
#include <algorithm>
struct ExFormatInfo
{
bool useDxt1Alpha = false;
bool isCompressed = true;
bool swizzleRG... |
#include "Common.h"
#include "QuadControl.h"
#include "Utility/SimpleConfig.h"
#include "Utility/StringUtils.h"
#include "Trajectory.h"
#include "BaseController.h"
#include "Math/Mat3x3F.h"
#ifdef __PX4_NUTTX
#include <systemlib/param/param.h>
#endif
void QuadControl::Init()
{
BaseController::Init(... |
//
// riscv-gen-latex.cc
//
#include <cstdio>
#include <sstream>
#include <functional>
#include <algorithm>
#include <memory>
#include <string>
#include <vector>
#include <deque>
#include <map>
#include <set>
#include "riscv-util.h"
#include "riscv-cmdline.h"
#include "riscv-model.h"
#include "riscv-gen.h"
std::vec... |
#include <stdlib.h>
#include <assert.h>
#include <fstream>
#include <sys/time.h>
#include <vector>
#include <queue>
#include <getopt.h>
#include <string.h>
#ifdef _OPENMP
#include <omp.h>
#endif
bool verbose, debug, random_start;
#include "graph.h"
#include "fast_ts_map.h"
#include "fast_ts_map.cpp"
void print_usa... |
/***************************************************************
/ framefixer
****************************************************************
/ Description:
/ Prepares high fps video for downsampling; framefixer searches
/ for duplicate frames in lower fps content and attempts to
/ adjust spacing of duplicate frames f... |
// src\Inventor\Win\nodes\Slider2.cpp. Generated from Slider2.cpp.in by configure.
/**************************************************************************\
* Copyright (c) <NAME> & Gas Technologies AS
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modificatio... |
//
// Created by <NAME> on 18/02/2020.
//
#include "ray_renderer.h"
#include <jni.h>
#include <time.h>
#include <math.h>
#include <chrono>
#include <string>
#include <GLES3/gl31.h>
#include <GLES3/gl3ext.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <iostream>
#include <android/asset_man... |
//===========================================================================
//Copyright (C) 2003, 2004 <NAME>
//
//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 ab... |
// license:BSD-3-Clause
// copyright-holders:<NAME>
/***************************************************************************
1943 Video Hardware
This board handles tile/tile and tile/sprite priority with a PROM. Its
working is hardcoded in the driver.
The PROM have address inputs wired as follows:
A0 bg (SCR) o... |
#include "Track.h"
// Frame Layers
Mat frame;
Mat mask;
Mat foreground;
Mat background;
Mat grey, prevgrey;
Mat flow, cflow, uflow;
// Result Layers
Mat still;
// Exposure Layers
Mat blend;
// Support Layers
Mat cropped;
Mat uncropped;
// Support Items
Rect crop(0,0,0,0);
Point P1(0,0);
Point P2(0,0);
bool clicked... |
/*
* Copyright 2019 Google LLC.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/gpu/tessellate/GrStencilPathShader.h"
#include "src/gpu/geometry/GrWangsFormula.h"
#include "src/gpu/glsl/GrGLSLGeometryProcessor.h"
#include "src/gpu/glsl/GrGL... |
#include "code_gen_ctx.h"
#include "context.h"
#include <cassert>
using namespace ccbhj;
void NumNode::gen_code(CodeGenContext &code_ctx, Context &) {
code_ctx.print_debug("-> Const " + std::to_string(value));
code_ctx.RM_ins("LDC", ac, this->value, 0, "load const");
code_ctx.print_debug("<- Const");
}
void ... |
/*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
#include <arpa/inet.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <netinet/udp.h>
#include <netinet/ip_icmp.h>
#include "cmn/agent_cmn.h"
#include "oper/interface.h"
#include "oper/nexthop.h"
#include "oper/inet4_ucroute.h"
#inclu... |
// Copyright 2017 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 <fuchsia/hardware/ethernet/c/fidl.h>
extern "C" {
#include <inet6/inet6.h>
}
#include <arpa/inet.h>
#include <fcntl.h>
#include <lib/fdio/direct... |
#include "settings/main_settings_widget.h"
#include "expanding_list/expanding_list_button.h"
#include "expanding_list/expanding_list_widget.h"
#include "gui_globals.h"
#include "gui_utils/sort.h"
#include "searchbar/searchbar.h"
#include "settings/checkbox_setting.h"
#include "settings/dropdown_setting.h"
#include "se... |
#include "BVHOptimizer.h"
#include "Config.h"
#include "Util/Util.h"
#include "Util/Random.h"
#include "Util/Array.h"
#include "Util/MinHeap.h"
#include "Util/ScopeTimer.h"
// Calculates the SAH cost of a whole tree
static float bvh_sah_cost(const BVH & bvh) {
float sum_leaf = 0.0f;
float sum_node = 0.0f;
for (i... |
/*
* WebSocketConn.cpp
*
* Created on: 2019-12-10
* Author: cloudtalk
*/
#include "EncDec.h"
#include "DBServConn.h"
#include "WebSocketConn.h"
#include "HttpParserWrapper.h"
#include "HttpQuery.h"
#include <unistd.h>
#include <stdlib.h>
#include <inttypes.h>
#include "../base/Base64.h"
#include "IM.Server.pb.h"... |
/*
* 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 <cameraCalibration.h>
using namespace std;
static void read(const FileNode& node, Settings& x, const Settings& default_value = Settings())
{
if (node.empty())
x = default_value;
else
x.read(node);
}
CameraCalibration::CameraCalibration() {}
void CameraCalibration::start()
{
help();
Settings s;
co... |
/*!
* \file io.cpp
* \brief Set of utility io functions for rtns
* \author <NAME>, <NAME>, <NAME>, <NAME>, <NAME>
*/
#include "common/io.hpp"
#include "common/config.hpp"
#include "common/mesh.hpp"
#include "common/typedef.hpp"
#include "toolboxes/errormessages.hpp"
#include "toolboxes/textprocessingtoolbox.hpp"... |
#include <iomanip>
#include <array>
#include "acmacs-base/debug.hh"
#include "acmacs-base/counter.hh"
#include "seqdb/insertions_deletions.hh"
#include "seqdb/amino-acids.hh"
using namespace seqdb;
// ----------------------------------------------------------------------
class AAsPerPosEntry : public std::string
{
... |
#include <core/types.h>
#include <core/maths.h>
#include <core/platform.h>
#include <core/hashgrid.h>
#include <core/shader.h>
#include <core/tga.h>
#include "solve.h"
#include <iostream>
using namespace std;
const uint32_t kWidth = 800;
const uint32_t kHeight = 600;
const float kWorldSize = 2.0f;
const float kZoom... |
#include "lib.h"
bool is_str(uint16 tag_id, OBJ obj) {
if (tag_id != symb_id_string)
return false;
if (is_empty_seq(obj))
return true;
OBJ_TYPE type = get_obj_type(obj);
if (type == TYPE_NE_SEQ_UINT8_INLINE | type == TYPE_NE_SEQ_INT16_INLINE)
return true;
if (type != TYPE_NE_INT_SEQ)
ret... |
// Copyright (C) 2013-2014 <NAME> Inc.
// Distributed under the Myo SDK license agreement. See LICENSE.txt for details.
#define _USE_MATH_DEFINES
#include <cmath>
#include <iostream>
#include <stdio.h>
#include <iomanip>
#include <stdexcept>
#include <string>
#include <algorithm>
// The only file that needs to be incl... |
// Copyright (c) 2007-2009 Google Inc.
// Copyright (c) 2006-2007 Jaiku Ltd.
// Copyright (c) 2002-2006 <NAME> and <NAME>
//
// This software is licensed at your choice under either 1 or 2 below.
//
// 1. MIT License
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software ... |
/////////////////////////////////////////////////
// Includes
#include "sqldm.h"
////////////////////////////////////////////////
// Lexical-Chars
void TSqlDmChDef::SetUcCh(const TStr& Str){
for (int CC=1; CC<Str.Len(); CC++){
uchar Ch=Str[CC];
UcChV[Ch]=Str[0];
}
}
void TSqlDmChDef::SetChTy(const TSqlDmC... |
/*
Compute the axis aligned bounding box that fits around the
vertices within a ply file.
<NAME>
June 1995
<NAME>, December 2000
Generalized to multiple input files.
*/
#include <ply.h>
#include <stdlib.h>
#include <strings.h>
#include <math.h>
#include <limits.h>
#include <stdio.h>
#include <float.h>... |
/*
* 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.
* A copy of the License is located at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* or in the "license" file accompanying this f... |
#include <glad/glad.h>
#include <GLFW/glfw3.h>
#include <cmath>
#include <Texture.h>
#include <glm/glm.hpp>
#include <glm/gtc/matrix_transform.hpp>
#include <glm/gtc/type_ptr.hpp>
#include <Camera.h>
#include <Shader.h>
float screenWidth = 1200;
float screenHeight = 800;
bool shadows = true;
bool shadowsKeyPressed = f... |
#include "TReturn.h"
#include "LFSCUtilProof.h"
#include "LFSCLraProof.h"
#include "LFSCBoolProof.h"
#include "LFSCPrinter.h"
TReturn::TReturn(LFSCProof* lfsc_pf, std::vector<int>& L, std::vector<int>& Lused, Rational r, bool hasR, int pvY):
d_lfsc_pf(lfsc_pf), d_c( r ), d_provesY(pvY){
d_hasRt = ha... |
#include <gtest/gtest.h>
#include "tatami/base/Matrix.hpp"
#include "tatami/base/DelayedBind.hpp"
#include "tatami/utils/convert_to_dense.hpp"
#include "tatami/utils/convert_to_sparse.hpp"
#include "scran/differential_analysis/ScoreMarkers.hpp"
#include "../data/data.h"
#include "../utils/compare_almost_equal.h"
cla... |
// ROS and related stuff:
#include <ros/ros.h>
#include <sensor_msgs/image_encodings.h>
#include <geometry_msgs/Pose2D.h>
#include <geometry_msgs/Twist.h>
// for subscribing to compressed image topics:
#include <image_transport/image_transport.h>
#include "compressed_image_transport/compressed_subscriber.h"
#include "... |
/******************************************************************************
** Copyright (C) 1999 by CEA
*******************************************************************************
**
** UNIT
**
** Version: 1.0
**
** Author: <NAME>
**
** Date: 10/02/00
**
** File: dct.cc
*... |
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <getopt.h>
#include <poll.h>
#include <signal.h>
#include <unistd.h>
#include <algorithm>
#include <iostream>
#include <memory>
#include <string... |
/*
* MIDIBUS_Tangle.cpp
*
* Created: 26/06/2021 19:38:07
* Author : GuavTek
*/
#include "samd21g15b.h"
#include <asf.h>
#include "MIDI_Config.h"
#include "MCP2517.h"
#include "MIDI_Driver.h"
#include "rww_eeprom.h"
MCP2517_C CAN(SERCOM1);
MIDI_C MIDI(2);
struct Settings_t {
union{
uint32_t word;
struct{... |
#include "json_model_helpers.h"
#include "formula_evaluator.h"
#include <catboost/libs/algo/full_model_saver.h>
#include <catboost/libs/helpers/dense_hash_view.h>
#include <catboost/libs/model/flatbuffers/model.fbs.h>
#include <library/json/json_writer.h>
#include <util/string/builder.h>
#include <util/string/cast.h>... |
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/omnibox/browser/on_device_head_model.h"
#include <algorithm>
#include <cstring>
#include <fstream>
#include <list>
#include <memory>... |
/*
* Copyright 2021 Google LLC.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/gpu/tessellate/GrStrokeFixedCountTessellator.h"
#include "src/core/SkGeometry.h"
#include "src/gpu/geometry/GrPathUtils.h"
#include "src/gpu/tessellate/GrStroke... |
/*
Copyright (c) 2019-2020 <NAME>, <NAME>, <NAME>, <NAME>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of condition... |
/** @file SourceFinder.cxx
@brief implementation of SourceFinder
$Header: /nfs/slac/g/glast/ground/cvs/ScienceTools-scons/pointlike/src/SourceFinder.cxx,v 1.49 2008/10/20 02:58:32 burnett Exp $
*/
#include "pointlike/SourceFinder.h"
#include "pointlike/PointSourceLikelihood.h"
#include "healpix/HealPixel.h"
#include ... |
#include "RemeshBottomTool.h"
#include <float.h>
#include <map>
#include <Eigen/Geometry>
#include <algorithm/CoordinateTool.h>
#include "Delaunator.h"
using Eigen::Vector3d;
using Eigen::Matrix4d;
using SurfaceMesh::SurfaceMeshModel;
using SurfaceMesh::Point;
using SurfaceMesh::Vertex;
using std::vector;
using st... |
template<class DefaultStructs> template <typename Graph, typename ColorMap>
int EquitVertColoringPar<DefaultStructs>::
repair1(const Graph &graph, ColorMap &colors)
{
typedef typename Graph::PVertex Vert;
typedef typename Graph::PEdge Edge;
const EdgeDirection Mask = EdDirIn | EdDirOut | EdUndir;
const int VertNo ... |
/*
* Copyright 2019 Google LLC.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/gpu/tessellate/GrTessellatePathOp.h"
#include "src/gpu/GrEagerVertexAllocator.h"
#include "src/gpu/GrGpu.h"
#include "src/gpu/GrOpFlushState.h"
#include "src/gp... |
/*
-- MAGMA (version 2.5.4) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date October 2020
@author <NAME>
@author <NAME>
*/
// includes, system
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#includ... |
#include <string.h>
#include <sys/time.h>
#include <sys/stat.h>
#include <linux/input.h>
#include <linux/joystick.h>
#include <dirent.h>
#include <fcntl.h>
#include <unistd.h>
#include <pwd.h>
#include <pthread.h>
#include <pulse/pulseaudio.h>
#include <pulse/simple.h>
#include "game.h"
#define WND_TITLE "OpenL... |
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#include "InitClassLoweringPass.h"
#include "CFGMutation.h"
#include "ConfigFiles.h"
#include "ControlFlow.h"
#include "InitClas... |
/*
* Copyright (c) 2011-2021, The DART development contributors
* All rights reserved.
*
* The list of contributors can be found at:
* https://github.com/dartsim/dart/blob/master/LICENSE
*
* This file is provided under the following "BSD-style" License:
* Redistribution and use in source and binary forms, w... |
#include "Isis.h"
#include <QFile>
#include <QString>
#include <QStringList>
#include <QTextStream>
#include "FileName.h"
#include "IException.h"
#include "iTime.h"
#include "LineManager.h"
#include "OriginalLabel.h"
#include "Pipeline.h"
#include "ProcessImportPds.h"
#include "Progress.h"
#include "Pvl.h"
#include "... |
//-------------------------------------------------------------------------------------------------
// File : SpriteSystem.cpp
// Desc : Sprite Module.
// Copyright(c) Project Asura. All right reserved.
//-------------------------------------------------------------------------------------------------
//-------------... |
#include <smol/smol_platform.h>
#include <smol/smol_assetmanager.h>
#include <smol/smol_renderer.h>
#include <smol/smol_mesh_data.h>
#define SMOL_GL_DEFINE_EXTERN
#include <smol/smol_gl.h>
#undef SMOL_GL_DEFINE_EXTERN
#define INVALID_HANDLE(T) (Handle<T>{ (int) 0xFFFFFFFF, (int) 0xFFFFFFFF})
#define warnInvalidHandle... |
#include "pairwise_scoring.h"
#include "pairwise_leaves_calculation.h"
#include "short_vector_ops.h"
#include <util/generic/xrange.h>
#include <util/system/yassert.h>
using namespace NCB;
void TPairwiseStats::Add(const TPairwiseStats& rhs) {
Y_ASSERT(SplitEnsembleSpec == rhs.SplitEnsembleSpec);
Y_ASSERT(D... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.