text
stringlengths
3.08k
12.5k
/** * Copyright 2019 DayHR Authors. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required ...
/* Copyright 2022 <NAME> <<EMAIL>> Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, softwar...
#include "VCFInputFile.h" #include "Utils.h" #include "FileIO.h" #include "TabixReader.h" #include "BCFReader.h" #include "TimeUtil.h" // use current subset of included people // to reconstruct a new VCF header line void VCFInputFile::rewriteVCFHeader() { std::string s = "#CHROM\tPOS\tID\tREF\tALT\tQUAL\tFILTER\tI...
/*********************************************************************************************************************** * * * ANTIKERNEL v0.1 ...
/* * Copyright (C) 2016 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...
/********** This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. (See <http://www.gnu.org/copyleft/lesser.html>.) This librar...
/* * Copyright 2017-present Facebook, 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 a...
//{ #include<bits/stdc++.h> #include "lib2000.h" using namespace std; typedef long long ll; typedef double lf; typedef pair<ll,ll> ii; typedef pos_type pt; #define REP(i,n) for(ll i=0;i<n;i++) #define REP1(i,n) for(ll i=1;i<=n;i++) #define FILL(i,n) memset(i,n,sizeof i) #define X first #define Y second #define SZ(_a) (...
/* * Copyright 2003-2013, <NAME>, <EMAIL>. * Distributed under the terms of the MIT License. */ #include "amiga_ffs.h" #include <boot/partitions.h> #include <boot/platform.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include <stdio.h> #include <stdlib.h> using namespace FFS; class BCPLStrin...
#include "stdafx.h" #include "build.h" #include "OGF_Face.h" SWIContainer g_SWI,x_SWI; VBContainer g_VB,x_VB; IBContainer g_IB,x_IB; bool CBuild::IsOGFContainersEmpty() { return g_SWI.is_empty() && x_SWI.is_empty() && g_VB.is_empty() && x_VB.is_empty() && g_IB.is_empty() && x_IB.is_empty() ...
#include "../glsl_compiler/StandAlone/StandAlone.h" #include "shaders.h" #include "zone.h" #include "render.h" #include "flog.h" /* { GVAR: logical_device -> startup.cpp GVAR: VkShaderModule _shaders[20] -> /standalone/standalone.cpp GVAR: uint32_t cur_shader_index -> /standalone/standalone.cpp } */ stati...
#include <cstring> #include "DotKill.h" template <typename T> static void convHoriz(const uint8_t* src_, int srcStride, int* dst, int width, int height) { const T* src = reinterpret_cast<const T*>(src_); while (--height) { dst[0] = 0; dst[1] = 0; for (int x = 2; x < width - 3; ++...
/* Copyright (c) 2016 PaddlePaddle Authors. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or...
/*********************************************************************************************//** * @file cp1616_io_controller_tutorial_node.cpp * * Node for testing basic profinet communication between CP1616 and S7-1200 PLC * * Copyright {2015} {<NAME>} * * Licensed under the Apache License, Version 2.0 (the "Li...
/* -*- Mode: C -*- */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ #include "xptcprivate.h" #include "xptiprivate.h" /* Under the Mac OS X PowerPC ABI, the fi...
#include "globals.h" #include "decoders/decoders.h" #include "ibm.h" #include "crc.h" #include "fluxmap.h" #include "decoders/fluxmapreader.h" #include "sector.h" #include "record.h" #include <string.h> static_assert(std::is_trivially_copyable<IbmIdam>::value, "IbmIdam is not trivially copyable"); /* * The markers...
/*---------------------------------------------------------------------------*\ Copyright (C) 2011 Symscape ------------------------------------------------------------------------------- License This file is part of CAELUS. CAELUS is free software: you can redistribute it and/or modify it under the terms ...
// flow_io.cpp // // read and write our simple .flo flow file format // ".flo" file format used for optical flow evaluation // // Stores 2-band float image for horizontal (u) and vertical (v) flow components. // Floats are stored in little-endian order. // A flow value is considered "unknown" if either |u| or |v| is g...
#include <bits/stdc++.h> #define all(x) (x).begin(), (x).end() #ifndef ONLINE_JUDGE template<typename T> void pr(T a){std::cerr<<a<<std::endl;} template<typename T,typename... Args> void pr(T a, Args... args) {std::cerr<<a<<' ',pr(args...);} #else template<typename... Args> void pr(Args... args){} #endif ...
// // Copyright (c) .NET Foundation and Contributors // See LICENSE file in the project root for full license information. // #include <nanoHAL.h> #include <nanoHAL_v2.h> #include <nanoWeak.h> #include "esp32_os.h" #include "targetHAL_ConfigStorage.h" // SPIFFS config #define SPIFFS_Base_Path "/I" //#define SP...
#include "gol.h" #include <algorithm> #include <execution> struct tile_t { struct health_t { int current; int next; } health; int life; tile_t *other[8]; int value() const; int get_count() { return other[0]->value() + other[1]->value() + other[2]->value() + other[3]->value() + ...
/*========================================================================= Program: Visualization Toolkit Module: vtkLagrangeInterpolation.cxx Copyright (c) <NAME>, <NAME>, <NAME> All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distribute...
// DrawingMaster.cpp // Dominicus #include "graphics/DrawingMaster.h" #include "core/GameSystem.h" #include "graphics/GameGraphics.h" #include "graphics/2dgraphics/DrawButton.h" #include "graphics/2dgraphics/DrawCircle.h" #include "graphics/2dgraphics/DrawContainer.h" #include "graphics/2dgraphics/DrawField.h" #inclu...
/**The MIT License (MIT) Copyright (c) 2015 by <NAME> Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, pub...
/** * MaNGOS is a full featured server for World of Warcraft, supporting * the following clients: 1.12.x, 2.4.3, 3.3.5a, 4.3.4a and 5.4.8 * * Copyright (C) 2005-2015 MaNGOS project <http://getmangos.eu> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU Gene...
/*======================================================================================= ========================================================================================= = = = Proyect: Email Classifier ...
#include <rlpbr.hpp> #include <iostream> #include <fstream> #include <string> #include <random> #include "navmesh.hpp" #include "stats.hpp" #include <glm/gtc/type_ptr.hpp> #include <glm/gtx/string_cast.hpp> using namespace std; using namespace RLpbr; static tuple<glm::dvec3, glm::dvec3> updateMeanAndVarDouble( ...
// (C) Copyright <NAME> 2007 // // Use, modification and distribution are subject to the // Boost Software License, Version 1.0 (See accompanying file // LICENSE_1_0.txt or http://www.boost.org/LICENSE_1_0.txt) #include <vector> #include <boost/graph/adjacency_list.hpp> #include <boost/graph/core_numbers.hpp> #include...
// Fill out your copyright notice in the Description page of Project Settings. #include "LoaderBPFunctionLibrary.h" #include "RuntimeMeshLoader.h" #include <assimp/Importer.hpp> // C++ importer interface #include <assimp/scene.h> // Output data structure #include <assimp/postprocess.h> // Post processing flags ...
// Copyright 2014 PDFium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com // Original code is licensed as follows: /* * Copyright 2009 ZXing authors * ...
// // kernel_panic.cpp // #include "drivers/display.hpp" #include "kernel_panic.hpp" #include "klibc.hpp" /// /// Depth of the stack trace displayed when a panic occurs /// static const uint32_t KERNEL_PANIC_STACK_TRACE_SIZE = 16; /// /// Displays a friendly(?) reason for the panic, along with its associated //...
#include <bits/stdc++.h> #define fastio cin.tie(0)->sync_with_stdio(0) using namespace std; struct Rubiks { private: enum class Face { L, F, R, B, U, D }; struct Info { int face, x, y; }; char v[6][3][3]; int Conv(const char c) const { if (c == 'L') return (int)Face::L; if (c == 'F') return (int)Face::F; ...
/* * Copyright (c) 2021, <NAME> <<EMAIL>> * * SPDX-License-Identifier: BSD-2-Clause */ #include <AK/Format.h> #include <AK/Random.h> #include <AK/String.h> #include <AK/StringBuilder.h> #include <AK/Vector.h> #include <errno.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include...
#include "tcp_transport_test.h" static int count = 1; static int send_loop = 1; static int send_pocket_size = 1024 * 4; static int send_pocket_count = 1024 * 100; class my_tcp_dialer; static service *sv; static uint16_t server_port; static std::string server_ip; static std::mutex dial_mx; static std::map<my_tcp_d...
#include <qpdf/InputSource.hh> #include <qpdf/QIntC.hh> #include <qpdf/QTC.hh> #include <stdexcept> #include <string.h> void InputSource::setLastOffset(qpdf_offset_t offset) { this->last_offset = offset; } qpdf_offset_t InputSource::getLastOffset() const { return this->last_offset; } std::string InputSource...
#include "nx.h" #include "floattext.h" #include "object.h" #include "graphics/graphics.h" #include "graphics/sprites.h" using namespace Graphics; using namespace Sprites; #include "map.h" FloatText *FloatText::first = NULL; FloatText *FloatText::last = NULL; /* void c------------------------------() {} */ FloatText...
#include "OceanMid.h" static bool is_end_tag(const DmaTag& tag, const VifCode& v0, const VifCode& v1) { return tag.qwc == 2 && tag.kind == DmaTag::Kind::CNT && v0.kind == VifCode::Kind::NOP && v1.kind == VifCode::Kind::DIRECT; } OceanMid::OceanMid() { for (auto& x : m_vu_data) { x.fill(999.); } v...
/* * Copyright (c) 2017-2018 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 * ri...
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */ /* * Copyright 2014 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 * * h...
#include "Class.h" #include "Game.h" #include <string> #include <locale> std::string saveTypes[] = { "PetrificationParalysis","PoisonDeath","BlastBreath","StaffsWands","Spells" }; ClassManager* ClassManager::LoadClasses() { gLog->Log("Class Loader", "Started"); std::string classFilename = "scripts/classes.json"; ...
#include "../Include/Base64.hpp" using namespace Fnd::Utility; const unsigned char Base64::_encode_map[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; const unsigned char Base64::_decode_map[128] = { 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, 127, ...
// Copyright (c) 2004-2022 <NAME> / LittleWing Company Limited. // See LICENSE file for terms and conditions of use. #include "core.h" #include "vm.h" #include "heap.h" #include "port.h" #include "subr.h" #include "ucs4.h" #include "arith.h" #include "violation.h" #include "../unicode/case-folding.inc" #include "../u...
#include <QApplication> #include "Method.h" #include "mainwindow.h" #include "myapp.h" void loadLocal(); extern QVector<QString> filelist; QWidgetList wdlist; extern QString PlistFileName, CurVersion, ocVer; extern bool zh_cn; MainWindow *mw_one; int main(int argc, char *argv[]) { #if (QT_VERSION >= QT_VERSION_CHECK...
// Distributed under the MIT License. // See LICENSE.txt for details. #pragma once #include <cstddef> #include <pup.h> #include "DataStructures/DataBox/DataBox.hpp" #include "Domain/Structure/ElementId.hpp" #include "NumericalAlgorithms/Interpolation/Actions/InterpolationTargetVarsFromElement.hpp" #include "Numerica...
// Copyright (c) 2021 Graphcore Ltd. All rights reserved. #define BOOST_TEST_MODULE TiedGatherTests #include <boost/test/unit_test.hpp> #include <typeindex> #include <popart/patterns/tiedgatherpattern.hpp> #include <popart/graph.hpp> #include <popart/ir.hpp> #include <popart/op/gather.hpp> #include <popart/op/matmul...
#include <Windows.h> #include <cstdint> #include <fstream> #include <algorithm> #include <cctype> #include "Utils.h" #include <vector> #include <regex> #include "D2Tables.h" #include "D2Structs.h" #include "D2Ptrs.h" #pragma comment(lib, "Version.Lib") #define D2SE_SETUP_FILE "D2SE_SETUP.ini" D2Version InitGameVersi...
// // Copyright (c) 2019-2020 <NAME> (basiliscos) (the dot dmol at gmail dot com) // // Distributed under the MIT Software License // /* * * The example below works because the lifetimes of supervisor's is known apriory, i.e. * sup_ev is shutted down while sup_asio is still operational. As the last don't have * mo...
/** * This demo illustrates the use of depth buffer, i.e. z-sorting. After the application * is running, press keys 1, 2 or 3 to change the behavior of the depth testing function. * * Author: <NAME> * Contributions: <NAME> <<EMAIL>> * License: MIT */ #include <GL/glut.h> #include <GL/gl.h> // Constants to defi...
/***************************************************************************** Licensed to Accellera Systems Initiative Inc. (Accellera) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. Accellera licenses...
/************************************************************** * * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to y...
#include<cstdio> #define N 200005 using namespace std; int son[N][3], num[N][3], f[N], a[N]; int opt, n, i, root, x, node, ans, flag; inline void Rotate(int x, int w)//1:左旋;2:右旋 //单旋,如果在左儿子右旋,如果在右儿子,左旋 { int y = f[x], z = f[y]; son[y][3 - w] = son[x][w];//把多余的儿子赋过去 if (son[x][w]) f[son[x][w]] = y;//如果儿子...
// #include <cstdio> // #include <map> // #include <cctype> // #include <algorithm> // #include <cmath> // #include <vector> // #define int long long // using namespace std; // const int MOD = 23333333333; // struct Que { // int x, y; // } ; // vector<Que > q; // map<int, char > b; // int n, m, cnt = 'a' - 1; // ...
#include <Arduino.h> #include "driver/i2s.h" #include "I2S_audio.h" #include "I2S_buffer.h" const int NUM_FRAMES_TO_SEND = 256; void i2s_input_task(void *param) { I2S_audio *input = (I2S_audio *)param; while (true) { // wait for some data to arrive on the queue i2s_event_t evt; if...
#include "WatchmanSceneSema.h" #include "WatchmanScene.h" const float WatchmanSceneSema::MAX_Y = 600.f; WatchmanSceneSema::WatchmanSceneSema(Node& parentNode, string nodeName, string csbPath, string dragSpritePath, string colliderSpritePath, EventDispatcher* eventDispatcher) : DraggableGameObject(parentNode, nodeName...
/** \file * \brief Conversion between imDib and imImage * * See Copyright Notice in im_lib.h */ #include <windows.h> #include <assert.h> #include "im.h" #include "im_image.h" #include "im_dib.h" #include "im_util.h" void imDibEncodeFromBitmap(imDib* dib, const unsigned char* data) { int x, ...
/* SuperPlugin_func.cpp * This is SuperPlugin which uses multiple other plugins in a pipeline. * 2012-05-11 : by <NAME> */ #include <v3d_interface.h> #include "v3d_message.h" #include "SuperPlugin_func.h" #include <vector> #include <iostream> #include <cstdlib> using namespace std; const QString title = QObject::...
/************************************************** * Essential C++ -- <NAME> * Addison-Wesley * ISBN 0-201-48518-4 * homepage: www.objectwrite.com * email: <EMAIL> *************************************************/ #include <iostream> #include <cassert> using namespace std; template <typename elemType> class ...
/************************************************************************** * Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * * * * Author: The ALICE Off-line Project. * * Contributors ...
/* Copyright 2018-2021 <<NAME>> 3-Clause BSD License 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 discl...
#include "Generic/common/leak_detection.h" #include <string> #include <vector> #include <algorithm> #include "Generic/common/Symbol.h" #include "DistributionalKnowledgeTable.h" #include "DistributionalAnchorArgClass.h" #include "DistributionalUtil.h" /* 10/15/2013 : <NAME> The *Fea variables are temporarily the...
#include "openglwindow.hpp" #include <imgui.h> #include <cppitertools/itertools.hpp> #include <glm/vec2.hpp> #include <glm/vec3.hpp> #include <gsl/gsl> #include "abcg.hpp" void OpenGLWindow::initializeGL() { // Enable Z-buffer test glEnable(GL_DEPTH_TEST); // Create shader program m_program = createProgram...
#include "Server.hpp" Server::Server() : masterSock(), sessionCounter(1) { } Server::Server(int port) : masterSock(port), sessionCounter(1) { } Server::~Server() { clearEndedSessions(); // Очистка завершённых сессий while (connections.size() != 0) { // Попытка завершить остальные потоки auto it = connections...
#include <thread> #include "utility.hpp" #include "stopwatch.hpp" #include "../dataset.hpp" #include "../vm_compiled.hpp" #include "../blake2/blake2.h" struct Outlier { Outlier(int idx, double rtime) : index(idx), runtime(rtime) {} int index; double runtime; }; int main(int argc, char** argv) { constexpr int dis...
// Copyright 2020 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 ...
/* ======================================== ID: mathema6 TASK: LANG: C++14 * File Name : B.cpp * Creation Date : 07-04-2021 * Last Modified : St 7. dubna 2021, 16:43:55 * Created By : <NAME> <<EMAIL>> * URL : https://codingcompetitions.withgoogle.com/codejam/round/000000000019fd74/000000000...
#include "renderer.hpp" #include <SDL.h> #include <OgreRoot.h> #include <OgreRenderWindow.h> #include <OgreTextureManager.h> #include <OgreTexture.h> #include <OgreHardwarePixelBuffer.h> #include <OgreCamera.h> #include <OgreViewport.h> #include <extern/sdl4ogre/sdlwindowhelper.hpp> #include <components/ogreinit/og...
/****************************************************************************************************** * Picross * Copyright (C) 2009-2020 <NAME> (tricksterguy87[AT]gmail[DOT]com) * * This software is provided 'as-is', without any express or implied warranty. * In no event will the authors be held liable for any ...
/*============================================================================= Copyright (c) 2003 <NAME> http://spirit.sourceforge.net/ Use, modification and distribution is subject to the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/L...
#include <iostream> #include <nan.h> #include "Config.hpp" #include "Converter.hpp" #include "DictConverter.hpp" // For faster build #include "BinaryDict.cpp" #include "Config.cpp" #include "Conversion.cpp" #include "ConversionChain.cpp" #include "Converter.cpp" #include "DartsDict.cpp" #include "Dict.cpp" #include "...
/* * Copyright 2018 The Cartographer 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.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law...
/* * A sample of the simpliest agent which has several states. * The agent uses different handlers for the same message. * At the beginning of its work agent initiates a periodic message. * Then agent handles this messages and switches from one state * to another. * * A work of the SObjectizer Environment is fin...
#include "TcpServer.h" #include <QDataStream> #include <QTcpSocket> #include <QTime> #include <QDomDocument> #include <Utils.h> #include <global.h> //#include <QMessageBox> //static inline qint32 ArrayToInt(QByteArray source); //static inline QByteArray IntToArray(qint32 source); TcpServer::TcpServer(...
#include <fat32_vfs.h> #include <fatfs/ff.h> #include <memory/page_frame_allocator.h> #include <memory/heap.h> #include <utils/log.h> #include <utils/assert.h> using namespace fs; using namespace fs::vfs; fat32_mount::fat32_mount(int disk_id, char* name) { FATFS* fs = (FATFS*) memory::global_allocator.request_pa...
/**************************************************************************** ** ** Copyright (C) 2016 Canonical, Ltd. ** Contact: https://www.qt.io/licensing/ ** ** This file is part of the plugins of the Qt Toolkit. ** ** $QT_BEGIN_LICENSE:LGPL$ ** Commercial License Usage ** Licensees holding valid commercial Qt lic...
// Copyright (c) 2004-2022 <NAME> / LittleWing Company Limited. // See LICENSE file for terms and conditions of use. #include "core.h" #include "vm.h" #if ENABLE_LLVM_JIT #include <llvm/Support/InitLLVM.h> #include <llvm/Support/TargetSelect.h> #include <llvm/Support/DynamicLibrary.h> #endif int main_command_l...
/* This example code is in the Public Domain (or CC0 licensed, at your option.) Unless required by applicable law or agreed to in writing, this software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. */ #include "freertos/FreeRTOS.h" #include "f...
/* Copyright (c) 2007-2011 iMatix Corporation Copyright (c) 2007-2011 Other contributors as noted in the AUTHORS file This file is part of 0MQ. 0MQ is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Softw...
/************************************************************************ * Copyright 2013 <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...
/*============================================================================= # Author: <NAME> - https://github.com/mjenrungrot/ # FileName: 10592.cc # Description: UVa Online Judge - 10592 =============================================================================*/ #include <bits/stdc++.h> ...
/* boundary cells based on methods in (Hardcastle, 2015) and (Laptev and Burgess, 2019) */ struct angle_details { double boundary_angle = 0.0; double boundary_angle_2 = 0.0; bool boundary_found = false; bool boundary_found_2 = false; }; angle_details detect_boundary(double x, double y, G *g) { struct angle_de...
// Copyright (c) 2019-2020 LG Electronics, 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...
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. // SPDX-License-Identifier: Apache-2.0 #include <grpcpp/grpcpp.h> #include <glib.h> #include <string> #include <ctime> #include <unistd.h> #include <fcntl.h> #include <sys/mman.h> #include <sys/stat.h> #include "Inference.grpc.pb.h" #include "Lookou...
/////////1/////////2/////////3/////////4/////////5/////////6/////////7/////////8 // Name : // Author : Avi // Revision : $Revision: #28 $ // // Copyright 2009-2020 ECMWF. // This software is licensed under the terms of the Apache Licence version 2.0 // which can be obtained at http://www.apache.org/lic...
// _ _____ __________ // | | / / _ | / __/_ __/ Visibility // | |/ / __ |_\ \ / / Across // |___/_/ |_/___/ /_/ Space and Time // // SPDX-FileCopyrightText: (c) 2018 The VAST Contributors // SPDX-License-Identifier: BSD-3-Clause #pragma once #ifdef SUITE # define CAF_SUITE SUITE #en...
# include <cstdlib> # include <iostream> # include <iomanip> # include <ctime> # include <cmath> using namespace std; void timestamp ( ) { # define TIME_SIZE 40 static char time_buffer[TIME_SIZE]; const struct tm *tm; time_t now; now = time ( NULL ); tm = localtime ( &now ); return; # undef TIME_SIZE } ...
#include "competition.h" #include "utils.h" #include <std_srvs/Trigger.h> //////////////////////// Competition::Competition(ros::NodeHandle & node): current_score_(0) { node_ = node; } //////////////////////// void Competition::init() { // Subscribe to the '/ariac/current_score' topic. double time_called = ro...
// File_Extractor 0.4.0. http://www.slack.net/~ant/ #include "Zlib_Inflater.h" #include <assert.h> #include <string.h> /* Copyright (C) 2006 <NAME>. This module is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Founda...
#include <Rcpp.h> #include "StudyPhase.h" #include "EnvironmentCallsR.h" #include "Statistics.h" #include "FypUtils.h" #include <iostream> // Each cell will perform for a series of theta levels. // Also, for each level there will be n number of // performances. We set this configuration now. StudyPhase::StudyPhase(co...
#include "KPM.hpp" #include "wrappers.hpp" #include "thread.hpp" using namespace cpb; namespace { void wrap_kpm_strategy(py::module& m, char const* name) { auto const kpm_defaults = kpm::Config(); m.def( name, [](Model const& model, std::pair<float, float> energy, kpm::Kernel const& kernel, ...
/*! * \file CIncEulerVariable.cpp * \brief Definition of the variable classes for incompressible flow. * \author <NAME>, <NAME> * \version 7.0.6 "Blackbird" * * SU2 Project Website: https://su2code.github.io * * The SU2 Project is maintained by the SU2 Foundation * (http://su2foundation.org) * * Copyright 2...
/** Copyright 2020 Alibaba Group Holding 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 http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in w...
/*! * @brief General database interface * * @copyright Copyright (c) 2015-2019 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-...
#include "RPIHardware.h" #include "RFM69.h" #include <cstdio> #include <signal.h> #include <curl/curl.h> #include <cstring> #include <tbb/include/tbb/concurrent_queue.h> #include <tbb/include/tbb/task_scheduler_init.h> #include <tbb/include/tbb/task.h> volatile sig_atomic_t force_exit = false; #define CS_PIN RPI_V2_...
#include "TriSetBVHLeaf.h" #include "BoundingVolume.h" bool TriSetBVHLeaf::Splittable(void) { // This function should return true if there is more than the maximum // number of triangles stored in this leaf. // To test the robustness of your implementation, this limit should be one triangle. if (m_Data.m_TriIndic...
/////////////////////////////////////////////////////////// /// This is free and unencumbered software released into the public domain. /// /// Anyone is free to copy, modify, publish, use, compile, sell, or /// distribute this software, either in source code form or as a compiled /// binary, for any purpose, commerci...
#include <string> #include "funcionesDeBiblioteca.h" using namespace std; // Las siguientes funciones y constantes son las que el "framework" espera que existan. // Se deben completar para crear el programa. extern const int RESOLUCION_HORIZONTAL = 800; extern const int RESOLUCION_VERTICAL = 500; extern const int TA...
//===-- llvm-nm.cpp - Symbol table dumping utility for llvm ---------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
// Copyright (c) 2006-2008 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/basictypes.h" #include "base/scoped_vector.h" #include "chrome/browser/history/query_parser.h" #include "testing/gtest/include/gte...
#include <limits> #include <string> #include <FL/Fl.H> #include <FL/Fl_Text_Display.H> #include <FL/Fl_Menu_Bar.H> #include <FL/Fl_Window.H> using namespace std; namespace Examples { class Main_Window : public Fl_Window { public: Main_Window() : Fl_Window(200, 100, 300, 300, "Menu bar example") { resiza...
/** * @file configuration_sim.cc * * @copyright 2019 3081 Staff, All rights reserved. */ #include <iostream> #include <fstream> #include "src/config_manager.h" #include "src/configuration_simulator.h" #include "drivers/configuration_sim.h" using namespace std; // NOLINT // Takes first argument (config file) and...