text
stringlengths
7
961k
/* * Copyright (c) 2010-2015 Pivotal Software, 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-2.0 * * Unless req...
// 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/ui/translate/translate_bubble_model_impl.h" #include <utility> #include "chrome/browser/translate/chrome_translate_client.h" #i...
// MIT License // Copyright (c) 2020 Evan Pezent // 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, mer...
/* * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. 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. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" fil...
/** * Copyright (C) 2018-present MongoDB, Inc. * * This program is free software: you can redistribute it and/or modify * it under the terms of the Server Side Public License, version 1, * as published by MongoDB, Inc. * * This program is distributed in the hope that it will be useful, * but W...
//===- SPIRVReader.cpp - Converts SPIR-V to LLVM ----------------*- C++ -*-===// // // The LLVM/SPIR-V Translator // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // // Copyright (c) 2014 Advanced Micro Devices, Inc. All rights rese...
/* * * Confidential Information of Telekinesys Research Limited (t/a Havok). Not for disclosure or distribution without Havok's * prior written consent. This software contains code, techniques and know-how which is confidential and proprietary to Havok. * Product and Trade Secret source code contains trade secrets ...
/* The MIT License (MIT) Copyright (c) 2017 Tim Warburton, Noel Chalmers, Jesse Chan, Ali Karakus 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 limitatio...
// This is a personal academic project. Dear PVS-Studio, please check it. // PVS-Studio Static Code Analyzer for C, C++, C#, and Java: http://www.viva64.com #include <fstream> #include <iomanip> #include <boost/algorithm/string/replace.hpp> #include <boost/algorithm/string.hpp> #include "kyiv.h" #include "asm_disasm....
#include "gamecomponents.hpp" #include "player.hpp" namespace Sys { Character::Character(entityid_t myEntity, double argx, double argy) : Component(myEntity), player(nullptr), hspeed(0), vspeed(0), myself(false) { // movement hull hull = new Hull(myEntity, 12, 36, 10, 12); // hitboxes ...
//===- Driver.cpp ---------------------------------------------------------===// // // 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 2016 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 "http2/hpack/decoder/hpack_block_collector.h" #include <algorithm> #include <memory> #include "http2/platform/api/http2_logging.h" #include "ht...
/* * ===================================================================================== * * Filename: * * Description: * * Version: 1.0 * Created: Thanks to github you know it * Revision: none * Compiler: g++ * * Author: Mahmut Erdem ÖZGEN m.erdemozgen...
int activityNotifications(vector<int> expenditure, int d) { int countRange = 201; int countArray[202]; int tempArray[202]; int n = expenditure.size(); for (int i = 0; i <= countRange; ++i) countArray[i] = 0; for (int i = 0; i < d; ++i) ++countArray[expenditu...
/* * ----------------------------------------------------------------------------- * This source file is part of OGRE-Next * (Object-oriented Graphics Rendering Engine) * For the latest info, see http://www.ogre3d.org/ * * Copyright (c) 2000-2014 Torus Knot Software Ltd * * Permission is hereby granted, free of...
#include "SistemasdeControle/headers/advancedModelLibs/droneModel/dronemodel.h" template <class Type> ModelHandler::droneModel<Type>::droneModel() { X_pp = 0; Y_pp = 0; Z_pp = 0; X_p = 0; Y_p = 0; Z_p = 0; X = 0; Y = 0; Z = 0; phi_pp = 0; theta_pp = 0; psi_pp = 0; phi_p = 0; theta_p = 0; psi_p = 0; phi = 0...
/***************************************************************************************** * * * OpenSpace * * ...
/** * Copyright (c) 2006-2019 LOVE Development Team * * This software is provided 'as-is', without any express or implied * warranty. In no event will the authors be held liable for any damages * arising from the use of this software. * * Permission is granted to anyone to use this software for any purpose, * ...
// Copyright 2014 The Crashpad 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 ...
#include "Main.h" #include "Manager.h" int main() { Manager* manager = new Manager(); manager->operateInputs(); delete manager; std::cin.get(); // Hold the console open return 0; }
// This is automatically generated by PlayFab SDKGenerator. DO NOT modify this manually! #include "PlayFabProxyPrivatePCH.h" #include "PFClientRegisterPlayFabUser.h" UPFClientRegisterPlayFabUser::UPFClientRegisterPlayFabUser(const FObjectInitializer& ObjectInitializer) : Super(ObjectInitializer) , SuccessDelegate(Pl...
// MESSAGE SERIAL_UDB_EXTRA_F2_B support class #pragma once namespace mavlink { namespace matrixpilot { namespace msg { /** * @brief SERIAL_UDB_EXTRA_F2_B message * * Backwards compatible version of SERIAL_UDB_EXTRA - F2: Part B */ struct SERIAL_UDB_EXTRA_F2_B : mavlink::Message { static constexpr msgid_t MS...
/* * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org> * Copyright (c) 2021, Mohsan Ali <mohsan0073@gmail.com> * * SPDX-License-Identifier: BSD-2-Clause */ #include "ViewWidget.h" #include <AK/URL.h> #include <LibCore/ArgsParser.h> #include <LibCore/System.h> #include <LibDesktop/Launcher.h> #include ...
/* * Copyright (c) 2021, NVIDIA CORPORATION. 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 requir...
// Copyright 2011 Google 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-2.0 // // Unless required by applicable...
class ServiceBridge_client{ };
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE806_wchar_t_snprintf_82_bad.cpp Label Definition File: CWE122_Heap_Based_Buffer_Overflow__cpp_CWE806.label.xml Template File: sources-sink-82_bad.tmpl.cpp */ /* * @description * CWE: 122 Heap Based Buffer Overflow * BadSource: I...
/* * Copyright (c) 2021 Huawei Device Co., Ltd. * 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 <QtGlobal> // Automatically generated by extract_strings.py #ifdef __GNUC__ #define UNUSED __attribute__((unused)) #else #define UNUSED #endif static const char UNUSED *bitcoin_strings[] = { QT_TRANSLATE_NOOP("bitcoin-core", "" "(1 = keep tx meta data e.g. account owner and payment request information, 2 " "=...
////////////////////////////////////////////////////////////////////////////// /// Copyright 2003 and onward LASMEA UMR 6602 CNRS/U.B.P Clermont-Ferrand /// Copyright 2009 and onward LRI UMR 8623 CNRS/Univ Paris Sud XI /// /// Distributed under the Boost Software License, Version 1.0 /// ...
#include <chrono> #include <iostream> #include <unordered_map> #include <vector> using std::unordered_map; using std::vector; class Solution { public: int findMaxLength(const vector<int>& nums) { unordered_map<int, int> result; int rtn = 0; for (int i = 0, diff = 0; i < nums.size(); ++i) { if (nu...
// Licensed to the Apache Software Foundation (ASF) under one // or more contributor license agreements. See the NOTICE file // distributed with this work for additional information // regarding copyright ownership. The ASF licenses this file // to you under the Apache License, Version 2.0 (the // "License"); you may...
// Problem Statement // You are given two strings s and t of the same length. You want to change s to t. // Changing the i-th character of s to i-th character of t costs |s[i] - t[i]| that is, // the absolute difference between the ASCII values of the characters. // You are also given an integer maxCost. // Return ...
/*! * Copyright (c) 2020 Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See LICENSE file in the project root for license information. */ #ifndef LIGHTGBM_IO_MULTI_VAL_SPARSE_BIN_HPP_ #define LIGHTGBM_IO_MULTI_VAL_SPARSE_BIN_HPP_ #include <LightGBM/bin.h> #include <LightGBM/utils/openm...
#include "stdafx.h" #include "Sampling.h" using namespace Redline; using namespace mathfu; float radicalInverse_VdC(unsigned bits) { bits = (bits << 16u) | (bits >> 16u); bits = ((bits & 0x55555555u) << 1u) | ((bits & 0xAAAAAAAAu) >> 1u); bits = ((bits & 0x33333333u) << 2u) | ((bits & 0xCCCCCCCCu) >> 2u); bits = ...
#include "Smoke_Particle.h" #include "Application.h" #include "Random.h" using namespace std; Smoke_Particle::Smoke_Particle(Particles_Type type_p, float3 pos, float3 scale_, Quat rot_quat, float3 angles_, float min_width_p, float max_width_p, float min_height_p, float max_height_p, float min_depth_p, float max_depth...
// This file is a part of Julia. License is MIT: https://julialang.org/license #include "llvm-version.h" #include "platform.h" #if defined(_OS_WINDOWS_) // use ELF because RuntimeDyld COFF i686 support didn't exist // use ELF because RuntimeDyld COFF X86_64 doesn't seem to work (fails to generate function pointers)? #...
/* file: elu_backward_result.cpp */ /******************************************************************************* * Copyright 2014-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 t...
/* * * GAMS - General Algebraic Modeling System C++ API * * Copyright (c) 2017-2021 GAMS Software GmbH <support@gams.com> * Copyright (c) 2017-2021 GAMS Development Corp. <support@gams.com> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documen...
#include "DataFormats/RPCDigi/interface/RecordSLD.h" using namespace rpcrawtodigi; std::string RecordSLD::print() const { std::ostringstream str; str <<" SLD, rmb = "<<rmb(); str <<" lnk = "<<tbLinkInputNumber(); return str.str(); }
// MIT License // // Copyright (c) 2020 Jean-Louis Haywood // // 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...
#include "header/VM.h" #include <iostream> #include <cmath> extern "C"{ VMValue Lolinomial(VMValue x){ if(x.type != ValueType::INT){ std::cout << "Warning: calling 'Lolinomial' on non-integer type.\n"; } VMValue ret; ret.intValue = pow(2, x.intValue); ret.type = ValueType::INT; return ret; } VMValue LoliLol...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE762_Mismatched_Memory_Management_Routines__delete_class_realloc_65b.cpp Label Definition File: CWE762_Mismatched_Memory_Management_Routines__delete.label.xml Template File: sources-sinks-65b.tmpl.cpp */ /* * @description * CWE: 762 Mismatched Memory Management Routines...
#include "tarsnaptask.h" #include "debug.h" #include "utils.h" #if defined Q_OS_UNIX #include <signal.h> #endif #define DEFAULT_TIMEOUT_MS 5000 #define LOG_MAX_LENGTH 3072 #define LOG_MAX_SEARCH_NL 1024 TarsnapTask::TarsnapTask() : QObject(), _id(QUuid::createUuid()), _process(nullptr), _trunca...
// 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/api/braille_display_private/braille_display_private_api.h" #include <utility> #include "base/lazy_instance.h" #inclu...
// $Id$ /* Copyright (c) 2007-2015, Trustees of The Leland Stanford Junior 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...
// Copyright 2020 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 <fuchsia/settings/cpp/fidl_test_base.h> #include "base/fuchsia/scoped_service_binding.h" #include "base/fuchsia/test_component_context_for_proce...
/////////////////////////////////////////////////////////////////////////////////////////////////// // OpenGL Mathematics Copyright (c) 2005 - 2012 G-Truc Creation (www.g-truc.net) /////////////////////////////////////////////////////////////////////////////////////////////////// // Created : 2008-08-31 // Updated : 20...
// Copyright 2013 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...
#include "ray_tracing.h" namespace rtx { RayTracingArguments::RayTracingArguments() { _num_rays_per_pixel = 1; _max_bounce = 0; _next_event_estimation_enabled = false; _supersampling_enabled = true; } int RayTracingArguments::num_rays_per_pixel() { return _num_rays_per_pixel; } void RayTracingArgum...
#include <iostream> #include <algorithm> #include <stdio.h> #include <math.h> #include <vector> #include <numeric> #include <strings.h> #include <assert.h> #include <dirent.h> #include <boost/numeric/ublas/matrix.hpp> #include <boost/numeric/ublas/io.hpp> #include <boost/geometry.hpp> #include <boost/geometry/geomet...
/* * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contribut...
// 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 "net/android/net_jni_registrar.h" #include "base/basictypes.h" #include "base/android/jni_android.h" #include "base/android/jni_registrar.h"...
#include <netcdf.h> #include <string> #include <iostream> #undef NDEBUG // turn on asserts #include <cassert> #include "mntMultiArrayIter.h" void test0() { // tests the case ndims == 0 // expect one iteration // getIndices should be a no operation int ier; MultiArrayIter_t* mai; ier = mnt_m...
/*************************************************************************/ /* rasterizer_scene_gles2.cpp */ /*************************************************************************/ /* This file is part of: */ /* ...
// Copyright © Matt Jones and Contributors. Licensed under the MIT Licence (MIT). See LICENCE.md in the repository root // for more information. #include <NovelRT.Interop/Audio/NrtAudioService.h> #include <NovelRT.Interop/NrtErrorHandling.h> #include <NovelRT.h> #ifdef __cplusplus using namespace NovelRT; extern "C"...
#include "Exceptions.h" #include <sstream> using namespace KsCore; KsWinException::KsWinException(int line, const char* file, HRESULT hr) noexcept : KsException(line, file) , hr(hr) {} const char* KsWinException::what() const noexcept { std::ostringstream oss; oss << GetType() << std::endl << "[Error Code] " ...
#include <cstdio> #include <cstring> char hmr[6][6], mdk[6][6], ans[20]; void rotate() { char tmp[6][6]; for (int i = 0; i < 4; ++i) for (int j = 0; j < 4; ++j) tmp[i][j] = hmr[3-j][i]; for (int i = 0; i < 4; ++i) for (int j = 0; j < 4; ++j) hmr[i][j] = tmp[i][j]; } int main() { for (int i = 0; i < 4; ...
#include <iostream> class Person { std::string name; int age; public: void having_birthday(); int get_age(); std::string get_name(); void set_age(int x); void set_name(std::string n); }; Person person(); int main() { Person guy = person(); std::cout << "Your...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-2021 The Bitcoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #if defined(HAVE_CONFIG_H) #include <config/bitcoin-config.h> #endif #include <c...
// Copyright 2016 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "components/ntp_snippets/remote/remote_suggestion.h" #include <utility> #include "base/json/json_reader.h" #include "base/strings/stringprintf....
#ifndef IOBIEKT_RYSOWALNY_HH #define IOBIEKT_RYSOWALNY_HH #include "Dr3D_gnuplot_api.hh" class IObiektRysowalny { protected: std::shared_ptr<drawNS::Draw3DAPI> Obiekt; double index; //zmienna do przechowywania indexu bryly, zeby moc uzyc metody erase static int liczba_obiektow; static int stworzone_obiekty; p...
// Copyright 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 "ui/display/screen.h" #include "ui/display/display.h" #include "ui/gfx/geometry/rect.h" namespace display { namespace { Screen* g_screen; } ...
#include"MultiScaleTools.h" ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// // TMultiScaleSetupBase ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// //TMultiSc...
// // Created by mathis on 03/10/2020. // #pragma once #include "DrawableSettings.hpp" namespace daft::app { class ENGINE_API DirLightSettings : public DrawableSettings { Q_OBJECT public: /** * Constructor. * @param settings - settings of the directionnal light. * @param parent - parent widg...
// Copyright (C) 2020 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include <vector> #include "common_test_utils/test_constants.hpp" #include "single_layer_tests/group_convolution_backprop_data.hpp" using namespace LayerTestsDefinitions; namespace { const std::vector<InferenceEngine::Precision> netP...
// Copyright 2020 The Tint 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 ...
#include "gtest/gtest.h" #include "../model/Parrot.h" TEST(ParrotTest, SpeedOfEuropeanParrot) { auto parrot = new Parrot(EUROPEAN, 0, 0, false); EXPECT_NEAR(12.0, parrot->getSpeed(), 0.0); } TEST(ParrotTest, SpeedOfAfricanParrot_With_One_Coconut) { auto parrot = new Parrot(AFRICAN, 1, 0, false); EXPE...
// Copyright (C) 2018-2019 Intel Corporation // SPDX-License-Identifier: Apache-2.0 // #include "ext_list.hpp" #include "ext_base.hpp" #include <cmath> #include <string> #include <vector> #include <cassert> #include <algorithm> #include "ie_parallel.hpp" namespace InferenceEngine { namespace Extensions { namespace C...
/*!@file * @copyright This code is licensed under the 3-clause BSD license. * Copyright ETH Zurich, Laboratory of Physical Chemistry, Reiher Group. * See LICENSE.txt for details. */ #include "Molassembler/Stereopermutators/CycleFeasibility.h" #include "Molassembler/Detail/CyclicPolygons.h" namespace Scine { ...
/* * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org> * Copyright (c) 2022, the SerenityOS developers. * * SPDX-License-Identifier: BSD-2-Clause */ #include <LibHTTP/HttpResponse.h> namespace HTTP { HttpResponse::HttpResponse(int code, HashMap<String, String, CaseInsensitiveStringTraits>&& headers,...
#include <gdk/gdk.h> #include <gdk/gdkx.h> #include <gdk/gdkkeysyms.h> #ifdef USE_GTK3 #include <gdk/gdkkeysyms-compat.h> #endif #include <cairo.h> #ifdef USE_XV #include <X11/extensions/XShm.h> #include <X11/extensions/Xv.h> #include <X11/extensions/Xvlib.h> #endif #include "gtk_s9x.h" #include "gtk_preferences.h" #...
/* Copyright (c) 2019 - 2020 Advanced Micro Devices, Inc. All rights reserved. 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, ...
//--------------------------------------------------------------------------- // Greenplum Database // Copyright 2012 EMC Corp. // // @filename: // CXformUtils.cpp // // @doc: // Implementation of xform utilities //--------------------------------------------------------------------------- #include "gpos/base.h" #i...
/************************************************************************* * * Copyright 2016 Realm 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/lice...
#include "board.h" #include "play.h" Board::Board(): marked(-1){ for(int i = 0; i < 10; i++){ for(int j = 0; j < 10; j++){ this->matrix[i][j] = Tile(50, 50, i, j); } } } bool Board::isAnyMarked(){ return this->marked > -1; } bool Board::canPlay(std::vector<Tile>& tiles){ f...
/usr/class/cs143/cool/src/PA4/utilities.cc
#define FROM_DABBLE_LIBRARY #include "DabbleESP32.h" #include "DataLoggerModule.h" uint8_t columnNumber=0; String *tempColName = NULL; DataLoggerModule::DataLoggerModule():ModuleParent(DATALOGGER_ID) {} void DataLoggerModule::sendSettings(void(*function)(void)) { callBackForDataLogger = true; dataLoggerCallBack = fu...
//===--- swift-syntax-test.cpp - Reflection Syntax testing application ----===// // // 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...
#ifndef HEADER_board_LoraWan_hpp_ALREADY_INCLUDED #define HEADER_board_LoraWan_hpp_ALREADY_INCLUDED #include "stat_OutlierDetector.hpp" #include <LoRaWan.h> #include <RTCZero.h> namespace board { class LoraWan { public: struct Data { bool is_outlier = false; unsi...
/* -*- c-basic-offset: 2 -*- */ /* Copyright(C) 2011-2016 Brazil This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License version 2.1 as published by the Free Software Foundation. This library is distributed in the hope that it will be ...
/* * * Copyright (C) 1994-2012, OFFIS e.V. * All rights reserved. See COPYRIGHT file for details. * * This software and supporting documentation were developed by * * OFFIS e.V. * R&D Division Health * Escherweg 2 * D-26121 Oldenburg, Germany * * * Module: dcmdata * * Author: Gerd Ehl...
/*************************************************************************** * Copyright (c) 2016, Johan Mabille and Sylvain Corlay * * * * Distributed under the terms of the BSD 3-Clause License. * * ...
/* * Copyright (c) 2019-2021, NVIDIA CORPORATION. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable...
// 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/ui/browser_navigator.h" #include <algorithm> #include "base/command_line.h" #include "base/macros.h" #include "base/strings...
#include "pch.h" complex_t signmask_pd = complex_t(-0.0, -0.0); complex_t negate_one_pd = complex_t(-0.0, 0.0); complex_t conjugate_pd = complex_t(0.0, -0.0);
/* * Copyright(C) 2020 hikyuu.org * * Create on: 2020-12-11 * Author: fasiondog */ #include "SqliteMemCacheDriver.h" namespace hku { SqliteMemCacheDriver::SqliteMemCacheDriver() : MemCacheDriver("sqlite") {} bool SqliteMemCacheDriver::_init() { Parameter param; param.set<string>("db", "file:hikyu...
#include "envoy/service/auth/v3/external_auth.pb.h" #include "envoy/type/v3/http_status.pb.h" #include "source/common/grpc/common.h" #include "source/common/http/headers.h" #include "source/common/protobuf/protobuf.h" #include "source/extensions/filters/common/ext_authz/ext_authz_grpc_impl.h" #include "test/extension...
/* * Copyright (c) 2002-2005 The Regents of The University of Michigan * Copyright (c) 2011 Advanced Micro Devices, 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...
/* Copyright (c) 2013, David C Horton 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, publish, distribute,...
// 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/password_manager/password_generation_manager.h" #include "base/prefs/pref_service.h" #include "chrome/browser/password_manager/p...
/* * * Copyright (c) 2021 Project CHIP 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...
// -------------------------------------------------------------- -*- C++ -*- // File: ./examples/src/cpp/sched_learningeffect.cpp // -------------------------------------------------------------------------- // Licensed Materials - Property of IBM // // 5724-Y48 5724-Y49 5724-Y54 5724-Y55 5725-A06 5725-A29 // Copyrigh...
// Copyright 2019 Augmented Perception Corporation #ifndef XRM_PLUGINS_ABI_HPP #define XRM_PLUGINS_ABI_HPP #include <stdint.h> #include <string.h> #include <string> #include <atomic> #include "core_win32.hpp" //------------------------------------------------------------------------------ // Constants #define XR...
#include "common.h" #include "lua_wrapper.h" #include <iostream> static int Debug(lua_State *pState) { gLuaManager.GetDebugger()->Debug(); return 0; } void TestDebug() { gLuaManager.InitScript(); RegistFuntion2Lua(Debug); gLuaManager.LoadScript(SOURCEPATH, "debug_main.lua"); } int main() { TestDebug(); r...
#include "currentgame.h" #include "models/answer.h" #include "models/ciphers.h" #include "models/gamehascipher.h" #include "models/gamehasquestion.h" #include "models/player.h" #include "models/question.h" #include "models/questionhasanswer.h" #include "models/useranswered.h" void CurrentGame::checkAnswer(const int &...
#include <polyvec/io/image.hpp> #include <polyvec/core/log.hpp> // stb #define STB_IMAGE_IMPLEMENTATION #include <stb_image.h> // libc++ #include <unordered_map> #include <algorithm> using namespace std; namespace polyfit { namespace IO { uint32_t pack ( const uint8_t* xyzw ) { uint32_t ret ...
//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------...
/* BSD 3-Clause License Copyright (c) 2021, SudoCpp 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,...
/* * Copyright 2004 The WebRTC Project Authors. All rights reserved. * * Use of this source code is governed by a BSD-style license * that can be found in the LICENSE file in the root of the source * tree. An additional intellectual property rights grant can be found * in the file PATENTS. All contributing ...