text stringlengths 7 961k |
|---|
// Copyright 2018 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/ukm/ukm_recorder_impl.h"
#include "base/bind.h"
#include "base/metrics/metrics_hashes.h"
#include "base/test/task_environment.h"
#in... |
#include <iostream>
#include <string>
#include <string_view>
#include <fstream>
#include <functional>
#include "ZipFile.h"
#include "utils/stream_utils.h"
#ifdef USE_BOOST_FILESYSTEM
# include <boost/filesystem/path.hpp>
# include <boost/filesystem/operations.hpp>
namespace fs = boost::filesystem;
#else
# include ... |
/*
//@HEADER
// ************************************************************************
//
// Kokkos v. 3.0
// Copyright (2020) National Technology & Engineering
// Solutions of Sandia, LLC (NTESS).
//
// Under the terms of Contract DE-NA0003525 with NTESS,
// the U.S. Govern... |
// aria-simd.cpp - written and placed in the public domain by
// Jeffrey Walton, Uri Blumenthal and Marcel Raad.
//
// This source file uses intrinsics to gain access to ARMv7a and
// ARMv8a NEON instructions. A separate source file is needed
// because additional CXXFLAGS are required to enabl... |
//
// Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2019
//
// 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)
//
#include "td/mtproto/Ping.h"
#include "td/mtproto/AuthData.h... |
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_PauseMenu_parameters.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Functions
//------------------------------------------------------------------------... |
//=================================================================================================
/*!
// \file src/mathtest/smatdmatsub/MIbMDb.cpp
// \brief Source file for the MIbMDb sparse matrix/dense matrix subtraction math test
//
// Copyright (C) 2012-2020 Klaus Iglberger - All Rights Reserved
//
// This fi... |
#include "util.h"
#include <stdio.h>
#include <string.h>
#include <sys/ipc.h>
#include <sys/shm.h>
int util_shm_write( int key, int shm_size, void *data)
{
int shmid;
//int ret;
void *shmadd;
shmid = shmget((key_t)key, shm_size, SHM_R|SHM_W|IPC_CREAT);
if(shmid < 0) {
perror("shmget");
... |
// Copyright (c) 2014-2018, 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
/... |
#pragma once
#include "interface.hpp"
#include <map>
class PerfCollector : public Collector
{
public:
PerfCollector(const Json::Value& config, const std::string& name);
virtual bool init() override;
virtual bool deinit() override;
virtual bool start() override;
virtual bool stop() override;
v... |
/**
* BetterDiscord Installer
* Copyright (c) 2018-present Jiiks/JsSucks - https://github.com/Jiiks / https://github.com/JsSucks
* All rights reserved.
* https://betterdiscord.net
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#in... |
//===----------- TargetParser.cpp - Target Parser -------------------------===//
//
// 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
//
//===---------------------------... |
/*
-- MAGMA (version 2.5.4) --
Univ. of Tennessee, Knoxville
Univ. of California, Berkeley
Univ. of Colorado, Denver
@date October 2020
@author Hartwig Anzt
@generated from sparse/src/zparict_cpu.cpp, normal z -> c, Thu Oct 8 23:05:55 2020
*/
#include "magmasparse_inter... |
/* Copyright 2020 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... |
#pragma once
#include "common.hpp"
namespace arch::device::RTC
{
void init();
/// get startup time
u64 get_current_time_microsecond();
} // namespace arch::device::RTC |
// Copyright 2016 Proyectos y Sistemas de Mantenimiento SL (eProsima).
//
// 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 re... |
#pragma once
namespace guinsoodb {
class RleBpDecoder {
public:
/// Create a decoder object. buffer/buffer_len is the decoded data.
/// bit_width is the width of each value (before encoding).
RleBpDecoder(const uint8_t *buffer, uint32_t buffer_len, uint32_t bit_width)
: buffer_((char *)buffer, buffer_len), bit_... |
#include "hittable_list.h"
// Check for hits in all of the hittable objects in the scene
// It is convenient to check for hits in an interval of t
// The hit record stores the information of the closest item
bool Hittable_list::hit(Ray &r, float t_min, float t_max, hit_record &rec) const
{
hit_record temp_rec;... |
#include <stdio.h>
#include "ali_api_core.h"
#include "ali_string_utils.h"
#include "ali_alert.h"
#include "json/value.h"
#include "json/reader.h"
using namespace aliyun;
namespace {
void Json2Type(const Json::Value& value, std::string* item);
void Json2Type(const Json::Value& value, AlertDeleteContactGroupResponseTyp... |
// 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/webui/net_internals/net_internals_ui.h"
#include <memory>
#include <string>
#include <utility>
#include "base/bind.h"
#i... |
namespace
{
template <typename Iterator>
auto do_metadata_op(bool _add_admin_flag,
rxComm& _comm,
const path& _path,
Iterator _first,
Iterator _last,
std::string_view _op) -> void
{
... |
#include "markviewplugin.h"
#include "constants.h"
#include "markdowneditorfactory.h"
#include <QCoreApplication>
#include <QTranslator>
#include <QtPlugin>
#include <coreplugin/icore.h>
using namespace QtcMarkview::Internal;
MarkviewPlugin::MarkviewPlugin() : IPlugin() {
// Create your members
}
MarkviewPlugin... |
/// @file
/// @author rfree (current maintainer in chavezcoin.cc project)
/// @brief This is the place to implement our handlers for protocol network actions, e.g. for ratelimit for download-requests
// Copyright (c) 2014-2017, The Chavezcoin Project
//
// All rights reserved.
//
// Redistribution and use in source ... |
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#include <aws/ec2/model/SpotFleetRequestConfig.h>
#include <aws/core/utils/xml/XmlSerializer.h>
#include <aws/core/utils/StringUtils.h>
#include <aws/core/utils/memory/stl/AWSStringStream.h>
#include... |
/*
* Copyright (C) 2018 Apple 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 a... |
// Copyright (c) 2014-2019, The Monero Project
// Copyright (c) 2018, The Loki 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 r... |
#include "Etterna/Globals/global.h"
#include "Etterna/Singletons/GameState.h"
#include "Etterna/Models/Misc/InputEventPlus.h"
#include "Etterna/Models/Misc/LocalizedString.h"
#include "Etterna/Singletons/NetworkSyncManager.h"
#include "Etterna/Singletons/ScreenManager.h"
#include "ScreenNetRoom.h"
#include "Etterna/Sc... |
/*
* Copyright 2016 The Cartographer Authors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
/****************************************************************************
*
* (c) 2009-2016 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
*************************************... |
// Copyright (c) 2009-2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Copyright (c) 2014-2019 The Dash 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)
#i... |
// Copyright (C) 2020 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "ngraph_functions/low_precision_transformations/move_dequantization_after_with_int_constant_function.hpp"
#include "low_precision/network_helper.hpp"
#include <ngraph/opsets/opset1.hpp>
#include "ngraph_functions/subgraph_build... |
// Copyright (c) 2013 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 <gtest/gtest.h>
#include <vector>
extern "C" {
// For static function test.
#include "cras_alsa_helpers.c"
}
static int snd_pcm_sw_param... |
// 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
/... |
#include <cstring>
#include <iostream>
#include <algorithm>
#define MAXN 150000
using namespace std;
string a[MAXN];
int n, b[MAXN];
int main()
{
cin >> n;
for (int i = 1; i <= n; i++) cin >> a[i];
for (int i = 1; i <= n; i++) cin >> b[i];
sort(a + 1, a + n + 1);
sort(b + 1, b + n + 1);
for (int i = 1; i <= n; ... |
// DDCPP/standard/bits/DD_IntegeralConstant.hpp
#ifndef DD_INTERGRAL_CONSTANT_HPP_INCLUDED_
# define DD_INTERGRAL_CONSTANT_HPP_INCLUDED_ 1
# include "DD_global_definitions.hpp"
DD_DETAIL_BEGIN_
template <typename ValueT_, ValueT_ value_c_>
struct IntegralConstant {
DD_ALIAS(Type, IntegralConstant<ValueT_ DD_COMM... |
#include "Matrix.h"
#include <thread>
#include <future>
#include <iostream>
#include <deque>
Matrix::Matrix(size_t iRows, size_t iCols)
{
rows = iRows;
cols = iCols;
matrix.resize(rows);
for (size_t i = 0; i < rows; i++)
{
matrix[i].resize(cols);
std::fill(matrix[i].begin(), matrix[i].end(), 0.0);
}
}
Mat... |
#include <iostream>
#include <map>
#include <algorithm>
#include <string>
#include <vector>
int main()
{
std::map<std::string, std::vector<std::string>> famNameChildren;
//Add families
famNameChildren["Smith"];
famNameChildren["Gosling"];
//Add children
famNameChildren["Smith"] = { "One", "Two", "Three" };
f... |
#include <particle.hpp> |
#include <iostream>
#include <fstream>
#include <vector>
#define FOR(i,a,b) for(int i=a; i<=b; i++)
#define MMAX 999999
#include<bits/stdc++.h>
using namespace std;
long N;
struct punct
{
long x,y;
};
vector<punct> p;
vector<double> m;
void citire()
{
ifstream f("trapez.in");
f>>N;
FOR(i,0,N-1)
{... |
// ephemeral_for_test_engine.cpp
/**
* Copyright (C) 2014 MongoDB Inc.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in th... |
/*
* Automatically Generated from Mathematica.
* Tue 8 Jan 2019 22:44:03 GMT-05:00
*/
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "R_BasePosX.h"
#ifdef _MSC_VER
#define INLINE __forceinline /* use __forceinline (VC++ specific) */
#else
#define INLINE static inline /* use standard i... |
/***************************************************************************
vidhrdw.c
Functions to emulate the video hardware of the machine.
***************************************************************************/
#include "driver.h"
#include "vidhrdw/generic.h"
/* local */
size_t atarifb_alphap1_vram_si... |
/*
THE COMPUTER CODE CONTAINED HEREIN IS THE SOLE PROPERTY OF PARALLAX
SOFTWARE CORPORATION ("PARALLAX"). PARALLAX, IN DISTRIBUTING THE CODE TO
END-USERS, AND SUBJECT TO ALL OF THE TERMS AND CONDITIONS HEREIN, GRANTS A
ROYALTY-FREE, PERPETUAL LICENSE TO SUCH END-USERS FOR USE BY SUCH END-USERS
IN USING, DISPLAYING, A... |
/*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... |
#define BOOST_TEST_MAIN
#include <boost/test/included/unit_test.hpp>
#include <boost/test/tools/output_test_stream.hpp>
#include <boost/predef.h>
#include <string>
#include <memory>
#include <vector>
#include <poac/util/cfg.hpp>
#include "util/macros.hpp"
BOOST_AUTO_TEST_CASE( poac_util_cfg_parse_good_test )
{
usi... |
#include <iostream>
#include <algorithm>
#include <stdio.h>
#include <string>
#include <vector>
#include <map>
#include <math.h>
#include <numeric>
#include <queue>
#include <stack>
#include <utility>
#include <queue>
#include <set>
#include <iomanip>
using namespace std;
typedef int64_t ll;
typedef pair<int,ll> pil... |
// Copyright 2016-2021 Directive Games Limited - All Rights Reserved
#include "DriftSteamModule.h"
#include "Interfaces/IPluginManager.h"
#include "Features/IModularFeatures.h"
IMPLEMENT_MODULE(FDriftSteamModule, DriftSteam)
FDriftSteamModule::FDriftSteamModule()
{
}
void FDriftSteamModule::StartupModule()
{
... |
// Autogenerated from CppHeaderCreator
// Created by Sc2ad
// =========================================================================
#pragma once
// Begin includes
#include "extern/beatsaber-hook/shared/utils/typedefs.h"
#include "extern/beatsaber-hook/shared/utils/byref.hpp"
// Including type: System.IntPtr
#includ... |
// Copyright (c) 2018 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 "gquiche/quic/tools/quic_simple_client_stream.h"
namespace quic {
void QuicSimpleClientStream::OnBodyAvailable() {
if (!drop_response_bod... |
/*============================================================================
The Medical Imaging Interaction Toolkit (MITK)
Copyright (c) German Cancer Research Center (DKFZ)
All rights reserved.
Use of this source code is governed by a 3-clause BSD license that can be
found in the LICENSE file.
=================... |
/*
* 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 ma... |
/*
* Copyright (c) 2016 MariaDB Corporation Ab
*
* Use of this software is governed by the Business Source License included
* in the LICENSE.TXT file and at www.mariadb.com/bsl11.
*
* Change Date: 2025-04-28
*
* On the date above, in accordance with the Business Source License, use
* of this software will be g... |
//===-- examples/HowToUseJIT/HowToUseJIT.cpp - An example use of the JIT --===//
//
// The LLVM Compiler Infrastructure
//
// This file was developed by Valery A. Khamenya and is distributed under the
// University of Illinois Open Source License. See LICENSE.TXT for details.
//
//===---------------... |
#include <iostream>
#include "dbrm.h"
#include "IDBPolicy.h"
using namespace std;
using namespace BRM;
CopyLocks copylocks;
DBRM dbrm;
void lockRange()
{
LBIDRange r;
r.start = 12345;
r.size = 5;
copylocks.lock(CopyLocks::WRITE);
if (copylocks.isLocked(r))
cout << "already locked\n";
... |
/*
* Copyright (C) Volition, Inc. 1999. All rights reserved.
*
* All source code herein is the property of Volition, Inc. You may not sell
* or otherwise commercially exploit the source or things you created based on the
* source.
*
*/
#include "cfile/cfile.h"
#include "cutscene/cutscenes.h"
#include "freespa... |
/*
* 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 ... |
/*
* Copyright (c) 2016 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... |
/*=========================================================================
Program: Visualization Toolkit
Module: vtkMaskPoints.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... |
#include <limits.h>
#include <algorithm>
#include <condition_variable>
#include <memory>
#include <mutex>
#include <vector>
// #include "third_party/glog/include/logging.h"
// #include "third_party/gflags/include/gflags.h"
using std::vector;
using std::min;
class ZeroEvenOdd {
private:
int n;
std::mutex mutex_;... |
/**********************************************************************
* Copyright (c) 2008-2015, 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 t... |
#define _USE_MATH_DEFINES
#include <cmath>
#include <iostream>
#include <SDL2/SDL.h>
#include "Constants.h"
#include "Game.h"
#include "Log.h"
#include "Utility.h"
Game::Game(void) : mWindow(nullptr), mRenderer(nullptr) {
reset();
std::cout << Constants::ApplicationName() << " Game Start." << std::endl;
}
Game:... |
//==================================================================================================
/*!
@file
@copyright 2016 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 <gflags/gflags.h>
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "common/macros.h"
#include "main/db_main.h"
#include "settings/settings_callbacks.h"
#include "settings/settings_manager.h"
#include "type/transient_value_factory.h"
#define __SETTING_GFLAGS_DECLARE__ // N... |
// 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/v8.h"
#include "src/accessors.h"
#include "src/api.h"
#include "src/contexts.h"
#include "src/deoptimizer.h"
#include "src/execution.h"
#... |
version https://git-lfs.github.com/spec/v1
oid sha256:6b0b9cede66258377f97f63495a09c78061c57da9f6b9c00b7f801ab16b917a0
size 27934 |
/*
* Copyright 2009 Bjorn Fahller <bjorn@fahller.se>
* 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 li... |
/*
*
* 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... |
// Copyright (c) 2017-2018 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 <key_io.h>
#include <script/sign.h>
#include <util/bip32.h>
#include <util/strencodings.h>
#include <wallet/psbtwall... |
/* Copyright 2020 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) 2012-2014 The Bitcoin developers
// Copyright (c) 2017-2019 The PIVX developers
// Copyright (c) 2019 The CryptoDev developers
// Copyright (c) 2019 The peony developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license... |
#include "SgResourceConverter.h"
#include "Application.h"
#ifndef NO_XPM
#include <X11/xpm.h>
#else
#include <X11/Xlib.h>
#endif
#include <ctype.h>
#include <stdio.h>
Boolean SgResourceConverter::_firstTime = True;
void SgResourceConverter::registerStringToPixmapConverter()
{
if (_firstTime == True) {
_fi... |
//========================================================================
//
// SecurityHandler.cc
//
// Copyright 2004 Glyph & Cog, LLC
//
//========================================================================
//========================================================================
//
// Modified under the Pop... |
#include <iostream>
#include "ray/common/id.h"
#include "ray/common/ray_config.h"
#include "ray/common/status.h"
#include "ray/common/task/task_common.h"
#include "ray/raylet/raylet.h"
#include "ray/stats/stats.h"
#include "gflags/gflags.h"
DEFINE_string(raylet_socket_name, "", "The socket name of raylet.");
DEFINE_... |
//$Id: Receiver.cpp 47 2010-03-31$
//------------------------------------------------------------------------------
// Receiver
//------------------------------------------------------------------------------
// GMAT: General Mission Analysis Tool.
//
// Copyright (c) 2002-2011 United States... |
#include <bits/stdc++.h>
using namespace std;
#define TemplateVersion "3.4.1"
// Useful Marcos
//====================START=====================
// Compile use C++11 and above
#ifdef LOCAL
#define debug(args...) \
{ \
string _s = #args; ... |
/*******************************************************************************
* Copyright 2016-2018 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apa... |
/*
* Copyright 2020 Google LLC.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "src/gpu/ganesh/ops/AtlasInstancedHelper.h"
#include "src/gpu/BufferWriter.h"
#include "src/gpu/KeyBuilder.h"
#include "src/gpu/ganesh/glsl/GrGLSLFragmentShaderBuild... |
#include <iostream>
#include <string>
using namespace std;
int chartomatches(char c, int pos) {
switch(c) {
case '9': return pos == 0? 3: pos == 1? 4: pos == 2? 6: 0;
case '8': return pos == 0? 5: pos == 1? 8: pos == 2? 9: 0;
case '7': return pos == 0? 4: pos == 1? 6: pos == 2? 7: 0;
case '6': return pos == 0... |
#include <stdio.h>
#include <algorithm>
using namespace std;
double p[1005][2];
double d[1005], w[1005];
int srt[1005];
bool cmp(int x,int y){
return d[x]<d[y];
}
int main(void)
{
int n, cs=0, i, j;
double PI = 3.141;
while(scanf("%d",&n)!=EOF && n>0){
++cs;
double ax, ay, bx, by, T;
scanf("%lf%lf%... |
////////////////////////////////////////////////////////////////////////////////
// The following FIT Protocol software provided may be used with FIT protocol
// devices only and remains the copyrighted property of Dynastream Innovations Inc.
// The software is being provided on an "as-is" basis and as an accommodation... |
// Author: Sébastien Brochet
#include <memory>
#include <string>
#include <fstream>
#include <iostream>
#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/one/EDAnalyzer.h"
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/MakerMacros.h"
#include ... |
/* dsphdc.f -- translated by f2c (version 19990311).
*/
#include <ivp_physics.hxx>
#include <ivp_betterdebugmanager.hxx>
#include <geompack.hxx>
void IVP_Geompack::dsphdc_() {
double *vcl = this->g_vcl;
int *facesdata = this->g_facesdata;
int *faceverticeslist = t... |
/*
This file is part of the Dynarithmic TWAIN Library (DTWAIN).
Copyright (c) 2002-2020 Dynarithmic Software.
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.... |
// Copyright (C) 2018-2021 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include "ngraph/op/atanh.hpp"
#include <string>
#include <vector>
#include "itt.hpp"
#include "ngraph/runtime/host_tensor.hpp"
#include "ngraph/runtime/reference/atanh.hpp"
#include "ngraph/type/element_type.hpp"
using namespace... |
//
// MessagePack for C++ static resolution routine
//
// Copyright (C) 2015 KONDO Takatoshi
//
// 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 MSGPACK_V1_TYPE_VECTOR_BOOL_HPP
#define MSGPACK_... |
// Copyright (c) 2011-2015 The Bitcoin Core developers
// Copyright (c) 2014-2017 The Flamecoin Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include "paymentserver.h"
#include "bitcoinunits.h"
#include "guiu... |
// Copyright (c) 2017 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 <memory>
#include <string>
#include <utility>
#include "net/third_party/quiche/src/quic/core/crypto/quic_crypto_server_config.h"
#include "n... |
/*
* Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
* 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 noti... |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: v1/audio/audio.proto
#include "v1/audio/audio.pb.h"
#include <algorithm>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/descriptor.h>... |
#include <iostream>
#include <vector>
#include <future>
#include <cmath>
#include <chrono>
using namespace std;
using namespace std::chrono;
bool is_prime( long n )
{
auto const sqrt_n = sqrt( n );
for ( long i = 2; i <= sqrt_n; ++i )
if ( ( n % i ) == 0 )
return false;
return true;
}... |
#include "editor.h"
#include "engine.h"
#include "archive.h"
#include "behaviors/all.h"
#include "library.h"
#include "sound/sound.h"
#define SERVER_STATS_UPDATE_INTERVAL 10.0
Editor::Editor(Bridge &bridge_)
: bridge(bridge_) {
isEditorStateDirty = true;
isSelectedActorStateDirty = true;
}
void Editor::setIs... |
/* Copyright 2018 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed ... |
// Copyright (c) 2011-2014 The Bitcoin developers
// Copyright (c) 2014-2015 The Dash developers
// Copyright (c) 2015-2017 The PIVX developers
// Copyright (c) 2017-2019 The Cricket Core developers
// Distributed under the MIT/X11 software license, see the accompanying
// file COPYING or http://www.opensource.org/lice... |
/*
* 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 ... |
// xImaSel.cpp : Selection functions
/* 07/08/2001 v1.00 - Davide Pizzolato - www.xdp.it
* CxImage version 7.0.1 07/Jan/2011
*/
#include "ximage.h"
////////////////////////////////////////////////////////////////////////////////
/**
* Checks if the image has a valid selection.
*/
bool CxImage::SelectionIsValid()
... |
// Copyright (c) 2012-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 "addrman.h"
#include "test/test_luckybit.h"
#include <string>
#include <boost/test/unit_test.hpp>
#include "random.h... |
// g++ -std=c++11 problem1.cpp && ./a.exe
// output:
// result (N=10): 23
// result (N=1000): 233168
#include <iostream>
int problem1(int N)
{
int result = 0;
for (int i = 1; i < N; ++i) {
if (i % 3 == 0 || i % 5 == 0) {
result += i;
}
}
return result;
}
int main(int ar... |
// Copyright (c) 2018-present Baidu, 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 require... |
/*
* Copyright (c) 2015 Cryptonomex, Inc., and contributors.
*
* The MIT License
*
* 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... |
//---------------------------------------------------------------------------//
// Copyright (c) 2021 Eleftherios Avramidis <el.avramidis@gmail.com>
//
// Distributed under The MIT License (MIT)
// See accompanying file LICENSE
//---------------------------------------------------------------------------//
#ifndef MYS... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.