text
stringlengths
7
961k
/****************************************************************************** * Project: PROJ.4 * Purpose: Implementation of the airy (Airy) projection. * Author: Gerald Evenden (1995) * Thomas Knudsen (2016) - revise/add regression tests * *********************************************************...
#include "zbBase.h" namespace zbSys { zThreadsafeQueueFifo<zenSys::zTask*, 1024> gQueuePendingTask; zThreadsafeQueueFifo<zbFiber*, zbFiber::keFiberCount> gQueueAvailableFiber; zThreadsafeQueueFifo<zbFiber*, zbFiber::keFiberCount> gQueueSuspendedFiber[zbFiber::keThreadMax]; void FiberUpdateLoop(zUInt _uThreadId) {...
#include <numeric> #include "MatrixTypeTransformer.h" #include "rose.h" #include "sageGeneric.h" #include "utility/utils.h" namespace sb = SageBuilder; namespace ru = RoseUtils; namespace MatlabToCpp { // \note see below for an alternative approach struct MatrixTypeSetter : AstSimpleProcessing { typedef...
//////////////////////////////////////////////////////////////////////////////////////// //...................................................................................... // This is a part of AI Library [Arthur's Interfaces Library]. . // 1998-2001 Arthur Amshukov ...
// 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 "chrome/common/security_filter_peer.h" #include "app/l10n_util.h" #include "app/resource_bundle.h" #include "base/gfx/png_encoder.h" #i...
/*! * @file rt_spi.h * @brief SPI communication to spine board */ #ifdef linux #include <byteswap.h> #include <math.h> #include <pthread.h> #include <stdio.h> #include <string.h> #include <linux/spi/spidev.h> #include "rt/rt_spi.h" #include <lcm/lcm-cpp.hpp> unsigned char spi_mode = SPI_MODE_0; unsigned char spi_...
#include <fstream> #include <numeric> // std::accumulate #ifdef USE_CERES #include <ceres/ceres.h> #include <ceres/rotation.h> #endif #include <opencv2/core/core.hpp> #ifdef USE_EIGEN #include <Eigen/Dense> #include <opencv2/core/eigen.hpp> #endif #include <openpose/3d/cameraParameterReader.hpp> #includ...
#include "Common.h" #include "BuildingData.h" ConstructionData::ConstructionData() { // set up the buildings vector buildings = std::vector< std::vector<Building> > (NumBuildingStates, std::vector<Building>()); // set up the index vector buildingIndex = std::vector< size_t >(NumBuildingStates, 0); } bool Constru...
#include "Event.h" #include "../Engine.h" Event* Event::Instance = nullptr; Event::Event() // initialize keyboard states { keystate = SDL_GetKeyboardState(nullptr); } void Event::Listen() { SDL_Event event; while(SDL_PollEvent(&event)) { switch(event.type) { case SDL_QUIT...
#include<bits/stdc++.h> using namespace std; // Understanding the concept behind sorted rotated array : // 1 rotaton means the first element goes to last // PIVOT element is that element where the sorted // array ends and the rotated elements begin, thus // pivot element will always be the max of the array // Also...
/* ============================================================================ * Copyright (c) 2009-2016 BlueQuartz Software, LLC * * 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...
/* * Copyright 2011 The LibYuv 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 contributing p...
#include "dashboard.h" #include "main.h" SpeedDial::SpeedDial(float x, float y){ this->position = glm::vec3(x, y, 0); GLfloat vertex_buffer_data[900]; int sides = 100; float radius = 1.0f; float angle = (2*M_PIl)/sides; for(int i =0; i < sides/2;i++) { vertex_buffer_data[9*i] = 0...
/* * Copyright 2020 Xilinx, 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...
// Copyright 2017 The Ray 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 or agreed to i...
//===-- TraceTests.cpp - Tracing unit tests ---------------------*- C++ -*-===// // // 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 // //===---------------------------...
// Copyright (C) 2018 Intel Corporation // // SPDX-License-Identifier: Apache-2.0 // #pragma once #include "ie_api.h" #include "ie_blob.h" namespace InferenceEngine { /** * @brief Data copy with taking into account layout and precision params */ INFERENCE_ENGINE_API_CPP(void) blob_copy(Blob::Ptr src, Blob::Ptr ds...
/* * This file is part of the GROMACS molecular simulation package. * * Copyright (c) 2012,2013,2014,2015,2016 by the GROMACS development team. * Copyright (c) 2017,2018,2019,2020,2021, by the GROMACS development team, led by * Mark Abraham, David van der Spoel, Berk Hess, and Erik Lindahl, * and including many o...
// Copyright 2019 Carlos San Vicente // // 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...
/* * This file is a part of Pocket Heroes Game project * http://www.pocketheroes.net * https://code.google.com/p/pocketheroes/ * * Copyright 2004-2010 by Robert Tarasov and Anton Stuk (iO UPG) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance w...
/* * Copyright 2011 Google Inc. * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #include "include/docs/SkPDFDocument.h" #include "src/pdf/SkPDFDocumentPriv.h" #include "include/core/SkStream.h" #include "include/docs/SkPDFDocument.h" #include "include/pr...
/*************************************************************************/ /* cylinder_shape.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <string> #include <vector> #include <iostream> using namespace std; struct Cvor { char znak; int pos; }; struct Trie { int numCvor; vector<Cvor>V[9500]; vector<Cvor>cvorovi; Trie() { numCvor=1; Cvor C; C.pos=0; } bool find(string S) ...
/* * Divider.cpp * * Created on: July 31, 2020 * Author: Nithish */ #include "Divider.h" #include <iostream> #include <vector> #include <limits> using namespace std; template<typename T> Divider<T>::Divider() { } ; template<typename T> Divider<T>::~Divider() { } ; template<typename T> double Divider<T>::...
// license:GPL-2.0+ // copyright-holders: Felipe Sanches /*************************************************************************** Sigtron Daruma DS348 dot-matrix printer https://www.hardstand.com.br/daruma/ds348 Driver by Felipe Correa da Silva Sanches <juca@members.fsf.org> Model: Print Plus - D...
// This file is part of OpenCV project. // It is subject to the license terms in the LICENSE file found in the top-level directory // of this distribution and at http://opencv.org/license.html. // // // License Agreement // For Open Source Computer Vision Library // // Copyright ...
// -*- tab-width: 2; indent-tabs-mode: nil; coding: utf-8-with-signature -*- //----------------------------------------------------------------------------- // Copyright 2000-2022 CEA (www.cea.fr) IFPEN (www.ifpenergiesnouvelles.com) // See the top-level COPYRIGHT file for details. // SPDX-License-Identifier: Apache-2...
#include <cpp_bindgen/common/function_traits.hpp> namespace ft = cpp_bindgen::function_traits; static_assert(std::is_same<typename ft::result_type<void(int)>::type, void>::value, ""); static_assert(std::is_same<typename ft::result_type<void(int, double)>::type, void>::value, ""); static_assert(std::is_same<typename ft...
//===--- Evaluator.cpp - Request Evaluator Implementation -----------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
// Copyright 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 "chrome/browser/extensions/extension_sync_service_factory.h" #include "base/prefs/pref_service.h" #include "chrome/browser/extensions/extension_...
/****************************************************************************** * Copyright 2017 The Apollo 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 ...
#include <cstdio> #include <algorithm> using namespace std; const int MAXLEN=10005;// extra 0 here because the limitation is not same as the problem describes const int MAXN=105; int G[MAXN][MAXN]; int main(){ int n,m; while(scanf("%d%d",&n,&m)!=EOF){ for(int i=1; i<=n; i++){ for(int j=1;...
/* Copyright 2017 R. Thomas * Copyright 2017 Quarkslab * * 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 appli...
#include "sage3basic.h" #include "clang-frontend-private.hpp" SgSymbol * ClangToSageTranslator::GetSymbolFromSymbolTable(clang::NamedDecl * decl) { if (decl == NULL) return NULL; SgScopeStatement * scope = SageBuilder::topScopeStack(); SgName name(decl->getNameAsString()); #if DEBUG_SYMBOL_TABLE_LOOKUP ...
/**************************************************************************** * * Copyright 2017 Proyectos y Sistemas de Mantenimiento SL (eProsima). * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * 1. Redistr...
#ifndef MCDataProducts_StrawHitMCTruth_hh #define MCDataProducts_StrawHitMCTruth_hh // // This is a place to put additional information produced by HitMaker, // like true drift distance, signal propagation time, etc. // // Original author Ivan Logashenko // // C++ includes #include <iostream> #include <vector> // Mu2...
/****************************************************************************** * Copyright (c) Open Connectivity Foundation (OCF), AllJoyn Open Source * Project (AJOSP) Contributors and others. * * SPDX-License-Identifier: Apache-2.0 * * All rights reserved. This program and the accompanying ...
#include <gtest/gtest.h> #include "simple_graph/list_graph.hpp" #include "simple_graph/algorithm/bellman_ford.hpp" namespace { using simple_graph::vertex_index_t; class UndirectedListGraphTest : public ::testing::Test { protected: simple_graph::ListGraph<false, int, int, ssize_t> undirected_graph; }; class Dire...
#pragma once #include <crest/geometry/indexed_mesh.hpp> #include <crest/geometry/biscale_mesh.hpp> #include <cassert> #include <algorithm> #include <iterator> #include <cmath> namespace crest { namespace detail { template <typename Scalar, typename Index> std::vector<Index> mark_refinement_candid...
#include"../header/input.h" #include"../header/parameters.h" #include<iostream> #include<fstream> #include<string> #include<vector> #include<sstream> Input getInputFromFile(const std::string& instanceName) { /// <summary> /// Read instane data from the text file /// </summary> /// <param name="instanceName"></par...
/* Copyright (c) 2015-2022 The Khronos Group Inc. * Copyright (c) 2015-2022 Valve Corporation * Copyright (c) 2015-2022 LunarG, Inc. * Copyright (C) 2015-2022 Google Inc. * Modifications Copyright (C) 2020-2022 Advanced Micro Devices, Inc. All rights reserved. * * Licensed under the Apache License, Version 2.0 (t...
#pragma once #include <QString> #include <pajlada/signals/signal.hpp> namespace chatterino { class Updates { Updates(); public: enum UpdateStatus { None, Searching, UpdateAvailable, NoUpdateAvailable, SearchFailed, Downloading, DownloadFailed, ...
// // Created by Linda Uruchurtu on 03/10/2018. // #include "polars/TimeSeries.h" #include "polars/numc.h" #include "gtest/gtest.h" #include <sstream> #include <string> namespace TimeSeriesTests { using namespace polars; using namespace std::chrono; TEST(TimeSeries, constructor) { using TimePoint = time_poi...
// Copyright (c) 2009-2012 The Bitcoin developers // Copyright (c) 2011-2012 Litecoin Developers // Copyright (c) 2013 MorrisCoin Developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <boost/assign/list_of.hpp>...
// Copyright (C) 2002-2012 Nikolaus Gebhardt / Thomas Alten // This file is part of the "Irrlicht Engine". // For conditions of distribution and use, see copyright notice in irrlicht.h #include "IrrCompileConfig.h" #include "IBurningShader.h" #ifdef _IRR_COMPILE_WITH_BURNINGSVIDEO_ // compile flag for this file #und...
/* * Copyright 2006-2008 The FLWOR Foundation. * * 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 2018 The Emscripten Authors. All rights reserved. // Emscripten is available under two separate licenses, the MIT license and the // University of Illinois/NCSA Open Source License. Both these licenses can be // found in the LICENSE file. #include <pthread.h> #include <emscripten.h> #include <emscripten...
/*------------------------------------------------------------------------ * (The MIT License) * * Copyright (c) 2008-2011 Rhomobile, Inc. * * 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 ...
/* * Copyright 2013 Stanford University. * 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 co...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__new_free_wchar_t_16.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__new_free.label.xml Template File: sources-sinks-16.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Management Routines * ...
#include <bits/stdc++.h> using namespace std; int main() { cout << "Ola, GEPC!" << endl; return 0; }
// Copyright (c) 2020 by Robert Bosch GmbH. 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...
/* Source Code for the TGA library You may use this library for whatever you want. This library is provide as is, meaning that I won't take any responsability for any damages that you may incur from its usage. */ ...
//================================================================================================== /*! Copyright 2015 NumScale SAS Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt) */ //====================================...
#include "json.h" #include <cassert> #include <set> #include <iostream> // TODO Currently, all syntax checking is done with asserts. Should probably make some sort of error reporting, // but I'm not sure if exceptions are the way to do it. Maybe something else, like Rust's std::result? static void skip_whitespace(c...
/* === Doxygen Comment ======================================= */ /*! * \file filter.cxx * \copyright (c) 2004 SNIFS-Supernova Factory Experiment * \date Wed Aug 6 17:44:35 2003 * \author Emmanuel Gangler <e.gangler@ipnl.in2p3.fr> * \version 0.0 * \brief * ...
#include "diablo.h" #include "../3rdParty/Storm/Source/storm.h" #include "../DiabloUI/diabloui.h" DEVILUTION_BEGIN_NAMESPACE static DWORD sgdwOwnerWait; static DWORD sgdwRecvOffset; static int sgnCurrMegaPlayer; static DLevel sgLevels[NUMLEVELS]; static BYTE sbLastCmd; static TMegaPkt *sgpCurrPkt; static BYTE sgRecvB...
#define PJ_LIB__ #include <errno.h> #include <math.h> #include "proj.h" #include "proj_internal.h" PROJ_HEAD(fouc_s, "Foucaut Sinusoidal") "\n\tPCyl, Sph"; #define MAX_ITER 10 #define LOOP_TOL 1e-7 namespace { // anonymous namespace struct pj_opaque { double n, n1; }; } // anonymous namespace static PJ...
// Copyright (c) 2013, The Toft Authors. // All rights reserved. // // Author: CHEN Feng <chen3feng@gmail.com> // toft/system/time/clock.cpp #include "platform/toft_system_time_clock.h" #include <sys/time.h> #include <time.h> namespace bubblefs { namespace mytoft { class SystemClock : public Clock { public: exp...
/* * Copyright (c) 2011-2013,2017 ARM Limited * All rights reserved * * The license below extends only to copyright in the software and shall * not be construed as granting a license to any other intellectual * property including but not limited to intellectual property relating * to a hardware implementation of...
// Copyright (c) 2009-2016 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "rpc/server.h" #include "chainparams.h" #include "clientversion.h" #include "net.h" #include "net_processing.h" #in...
#include <iostream> #include <vector> int main () { std::vector<int> myvector (3,100); std::vector<int>::iterator it; it = myvector.begin(); it = myvector.insert ( it , 200 ); myvector.insert (it,2,300); // "it" no longer valid, get a new one: it = myvector.begin(); std::vector<int> anothervector (...
//===- TestMatchers.cpp - Pass to test matchers ---------------------------===// // // 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 // //===---------------------------...
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. #include "test_utils.h" #include "core/graph/graph.h" namespace onnxruntime { namespace test { IExecutionProvider* TestCPUExecutionProvider() { static CPUExecutionProviderInfo info; static CPUExecutionProvider cpu_provi...
#include <vector> #include <gtest/gtest.h> #include "chapter-16/greedy_activity_selector/greedy_activity_selector.hpp" using namespace CLRS; TEST(RecursiveGreedySelector, Normal) { unsigned s[12] = {0, 1, 3, 0, 5, 3, 5, 6, 8, 8, 2, 12}; unsigned f[12] = {0, 4, 5, 6, 7, 9, 9, 10, 11, 12, 14, 16}; std::vector<un...
/**************************************************************************** Copyright (c) 2013-2014 Chukong Technologies Inc. http://www.cocos2d-x.org 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 th...
// Copyright (c) 2014-2019, The Monero Project // // 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 /...
/* WARNING: THIS FILE IS AUTO-GENERATED. DO NOT MODIFY. This file was generated from CalculatorRequestReply.idl using "rtiddsgen". The rtiddsgen tool is part of the RTI Connext distribution. For more information, type 'rtiddsgen -help' at a command shell or consult the RTI Connext manual. */ #include <stri...
// Copyright 2007-2009 The SharpSvn 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 applicable law...
#include "Timer.h" #include "Laplacian.h" #include <iomanip> int main(int argc, char *argv[]) { using array_t = float (&) [XDIM][YDIM]; float *uRaw = new float [XDIM*YDIM]; float *LuRaw = new float [XDIM*YDIM]; array_t u = reinterpret_cast<array_t>(*uRaw); array_t Lu = reinterpret_cast<array_...
// uninhm // https://atcoder.jp/contests/abc186/tasks/abc186_a // basic math #include <iostream> using namespace std; int main() { int n, w; cin >> n >> w; cout << n/w << endl; }
/* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "ObjectSensitiveDcePass.h" #include <functional> #include "ConcurrentContainers.h" #include "DexUtil.h" #include "Hierar...
#pragma once #include "vector.hh" #include "matrix3x3.hh" #include <fstream> #include <string> #include <vector> using namespace std; class BrylaGeometryczna { protected: vector<Vector<3>> pkt1; Vector<3> Przesuniecie; Vector<3> srodek; string nazwa_pliku; string nazwa_pliku_do_zapisu; double ...
/* * * Copyright (c) 2013-2017 Nest Labs, Inc. * 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...
#include "c74_min.h" using namespace c74::min; class loud : public object<loud>, public vector_operator<> { public: MIN_DESCRIPTION {"distortion and demolition of air molecules, modeled"}; MIN_TAGS {"distortion, dynamics"}; MIN_AUTHOR {"Isabel Kaspriskie"}; inlet<> in1 {this, "(signal) Input1"}; inlet<> in2 {th...
/* * Copyright 2020, Jaidyn Levesque <jadedctrl@teknik.io> * All rights reserved. Distributed under the terms of the MIT license. */ #include "Entry.h" #include <iostream> #include <fstream> #include <StorageKit.h> #include "Util.h" Entry::Entry() : fTitle(BString()), fDescription(BString()), fFeedTitle(BS...
///////////////////////////////////////////////////////////////////////////// // apps/include/graphics/twm4nx/ciconwidget.hxx // // 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 regardin...
#include <vector> #include <string> #include <utility> #include <map> #include <boost/shared_ptr.hpp> class IntWrapper { public: int i_; IntWrapper(): i_(0) {} IntWrapper(const int i): i_(i) {} // for map bool operator<( const IntW...
#include "stdafx.h" #include "config_document.h" #include "cJSON.h" namespace cxx { config_node::config_node(cJSON* jsonElementImplementation) : mJsonElement(jsonElementImplementation) { } config_node::~config_node() { } config_node config_node::get_child(const char* name) const { if (mJsonElement == nullpt...
/* 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/. Copyright (c) 2018 Panda Team */ #include <variant> #include <chrono> #include <deque> // for Record test #include "../../...
#include "client.h" //#include <QOve #include <QJSEngine> #include <QJSValueList> #include <QDebug> namespace SocketIO { Client::Client(int eioVersion, QObject *parent) : QObject(parent) { _engineIoVerion = eioVersion; _state = Disconnected; _ws = new QWebSocket(); _accessManager = new QNetworkA...
/*========================================================================= Program: Visualization Toolkit Module: TestBSPTree.cxx Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is d...
// Created by Pierre Ekelmans on 20/03/2018. // Copyright © 2018 Pierre Ekelmans. All rights reserved. // #include "SpatialGaussianStimulus.hpp" SpatialGaussianStimulus::SpatialGaussianStimulus(NeuronPopSample *neur,std::vector<std::string> *input,GlobalSimInfo * info):Stimulus(neur,info){ //****************...
#include "aepch.h" #include "LinuxSocketClient.h" namespace Ancora { LinuxSocketClient::LinuxSocketClient(const SocketClientProps& clientProps) : m_Props(clientProps) { m_Domain = m_Props.UseIPv6 ? AF_INET6 : AF_INET; int connectionType = m_Props.UseTCP ? SOCK_STREAM : SOCK_DGRAM; if ((m_ClientDe...
/* * Curveball.cpp * * Created on: 26.05.2018 * Author: Hung Tran <htran@ae.cs.uni-frankfurt.de>, Manuel Penschuck <networkit@manuel.jetzt> */ #include "../../include/networkit/auxiliary/Random.hpp" #include "../../include/networkit/randomization/Curveball.hpp" #include "../../include/networkit/randomizat...
/* * Copyright (c) 2021, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ #include <AK/Assertions.h> #include <AK/Format.h> #include <AK/GenericLexer.h> #include <AK/StdLibExtras.h> #include <ctype.h> #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> enum class ...
// Copyright 2019 The Marl 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed...
#include "qtdmessagechatchangephoto.h" #include "utils/i18n.h" QTdMessageChatChangePhoto::QTdMessageChatChangePhoto(QObject *parent) : QTdMessageContent(parent) , m_photo(new QTdPhotos) { setType(MESSAGE_CHAT_CHANGE_PHOTO); } QTdPhotos *QTdMessageChatChangePhoto::photo() const { return m_photo.data();...
/* * FormatNamespace.cpp ***************************************************************************** * Copyright © 2019 VideoLabs, VideoLAN and VLC Authors * * This program is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as published * by th...
// Copyright (c) YugaByte, 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 writ...
// Copyright (c) 2012 The Bitcoin developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include <string> #include "version.h" // Name of client reported in the 'version' message. Report the same name // for both bitco...
#pragma once #include "../core.hpp" #include <vector> namespace ek { template<typename S, typename T> inline void serialize(IO<S>& io, std::vector<T>& value) { uint32_t size; if constexpr (is_readable_stream<S>()) { io.value(size); value.resize(size); } else { size = static_cast...
#include "stdio.h" #include "string.h" #include "CgiPacket.h" CCgiPacket::CCgiPacket() { } CCgiPacket::~CCgiPacket() { } int CCgiPacket::SscanfString(const char *pszBuffer , const char *reg , char *szResult) { #if 0 char * p = strstr((char *)pszBuffer,(char *)reg); if(p == NULL) return 0; char buf[512] = {0}...
/******************************************************************************* * Copyright (c) 2000, 2022 IBM Corp. and others * * This program and the accompanying materials are made available under * the terms of the Eclipse Public License 2.0 which accompanies this * distribution and is available at https://w...
// Copyright (c) 2011-present, Facebook, Inc. All rights reserved. // This source code is licensed under both the GPLv2 (found in the // COPYING file in the root directory) and Apache 2.0 License // (found in the LICENSE.Apache file in the root directory). // // Copyright 2014 The LevelDB Authors. All rights reser...
/* * Sample clusterer. * * This clusterer produces centroids by clustering a randomly selected subset * of the items. It then uses these centroids to compute cluster assignments * for all of the items. * * Items are selected for inclusion in the subset to cluster with probablility * proportional to their weigh...
//===-- LLVMSymbolize.cpp -------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===-------------------------------------------------------...
// Copyright 2020 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. // clang-format off #include <Weave/DeviceLayer/internal/WeaveDeviceLayerInternal.h> #include <Weave/DeviceLayer/ConnectivityManager.h> #include <Weave/Dev...
/* * Copyright (C) 2019-2020 Intel Corporation * * SPDX-License-Identifier: MIT * */ #include "level_zero/tools/source/metrics/metric_tracer_imp.h" #include "shared/source/helpers/debug_helpers.h" #include "level_zero/core/source/device.h" namespace L0 { ze_result_t MetricTracerImp::readData(uint32_t maxRepor...
#include "Layer.h" #include <cinder/gl/draw.h> #include <cinder/gl/scoped.h> namespace touchpoints { namespace drawing { Layer::Layer() {} Layer::Layer(int windowWidth, int windowHeight, ourColors backgroundColor) : windowWidth(windowWidth), windowHeight(windowHeight), backgroundColor(backgroundColor) { frameb...