text
stringlengths
3.08k
22k
/* * This file is part of SRS project. * * SRS 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. * * SRS is distribut...
#include <iostream> #include <string> #include "utils.hpp" //is_file_exist /* the sample code to create a convolution and do calculation */ #include "tengine/c_api.h" static inline unsigned long get_cur_time(void) { struct timespec tm; clock_gettime(CLOCK_MONOTONIC, &tm); return (tm.tv_sec * 1000000 + t...
/* eleeye.cpp - Source Code for ElephantEye, Part IX ElephantEye - a Chinese Chess Program (UCCI Engine) Designed by <NAME>, Version: 3.3, Last Modified: Mar. 2012 Copyright (C) 2004-2012 www.xqbase.com This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser G...
#include <cstdint> #include <thread> #include <list> #include <iomanip> #include <iostream> #include <fstream> #include <cryptopp/oids.h> #include <boost/tokenizer.hpp> #include "../network/P2PConnection.h" #include "../network/SecuredNetworkManager.h" #include "../network/MessageHandler.h" #include "../dc/DCNetwork.h...
#include <allegro.h> #include <cstdlib> #include <ctime> #include <sstream> #define largura 1020 #define altura 600 #define limite_corpo 200 #define cima 0 #define baixo 1 #define esquerda 2 #define direita 3 BITMAP *buffer; // Guarda todo o gráfico // Carrega as imagens BITMAP *logo; BITMAP *cabeca...
#include "v8_uwsgi.h" struct uwsgi_v8 uv8; extern struct uwsgi_server uwsgi; extern struct uwsgi_plugin v8_plugin; struct uwsgi_option uwsgi_v8_options[] = { {(char *)"v8-load", required_argument, 0, (char *)"load a javascript file", uwsgi_opt_add_string_list, &uv8.load, 0}, {(char *)"v8-preemptive",...
#define CL_HPP_ENABLE_EXCEPTIONS #define CL_HPP_TARGET_OPENCL_VERSION 200 //#define CL_HPP_ENABLE_PROGRAM_CONSTRUCTION_FROM_ARRAY_COMPATIBILITY //#define CL_HPP_CL_1_2_DEFAULT_BUILD #include <CL/cl2.hpp> #include <iostream> #include <vector> #include <memory> #include <algorithm> const int numElements = 32; int main...
//=- ClangDiagnosticsEmitter.cpp - Generate Clang diagnostics tables -*- C++ -*- // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
#include "JsonImportPrivatePCH.h" #include "JsonImporter.h" #include "JsonObjects.h" #include "UnrealUtilities.h" #include "Engine/SkeletalMesh.h" #include "builders/LightBuilder.h" #include "builders/ReflectionProbeBuilder.h" #include "builders/TerrainComponentBuilder.h" #include "builders/SkeletalMeshComponentBuil...
#include "token.h" #include "mem_pool.h" #include "parser.h" static MemPoolImp<Token> TokenPool; const std::unordered_map<Symbol, int> Token::kwTypeMap_ { { "auto", Token::AUTO }, { "break", Token::BREAK }, { "case", Token::CASE }, { "char", Token::CHAR }, { "const", Token::CONST }, { "continue", Token:...
// The only header needed. #include <futoin/iasyncsteps.hpp> // Just for examples #include <list> #include <vector> extern void do_some_non_blocking_stuff(); extern void this_code_is_not_executed(); extern void this_code_IS_executed(); extern futoin::ISync& get_some_synchronization_object(); extern int schedule_exte...
#include "skadi/sample.h" #include "pixels.h" #include "baldr/compression_utils.h" #include "midgard/sequence.h" #include "midgard/util.h" #include <cmath> #include <fstream> #include <list> #include "test.h" using namespace valhalla; namespace { TEST(Sample, no_data) { // check the no data value skadi::sampl...
/*********************************************************************** * Copyright 1998-2020 CERN for the benefit of the EvtGen authors * * * * This file is part of EvtGen. * * ...
// Copyright (c) 2006-2010 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 "net/disk_cache/mem_backend_impl.h" #include "base/logging.h" #include "base/sys_info.h" #include "net/base/net_errors.h" #include "net...
#include <iostream> #include <cassert> #include <set> #include "cxxopts.hpp" #include "roaring.hh" #include "osmium/handler.hpp" #include "osmium/io/any_input.hpp" #include "osmium/visitor.hpp" #include "osmium/util/progress_bar.hpp" #include "s2/s2latlng.h" #include "s2/s2cell_union.h" #include "osmx/storage.h" using...
/* Copyright 1989, 1990, 1995, 1996 by Abacus Research and * Development, Inc. All rights reserved. */ /* Forward declarations in TimeMgr.h (DO NOT DELETE THIS LINE) */ #include <base/common.h> #include <OSUtil.h> #include <TimeMgr.h> #include <rsys/osutil.h> #include <time/vbl.h> #include <time/time.h> #include...
/* Copyright (c) 2005-2017 Intel Corporation Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by appl...
#include <common/nodes/TargetCapacityPools.h> #include <common/system/System.h> #include <common/toolkit/StringTk.h> #include <common/toolkit/UnitTk.h> #include "Config.h" #define CONFIG_DEFAULT_CFGFILENAME "/etc/congfs/congfs-meta.conf" #define TARGETCHOOSERTYPE_RANDOMIZED_STR "randomized" #define TARGETCHOOS...
// // ncr5380.cpp // Clock Signal // // Created by <NAME> on 10/08/2019. // Copyright © 2019 <NAME>. All rights reserved. // #include "ncr5380.hpp" #include "../../Outputs/Log.hpp" using namespace NCR::NCR5380; using SCSI::Line; NCR5380::NCR5380(SCSI::Bus &bus, int clock_rate) : bus_(bus), clock_rate_(clock_r...
// multiplication.cpp: functional tests for blocktriple number multiplication // // Copyright (C) 2017-2021 Stillwater Supercomputing, Inc. // // This file is part of the universal numbers project, which is released under an MIT Open Source license. #include <universal/utility/directives.hpp> #include <universal/utilit...
/* UTouch.cpp - Arduino/chipKit library support for Color TFT LCD Touch screens Copyright (C)2010-2014 <NAME>. All right reserved Basic functionality of this library are based on the demo-code provided by ITead studio. You can find the latest version of the library at http://www.henningkarlsen.com/electro...
////////////////////////////////////////////////////////////////////////////// // // Copyright (c) 2004-2019 musikcube 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: // // * Redist...
/* # ______ ____ ___ # | \/ ____| |___| # | | | \ | | #----------------------------------------------------------------------- # Copyright 2020, tyra - https://github.com/h4570/tyra # Licenced under Apache License 2.0 # <NAME> <<EMAIL>> */ #include "../include/modules/pad.hpp" ...
#include "Halide.h" #include <stdio.h> #include <math.h> using std::vector; using namespace Halide; using namespace Halide::Internal; class CountInterleaves : public IRVisitor { public: int result; CountInterleaves() : result(0) {} using IRVisitor::visit; void visit(const Call *op) { if (op-...
/* -*- coding: utf-8-unix -*- * * File: dbupdater/src/updater.cpp * * Copyright (C) 2021 <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 3 of the License, or * (...
// Copyright 2018 Google LLC // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in...
/******************************************************************************* * File: Byte_buffer.cpp * Description: Implementation of a Byte buffer * * Author: <NAME> * Created: Thursday 1 December 2016 * * *******************************************************************************/ /***...
#include "global.h" #include <cstdlib> #include "ScreenHowToPlay.h" #include "ThemeManager.h" #include "GameState.h" #include "Game.h" #include "RageLog.h" #include "RageDisplay.h" #include "SongManager.h" #include "NoteFieldPositioning.h" #include "GameManager.h" #include "NotesLoaderSM.h" #include "GameSoundManager.h...
//===- FIRRTLAnnotations.cpp - Code for working with Annotations ----------===// // // 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 // //===---------------------------...
/** \file TestPerpTangentPoints.cpp * \brief */ /****************************************************************************/ /* TestPerpTangentPoints.cpp */ /****************************************************************************/ /* ...
/** @file cons_block.cpp @date 2019/06/03 @author FINL Chain Team @version @brief */ #include "global.h" // // GEN_BLOCK_DATA_SIZE = bn + p2p_addr + Block Generation Time + Previous Block Hash + TX count + TXs(tx1_dbkey | tx2_dbkey | ... + tx1_hash | tx2_hash | ... ) #define GEN_BLO...
/*! \file SiPixelTemplateDBObject_PayloadInspector \Payload Inspector Plugin for SiPixelTemplateDBObject \author <NAME> \version $Revision: 1.0 $ \date $Date: 2020/04/16 18:00:00 $ */ #include "FWCore/MessageLogger/interface/MessageLogger.h" #include "CondCore/Utilities/interface/PayloadInspectorModule.h" #...
#include "OffsetsToml.h" std::map<std::string, uintptr_t> OffsetsToml::Fetch(std::string& filename) { auto saveData = toml::parse(filename); dwClientState = toml::find_or(saveData, "dwClientState", dwClientState); dwEntityList = toml::find_or(saveData, "dwEntityList", dwEntityList); dwLocalPlayer = tom...
// // OCCAM // // Copyright (c) 2011-2018, SRI International // // 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, ...
/*************************************************************************** * * Copyright (C) 2019 Codeplay Software Limited * 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 * * ...
/***************************************************************************** * Face Recognition using Eigenfaces or Fisherfaces ****************************************************************************** * by <NAME>, 8th Dec 2016 * http://www.shervinemami.info/openCV.html ************************************...
/* -------------------------------------------------------------------------- * * Simbody(tm) * * -------------------------------------------------------------------------- * * This is part of the SimTK biosimulation toolkit originating from * ...
#include <cmath> #include <cstdio> #include <algorithm> #define MAXN 1010 using namespace std; //double can be replaced by long double or int/long long //Also,the eps can be changed if the problem needs. const double eps = 1e-7; struct point { double x, y; point() {} point(double _x, double _y): x(_x), y(_y) {}...
// Copyright 2008 Isis Innovation Limited #include "CalibCornerPatch.h" #include "OpenGL.h" #include <TooN/helpers.h> #include <cvd/vector_image_ref.h> #include <cvd/vision.h> #include <cvd/utility.h> #include <cvd/convolution.h> #include <cvd/image_interpolate.h> #include <TooN/Cholesky.h> #include "SmallMatrixOpts.h"...
/* * This file is part of the bitcoin-classic project * Copyright (C) 2017 <NAME> <<EMAIL>> * * 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 3 of the License, or * (at you...
// Copyright (c) 2013 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 "base/debug/trace_event.h" #include "base/logging.h" #include "skia/ext/analysis_canvas.h" #include "third_party/skia/include/core/SkDevice.h...
// // _____ _ _ __ _____ // | |_|___|_| | | | __ | // | | | | | | | | |__| __ -| // |_|_|_|_|_|_|_| |_____|_____| // // MIT License // // Copyright (c) 2021 <NAME>, <NAME>, <NAME> // <NAME> <<EMAIL>> - INRAE, University of Montpel...
#include "common.h" #include "helpers/ImageData.h" #include <glm/glm.hpp> #include <set> ImageFormatDescriptor GetImageFormatDescriptor( const ImageFormat& eFormat ) { const ImageFormatDescriptor desc[] = { //size_t m_sBlockSize; //glm::ivec3 m_BlockDimensions; //bool m_bIsCompressed; //size_t m_sNumbe...
#include "MouseManagerLTE.hpp" #include "../Globals/GUIToolkitNFGlobals.hpp" #include "../Globals/GlobalFunctions.hpp" #include <libndls.h> MouseManager::MouseManager() { } MouseManager& MouseManager::Get( void ) { static MouseManager m_mouse; return m_mouse; } unsigned int Mo...
#include "wikipedia_neighbor_set_impl.h" #include "benchmark.h" #include <algorithm> #include <vector> #include <fstream> #include <iostream> #include <valgrind/callgrind.h> #include <assert.h> using namespace std; //static bool compare_distances(relationship_t& first, relationship_t& second); static inline void add_...
#include <stdio.h> #include <errno.h> #include "Object.h" #include "Field.h" #include "Method.h" #include "Class.h" #include "ClassRegistry.h" #include "Reflectable.h" #include "../components/CLIParser/IParser.h" #include "example.h" #include "ParseStruct.h" #include <iostream> #include <signal.h> #include <condi...
// nnet3/nnet-component-test.cc // Copyright 2015 Johns Hopkins University (author: <NAME>) // See ../../COPYING for clarification regarding multiple authors // // 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 c...
//***************************************************************************** // Copyright 2017-2020 Intel Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://w...
#include <bits/stdc++.h> using namespace std; #define optimize() ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0); #define endl '\n' typedef long long ll; typedef vector<int> vi; typedef vector<ll> vl; typedef pair<int,int> pii; typedef pair<ll,ll> pll; typedef vector<pii> vii; typedef vector<pll> vll; typedef long ...
#include <vlog/filterer.h> #include <vlog/fctable.h> #include <vlog/joinprocessor.h> #include <vlog/concepts.h> #include <trident/model/table.h> // Note: When running multithreaded, mutex != NULL. FCTable::FCTable(std::mutex *mutex, const uint8_t sizeRow) : sizeRow(sizeRow), mutex(mutex) { } std::string FCT...
#include<Rcpp.h> #include"misc.h" using namespace std; using namespace Rcpp; /* rm extract; gcc -O4 extract.c -o extract; ./extract craigslist-apa-data-bc-html-othermeta.csv note: should delete the html and otherAttributes folders before (re)running the program can use append mode for writing files, to catch records ...
/*Header-MicMac-eLiSe-25/06/2007 MicMac : Multi Image Correspondances par Methodes Automatiques de Correlation eLiSe : ELements of an Image Software Environnement www.micmac.ign.fr Copyright : Institut Geographique National Author : <NAME> Contributors : <NAME>, <NAME>. [1] <NAME>, <NAME>....
#include <cstddef> #include <cstdint> #include <iomanip> #include <iostream> #include <random> #include <string> #include <vector> #include "tuner_api.h" #if defined(_MSC_VER) #define KTT_KERNEL_FILE "../examples/cltune-conv/conv.cl" #define KTT_REFERENCE_KERNEL_FILE "../examples/cltune-conv/conv_reference.cl"...
#include <vector> #include <string> #include "../etana/proof.h" #include "util.h" //Printer PP; CFSWString SylVowel(CFSClassArray<TPhone> A) { for (INTPTR i = 0; i < A.GetSize(); i++) { if (is_vowel(A[i].Phone) || A[i].Phone.FindOneOf(L"xycq") > -1 ) return A[i].Phone; } return L"a"; } CFSWString gpos(CF...
//===- Verifier.cpp - MLIR Verifier Implementation ------------------------===// // // Copyright 2019 The MLIR Authors. // // 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....
// Copyright 2017 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 <algorithm> #include "tools/traffic_annotation/auditor/auditor_result.h" #include "base/notreached.h" #include "base/strings/stringprintf.h" c...
/* This is a simple atcp-echo server using mbed-os */ #include "bootloader.h" #include "mbed.h" #if defined TARGET_STM32F407 #define POST_APPLICATION_ADDR 0x08040000 //Gives 128KB for bootloader #elif defined TARGET_MCU_K64F #define POST_APPLICATION_ADDR 0x00020000 //Gives 128KB for bootloader #eli...
// // Copyright (c) 2014 Juniper Networks, Inc. All rights reserved. // #include "testing/gunit.h" #include <boost/system/error_code.hpp> #include "base/connection_info.h" #include "io/event_manager.h" using process::ConnectionStateManager; using process::ConnectionState; using process::ConnectionInfo; using process...
// Author(s): <NAME> // Copyright: see the accompanying file COPYING or copy at // https://github.com/mCRL2org/mCRL2/blob/master/COPYING // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // /// \file pbes2bes.cp...
/* * Copyright (c) 2019 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
#include "Planning/RobotCSpace.h" #include <KrisLibrary/planning/AnyMotionPlanner.h> #include "IO/XmlWorld.h" #include "Modeling/MultiPath.h" #include <KrisLibrary/utils/ioutils.h> #include <KrisLibrary/utils/stringutils.h> #include <string.h> #include <time.h> #include <fstream> //includes for dynamic path checking #...
#include "foobar2000.h" void stream_writer_chunk::write(const void * p_buffer,t_size p_bytes,abort_callback & p_abort) { t_size remaining = p_bytes, written = 0; while(remaining > 0) { t_size delta = sizeof(m_buffer) - m_buffer_state; if (delta > remaining) delta = remaining; memcpy(m_buffer,(const t_uint8*)p_...
#include "onvif.h" #include "onvifDiscovery.h" #include "uuid.h" #include <string.h> #include <unistd.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <pthread.h> //#include "CRsUtility.h" #ifndef _WIN32 #include <sys/socket.h> #include <sys/types.h> #include <arpa/inet.h> #include <netinet/in.h> ...
/* * librdkafka - Apache Kafka C library * * Copyright (c) 2016, <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 copyrig...
template <class Node> void rubbish::helper::rbtree_left_rotate(Node *&root, Node *&ptr) { auto right = ptr->right; ptr->right = right->left; if (ptr->right != nullptr) ptr->right->parent = ptr; right->parent = ptr->parent; if (ptr->parent == nullptr) root = right; else if (ptr...
/* Copyright (c) 2010 University of Illinois All rights reserved. Developed by: DeNovo group, Graph<EMAIL> University of Illinois http://denovo.cs.illinois.edu http://graphics.cs.illinois.edu Permission is hereby gr...
/* SynthFileReader.cpp Copyright (c) 2002 OpenBeOS. Author: <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, m...
#include <iostream> #include "read_pbf.h" #include "pbf_blocks.h" #include <boost/interprocess/streams/bufferstream.hpp> #include <boost/asio/thread_pool.hpp> #include <boost/asio/post.hpp> #include "osm_lua_processing.h" using namespace std; PbfReader::PbfReader(OSMStore &osmStore) : osmStore(osmStore) { } bool ...
// NOLINT(legal/copyright) /****************************************************************************** __doc__ = """ sensor input and pre-conditioning """ libraries used: ~ Adafruit_Sensor ~ Adafruit_TSL2591 written by Adafruit ~ slight_ButtonInput ~ sl...
///////////////////////////////////////////////////////////////////////////////////////////// // Copyright (c) 2021 <NAME>. // // Email: <EMAIL> // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ///////////////////...
/* Author: <NAME>, <NAME> */ #include <robowflex_library/trajectory.h> #include <moveit/trajectory_processing/iterative_time_parameterization.h> #include <robowflex_library/constants.h> #include <robowflex_library/io.h> #include <robowflex_library/io/yaml.h> #include <robowflex_library/log.h> #include <robowflex_lib...
/* * Copyright (c) 2018, The Regents of the University of California (Regents). * 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 a...
/* * Copyright (c) 2001-2008 * DecisionSoft Limited. All rights reserved. * Copyright (c) 2004-2008 * Oracle. 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...
#include <iostream> #include <cmath> #include <utility> #include "opencv2/highgui/highgui.hpp" #include "opencv2/imgproc/imgproc.hpp" #define DEG2RAD 0.017459323f using namespace std; using namespace cv; int houghTransform(unsigned char *image, int r, int c); const unsigned int *getAccu(int *, int *); std::vector< ...
#include "tstencilcontrol.h" #include "tgl.h" #include "tthreadmessage.h" #include <stack> #include <QThreadStorage> //----------------------------------------------------------------------------------------- namespace { // singleton class StencilControlManager { QThreadStorage<TStencilControl *> m_storage; ...
#include "arPrecompiled.h" #include "arEnumeratedTrialGenerator.h" #include "arTemplateDictionary.h" #include "arStructuredData.h" #include "arStructuredDataParser.h" #include "arFileTextStream.h" #include "arDataUtilities.h" #include "arExperimentUtilities.h" #include "arExperimentXMLStream.h" #if (defined(__GNUC__)&&...
/* * Copyright (C) 2010-2013 Groupement d'Intérêt Public pour l'Education Numérique en Afrique (GIP ENA) * * This file is part of Open-Sankoré. * * Open-Sankoré 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 Found...
/** * atax.c: This file is part of the PolyBench/GPU 1.0 test suite. * * * Contact: <NAME> <<EMAIL>> * <NAME> <<EMAIL>> * Web address: http://www.cse.ohio-state.edu/~pouchet/software/polybench/GPU */ #include <cassert> #include <stdio.h> #include <stdlib.h> #include <time.h> #include <sys/time.h> #include <math...
/*This source code copyrighted by <NAME> (2004-2015) and may not be redistributed without written permission.*/ //Using SDL, SDL_image, standard IO, vectors, and strings #include <SDL.h> #include <SDL_image.h> #include <stdio.h> #include <string> //Screen dimension constants const int SCREEN_WIDTH = 480; const int SC...
/* * Copyright (c) 2019 Opticks Team. All Rights Reserved. * * This file is part of Opticks * (see https://bitbucket.org/simoncblyth/opticks). * * 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 ...
#include <algorithm> #include <fstream> #include <iostream> #include <string> #include "Ngram.hh" #include "str.hh" using namespace std; int Ngram::score(int node_idx, int word, double &score) const { while (true) { int tmp = find_node(node_idx, word); if (tmp != -1) { node_idx = tmp...
//***************************************************************************** // Copyright 2017-2020 Intel Corporation // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://w...
/* * Poisson.cpp * * Created on: 07.06.2017 * Author: mona */ #include <iostream> #include <string> #include <cstdlib> #include <complex> #include <vector> #include <cmath> #include <sstream> #include <utility> #include <math.h> #include <fstream> #include <functional> #include "Eigen/Dense" #include "Eigen...
/*************************/ /* FILE NAME: main.cpp */ /*************************/ /** * Program description * This program reads a file in glTF format and outputs the data to the screen using OpenGL. * if there is animation data, only the first animation is shown on the screen. * This code is based on SacchaWill...
#include <Rcpp.h> #include <RcppEigen.h> #include <omp.h> #include <vector> #include <iostream> #include <sys/time.h> #include <cmath> #include "mrcox_types.h" // [[Rcpp::depends(RcppEigen)]] void _cumsum(VectorXd & x){ double current = 0; int n = x.size(); for(int i = 0; i < n; ++i){ current += x(...
#include "app.h" #include "global.h" #include "ui_AddConnDialog.h" #include <QDialog> #include "com/util.h" #include "com/log.h" #include "libxdb.h" #include "com/const.h" #include "dao/treedao.h" #include "dao/kvdao.h" #include "cfg.h" App::App(QObject *parent) : QObject(parent) { } App::~App() { delete addConnDi...
//#include "IDebug.h" #include "IUtil.h" #include "CString.h" static const char* colors[] = { "white", "yellow", "orange", "pink", "red", "darkred", "lightgreen", "green", "darkgreen", "lightblue", "blue", "darkblue", "brown", "cynober", "purple", "darkpurple", "lightgray", "gray", "black", "transp...
/************************************************************************* * Copyright (c) 2013 eProsima. All rights reserved. * * This generated file is licensed to you under the terms described in the * fastrpc_LICENSE file included in this fastrpc distribution. * ***********************************************...
//------------------------------------------------------------------------------ // snowflakeapp.cc // (C) 2015-2017 Individual contributors, see AUTHORS file //------------------------------------------------------------------------------ #include "config.h" #include "snowflakeapp.h" #include "snowflakeobj.h" #includ...
/* * All questions regarding the software should be addressed to * * Prof. <NAME> * Purdue University * School of Electrical and Computer Engineering * 1285 Electrical Engineering Building * West Lafayette, IN 47907-1285 * USA * +1 765 494 0340 * +1 765 494 3358 (fax) * ...
#include "stdafx.h" #include "GalleryList.h" #include "SidebarUtils.h" #include "../../fonts.h" #include "../../my_info.h" #include "../../utils/utils.h" #include "../../utils/stat_utils.h" #include "../../core_dispatcher.h" #include "../GroupChatOperations.h" #include "../../controls/TextUnit.h" #include "../../cont...
/* This Tutorial is a tutorial for more advanced developers. If you are currently just playing around with the Irrlicht engine, please look at other examples first. This tutorials shows how to create a custom scene node and how to use it in the engine. A custom scene node is needed, if you want to implement a re...
#include "physicsworld.h" // STD #include <array> // bullet #include <btBulletDynamicsCommon.h> #include "LinearMath/btHashMap.h" //troen #include "../constants.h" #include "../gamelogic.h" #include "../util/gldebugdrawer.h" #include "../model/abstractmodel.h" #include "../controller/bikecontroller.h" #include "../soun...
#include <QDebug> #include <QFile> #include <QStringList> #include "FileName.h" #include "IException.h" #include "IString.h" #include "Preference.h" #include "Pvl.h" #include "PvlFlatMap.h" #include "PvlGroup.h" #include "PvlFlatMap.h" #include "PvlObject.h" #include "TextFile.h" using namespace Isis; using namespace...
#include <Kore/Audio2/Audio.h> #include <alsa/asoundlib.h> #include <errno.h> #include <poll.h> #include <pthread.h> #include <stdio.h> #include <stdlib.h> // apt-get install libasound2-dev using namespace Kore; namespace { pthread_t threadid; bool audioRunning = false; snd_pcm_t* playback_handle; const int buff...
// Copyright (C) <NAME>, MIT License (see LICENSE.md) // Reference: // https://github.com/Thinkerfans/lib-mp4v2/blob/master/mp4v2/mp4record.c // https://github.com/lieff/minih264/blob/master/minih264e_test.c // https://stackoverflow.com/questions/9465815/rgb-to-yuv420-algorithm-efficiency // #include <string.h> // #i...
#include "Test.h" Test::Test() { al_init(); al_init_image_addon(); al_set_new_display_flags(ALLEGRO_FULLSCREEN); window = al_create_display(1920,1080); // Test variables INCREMENTS = 20; NUM_TESTS = 4; numFrames = 0; currentTest = 1; testIncrement = 0; cur...
/* * Copyright Copyright 2012, System Insights, 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 requi...
//===--- RawSILInstLowering.cpp -------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
/* * Multicast.cc * * Created on: Dec 3, 2016 * Author: cbinnig */ #include "MulticastPerf.h" #include "../utils/Timer.h" mutex rdma::MulticastPerf::waitLock; condition_variable rdma::MulticastPerf::waitCv; bool rdma::MulticastPerf::signaled; /********* client threads *********/ rdma::MCClientPerfThread:...