text
stringlengths
5
1.04M
// Copyright (c) 2007-2017 Hartmut Kaiser // Copyright (c) 2011 Bryce Lelbach, Katelyn Kufahl // Copyright (c) 2008-2009 Chirag Dekate, Anshul Tandon // Copyright (c) 2015 Patricia Grubel // Copyright (c) 2017 Shoshana Jakobovits // // SPDX-License-Identifier: BSL-1.0 // Distributed under the Boost Software...
// 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...
#pragma once #include "../../SdkCore/_InterfaceExt.hpp"
//***************************************************************************** // Copyright 2017-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://w...
// Copyright (c) 2009-2010 Satoshi Nakamoto // Copyright (c) 2009-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 "util.h" #include "chainparams.h" #include "sync.h" #include "ui_interfa...
#include "JuceHeader.h" #include "HandleEditor.h" #include "Utilities.h" //============================================================================== HandleEditor::HandleEditor (AudioProcessorValueTreeState& s) : state (s) { for (auto i {0}; i < 8; ++i) { const auto bandEnabledParameterNa...
/*============================================================================= Copyright (c) 2001-2003 Joel de Guzman Copyright (c) 2002-2003 Hartmut Kaiser http://spirit.sourceforge.net/ Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http:...
#include <bits/stdc++.h> using namespace std; /* * par[i] = parent of i in the centroid tree * level[i] = depth of the i'th node in the original tree * sz[i] = sz of the subtree rooted at i * erased[i] = if i has already been chosen as the centroid in the past, it is erased * jump[i][j] = 2^ith ancestor of j * g[i] =...
/* * File: spi.cpp * Author: Purinda Gunasekara <purinda@gmail.com> * * Created on 24 June 2012, 11:00 AM * * Patched for exception handling and selectable SPI SPEED by ldiaz 2018. * * Inspired from spidev test in linux kernel documentation * www.kernel.org/doc/Documentation/spi/spidev_test.c */ #include "...
// 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 ...
// Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/protobuf/unittest_embed_optimize_for.proto #include "google/protobuf/unittest_embed_optimize_for.pb.h" #include <algorithm> #include <google/protobuf/io/coded_stream.h> #include <google/protobuf/extension_set.h> #include <google/protobuf/w...
// Copyright (c) 2012-2014 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 "clientversion.h" #include "tinyformat.h" #include <string> /** * Name of client reported in the 'version' messa...
//===--- CodeCompletion.cpp - Code completion implementation --------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
// Font generated by stb_font_inl_generator.c (4/1 bpp) // // Following instructions show how to use the only included font, whatever it is, in // a generic way so you can replace it with any other font by changing the include. // To use multiple fonts, replace STB_SOMEFONT_* below with STB_FONT_arial_27_latin_ext_...
/* TEMPLATE GENERATED TESTCASE FILE Filename: CWE134_Uncontrolled_Format_String__wchar_t_environment_fprintf_83_goodB2G.cpp Label Definition File: CWE134_Uncontrolled_Format_String.label.xml Template File: sources-sinks-83_goodB2G.tmpl.cpp */ /* * @description * CWE: 134 Uncontrolled Format String * BadSourc...
// Copyright (c) 2013 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "media/midi/midi_manager_mac.h" #include <stddef.h> #include <algorithm> #include <iterator> #include <string> #include <CoreAudio/HostTim...
// // server.hpp // ~~~~~~~~~~ // // Copyright (c) 2003-2010 Christopher M. Kohlhoff (chris at kohlhoff dot com) // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #ifndef HTTP_SERVER2_SERVER_HPP #define HTTP_SE...
/* * Copyright 2020-2021 Hewlett Packard Enterprise Development LP * Copyright 2004-2019 Cray Inc. * Other additional copyright holders may be indicated within. * * The entirety of this work is licensed under the Apache License, * Version 2.0 (the "License"); you may not use this file except * in compliance with...
#include <eosio/chain/block_header_state.hpp> #include <eosio/chain/exceptions.hpp> #include <limits> namespace eosio { namespace chain { producer_authority block_header_state::get_scheduled_producer( block_timestamp_type t )const { auto index = t.slot % (active_schedule.producers.size() * config::producer_r...
#include <okiidoku/db/serdes.hpp> #include <okiidoku/house_mask.hpp> #include <iostream> #include <algorithm> #include <array> #include <limits> // numeric_limits #include <cassert> namespace okiidoku::mono::db::serdes { namespace detail { template<Order O> requires(is_order_compiled(O)) class SerdesHelper; } ...
/* Copyright 2017 The TensorFlow 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 a...
// -------------------------------------------------------------------------- // OpenMS -- Open-Source Mass Spectrometry // -------------------------------------------------------------------------- // Copyright The OpenMS Team -- Eberhard Karls University Tuebingen, // ETH Zurich, and Freie Universit...
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved. #include "Grippables/GrippableStaticMeshComponent.h" #include "Net/UnrealNetwork.h" //============================================================================= UGrippableStaticMeshComponent::UGrippableStaticMeshComponent(const FObjectInitializer& Obje...
//============================================================================= /** * @file Talker.cpp * * $Id$ * * * This test application tests a wide range of events that can be * demultiplexed using various ACE utilities. Events used include * ^C events, reading from STDIN, vanilla Win32 events, t...
/* * Copyright (c) Contributors to the Open 3D Engine Project. * For complete copyright and license terms please see the LICENSE at the root of this distribution. * * SPDX-License-Identifier: Apache-2.0 OR MIT * */ #include <Atom/RHI/BufferFrameAttachment.h> #include <Atom/RHI/BufferPoolBase.h> #include <Atom/RHI...
#define BOARD RASPBERRY_PI #include "Adafruit_PWMServoDriver.h" #include <unistd.h> Adafruit_PWMServoDriver::Adafruit_PWMServoDriver(const char* connector, uint8_t addr) : i2c_(connector, addr) {} void Adafruit_PWMServoDriver::begin() { reset(); } void Adafruit_PWMServoDriver::setPWM(uint8_t num, uint16_t on, uin...
#include <iostream> #include <Engine.h> #include "MainScene.h" #include "SDL.h" using namespace core; int main(int argc, char* args[]) { Engine e(new MainScene()); if (e.Init()) { std::cout << "Ensign cannot initialize" << std::endl; } return 0; }
// Copyright (c) 2011-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. #define BOOST_TEST_MODULE Bitcoin Test Suite #include <banman.h> #include <net.h> #include <boost/test/unit_test.hpp> std:...
// 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 "contiguous_pooled_memory_allocator.h" #include <lib/async-testing/test_loop.h> #include <lib/ddk/platform-defs.h> #include <lib/fake-bti/bti.h> ...
// Copyright (c) 2011-2015 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 "walletview.h" #include "addressbookpage.h" #include "askpassphrasedialog.h" #include "navcoingui.h" #include "clie...
/** * Copyright 2020 The Magma Authors. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, ...
#include <iostream> #include <stack> #include <string> #include <utility> using namespace std; class Solution { public: string decodeString(const string& s) { stack<pair<string, int>> todo; todo.emplace(string(), 1); for (int i = 0; i < static_cast<int>(s.length()); ++i) { if (isdigit(s[i])) { char *end...
// Copyright 2015 the V8 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. #include "src/compiler/wasm-compiler.h" #include <memory> #include "src/assembler-inl.h" #include "src/assembler.h" #include "src/base/optional.h" #in...
// Copyright (c) 2017 VMware, Inc. All Rights Reserved. #include <rethink/ref_string.h> #include <rethink/shared_string.h> #include <catch.hpp> using namespace rethink; using namespace rethink::detail; using namespace std; TEST_CASE("Empty shared string is empty", "[shared_string]") { shared_string s; CHECK(str...
/*========================================================================= medInria Copyright (c) INRIA 2013. All rights reserved. See LICENSE.txt for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. ====...
// Copyright Aleksey Gurtovoy 2000-2004 // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) // // Preprocessed version of "boost/mpl/aux_/lambda_no_ctps.hpp" header // -- DO NOT modify by hand! namespace lslb...
#include "LoopListScene.h" USING_NS_CC; void LoopListScene::continueInit() { UIPackage::addPackage("UI/LoopList"); UIConfig::horizontalScrollBar = ""; UIConfig::verticalScrollBar = ""; _view = UIPackage::createObject("LoopList", "Main")->as<GComponent>(); _groot->addChild(_view); _list = _vi...
// Copyright 2014 The Chromium OS 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 "login_manager/device_identifier_generator.h" #include <stdint.h> #include <stdlib.h> #include <map> #include <set> #include <string> #incl...
#include <iostream> #include <cassert> #include <vector> #include <tuple> #include <algorithm> #include <zlib.h> #include <string> #include <chrono> //third-party lib #include "mummer/sparseSA.hpp" #include "kseq/kseq.h" #include "prettyprint/prettyprint.hpp" //own includes #include "parseCmdArgs.hpp" #include "alg...
// Copyright (c) 2009-2010 Satoshi Nakamoto // 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 "txdb.h" #include "chainparams.h" #include "hash.h" #include "random.h"...
#include<bits/stdc++.h> #include<stdint.h> using namespace std; #define IOS {cin.tie(0);ios_base::sync_with_stdio(false);} #define N 25 struct point{ int x,y; }in[N]; int n; int ans[N]; double dis[N][N]; double dp[N][1<<N]; int x[N],y[N]; inline double chk(int l,int r,double now){ if(l != 0) now +...
/* * Copyright (C) 2010 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...
/* * * Copyright 2015 gRPC 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 agree...
#include "mainwindow.h" #include "ui_mainwindow.h" #include <QFileDialog> #include <QtCore> #include <QtGui> #include <QDebug> #include <QProcess> //#include <QProgressBar> MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); } MainWindow::~MainWindow(...
/********************************************************************** * Copyright (c) 2008-2016, Alliance for Sustainable Energy. * All rights reserved. * * 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 Fre...
#include "FileUtils.h" #include "File.h" #include "FileReaderImpl.h" #include "FileWriterImpl.h" #include "FileImpl.h" #include "Engine.h" #include "Constant.h" #include <iostream> #include <string> void display(std::tuple<std::unordered_set<std::string>, std::unordered_set<std::string>, std::unordered_set<std::stri...
#include "includesframe.h" #include "ui_includesframe.h" #include "Serialization/sourcecodebuilder.h" IncludesFrame::IncludesFrame(QWidget *parent) : QFrame(parent), ui(new Ui::IncludesFrame) { ui->setupUi(this); ui->textEdit->setText(SourceCodeBuilder::imports); this->setWindowTitle("Includes"); }...
#include <algorithm> #include <functional> #include <string> #include <vector> using namespace std; class Solution { public: vector<string> findRelativeRanks(vector<int> &nums) { vector<pair<int, int>> v; //{score,index} int N = nums.size(); for (int i = 0; i < N; ++i) v.push_back({nums[i], i}); sort(v.be...
//------------------------------------------------------------------------------ // physics/hinge2joint.cc // (C) 2005 RadonLabs GmbH //------------------------------------------------------------------------------ #include "stdneb.h" #include "physics/hinge2joint.h" #include "debugrender/debugshaperenderer.h" names...
/* This file is part of the WebKit open source project. This file has been generated by generate-bindings.pl. DO NOT MODIFY! This library is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation...
// -*- C++ -*- #include "ACEXML/common/Encoding.h" #include "ace/OS_NS_string.h" const ACEXML_Char* ACEXML_Encoding::encoding_names_[8] = { ACE_TEXT ("UCS-4BE"), ACE_TEXT ("UCS-4LE"), ACE_TEXT ("UCS-4_2143"), ACE_TEXT ("UCS-4_3412"), ACE_TEXT ("UTF-16"), ACE_TEXT ("UTF-16"), ACE_TEXT ("UTF-8"), ACE_TE...
/* * SPDX-License-Identifier: Apache-2.0 */ //===----------------LRN.cpp - Lowering LRN Op----------------------=== // // // Copyright 2020 The IBM Research Authors. // // ============================================================================= // // This file lowers the ONNX LRN Operator to Krnl dialect. // //...
#include "../../head.h" class Solution { public: int nthUglyNumber(int n) { // plagiarizing from https://leetcode.com/problems/ugly-number-ii/discuss/69364/My-16ms-C%2B%2B-DP-solution-with-short-explanation if (n < 4) { return n; } std::vector<int> minMulti(n, 0); ...
#include "./trailer_scene_filter.h" #define LOG_TAG "TrailerSceneFilter" /* TrailerSceneFilter class */ TrailerSceneFilter::TrailerSceneFilter() { textureFromCache = NULL; texId = -1; } TrailerSceneFilter::TrailerSceneFilter(int index, int64_t sequenceIn, int64_t sequenceOut, char* filterName) : ModelFilter(inde...
/* * atomic.{cc,hh} -- atomic integers * Eddie Kohler * * Copyright (c) 2000 Mazu Networks, 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 without restriction, subject to the ...
#include <SFML/Graphics.hpp> #include "Engine.h" int main() { Engine* engine = new Engine(640, 480, 32, 32); try{ engine->Start(); } catch (char* e) {} return EXIT_SUCCESS; }
<?hh // strict /** * @copyright 2010-2015, The Titon Project * @license http://opensource.org/licenses/bsd-license.php * @link http://titon.io */ namespace Titon\Route; use Titon\Route\Exception\NoMatchException; use ReflectionFunction; /** * The CallbackRoute works in a similar fashion to the defa...
#include "target_converter.h" #include "binarize_target.h" #include <catboost/libs/data/loader.h> // for IsMissingValue #include <catboost/libs/helpers/exception.h> #include <library/cpp/threading/local_executor/local_executor.h> #include <util/generic/algorithm.h> #include <util/generic/array_ref.h> #include <util...
/*! * Copyright 2017 by Contributors * \file count_descendant.cc * \brief Count number of descendants for each AST node */ #include "./builder.h" namespace treelite { namespace compiler { DMLC_REGISTRY_FILE_TAG(count_descendant); static int count(ASTNode* node) { if (dynamic_cast<CodeFolderNode*>(node)) { ...
#include <myth\graphics\camera.h> using namespace myth::graphics; using namespace glm; Camera::Camera() { viewmatrix = mat4(1.0f); projection = mat4(1.0f); cameraPosition = vec3(0.0f); cameraDirection = vec3(0.0,0.0,1.0); cameraUp = vec3(0.0,1.0,0.0); pitch = 0; Update(); } Camera::~Camera() { } mat4 Camera...
 #include "Connectors.h" #include <boost/algorithm/string.hpp> #include "Window.h" #include "GraphicView.h" #include "VertexRepresentation.h" namespace charliesoft { const qreal Pi = 3.1415926; bool lineIntersect(QLineF& line1, double x1, double y1, double x2, double y2) { QLineF line; line.setP1(QPo...
