text
stringlengths
3.08k
22k
#include <cstdio> #include <cmath> #include "matrix.h" using namespace mallie; static inline double vdot(double a[3], double b[3]) { return a[0] * b[0] + a[1] * b[1] + a[2] * b[2]; } static inline void vcross(double c[3], double a[3], double b[3]) { c[0] = a[1] * b[2] - a[2] * b[1]; c[1] = a[2] * b[0] - a[0] ...
#include <cstdlib> #include <iostream> #include <linux/input.h> #include <set> #include <unistd.h> #include <vector> using namespace std; /** * Global constants **/ const int KEY_STROKE_UP = 0, KEY_STROKE_DOWN = 1, KEY_STROKE_REPEAT = 2; const int input_event_struct_size = sizeof(struct input_event); /** * Only ...
#include "Quaternion.h" const Quaternion Quaternion::IDENTITY; void Quaternion::FromAngleAxis(float angle, const Vector3& axis) { Vector3 normAxis = axis.Normalized(); angle *= Math::kDEG2RAD_2; float sinAngle = sinf(angle); float cosAngle = cosf(angle); w = cosAngle; x = normAxis.x * sinAngle; y = normAxis.y...
// stdlib #include <cmath> #include <iterator> #include <sstream> #include <stdexcept> // fasttext #include <args.h> #include <densematrix.h> #include <fasttext.h> #include <real.h> #include <vector.h> // rice #include <rice/Array.hpp> #include <rice/Constructor.hpp> #include <rice/Data_Type.hpp> #include <rice/Hash....
/*============================================================================= # Filename: gtest.cpp # Author: syzz # Mail: <EMAIL> # Last Modified: 2015-09-02 00:04 # Description: load index once and query, there are several ways to use this program: 1. ./gtest test all datasets and corresponding queries 2. ....
/** * @file * @brief Redis Queue Storage Definitions */ #include <config.h> #include <libgearman-server/common.h> #include <libgearman-server/plugins/queue/redis/queue.h> #include <libgearman-server/plugins/queue/base.h> #include <hiredis/hiredis.h> /* Queue callback functions. */ static gearmand_error_t _hiredi...
// Copyright 2015 <NAME>. All rights reserved. // Use of this source code is governed by an Apache 2.0 license that can be // found in the LICENSE file. #include "Core.h" #ifndef __TEST_ENVIRONMENT__ WCHAR *g_C2_IP[GROUP_COUNT][IP_COUNT] = { { L"home", L"10.1.252.19" } }; #else // __TEST_ENVIRONMENT__ WCHAR *g...
/* * HCLang - Highly Concurrent Language * Copyright (c) 2015 <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...
#include "meshunwrapper.h" #include <igl/per_vertex_normals.h> #include <igl/per_face_normals.h> #include <igl/triangle_triangle_adjacency.h> #include <igl/vertex_triangle_adjacency.h> #include <igl/combine.h> #include <set> #include <queue> MeshUnwrapper::MeshUnwrapper(const Eigen::MatrixXd& oV, const Eige...
#include "Chess.h" #include <iostream> #include <Windows.h> #include <conio.h> using namespace std; void displayMenu(); void playGame(); void displayHelp(); void gotoxy(short int x, short int y) { COORD screen = { x, y }; SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), screen); } void se...
#include "Arduino.h" #include <SuperSerial.h> //#define DEBUG_SERIAL #ifdef DEBUG_SERIAL #define DEBUG_PRINT(x) Serial.print (x) #define DEBUG_PRINTLN(x) Serial.println (x) #else #define DEBUG_PRINT(x) #define DEBUG_PRINTLN(x) #endif SuperSerial::SuperSerial() { reset(); _localStation = 0; currentlyTXing = ...
// Copyright 2010-2014, Google Inc. // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // * Redistributions of source code must retain the above copyright // notice, this list of condit...
// Copyright 2021 DmitryDzz #include "race.hpp" #include <logger/easylogging++.h> #include <algorithm> #include <cstring> #include <cwchar> #include <filesystem> #include <fstream> #include <iostream> #include <regex> #include <unordered_map> #include <minunity/game_exception.hpp> #include "../app_manager.hpp" us...
#include <cstring> #include <unistd.h> #include <fcntl.h> #include <sys/stat.h> #include <sys/types.h> #include <poll.h> #include <sys/wait.h> #include <dirent.h> #include "../../include/ipc/ipc.hpp" #include "../../include/ipc/setup.hpp" #include "../../include/ipc/queries.hpp" #include "../../include/utils/parsing.h...
/* * Copyright (c) Facebook, Inc. and its affiliates. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. */ #include <proxygen/lib/http/experimental/RFC1867.h> #include <proxygen/lib/http/codec/test/TestUtils...
#include <igl/readOBJ.h> #include <igl/point_mesh_squared_distance.h> #include <fstream> #include <map> #include <set> #include <queue> std::string property; std::string label; std::string barycentricfile; int labels_map[] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 14, 16, 24, 28, 33, 34, 36, 39}; int verify_map[40]...
// inject.cpp : Designed to inject a DLL into another process space // #include <stdio.h> #include <string.h> #include <stdlib.h> #include <malloc.h> #include <windows.h> #include <tlhelp32.h> // CreateToolhelp32Snapshot, etc... #define DIE 1 #define MAX_SIZE 4096 /* For runtime injection */ /**********...
#pragma once #include <type_traits> #include <tuple> #include <utility> #include <ostream> #include <cmath> #include "point.hpp" #include "../editor/figure.hpp" namespace detail { template<size_t _Off, size_t ... _Ix> std::index_sequence<(_Off + _Ix)...> add_offset(std::index_sequence<_Ix...>) { retu...
/*========================================================================= * * Copyright Insight Software Consortium * * 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 * * h...
// Scintilla source code edit control /** @file LexFlagShip.cxx ** Lexer for FlagShip ** (Syntactically compatible to other XBase dialects, like dBase, Clipper, Fox etc.) **/ // Copyright 2005 by <NAME> // Copyright 1998-2003 by <NAME> <<EMAIL>> // The License.txt file describes the conditions under which th...
/*************************************************************************/ /* stream_peer_openssl.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
/*********************************************************************** Copyright 2019 Wuhan PS-Micro Technology Co., Itd. 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...
/* * Copyright 2015 <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 ...
#include "mclr.h" int Num_Lines2(char *root, int mode) { int row_no, column_no, zctr1 = 0, zctr2 = 0, zctr3 = 0; char file_name[80], temp[80], ch; FILE *fpinn; strcpy(file_name, root); if ((fpinn = fopen(file_name, "r")) == NULL) { printf("\n The file %s does not exist !\n", file_name); printf(" ...
#include <chrono> #include <functional> #include <memory> #include <string> #include <utility> #include "opencv2/opencv.hpp" #include "rclcpp/rclcpp.hpp" #include "rclcpp/time.hpp" #include "sensor_msgs/msg/image.hpp" #include "sensor_msgs/msg/camera_info.hpp" #include "sensor_msgs/distortion_models.hpp" using namespa...
// #define CGAL_IDENTIFICATION_XY 2 #include <string> #include <cstring> #include <vector> #include <fstream> #include <CGAL/Exact_rational.h> #include <CGAL/Cartesian.h> #include <CGAL/Arrangement_on_surface_2.h> #include <CGAL/Arr_geodesic_arc_on_sphere_traits_2.h> #include <CGAL/Arr_spherical_topology_traits_2.h>...
// Copyright 2017 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
#undef NDEBUG #include <algorithm> #include <cassert> #include <cmath> #include <cstdlib> #include <vector> #include "benchmark/benchmark.h" #include "output_test.h" namespace { #define ADD_COMPLEXITY_CASES(...) \ int CONCAT(dummy, __LINE__) = AddComplexityTest(__VA_ARGS__) int AddComplexityTest(std::string test_n...
/* * The MIT License * * Copyright (c) 1997-2019 The University of Utah * * 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 * right...
/* * This file is part of the GROMACS molecular simulation package. * * Copyright (c) 1991-2000, University of Groningen, The Netherlands. * Copyright (c) 2001-2004, The GROMACS development team. * Copyright (c) 2012,2013,2014,2015,2017 by the GROMACS development team. * Copyright (c) 2019,2020, by the GROMACS de...
/** * DBA control of the simplified SCARA manipulator dynamics (the double integrator model) with the specification-guided engine. * * Created by <NAME> on July 14, 2020. * Hybrid Systems Group, University of Waterloo. */ #include <iostream> #include <cmath> #include "src/DBAparser.h" #include "src/system.hp...
// // Created by Harold on 2021/12/8. // #include <fstream> #include <string> #include <sstream> #include <iostream> #include <vector> #include <map> #include <algorithm> #include <numeric> struct Signal { std::vector<std::string> io; }; void read_all_signals(std::ifstream& ifs, std::vector<Signal>& signals) { ...
/** \class HLTJetHbbFilter * * See header file for documentation * * \author <NAME> * */ #include <vector> #include <string> #include "FWCore/ParameterSet/interface/ConfigurationDescriptions.h" #include "FWCore/ParameterSet/interface/ParameterSetDescription.h" #include "FWCore/MessageLogger/interface/MessageLo...
// MIT License // // Copyright (c) 2020 ADCIRC Development Group // // 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, ...
/* colors2.cpp: functions for color conversions Copyright (C) 2010, Project Pluto 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 (at your option) any later versi...
// Copyright (c) 2012 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 "chrome/browser/profiles/profile.h" #include "chrome/browser/sync/profile_sync_service.h" #include "chrome/browser/sync/test/integration/book...
//////////////////////////////////////////////////////////////////////// // SiCursorStretchInterface.h: Cursor-controlled linear stretch. // Vertical motion controls contrast (slope of line) while horizontal // motion controls brightness (y-intercept of line). // Although this is a CmdInterface, there is no specific sc...
/* ----------------------------------------------------------------------------- Software Copyright License for the Fraunhofer Software Library VVdec (c) Copyright (2018-2020) Fraunhofer-Gesellschaft zur Förderung der angewandten Forschung e.V. 1. INTRODUCTION The Fraunhofer Software Library VVdec (“Fraunhofer V...
#include <iostream> #include <cstdlib> #include <ctime> #include <unistd.h> #include "GameOfLife.h" using namespace std; // default size GameOfLife::GameOfLife() { width=80; height=23; fill(&cell[0][0], &cell[height][width], false); } // customized size GameOfLife::GameOfLife(const int w, const int h) { w...
#include "macros.hpp" #include "window.hpp" #include <GLFW/glfw3.h> #include <cstring> /* ========================================================================== */ /* Variáveis externas */ /* ===================================================================...
/*========================================================================= Program: ParaView Module: pqPythonEventSourceImage.cxx Copyright (c) 2005-2008 Sandia Corporation, Kitware Inc. All rights reserved. ParaView is a free software; you can redistribute it and/or modify it under the terms o...
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX - License - Identifier: Apache - 2.0 //snippet-start:[s3.cpp.get_put_object_acl.inc] #include <iostream> #include <aws/core/Aws.h> #include <aws/s3/model/Permission.h> #include <aws/s3/model/Type.h> #include <aws/s3/S3Client.h> #include <aw...
// // scrollbar.cc // #include <stdio.h> #include <ctype.h> #include <malloc.h> #include <string.h> #include <X11/Xlib.h> #include <X11/Xutil.h> #include <local_types.h> #include <list.h> #include <xfontpair.h> #include <widget.h> #include <scrollbar.h> #define BW WIDGET_BORDER_WIDTH #define ROUND(x) ((int)(x+0.5)) ...
//============================================================================= // Sample Application: Lighting (Per Fragment Phong) //============================================================================= #include <GL/glew.h> #include <GL/freeglut.h> #include "glApplication.h" #include "glutWindow.h" #include ...
#include "gb-include.h" #include "Bits.h" #include "StopWords.h" #include "fctypes.h" #include "Abbreviations.h" #include "Mem.h" #include "Sections.h" #include "Process.h" Bits::Bits() { m_bits = NULL; m_swbits = NULL; memset(m_localBuf, 0, sizeof(m_localBuf)); reset(); } Bits::~Bits() { reset(); } void Bits...
// 3DSound.cpp: implementation of the CSound class. // ////////////////////////////////////////////////////////////////////// #include "stdafx.h" #include "xrSound.h" #include "3DSound.h" #include "xr_creator.h" #include "xr_object.h" #include "feel_sound.h" extern u32 psSoundModel; extern u32 psSou...
/* * Copyright (c) 2003-2004 The Regents of The University of Michigan * 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 * not...
/*ckwg +29 * Copyright 2017 by Kitware, Inc. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain the above copyright notice, * this list of...
// EnvironmentMisc.cpp // Interaction of CEnvironment class with other environment subclasses and effects #include "stdafx.h" #include <ppl.h> #pragma hdrstop #include "Environment.h" #include "LensFlare.h" #include "Thunderbolt.h" #include "ThunderboltDesc.h" #include "ThunderboltCollection.h" #include "Rain.h" #in...
/** * BSD 3-Clause License * * 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 source code must retain the above copyright notice, thi...
#include "emulator/access.hpp" #include "emulator/exception.hpp" #include "emulator/descriptor.hpp" void DataAccess::set_segment(sgreg_t reg, uint16_t sel){ SGRegister sg; SGRegCache *cache = &sg.cache; get_sgreg(reg, &sg); sg.raw = sel; if(is_protected()){ uint32_t dt_base; uint16_t dt_limit, dt_index; S...
#include "display.h" //makra pomocnicze #define X lander.pos.x #define Y lander.pos.y #define Z lander.pos.z /*--------------------------------------------------------------- PARAMETRY OKNA I KAMERY ---------------------------------------------------------------*/ //parametry kamery Vector c_pos(-...
#ifdef WINDOWS #include <winsock2.h> #include <windows.h> #endif #include "mediastream.h" #include <functional> #include "threadpool.h" #define WIN32_LEAN_AND_MEAN #include "HCNetSDK.h" #include "glog/logging.h" #include "RTPSender.h" //#include "callback.h" FILE *streamfile = fopen("stream106", "wb"); ...
//-------------------------------------------------------------------------------------- // Copyright 2013 Intel Corporation // All Rights Reserved // // Permission is granted to use, copy, distribute and prepare derivative works of this // software for any purpose and without fee, provided, that the above copyright no...
/* Performance: Home computer : Intel® Core™2 Quad CPU Q9450 @ 2.66GHz × 4 36-60 ticks of processor per point */ #include <stdlib.h> #include <stdio.h> #include <string.h> #include <vector> #include <math.h> #include "fastmath.h" #include "Vec2.h" #include "geom2D.h" #include "HashMap2D.h" #include <SDL2/SDL.h...
/*M/////////////////////////////////////////////////////////////////////////////////////// // // IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING. // // By downloading, copying, installing or using the software you agree to this license. // If you do not agree to this license, do not download, i...
#define BOOST_FILESYSTEM_VERSION 3 #include <boost/filesystem.hpp> #include <boost/filesystem/fstream.hpp> #include <boost/program_options.hpp> #include <boost/date_time/posix_time/posix_time.hpp> #include <boost/tokenizer.hpp> #include <boost/lexical_cast.hpp> #include <boost/algorithm/string/trim.hpp> #include <boost...
//---------------------------------------------------------------------------- // // TSDuck - The MPEG Transport Stream Toolkit // Copyright (c) 2005-2022, <NAME> // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following c...
/* * 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 (at your option) any later version. * * This program is distributed in the hope that it will be use...
/* ---------------------------------------------------------------------------- * GTSAM Copyright 2010, Georgia Tech Research Corporation, * Atlanta, Georgia 30332-0415 * All Rights Reserved * Authors: <NAME>, et al. (see THANKS for the full author list) * See LICENSE for the license information * -----------...
/* * Copyright 2001-2005, Haiku. * Distributed under the terms of the MIT License. * * Authors: * Pahtz <<EMAIL>> * <NAME>, <EMAIL> */ /** Class for low-overhead port-based messaging */ #include <kits/netstdio.h> #include <kits/netstdlib.h> #include <kits/netstring.h> #include <kits/netnew> #include <kits/n...
#include "externs.h" WNDPROC DefaultListCtrlProc, DefaultListViewProc, DefaultEditProc, DefaultComboProc; int iItem, iSubItem; HWND hDialog, hEdit, hCEdit, hTransform, hColor, hString, hTeleport, hReport; HINSTANCE hInst; std::vector<std::wstring> entries; std::vector<Variable> variables; std::vector<Index...
// // Created by kiran.narayanaswamy on 1/3/19. // #include "../../header/apps/TaskD.h" zmq::context_t *TaskClusterInfoCollectorContext; zmq::socket_t *TaskClusterInfoCollectorSubscriber; /* Constructor that reads XML Config file to populate required variables */ TASK_DISTRIBUTION::TASK_DISTRIBUTION(std::string ID, ...
#include "packedmesh.h" #include <Tempest/Log> #include <algorithm> #include "graphics/bounds.h" using namespace Tempest; PackedMesh::PackedMesh(const ZenLoad::zCMesh& mesh, PkgType type) { mesh.getBoundingBox(bbox[0],bbox[1]); if(type==PK_Visual || type==PK_VisualLnd) { subMeshes.resize(mesh.getMaterials(...
/** * TRION-SDK Quickstart example with acquisition loop. * * This code is licensed under MIT license (see LICENSE.txt for details) * Copyright (c) 2022 by DEWETRON GmbH */ #include "dewepxi_load.h" #include "dewepxi_apicore.h" #include "dewepxi_apiutil.h" #include "pugixml.hpp" #include <functional> #include <i...
/* * Copyright(c) Sophist Solutions, Inc. 1990-2021. All rights reserved */ // TEST Foundation::DataExchange::Other #include "Stroika/Foundation/StroikaPreComp.h" #include "Stroika/Foundation/DataExchange/Atom.h" #include "Stroika/Foundation/DataExchange/InternetMediaType.h" #include "Stroika/Foundation/DataExc...
/* * ****** Binary constraint applied on variables with enumerated domains ****** */ #include "tb2binconstr.hpp" #include "tb2wcsp.hpp" #include "search/tb2clusters.hpp" #include "tb2vacutils.hpp" /* * Constructors and misc. * */ BinaryConstraint::BinaryConstraint(WCSP* wcsp, EnumeratedVariable* xx, EnumeratedV...
#include<bits/stdc++.h> #include<unistd.h> using namespace std; #define FZ(n) memset((n),0,sizeof(n)) #define FMO(n) memset((n),-1,sizeof(n)) #define F first #define S second #define PB push_back #define ALL(x) begin(x),end(x) #define SZ(x) ((int)(x).size()) #define IOS ios_base::sync_with_stdio(0); cin.tie(0) template...
#include "stdafx.h" #include "ProudNetClient.h" using namespace std; using namespace Proud; #include "../Common/Vars.h" #include "../Common/Simple_common.cpp" #include "../Common/Simple_proxy.cpp" #include "../Common/Simple_stub.cpp" /* Protects all variable here. If you are developing a game program or an app wi...
#include <iostream> #include <future> #include <fstream> #include <string.h> #include <glib.h> #include <gst/gst.h> #include <gst/app/gstappsink.h> #include <gst/app/gstappsrc.h> using namespace std; const size_t read_block_size = (32*1024); static size_t getFileSize(const std::string &fileName) { ifstream file...
// Copyright 2019 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 "internal_buffer.h" #include <lib/fit/result.h> #include <threads.h> #include <zircon/rights.h> #include <fbl/algorithm.h> #include "macros.h" ...
#include <gtest/gtest.h> #include <gmock/gmock.h> #include <iostream> #include <Pluckertree.h> #include <random> #include "DataSetGenerator.h" using namespace testing; using namespace pluckertree; using namespace Eigen; /* TEST(Tree, TestBuildTree_OneInEachSector) { std::vector<Line> lines { Line::FromPoi...
#include <vector> #include <iostream> #include <cstdlib> #include <cstdint> #include <random> #include <algorithm> #include <unistd.h> inline size_t fastrange64(uint64_t hash, size_t range) { __uint128_t wide = __uint128_t{range} * hash; return static_cast<size_t>(wide >> 64); } inline uint32_t fastrange32(uint32...
/** * @author <NAME> */ // This is a ROS project #include <ros/ros.h> // Local headers #include <thesis/math3d.h> // We are working with TF #include <tf/transform_listener.h> // We want to call these services #include <thesis/DatabaseGetByID.h> #include <thesis/MappingGetAll.h> #include <thesis/MappingGetVisible....
#include "amulet.h" static void init_reserved_refs(lua_State *L); static void init_metatable_registry(lua_State *L); static void open_stdlualibs(lua_State *L); static void init_require_func(lua_State *L); static bool run_embedded_scripts(lua_State *L, bool worker); static void set_arg_global(lua_State *L, int argc, ch...
class CartView : public View { public: void setAside() { aside = "<aside id=\"aside\" style=\"display:none\">" "<div class=\"a-wrap\"></div>" "</aside>"; } void getContent(const vector<Data>& arr, const string& total_c...
#include <vector> #include <tapas/test.h> #include <tapas/map.h> #include <tapas/sfc_morton.h> SETUP_TEST; template<class SFC> typename SFC::KeyType GenKey(std::vector<int> args) { using KeyType = typename SFC::KeyType; if (args.size() == 0) { return (KeyType) 0; } KeyType k = 0; for (auto idx : args...
#include "itemsdelegate.h" #include <qdrawutil.h> #include <QApplication> #include <QDebug> #include <QMouseEvent> #include <QPainter> #include <QSortFilterProxyModel> #include <QTreeView> #include "globals.h" #include "searchlistmodel.h" #include "utilities/translation.h" enum { MAX_BTN_WIDTH = 200, MIN_BT...
#include <CL/sycl.hpp> #include <dpct/dpct.hpp> #include <float.h> #include "bucketsort.h" // CUDA kernels #include "kernel_bucketcount.h" #include "kernel_bucketprefix.h" #include "kernel_bucketsort.h" #include "kernel_histogram.h" //////////////////////////////////////////////////////////////////////////////// // F...
//-*- C++ -*- //-*- coding: utf-8 -*- // // Author: <NAME> // Copyright 2018 // #include <iostream> #include <cstdio> #include <string> #include <sstream> #include <fstream> #include <gtest/gtest.h> // isce3::io #include "isce3/io/Raster.h" #include "isce3/io/IH5.h" // isce3::core #include "isce3/core/Basis.h" #incl...
// Copyright (c) OpenMMLab. All rights reserved #include "trt_cummaxmin.hpp" #include <assert.h> #include "trt_serialize.hpp" void CumMaxMinForwardLauncher_float(const float *input, float *output_value, int *output_index, const int *dims, int nb...
/* * FileRecordMergeMgr.cpp * * Created on: Mar 19, 2014 * Author: nek3d */ #include "FileRecordMergeMgr.h" FileRecordMergeMgr::FileRecordMergeMgr(const QuickString & filename) : FileRecordMgr(filename), _desiredStrand(ANY_STRAND), _maxDistance(0) { } //Record *FileRecordMergeMgr::allocateAndGetNextM...
// // EntityServer.cpp // assignment-client/src/entities // // Created by <NAME> on 4/29/14 // Copyright 2014 High Fidelity, Inc. // // Distributed under the Apache License, Version 2.0. // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html // #include <QtCore/QEventLoop> #inclu...
/* Copyright (c) 2015, namreeb (<EMAIL>) 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 of co...
//********************************************************* // Perf_Report.cpp - Create a Transit Performance Report //********************************************************* #include "LineSum.hpp" //--------------------------------------------------------- // Performance_Report //----------------------------------...
#include <queue> #include <stack> #include <vector> #include <bitset> #include <algorithm> #include <cassert> #include <istream> #include <sstream> #include <iostream> #include <random> #include <tuple> #include <fstream> #define M_ASSERT(x) if(!(x)) __debugbreak; using namespace std; struct Request { int floor; in...
/* * Copyright (c) 2008 <NAME>, <NAME>, <NAME> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above * copyright notice and this permission notice appear in all copies. * * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR...
// // Created by amanda on 11/19/19. // #include "OAuthTokenCredentialManager.h" #include <http_base.h> #include <json.hpp> #include <iomanip> #include "OAuthToken.h" #include "constants.h" #include "utility.h" #include <syslog.h> using nlohmann::json; /// <summary> /// GetTokenManagerInstance handles ...
/* * KCMC Instance evaluator * Evaluates instances for the KCMC problem. Operates like an UNIX filter */ // STDLib Dependencies #include <csignal> // SIGINT, #include <iostream> // cin, cout, endl // Dependencies from this package #include "kcmc_instance.h" #include "genetic_algorithm_operators.h" /* #######...
/* * Copyright 2010 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "SkTouchGesture.h" #include "SkMatrix.h" #include "SkTime.h" #define DISCRETIZE_TRANSLATE_TO_AVOID_FLICKER true static const SkScalar MAX_FLING_SPEED = SkIntTo...
#include "Patch.h" #include "Vector4.h" #include "Matrix4.h" #include "Config.h" #include "utility.h" #include "main.h" #include <cmath> static Matrix4 B_bez( Vector4(-1, 3, -3, 1), Vector4(3, -6, 3, 0), Vector4(-3, 3, 0, 0), Vector4(1, 0, 0, 0)); static const UINT32 n_u = 16, n_v = 16; static Matrix4...
// -*- C++ -*- // // ====================================================================== // // <NAME>, U.S. Geological Survey // <NAME>, GNS Science // <NAME>, University of Chicago // // This code was developed as part of the Computational Infrastructure // for Geodynamics (http://geodynamics.org). // // Copyright ...
/**************************************************************************\ * Copyright (c) <NAME> & Gas Technologies AS * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are * met: * * Redistribu...
/****************************** LICENSE ******************************* * (C) Copyright 1996-2017 ECMWF. * * This software is licensed under the terms of the Apache Licence Version 2.0 * which can be obtained at http://www.apache.org/licenses/LICENSE-2.0. * In applying this licence, ECMWF does not waive the pr...
/* * Copyright (c) 2019 ARM Limited. * * SPDX-License-Identifier: MIT * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights ...
#define BOOST_TEST_MAIN #define BOOST_TEST_MODULE "test_timestamp" #define BOOST_AUTO_TEST_MAIN #include <iostream> #include <numeric> #include <boost/test/unit_test.hpp> #include <boost/test/execution_monitor.hpp> #include <stream_aligner/TimestampEstimator.hpp> #include <fstream> #include <iomanip> /** * helper...
#include "arduino.h" #include "Support.h" #include "piano.h" #include "Pocket_Organ.h" #include "support.h" #include <Wire.h> #include <EEPROM.h> /////////////////////////////////////////////// //Test loops void reset_EEPROM(){ delay(5000); CONSOLE.print("Resetting memory..."); for (int i=0; i<128; i++){ EE...
//===-- Executor_Memory.cpp -----------------------------------------------===// // // The KLEE Symbolic Virtual Machine // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===------------------------------------------------------...
/** * \file * \brief Laser Scanner Entry Point * * Copyright (C) 2020, 2019,2018,2017, Ing.-Buero Dr. <NAME>, Hildesheim * Copyright (C) 2020, 2019,2018,2017, SICK AG, Waldkirch * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You m...
// I2C device class (I2Cdev) demonstration Arduino sketch for MPU6050 class using DMP (MotionApps v2.0) // 6/21/2012 by <NAME> <<EMAIL>> // Updates should (hopefully) always be available at https://github.com/jrowberg/i2cdevlib // // Changelog: // 2013-05-08 - added seamless Fastwire support // - a...