text stringlengths 5 1.04M |
|---|
#include <stan/math/prim/scal.hpp>
#include <boost/math/special_functions/fpclassify.hpp>
#include <gtest/gtest.h>
#include <limits>
TEST(MathFunctions, modified_bessel_second_kind) {
using stan::math::modified_bessel_second_kind;
EXPECT_FLOAT_EQ(0.011159676085853024269745195979833489225,
modifi... |
///////////////////////////////////////////////////////////////////////////////
//
// @@@ START COPYRIGHT @@@
//
// 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 o... |
// Copyright (c) 2020, Christopher A. Taylor. All rights reserved.
#pragma once
#include "Tools.hpp"
namespace z16 {
//------------------------------------------------------------------------------
// Codec
class Codec
{
public:
~Codec()
{
Shutdown();
}
bool Initialize();
void Shutdo... |
// Hi, I'm Yanzhan. For more algothmic problems, visit my Youtube Channel (Yanzhan Yang's Youtube Channel) : https://www.youtube.com/channel/UCDkz-__gl3frqLexukpG0DA?view_as=subscriber or my Twitter Account (Yanzhan Yang's Twitter) : https://twitter.com/YangYanzhan or my GitHub HomePage (Yanzhan Yang's GitHub HomePage)... |
// Copyright 2014 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/password_manager/core/common/credential_manager_types.h"
#include <memory>
#include "base/strings/string_number_conversions.h"
#inc... |
// Copyright (c) 2014 Sze Howe Koh
// This code is licensed under the MIT license (see LICENSE.MIT for details)
#include "gui.h"
#include <QDebug>
QTextEdit* logWidget;
static void printMessage(QtMsgType, const QMessageLogContext&, const QString &msg)
{
logWidget->append(msg);
}
Gui::Gui(QWidget* parent)
: QWidget... |
#include <cstring>
#include "d3d9_initializer.h"
namespace dxvk {
D3D9Initializer::D3D9Initializer(
const Rc<DxvkDevice>& Device)
: m_device(Device), m_context(m_device->createContext()) {
m_context->beginRecording(
m_device->createCommandList());
}
D3D9Initializer::~D3D9Initial... |
/*
* Copyright (C) 2017 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... |
/// HEADER
#include <csapex_transform/transform_message.h>
/// PROJECT
#include <csapex/utility/assert.h>
#include <csapex/utility/register_msg.h>
/// SYSTEM
// clang-format off
#include <csapex/utility/suppress_warnings_start.h>
#include <tf/transform_datatypes.h>
#include <csapex/utility/suppress_warnings_end.h>
//... |
#include <stdio.h>
using namespace std;
#define REP(a, i, n) for (int i = a; i < n; ++i)
int max(int X, int Y) {
return X > Y ? X : Y;
}
int main() {
int N;
scanf("%d", &N);
int A[2][N];
REP(0, i, 2) REP(0, j, N) {
scanf("%d", &A[i][j]);
}
int ans = 0;
REP(0, k, N) {
... |
// Copyright 2020 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 "perf_buildid.h"
#include <cstdint>
#include <string>
namespace quipper {
void PerfizeBuildIDString(string* build_id) {
build_id->resize(... |
/**
* SCILL API
* SCILL gives you the tools to activate, retain and grow your user base in your app or game by bringing you features well known in the gaming industry: Gamification. We take care of the services and technology involved so you can focus on your game and content.
*
* OpenAPI spec version: 1.0.0
* Con... |
/**
* Copyright 2021 Huawei Technologies Co., Ltd
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law... |
#include <memory>
#include <vector>
#include "common/event/dispatcher_impl.h"
#include "common/network/utility.h"
#include "common/tcp/conn_pool.h"
#include "common/tcp/original_conn_pool.h"
#include "common/upstream/upstream_impl.h"
#include "test/common/upstream/utility.h"
#include "test/mocks/common.h"
#include "t... |
// Copyright (c) 2014 The Sippet 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 "sippet/ua/auth_handler_digest.h"
#include <string>
#include "base/i18n/icu_string_conversions.h"
#include "base/logging.h"
#includ... |
/* file: kdtree_knn_classification_predict_dense_default_batch_fpt_cpu_v1.cpp */
/*******************************************************************************
* Copyright 2014-2020 Intel Corporation
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance w... |
#include "amici/symbolic_functions.h"
#include "amici/defines.h" //realtype definition
typedef amici::realtype realtype;
#include <cmath>
using namespace amici;
namespace amici {
namespace model_model_neuron_o2{
void rz_model_neuron_o2(double *rz, const int ie, const realtype t, const realtype *x, const realtype ... |
/******************************Module*Header*******************************\
* Module Name: wndstuff.cpp
*
* This file contains the code to support a simple window that has
* a menu with a single item called "Test". When "Test" is selected
* vTest(HWND) is called.
*
* Created: 09-Dec-1992 10:44:31
* Author: Kir... |
// The MIT License (MIT)
//
// Copyright (c) 2018 Mateusz Pusz
//
// 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, co... |
//========================================================================================
// Athena++ astrophysical MHD code
// Copyright(C) 2014 James M. Stone <jmstone@princeton.edu> and other code contributors
// Licensed under the 3-clause BSD License, see LICENSE file for details
//===============================... |
// Copyright (c) 2009-2018 The Bitcoin Core developers
// Copyright (c) 2017-2020 The Qtum Core developers
// Copyright (c) 2020 The BITCOIN2Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <qt/test/urite... |
/*
* Copyright 2011 Aevum Software aevum @ aevumlab.com
*
* 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
*
* Unles... |
/*
* Copyright 2007-2021 CM4all GmbH
* All rights reserved.
*
* author: Max Kellermann <mk@cm4all.com>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* - Redistributions of source code must retain the abo... |
/*
************************************************
username : smmehrab
fullname : s.m.mehrabul islam
email : mehrab.24csedu.001@gmail.com
institute : university of dhaka, bangladesh
session : 2017-2018
************************************************
*/
#include <cstdio>
#include <bitset>
#... |
// 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.
#if defined(HAVE_CONFIG_H)
#include "config/taucoin-config.h"
#endif
#include "intro.h"
#include "ui_intro.h"
#include "gui... |
#include <Arduino.h>
#include "MotorControl.h"
#define RIGHT_FORWARD 0
#define RIGHT_REVERSE 1
#define LEFT_FORWARD 2
#define LEFT_REVERSE 3
MotorControl::MotorControl(MotorPins p)
{
frequency = 50000;
resolution = 8;
config = {
{100, -100, 10, 0, 0}, // right
{100, -100, 10, 0, 0} /... |
#include "nvparse_errors.h"
#include "nvparse_externs.h"
#include <string.h>
#include <string>
#include <ctype.h>
#if OGRE_PLATFORM == OGRE_PLATFORM_APPLE
# include <OpenGL/glu.h>
#else
# include <GL/glu.h>
#endif
using namespace std;
namespace
{
void LoadProgram( GLenum target, GLuint id, char *instring );
GLint... |
#include "dmos.h"
#include "dmutil.h"
#include "dmtypes.h"
#include "dmformat.h"
#include "dmiconv.h"
int main(int argc, char* argv[]) {
{
std::string in = "hello iconv";
std::string out = iconvpp::LatintoUtf8(in);
fmt::fprintf(stdout, "%s\n", out.c_str());
std::string... |
// Copyright (c) 2019 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 required... |
#include <unistd.h>
#include <cassert>
#include <stdlib.h>
#include <QCoreApplication>
#include <QResource>
#include <QLocale>
#include <QFile>
#include <QHostInfo>
#include <QHostAddress>
#include <QString>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonValue>
#include <cstdint>
#include <limits>
#in... |
/*
* Copyright (c) 2020, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include "GameSizeDialog.h"
#include "Game.h"
#include <AK/IntegralMath.h>
#include <LibGUI/BoxLayout.h>
#include <LibGUI/Button.h>
#include <LibGUI/CheckBox.h>
#include <LibGUI/Label.h>
#include <LibGUI/SpinBox.h>
Ga... |
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "ui/aura/mus/mojo_gpu_memory_buffer_manager.h"
#include "base/logging.h"
#include "ui/aura/mus/mojo_gpu_memory_buffer.h"
namespace aura {
Mojo... |
// Boost.Geometry (aka GGL, Generic Geometry Library)
// Copyright (c) 2007-2015 Barend Gehrels, Amsterdam, the Netherlands.
// Copyright (c) 2013-2015 Adam Wulkiewicz, Lodz, Poland.
// This file was modified by Oracle on 2013, 2015.
// Modifications copyright (c) 2013-2015, Oracle and/or its affiliates.
// ... |
// 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/extensions/api/tabs/windows_event_router.h"
#include <utility>
#include "base/bind.h"
#include "base/values.h"
#include "bu... |
/*
* Copyright (c) 2008-2019, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required ... |
#include <iostream>
#include <vector>
template <typename T, typename U>
std::istream& operator >>(std::istream& input, std::pair<T, U>& v)
{
return input >> v.first >> v.second;
}
template <typename T>
std::istream& operator >>(std::istream& input, std::vector<T>& v)
{
for (T& a : v)
input >> a;
... |
/*******************************<GINKGO LICENSE>******************************
Copyright (c) 2017-2021, the Ginkgo authors
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 co... |
/* ************************************************************************************** */
/* This is a Helix API Test file. This file is included directly into the HelixTestApi */
/* application at compile time. No extra headers, etc. should be necessary here. Refer */
/* to HelixTestApi for the global variabl... |
VectorXf v;
v.setConstant(3, 5);
cout << v << endl;
|
#include "os.h"
// Most of this code is a heavily modified version of some of the subsystem in Remotery
#ifdef PLATFORM_LINUX
#include <time.h>
#ifdef __FreeBSD__
#include <pthread_np.h>
#else
#include <sys/prctl.h>
#endif
#endif
#if defined(PLATFORM_POSIX)
#include <sys/types.h>
#include <sys/syscall.h>
#include <s... |
////////////////////////////////////////////////////////////////////////////////
/// @brief Write-ahead log storage allocator thread
///
/// @file
///
/// DISCLAIMER
///
/// Copyright 2014 ArangoDB GmbH, Cologne, Germany
/// Copyright 2004-2014 triAGENS GmbH, Cologne, Germany
///
/// Licensed under the Apache License, ... |
/*************************************************************************/
/* pin_joint_bullet.cpp */
/*************************************************************************/
/* This file is part of: */
/* ... |
/*
* Copyright (C) 2013 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:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditio... |
/*
* kd_tree.hpp
*
* Created on: Dec 31, 2018 10:27
* Description:
*
* Copyright (c) 2018 Ruixiang Du (rdu)
*/
#ifndef KD_TREE_HPP
#define KD_TREE_HPP
#include <limits>
#include <algorithm>
#include "spatial/spatial.hpp"
#include "spatial/point_multiset.hpp"
#include "spatial/neighbor_iterator.hpp"
#incl... |
#pragma once
#include <typed-geometry/tg-lean.hh>
// TODO
|
// This file is part of VSTGUI. It is subject to the license terms
// in the LICENSE file found in the top-level directory of this
// distribution and at http://github.com/steinbergmedia/vstgui/LICENSE
#include "uitemplatecontroller.h"
#if VSTGUI_LIVE_EDITING
#include "../uiviewfactory.h"
#include "../uiattributes.h... |
#pragma once
#include <typed-geometry/types/mat.hh>
namespace tg
{
template <int D, class ScalarT>
[[nodiscard]] constexpr ScalarT trace(mat<D, D, ScalarT> const& A)
{
if constexpr (D == 1)
return A[0][0];
else if constexpr (D == 2)
return A[0][0] + A[1][1];
else if constexpr (D == 3)
... |
#include <iostream>
#include <cstring>
#include <fstream>
using namespace std;
int main(){
char* str;
short len;
cout<<"len:";
cin>>len;
str=new char[len+1];
fstream file;
file.open("strings.txt",ios::app);
cout<<"Enter string:";
cin.ignore();
cin.getline(str,len);
cout<<str<... |
// Copyright (c) 2010 Satoshi Nakamoto
// Copyright (c) 2009-2015 The Bitcoin Core developers
// Copyright (c) 2014-2017 The Dash Core developers
// Copyright (c) 2017-2019 The KZCash Core developers
// Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/license... |
/**************************************************************
*
* 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... |
#include <stdexcept>
/**
LinkedElement é uma struct utilizada pela classe LinkedStack, no qual
possuirá o seu próprio conteúdo e o endereço dos elementos vinculados ao mesmo.
*/
template <typename Type> struct LinkedElement {
Type content;
LinkedElement<Type> *previous;
LinkedElement<Type> *next;
};
/**... |
#pragma once
//------------------------------------------------------------------------------
//
// Copyright 2018-2019 Fetch.AI Limited
//
// 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 Licen... |
#pragma once
#include <iostream>
#include "../LAYER_RNN/Layer_LSTM.hpp"
#include "../LOAD/MnistData.hpp"
namespace RNN
{
namespace MnistLSTM
{
// g++ Source.cpp -O3
void MnistLSTM()
{
MNistData::loadMnist();
std::vector<std::vector<MidData *>> bottom_x_vec;
for (int i = 0; i < 55000; i++)
{
ma... |
/*
Copyright (C) 2016 Vladimir "allejo" Jimenez
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, modif... |
#include "qrcodedialog.h"
#include "ui_qrcodedialog.h"
#include "bitcoinunits.h"
#include "guiconstants.h"
#include "guiutil.h"
#include "optionsmodel.h"
#include <QPixmap>
#if QT_VERSION < 0x050000
#include <QUrl>
#endif
#include <qrencode.h>
QRCodeDialog::QRCodeDialog(const QString &addr, const QString &label, bo... |
#include <bits/stdc++.h>
using namespace std;
#define watch(x) cerr << #x << " = " << x << "\n"
typedef pair<int, int> pii;
typedef long long int64;
const double eps = 1e-9;
const int inf = 0x3f3f3f3f;
int main()
{
#ifndef ONLINE_JUDGE
freopen("../io/in.txt", "r", stdin);
//freopen("../io/out.txt... |
// Напишете функция, която по въведени цели положителни числа a, b(b > a)
// да върне сумата на всички прости числа в интервала[a;b].
//
// Пример:
//
// Вход: 2 10
// Изход : 17 // 2+3+5+7
#include <iostream>
bool IsPrime(int x);
int GetPrimesSum(int n, int k);
int main()
{
int k, n;
std::cout << "enter two n... |
/*
* 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 ... |
#ifdef PEGASUS_OS_FREEBSD
#ifndef __UNIX_ELEMENTSOFTWAREIDENTITY_PRIVATE_H
#define __UNIX_ELEMENTSOFTWAREIDENTITY_PRIVATE_H
#endif
#endif
|
#pragma once
#include <type_traits>
namespace gal::toolbox::utils
{
/**
* @brief a simple auxiliary class for handling some continuous (accessible through operator[]) containers
* @note all invokes provide two invocation methods, one is to specify index_sequence by user (requires the same length as N), and the o... |
#include "pch.h"
#include "resource.h"
#include "RawFileListView.h"
#include "mainfrm.h"
#include "HexView.h"
#include "Root.h"
#include "BmpBtn.h"
CRawFileListView rawFileListView;
BOOL CRawFileListView::PreTranslateMessage(MSG* pMsg)
{
if(pMsg)
{
if((pMsg->hwnd == m_hWnd) || ::IsChild(m_hWnd, pMsg->hwnd))
{
... |
/* TEMPLATE GENERATED TESTCASE FILE
Filename: CWE122_Heap_Based_Buffer_Overflow__c_CWE193_char_memmove_73b.cpp
Label Definition File: CWE122_Heap_Based_Buffer_Overflow__c_CWE193.label.xml
Template File: sources-sink-73b.tmpl.cpp
*/
/*
* @description
* CWE: 122 Heap Based Buffer Overflow
* BadSource: Allocate memory... |
#include <torch/script.h>
#include <gtest/gtest.h>
#include <test/cpp/api/support.h>
using namespace torch::autograd;
using namespace torch::test;
TEST(GradModeTest, TestRequiresGradFunctionalOp) {
torch::AutoGradMode mode(false);
for (bool requires_grad : {true, false}) {
torch::Tensor c = torch::ones({1, 2,... |
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
// https://developers.google.com/protocol-buffers/
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// ... |
/*
* =====================================================================================
*
* Filename: ex_2011.cpp
*
* Description: Exercise 20.11 - Palindrome Testing with Stacks
*
* Version: 1.0
* Created: 13/06/17 13:44:42
* Revision: none
* Compiler: g++
*
* ... |
#define CATCH_CONFIG_MAIN // This tells Catch to provide a main() - only do this in one cpp file
#include "catch.hpp"
#include "loops.h"
#include "rectangle.h"
TEST_CASE("Verify Test Configuration", "verification") {
REQUIRE(true == true);
}
TEST_CASE("Test calculate area function")
{
Rect area1(4,5);
REQUIRE(are... |
/*************************************************************************/
/* */
/* Centre for Speech Technology Research */
/* University of Edinburgh, UK */
/* ... |
// { dg-do run { xfail sparc64-*-elf arm-*-pe } }
// { dg-options "-fexceptions" }
int err = 1;
struct A {
~A() {
--err;
}
};
struct B {
A a;
B() {
throw 1;
}
};
int main() {
try {
B b;
} catch (...) {
return err;
}
return 1;
}
|
/*
* Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" fil... |
/*=============================================================================
Copyright (c) 2011-2012 Thomas Bernard
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)
========================================... |
// Copyright (C) 2018-2022 Intel Corporation
// SPDX-License-Identifier: Apache-2.0
//
#include <shared_test_classes/single_layer/activation.hpp>
#include "shared_test_classes/base/ov_subgraph.hpp"
#include "functional_test_utils/ov_tensor_utils.hpp"
#include "test_utils/cpu_test_utils.hpp"
using namespace InferenceE... |
//
// Commodore.cpp
// Clock Signal
//
// Created by Thomas Harte on 06/11/2016.
// Copyright 2016 Thomas Harte. All rights reserved.
//
#include "Commodore.hpp"
std::wstring Storage::Data::Commodore::petscii_from_bytes(const uint8_t *string, int length, bool shifted) {
std::wstring result;
wchar_t unshifted_c... |
#include <player.h>
#include <Engine.hpp>
namespace godot
{
Player::Player()
{
}
Player::~Player()
{
}
void Player::_register_methods()
{
// Register methods
register_method((char*)"_ready", &Player::_ready);
register_method((char*)"_process", &Player::... |
//============================================================================
// Copyright 2009- ECMWF.
// This software is licensed under the terms of the Apache Licence version 2.0
// which can be obtained at http://www.apache.org/licenses/LICENSE-2.0.
// In applying this licence, ECMWF does not waive the privileges... |
/*
* psql - the openGauss interactive terminal
*
* Copyright (c) 2000-2012, PostgreSQL Global Development Group
*
* src/bin/psql/tab-complete.c
*/
/* ----------------------------------------------------------------------
* This file implements a somewhat more sophisticated readline "TAB
* completion" in psql. ... |
/* Copyright (c) 2021 vesoft inc. All rights reserved.
*
* This source code is licensed under Apache 2.0 License,
* attached with Common Clause Condition 1.0, found in the LICENSES directory.
*/
#include "common/base/Base.h"
#include <rocksdb/db.h>
#include <folly/Benchmark.h>
#include <folly/executors/IOThreadPoo... |
//////////////////////////////////////////////////////////////////////////
//
// Copyright (c) 2008-2010, Image Engine Design 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:
//
// ... |
/*
* Copyright (C) 2017-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#include "opencl/source/platform/platform.h"
#include "cl_api_tests.h"
using namespace NEO;
typedef api_tests clRetainReleaseDeviceTests;
namespace ULT {
TEST_F(clRetainReleaseDeviceTests, GivenRootDeviceWhenRetainingThenRefe... |
////////////////////////////////////////////////////////////////////////////
//
// Copyright 2017 Realm Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/li... |
/* -*- Mode: C++; tab-width: 4; c-basic-offset: 4; indent-tabs-mode: nil -*- */
/*
* Copyright 2020-2021 Couchbase, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* ... |
// Copyright (c) 2012, 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/stack_frame.h"
#include "platform/memory_sanitizer.h"
#include "vm/compiler/assembler/ass... |
/*
SPDX short identifier: MIT
Copyright 2018-2019 Jevgēnijs Protopopovs
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... |
// parameters.cpp
/**
* Copyright (C) 2012 10gen 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 the hope that it wi... |
// 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 "bitcoinamountfield.h"
#include "bitcoinunits.h"
#include "guiconstants.h"
#include "qvaluecombobox.h"
#include <Q... |
/* -*- mode: C++; c-basic-offset: 2; indent-tabs-mode: nil -*- */
/*
* Main authors:
* Guido Tack <tack@gecode.org>
*
* Copyright:
* Guido Tack, 2004
*
* Last modified:
* $Date: 2010-09-03 16:36:31 +0200 (Fri, 03 Sep 2010) $ by $Author: schulte $
* $Revision: 11390 $
*
* This file is part... |
#pragma once
// ARKSurvivalEvolved (329.9) SDK
#ifdef _MSC_VER
#pragma pack(push, 0x8)
#endif
#include "ARKSurvivalEvolved_DmgType_Melee_Dino_Herbivore_Small_classes.hpp"
namespace sdk
{
//---------------------------------------------------------------------------
//Parameters
//-----------------------------------... |
/**
* Copyright 2019-2021 Huawei Technologies 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 applicabl... |
/*
* Copyright 2015 The Native Client 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 "native_client/src/shared/platform/nacl_log.h"
#include "native_client/src/shared/utils/types.h"
#include "... |
/*
* Copyright (C) 2018 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... |
/****************************************************************************************
* @author: * kzvd4729 created: Jan/08/2021 20:43
* solution_verdict: Accepted language: GNU C++14
* run... |
#ifndef PORTABLE_BINARY_OARCHIVE_HPP
#define PORTABLE_BINARY_OARCHIVE_HPP
// MS compatible compilers support #pragma once
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
# pragma once
#endif
#if defined(_MSC_VER)
#pragma warning( push )
#pragma warning( disable : 4244 )
#endif
/////////1/////////2/////////3/////////4///... |
// @HEADER
// ***********************************************************************
//
// Panzer: A partial differential equation assembly
// engine for strongly coupled complex multiphysics systems
// Copyright (2011) Sandia Corporation
//
// Under the terms of Contract DE-AC04-94AL85... |
/**
* Copyright 2019-2021 Huawei Technologies 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 applicabl... |
/*
* Copyright (c) 2014 Samsung Electronics 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... |
#include "configure.h"
#include "control.h"
#include "Total_operation/run.h"
int main()
{
WorKing run;
run.Run();
return 0;
}
|
// tkDNN YOLO PastaPi plugin
// Copyright (C) 2020 Pawel Adamski
// This program 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 (at your option) any later version.
... |
#ifndef PYTHONIC_NUMPY_MEDIAN_HPP
#define PYTHONIC_NUMPY_MEDIAN_HPP
#include "pythonic/include/numpy/median.hpp"
#include "pythonic/utils/functor.hpp"
#include "pythonic/types/ndarray.hpp"
#include "pythonic/numpy/asarray.hpp"
#include <algorithm>
namespace pythonic
{
namespace numpy
{
template <class T, si... |
#include <core/RunEngine.hpp>
#include <iostream>
#include <string>
#include <BsPrerequisites.h>
#include <FileSystem/BsPath.h>
#include <core/Engine.hpp>
#include <log/logging.hpp>
using namespace REGoth;
int REGoth::runEngine(Engine& engine)
{
engine.initializeBsf();
REGOTH_LOG(Info, Uncategorized, "[Main] ... |
#include <algorithm>
#include <cassert>
#include <cstdio>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
#include <cstring>
using namespace std;
int d[] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
class AverageCandyLifetime {
public:
double getAverage(vector <int> A... |
// Copyright 2022 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.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.