// Copyright (c) 2011-2014 The Bitcoin developers // Copyright (c) 2014-2015 The Dash developers // Copyright (c) 2015-2017 The PIVX developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "askpassphrasedialog.h"...
// Copyright 2018 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 "layer.h" #include <math.h> #include "runner.h" #include "utils.h" namespace { uint32_t scale(uint32_t x, uint32_t from_limit, uint32_t to_limit...
/* different algorithms; multiple sources and targets Danil Kirsanov, 01/2008 */ #include <iostream> #include <fstream> #include <string> #include "geodesic_algorithm_dijkstra.h" #include "geodesic_algorithm_subdivision.h" #include "geodesic_algorithm_exact.h" int main(int argc, char **argv) { std::vector<double>...
#include "Box2D.h" #include "Shape.h" //@line:26 JNIEXPORT jfloat JNICALL Java_com_badlogic_gdx_physics_box2d_Shape_jniGetRadius(JNIEnv* env, jobject object, jlong addr) { //@line:48 b2Shape* shape = (b2Shape*)addr; return shape->m_radius; } JNIEXPORT void JNICALL Java_com_badlogic_gdx_ph...
#include "gmock/gmock.h" #include "infra/util/SharedPtr.hpp" #include "infra/util/SharedObjectAllocatorFixedSize.hpp" #include "infra/util/test_helper/MockCallback.hpp" #include "infra/util/test_helper/MonitoredConstructionObject.hpp" using AllocatorMySharedObject = infra::SharedObjectAllocator<infra::MonitoredConstru...
#include "tcpdataprovider.h" void TcpDataProvider::sendMessage(QTcpSocket &socket, const Message &message) { QByteArray data; QDataStream ds(&data, QIODevice::ReadWrite); ds.setVersion(QDataStream::Qt_5_11); ds << static_cast<int>(eMessage) << message; socket.write(data); } void TcpDataProvider::s...
// Copyright (c) 2011-2015 The Bitcoin Core developers // Copyright (c) 2014-2017 The Ltucoin Core developers // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "splashscreen.h" #include "guiutil.h" #include "networkstyle...
/* * Copyright (c) 2017-2020 [Ribose Inc](https://www.ribose.com). * 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 not...
/************************************************************** * * 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...
/* Copyright 2017 The TensorFlow 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 a...
#include "PhysicsGame.h" int main() { PhysicsGame* game = new PhysicsGame(); game->run("Physics Game", 1280, 720, false); delete game; return 0; }
/* Copyright (c) 2007-2016 Contributors as noted in the AUTHORS file This file is part of libzmq, the ZeroMQ core engine in C++. libzmq is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (LGPL) as published by the Free Software Found...
#include "muscle.h" #include "dpreglist.h" #include "diaglist.h" #include "pwpath.h" #include "profile.h" #include "timing.h" #define TRACE 0 #define TRACE_PATH 0 #define LIST_DIAGS 0 static double g_dDPAreaWithoutDiags = 0.0; static double g_dDPAreaWithDiags = 0.0; static void OffsetPath(PWPath &Path...
#include "precompiled.h" #include "VisibilityQueryInterface.h" #include "Renderer.h" namespace EDRendererD3D { RenderShapeBase *VisibilityQueryInterface::theShapePtr = 0; VisibilityQueryInterface::VisibilityQueryInterface(void) { // queryPtr = 0; //depthSurfacePtr = 0; renderTargetPtr = 0; pixelCountThresho...
/* * Copyright 2014-present IVK JSC. 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 appl...
/** * @file * @brief General game bindings. **/ /* --- General game bindings module "crawl" */ #include "AppHdr.h" #include "l-libs.h" #include "chardump.h" #include "cluautil.h" #include "command.h" #include "delay.h" #include "dlua.h" #include "end.h" #include "english.h" #include "fight.h" #include "hints.h" ...
/*========================================================================= * * 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...
// (C) Copyright Steve Cleary, Beman Dawes, Howard Hinnant & John Maddock 2000. // (C) Copyright Eric Friedman 2002-2003. // (C) Copyright Antony Polukhin 2013. // Use, modification and distribution are subject to the Boost Software License, // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // ht...
// Copyright (c) 2014-2017 The Storel Core developers // Distributed under the MIT/X11 software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. #include "privatesend-client.h" #include "coincontrol.h" #include "consensus/validation.h" #include "core_io.h" #include "...
/* Copyright 2017 The TensorFlow 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 a...
// Copyright 2019 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/download/mixed_content_download_blocking.h" #include "base/debug/crash_logging.h" #include "base/debug/dump_without_crashing.h" ...
/* * 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...
//////////////////////////////////////////////////////////////////////////////// // The following FIT Protocol software provided may be used with FIT protocol // devices only and remains the copyrighted property of Garmin Canada Inc. // The software is being provided on an "as-is" basis and as an accommodation, // ...
// Copyright 2020 Novo Yakov xaxaxaxa232@mail.ru #ifndef INCLUDE_HEADER_HPP_ #define INCLUDE_HEADER_HPP_ #include <iostream> #include <boost/filesystem.hpp> #include <sstream> #include <map> #include <utility> using std::string; using std::vector; using std::ostream; using std::cout; using std::stringstream; using s...
// Copyright 2015 the V8 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. #include "test/unittests/interpreter/interpreter-assembler-unittest.h" #include "src/code-factory.h" #include "src/compiler/graph.h" #include "src/comp...
#include "common.h" #include "lang/en.h" EWRAM_DATA uint32 keys; EWRAM_DATA RectMinMax viewport; vec3i gCameraViewPos; Matrix gMatrixStack[MAX_MATRICES]; Matrix* gMatrixPtr = gMatrixStack; EWRAM_DATA Sphere gSpheres[2][MAX_SPHERES]; const FloorData* gLastFloorData; FloorData gLastFloorSlant; EWRAM_DATA TargetInfo ti...
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out // RUN: %HOST_RUN_PLACEHOLDER %t.out // RUN: %CPU_RUN_PLACEHOLDER %t.out // RUN: %GPU_RUN_PLACEHOLDER %t.out // RUN: %ACC_RUN_PLACEHOLDER %t.out // // Missing __spirv_SubgroupLocalInvocationId on AMD // XFAIL: hip_amd //==---------- barrier.cpp - SYCL su...
// UnderwaterBaseGen.cpp // Implements the cUnderwaterBaseGen class representing the underwater base generator #include "Globals.h" #include "UnderwaterBaseGen.h" #include "Prefabs/UnderwaterBasePrefabs.h" #include "PieceGenerator.h" static cPrefabPiecePool g_UnderwaterBase(g_UnderwaterBasePrefabs, g_Underwater...
/* Copyright 2020 The OneFlow 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 agre...
/* 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 not use this f...
/*============================================================================= Copyright (c) 2005-2011 Joel de Guzman Copyright (c) 2005-2006 Dan Marsden Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ...
#ifndef RAPIDXML_HPP_INCLUDED #define RAPIDXML_HPP_INCLUDED // Copyright (C) 2006, 2009 Marcin Kalicinski // Version 1.13 // Revision $DateTime: 2009/05/13 01:46:17 $ //! \file rapidxml.hpp This file contains rapidxml parser and DOM implementation // If standard library is disabled, user must provide implementations ...
// Copyright (c) 2020 by Robert Bosch GmbH. All rights reserved. // Copyright (c) 2021 by Apex.AI 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:...
#include <koinos/chain/chronicler.hpp> namespace koinos::chain { void chronicler::set_session( std::shared_ptr< abstract_chronicler_session > s ) { _session = s; } void chronicler::push_event( protocol::event_data&& ev ) { ev.set_sequence( _seq_no ); bool within_session = false; if ( auto session = _ses...
/* * gucefWEB: GUCEF module providing Web application functionality * for standardized protocols * * Copyright (C) 1998 - 2020. Dinand Vanvelzen * * 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 ...
//MIT License //Copyright (c) 2020 bexoft GmbH (mail@bexoft.de) //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 "pch.h" #include <iostream> #include "GraphData.h" #include <regex> GraphData::GraphData() { } void GraphData::Parse(const string& little_langague_data) { ParseLabel(little_langague_data); ParseTicksAndRanges(little_langague_data); ParseCoordinates(little_langague_data); } void GraphData::ParseLabel(con...
#include <buffer.hpp> #include "t/string/string_testcase.pb.h" TEMPLATE_TEST_CASE("write string field and check with libprotobuf", "", buffer_test_string, buffer_test_vector, buffer_test_array, buffer_test_external) { TestType buffer; typename TestType::writer_type pw{buffer.buffer()}; TestString::...
/* Test: geometry/antipodal_points.cpp Link: http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=CGL_4_B Note: Find the diameter of a convex polygon */ #include <bits/stdc++.h> using namespace std; typedef complex<double> point; typedef vector<point> polygon; #define NEXT(...