text stringlengths 7 961k |
|---|
// Copyright 2020 The XLS 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 t... |
/**
* @file scs.cpp
* @author prakash (prakashsellathurai@gmail.com)
* @brief
The longest common subsequence (LCS) of two sequences T and P is the
longest sequence L such that L is a subsequence of both T and P. The
shortest common supersequence (SCS) of T and P is the smallest sequence L such
that both T and P... |
#pragma once
#include "AParticleModule.hpp"
#include "Cl/ClQueue.hpp"
#include "OCGL_Buffer.hpp"
class AParticleEmitter;
struct ParticleDataMovement {
cl_float3 acceleration;
cl_float3 velocity;
float masse;
};
class ModuleMovement : public AParticleModule {
public:
ModuleMovement(AParticleEmitter &emitter);
... |
/*
Copyright 2020-2021 The Silkrpc 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 ... |
#include "humblelogging/util/patternconfigregistry.h"
#include <istream>
#include <fstream>
#include <sstream>
#include "humblelogging/loglevel.h"
HL_NAMESPACE_BEGIN
PatternConfigRegistry::PatternConfigRegistry()
: _defaultLogLevel(LogLevel::Off)
{
}
PatternConfigRegistry::PatternConfigRegistry(const PatternConf... |
/*
* Copyright (C) 2019 Intel Corporation. All rights reserved.
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
*/
#include <stdio.h>
#include <string.h>
#include "Enclave_t.h"
#include "test_wasm.h"
#include "bh_memory.h"
#include "wasm_export.h"
static char global_heap_buf[512 * 1024] = { 0 };
static... |
/******************************************************************************
** Filename: cutoffs.c
** Purpose: Routines to manipulate an array of class cutoffs.
** Author: Dan Johnson
**
** (c) Copyright Hewlett-Packard Company, 1988.
** Licensed under the Apache License, Version 2.0 (the "License... |
//=================================================================================================
/*!
// \file src/mathtest/dmatdmatmax/HDaLDa.cpp
// \brief Source file for the HDaLDa dense matrix/dense matrix maximum math test
//
// Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reserved
//
// This file is... |
/*
* Copyright (c) 2019-2021 Grant Erickson
* 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... |
/*
* Copyright (c) 2021 fuxiaohei. All rights reserved.
* Licensed under the Apache-2.0 License. See License file in the project root for
* license information.
*/
#include <core/main_context.h>
#include <hv/hlog.h>
#include <stdio.h>
int main(int argc, char **argv) {
// set logger handler
hlog_set_level(LOG_... |
/* GRChombo
* Copyright 2012 The GRChombo collaboration.
* Please refer to LICENSE in GRChombo's root directory.
*/
#ifndef LAGRANGE_IMPL_HPP_
#define LAGRANGE_IMPL_HPP_
template <int Order>
const string Lagrange<Order>::TAG = "\x1b[36;1m[Lagrange]\x1b[0m ";
/* Finite difference weight generation algorithm
*
* ... |
/**
******************************************************************************
* @file at24c02.cpp
* @author shentq
* @version V2.1
* @date 2016/08/14
* @brief
******************************************************************************
* @attention
*
* No part of this software may be u... |
/*
* 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... |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int MAXN = 1e5 + 5;
ll t, n;
struct Food
{
ll a, b, c;
Food(ll a = 0, ll b = 0, ll c = 0)
{
this->a = a;
this->b = b;
this->c = c;
}
bool operator< (const Food &o) const
{
return this->c... |
#include "gtest/gtest.h"
#include "z5/factory.hxx"
namespace z5 {
// fixture for the zarr array test
class N5Test : public ::testing::Test {
protected:
template<typename T>
void testRead(
const std::string & ds_path,
types::Compressor expectedCompressor,
... |
#include <string>
#include <fstream>
#include <sstream>
#include <opencv2/dnn.hpp>
#include "YoloNet.h"
// Load the network
void YoloNet::loadNetwork()
{
network_ = readNetFromDarknet(modelConfiguration_, modelWeights_);
network_.setPreferableBackend(DNN_BACKEND_OPENCV);
network_.setPreferableTarget(DNN_T... |
#include "offertablemodel.h"
#include "guiutil.h"
#include "walletmodel.h"
#include "wallet.h"
#include "base58.h"
#include <QFont>
using namespace std;
const QString OfferTableModel::Offer = "O";
const QString OfferTableModel::OfferAccept = "A";
class COfferDB;
extern COfferDB *pofferdb;
int GetOfferExpiration... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#pragma once
#include <tuple>
#include <vector>
#include <string>
#include <memory>
#include "shared_test_classes/base/layer_test_utils.hpp"
#include "base/behavior_test_utils.hpp"
#include "ngraph_functions/builders.hpp"
#includ... |
#include <iostream>
#include <vector>
template <typename T>
std::istream& operator >>(std::istream& input, std::vector<T>& v)
{
for (T& a : v)
input >> a;
return input;
}
void answer(unsigned v)
{
std::cout << v << '\n';
}
void solve(const std::vector<unsigned>& a, unsigned k)
{
unsigned s =... |
#pragma once
#include <include/Types.hpp>
#include <include/InstructionTree.hpp>
#include <include/Swizzles.hpp>
#include <include/glsl/ToGLSL.hpp>
#include <sstream>
#include <typeinfo>
#include <type_traits>
#include <unordered_map>
#include <imgui.h>
namespace csl {
struct ImGuiData {
std::string unique(co... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2018 The LightPayCoin developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/... |
/*
An Array is given with distinct elements. You need to find the largest 3 elements in the Array.
*/
#include <iostream>
using namespace std;
int* Three_LargestElement(int* arr, int n, int* largest_element)
{
int smallest = arr[0];
for (int i = 0; i < n; i++)
if (smallest > arr[i])
s... |
#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <map>
using namespace std;
struct TreeNode
{
TreeNode* dotChild = NULL;
TreeNode* dashChild = NULL;
long long valid = 0;
};
string encode(string input)
{
string result;
for (auto& c : input)
{
switch... |
// ======================================================================
// \title InvalidFiles.cpp
// \author Canham/Bocchino
// \brief Test immediate command sequences with EOS record
//
// \copyright
// Copyright (C) 2009-2018 California Institute of Technology.
// ALL RIGHTS RESERVED. United States Government ... |
/*
* Copyright (C) 2004-2016 ZNC, see the NOTICE file for details.
*
* 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 requi... |
/*M///////////////////////////////////////////////////////////////////////////////////////
//
// IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
// By downloading, copying, installing or using the software you agree to this license.
// If you do not agree to this license, do not download, instal... |
// 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 <boost/assign/list_of.hpp> // for 'map_list_of()'
#include <boost/foreach.hpp>
#include "checkpoints.h"
#include "t... |
/* Copyright 2019 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 (c) 2020, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
#include "vm/compiler/ffi/native_location.h"
#include "vm/zone_text_buffer.h"
namespace dart {
names... |
/*===================================================================
BlueBerry Platform
Copyright (c) German Cancer Research Center,
Division of Medical and Biological Informatics.
All rights reserved.
This software is distributed WITHOUT ANY WARRANTY; without
even the implied warranty of MERCHANTABILITY or FITNESS... |
#include "Etterna/Globals/global.h"
#include "Etterna/Actor/Base/ActorUtil.h"
#include "AnnouncerManager.h"
#include "Etterna/Models/Misc/BackgroundUtil.h"
#include "Etterna/Models/Misc/ImageCache.h"
#include "Etterna/Models/Misc/CommonMetrics.h"
#include "Etterna/Models/Misc/Foreach.h"
#include "GameManager.h"
#includ... |
/*
* Copyright 2016 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "gm.h"
#include "Resources.h"
#include "SkCodec.h"
#include "SkColorSpace.h"
#include "SkColorSpace_Base.h"
#include "SkColorSpaceXform.h"
#include "SkColorSpaceXform... |
/*
pbrt source code Copyright(c) 1998-2010 Matt Pharr and Greg Humphreys.
This file is part of pbrt.
pbrt is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
... |
//
// ParseCallback.cpp
//
// $Id: //poco/1.4/Zip/src/ParseCallback.cpp#1 $
//
// Library: Zip
// Package: Zip
// Module: ParseCallback
//
// Copyright (c) 2007, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "Poco/Zip/ParseCallback.h"
namespa... |
#include<iostream>
#include<math.h>
#include<cmath>
#include<stdlib.h>
#include<string>
using namespace std;
// Defines conversion functions
string decimal_to_binary(int num);
string decimal_to_hexadecimal(int num);
char decimal_to_ascii(int num);
int main()
{// Creates titles of the table
cout << "Decimal" << "... |
/*
Copyright 2020 Standard Cyborg
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, software... |
//-------------------------------------------------------------------------
// Desc: Verify database structure.
// Tabs: 3
//
// Copyright (c) 1991-2007 Novell, Inc. 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
// ... |
// Copyright 2008, Google Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// 1. Redistributions of source code must retain the above copyright notice,
// this list of conditions an... |
#include<bits/stdc++.h>
#define mt make_tuple
#define mp make_pair
#define pu push_back
#define INF 1000000001
#define ll long long int
#define vi vector<int>
using namespace std;
void print(int**l, int n,int m)
{
for(int i=0;i<n;i++) {for(int j=0;j<m;j++) cout<<l[i][j]<<" ";cout<<endl;}
cout<<endl;
}
void dfs1(i... |
#include <cmath>
#include <iostream>
#include <string>
#include <emscripten.h>
//#include <emscripten/val.h>
//using namespace emscripten;
extern "C" {
EMSCRIPTEN_KEEPALIVE void new_mesh(
float* vertices, uint32_t vertices_length,
float* normals, uint32_t normals_length,
float* uv_coordinates, uint32_t u... |
//===- ValueTracking.cpp - Walk computations to compute properties --------===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===-------------------------------------------------------... |
#include <iostream>
using namespace std;
struct Node{
int data;
Node * link;
};
Node * top;
// push (utility function to add element into stack)
void push(int data){
Node * temp = new Node();
if(!temp){
cout << "Stack overflow" <<endl;
exit(1);
}
temp->data = data;
temp-... |
/*
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... |
/*
* MIT License
*
* Copyright (c) 2018-2021 char-lie
*
* 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, mo... |
/*
*
* 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... |
/*
+----------------------------------------------------------------------+
| HipHop for PHP |
+----------------------------------------------------------------------+
| Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
+---------... |
/*=========================================================================
*
* 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... |
// 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 <lib/async-loop/cpp/loop.h>
#include <lib/inspect/deprecated/exposed_object.h>
#include <lib/sys/cpp/component_context.h>
#include "lib/inspect/d... |
// 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... |
/***************************************************************************
# Copyright (c) 2015, NVIDIA CORPORATION. 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 sourc... |
#ifndef CLIENT_HPP_INCLUDED
#define CLIENT_HPP_INCLUDED
#include <string>
#include <vector>
#include <memory>
#include <xmlrpc-c/c_util.h>
#include <xmlrpc-c/girerr.hpp>
#include <xmlrpc-c/girmem.hpp>
#include <xmlrpc-c/base.hpp>
#include <xmlrpc-c/timeout.hpp>
#include <xmlrpc-c/client_transport.hpp>
namespace xmlr... |
//
// Created by serik1987 on 12.01.2020.
//
#include <cmath>
#include "../synchronization/ExternalSynchronization.h"
#include "../tracereading/TraceReaderAndCleaner.h"
#include "../accumulators/Accumulator.h"
#include "TimeAverageIsoline.h"
namespace GLOBAL_NAMESPACE {
TimeAverageIsoline::TimeAverageIsoline(Str... |
//files.cpp -- сохранение в файл
//#include "stdafx.h" --- Visual Studio --- precompiled headers
#include <iostream> // не требуется для многих систем
#include <fstream>
#include <string>
#include <sstream>
//-------------------------------------------------------------------------------------------------
int main()... |
#include "SingleReiniter.h"
#include "VidManager.h"
#include "CommandLineOptions.h"
#include "NotificationHandler.h"
#include "Workaround.h"
#include "RedisClient.h"
#include "swss/logger.h"
#include "meta/sai_serialize.h"
#include <unistd.h>
#include <inttypes.h>
using namespace syncd;
using namespace saimeta;
Si... |
/***************************************************************************
* Copyright (C) by GFZ Potsdam *
* *
* You can redistribute and/or modify this program under the *
* terms o... |
// Try POH
// author: Leonardone @ NEETSDKASU
#include <iostream>
using namespace std;
int main() {
int q[100][100];
int p[10][10];
int n, m;
cin >> n;
for (int i = 0; i < n; i++)
for (int j = 0; j < n; j++)
cin >> q[i][j];
cin >> m;
for (int i = 0; i < m; i++)
... |
/*******************************************************************\
Module: Visual Studio CL Mode
Author: CM Wintersteiger, 2006
\*******************************************************************/
#include <iostream>
#include <util/string2int.h>
#include <util/message.h>
#include <util/prefix.h>
#include <util... |
// $Id: FaCE.cpp 85504 2009-06-04 09:41:32Z johnnyw $
#include "FaCE.h"
#ifdef NO_ACE
#include "CE_ARGV.h"
#else
#include <ace/ACE.h>
#include <ace/ARGV.h>
#include <ace/Log_Msg.h>
#endif // NO_ACE
#include <commctrl.h>
#include <aygshell.h>
#include <sipapi.h>
// This utility does not use ACE, and shouldn't.
... |
// Unit Test for exercise 13_34_36_37.
#include "ex13_34_36_37.h"
int main()
{
Message firstMail("hello");
Message signInMail("welcome to cppprimer");
Folder mailBox;
firstMail.print_debug(); // print: "hello"
firstMail.save(mailBox); // send to mailBox
mailBox.print_debug(); // print: "hel... |
#pragma once
#include <imgui.h>
#include <ImGuizmo.h>
#include <Core/Core.hpp>
#include <ImGui/Widget/ImGuiWidget.hpp>
#include <Engine/Framebuffer/Framebuffer.hpp>
#include <Engine/Component/SceneComponent.hpp>
namespace gir
{
class ViewportWidget : public ImGuiWidget
{
public:
/// Constructor.... |
//
// BlueJewel.cpp
// MatchMaster
//
// Created by Ghost on 14-3-18.
//
//
#include "BlueJewel.h"
BlueJewel::BlueJewel()
{
}
BlueJewel::~BlueJewel()
{
}
BlueJewel* BlueJewel::create()
{
BlueJewel* temp = new BlueJewel();
temp->Sprite::initWithFile("blue.png");
temp->initWithScoreColor(Scor... |
/* INSTANCE.hpp
* by Lut99
*
* Created:
* 30/04/2021, 14:03:39
* Last edited:
* 10/09/2021, 10:55:53
* Auto updated?
* Yes
*
* Description:
* Contains the Instance class, which wraps the Vulkan instance and
* manages the debugger.
**/
#ifndef COMPUTE_INSTANCE_HPP
#define COMPUTE_INSTANCE_HPP
#... |
#include "mapch.h"
#define IMGUI_IMPL_OPENGL_LOADER_GLAD
#include "examples/imgui_impl_opengl3.cpp"
#include "examples/imgui_impl_glfw.cpp" |
// decl.C99\Error_enum_as_class2.hpp
// using enum as class
// (C)2010 Kenneth Boyd, license: MIT.txt
enum bad_test {
x_factor = 1
};
class bad_test {
int x_factor;
}; |
#include "blocked_gzip_input_stream.hpp"
#include "hfile_cppstream.hpp"
// We need the hFILE* internals available.
#include <hfile_internal.h>
namespace vg {
namespace stream {
using namespace std;
BlockedGzipInputStream::BlockedGzipInputStream(std::istream& stream) : handle(nullptr), byte_count(0),
know_offs... |
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <libneoradio2.h>
#include <tuple>
#include <array>
#include <vector>
#include <algorithm>
#include <sstream>
#include <stdexcept>
#ifdef _WIN32
#pragma comment(lib, "Setupapi.lib")
#endif
namespace py = pybind11;
class NeoRadio2Exception : public st... |
/* Copyright 2018 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... |
/* ******************************************************************************
*
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://www.apache.org/licenses/LICENSE-2.0.
*
* See the NOTICE file distributed wit... |
#include "node.h"
#include "node_buffer.h"
#include "node_http_parser.h"
#include "async-wrap.h"
#include "async-wrap-inl.h"
#include "env.h"
#include "env-inl.h"
#include "stream_base.h"
#include "stream_base-inl.h"
#include "util.h"
#include "util-inl.h"
#include "v8.h"
#include <stdlib.h> // free()
#include <stri... |
/*
Copyright (C) 2003 Paul Davis
Copyright (C) 2004-2008 Grame
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
the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
This p... |
/******************************************************************************\
Copyright (c) 2005-2020, Intel Corporation
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 c... |
/*
* Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free ... |
// Copyright 2012 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/api.h"
#include <string.h> // For memcpy, strlen.
#ifdef V8_USE_ADDRESS_SANITIZER
#include <sanitizer/asan_interface.h>
#endif // V8_US... |
//===----------------------------------------------------------------------===//
//
// 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.
//
//===----------------------------------------... |
// Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
// SPDX-License-Identifier: Apache-2.0
#include <openssl/dh.h>
#include <openssl/ec.h>
#include <openssl/evp.h>
#include <openssl/rsa.h>
#include "keyutils.h"
namespace AmazonCorrettoCryptoProvider {
#define BN_null_if_zero(x) do { \
if ((x... |
/*
*
* Copyright 2016 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... |
// Copyright (c) 2011-2016 The Bitcoin Core developers
// Copyright (c) 2017 The Astral Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "consensus/validation.h"
#include "chainparams.h"
#include "key.h"
... |
#include "soa.h"
#include <iostream>
int main()
{
std::cout << "foo" << std::endl;
return 0;
} |
#include <core.testing.h>
#include <core.property.h>
NS_BEGIN(CORE_NAMESPACE)
namespace properties{
TEST(1, propertyDefinition){
struct A{
typedef std::string DS_PROPERTY_DEFINITION(StringValue)
public:
typedef StringValuePropertyType PublicStringValuePropertyType;
};
auto result = std... |
////////////////////////////////////////////////////////////////////////////////
/// DISCLAIMER
///
/// Copyright 2014-2021 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, Version 2.0 (the "License");
/// you may not use this file except... |
/*
* 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 ... |
#include <bits/stdc++.h>
using namespace std;
int main()
{
// 入出力の高速化
ios::sync_with_stdio(false);
cin.tie(nullptr);
// 表示精度変更
cout << fixed << setprecision(16);
int a,b;
cin >> a >> b;
int c = b - a + 1;
if (c < 0 ) cout << 0 << endl;
else cout << c << endl;
} |
/* 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... |
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
//
// File: eventtrace.cpp
// Abstract: This module implements Event Tracing support
//
//
//
// ==================... |
#include "vehicles.h"
#include "../SharedDefines/easylogging++.h"
#include "networkManager.h"
#include "../SharedDefines/packetsIds.h"
#include "vehicleSyncDeclarations.h"
#include "sendClientRequestedData.h"
#include <sstream>
void sendVehicleData(players::player& p, int vehicleId, networkManager::connection* con)
{
... |
// 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/autocomplete/autocomplete_classifier_factory.h"
#include "chrome/browser/autocomplete/autocomplete_classifier.h"
#include "c... |
/*
* 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 <EMotionFX/Source/AnimGraphSnapshot.h>
#include <EMotionFX/Source/AnimGraph.h>
#include <EM... |
#include "duckdb/catalog/catalog_entry/view_catalog_entry.hpp"
#include "duckdb/catalog/catalog_entry/schema_catalog_entry.hpp"
#include "duckdb/common/exception.hpp"
#include "duckdb/common/serializer.hpp"
#include "duckdb/parser/parsed_data/create_view_info.hpp"
#include "duckdb/common/limits.hpp"
#include <algorit... |
// Copyright (c) 2018 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 requir... |
Matrix2f M = Matrix2f::Random();
Matrix2f m;
m = M;
cout << "Here is the matrix m:" << endl << m << endl;
cout << "Now we want to copy a column into a row." << endl;
cout << "If we do m.col(1) = m.row(0), then m becomes:" << endl;
m.col(1) = m.row(0);
cout << m << endl << "which is wrong!" << endl;
cout << "Now let us ... |
// QoS_Session_Impl.cpp
// QoS_Util.cpp,v 1.1 2001/04/10 05:22:44 yamuna Exp
#define SENDER_PORT 10001
#include "ace/Log_Msg.h"
#include "ace/Get_Opt.h"
#include "QoS_Util.h"
ACE_RCSID(QOS, QoS_Util,"QoS_Util.cpp,v 1.1 2001/04/10 05:22:44 yamuna Exp")
// constructor.
QoS_Util::QoS_Util (int argc,
... |
#include <sstream>
#include <cmath>
#include "Tools/Exception/exception.hpp"
#include "Tools/Math/Galois.hpp"
using namespace aff3ct;
using namespace aff3ct::tools;
template <typename I>
Galois<I>
::Galois(const int& N, const std::vector<I> p)
: N(N), m((int)std::ceil(std::log2(N))), alpha_to(N +1), index_of(N +1),... |
// Copyright (c) Microsoft Corporation
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
#include "pch.h"
#include "httpcall.h"
#include "hcwebsocket.h"
#include "uri.h"
#include "winhttp_connection.h"
#include <schannel.h>
#if HC_PLATFORM == HC_PLATFORM_GDK
#includ... |
//
// mime_types.hpp
// ~~~~~~~~~~~~~~
//
// Copyright (c) 2003-2011 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_SERVER4_MIME_TYPES_HPP
#de... |
//=================================================================================================
/*!
// \file src/mathtest/operations/smatsmatsub/HCbLCb.cpp
// \brief Source file for the HCbLCb sparse matrix/sparse matrix subtraction math test
//
// Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reserved
//... |
//==============================================================================
//
// @@-COPYRIGHT-START-@@
//
// Copyright (c) 2020, Qualcomm Innovation Center, Inc. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the follo... |
// Copyright (c) 2007-2021 Hartmut Kaiser
//
// SPDX-License-Identifier: BSL-1.0
// 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)
#pragma once
#include <hpx/config.hpp>
#include <hpx/assert.hpp>
#include <hpx/e... |
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright 2008 Sun Microsystems, Inc. All rights reserved.
*
* THE BSD LICENSE
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistribut... |
// 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... |
#include "WidgetComponentModule.h"
#include "../../../SnowyStream/SnowyStream.h"
using namespace PaintsNow;
CREATE_MODULE(WidgetComponentModule);
WidgetComponentModule::WidgetComponentModule(Engine& engine) : BaseClass(engine) {
batchComponentModule = (engine.GetComponentModuleFromName("BatchComponent")->QueryInterf... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.